superapp-miniapp-invoke-native 1.12.1 → 1.12.3
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/lib/main.d.ts +6 -8
- package/lib/main.js +646 -719
- package/lib/main.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/main.d.ts
CHANGED
|
@@ -143,9 +143,13 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
|
|
|
143
143
|
cancelNativeLoading(): Promise<void>;
|
|
144
144
|
getMiniAppKong(miniAppKong: MiniAppKongType): Promise<MiniAppKongType | undefined>;
|
|
145
145
|
getDeeplinkParams(sendDeepLinkListenerParams: SendDeepLinkListenerParamsType): void;
|
|
146
|
-
switchLanguage(sendSwitchLanguageParams: SendSwitchLanguageParamsType):
|
|
146
|
+
switchLanguage(sendSwitchLanguageParams: SendSwitchLanguageParamsType): {
|
|
147
|
+
errorMsg: string;
|
|
148
|
+
};
|
|
147
149
|
setupMiniApp(setupMiniAppParams: SetupMiniAppParamsType): void;
|
|
148
|
-
switchStore(sendSwitchStoreParams: SendSwitchStoreParamsType):
|
|
150
|
+
switchStore(sendSwitchStoreParams: SendSwitchStoreParamsType): {
|
|
151
|
+
errorMsg: string;
|
|
152
|
+
};
|
|
149
153
|
closeMiniApp(): Promise<void>;
|
|
150
154
|
getStatus(): Promise<any>;
|
|
151
155
|
dispatchToShell(params: DispatchToShellParamsType): Promise<DispatchToShellParamsType | undefined>;
|
|
@@ -468,12 +472,6 @@ export declare interface OtelPluginsHandleType {
|
|
|
468
472
|
|
|
469
473
|
export declare interface OtelPluginStatus {
|
|
470
474
|
recordTrace: boolean;
|
|
471
|
-
protocolVersion: typeof OTEL_PLUGIN_PROTOCOL_VERSION;
|
|
472
|
-
maxSpansPerTrace: number;
|
|
473
|
-
maxDepth: number;
|
|
474
|
-
maxAttributesPerSpan: number;
|
|
475
|
-
maxEventsPerSpan: number;
|
|
476
|
-
maxPayloadBytes: number;
|
|
477
475
|
}
|
|
478
476
|
|
|
479
477
|
export declare type OtelRecordCode = "OK" | "UNSUPPORTED" | "DISABLED" | "INVALID_PARAMETERS" | "INVALID_TREE" | "RATE_LIMITED" | "INTERNAL_ERROR";
|