@triviumcapital/trivium-ts-sdk
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -311,4 +311,4 @@ import type { Configuration } from './configuration'; | ||
postApiV1CashAccount: (createAccountRequest: CreateAccountRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
postApiV1CashRequestDepositAccountid: (accountId: string, depositRequest: DepositRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
postApiV1CashRequestRedemptionAccountid: (accountId: string, redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
postApiV1CashRequestDepositAccountid: (accountId: string, depositRequest: DepositRequest, xDeduplicationId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
postApiV1CashRequestRedemptionAccountid: (accountId: string, redemptionRequest: RedemptionRequest, xDeduplicationId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -323,4 +323,4 @@ export declare const CashApiFp: (configuration?: Configuration) => { | ||
postApiV1CashAccount(createAccountRequest: CreateAccountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>>; | ||
postApiV1CashRequestDepositAccountid(accountId: string, depositRequest: DepositRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DepositResponse>>; | ||
postApiV1CashRequestRedemptionAccountid(accountId: string, redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedemptionResponse>>; | ||
postApiV1CashRequestDepositAccountid(accountId: string, depositRequest: DepositRequest, xDeduplicationId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DepositResponse>>; | ||
postApiV1CashRequestRedemptionAccountid(accountId: string, redemptionRequest: RedemptionRequest, xDeduplicationId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedemptionResponse>>; | ||
}; | ||
@@ -335,4 +335,4 @@ export declare const CashApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
postApiV1CashAccount(createAccountRequest: CreateAccountRequest, options?: any): AxiosPromise<Account>; | ||
postApiV1CashRequestDepositAccountid(accountId: string, depositRequest: DepositRequest, options?: any): AxiosPromise<DepositResponse>; | ||
postApiV1CashRequestRedemptionAccountid(accountId: string, redemptionRequest: RedemptionRequest, options?: any): AxiosPromise<RedemptionResponse>; | ||
postApiV1CashRequestDepositAccountid(accountId: string, depositRequest: DepositRequest, xDeduplicationId?: string, options?: any): AxiosPromise<DepositResponse>; | ||
postApiV1CashRequestRedemptionAccountid(accountId: string, redemptionRequest: RedemptionRequest, xDeduplicationId?: string, options?: any): AxiosPromise<RedemptionResponse>; | ||
}; | ||
@@ -347,4 +347,4 @@ export declare class CashApi extends BaseAPI { | ||
postApiV1CashAccount(createAccountRequest: CreateAccountRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Account, any>>; | ||
postApiV1CashRequestDepositAccountid(accountId: string, depositRequest: DepositRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<DepositResponse, any>>; | ||
postApiV1CashRequestRedemptionAccountid(accountId: string, redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<RedemptionResponse, any>>; | ||
postApiV1CashRequestDepositAccountid(accountId: string, depositRequest: DepositRequest, xDeduplicationId?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<DepositResponse, any>>; | ||
postApiV1CashRequestRedemptionAccountid(accountId: string, redemptionRequest: RedemptionRequest, xDeduplicationId?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<RedemptionResponse, any>>; | ||
} | ||
@@ -384,12 +384,12 @@ export declare const FixedDepositApiAxiosParamCreator: (configuration?: Configuration) => { | ||
export declare const TransactionsApiAxiosParamCreator: (configuration?: Configuration) => { | ||
getApiV1TransactionsUserid: (userId: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
getApiV1TransactionsUserid: (userId: string, limit?: number, offset?: number, transactionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
export declare const TransactionsApiFp: (configuration?: Configuration) => { | ||
getApiV1TransactionsUserid(userId: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResultUserTransaction>>; | ||
getApiV1TransactionsUserid(userId: string, limit?: number, offset?: number, transactionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResultUserTransaction>>; | ||
}; | ||
export declare const TransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
getApiV1TransactionsUserid(userId: string, limit?: number, offset?: number, options?: any): AxiosPromise<PaginationResultUserTransaction>; | ||
getApiV1TransactionsUserid(userId: string, limit?: number, offset?: number, transactionId?: string, options?: any): AxiosPromise<PaginationResultUserTransaction>; | ||
}; | ||
export declare class TransactionsApi extends BaseAPI { | ||
getApiV1TransactionsUserid(userId: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PaginationResultUserTransaction, any>>; | ||
getApiV1TransactionsUserid(userId: string, limit?: number, offset?: number, transactionId?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PaginationResultUserTransaction, any>>; | ||
} | ||
@@ -396,0 +396,0 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => { |
@@ -207,3 +207,3 @@ "use strict"; | ||
}), | ||
postApiV1CashRequestDepositAccountid: (accountId, depositRequest, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
postApiV1CashRequestDepositAccountid: (accountId, depositRequest, xDeduplicationId, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
(0, common_1.assertParamExists)('postApiV1CashRequestDepositAccountid', 'accountId', accountId); | ||
@@ -223,2 +223,5 @@ (0, common_1.assertParamExists)('postApiV1CashRequestDepositAccountid', 'depositRequest', depositRequest); | ||
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); | ||
if (xDeduplicationId != null) { | ||
localVarHeaderParameter['X-Deduplication-Id'] = String(xDeduplicationId); | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
@@ -234,3 +237,3 @@ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
}), | ||
postApiV1CashRequestRedemptionAccountid: (accountId, redemptionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
postApiV1CashRequestRedemptionAccountid: (accountId, redemptionRequest, xDeduplicationId, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
(0, common_1.assertParamExists)('postApiV1CashRequestRedemptionAccountid', 'accountId', accountId); | ||
@@ -250,2 +253,5 @@ (0, common_1.assertParamExists)('postApiV1CashRequestRedemptionAccountid', 'redemptionRequest', redemptionRequest); | ||
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); | ||
if (xDeduplicationId != null) { | ||
localVarHeaderParameter['X-Deduplication-Id'] = String(xDeduplicationId); | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
@@ -330,6 +336,6 @@ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
}, | ||
postApiV1CashRequestDepositAccountid(accountId, depositRequest, options) { | ||
postApiV1CashRequestDepositAccountid(accountId, depositRequest, xDeduplicationId, options) { | ||
var _a, _b, _c; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.postApiV1CashRequestDepositAccountid(accountId, depositRequest, options); | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.postApiV1CashRequestDepositAccountid(accountId, depositRequest, xDeduplicationId, options); | ||
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; | ||
@@ -340,6 +346,6 @@ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CashApi.postApiV1CashRequestDepositAccountid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; | ||
}, | ||
postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, options) { | ||
postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, xDeduplicationId, options) { | ||
var _a, _b, _c; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, options); | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, xDeduplicationId, options); | ||
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; | ||
@@ -377,7 +383,7 @@ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CashApi.postApiV1CashRequestRedemptionAccountid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; | ||
}, | ||
postApiV1CashRequestDepositAccountid(accountId, depositRequest, options) { | ||
return localVarFp.postApiV1CashRequestDepositAccountid(accountId, depositRequest, options).then((request) => request(axios, basePath)); | ||
postApiV1CashRequestDepositAccountid(accountId, depositRequest, xDeduplicationId, options) { | ||
return localVarFp.postApiV1CashRequestDepositAccountid(accountId, depositRequest, xDeduplicationId, options).then((request) => request(axios, basePath)); | ||
}, | ||
postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, options) { | ||
return localVarFp.postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, options).then((request) => request(axios, basePath)); | ||
postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, xDeduplicationId, options) { | ||
return localVarFp.postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, xDeduplicationId, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -409,7 +415,7 @@ }; | ||
} | ||
postApiV1CashRequestDepositAccountid(accountId, depositRequest, options) { | ||
return (0, exports.CashApiFp)(this.configuration).postApiV1CashRequestDepositAccountid(accountId, depositRequest, options).then((request) => request(this.axios, this.basePath)); | ||
postApiV1CashRequestDepositAccountid(accountId, depositRequest, xDeduplicationId, options) { | ||
return (0, exports.CashApiFp)(this.configuration).postApiV1CashRequestDepositAccountid(accountId, depositRequest, xDeduplicationId, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, options) { | ||
return (0, exports.CashApiFp)(this.configuration).postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, options).then((request) => request(this.axios, this.basePath)); | ||
postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, xDeduplicationId, options) { | ||
return (0, exports.CashApiFp)(this.configuration).postApiV1CashRequestRedemptionAccountid(accountId, redemptionRequest, xDeduplicationId, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -611,3 +617,3 @@ } | ||
return { | ||
getApiV1TransactionsUserid: (userId, limit, offset, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
getApiV1TransactionsUserid: (userId, limit, offset, transactionId, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
(0, common_1.assertParamExists)('getApiV1TransactionsUserid', 'userId', userId); | ||
@@ -632,2 +638,5 @@ const localVarPath = `/api/v1/transactions/{userId}` | ||
} | ||
if (transactionId !== undefined) { | ||
localVarQueryParameter['transactionId'] = transactionId; | ||
} | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
@@ -647,6 +656,6 @@ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
return { | ||
getApiV1TransactionsUserid(userId, limit, offset, options) { | ||
getApiV1TransactionsUserid(userId, limit, offset, transactionId, options) { | ||
var _a, _b, _c; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiV1TransactionsUserid(userId, limit, offset, options); | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiV1TransactionsUserid(userId, limit, offset, transactionId, options); | ||
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; | ||
@@ -663,4 +672,4 @@ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TransactionsApi.getApiV1TransactionsUserid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; | ||
return { | ||
getApiV1TransactionsUserid(userId, limit, offset, options) { | ||
return localVarFp.getApiV1TransactionsUserid(userId, limit, offset, options).then((request) => request(axios, basePath)); | ||
getApiV1TransactionsUserid(userId, limit, offset, transactionId, options) { | ||
return localVarFp.getApiV1TransactionsUserid(userId, limit, offset, transactionId, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -671,4 +680,4 @@ }; | ||
class TransactionsApi extends base_1.BaseAPI { | ||
getApiV1TransactionsUserid(userId, limit, offset, options) { | ||
return (0, exports.TransactionsApiFp)(this.configuration).getApiV1TransactionsUserid(userId, limit, offset, options).then((request) => request(this.axios, this.basePath)); | ||
getApiV1TransactionsUserid(userId, limit, offset, transactionId, options) { | ||
return (0, exports.TransactionsApiFp)(this.configuration).getApiV1TransactionsUserid(userId, limit, offset, transactionId, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -675,0 +684,0 @@ } |
{ | ||
"name": "@triviumcapital/trivium-ts-sdk", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Typescript Axios Client SDK for trivium APIs", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92781
1469