@paydock/client-sdk 1.112.4-beta → 1.112.5-beta
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 +1 -2
- package/bundles/index.cjs +18 -31
- package/bundles/index.cjs.d.ts +50 -48
- package/bundles/index.mjs +17 -32
- package/bundles/index.mjs.d.ts +50 -48
- package/bundles/types/fraud-prevention/constants.d.ts +4 -0
- package/bundles/types/fraud-prevention/constants.d.ts.map +1 -0
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +0 -1
- package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -1
- package/bundles/types/fraud-prevention/index.d.ts +2 -1
- package/bundles/types/fraud-prevention/index.d.ts.map +1 -1
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +3 -3
- package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -1
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06T14:19:34Z.template.d.ts +2 -0
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06T14:19:34Z.template.d.ts.map +1 -0
- package/bundles/widget.umd.js +18 -31
- package/bundles/widget.umd.js.d.ts +50 -48
- package/bundles/widget.umd.js.min.d.ts +50 -48
- package/bundles/widget.umd.min.js +1 -1
- package/docs/fraud-prevention-examples.md +1 -2
- package/package.json +1 -1
- package/slate.md +1 -2
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-production.template.d.ts +0 -2
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-production.template.d.ts.map +0 -1
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-sandbox.template.d.ts +0 -2
- package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-sandbox.template.d.ts.map +0 -1
|
@@ -2246,6 +2246,53 @@ declare class PaypalCheckoutButton extends CheckoutButton {
|
|
|
2246
2246
|
/** @constructs */ constructor(selector: string, publicKey: string, gatewayId?: string);
|
|
2247
2247
|
}
|
|
2248
2248
|
|
|
2249
|
+
declare const modes: readonly ["live", "test"];
|
|
2250
|
+
type Mode = (typeof modes)[number];
|
|
2251
|
+
declare function isValidMode(val: unknown): val is Mode;
|
|
2252
|
+
|
|
2253
|
+
declare const providers: {
|
|
2254
|
+
readonly forter: "forter";
|
|
2255
|
+
};
|
|
2256
|
+
declare const types: {
|
|
2257
|
+
readonly fingerprintTokenReady: "fingerprintTokenReady";
|
|
2258
|
+
readonly fingerprintTokenError: "fingerprintTokenError";
|
|
2259
|
+
};
|
|
2260
|
+
declare const FraudPreventionEvents: {
|
|
2261
|
+
readonly namespace: "fraudPrevention";
|
|
2262
|
+
readonly types: {
|
|
2263
|
+
readonly fingerprintTokenReady: "fingerprintTokenReady";
|
|
2264
|
+
readonly fingerprintTokenError: "fingerprintTokenError";
|
|
2265
|
+
};
|
|
2266
|
+
readonly providers: {
|
|
2267
|
+
readonly forter: "forter";
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
type FraudPreventionProvider = (typeof providers)[keyof typeof providers];
|
|
2271
|
+
type FraudPreventionEventType = (typeof types)[keyof typeof types];
|
|
2272
|
+
type FraudPreventionEventFingerprintTokenReady = {
|
|
2273
|
+
type: Extract<FraudPreventionEventType, 'fingerprintTokenReady'>;
|
|
2274
|
+
provider: FraudPreventionProvider;
|
|
2275
|
+
payload: {
|
|
2276
|
+
token: string;
|
|
2277
|
+
};
|
|
2278
|
+
};
|
|
2279
|
+
type FraudPreventionEventFingerprintTokenError = {
|
|
2280
|
+
type: Extract<FraudPreventionEventType, 'fingerprintTokenError'>;
|
|
2281
|
+
provider: FraudPreventionProvider;
|
|
2282
|
+
payload: {
|
|
2283
|
+
code: 'unexpected_token_type';
|
|
2284
|
+
message: string;
|
|
2285
|
+
};
|
|
2286
|
+
};
|
|
2287
|
+
type FraudPreventionEvent = FraudPreventionEventFingerprintTokenReady | FraudPreventionEventFingerprintTokenError;
|
|
2288
|
+
interface IFraudPreventionEventMap {
|
|
2289
|
+
fraudPrevention: CustomEvent<FraudPreventionEvent>;
|
|
2290
|
+
}
|
|
2291
|
+
declare global {
|
|
2292
|
+
interface DocumentEventMap extends IFraudPreventionEventMap {
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2249
2296
|
/**
|
|
2250
2297
|
* Configuration options for the Forter Device Agent
|
|
2251
2298
|
*
|
|
@@ -2258,7 +2305,7 @@ declare class PaypalCheckoutButton extends CheckoutButton {
|
|
|
2258
2305
|
type ForterDeviceAgentConfig = {
|
|
2259
2306
|
siteId: string;
|
|
2260
2307
|
csp: boolean;
|
|
2261
|
-
mode:
|
|
2308
|
+
mode: Mode;
|
|
2262
2309
|
};
|
|
2263
2310
|
/**
|
|
2264
2311
|
* A class that manages Forter's device fingerprinting integration.
|
|
@@ -2317,8 +2364,7 @@ declare class ForterDeviceAgent {
|
|
|
2317
2364
|
private emit;
|
|
2318
2365
|
private emitFingerprintTokenWrongTypeError;
|
|
2319
2366
|
private emitFingerprintTokenReady;
|
|
2320
|
-
private
|
|
2321
|
-
private getSandboxScriptContent;
|
|
2367
|
+
private getScriptContent;
|
|
2322
2368
|
private injectScript;
|
|
2323
2369
|
private subscribeSdkEvents;
|
|
2324
2370
|
}
|
|
@@ -2340,7 +2386,6 @@ declare class ForterDeviceAgent {
|
|
|
2340
2386
|
* ```
|
|
2341
2387
|
*/
|
|
2342
2388
|
declare class FraudPreventionService {
|
|
2343
|
-
static readonly modes: readonly ["test", "live"];
|
|
2344
2389
|
private forterDeviceAgent;
|
|
2345
2390
|
/** @constructs */ constructor();
|
|
2346
2391
|
/**
|
|
@@ -2392,49 +2437,6 @@ declare class FraudPreventionService {
|
|
|
2392
2437
|
get forter(): ForterDeviceAgent | null;
|
|
2393
2438
|
}
|
|
2394
2439
|
|
|
2395
|
-
declare const providers: {
|
|
2396
|
-
readonly forter: "forter";
|
|
2397
|
-
};
|
|
2398
|
-
declare const types: {
|
|
2399
|
-
readonly fingerprintTokenReady: "fingerprintTokenReady";
|
|
2400
|
-
readonly fingerprintTokenError: "fingerprintTokenError";
|
|
2401
|
-
};
|
|
2402
|
-
declare const FraudPreventionEvents: {
|
|
2403
|
-
readonly namespace: "fraudPrevention";
|
|
2404
|
-
readonly types: {
|
|
2405
|
-
readonly fingerprintTokenReady: "fingerprintTokenReady";
|
|
2406
|
-
readonly fingerprintTokenError: "fingerprintTokenError";
|
|
2407
|
-
};
|
|
2408
|
-
readonly providers: {
|
|
2409
|
-
readonly forter: "forter";
|
|
2410
|
-
};
|
|
2411
|
-
};
|
|
2412
|
-
type FraudPreventionProvider = (typeof providers)[keyof typeof providers];
|
|
2413
|
-
type FraudPreventionEventType = (typeof types)[keyof typeof types];
|
|
2414
|
-
type FraudPreventionEventFingerprintTokenReady = {
|
|
2415
|
-
type: Extract<FraudPreventionEventType, 'fingerprintTokenReady'>;
|
|
2416
|
-
provider: FraudPreventionProvider;
|
|
2417
|
-
payload: {
|
|
2418
|
-
token: string;
|
|
2419
|
-
};
|
|
2420
|
-
};
|
|
2421
|
-
type FraudPreventionEventFingerprintTokenError = {
|
|
2422
|
-
type: Extract<FraudPreventionEventType, 'fingerprintTokenError'>;
|
|
2423
|
-
provider: FraudPreventionProvider;
|
|
2424
|
-
payload: {
|
|
2425
|
-
code: 'unexpected_token_type';
|
|
2426
|
-
message: string;
|
|
2427
|
-
};
|
|
2428
|
-
};
|
|
2429
|
-
type FraudPreventionEvent = FraudPreventionEventFingerprintTokenReady | FraudPreventionEventFingerprintTokenError;
|
|
2430
|
-
interface IFraudPreventionEventMap {
|
|
2431
|
-
fraudPrevention: CustomEvent<FraudPreventionEvent>;
|
|
2432
|
-
}
|
|
2433
|
-
declare global {
|
|
2434
|
-
interface DocumentEventMap extends IFraudPreventionEventMap {
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
2440
|
/**
|
|
2439
2441
|
*
|
|
2440
2442
|
* Class PaymentSourceWidget include method for for creating iframe url
|
|
@@ -4248,4 +4250,4 @@ declare class PayPalSavePaymentSourceWidget {
|
|
|
4248
4250
|
onCancel(callback?: (data?: IOnCancelEventData) => void): () => void;
|
|
4249
4251
|
}
|
|
4250
4252
|
|
|
4251
|
-
export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, ClickToPay, Configuration, ELEMENT, EVENT$1 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, type FraudPreventionEvent, type FraudPreventionEventType, FraudPreventionEvents, type FraudPreventionProvider, FraudPreventionService, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IClickToPayMeta, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IEventData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, type IWalletMeta, type IWalletOnClickEvent, type IWalletPaymentSuccessfulEvent, type IWalletUnavailableEvent, type IWalletUpdateData, type IWalletUpdateEvent, InstructionDebugger, MultiWidget, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WalletButtons, ZipmoneyCheckoutButton };
|
|
4253
|
+
export { AfterpayCheckoutButton, Api, ApplePayWalletButtonExpress, CHECKOUT_BUTTON_EVENT, Canvas3ds, Checkout, ClickToPay, Configuration, ELEMENT, EVENT$1 as EVENT, Builder$1 as ExternalCheckoutBuilder, Checker as ExternalCheckoutChecker, FORM_FIELD, type FraudPreventionEvent, type FraudPreventionEventType, FraudPreventionEvents, type FraudPreventionProvider, FraudPreventionService, HtmlMultiWidget, HtmlPaymentSourceWidget, HtmlWidget, type ICheckout, type IClickToPayMeta, type IDetails, type IElementStyleInput, type IEventCheckoutFinishData, type IEventData, type IPayPalMeta, type IStyles$1 as IStyles, type ITexts, type IWalletMeta, type IWalletOnClickEvent, type IWalletPaymentSuccessfulEvent, type IWalletUnavailableEvent, type IWalletUpdateData, type IWalletUpdateEvent, InstructionDebugger, type Mode, MultiWidget, PAYMENT_TYPE, PURPOSE, PayPalDataCollector, PayPalSavePaymentSourceWidget, Builder as PaymentSourceBuilder, PaymentSourceWidget, PaypalCheckoutButton, PaypalWalletButtonExpress, STYLABLE_ELEMENT, STYLABLE_ELEMENT_STATE, STYLE, SUPPORTED_CARD_TYPES, TEXT, TRIGGER, TYPE, VAULT_DISPLAY_STYLE, type VaultDisplayStyle, VaultDisplayWidget, WalletButtons, ZipmoneyCheckoutButton, isValidMode, modes };
|