@paypay/mini-app-js-sdk 2.65.0 → 2.70.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/dist/client/clientUtils.d.ts +1 -0
- package/dist/client/communicationWithCore.d.ts +2 -0
- package/dist/client/functions/logPageNav.d.ts +2 -0
- package/dist/client/functions/logPerf.d.ts +2 -0
- package/dist/client/observeTtid.d.ts +2 -0
- package/dist/client/supportedFunctionsList.d.ts +2 -2
- package/dist/client/types.d.ts +3 -1
- package/dist/composition-api/useKycPassport.d.ts +1 -2
- package/dist/constants/permissionName.d.ts +1 -1
- package/dist/constants/sdkFunctionNames.d.ts +1 -1
- package/dist/core/clientState.d.ts +1 -0
- package/dist/core/coreFunctions/index.d.ts +4 -0
- package/dist/core/coreFunctions/logEvent.d.ts +1 -1
- package/dist/core/coreFunctions/logPageNav.d.ts +6 -0
- package/dist/core/coreFunctions/logPerf.d.ts +6 -0
- package/dist/core/sentry.d.ts +8 -1
- package/dist/core/vueErrorHandler.d.ts +6 -0
- package/dist/mini-app-api.d.ts +3 -2
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +226 -47
- package/dist/model/bridge/openAuthSession.d.ts +2 -0
- package/dist/resources/images.d.ts +3 -0
- package/dist/resources/locales/payment/index.d.ts +10 -0
- package/dist/resources/locales/payment/ja.d.ts +5 -0
- package/dist/resources/locales/topup/index.d.ts +8 -0
- package/dist/resources/locales/topup/ja.d.ts +4 -0
- package/dist/types/getKycInformation.d.ts +1 -0
- package/dist/types/init.d.ts +5 -0
- package/dist/types/makePayment.d.ts +12 -0
- package/dist/types/openAuthSession.d.ts +4 -0
- package/dist/types.d.ts +0 -4
- package/dist/utils/analytics.d.ts +2 -2
- package/dist/utils/api.d.ts +4 -0
- package/dist/utils/helper.d.ts +5 -3
- package/dist/utils/minimumAppVersion.d.ts +1 -0
- package/dist/utils/openTelemetry/index.d.ts +4 -0
- package/dist/utils/openTelemetry/openTelemetry.d.ts +5 -0
- package/dist/utils/openTelemetry/types.d.ts +21 -0
- package/dist/utils/windowBridge.d.ts +1 -1
- package/dist/views/coupon/components/CouponAction/index.d.ts +4 -0
- package/dist/views/coupon/index.d.ts +4 -0
- package/dist/views/make-payment/store.d.ts +197 -0
- package/dist/views/make-payment/utils/paymentMethod.d.ts +1 -0
- package/package.json +8 -1
- package/dist/model/bridge/getCashbackInformation.d.ts +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InitOpenTelemetryParams, LogPageNavParams, LogPerfParams } from './types';
|
|
2
|
+
export declare function initOpenTelemetry(params: InitOpenTelemetryParams): void;
|
|
3
|
+
export declare function logPageNav(params: LogPageNavParams): void;
|
|
4
|
+
export declare function logPerf(params: LogPerfParams): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InitOpenTelemetryParams, LogPageNavParams, LogPerfParams } from './types';
|
|
2
|
+
export declare function initOpenTelemetry({ clientId, otelEndpoint, pageName, clientPageLoadStartTime: _clientPageLoadStartTime, clientPageUrl, environmentName, }: InitOpenTelemetryParams): void;
|
|
3
|
+
export declare function removeEventListeners(): void;
|
|
4
|
+
export declare function logPageNav({ startTime, pageName, url, navigationType, }: LogPageNavParams): void;
|
|
5
|
+
export declare function logPerf({ type, startTime, endTime, featureName, }: LogPerfParams): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface InitOpenTelemetryParams {
|
|
2
|
+
clientId: string;
|
|
3
|
+
pageName: string;
|
|
4
|
+
otelEndpoint?: string;
|
|
5
|
+
clientPageLoadStartTime: number;
|
|
6
|
+
clientPageUrl: string;
|
|
7
|
+
environmentName: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LogPageNavParams {
|
|
10
|
+
startTime: number;
|
|
11
|
+
pageName: string;
|
|
12
|
+
url: string;
|
|
13
|
+
navigationType?: 'page-load' | 'spa-navigation';
|
|
14
|
+
}
|
|
15
|
+
export declare type MeasurementType = 'TTID' | 'TTKI' | 'TTMI' | 'TTFD';
|
|
16
|
+
export interface LogPerfParams {
|
|
17
|
+
type: MeasurementType;
|
|
18
|
+
startTime?: number;
|
|
19
|
+
endTime: number;
|
|
20
|
+
featureName?: string;
|
|
21
|
+
}
|
|
@@ -20,7 +20,7 @@ export interface MessageCallbackType extends MessageBaseType {
|
|
|
20
20
|
args: Array<unknown>;
|
|
21
21
|
}
|
|
22
22
|
export declare type Callbacks = Record<string, (...args: Array<unknown>) => void>;
|
|
23
|
-
export declare type ErrorLogger = (functionName: string, message: string,
|
|
23
|
+
export declare type ErrorLogger = (functionName: string, message: string, errorCode: ErrorCodesType, originalError?: unknown) => void;
|
|
24
24
|
export declare type MessageRequestType = MessageBaseType & PartialMessageRequestType;
|
|
25
25
|
export declare type Params = Array<any>;
|
|
26
26
|
export interface FunctionType {
|
|
@@ -18,6 +18,8 @@ declare const CouponAction: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
18
18
|
getLoginUrl: typeof import("../../../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
19
19
|
getPaymentSettings: typeof import("../../../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
20
20
|
logEvent: typeof import("../../../../core/coreFunctions/logEvent").logEvent;
|
|
21
|
+
logPerf: typeof import("../../../../core/coreFunctions/logPerf").logPerf;
|
|
22
|
+
logPageNav: typeof import("../../../../core/coreFunctions/logPageNav").logPageNav;
|
|
21
23
|
logout: typeof import("../../../../core/coreFunctions/logout").logout;
|
|
22
24
|
markAsReady: typeof import("../../../../core/coreFunctions/markAsReady").markAsReady;
|
|
23
25
|
renderButton: typeof import("../../../../core/coreFunctions/renderButton").renderButton;
|
|
@@ -54,6 +56,8 @@ declare const CouponAction: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
54
56
|
getLoginUrl: typeof import("../../../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
55
57
|
getPaymentSettings: typeof import("../../../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
56
58
|
logEvent: typeof import("../../../../core/coreFunctions/logEvent").logEvent;
|
|
59
|
+
logPerf: typeof import("../../../../core/coreFunctions/logPerf").logPerf;
|
|
60
|
+
logPageNav: typeof import("../../../../core/coreFunctions/logPageNav").logPageNav;
|
|
57
61
|
logout: typeof import("../../../../core/coreFunctions/logout").logout;
|
|
58
62
|
markAsReady: typeof import("../../../../core/coreFunctions/markAsReady").markAsReady;
|
|
59
63
|
renderButton: typeof import("../../../../core/coreFunctions/renderButton").renderButton;
|
|
@@ -22,6 +22,8 @@ export declare const CouponView: import("vue").DefineComponent<import("vue").Ext
|
|
|
22
22
|
getLoginUrl: typeof import("../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
23
23
|
getPaymentSettings: typeof import("../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
24
24
|
logEvent: typeof import("../../core/coreFunctions/logEvent").logEvent;
|
|
25
|
+
logPerf: typeof import("../../core/coreFunctions/logPerf").logPerf;
|
|
26
|
+
logPageNav: typeof import("../../core/coreFunctions/logPageNav").logPageNav;
|
|
25
27
|
logout: typeof import("../../core/coreFunctions/logout").logout;
|
|
26
28
|
markAsReady: typeof import("../../core/coreFunctions/markAsReady").markAsReady;
|
|
27
29
|
renderButton: typeof import("../../core/coreFunctions/renderButton").renderButton;
|
|
@@ -66,6 +68,8 @@ export declare const CouponView: import("vue").DefineComponent<import("vue").Ext
|
|
|
66
68
|
getLoginUrl: typeof import("../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
67
69
|
getPaymentSettings: typeof import("../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
68
70
|
logEvent: typeof import("../../core/coreFunctions/logEvent").logEvent;
|
|
71
|
+
logPerf: typeof import("../../core/coreFunctions/logPerf").logPerf;
|
|
72
|
+
logPageNav: typeof import("../../core/coreFunctions/logPageNav").logPageNav;
|
|
69
73
|
logout: typeof import("../../core/coreFunctions/logout").logout;
|
|
70
74
|
markAsReady: typeof import("../../core/coreFunctions/markAsReady").markAsReady;
|
|
71
75
|
renderButton: typeof import("../../core/coreFunctions/renderButton").renderButton;
|