@paypay/mini-app-js-sdk 1.21.0 → 1.25.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.
Files changed (139) hide show
  1. package/dist/composition-api/dom/index.d.ts +1 -0
  2. package/dist/composition-api/dom/useCountDown.d.ts +20 -0
  3. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  4. package/dist/composition-api/useRegisterEmail.d.ts +1 -1
  5. package/dist/composition-api/useRenderSmartButton.d.ts +1 -1
  6. package/dist/jsbridge-core/jsbridge.d.ts +2 -2
  7. package/dist/jsbridge-core/lib/logger.d.ts +5 -5
  8. package/dist/mini-app-api.d.ts +2 -2
  9. package/dist/mini-app-js-sdk.browser.js +1 -1
  10. package/dist/mini-app-js-sdk.es.js +9365 -6514
  11. package/dist/mini-app-js-sdk.min.css +1 -1
  12. package/dist/model/bridge/checkAccessToken.d.ts +1 -1
  13. package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
  14. package/dist/model/bridge/closeApp.d.ts +1 -1
  15. package/dist/model/bridge/copyToClipboard.d.ts +1 -1
  16. package/dist/model/bridge/debug.d.ts +1 -1
  17. package/dist/model/bridge/getAppDetail.d.ts +2 -16
  18. package/dist/model/bridge/getConfigure.d.ts +3 -3
  19. package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
  20. package/dist/model/bridge/getSessionData.d.ts +1 -1
  21. package/dist/model/bridge/getStorageData.d.ts +1 -1
  22. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  23. package/dist/model/bridge/getUAID.d.ts +1 -1
  24. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  25. package/dist/model/bridge/inputAddress.d.ts +1 -1
  26. package/dist/model/bridge/logout.d.ts +1 -1
  27. package/dist/model/bridge/openApp.d.ts +1 -1
  28. package/dist/model/bridge/openMap.d.ts +1 -1
  29. package/dist/model/bridge/openWebview.d.ts +1 -1
  30. package/dist/model/bridge/registerEmail.d.ts +1 -1
  31. package/dist/model/bridge/registerKyc.d.ts +1 -1
  32. package/dist/model/bridge/renderLoginButton.d.ts +6 -2
  33. package/dist/model/bridge/renderPayButton.d.ts +5 -1
  34. package/dist/model/bridge/request.d.ts +1 -1
  35. package/dist/model/makePayment.d.ts +76 -59
  36. package/dist/model/uiComponents.d.ts +2 -1
  37. package/dist/package/action-sheet/index.d.ts +20 -13
  38. package/dist/package/banner-header/index.vue.d.ts +3 -3
  39. package/dist/package/button/index.d.ts +17 -9
  40. package/dist/package/charge-amount-list/index.vue.d.ts +27 -8
  41. package/dist/package/charge-amount-more-list/index.vue.d.ts +6 -2
  42. package/dist/package/date-button/index.vue.d.ts +1 -3
  43. package/dist/package/desktop-header/index.d.ts +21 -0
  44. package/dist/package/header/index.d.ts +7 -7
  45. package/dist/package/index.d.ts +1 -0
  46. package/dist/package/input/index.d.ts +60 -17
  47. package/dist/package/lottie/index.d.ts +5 -8
  48. package/dist/package/overlay/index.d.ts +5 -4
  49. package/dist/package/payment-method/Bank.vue.d.ts +7 -7
  50. package/dist/package/payment-method/CreditCard.vue.d.ts +5 -5
  51. package/dist/package/payment-method/SbidBank.vue.d.ts +271 -4
  52. package/dist/package/payment-method/Wallet.vue.d.ts +274 -7
  53. package/dist/package/payment-method-list/index.vue.d.ts +14 -2
  54. package/dist/package/payment-type/Bank.vue.d.ts +5 -5
  55. package/dist/package/payment-type/CreditCard.vue.d.ts +6 -6
  56. package/dist/package/payment-type/Sbid.vue.d.ts +269 -2
  57. package/dist/package/payment-type/Wallet.vue.d.ts +270 -2
  58. package/dist/package/payment-type/index.d.ts +4 -6
  59. package/dist/package/select-list/Components.d.ts +43 -3
  60. package/dist/package/select-list/index.d.ts +11 -2
  61. package/dist/package/switch/index.d.ts +1 -1
  62. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +295 -0
  63. package/dist/types.d.ts +50 -18
  64. package/dist/utils/api.d.ts +44 -26
  65. package/dist/utils/create/bem.d.ts +2 -2
  66. package/dist/utils/create/index.d.ts +1 -1
  67. package/dist/utils/fetch.d.ts +3 -3
  68. package/dist/utils/getImages.d.ts +36 -5
  69. package/dist/utils/getLanguage.d.ts +233 -2
  70. package/dist/utils/helper.d.ts +17 -15
  71. package/dist/utils/popstateHandler.d.ts +2 -1
  72. package/dist/utils/storage.d.ts +12 -10
  73. package/dist/utils/uiConstants.d.ts +1 -0
  74. package/dist/utils/useBreakpoints.d.ts +5 -0
  75. package/dist/utils/utils.d.ts +2 -0
  76. package/dist/views/email-registration/App.vue.d.ts +242 -10
  77. package/dist/views/email-registration/components/EmailButton.vue.d.ts +3 -3
  78. package/dist/views/email-registration/hooks/callback.d.ts +2 -2
  79. package/dist/views/email-registration/hooks/ui.d.ts +2 -2
  80. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +2 -2
  81. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +1 -1
  82. package/dist/views/error-sheet/Index.vue.d.ts +280 -13
  83. package/dist/views/get-user-address/App.vue.d.ts +11 -3
  84. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +252 -11
  85. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +271 -4
  86. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +255 -3
  87. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +236 -4
  88. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +262 -19
  89. package/dist/views/get-user-address/Sheet/App.vue.d.ts +29 -12
  90. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +244 -3
  91. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +251 -4
  92. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +311 -11
  93. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +249 -0
  94. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +268 -0
  95. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +263 -0
  96. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +255 -0
  97. package/dist/views/get-user-address/hooks/ui-hooks.d.ts +45 -2
  98. package/dist/views/get-user-address/store/error-handle.d.ts +2 -1
  99. package/dist/views/get-user-address/store/root.d.ts +6 -2
  100. package/dist/views/input-address/App.vue.d.ts +6 -7
  101. package/dist/views/input-address/hook/app.d.ts +3 -2
  102. package/dist/views/input-address/hook/error-handle.d.ts +10 -3
  103. package/dist/views/make-payment/App.vue.d.ts +3 -3
  104. package/dist/views/make-payment/Main.vue.d.ts +80 -511
  105. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +239 -8
  106. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +238 -5
  107. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +269 -2
  108. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +269 -2
  109. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +5 -4
  110. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +276 -9
  111. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +249 -3
  112. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +372 -13
  113. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +283 -7
  114. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +564 -236
  115. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +241 -6
  116. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +274 -0
  117. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
  118. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +242 -10
  119. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +337 -0
  120. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +347 -18
  121. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +43 -9
  122. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +302 -8
  123. package/dist/views/make-payment/hooks/app-hooks.d.ts +178 -361
  124. package/dist/views/make-payment/hooks/ui-hooks.d.ts +30 -16
  125. package/dist/views/make-payment/store/age-confirm.d.ts +1 -1
  126. package/dist/views/make-payment/store/handle-error.d.ts +2 -2
  127. package/dist/views/make-payment/store/root.d.ts +4 -4
  128. package/dist/views/make-payment/utils/paymentMethod.d.ts +3 -1
  129. package/dist/views/open-app/App.vue.d.ts +275 -6
  130. package/dist/views/open-map/App.vue.d.ts +240 -6
  131. package/dist/views/show-alert/App.vue.d.ts +5 -5
  132. package/dist/views/show-update-warning/App.vue.d.ts +275 -6
  133. package/dist/views/smart-button/App.vue.d.ts +11 -11
  134. package/dist/views/take-photo/App.vue.d.ts +239 -5
  135. package/dist/views/topup/App.vue.d.ts +309 -23
  136. package/dist/views/topup/BannerInfo.vue.d.ts +15 -11
  137. package/dist/views/topup/CashbackInfo.vue.d.ts +235 -3
  138. package/dist/views/topup/TopupCompletion.vue.d.ts +278 -7
  139. package/package.json +5 -4
@@ -0,0 +1,255 @@
1
+ import { PropType } from 'vue';
2
+ import { Address } from '../../../../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ selectedAddress: {
5
+ type: PropType<Address | null>;
6
+ required: false;
7
+ default: () => void;
8
+ };
9
+ }, {
10
+ lg: {
11
+ showUpdateWarning: {
12
+ closeBtn: string;
13
+ notNow: string;
14
+ update: string;
15
+ title: string;
16
+ errorText: string;
17
+ desc1: string;
18
+ desc2: string;
19
+ };
20
+ openApp: {
21
+ title: string;
22
+ body: string;
23
+ errorText: string;
24
+ openApp: string;
25
+ cancel: string;
26
+ };
27
+ openMap: {
28
+ title: string;
29
+ errorText: string;
30
+ };
31
+ topup: {
32
+ title: string;
33
+ balMoney: string;
34
+ charge: string;
35
+ minAmount: string;
36
+ maxAmount: string;
37
+ moneyLabel: string;
38
+ noMethod: string;
39
+ loading: string;
40
+ payBtn: string;
41
+ availableBalance: string;
42
+ availableBalanceAfter: string;
43
+ allBalance: string;
44
+ };
45
+ takePhoto: {
46
+ camera: string;
47
+ photo: string;
48
+ };
49
+ payment: {
50
+ title: string;
51
+ payAmount: string;
52
+ payAmountTaxExempt: string;
53
+ method: string;
54
+ address: string;
55
+ insufficientAmount: string;
56
+ paying: string;
57
+ pay: string;
58
+ charge: string;
59
+ cancel: string;
60
+ noAddress: string;
61
+ change: string;
62
+ close: string;
63
+ };
64
+ duplicate: {
65
+ header: string;
66
+ text1: string;
67
+ text2: string;
68
+ cancel: string;
69
+ agreeButtonText: string;
70
+ topHeader: string;
71
+ topText1: string;
72
+ topText2: string;
73
+ topAgreeButtonText: string;
74
+ };
75
+ birthdayConfirm: {
76
+ title: string;
77
+ title2: string;
78
+ desc: string;
79
+ desc1: string;
80
+ desc2: string;
81
+ desc3: string;
82
+ date: string;
83
+ primaryBtn: string;
84
+ cancelBtn: string;
85
+ };
86
+ birthdayConfirmError: {
87
+ title: string;
88
+ title2: string;
89
+ desc: string;
90
+ desc2: string;
91
+ helpBtn: string;
92
+ closeBtn: string;
93
+ };
94
+ cashbackDet: {
95
+ button1: string;
96
+ button2: string;
97
+ button3: string;
98
+ };
99
+ topContent: {
100
+ title: string;
101
+ chargeTitle: string;
102
+ chargeLabel: string;
103
+ loading: string;
104
+ unavailable1: string;
105
+ unavailable2: string;
106
+ amount: string;
107
+ return: string;
108
+ };
109
+ topInfo: {
110
+ sufficientRow: string;
111
+ insufficientAmount: string;
112
+ insufficientAmountText: string;
113
+ paymentAmount: string;
114
+ };
115
+ choosePayment: {
116
+ title: string;
117
+ desc1: string;
118
+ desc2: string;
119
+ title2: string;
120
+ addMethod: string;
121
+ noMethod: string;
122
+ };
123
+ topupCompletion: {
124
+ title: string;
125
+ idInfo: string;
126
+ copied: string;
127
+ };
128
+ userAddress: {
129
+ title: string;
130
+ header: string;
131
+ tagForm: string;
132
+ home: string;
133
+ work: string;
134
+ billing: string;
135
+ footer: string;
136
+ titlePre: string;
137
+ titleApp: string;
138
+ titlePlace: string;
139
+ receiverPre: string;
140
+ receiverPlace: string;
141
+ inputPre: string;
142
+ statePre: string;
143
+ statePlace: string;
144
+ cityPre: string;
145
+ cityPlace: string;
146
+ street1Pre: string;
147
+ streetPlace: string;
148
+ street2Pre: string;
149
+ street2Place: string;
150
+ footerBtn1: string;
151
+ footerBtn2: string;
152
+ displayTitle: string;
153
+ deleteTitle: string;
154
+ delete: string;
155
+ close: string;
156
+ addAddress: string;
157
+ address: string;
158
+ return: string;
159
+ change: string;
160
+ noAddress: string;
161
+ registerAddress: string;
162
+ confirmAddress: string;
163
+ returnEdit: string;
164
+ selectAddress: string;
165
+ selectDeliveryAddress: string;
166
+ };
167
+ errorSheet: {
168
+ title: string;
169
+ title1: string;
170
+ desc: string;
171
+ topup: string;
172
+ topupDesc: string;
173
+ pay: string;
174
+ payDesc: string;
175
+ };
176
+ paymentMethod: {
177
+ expired: string;
178
+ ordinary: string;
179
+ current: string;
180
+ checkGreen: string;
181
+ authenticated: string;
182
+ yjTitle: string;
183
+ ppCardTitle: string;
184
+ brand: string;
185
+ };
186
+ paymentMethodStatus: {
187
+ ACTIVATED: string;
188
+ OFF: string;
189
+ APPLYING: string;
190
+ MAINTENANCE: string;
191
+ BUSY: string;
192
+ SUSPENDED: string;
193
+ };
194
+ wallet: {
195
+ title: string;
196
+ desc: string;
197
+ eMoney: string;
198
+ nonUsable: string;
199
+ cashBackUsable: string;
200
+ cashBackExpirable: string;
201
+ balance: string;
202
+ };
203
+ softbank: {
204
+ desc: string;
205
+ desc1: string;
206
+ isDisable: string;
207
+ };
208
+ registerEmail: {
209
+ title: string;
210
+ warning: string;
211
+ cancelTxt: string;
212
+ errorTitleAlreadyRegistered: string;
213
+ errorDescriptionAlreadyRegistered: string;
214
+ errorTitle: string;
215
+ errorDescription: string;
216
+ };
217
+ smartLogin: {
218
+ title: string;
219
+ signIn: string;
220
+ continueAs: string;
221
+ };
222
+ smartPay: {
223
+ pay: string;
224
+ paypay: string;
225
+ cashback: string;
226
+ };
227
+ cashbackList: {
228
+ close: string;
229
+ };
230
+ desktopTitle: {
231
+ Payment: string;
232
+ addNewAddress: string;
233
+ editAddress: string;
234
+ paymentCompletion: string;
235
+ getUserAddress: string;
236
+ };
237
+ closeConfirmation: {
238
+ title: string;
239
+ confirm: string;
240
+ cancel: string;
241
+ };
242
+ };
243
+ style: Record<string, string>;
244
+ isDesktop: import("vue").ComputedRef<boolean>;
245
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "confirm")[], "close" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
246
+ selectedAddress?: unknown;
247
+ } & {
248
+ selectedAddress: Address | null;
249
+ } & {}> & {
250
+ onClose?: ((...args: any[]) => any) | undefined;
251
+ onConfirm?: ((...args: any[]) => any) | undefined;
252
+ }, {
253
+ selectedAddress: Address | null;
254
+ }>;
255
+ export default _default;
@@ -3,12 +3,55 @@ export declare function useUIControl(): {
3
3
  pageTransition: {
4
4
  fullScreen: import("vue").ComputedRef<boolean>;
5
5
  showAddSheet: import("vue").ComputedRef<boolean>;
6
- openAddSheet: (address: Address) => void;
6
+ openAddSheet: (address?: Address | undefined) => void;
7
7
  closeAddSheet: () => void;
8
8
  resetAddress: () => void;
9
- address: import("vue").ComputedRef<any>;
9
+ address: import("vue").ComputedRef<{
10
+ id: number;
11
+ kyc: boolean;
12
+ street1: string;
13
+ country: string;
14
+ zip: string;
15
+ state: string;
16
+ city: string;
17
+ tags?: string[] | undefined;
18
+ title?: string | undefined;
19
+ receiver?: string | undefined;
20
+ street2?: string | undefined;
21
+ } | null>;
22
+ isDesktop: import("vue").ComputedRef<boolean>;
10
23
  };
11
24
  headerHeight: import("vue").ComputedRef<{
12
25
  maxHeight: string;
13
26
  }>;
14
27
  };
28
+ export declare function useAddressControl(): {
29
+ selectedAddress: import("vue").ComputedRef<{
30
+ id: number;
31
+ kyc: boolean;
32
+ street1: string;
33
+ country: string;
34
+ zip: string;
35
+ state: string;
36
+ city: string;
37
+ tags?: string[] | undefined;
38
+ title?: string | undefined;
39
+ receiver?: string | undefined;
40
+ street2?: string | undefined;
41
+ } | null>;
42
+ setSelectedAddress: (index: number, address: Address[], isMakePayment?: boolean) => void;
43
+ confirmedSelectedAddress: import("vue").ComputedRef<{
44
+ id: number;
45
+ kyc: boolean;
46
+ street1: string;
47
+ country: string;
48
+ zip: string;
49
+ state: string;
50
+ city: string;
51
+ tags?: string[] | undefined;
52
+ title?: string | undefined;
53
+ receiver?: string | undefined;
54
+ street2?: string | undefined;
55
+ } | null>;
56
+ confirmSelectedAddress: () => void;
57
+ };
@@ -1,12 +1,13 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { ErrorResponse } from '../../../utils/fetch';
3
+ import { GetAddressListResponse } from '../../../utils/api';
3
4
  export declare const KEY = "getUserAddress_error_handling";
4
5
  export interface ErrorHandleStore {
5
6
  errorShow: ComputedRef<boolean>;
6
7
  errorTitle: ComputedRef<string>;
7
8
  errorDescription: ComputedRef<string>;
8
9
  errorIcon: ComputedRef<string>;
9
- handleError: <T>(res?: ErrorResponse | T) => res is ErrorResponse;
10
+ handleError: (res?: ErrorResponse | GetAddressListResponse) => res is ErrorResponse;
10
11
  }
11
12
  export declare function initErrorHandling(): ErrorHandleStore;
12
13
  export declare function getErrorHandling(): ErrorHandleStore;
@@ -1,14 +1,18 @@
1
1
  import { SetupContext } from 'vue';
2
- import { Address, GetUserAddressParams } from '../../../types';
2
+ import { Address, GetUserAddressParams, AddressUpdateEvent } from '../../../types';
3
3
  export declare const KEY = "getUserAddress_root";
4
4
  export interface Props {
5
5
  getUserAddressParams: GetUserAddressParams;
6
+ selectedAddress: Address | null;
6
7
  }
7
8
  export interface RootStore {
8
9
  cancel: () => void;
9
10
  success: (address: Address) => void;
10
11
  back: () => void;
11
- makepayment: (index: any) => void;
12
+ chooseAddress: (address: Address) => void;
13
+ layoutUpdate: (value?: boolean) => void;
14
+ updateAddress: (data: AddressUpdateEvent) => void;
15
+ savedMakepayAddressid: number;
12
16
  }
13
17
  export declare function initRoot(props: Props, { emit }: SetupContext): RootStore;
14
18
  export declare function getRoot(): RootStore;
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  inputAddressParams: {
5
5
  type: PropType<InputAddressParams>;
6
6
  required: true;
7
- default: any;
7
+ default: null;
8
8
  };
9
9
  show: {
10
10
  type: BooleanConstructor;
@@ -20,17 +20,16 @@ declare const _default: import("vue").DefineComponent<{
20
20
  addAddress: (_address: import("../../types").Address) => Promise<void>;
21
21
  loading: import("vue").ComputedRef<boolean>;
22
22
  closeError: () => void;
23
- address: import("vue").ComputedRef<any>;
24
- delAddress: (res: any) => Promise<void>;
23
+ address: import("vue").ComputedRef<import("../../types").Address | undefined>;
24
+ delAddress: (res: import("../../utils/api").GetAddressListResponse | import("../../utils/fetch").ErrorResponse) => void;
25
25
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
26
26
  inputAddressParams?: unknown;
27
27
  show?: unknown;
28
28
  } & {
29
29
  show: boolean;
30
- } & {
31
- inputAddressParams?: any;
32
- }>, {
30
+ inputAddressParams: InputAddressParams;
31
+ } & {}>, {
33
32
  show: boolean;
34
- inputAddressParams: any;
33
+ inputAddressParams: InputAddressParams;
35
34
  }>;
36
35
  export default _default;
@@ -1,13 +1,14 @@
1
1
  import { Address } from '../../../types';
2
+ import { GetAddressListResponse } from '../../../utils/api';
2
3
  import { ErrorResponse } from '../../../utils/fetch';
3
4
  export declare function useApp(params: {
4
- handleError: (res?: ErrorResponse | any) => res is ErrorResponse;
5
+ handleError: (res?: ErrorResponse | GetAddressListResponse) => boolean;
5
6
  success: () => void;
6
7
  address?: Address | null | undefined;
7
8
  }): {
8
9
  addAddress: (_address: Address) => Promise<void>;
9
10
  loading: import("vue").ComputedRef<boolean>;
10
- delAddress: (res: ErrorResponse | any) => Promise<void>;
11
+ delAddress: (res: ErrorResponse | GetAddressListResponse) => void;
11
12
  shallow: import("vue").ComputedRef<boolean>;
12
13
  reset: () => void;
13
14
  };
@@ -1,10 +1,17 @@
1
- import { SetupContext } from 'vue';
2
1
  import { ErrorResponse } from '../../../utils/fetch';
3
- export declare function useErrorHandling({ emit }: SetupContext): {
2
+ interface SuccessResponse {
3
+ unsigned?: {
4
+ resultInfo?: {
5
+ code: string;
6
+ };
7
+ };
8
+ }
9
+ export declare function useErrorHandling(): {
4
10
  errorShow: import("vue").ComputedRef<boolean>;
5
11
  errorTitle: import("vue").ComputedRef<string>;
6
12
  errorIcon: import("vue").ComputedRef<string>;
7
13
  errorDescription: import("vue").ComputedRef<string>;
8
- handleError: (res?: ErrorResponse | any) => res is ErrorResponse;
14
+ handleError: (res?: ErrorResponse | SuccessResponse | undefined) => boolean;
9
15
  closeError: () => void;
10
16
  };
17
+ export {};
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
25
25
  isError: import("vue").ComputedRef<boolean>;
26
26
  closeError: (immediately: boolean) => void;
27
27
  showConsultError: import("vue").ComputedRef<boolean>;
28
- consultError: import("vue").ComputedRef<import("../../model/uiComponents").UIComponentsError>;
28
+ consultError: import("vue").ComputedRef<import("../../model/uiComponents").UIComponentsError | null>;
29
29
  isErrorOverlay: import("vue").ComputedRef<boolean>;
30
30
  errorIcon: import("vue").ComputedRef<string>;
31
31
  errorDescription: import("vue").ComputedRef<string>;
@@ -37,16 +37,16 @@ declare const _default: import("vue").DefineComponent<{
37
37
  addresses?: unknown;
38
38
  showUserAddress?: unknown;
39
39
  } & {
40
+ orderItems: Record<string, any>;
40
41
  show: boolean;
41
42
  addresses: Address[];
42
43
  paymentParams: MakePaymentParams;
43
44
  showUserAddress: boolean;
44
- orderItems: Record<string, any>;
45
45
  } & {}>, {
46
+ orderItems: Record<string, any>;
46
47
  show: boolean;
47
48
  addresses: Address[];
48
49
  paymentParams: MakePaymentParams;
49
50
  showUserAddress: boolean;
50
- orderItems: Record<string, any>;
51
51
  }>;
52
52
  export default _default;