@basis-theory/basis-theory-js
Advanced tools
Comparing version 1.25.1 to 1.26.0
@@ -7,3 +7,2 @@ import type { AtomicBank, AtomicReactRequest, ReactResponse, UpdateAtomicBank } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
update(id: string, request: UpdateAtomicBank, options?: RequestOptions | undefined): Promise<AtomicBank>; | ||
retrieveDecrypted(id: string, options?: RequestOptions | undefined): Promise<AtomicBank>; | ||
react(tokenId: string, request: AtomicReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>; | ||
@@ -10,0 +9,0 @@ readonly client: import("axios").AxiosInstance; |
@@ -29,6 +29,2 @@ "use strict"; | ||
retrieveDecrypted(id, options) { | ||
return this.client.get(`/${id}/decrypt`, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor); | ||
} | ||
react(tokenId, request, options) { | ||
@@ -35,0 +31,0 @@ return this.client.post(`/${tokenId}/react`, request, (0, _common.createRequestConfig)(options, { |
@@ -7,3 +7,2 @@ import type { AtomicCard, AtomicReactRequest, ReactResponse, UpdateAtomicCard } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
update(id: string, request: UpdateAtomicCard, options?: RequestOptions | undefined): Promise<AtomicCard>; | ||
retrieveDecrypted(id: string, options?: RequestOptions | undefined): Promise<AtomicCard>; | ||
react(tokenId: string, request: AtomicReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>; | ||
@@ -10,0 +9,0 @@ readonly client: import("axios").AxiosInstance; |
@@ -31,6 +31,2 @@ "use strict"; | ||
retrieveDecrypted(id, options) { | ||
return this.client.get(`/${id}/decrypt`, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor); | ||
} | ||
react(tokenId, request, options) { | ||
@@ -37,0 +33,0 @@ return this.client.post(`/${tokenId}/react`, request, (0, _common.createRequestConfig)(options, { |
{ | ||
"name": "@basis-theory/basis-theory-js", | ||
"version": "1.25.1", | ||
"version": "1.26.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.8.0", | ||
"@basis-theory/basis-theory-elements-interfaces": "^4.0.0", | ||
"axios": "^0.21.2", | ||
@@ -21,0 +21,0 @@ "camelcase-keys": "^6.2.2", |
import type { Token, CreateToken } from '@basis-theory/basis-theory-elements-interfaces/models'; | ||
import type { PaginatedList, RequestOptions, ListDecryptedTokensQuery, ListTokensQuery, SearchTokensRequest } from '@basis-theory/basis-theory-elements-interfaces/sdk'; | ||
import type { PaginatedList, RequestOptions, ListTokensQuery, SearchTokensRequest } from '@basis-theory/basis-theory-elements-interfaces/sdk'; | ||
import { BasisTheoryServiceOptions } from '../service'; | ||
@@ -7,4 +7,2 @@ export declare const BasisTheoryTokens: { | ||
retrieve(id: string, options?: RequestOptions): Promise<Token>; | ||
retrieveDecrypted(id: string, options?: RequestOptions): Promise<Token>; | ||
listDecrypted(query?: ListDecryptedTokensQuery, options?: RequestOptions): Promise<PaginatedList<Token>>; | ||
createAssociation(parentId: string, childId: string, options?: RequestOptions | undefined): Promise<void>; | ||
@@ -11,0 +9,0 @@ deleteAssociation(parentId: string, childId: string, options?: RequestOptions | undefined): Promise<void>; |
@@ -31,12 +31,2 @@ "use strict"; | ||
retrieveDecrypted(id, options = {}) { | ||
const url = `/${id}/decrypt`; | ||
return this.client.get(url, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor); | ||
} | ||
listDecrypted(query = {}, options = {}) { | ||
const url = `/decrypt${(0, _common.getQueryParams)(query)}`; | ||
return this.client.get(url, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor); | ||
} | ||
async createAssociation(parentId, childId, options) { | ||
@@ -43,0 +33,0 @@ const url = `/${parentId}/children/${childId}`; |
88977
1662
+ Added@basis-theory/basis-theory-elements-interfaces@4.0.1(transitive)
- Removed@basis-theory/basis-theory-elements-interfaces@3.8.0(transitive)
Updated@basis-theory/basis-theory-elements-interfaces@^4.0.0