@basis-theory/basis-theory-js 1.45.0 → 1.48.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 +1 -1
- package/types/elements/events.d.ts +1 -0
- package/types/models/banks.d.ts +5 -0
- package/types/models/banks.js +1 -0
- package/types/models/cards.d.ts +7 -0
- package/types/models/cards.js +1 -0
- package/types/models/index.d.ts +2 -0
- package/types/models/index.js +26 -0
- package/types/models/tokens.d.ts +3 -2
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ declare type ChangeEvent = BaseEvent<'change'> & {
|
|
|
11
11
|
};
|
|
12
12
|
declare type CardChangeEvent = ChangeEvent & {
|
|
13
13
|
cardBrand: Brand;
|
|
14
|
+
cardLast4?: string;
|
|
14
15
|
};
|
|
15
16
|
declare type InputFocusEvent = BaseEvent<'focus'> & Targeted;
|
|
16
17
|
declare type InputBlurEvent = BaseEvent<'blur'> & Targeted;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/types/models/index.d.ts
CHANGED
package/types/models/index.js
CHANGED
|
@@ -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
|
});
|
package/types/models/tokens.d.ts
CHANGED
|
@@ -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
|
}>;
|