@paypay/mini-app-js-sdk 2.73.2 → 2.74.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/supportedFunctionsList.d.ts +1 -1
- package/dist/constants/sdkFunctionNames.d.ts +1 -1
- package/dist/mini-app-api.d.ts +1 -4
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +154 -1849
- package/dist/model/bridge/init.d.ts +1 -1
- package/dist/model/miniAppStatus.d.ts +0 -2
- package/dist/types/getUserPaymentFeatureSettings.d.ts +2 -2
- package/dist/types.d.ts +0 -4
- package/dist/utils/api.d.ts +0 -21
- package/dist/utils/fetch.d.ts +1 -1
- package/dist/utils/helper.d.ts +0 -1
- package/dist/utils/popstateHandler.d.ts +1 -1
- package/dist/utils/pureHelpers.d.ts +1 -0
- package/package.json +1 -1
- package/dist/composition-api/useRegisterEmail.d.ts +0 -3
- package/dist/model/bridge/getPayPayCardInfo.d.ts +0 -3
- package/dist/model/bridge/registerEmail.d.ts +0 -3
- package/dist/model/bridge/registerUserInfo.d.ts +0 -2
- package/dist/types/registerEmail.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InitParams } from '../../types/init';
|
|
2
2
|
export declare function init(params: InitParams): Promise<void>;
|
|
3
|
-
declare type TokenCheckResult = 'COOKIE' | 'AUTHORIZATION_HEADER' | 'EXPIRED' | 'TOKEN_NOT_FOUND';
|
|
3
|
+
declare type TokenCheckResult = 'COOKIE' | 'AUTHORIZATION_HEADER' | 'EXPIRED' | 'TOKEN_NOT_FOUND' | 'SERVER_ERROR' | 'TIME_OUT';
|
|
4
4
|
export declare function fetchTokenCheck(clientId: string): Promise<TokenCheckResult>;
|
|
5
5
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PaymentFeatureType } from '../types';
|
|
2
2
|
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
3
3
|
export declare type GetUserPaymentFeatureSettingsResult = {
|
|
4
|
-
paymentFeatures: Record<SupportedPaymentFeatureType, GetUserPaymentFeatureSettingsStatusType
|
|
4
|
+
paymentFeatures: Partial<Record<SupportedPaymentFeatureType, GetUserPaymentFeatureSettingsStatusType>>;
|
|
5
5
|
};
|
|
6
|
-
export declare type SupportedPaymentFeatureType = Exclude<PaymentFeatureType, 'RECOMMEND'
|
|
6
|
+
export declare type SupportedPaymentFeatureType = Exclude<PaymentFeatureType, 'RECOMMEND'> | 'BANK_SYNC_MODE';
|
|
7
7
|
export interface GetUserPaymentFeatureSettingsParams extends NativeParams<GetUserPaymentFeatureSettingsResult> {
|
|
8
8
|
paymentFeatureType?: SupportedPaymentFeatureType;
|
|
9
9
|
merchant?: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -108,10 +108,6 @@ export interface OpenAppParams extends NativeParams<MiniAppResult> {
|
|
|
108
108
|
ios?: IosOpenApp;
|
|
109
109
|
android?: AndroidOpenApp;
|
|
110
110
|
}
|
|
111
|
-
export interface RegisterUserInfoParams extends NativeParams<void> {
|
|
112
|
-
formName: string;
|
|
113
|
-
fieldInForm?: string | string[];
|
|
114
|
-
}
|
|
115
111
|
export interface SetTitleParams extends NativeParams<void> {
|
|
116
112
|
title?: string;
|
|
117
113
|
}
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -238,27 +238,6 @@ export declare type ProfileResponse = {
|
|
|
238
238
|
statusCode: number;
|
|
239
239
|
};
|
|
240
240
|
export declare function getUserProfileData(): Promise<PPFetchResult<ProfileResponse, Record<string, unknown>>>;
|
|
241
|
-
export declare function getUserProfileDataV2(): Promise<PPFetchResult<ProfileResponse, Record<string, unknown>>>;
|
|
242
|
-
export declare type RegisterEmailResponse = {
|
|
243
|
-
signed: unknown;
|
|
244
|
-
statusCode: number;
|
|
245
|
-
unsigned: unknown;
|
|
246
|
-
uiComponents: {
|
|
247
|
-
displayErrorResponse: {
|
|
248
|
-
buttonList: Array<{
|
|
249
|
-
title: string;
|
|
250
|
-
actionType: string;
|
|
251
|
-
buttonType: string;
|
|
252
|
-
}>;
|
|
253
|
-
canCloseByOutsideTap: boolean;
|
|
254
|
-
description: string;
|
|
255
|
-
iconUrl: string;
|
|
256
|
-
title: string;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
export declare function registerEmail(email: string): Promise<PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
|
|
261
|
-
export declare function resendEmail(): Promise<PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
|
|
262
241
|
export declare type UserLocationResponse = {
|
|
263
242
|
unsigned: {
|
|
264
243
|
data: {
|
package/dist/utils/fetch.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export declare function fetchRefreshToken(refreshToken: string, clientOrigin?: s
|
|
|
85
85
|
success: boolean;
|
|
86
86
|
errorCode?: ErrorCodesType;
|
|
87
87
|
}>;
|
|
88
|
-
export declare function
|
|
88
|
+
export declare function logoutSmartPayment(): Promise<{
|
|
89
89
|
success: boolean;
|
|
90
90
|
}>;
|
|
91
91
|
export declare function fetchCookieSignal(clientId: string): Promise<void>;
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -95,7 +95,6 @@ export declare function checkIfSdkUpgradeNeededForRemittance(orderType?: OrderTy
|
|
|
95
95
|
export declare function isMobileSize(width: number): boolean;
|
|
96
96
|
export declare function isDesktopSize(width: number): boolean;
|
|
97
97
|
export declare function getOverDraftInfoBanner(banners?: Array<InfoBanner>): InfoBanner | undefined;
|
|
98
|
-
export declare function isValidUrl(urlChallenge: string): boolean;
|
|
99
98
|
export declare function calculateTopMargin(navigationStyle: string, statusBarHeight: number, navBarHeight: number): number;
|
|
100
99
|
export declare function getWindowByName(frames: Window, windowName: string): Window | undefined;
|
|
101
100
|
export declare function isPaymentMethodDisabled(paymentMethod: PaymentMethod, ignoreMaintenanceFlag?: boolean): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { NativeParams } from '../jsbridge-core/jsbridge';
|
|
2
|
-
export declare function usePopStateHandler(callback: () => void, inputParams?: NativeParams<never>): void;
|
|
2
|
+
export declare function usePopStateHandler(callback: () => boolean | void, inputParams?: NativeParams<never>): void;
|
package/package.json
CHANGED