@rebilly/framepay 5.218.5 → 5.218.6
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/dist/index.d.ts +26 -8
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="applepayjs" />
|
|
2
|
+
/// <reference types="googlepay" />
|
|
3
|
+
|
|
1
4
|
import type { coreComponents } from 'rebilly-js-sdk/types';
|
|
2
|
-
import EventEmitter from 'eventemitter3';
|
|
3
5
|
import type { reportsComponents } from 'rebilly-js-sdk/types';
|
|
4
|
-
import type { RiskMetadata } from '@rebilly/risk-data-collector';
|
|
5
6
|
|
|
6
7
|
export declare interface AddressData {
|
|
7
8
|
countryCode?: string;
|
|
@@ -43,7 +44,7 @@ export declare class ApplePayElement {
|
|
|
43
44
|
on: ApplePayElementBusOn;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
export declare type ApplePayElementBusOn = <T extends keyof ApplePayElementEventMap>(event: T, fn: (...args:
|
|
47
|
+
export declare type ApplePayElementBusOn = <T extends keyof ApplePayElementEventMap>(event: T, fn: (...args: ApplePayElementEventMap[T]) => void) => void;
|
|
47
48
|
|
|
48
49
|
export declare interface ApplePayElementEventMap {
|
|
49
50
|
ready: [];
|
|
@@ -238,7 +239,9 @@ export declare interface ClassesConfig {
|
|
|
238
239
|
googlePay?: string;
|
|
239
240
|
}
|
|
240
241
|
|
|
241
|
-
export declare type CompositeTokenFields = (coreComponents['schemas']['CompositeToken'] extends infer Variant ? Variant extends unknown ? (member: Partial<Variant>) => void : never : never) extends (member: infer Merged) => void ? Merged : never
|
|
242
|
+
export declare type CompositeTokenFields = Omit<(coreComponents['schemas']['CompositeToken'] extends infer Variant ? Variant extends unknown ? (member: Partial<Variant>) => void : never : never) extends (member: infer Merged) => void ? Merged : never, 'method'> & {
|
|
243
|
+
method?: coreComponents['schemas']['CompositeToken']['method'];
|
|
244
|
+
};
|
|
242
245
|
|
|
243
246
|
/**
|
|
244
247
|
* The configuration input directly provided by merchants.
|
|
@@ -582,9 +585,9 @@ export declare const FRAMEPAY_EVENTS: {
|
|
|
582
585
|
readonly configurationUpdated: "configuration-updated";
|
|
583
586
|
};
|
|
584
587
|
|
|
585
|
-
export declare type FramepayBusOff = <T extends keyof FramepayEventMap>(event: T, fn: (...args:
|
|
588
|
+
export declare type FramepayBusOff = <T extends keyof FramepayEventMap>(event: T, fn: (...args: FramepayEventMap[T]) => void) => void;
|
|
586
589
|
|
|
587
|
-
export declare type FramepayBusOn = <T extends keyof FramepayEventMap>(event: T, fn: (...args:
|
|
590
|
+
export declare type FramepayBusOn = <T extends keyof FramepayEventMap>(event: T, fn: (...args: FramepayEventMap[T]) => void) => void;
|
|
588
591
|
|
|
589
592
|
export declare interface FramepayError {
|
|
590
593
|
code: string;
|
|
@@ -717,7 +720,7 @@ export declare interface IconConfig {
|
|
|
717
720
|
color?: string;
|
|
718
721
|
}
|
|
719
722
|
|
|
720
|
-
export declare type IframeElementBusOn = <T extends keyof IframeElementEventMap>(event: T, fn: (...args:
|
|
723
|
+
export declare type IframeElementBusOn = <T extends keyof IframeElementEventMap>(event: T, fn: (...args: IframeElementEventMap[T]) => void) => void;
|
|
721
724
|
|
|
722
725
|
export declare interface IframeElementEventMap {
|
|
723
726
|
[FieldNotification.TYPES.ready]: [];
|
|
@@ -933,7 +936,21 @@ export declare interface ReadyToPayObject {
|
|
|
933
936
|
feature?: Record<string, string>;
|
|
934
937
|
}
|
|
935
938
|
|
|
936
|
-
export
|
|
939
|
+
export declare interface RiskMetadata {
|
|
940
|
+
fingerprint: string | null;
|
|
941
|
+
extraData: {
|
|
942
|
+
kountFraudSessionId: string | null;
|
|
943
|
+
};
|
|
944
|
+
browserData: {
|
|
945
|
+
colorDepth: number | null;
|
|
946
|
+
isJavaEnabled: boolean | null;
|
|
947
|
+
language: string | null;
|
|
948
|
+
screenHeight: number | null;
|
|
949
|
+
screenWidth: number | null;
|
|
950
|
+
timeZoneOffset: number;
|
|
951
|
+
isAdBlockEnabled: boolean | null;
|
|
952
|
+
};
|
|
953
|
+
}
|
|
937
954
|
|
|
938
955
|
export declare type RuntimeDelegate<T> = (externalPayload: ExternalPayload) => T | Promise<T>;
|
|
939
956
|
|
|
@@ -1037,6 +1054,7 @@ export declare const supportedExtraPayPalConfigs: string[];
|
|
|
1037
1054
|
|
|
1038
1055
|
export declare type TokenData = CompositeTokenFields & {
|
|
1039
1056
|
id: string;
|
|
1057
|
+
method: coreComponents['schemas']['CompositeToken']['method'];
|
|
1040
1058
|
paymentInstrument: NonNullable<CompositeTokenFields['paymentInstrument']> & {
|
|
1041
1059
|
encryptedCvv?: string;
|
|
1042
1060
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebilly/framepay",
|
|
3
|
-
"version": "5.218.
|
|
3
|
+
"version": "5.218.6",
|
|
4
4
|
"description": "A wrapper to load Rebilly's FramePay library and provide TypeScript types",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@types/applepayjs": "^14.0.9",
|
|
31
|
-
"@types/googlepay": "^0.7.6"
|
|
31
|
+
"@types/googlepay": "^0.7.6",
|
|
32
|
+
"rebilly-js-sdk": "*"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@rebilly/eslint-config": "*",
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"vite-plugin-dts": "4.5.0"
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
42
|
-
"build": "vite build",
|
|
43
|
+
"build": "vite build && tsc -p test/check-build-types.tsconfig.json",
|
|
43
44
|
"type:check": "tsc --noEmit"
|
|
44
45
|
}
|
|
45
46
|
}
|