@basis-theory/basis-theory-js 1.46.0 → 1.49.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
|
@@ -6,6 +6,8 @@ interface BaseElement<UpdateOptions, ElementEvents> {
|
|
|
6
6
|
mount(selector: string): Promise<void>;
|
|
7
7
|
update(options: UpdateOptions): Promise<void>;
|
|
8
8
|
clear(): void;
|
|
9
|
+
focus(): void;
|
|
10
|
+
blur(): void;
|
|
9
11
|
unmount(): void;
|
|
10
12
|
on<T extends EventType>(eventType: T, listener: ElementEventListener<ElementEvents, T>): Subscription;
|
|
11
13
|
}
|
|
@@ -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;
|
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
|
}>;
|