zmp-sdk 2.45.0-beta.3 → 2.45.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/apis/apis/showFunctionButtonWidget.js +1 -1
- package/apis/apis/showOAWidget.js +1 -1
- package/apis/index.d.ts +12 -8
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +12 -8
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -982,10 +982,7 @@ declare enum Events {
|
|
|
982
982
|
* * Lưu ý: Event sẽ được gửi khi người dùng hoàn tất hoặc hủy quy trình thanh toán.
|
|
983
983
|
* * Đối tác cần sử dụng API checkTransaction để kiểm tra trạng thái thanh toán mới nhất.
|
|
984
984
|
*
|
|
985
|
-
*
|
|
986
|
-
*
|
|
987
|
-
* ```tsx
|
|
988
|
-
* ```
|
|
985
|
+
* @link https://mini.zalo.me/documents/checkout-sdk/integration-process/overview/receive-transaction-ma/
|
|
989
986
|
* */
|
|
990
987
|
PaymentDone = "action.payment.done",
|
|
991
988
|
PaymentClose = "action.payment.close",
|
|
@@ -3762,15 +3759,20 @@ declare const showOAWidgetArgs: ZodObject<{
|
|
|
3762
3759
|
guidingText: ZodOptional<ZodString>;
|
|
3763
3760
|
color: ZodOptional<ZodString>;
|
|
3764
3761
|
onStatusChange: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3765
|
-
|
|
3762
|
+
onError: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3763
|
+
}, "strip", ZodAny, {
|
|
3764
|
+
[x: string]: any;
|
|
3766
3765
|
color?: string | undefined;
|
|
3767
3766
|
guidingText?: string | undefined;
|
|
3768
3767
|
onStatusChange?: ((...args: unknown[]) => unknown) | undefined;
|
|
3768
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3769
3769
|
id: string;
|
|
3770
3770
|
}, {
|
|
3771
|
+
[x: string]: any;
|
|
3771
3772
|
color?: string | undefined;
|
|
3772
3773
|
guidingText?: string | undefined;
|
|
3773
3774
|
onStatusChange?: ((...args: unknown[]) => unknown) | undefined;
|
|
3775
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3774
3776
|
id: string;
|
|
3775
3777
|
}>[];
|
|
3776
3778
|
declare function showOAWidget(args: AsyncVoidCallback & TypeOf<(typeof showOAWidgetArgs)[0]>): Promise<void>;
|
|
@@ -3783,19 +3785,21 @@ declare const showFunctionButtonWidgetArgs: ZodObject<{
|
|
|
3783
3785
|
disabled: ZodOptional<ZodBoolean>;
|
|
3784
3786
|
onDataReceived: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3785
3787
|
onError: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
|
|
3786
|
-
}, "strip",
|
|
3788
|
+
}, "strip", ZodAny, {
|
|
3789
|
+
[x: string]: any;
|
|
3787
3790
|
color?: string | undefined;
|
|
3791
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3788
3792
|
disabled?: boolean | undefined;
|
|
3789
3793
|
onDataReceived?: ((...args: unknown[]) => unknown) | undefined;
|
|
3790
|
-
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3791
3794
|
text: string;
|
|
3792
3795
|
type: string;
|
|
3793
3796
|
id: string;
|
|
3794
3797
|
}, {
|
|
3798
|
+
[x: string]: any;
|
|
3795
3799
|
color?: string | undefined;
|
|
3800
|
+
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3796
3801
|
disabled?: boolean | undefined;
|
|
3797
3802
|
onDataReceived?: ((...args: unknown[]) => unknown) | undefined;
|
|
3798
|
-
onError?: ((...args: unknown[]) => unknown) | undefined;
|
|
3799
3803
|
text: string;
|
|
3800
3804
|
type: string;
|
|
3801
3805
|
id: string;
|