@paypay/mini-app-js-sdk 1.60.0 → 1.62.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.
@@ -0,0 +1,2 @@
1
+ import { AddShortcutParams } from '../../types';
2
+ export declare function addShortcut(params: AddShortcutParams): void;
@@ -0,0 +1,17 @@
1
+ import { ShortcutExistsParams } from '../../types';
2
+ export declare type GetFavoriteFolderResponse = {
3
+ unsigned: {
4
+ data: {
5
+ smartFunctionInfoList: [MiniappMetadata];
6
+ };
7
+ };
8
+ };
9
+ declare type MiniappMetadata = {
10
+ featureId: string;
11
+ imageUrl: string;
12
+ deeplink: string;
13
+ labelShort: string;
14
+ exists: boolean;
15
+ };
16
+ export declare function shortcutExists(params: ShortcutExistsParams): void;
17
+ export {};
package/dist/types.d.ts CHANGED
@@ -471,6 +471,21 @@ export declare type ErrorSheetButton = {
471
471
  export interface ScanCodeParams extends NativeParams<MiniAppResult> {
472
472
  redirectUrlOnCancel?: string;
473
473
  }
474
+ export declare const AddShortcutTypes: {
475
+ readonly FAVORITE: "FAVORITE";
476
+ readonly OS_HOME_SCREEN_ICON: "OS_HOME_SCREEN_ICON";
477
+ };
478
+ export declare type AddShortcutType = typeof AddShortcutTypes[keyof typeof AddShortcutTypes];
479
+ export interface AddShortcutParams extends NativeParams<void> {
480
+ type: AddShortcutType;
481
+ }
482
+ export declare const ShortcutExistsTypes: {
483
+ readonly FAVORITE: "FAVORITE";
484
+ };
485
+ export declare type ShortcutExistsType = typeof ShortcutExistsTypes[keyof typeof ShortcutExistsTypes];
486
+ export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
487
+ type: ShortcutExistsType;
488
+ }
474
489
  export interface GetUserPaymentFeatureSettingsParams extends NativeParams<MiniAppResult> {
475
490
  type?: 'PRE_TRANSACTION_AUTO_CHARGE' | 'FALLBACK_PAYMENT_METHOD';
476
491
  merchant?: string;
@@ -1,5 +1,6 @@
1
1
  export declare const MinVersion: {
2
2
  PRE_TRANSACTION_AUTO_CHARGE: string;
3
3
  FALLBACK_PAYMENT_METHOD: string;
4
+ OS_HOME_SCREEN_ICON: string;
4
5
  START_MULTIFACTOR_AUTH_ANDROID_FIX: string;
5
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.60.0",
3
+ "version": "1.62.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",
@@ -72,7 +72,7 @@
72
72
  "vite-plugin-dts": "^0.9.10",
73
73
  "vue-eslint-parser": "^7.11.0",
74
74
  "vue-jest": "5.0.0-alpha.9",
75
- "vue-tsc": "^0.29.5"
75
+ "vue-tsc": "^1.0.24"
76
76
  },
77
77
  "files": [
78
78
  "dist"