zmp-sdk 2.51.1 → 2.51.4

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/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AsyncVoidCallback as AsyncVoidCallback$1, StreamType as StreamType$1, MediaConstraints as MediaConstraints$1, PhotoConstraint as PhotoConstraint$1, PhotoFrame as PhotoFrame$1, MediaDevice as MediaDevice$1, CameraEvents as CameraEvents$1 } from '@mp-types';
2
+ import { AppError as AppError$1 } from '@utils/errorHandler';
2
3
 
3
4
  /**
4
5
  * @typedef {"none" | "wifi" | "cellular" | "unknown"} NetworkType
@@ -5774,7 +5775,17 @@ declare const showFunctionButtonWidgetArgs: ZodObject<{
5774
5775
  type: string;
5775
5776
  id: string;
5776
5777
  }>[];
5777
- declare function showFunctionButtonWidget(args: AsyncVoidCallback & TypeOf<(typeof showFunctionButtonWidgetArgs)[0]>): Promise<void>;
5778
+ type FunctionButtonWidgetContext = {
5779
+ callAction: (actionName: string, actionData: any) => void;
5780
+ };
5781
+ type FunctionButtonWidgetOnDataReceived = (interactToken: string, type: string, context: FunctionButtonWidgetContext) => void;
5782
+ type FunctionButtonWidgetOnError = (error: AppError$1) => void;
5783
+ type ShowFunctionButtonWidgetValidatedArgs = TypeOf<(typeof showFunctionButtonWidgetArgs)[0]>;
5784
+ type ShowFunctionButtonWidgetArgs = Omit<ShowFunctionButtonWidgetValidatedArgs, "onDataReceived" | "onError"> & {
5785
+ onDataReceived?: FunctionButtonWidgetOnDataReceived;
5786
+ onError?: FunctionButtonWidgetOnError;
5787
+ };
5788
+ declare function showFunctionButtonWidget(args: AsyncVoidCallback & ShowFunctionButtonWidgetArgs): Promise<void>;
5778
5789
 
5779
5790
  declare const scanNFCArgs: ZodObject<{
5780
5791
  type: ZodEnum<["cccd"]>;
@@ -5785,12 +5796,15 @@ declare const scanNFCArgs: ZodObject<{
5785
5796
  }, {
5786
5797
  mrz: string;
5787
5798
  }>;
5799
+ skip_active_authen: ZodDefault<ZodOptional<ZodBoolean>>;
5788
5800
  }, "strip", ZodTypeAny, {
5789
5801
  data: {
5790
5802
  mrz: string;
5791
5803
  };
5792
5804
  type: "cccd";
5805
+ skip_active_authen: boolean;
5793
5806
  }, {
5807
+ skip_active_authen?: boolean | undefined;
5794
5808
  data: {
5795
5809
  mrz: string;
5796
5810
  };