@coinflowlabs/vue 1.10.0 → 1.11.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/README.md +5 -0
- package/dist/coinflow-vue.js +3041 -2946
- package/dist/coinflow-vue.umd.cjs +10 -10
- package/dist/lib/common/CoinflowProtectionInit.d.ts +5 -0
- package/dist/lib/common/CoinflowProtectionSession.d.ts +16 -0
- package/dist/lib/common/CoinflowProtectionSession.native.d.ts +3 -0
- package/dist/lib/common/CoinflowPurchaseProtectionHeaders.d.ts +7 -0
- package/dist/lib/common/CoinflowUtils.d.ts +6 -0
- package/dist/lib/common/NSure.d.ts +2 -2
- package/dist/lib/common/NSure.native.d.ts +2 -2
- package/dist/lib/common/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CoinflowEnvs } from './CoinflowTypes';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
Verisoul?: {
|
|
5
|
+
session: () => Promise<{
|
|
6
|
+
session_id: string;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare function initProtectionSession({ merchantId, env, }: {
|
|
12
|
+
merchantId: string;
|
|
13
|
+
env: CoinflowEnvs;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
export declare function getProtectionSessionId(): string | null;
|
|
16
|
+
export default getProtectionSessionId;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DEVICE_ID_HEADER = "x-device-id";
|
|
2
|
+
export declare const SESSION_ID_HEADER = "x-session-id";
|
|
3
|
+
export type CoinflowProtectionHeadersType = {
|
|
4
|
+
[DEVICE_ID_HEADER]: string | null;
|
|
5
|
+
[SESSION_ID_HEADER]: string | null;
|
|
6
|
+
};
|
|
7
|
+
export declare function getCoinflowProtectionHeaders(): CoinflowProtectionHeadersType;
|
|
@@ -28,3 +28,9 @@ export interface FullName {
|
|
|
28
28
|
lastName: string;
|
|
29
29
|
}
|
|
30
30
|
export declare function getCustomerName(info: CustomerInfo | undefined): FullName | undefined;
|
|
31
|
+
export declare function recordFrontendError({ event, error, env, merchantId, }: {
|
|
32
|
+
event: string;
|
|
33
|
+
error: any;
|
|
34
|
+
env: CoinflowEnvs;
|
|
35
|
+
merchantId?: string;
|
|
36
|
+
}): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function
|
|
2
|
-
export default
|
|
1
|
+
declare function getNSureDeviceId(): string | null;
|
|
2
|
+
export default getNSureDeviceId;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function
|
|
2
|
-
export default
|
|
1
|
+
declare function getNSureDeviceId(): string | null;
|
|
2
|
+
export default getNSureDeviceId;
|