@basis-theory/basis-theory-js 1.44.0 → 1.47.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "1.44.0",
3
+ "version": "1.47.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -30,11 +30,12 @@
30
30
  "is-svg": "^4.2.2",
31
31
  "yargs-parser": "^21.0.0",
32
32
  "mem": "^4.0.0",
33
- "semver-regex": "^3.1.3",
33
+ "semver-regex": "^3.1.4",
34
34
  "tmpl": "^1.0.5",
35
35
  "tar": "^4.4.19",
36
36
  "minimist": "^1.2.6",
37
- "json-schema": "^0.4.0"
37
+ "json-schema": "^0.4.0",
38
+ "terser": "^5.14.2"
38
39
  },
39
40
  "engines": {
40
41
  "node": ">=10.12.0"
@@ -1,5 +1,5 @@
1
1
  import type { Auditable } from './shared';
2
- declare const APPLICATION_TYPES: readonly ["server_to_server", "public", "elements", "management"];
2
+ declare const APPLICATION_TYPES: readonly ["private", "public", "management"];
3
3
  declare type ApplicationType = typeof APPLICATION_TYPES[number];
4
4
  interface Application extends Auditable {
5
5
  id: string;
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.APPLICATION_TYPES = void 0;
7
- const APPLICATION_TYPES = ['server_to_server', 'public', 'elements', 'management'];
7
+ const APPLICATION_TYPES = ['private', 'public', 'management'];
8
8
  exports.APPLICATION_TYPES = APPLICATION_TYPES;
@@ -0,0 +1,5 @@
1
+ interface Bank {
2
+ routingNumber: string;
3
+ accountNumber: string;
4
+ }
5
+ export type { Bank };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,7 @@
1
+ interface Card {
2
+ number: string;
3
+ expirationMonth?: number;
4
+ expirationYear?: number;
5
+ cvc?: string;
6
+ }
7
+ export type { Card };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -8,3 +8,5 @@ export * from './reactors';
8
8
  export * from './permissions';
9
9
  export * from './tokenize';
10
10
  export * from './proxies';
11
+ export * from './banks';
12
+ export * from './cards';
@@ -132,4 +132,30 @@ Object.keys(_proxies).forEach(function (key) {
132
132
  return _proxies[key];
133
133
  }
134
134
  });
135
+ });
136
+
137
+ var _banks = require("./banks");
138
+
139
+ Object.keys(_banks).forEach(function (key) {
140
+ if (key === "default" || key === "__esModule") return;
141
+ if (key in exports && exports[key] === _banks[key]) return;
142
+ Object.defineProperty(exports, key, {
143
+ enumerable: true,
144
+ get: function () {
145
+ return _banks[key];
146
+ }
147
+ });
148
+ });
149
+
150
+ var _cards = require("./cards");
151
+
152
+ Object.keys(_cards).forEach(function (key) {
153
+ if (key === "default" || key === "__esModule") return;
154
+ if (key in exports && exports[key] === _cards[key]) return;
155
+ Object.defineProperty(exports, key, {
156
+ enumerable: true,
157
+ get: function () {
158
+ return _cards[key];
159
+ }
160
+ });
135
161
  });
@@ -31,17 +31,18 @@ interface TokenPrivacy {
31
31
  interface Token<DataType = Primitive> extends TokenBase {
32
32
  data: TokenData<DataType>;
33
33
  privacy?: TokenPrivacy;
34
+ container?: string;
34
35
  encryption?: TokenEncryption;
35
36
  searchIndexes?: string[];
36
37
  fingerprintExpression?: string;
37
38
  mask?: TokenMask;
38
39
  expiresAt?: string;
39
40
  }
40
- declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'privacy' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression' | 'mask' | 'expiresAt'> & {
41
+ declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'privacy' | 'container' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression' | 'mask' | 'expiresAt'> & {
41
42
  deduplicateToken?: boolean;
42
43
  id?: string;
43
44
  };
44
- declare type UpdateToken<DataType = Primitive> = Partial<Pick<Token<DataType>, 'data' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression' | 'mask'> & {
45
+ declare type UpdateToken<DataType = Primitive> = Partial<Pick<Token<DataType>, 'data' | 'container' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression' | 'mask'> & {
45
46
  privacy: Omit<TokenPrivacy, 'classification'>;
46
47
  deduplicateToken: boolean;
47
48
  }>;