@paypay/mini-app-js-sdk 1.68.0 → 1.69.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/dom/useEventListener.d.ts +1 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +53 -46
- package/dist/package/lottie/index.d.ts +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/utils/helper.d.ts +1 -0
- package/dist/views/get-kyc-passport/types.d.ts +1 -1
- package/dist/views/register-user-info/types.d.ts +2 -2
- package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
- package/package.json +9 -8
|
@@ -50,8 +50,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
50
50
|
}
|
|
51
51
|
class JsBridge {
|
|
52
52
|
constructor(global2) {
|
|
53
|
-
this.version = "1.
|
|
54
|
-
this.revision = "
|
|
53
|
+
this.version = "1.69.0";
|
|
54
|
+
this.revision = "21cf0fe";
|
|
55
55
|
this.messageHandlers = /* @__PURE__ */ new Map();
|
|
56
56
|
this.responseCallbacks = /* @__PURE__ */ new Map();
|
|
57
57
|
this.global = global2;
|
|
@@ -79,7 +79,7 @@ class JsBridge {
|
|
|
79
79
|
methodParams,
|
|
80
80
|
(data2) => {
|
|
81
81
|
var _a2, _b, _c;
|
|
82
|
-
|
|
82
|
+
const returnData = ((_c = (_b = (_a2 = this.global) == null ? void 0 : _a2.webkit) == null ? void 0 : _b.messageHandlers) == null ? void 0 : _c[methodName]) ? JSON.parse(data2 == null ? void 0 : data2.data) : data2 == null ? void 0 : data2.data;
|
|
83
83
|
switch (data2.status) {
|
|
84
84
|
case "complete":
|
|
85
85
|
complete && complete(returnData);
|
|
@@ -843,7 +843,8 @@ function saveDeviceUUID(uuid) {
|
|
|
843
843
|
saveCookie(PpLocalStorageKey.deviceUUID, uuid, CookieDuration.oneYear);
|
|
844
844
|
}
|
|
845
845
|
function getDeviceUUIDFromNative() {
|
|
846
|
-
|
|
846
|
+
var _a2;
|
|
847
|
+
return (_a2 = getValueFromUA("PayPayMiniAppDeviceId")) != null ? _a2 : "";
|
|
847
848
|
}
|
|
848
849
|
function getDeviceUUID() {
|
|
849
850
|
let uuid = api.get(PpLocalStorageKey.deviceUUID) || "";
|
|
@@ -1822,7 +1823,7 @@ function trigger$1(target, type) {
|
|
|
1822
1823
|
function checkDuplicateTopup(amount2) {
|
|
1823
1824
|
try {
|
|
1824
1825
|
if (getLastTopup()) {
|
|
1825
|
-
|
|
1826
|
+
const lastTopUpVal = JSON.parse(getLastTopup());
|
|
1826
1827
|
return lastTopUpVal.amount === amount2 && Date.now() - lastTopUpVal.topupAt <= 15 * 60 * 1e3;
|
|
1827
1828
|
} else {
|
|
1828
1829
|
return false;
|
|
@@ -2080,6 +2081,13 @@ function reconstructKycPassportCallbackUrl(url2, type) {
|
|
|
2080
2081
|
callbackUrl.searchParams.set(KycPassportUrlParam.authType, type);
|
|
2081
2082
|
return callbackUrl.href;
|
|
2082
2083
|
}
|
|
2084
|
+
function getValueFromUA(paramName) {
|
|
2085
|
+
const pattern = `\\s?${paramName}/(.*?)(\\s|$)`;
|
|
2086
|
+
const match = navigator.userAgent.match(pattern);
|
|
2087
|
+
if (match == null ? void 0 : match[1]) {
|
|
2088
|
+
return match == null ? void 0 : match[1];
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2083
2091
|
const opaUrl = () => {
|
|
2084
2092
|
switch (getEnv()) {
|
|
2085
2093
|
case "staging":
|
|
@@ -2098,9 +2106,9 @@ const opaUrl = () => {
|
|
|
2098
2106
|
}
|
|
2099
2107
|
};
|
|
2100
2108
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
2101
|
-
|
|
2109
|
+
const headers = new Headers({
|
|
2102
2110
|
"Content-Type": "application/json",
|
|
2103
|
-
"Client-Version": "1.
|
|
2111
|
+
"Client-Version": "1.69.0",
|
|
2104
2112
|
"Client-OS-Type": getRuntime(),
|
|
2105
2113
|
...customHeaders
|
|
2106
2114
|
});
|
|
@@ -2137,13 +2145,13 @@ function ppFetchPrepare(options) {
|
|
|
2137
2145
|
options.params.payPayLang = "ja";
|
|
2138
2146
|
const requestInfo = `${opaUrl()}${options.url}${addParams(options.params)}`;
|
|
2139
2147
|
const { timeout = 3e4 } = options;
|
|
2140
|
-
|
|
2148
|
+
const controller = new AbortController();
|
|
2141
2149
|
window.setTimeout(() => controller.abort(), timeout);
|
|
2142
2150
|
const headers = createHeaderMiniAppApi(options.url, options.headers);
|
|
2143
2151
|
if (!headers) {
|
|
2144
2152
|
return null;
|
|
2145
2153
|
}
|
|
2146
|
-
|
|
2154
|
+
const requestInit = {
|
|
2147
2155
|
method: options.method,
|
|
2148
2156
|
headers,
|
|
2149
2157
|
signal: controller == null ? void 0 : controller.signal
|
|
@@ -8003,7 +8011,7 @@ function saveUserData() {
|
|
|
8003
8011
|
function copyToClipboard(copyTextParams) {
|
|
8004
8012
|
var _a2, _b;
|
|
8005
8013
|
const params = reconstructParams(copyTextParams);
|
|
8006
|
-
|
|
8014
|
+
const textarea = document.createElement("textarea");
|
|
8007
8015
|
textarea.setAttribute("readonly", "true");
|
|
8008
8016
|
textarea.setAttribute("contenteditable", "true");
|
|
8009
8017
|
textarea.value = params.value;
|
|
@@ -9476,8 +9484,8 @@ function useEventListener(type, listener, options = {}) {
|
|
|
9476
9484
|
}
|
|
9477
9485
|
const UI_BREAKPOINT = 767;
|
|
9478
9486
|
function useBreakpoints() {
|
|
9479
|
-
|
|
9480
|
-
|
|
9487
|
+
const windowWidth = ref(window.innerWidth);
|
|
9488
|
+
const windowHeight = ref(window.innerHeight);
|
|
9481
9489
|
const onResize = () => {
|
|
9482
9490
|
windowWidth.value = window.innerWidth;
|
|
9483
9491
|
windowHeight.value = window.innerHeight;
|
|
@@ -25283,7 +25291,7 @@ function initRoot(props, { emit }) {
|
|
|
25283
25291
|
const updateAddress = (data2) => {
|
|
25284
25292
|
emit("updateAddress", data2);
|
|
25285
25293
|
};
|
|
25286
|
-
|
|
25294
|
+
const savedMakepayAddressid = ((_a2 = props == null ? void 0 : props.selectedAddress) == null ? void 0 : _a2.id) || 0;
|
|
25287
25295
|
const store = {
|
|
25288
25296
|
cancel: cancel2,
|
|
25289
25297
|
success: success2,
|
|
@@ -27839,9 +27847,9 @@ function initErrorHandling() {
|
|
|
27839
27847
|
});
|
|
27840
27848
|
const handleError2 = () => {
|
|
27841
27849
|
const lg2 = getLanguage();
|
|
27842
|
-
|
|
27843
|
-
|
|
27844
|
-
|
|
27850
|
+
const errorTitle2 = lg2.errorSheet.title1;
|
|
27851
|
+
const errorDescription = lg2.errorSheet.desc;
|
|
27852
|
+
const errorIcon2 = String(img_iconError);
|
|
27845
27853
|
state.errorShow = true;
|
|
27846
27854
|
state.errorTitle = errorTitle2;
|
|
27847
27855
|
state.errorDescription = errorDescription;
|
|
@@ -29482,7 +29490,7 @@ const _sfc_main$18 = defineComponent({
|
|
|
29482
29490
|
setup(props, context) {
|
|
29483
29491
|
var _a2;
|
|
29484
29492
|
const { isMobile, isDesktop } = useBreakpoints();
|
|
29485
|
-
const { width: screenWidth } = window
|
|
29493
|
+
const { width: screenWidth } = window.screen;
|
|
29486
29494
|
const timeout = screenWidth <= 767 ? 320 : 0;
|
|
29487
29495
|
const showCashBackDetailRow = computed(() => {
|
|
29488
29496
|
var _a3;
|
|
@@ -31399,9 +31407,9 @@ const useMakePaymentStore = defineStore("makePayment", {
|
|
|
31399
31407
|
return true;
|
|
31400
31408
|
},
|
|
31401
31409
|
private_openLogicError(params = {}, jws) {
|
|
31402
|
-
|
|
31403
|
-
|
|
31404
|
-
|
|
31410
|
+
const errorTitle2 = "\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F";
|
|
31411
|
+
const errorDescription = "\u6642\u9593\u3092\u304A\u3044\u3066\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044";
|
|
31412
|
+
const errorIcon2 = img_iconError;
|
|
31405
31413
|
let errorCode = MiniAppErrorType.serverError;
|
|
31406
31414
|
if (params.type === "topupSuccessButNotAddToBalance") {
|
|
31407
31415
|
errorCode = MiniAppErrorType.topupSuccessButNotAddToBalance;
|
|
@@ -34096,7 +34104,6 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
34096
34104
|
(_a3 = initMakePayment2 == null ? void 0 : initMakePayment2.complete) == null ? void 0 : _a3.call(initMakePayment2);
|
|
34097
34105
|
}, 350);
|
|
34098
34106
|
};
|
|
34099
|
-
let app;
|
|
34100
34107
|
let addresses;
|
|
34101
34108
|
let showUserAddress;
|
|
34102
34109
|
if ((_d = (_c = initMakePayment2 == null ? void 0 : initMakePayment2.additionalUserInfo) == null ? void 0 : _c.userAddress) == null ? void 0 : _d.visible) {
|
|
@@ -34113,7 +34120,7 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
34113
34120
|
} else {
|
|
34114
34121
|
showUserAddress = false;
|
|
34115
34122
|
}
|
|
34116
|
-
app = createApp({
|
|
34123
|
+
const app = createApp({
|
|
34117
34124
|
setup() {
|
|
34118
34125
|
return () => h(AppVue$8, {
|
|
34119
34126
|
show: show2.value,
|
|
@@ -34865,7 +34872,7 @@ const _sfc_main$P = defineComponent({
|
|
|
34865
34872
|
methods: {
|
|
34866
34873
|
numberWithCommas,
|
|
34867
34874
|
async init() {
|
|
34868
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
34875
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
34869
34876
|
this.loading = true;
|
|
34870
34877
|
this.isFirstLoad = true;
|
|
34871
34878
|
const paymentIDParams = {
|
|
@@ -34895,15 +34902,15 @@ const _sfc_main$P = defineComponent({
|
|
|
34895
34902
|
this.errorShow = true;
|
|
34896
34903
|
return;
|
|
34897
34904
|
}
|
|
34898
|
-
const { paymentMethodList, appealDescription } =
|
|
34905
|
+
const { paymentMethodList, appealDescription } = paymentIdResponse.body.unsigned.data.payload;
|
|
34899
34906
|
this.paymentMethodList = paymentMethodList;
|
|
34900
34907
|
this.appealDescription = appealDescription;
|
|
34901
34908
|
this.findFirstValidMethodTopup();
|
|
34902
34909
|
const config2 = getAppConfig();
|
|
34903
34910
|
if (config2) {
|
|
34904
|
-
this.topupHalfSheetAmount = (
|
|
34905
|
-
this.topupButtonsAmount = (
|
|
34906
|
-
this.topupMinAmount = (
|
|
34911
|
+
this.topupHalfSheetAmount = (_f = config2 == null ? void 0 : config2.topupHalfSheetAmount[0]) == null ? void 0 : _f.value;
|
|
34912
|
+
this.topupButtonsAmount = (_g = config2 == null ? void 0 : config2.topupButtonsAmount[0]) == null ? void 0 : _g.value;
|
|
34913
|
+
this.topupMinAmount = (_j = (_i = (_h = config2 == null ? void 0 : config2.topupMinAmount) == null ? void 0 : _h[0]) == null ? void 0 : _i.value) != null ? _j : this.topupMinAmount;
|
|
34907
34914
|
}
|
|
34908
34915
|
this.loading = false;
|
|
34909
34916
|
this.isFirstLoad = false;
|
|
@@ -36019,7 +36026,7 @@ async function getPlatformInformation(params) {
|
|
|
36019
36026
|
async function execute$d(params) {
|
|
36020
36027
|
var _a2, _b;
|
|
36021
36028
|
let sdkVersion = null;
|
|
36022
|
-
|
|
36029
|
+
const preferredLanguage = getPayPayLanguage();
|
|
36023
36030
|
const appVersion = getAppVersion();
|
|
36024
36031
|
if (appVersion) {
|
|
36025
36032
|
try {
|
|
@@ -36288,7 +36295,7 @@ async function execute$b(params) {
|
|
|
36288
36295
|
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: getFailErrorCode(res.ppFetchResult) });
|
|
36289
36296
|
}
|
|
36290
36297
|
if ((_d = res.body.unsigned) == null ? void 0 : _d.data) {
|
|
36291
|
-
|
|
36298
|
+
const response = res.body.unsigned.data;
|
|
36292
36299
|
response.jws = (_e = res.body.signed) == null ? void 0 : _e.jws;
|
|
36293
36300
|
return (_f = params == null ? void 0 : params.success) == null ? void 0 : _f.call(params, response);
|
|
36294
36301
|
} else {
|
|
@@ -36399,9 +36406,9 @@ function useErrorHandling() {
|
|
|
36399
36406
|
});
|
|
36400
36407
|
const handleError2 = () => {
|
|
36401
36408
|
const lg2 = getLanguage();
|
|
36402
|
-
|
|
36403
|
-
|
|
36404
|
-
|
|
36409
|
+
const errorTitle2 = lg2.errorSheet.title1;
|
|
36410
|
+
const errorDescription = lg2.errorSheet.desc;
|
|
36411
|
+
const errorIcon2 = String(img_iconError);
|
|
36405
36412
|
state.errorShow = true;
|
|
36406
36413
|
state.errorTitle = errorTitle2;
|
|
36407
36414
|
state.errorDescription = errorDescription;
|
|
@@ -36665,7 +36672,7 @@ async function checkPaymentMethod(checkPayMethodParams) {
|
|
|
36665
36672
|
if (grantStatus !== PermissionStatus.granted) {
|
|
36666
36673
|
return (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.insufficientScope });
|
|
36667
36674
|
}
|
|
36668
|
-
|
|
36675
|
+
const result2 = await ppFetch2({
|
|
36669
36676
|
method: "GET",
|
|
36670
36677
|
url: "web-api/app/v2/payment/methods",
|
|
36671
36678
|
params: {
|
|
@@ -36682,7 +36689,7 @@ async function checkPaymentMethod(checkPayMethodParams) {
|
|
|
36682
36689
|
errorCode: getFailErrorCode(result2.ppFetchResult)
|
|
36683
36690
|
});
|
|
36684
36691
|
}
|
|
36685
|
-
|
|
36692
|
+
const paymentMethodList = (_e = (_d = (_c = result2 == null ? void 0 : result2.body.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.payload) == null ? void 0 : _e.paymentMethodList;
|
|
36686
36693
|
if (!paymentMethodList) {
|
|
36687
36694
|
return (_f = params == null ? void 0 : params.fail) == null ? void 0 : _f.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
36688
36695
|
} else if (paymentMethodList.length > 0) {
|
|
@@ -36701,7 +36708,7 @@ function debug(params) {
|
|
|
36701
36708
|
function execute$a(params) {
|
|
36702
36709
|
var _a2;
|
|
36703
36710
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
36704
|
-
v: "1.
|
|
36711
|
+
v: "1.69.0"
|
|
36705
36712
|
});
|
|
36706
36713
|
}
|
|
36707
36714
|
function useCallBack(props, ctx) {
|
|
@@ -36958,7 +36965,7 @@ const Email = defineComponent({
|
|
|
36958
36965
|
if (state.validateFailed) {
|
|
36959
36966
|
return;
|
|
36960
36967
|
}
|
|
36961
|
-
|
|
36968
|
+
const value2 = String(props.modelValue);
|
|
36962
36969
|
if (!runSyncRule(value2, rule) && value2) {
|
|
36963
36970
|
state.validateFailed = true;
|
|
36964
36971
|
state.validateMessage = getRuleMessage(value2, rule);
|
|
@@ -38519,7 +38526,7 @@ const en = {
|
|
|
38519
38526
|
};
|
|
38520
38527
|
function getRenderLoginInfo(params) {
|
|
38521
38528
|
var _a2;
|
|
38522
|
-
|
|
38529
|
+
const preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
|
|
38523
38530
|
const { smartLogin } = preferredLanguage === "en" ? en : ja$1;
|
|
38524
38531
|
const userInfo = getUserInfo();
|
|
38525
38532
|
const loggedinUser = userInfo ? JSON.parse(userInfo) : void 0;
|
|
@@ -38811,7 +38818,7 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
|
|
|
38811
38818
|
};
|
|
38812
38819
|
async function getRenderPayInfo(params) {
|
|
38813
38820
|
var _a2;
|
|
38814
|
-
|
|
38821
|
+
const preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
|
|
38815
38822
|
const { smartPay } = preferredLanguage === "en" ? en : ja$1;
|
|
38816
38823
|
const loggedIn = await getIsLoggedIn();
|
|
38817
38824
|
const renderParams = loggedIn ? {
|
|
@@ -38825,7 +38832,7 @@ async function getRenderPayInfo(params) {
|
|
|
38825
38832
|
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: getFailErrorCode(res.ppFetchResult) });
|
|
38826
38833
|
return null;
|
|
38827
38834
|
}
|
|
38828
|
-
|
|
38835
|
+
const cashbackInfo2 = createCashbackInfo(res.body);
|
|
38829
38836
|
const data2 = getRenderPayButtonInfo(params, smartPay, cashbackInfo2);
|
|
38830
38837
|
return {
|
|
38831
38838
|
renderParams,
|
|
@@ -38865,11 +38872,11 @@ async function getExpectedCashbackInfo(orderInfo) {
|
|
|
38865
38872
|
return resp;
|
|
38866
38873
|
}
|
|
38867
38874
|
function createCashbackInfo(cashbackResponse) {
|
|
38868
|
-
var _a2
|
|
38875
|
+
var _a2;
|
|
38869
38876
|
if ((_a2 = cashbackResponse.unsigned) == null ? void 0 : _a2.data) {
|
|
38870
|
-
const { normalCashbackPercentage, lotteryCashbackPercentage } =
|
|
38877
|
+
const { normalCashbackPercentage, lotteryCashbackPercentage } = cashbackResponse.unsigned.data;
|
|
38871
38878
|
if (normalCashbackPercentage || lotteryCashbackPercentage) {
|
|
38872
|
-
|
|
38879
|
+
const tempCashback = Number(
|
|
38873
38880
|
(parseFloat(normalCashbackPercentage != null ? normalCashbackPercentage : "0") + parseFloat(lotteryCashbackPercentage != null ? lotteryCashbackPercentage : "0")).toFixed(1)
|
|
38874
38881
|
);
|
|
38875
38882
|
return tempCashback ? tempCashback.toString() : "";
|
|
@@ -39042,8 +39049,8 @@ const validators = {
|
|
|
39042
39049
|
reason: lg.registerUserInfo.validation.alphabetLength32Error
|
|
39043
39050
|
};
|
|
39044
39051
|
}
|
|
39045
|
-
|
|
39046
|
-
|
|
39052
|
+
const spaceFullWidth = "\u3000";
|
|
39053
|
+
const spaceHalfWidth = " ";
|
|
39047
39054
|
if (isAlphabet(value2)) {
|
|
39048
39055
|
let newValue = getStringConvertedHalfWidth(
|
|
39049
39056
|
value2,
|
|
@@ -44052,7 +44059,7 @@ async function initKycPassport(params) {
|
|
|
44052
44059
|
return initKycPassportError(params, status2);
|
|
44053
44060
|
}
|
|
44054
44061
|
}
|
|
44055
|
-
|
|
44062
|
+
const callbackUrl = new URL(params.callbackUrl);
|
|
44056
44063
|
callbackUrl.searchParams.set("ppFunction", "kycPassport");
|
|
44057
44064
|
callbackUrl.searchParams.set(
|
|
44058
44065
|
"ppEkycDocuments",
|
|
@@ -44553,7 +44560,7 @@ async function execute(params) {
|
|
|
44553
44560
|
return;
|
|
44554
44561
|
}
|
|
44555
44562
|
const userPaymentFeatureSettings = res.body.unsigned.data;
|
|
44556
|
-
|
|
44563
|
+
const paymentFeatures = {};
|
|
44557
44564
|
(_c = Object.entries(userPaymentFeatureSettings)) == null ? void 0 : _c.forEach(([key2, value2]) => {
|
|
44558
44565
|
paymentFeatures[key2.toUpperCase()] = value2 ? "AVAILABLE" : "UNAVAILABLE";
|
|
44559
44566
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { AnimationItem } from 'lottie-web/build/player/lottie_svg';
|
|
3
3
|
import { RenderType } from '../../types';
|
|
4
|
-
declare type TRenderType = typeof RenderType[keyof typeof RenderType];
|
|
4
|
+
declare type TRenderType = (typeof RenderType)[keyof typeof RenderType];
|
|
5
5
|
export declare const Lottie: import("vue").DefineComponent<{
|
|
6
6
|
loop: {
|
|
7
7
|
type: BooleanConstructor;
|
package/dist/types.d.ts
CHANGED
|
@@ -423,13 +423,13 @@ export declare const PaymentFeatureTypes: {
|
|
|
423
423
|
readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
|
|
424
424
|
readonly RECOMMEND: "RECOMMEND";
|
|
425
425
|
};
|
|
426
|
-
export declare type PaymentFeatureType = typeof PaymentFeatureTypes[keyof typeof PaymentFeatureTypes];
|
|
426
|
+
export declare type PaymentFeatureType = (typeof PaymentFeatureTypes)[keyof typeof PaymentFeatureTypes];
|
|
427
427
|
export declare const ConsultPaymentFeatureTypes: {
|
|
428
428
|
readonly PRE_TRANSACTION_AUTO_CHARGE: "PRE_TRANSACTION_AUTO_CHARGE";
|
|
429
429
|
readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
|
|
430
430
|
readonly NONE: "NONE";
|
|
431
431
|
};
|
|
432
|
-
export declare type ConsultPaymentFeatureType = typeof ConsultPaymentFeatureTypes[keyof typeof ConsultPaymentFeatureTypes];
|
|
432
|
+
export declare type ConsultPaymentFeatureType = (typeof ConsultPaymentFeatureTypes)[keyof typeof ConsultPaymentFeatureTypes];
|
|
433
433
|
export interface RegisterPaymentFeaturesParams extends NativeParams<void> {
|
|
434
434
|
paymentFeatureType: PaymentFeatureType;
|
|
435
435
|
redirectUrl?: string;
|
|
@@ -492,14 +492,14 @@ export declare const AddShortcutTypes: {
|
|
|
492
492
|
readonly FAVORITE: "FAVORITE";
|
|
493
493
|
readonly OS_HOME_SCREEN_ICON: "OS_HOME_SCREEN_ICON";
|
|
494
494
|
};
|
|
495
|
-
export declare type AddShortcutType = typeof AddShortcutTypes[keyof typeof AddShortcutTypes];
|
|
495
|
+
export declare type AddShortcutType = (typeof AddShortcutTypes)[keyof typeof AddShortcutTypes];
|
|
496
496
|
export interface AddShortcutParams extends NativeParams<void> {
|
|
497
497
|
type: AddShortcutType;
|
|
498
498
|
}
|
|
499
499
|
export declare const ShortcutExistsTypes: {
|
|
500
500
|
readonly FAVORITE: "FAVORITE";
|
|
501
501
|
};
|
|
502
|
-
export declare type ShortcutExistsType = typeof ShortcutExistsTypes[keyof typeof ShortcutExistsTypes];
|
|
502
|
+
export declare type ShortcutExistsType = (typeof ShortcutExistsTypes)[keyof typeof ShortcutExistsTypes];
|
|
503
503
|
export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
|
|
504
504
|
type: ShortcutExistsType;
|
|
505
505
|
}
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -59,4 +59,5 @@ export declare function openUrl(linkUrl: string): void;
|
|
|
59
59
|
export declare function getButtonType(button: UIComponentsErrorButton | ErrorSheetButton, onlyButton?: boolean): "success" | "default" | "primary" | "warning" | "danger" | "link" | "outLined";
|
|
60
60
|
export declare function isAlphabet(value: string): boolean;
|
|
61
61
|
export declare function reconstructKycPassportCallbackUrl(url: string, type: string): string;
|
|
62
|
+
export declare function getValueFromUA(paramName: string): string | undefined;
|
|
62
63
|
export {};
|
|
@@ -3,4 +3,4 @@ export declare const GetKycPassportErrorSheet: {
|
|
|
3
3
|
readonly VERIFY_EXPIRED: "verifyExpired";
|
|
4
4
|
readonly FALLBACK_SMS: "fallbackSMS";
|
|
5
5
|
};
|
|
6
|
-
export declare type GetKycPassportErrorSheetType = typeof GetKycPassportErrorSheet[keyof typeof GetKycPassportErrorSheet];
|
|
6
|
+
export declare type GetKycPassportErrorSheetType = (typeof GetKycPassportErrorSheet)[keyof typeof GetKycPassportErrorSheet];
|
|
@@ -26,7 +26,7 @@ export declare type UserProfileFormDataPoint = {
|
|
|
26
26
|
selectionItems?: string[];
|
|
27
27
|
};
|
|
28
28
|
declare const userProfileFormDataPointTypes: readonly ["NAME", "EMAIL", "MOBILE_NUMBER", "NUMBER", "TEXT", "DATE", "SINGLE_SELECTION_LIST", "SINGLE_SELECTION_BUTTON", "MULTIPLE_SELECTION_BUTTON"];
|
|
29
|
-
declare type UserProfileFormDataPointType = typeof userProfileFormDataPointTypes[number];
|
|
29
|
+
declare type UserProfileFormDataPointType = (typeof userProfileFormDataPointTypes)[number];
|
|
30
30
|
export declare const userProfileFormValidationTypes: readonly ["KATA_KANA", "ROMAN", "MOBILE", "TEXT", "NUMBER"];
|
|
31
|
-
export declare type UserProfileFormValidationType = typeof userProfileFormValidationTypes[number];
|
|
31
|
+
export declare type UserProfileFormValidationType = (typeof userProfileFormValidationTypes)[number];
|
|
32
32
|
export {};
|
|
@@ -5,7 +5,7 @@ export declare const AutoTopupModeType: {
|
|
|
5
5
|
readonly PRE_AUTO_TOPUP: "PreAutoTopup";
|
|
6
6
|
readonly UNREGISTERED: "Unregistered";
|
|
7
7
|
};
|
|
8
|
-
export declare type AutoTopupMode = typeof AutoTopupModeType[keyof typeof AutoTopupModeType];
|
|
8
|
+
export declare type AutoTopupMode = (typeof AutoTopupModeType)[keyof typeof AutoTopupModeType];
|
|
9
9
|
export declare type GetTopupConfigurationParams = {
|
|
10
10
|
includePaymentMethodList: boolean;
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.69.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@types/jest": "^26.0.24",
|
|
42
42
|
"@types/js-cookie": "^2.2.7",
|
|
43
43
|
"@types/uuid": "^8.3.1",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
45
|
-
"@typescript-eslint/parser": "^
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.58.0",
|
|
46
46
|
"@vitejs/plugin-vue": "^1.10.2",
|
|
47
47
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
48
48
|
"@vue/babel-plugin-jsx": "^1.0.7",
|
|
@@ -50,9 +50,10 @@
|
|
|
50
50
|
"@vue/test-utils": "^2.0.0-rc.21",
|
|
51
51
|
"acorn-jsx": "^5.3.2",
|
|
52
52
|
"babel-jest": "^26.6.3",
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-config-prettier": "^8.
|
|
55
|
-
"eslint-plugin-
|
|
53
|
+
"eslint": "^8.38.0",
|
|
54
|
+
"eslint-config-prettier": "^8.8.0",
|
|
55
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
56
|
+
"eslint-plugin-vue": "^9.10.0",
|
|
56
57
|
"husky": "^7.0.2",
|
|
57
58
|
"identity-obj-proxy": "^3.0.0",
|
|
58
59
|
"isomorphic-fetch": "^3.0.0",
|
|
@@ -64,13 +65,13 @@
|
|
|
64
65
|
"lint-staged": "^11.1.2",
|
|
65
66
|
"postcss-html": "^1.4.1",
|
|
66
67
|
"postcss-less": "^6.0.0",
|
|
67
|
-
"prettier": "^2.
|
|
68
|
+
"prettier": "^2.8.7",
|
|
68
69
|
"stylelint": "^14.9.1",
|
|
69
70
|
"ts-jest": "^26.5.6",
|
|
70
71
|
"typescript": "~4.4.2",
|
|
71
72
|
"vite": "^2.9.15",
|
|
72
73
|
"vite-plugin-dts": "^0.9.10",
|
|
73
|
-
"vue-eslint-parser": "^
|
|
74
|
+
"vue-eslint-parser": "^9.1.1",
|
|
74
75
|
"vue-jest": "5.0.0-alpha.9",
|
|
75
76
|
"vue-tsc": "^1.0.24"
|
|
76
77
|
},
|