@basis-theory/basis-theory-js
Advanced tools
Comparing version 1.22.2 to 1.23.0
@@ -1,2 +0,2 @@ | ||
import type { AtomicBank, ReactRequest, ReactResponse, UpdateAtomicBank } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
import type { AtomicBank, AtomicReactRequest, ReactResponse, UpdateAtomicBank } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
import type { PaginatedQuery, RequestOptions } from '@basis-theory/basis-theory-elements-interfaces/sdk'; | ||
@@ -8,3 +8,3 @@ import type { BasisTheoryServiceOptions } from '../../service'; | ||
retrieveDecrypted(id: string, options?: RequestOptions | undefined): Promise<AtomicBank>; | ||
react(id: string, request: ReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>; | ||
react(tokenId: string, request: AtomicReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>; | ||
readonly client: import("axios").AxiosInstance; | ||
@@ -11,0 +11,0 @@ }; |
@@ -33,4 +33,4 @@ "use strict"; | ||
react(id, request, options) { | ||
return this.client.post(`/${id}/react`, request, (0, _common.createRequestConfig)(options, { | ||
react(tokenId, request, options) { | ||
return this.client.post(`/${tokenId}/react`, request, (0, _common.createRequestConfig)(options, { | ||
transformRequest: _common.transformAtomicReactionRequestSnakeCase, | ||
@@ -37,0 +37,0 @@ transformResponse: _common.proxyRaw |
@@ -1,2 +0,2 @@ | ||
import type { AtomicCard, ReactRequest, ReactResponse, UpdateAtomicCard } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
import type { AtomicCard, AtomicReactRequest, ReactResponse, UpdateAtomicCard } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
import type { PaginatedQuery, RequestOptions } from '@basis-theory/basis-theory-elements-interfaces/sdk'; | ||
@@ -8,3 +8,3 @@ import type { BasisTheoryServiceOptions } from '../../service'; | ||
retrieveDecrypted(id: string, options?: RequestOptions | undefined): Promise<AtomicCard>; | ||
react(id: string, request: ReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>; | ||
react(tokenId: string, request: AtomicReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>; | ||
readonly client: import("axios").AxiosInstance; | ||
@@ -11,0 +11,0 @@ }; |
@@ -35,4 +35,4 @@ "use strict"; | ||
react(id, request, options) { | ||
return this.client.post(`/${id}/react`, request, (0, _common.createRequestConfig)(options, { | ||
react(tokenId, request, options) { | ||
return this.client.post(`/${tokenId}/react`, request, (0, _common.createRequestConfig)(options, { | ||
transformRequest: _common.transformAtomicReactionRequestSnakeCase, | ||
@@ -39,0 +39,0 @@ transformResponse: _common.proxyRaw |
{ | ||
"name": "@basis-theory/basis-theory-js", | ||
"version": "1.22.2", | ||
"version": "1.23.0", | ||
"repository": "https://github.com/Basis-Theory/basis-theory-js", | ||
@@ -18,3 +18,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@basis-theory/basis-theory-elements-interfaces": "^3.4.0", | ||
"@basis-theory/basis-theory-elements-interfaces": "^3.5.0", | ||
"axios": "^0.21.2", | ||
@@ -21,0 +21,0 @@ "camelcase-keys": "^6.2.2", |
@@ -7,3 +7,3 @@ import type { ReactorFormula } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
}; | ||
} & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Create<ReactorFormula, Pick<ReactorFormula, "name" | "type" | "code" | "description" | "sourceTokenType" | "icon" | "configuration" | "requestParameters">>) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Retrieve<ReactorFormula>) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Update<ReactorFormula, Pick<ReactorFormula, "name" | "type" | "code" | "description" | "sourceTokenType" | "icon" | "configuration" | "requestParameters">>) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Delete) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").List<ReactorFormula, ListReactorFormulaQuery>); | ||
} & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Create<ReactorFormula, Pick<ReactorFormula, "name" | "type" | "code" | "description" | "icon" | "configuration" | "requestParameters">>) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Retrieve<ReactorFormula>) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Update<ReactorFormula, Pick<ReactorFormula, "name" | "type" | "code" | "description" | "icon" | "configuration" | "requestParameters">>) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").Delete) & (new (...args: any[]) => import("@basis-theory/basis-theory-elements-interfaces/sdk/services/shared").List<ReactorFormula, ListReactorFormulaQuery>); | ||
export declare type BasisTheoryReactorFormulas = InstanceType<typeof BasisTheoryReactorFormulas>; |
@@ -1,6 +0,7 @@ | ||
import type { Reactor, CreateReactor } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
import type { ListReactorQuery } from '@basis-theory/basis-theory-elements-interfaces/sdk'; | ||
import type { Reactor, CreateReactor, ReactResponse } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
import type { ListReactorQuery, ReactRequest, RequestOptions } from '@basis-theory/basis-theory-elements-interfaces/sdk'; | ||
import type { BasisTheoryServiceOptions } from '../service'; | ||
export declare const BasisTheoryReactors: { | ||
new (options: BasisTheoryServiceOptions): { | ||
react(reactorId: string, request: ReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>; | ||
readonly client: import("axios").AxiosInstance; | ||
@@ -7,0 +8,0 @@ }; |
@@ -8,2 +8,4 @@ "use strict"; | ||
var _common = require("../common"); | ||
var _utils = require("../common/utils"); | ||
@@ -26,3 +28,10 @@ | ||
react(reactorId, request, options) { | ||
return this.client.post(`/${reactorId}/react`, request, (0, _common.createRequestConfig)(options, { | ||
transformRequest: _common.proxyRaw, | ||
transformResponse: _common.proxyRaw | ||
})).then(_common.dataExtractor); | ||
} | ||
}).create().retrieve().update().delete().list().build(); | ||
exports.BasisTheoryReactors = BasisTheoryReactors; |
87571
1646