@quec-wx-mp/api-ai 0.1.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.
@@ -0,0 +1,89 @@
1
+ /**
2
+ * @module 订单管理
3
+ */
4
+ import type { BizOrderPkgType, PackageType } from '../types/params';
5
+ /**
6
+ * 查询套餐列表
7
+ *
8
+ * @example
9
+ * ```
10
+ * const plugin = requirePlugin('quecPlugin')
11
+ * plugin.ai.findPackageListV2({
12
+ * merchantNo:'',
13
+ * packageType:'EDU_SIM_RENEW',
14
+ * terminalCode:'',
15
+ * success (res) {},
16
+ * fail (res) {},
17
+ * complete (res) { }
18
+ * })
19
+ * ```
20
+ */
21
+ export declare function findPackageListV2(options: {
22
+ /** 商户号 */
23
+ merchantNo: string;
24
+ /** 套餐类型 */
25
+ packageType: PackageType;
26
+ /** 终端应用 */
27
+ terminalCode: string;
28
+ /** 设备DK */
29
+ deviceKey?: string;
30
+ /** 产品pk */
31
+ productKey?: string;
32
+ /** 商品标记 */
33
+ goodsKey?: string;
34
+ /** 第三方商品ID */
35
+ goodsThirdId?: string;
36
+ /** Sim卡标识(Sim相关套餐必传,暂不支持多卡) */
37
+ iccids?: string;
38
+ /** 商品编码 */
39
+ productCode?: string;
40
+ /** 接口调用成功的回调函数 */
41
+ success: (res: ResponseData) => void;
42
+ /** 接口调用失败的回调函数 */
43
+ fail: (res: Error) => void;
44
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
45
+ complete: () => void;
46
+ },
47
+ /** @ignore */
48
+ requestMethod: RequestFunction): void;
49
+ /**
50
+ * 创建订单
51
+ *
52
+ * @example
53
+ * ```
54
+ * const plugin = requirePlugin('quecPlugin')
55
+ * plugin.ai.createContentBizOrder({
56
+ * merchantNo:'',
57
+ * packageVersionId:'',
58
+ * size:1,
59
+ * productKey:'',
60
+ * deviceKey:'',
61
+ * packageType:'AI_MUSIC',
62
+ * success (res) {},
63
+ * fail (res) {},
64
+ * complete (res) { }
65
+ * })
66
+ * ```
67
+ */
68
+ export declare function createContentBizOrder(options: {
69
+ /** 产品PK */
70
+ productKey: string;
71
+ /** 设备DK */
72
+ deviceKey: string;
73
+ /** 商户号 */
74
+ merchantNo: string;
75
+ /** 套餐版本id */
76
+ packageVersionId: number;
77
+ /** 购买份数 */
78
+ size: number;
79
+ /** 套餐类型 */
80
+ packageType: BizOrderPkgType;
81
+ /** 接口调用成功的回调函数 */
82
+ success: (res: ResponseData) => void;
83
+ /** 接口调用失败的回调函数 */
84
+ fail: (res: Error) => void;
85
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
86
+ complete: () => void;
87
+ },
88
+ /** @ignore */
89
+ requestMethod: RequestFunction): void;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @module 聊天记录
3
+ */
4
+ /**
5
+ * 聊天记录删除
6
+ *
7
+ * @example
8
+ * ```
9
+ * const plugin = requirePlugin('quecPlugin')
10
+ * plugin.ai.deleteHistoryV2({
11
+ * roleIds: [1],
12
+ * success (res) {},
13
+ * fail (res) {},
14
+ * complete (res) { }
15
+ * })
16
+ * ```
17
+ */
18
+ export declare function deleteHistoryV2(options: {
19
+ /** 角色ID列表 */
20
+ roleIds: Array<number>;
21
+ /** 设备信息ID(优先以deviceInfoId为主,没有的话处理pk、dk、endUserId) */
22
+ deviceInfoId?: number;
23
+ /** 产品PK */
24
+ productKey?: string;
25
+ /** 设备DK */
26
+ deviceKey?: string;
27
+ /** 终端用户ID */
28
+ endUserId?: string;
29
+ /** 接口调用成功的回调函数 */
30
+ success?: (res: ResponseData) => void;
31
+ /** 接口调用失败的回调函数 */
32
+ fail?: (res: Error) => void;
33
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
34
+ complete?: () => void;
35
+ },
36
+ /** @ignore */
37
+ requestMethod: RequestFunction): void;
@@ -0,0 +1,125 @@
1
+ /**
2
+ * @module 内容服务
3
+ */
4
+ /**
5
+ * 内容服务 - 是否展示点播菜单
6
+ *
7
+ * @example
8
+ * ```
9
+ * const plugin = requirePlugin('quecPlugin')
10
+ * plugin.ai.isShowOnDemand({
11
+ * productKey: '',
12
+ * deviceKey'',
13
+ * success (res) {},
14
+ * fail (res) {},
15
+ * complete (res) { }
16
+ * })
17
+ * ```
18
+ */
19
+ export declare function isShowOnDemand(options: {
20
+ /** 设备 PK */
21
+ productKey: string;
22
+ /** 设备 DK */
23
+ deviceKey: string;
24
+ /** 接口调用成功的回调函数 */
25
+ success?: (res: ResponseData) => void;
26
+ /** 接口调用失败的回调函数 */
27
+ fail?: (res: Error) => void;
28
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
29
+ complete?: () => void;
30
+ },
31
+ /** @ignore */
32
+ requestMethod: RequestFunction): void;
33
+ /**
34
+ * 内容服务 - 点播分类列表
35
+ *
36
+ * @example
37
+ * ```
38
+ * const plugin = requirePlugin('quecPlugin')
39
+ * plugin.ai.onDemandCategory({
40
+ * code: 'quec_common_app',
41
+ * success (res) {},
42
+ * fail (res) {},
43
+ * complete (res) { }
44
+ * })
45
+ * ```
46
+ */
47
+ export declare function onDemandCategory(options: {
48
+ /** code */
49
+ code: string;
50
+ /** 接口调用成功的回调函数 */
51
+ success?: (res: ResponseData) => void;
52
+ /** 接口调用失败的回调函数 */
53
+ fail?: (res: Error) => void;
54
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
55
+ complete?: () => void;
56
+ },
57
+ /** @ignore */
58
+ requestMethod: RequestFunction): void;
59
+ /**
60
+ * 内容服务 - 点播专辑列表
61
+ *
62
+ * @example
63
+ * ```
64
+ * const plugin = requirePlugin('quecPlugin')
65
+ * plugin.ai.onDemandSearchalbum({
66
+ * type: '',
67
+ * name:'',
68
+ * pageNum:1,
69
+ * pageSize:1,
70
+ * success (res) {},
71
+ * fail (res) {},
72
+ * complete (res) { }
73
+ * })
74
+ * ```
75
+ */
76
+ export declare function onDemandSearchalbum(options: {
77
+ /** 类型 */
78
+ type: string;
79
+ /** 名称 */
80
+ name: string;
81
+ /** 页码 */
82
+ pageNum?: string;
83
+ /** 页大小 */
84
+ pageSize?: string;
85
+ /** 接口调用成功的回调函数 */
86
+ success?: (res: ResponseData) => void;
87
+ /** 接口调用失败的回调函数 */
88
+ fail?: (res: Error) => void;
89
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
90
+ complete?: () => void;
91
+ },
92
+ /** @ignore */
93
+ requestMethod: RequestFunction): void;
94
+ /**
95
+ * 内容服务 - 专辑内容列表
96
+ *
97
+ * @example
98
+ * ```
99
+ * const plugin = requirePlugin('quecPlugin')
100
+ * plugin.ai.onDemandTracklist({
101
+ * albumId:'',
102
+ * pageNum:1,
103
+ * pageSize:1,
104
+ * success (res) {},
105
+ * fail (res) {},
106
+ * complete (res) { }
107
+ * })
108
+ * ```
109
+ */
110
+ export declare function onDemandTracklist(options: {
111
+ /** 专辑ID */
112
+ albumId: string;
113
+ /** 页码 */
114
+ pageNum?: string;
115
+ /** 页大小 */
116
+ pageSize?: string;
117
+ /** 接口调用成功的回调函数 */
118
+ success?: (res: ResponseData) => void;
119
+ /** 接口调用失败的回调函数 */
120
+ fail?: (res: Error) => void;
121
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
122
+ complete?: () => void;
123
+ },
124
+ /** @ignore */
125
+ requestMethod: RequestFunction): void;