doum
9 天以前 f4f2eb7c80ab85bf0e52c1b911d5a4a82cda330d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
export declare const apiName = "internal.interactiveCard.sendAction";
/**
 * 动态卡片发送交互事件 请求参数定义
 * @apiName internal.interactiveCard.sendAction
 */
export interface IInternalInteractiveCardSendActionParams {
    cardInstanceId: number;
    cardAction: {
        /** 交互Id */
        actionId: string;
        /** 交互类型 0:同步; 1:异步 */
        actionType?: number;
        /** 交互内容 */
        actionData?: string;
        /** 加载文案 */
        beginActionText?: string;
        /** 成功文案 */
        successActionText?: string;
        /** 本地缓存数据 */
        localData?: string;
        /** 本地缓存数据类型 0:内存; 1:DB */
        localDataCacheType?: string;
    };
}
/**
 * 动态卡片发送交互事件 返回结果定义
 * @apiName internal.interactiveCard.sendAction
 */
export interface IInternalInteractiveCardSendActionResult {
    cardInfo: {
        /** 卡片Id */
        cardInstanceId: number;
        /** 小程序Id */
        miniAppId: string;
        /** 卡片数据 */
        cardData: string;
        /** 卡片私有数据 */
        privateCardData: string;
        /** 卡片版本 */
        version: number;
        /** 投放平台 */
        distPlatform: string;
        /** 平台Id */
        platformBizId: string;
        /** 小程序组件名 */
        widgetName: string;
        /** 卡片本地数据 */
        localData: string;
    };
}
/**
 * 动态卡片发送交互事件
 * @apiName internal.interactiveCard.sendAction
 * @supportVersion ios: 4.7.8 android: 4.7.8
 * @author android: 卧岩, iOS: 鱼非
 */
export declare function sendAction$(params: IInternalInteractiveCardSendActionParams): Promise<IInternalInteractiveCardSendActionResult>;
export default sendAction$;