@basis-theory/basis-theory-js 1.25.1 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ import type { BasisTheoryServiceOptions } from '../../service';
4
4
  export declare const BasisTheoryAtomicBanks: {
5
5
  new (options: BasisTheoryServiceOptions): {
6
6
  update(id: string, request: UpdateAtomicBank, options?: RequestOptions | undefined): Promise<AtomicBank>;
7
- retrieveDecrypted(id: string, options?: RequestOptions | undefined): Promise<AtomicBank>;
8
7
  react(tokenId: string, request: AtomicReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>;
9
8
  readonly client: import("axios").AxiosInstance;
10
9
  };
@@ -26,10 +26,6 @@ const BasisTheoryAtomicBanks = new _CrudBuilder.CrudBuilder(class BasisTheoryAto
26
26
  return this.client.patch(`/${id}`, request, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor);
27
27
  }
28
28
 
29
- retrieveDecrypted(id, options) {
30
- return this.client.get(`/${id}/decrypt`, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor);
31
- }
32
-
33
29
  react(tokenId, request, options) {
34
30
  return this.client.post(`/${tokenId}/react`, request, (0, _common.createRequestConfig)(options, {
35
31
  transformRequest: _common.transformAtomicReactionRequestSnakeCase,
@@ -4,7 +4,6 @@ import type { BasisTheoryServiceOptions } from '../../service';
4
4
  export declare const BasisTheoryAtomicCards: {
5
5
  new (options: BasisTheoryServiceOptions): {
6
6
  update(id: string, request: UpdateAtomicCard, options?: RequestOptions | undefined): Promise<AtomicCard>;
7
- retrieveDecrypted(id: string, options?: RequestOptions | undefined): Promise<AtomicCard>;
8
7
  react(tokenId: string, request: AtomicReactRequest, options?: RequestOptions | undefined): Promise<ReactResponse>;
9
8
  readonly client: import("axios").AxiosInstance;
10
9
  };
@@ -28,10 +28,6 @@ const BasisTheoryAtomicCards = new _CrudBuilder.CrudBuilder(class BasisTheoryAto
28
28
  return this.client.patch(`/${id}`, request, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor);
29
29
  }
30
30
 
31
- retrieveDecrypted(id, options) {
32
- return this.client.get(`/${id}/decrypt`, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor);
33
- }
34
-
35
31
  react(tokenId, request, options) {
36
32
  return this.client.post(`/${tokenId}/react`, request, (0, _common.createRequestConfig)(options, {
37
33
  transformRequest: _common.transformAtomicReactionRequestSnakeCase,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "1.25.1",
3
+ "version": "1.26.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,7 +15,7 @@
15
15
  "!*.bundle.js"
16
16
  ],
17
17
  "dependencies": {
18
- "@basis-theory/basis-theory-elements-interfaces": "^3.8.0",
18
+ "@basis-theory/basis-theory-elements-interfaces": "^4.0.0",
19
19
  "axios": "^0.21.2",
20
20
  "camelcase-keys": "^6.2.2",
21
21
  "os": "^0.1.2",
@@ -1,11 +1,9 @@
1
1
  import type { Token, CreateToken } from '@basis-theory/basis-theory-elements-interfaces/models';
2
- import type { PaginatedList, RequestOptions, ListDecryptedTokensQuery, ListTokensQuery, SearchTokensRequest } from '@basis-theory/basis-theory-elements-interfaces/sdk';
2
+ import type { PaginatedList, RequestOptions, ListTokensQuery, SearchTokensRequest } from '@basis-theory/basis-theory-elements-interfaces/sdk';
3
3
  import { BasisTheoryServiceOptions } from '../service';
4
4
  export declare const BasisTheoryTokens: {
5
5
  new (options: BasisTheoryServiceOptions): {
6
6
  retrieve(id: string, options?: RequestOptions): Promise<Token>;
7
- retrieveDecrypted(id: string, options?: RequestOptions): Promise<Token>;
8
- listDecrypted(query?: ListDecryptedTokensQuery, options?: RequestOptions): Promise<PaginatedList<Token>>;
9
7
  createAssociation(parentId: string, childId: string, options?: RequestOptions | undefined): Promise<void>;
10
8
  deleteAssociation(parentId: string, childId: string, options?: RequestOptions | undefined): Promise<void>;
11
9
  createChild(parentId: string, token: CreateToken, options?: RequestOptions | undefined): Promise<Token>;
@@ -28,16 +28,6 @@ const BasisTheoryTokens = new _CrudBuilder.CrudBuilder(class BasisTheoryTokens e
28
28
  return this.client.get(url, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor);
29
29
  }
30
30
 
31
- retrieveDecrypted(id, options = {}) {
32
- const url = `/${id}/decrypt`;
33
- return this.client.get(url, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor);
34
- }
35
-
36
- listDecrypted(query = {}, options = {}) {
37
- const url = `/decrypt${(0, _common.getQueryParams)(query)}`;
38
- return this.client.get(url, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor);
39
- }
40
-
41
31
  async createAssociation(parentId, childId, options) {
42
32
  const url = `/${parentId}/children/${childId}`;
43
33
  await this.client.post(url, {}, (0, _common.createRequestConfig)(options));