@paypay/mini-app-js-sdk 1.27.0 → 1.30.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/composition-api/useRegisterEmail.d.ts +1 -1
- package/dist/jsbridge-core/jsbridge.d.ts +9 -10
- package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -1
- package/dist/jsbridge-core/module.d.ts +1 -3
- package/dist/jsbridge-core/paypay-jsbridge.d.ts +2 -3
- package/dist/mini-app-api.d.ts +15 -14
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +693 -454
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +2 -2
- package/dist/model/bridge/debug.d.ts +2 -2
- package/dist/model/bridge/getAuthStatus.d.ts +2 -2
- package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
- package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
- package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +2 -2
- package/dist/model/bridge/getUserProfile.d.ts +2 -2
- package/dist/model/bridge/index.d.ts +1 -0
- package/dist/model/bridge/logout.d.ts +2 -2
- package/dist/model/bridge/openMiniApp.d.ts +2 -0
- package/dist/model/bridge/registerEmail.d.ts +1 -1
- package/dist/model/bridge/removeStorageData.d.ts +2 -2
- package/dist/model/bridge/scanCode.d.ts +1 -1
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +2 -2
- package/dist/model/makePayment.d.ts +1 -0
- package/dist/model/uiComponents.d.ts +2 -1
- package/dist/package/charge-amount-list/index.vue.d.ts +8 -0
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +291 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +5 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +5 -1
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +289 -0
- package/dist/package/payment-type/Sbid.vue.d.ts +5 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +5 -0
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +6 -0
- package/dist/types.d.ts +36 -31
- package/dist/utils/getImages.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +4 -0
- package/dist/utils/helper.d.ts +3 -0
- package/dist/views/email-registration/App.vue.d.ts +7 -3
- package/dist/views/email-registration/hooks/callback.d.ts +1 -1
- package/dist/views/error-sheet/Index.vue.d.ts +11 -2
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +5 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +12 -0
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +5 -0
- package/dist/views/make-payment/hooks/app-hooks.d.ts +4 -0
- package/dist/views/open-app/App.vue.d.ts +5 -0
- package/dist/views/open-map/App.vue.d.ts +4 -0
- package/dist/views/show-update-warning/App.vue.d.ts +5 -0
- package/dist/views/smart-button/App.vue.d.ts +2 -2
- package/dist/views/take-photo/App.vue.d.ts +4 -0
- package/dist/views/topup/App.vue.d.ts +6 -1
- package/dist/views/topup/CashbackInfo.vue.d.ts +4 -0
- package/dist/views/topup/TopupCompletion.vue.d.ts +5 -0
- package/package.json +1 -1
- package/dist/utils/common.d.ts +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { NativeParams } from '../jsbridge-core';
|
|
2
|
-
export declare function initRegisterEmail(initRegisterEmail: NativeParams<unknown
|
|
2
|
+
export declare function initRegisterEmail(initRegisterEmail: NativeParams<unknown>): Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MiniAppErrorResultType } from '../types';
|
|
1
2
|
export interface WebKitMessageHandler {
|
|
2
3
|
postMessage(message: unknown): void;
|
|
3
4
|
}
|
|
@@ -25,21 +26,19 @@ export interface NativeResponseDataLegacy {
|
|
|
25
26
|
}
|
|
26
27
|
export interface NativeResponseData {
|
|
27
28
|
status: NativeResponseStatus;
|
|
28
|
-
data: NativeSuccessResponseData | NativeErrorResponseData
|
|
29
|
+
data: NativeSuccessResponseData | NativeErrorResponseData;
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
+
interface NativeResponse {
|
|
31
32
|
responseId: string;
|
|
32
33
|
responseData: NativeResponseData | NativeResponseDataLegacy;
|
|
33
34
|
}
|
|
34
35
|
export declare type NativeResponseCallback = (data: NativeResponseData) => void;
|
|
35
|
-
|
|
36
|
-
declare type NativeSuccessResponseData<T = unknown> = T | null;
|
|
36
|
+
declare type NativeSuccessResponseData<T = unknown> = T;
|
|
37
37
|
declare type NativeErrorResponseData<E = unknown> = E;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
complete?: NativeCallback<NativeCompleteResponseData<R>>;
|
|
38
|
+
export interface NativeParams<T, E extends MiniAppErrorResultType = MiniAppErrorResultType> {
|
|
39
|
+
success?: (t: T) => void;
|
|
40
|
+
fail?: (e: E) => void;
|
|
41
|
+
complete?: () => void;
|
|
43
42
|
}
|
|
44
43
|
export interface NativeOptions {
|
|
45
44
|
transformResponse?(data: unknown): unknown;
|
|
@@ -55,7 +54,7 @@ export declare class JsBridge {
|
|
|
55
54
|
generateCallbackId(): string;
|
|
56
55
|
registerHandler(handlerName: string, handler: MessageHandler): void;
|
|
57
56
|
callHandler(handlerName: string, params: unknown, responseCallback?: NativeResponseCallback): void;
|
|
58
|
-
callNative<T extends NativeParams<unknown,
|
|
57
|
+
callNative<E extends MiniAppErrorResultType, T extends NativeParams<unknown, E>>(methodName: string, params?: T, options?: NativeOptions): void;
|
|
59
58
|
private dispatchMessageToNative;
|
|
60
59
|
private handleMessageFromNative;
|
|
61
60
|
_handleMessageFromNative(message: NativeResponse): void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { MiniAppErrorResultType } from '../../types';
|
|
1
2
|
import { NativeParams } from '../jsbridge';
|
|
2
|
-
export declare function reconstructParams(params: NativeParams<
|
|
3
|
+
export declare function reconstructParams<T, E extends MiniAppErrorResultType>(params: NativeParams<T, E>): void;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { MiniAppErrorResultType } from '../types';
|
|
2
1
|
import { JsBridge, NativeParams } from './jsbridge';
|
|
3
|
-
export declare type NativeMethod<T = never, E = unknown, R = unknown> = (params?: NativeParams<T, E, R> & T) => unknown;
|
|
4
2
|
export declare abstract class JsBridgeModule {
|
|
5
3
|
jsBridge: JsBridge;
|
|
6
4
|
instances: Record<string, JsBridgeModule>;
|
|
7
5
|
state: {
|
|
8
6
|
executing: boolean;
|
|
9
7
|
};
|
|
10
|
-
isExecutableService: (params: NativeParams<never
|
|
8
|
+
isExecutableService: (params: NativeParams<never>) => boolean;
|
|
11
9
|
}
|
|
12
10
|
export interface JsBridgeModuleConstructor<M extends JsBridgeModule = JsBridgeModule> {
|
|
13
11
|
new (jsBridge: JsBridge): M;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { JsBridgeModule, JsBridgeModuleConstructor } from './module';
|
|
2
1
|
import { JsBridge, NativeParams } from './jsbridge';
|
|
3
|
-
import {
|
|
2
|
+
import { JsBridgeModule, JsBridgeModuleConstructor } from './module';
|
|
4
3
|
export declare class PayPayJsBridgeBase {
|
|
5
4
|
jsBridge: JsBridge;
|
|
6
5
|
instances: Record<string, JsBridgeModule>;
|
|
@@ -8,7 +7,7 @@ export declare class PayPayJsBridgeBase {
|
|
|
8
7
|
executing: boolean;
|
|
9
8
|
};
|
|
10
9
|
constructor(jsBridge: JsBridge);
|
|
11
|
-
isExecutableService(params: NativeParams<never
|
|
10
|
+
isExecutableService(params: NativeParams<never>): boolean;
|
|
12
11
|
}
|
|
13
12
|
export interface PayPayJsBridgeBaseConstructor {
|
|
14
13
|
new (jsBridge: JsBridge): PayPayJsBridgeBase;
|
package/dist/mini-app-api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsBridge, JsBridgeModule, NativeParams } from './jsbridge-core';
|
|
2
|
-
import { CopyToClipBoardParams, GetDataParams, GetPermissionStatusParams, InitParams, InputAddressParams, MakePaymentParams, MapParams, MiniAppResult, OpenAppParams, OpenWebviewParams,
|
|
2
|
+
import { CheckPaymentMethodParams, CloseAppParams, CopyToClipBoardParams, GetBalanceParams, GetDataParams, GetKycInformationParams, GetPermissionStatusParams, GetUserAddressParams, GetUserLocationParams, InitParams, InputAddressParams, MakePaymentParams, MapParams, MiniAppResult, OpenAppParams, OpenWebviewParams, RegisterKycParams, RemoveDataParams, RenderSmartButtonParams, RequestInternalParams, RequestParams, SetDataParams, SetEnablePullDownRefreshParams, SetTitleParams, ShareParams, ShowAlertParams, ShowErrorSheetParams, ShowUpdateWarningParams, StartMultiFactorAuthParams, OpenMiniAppParams, TakePhotoParams, TopupParams } from './types';
|
|
3
3
|
export declare class MiniAppModule extends JsBridgeModule {
|
|
4
4
|
constructor(jsBridge: JsBridge);
|
|
5
5
|
private detectMode;
|
|
@@ -7,30 +7,31 @@ export declare class MiniAppModule extends JsBridgeModule {
|
|
|
7
7
|
copyToClipboard(params: CopyToClipBoardParams): void;
|
|
8
8
|
openWebview(params: OpenWebviewParams): void;
|
|
9
9
|
openMap(params: MapParams): void;
|
|
10
|
+
openMiniApp(params: OpenMiniAppParams): void;
|
|
10
11
|
closeApp(params: CloseAppParams): void;
|
|
11
12
|
request(params: RequestParams): void;
|
|
12
13
|
requestInternal(params: RequestInternalParams): void;
|
|
13
|
-
getUAID(params: NativeParams<MiniAppResult
|
|
14
|
+
getUAID(params: NativeParams<MiniAppResult>): void;
|
|
14
15
|
getBalance(params: GetBalanceParams): void;
|
|
15
|
-
getAuthStatus(params: NativeParams<MiniAppResult
|
|
16
|
+
getAuthStatus(params: NativeParams<MiniAppResult>): void;
|
|
16
17
|
makePayment(params: MakePaymentParams): void;
|
|
17
18
|
createOrder(params: MakePaymentParams): void;
|
|
18
|
-
getUserProfile(params: NativeParams<MiniAppResult
|
|
19
|
+
getUserProfile(params: NativeParams<MiniAppResult>): void;
|
|
19
20
|
topup(params: TopupParams): void;
|
|
20
21
|
setSessionData(params: SetDataParams): void;
|
|
21
22
|
getSessionData(params: GetDataParams): void;
|
|
22
23
|
setStorageData(params: SetDataParams): void;
|
|
23
24
|
getStorageData(params: GetDataParams): void;
|
|
24
|
-
removeStorageData(params:
|
|
25
|
+
removeStorageData(params: RemoveDataParams): void;
|
|
25
26
|
getPermissionStatus(params: GetPermissionStatusParams): void;
|
|
26
|
-
scanCode(params: NativeParams<MiniAppResult
|
|
27
|
+
scanCode(params: NativeParams<MiniAppResult>): void;
|
|
27
28
|
showAlert(params: ShowAlertParams): void;
|
|
28
29
|
showErrorSheet(params: ShowErrorSheetParams): void;
|
|
29
|
-
getTopBarHeight(params: NativeParams<MiniAppResult
|
|
30
|
+
getTopBarHeight(params: NativeParams<MiniAppResult>): void;
|
|
30
31
|
setTitle(params: SetTitleParams): void;
|
|
31
32
|
showUpdateWarning(params: ShowUpdateWarningParams): void;
|
|
32
|
-
getPlatformInformation(params: NativeParams<MiniAppResult
|
|
33
|
-
getDeviceInformation(params: NativeParams<MiniAppResult
|
|
33
|
+
getPlatformInformation(params: NativeParams<MiniAppResult>): void;
|
|
34
|
+
getDeviceInformation(params: NativeParams<MiniAppResult>): void;
|
|
34
35
|
openApp(params: OpenAppParams): void;
|
|
35
36
|
share(params: ShareParams): void;
|
|
36
37
|
getKycInformation(params: GetKycInformationParams): void;
|
|
@@ -39,13 +40,13 @@ export declare class MiniAppModule extends JsBridgeModule {
|
|
|
39
40
|
getUserLocation(params?: GetUserLocationParams): void;
|
|
40
41
|
takePhoto(params?: TakePhotoParams): void;
|
|
41
42
|
checkPaymentMethod(params: CheckPaymentMethodParams): void;
|
|
42
|
-
debug(params: NativeParams<MiniAppResult
|
|
43
|
-
checkAccessToken(params: NativeParams<MiniAppResult
|
|
44
|
-
registerEmail(params: NativeParams<unknown
|
|
43
|
+
debug(params: NativeParams<MiniAppResult>): void;
|
|
44
|
+
checkAccessToken(params: NativeParams<MiniAppResult>): void;
|
|
45
|
+
registerEmail(params: NativeParams<unknown>): void;
|
|
45
46
|
setEnablePullDownRefresh(params?: SetEnablePullDownRefreshParams): void;
|
|
46
47
|
registerKyc(params: RegisterKycParams): void;
|
|
47
48
|
startMultiFactorAuth(params: StartMultiFactorAuthParams): void;
|
|
48
|
-
logout(params: NativeParams<MiniAppResult
|
|
49
|
-
verifyMultiFactorAuthResult(params: NativeParams<MiniAppResult
|
|
49
|
+
logout(params: NativeParams<MiniAppResult>): void;
|
|
50
|
+
verifyMultiFactorAuthResult(params: NativeParams<MiniAppResult>): void;
|
|
50
51
|
render(params: RenderSmartButtonParams): void;
|
|
51
52
|
}
|