@ray-js/api 1.4.62 → 1.4.63

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.
Files changed (54) hide show
  1. package/lib/cloud/device.js +1 -1
  2. package/lib/cloud/doorlock/README.md +3 -0
  3. package/lib/cloud/doorlock/auth.d.ts +235 -0
  4. package/lib/cloud/doorlock/auth.js +223 -0
  5. package/lib/cloud/doorlock/device.d.ts +137 -0
  6. package/lib/cloud/doorlock/device.js +187 -0
  7. package/lib/cloud/doorlock/index.d.ts +10 -0
  8. package/lib/cloud/doorlock/index.js +20 -0
  9. package/lib/cloud/doorlock/log.d.ts +113 -0
  10. package/lib/cloud/doorlock/log.js +53 -0
  11. package/lib/cloud/doorlock/member-opmode.d.ts +121 -0
  12. package/lib/cloud/doorlock/member-opmode.js +104 -0
  13. package/lib/cloud/doorlock/member.d.ts +110 -0
  14. package/lib/cloud/doorlock/member.js +72 -0
  15. package/lib/cloud/doorlock/offline-pwd.d.ts +61 -0
  16. package/lib/cloud/doorlock/offline-pwd.js +67 -0
  17. package/lib/cloud/{doorlock.js → doorlock/old.js} +3 -2
  18. package/lib/cloud/doorlock/temp-pwd.d.ts +194 -0
  19. package/lib/cloud/doorlock/temp-pwd.js +193 -0
  20. package/lib/cloud/doorlock/unlock-method.d.ts +62 -0
  21. package/lib/cloud/doorlock/unlock-method.js +85 -0
  22. package/lib/cloud/doorlock/unlock.d.ts +89 -0
  23. package/lib/cloud/doorlock/unlock.js +76 -0
  24. package/lib/cloud/index.d.ts +3 -1
  25. package/lib/cloud/index.js +7 -4
  26. package/lib/cloud/interface.d.ts +26 -0
  27. package/lib/cloud/recipe/basket.d.ts +220 -0
  28. package/lib/cloud/recipe/basket.js +328 -0
  29. package/lib/cloud/recipe/category-list.d.ts +71 -0
  30. package/lib/cloud/recipe/category-list.js +65 -0
  31. package/lib/cloud/recipe/custom.d.ts +177 -0
  32. package/lib/cloud/recipe/custom.js +172 -0
  33. package/lib/cloud/recipe/index.d.ts +8 -0
  34. package/lib/cloud/recipe/index.js +8 -0
  35. package/lib/cloud/recipe/menu.d.ts +170 -0
  36. package/lib/cloud/recipe/menu.js +76 -0
  37. package/lib/cloud/recipe/query.d.ts +87 -0
  38. package/lib/cloud/recipe/query.js +101 -0
  39. package/lib/cloud/recipe/record.d.ts +54 -0
  40. package/lib/cloud/recipe/record.js +87 -0
  41. package/lib/cloud/recipe/score.d.ts +69 -0
  42. package/lib/cloud/recipe/score.js +106 -0
  43. package/lib/cloud/recipe/star.d.ts +131 -0
  44. package/lib/cloud/recipe/star.js +151 -0
  45. package/lib/cloud/recipe/types.d.ts +7 -0
  46. package/lib/cloud/recipe/types.js +0 -0
  47. package/lib/cloud/remoteGroup.d.ts +10 -0
  48. package/lib/cloud/remoteGroup.js +31 -0
  49. package/lib/nativeRouters/index.d.ts +1 -0
  50. package/lib/nativeRouters/index.js +2 -1
  51. package/lib/nativeRouters/remoteGroup.d.ts +22 -0
  52. package/lib/nativeRouters/remoteGroup.js +11 -0
  53. package/package.json +5 -5
  54. /package/lib/cloud/{doorlock.d.ts → doorlock/old.d.ts} +0 -0
@@ -0,0 +1,172 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ const _excluded = ["query"],
4
+ _excluded2 = ["menuCustom"],
5
+ _excluded3 = ["menuCustom"];
6
+ import { THING } from '../../constants';
7
+ import requestCloud from '../../requestCloud';
8
+ // #region 自定义食谱列表
9
+
10
+ /**
11
+ * CustomRecipeQuery - 自定义食谱列表查询条件
12
+ */
13
+
14
+ /**
15
+ * GetCustomRecipeListParams - 自定义食谱列表请求参数
16
+ */
17
+
18
+ /**
19
+ * CustomRecipeInfo - 食谱信息
20
+ */
21
+
22
+ /**
23
+ * CustomRecipeListResult - 自定义食谱列表返回结果
24
+ */
25
+
26
+ /**
27
+ * GetCustomRecipeListResponse - 自定义食谱列表响应
28
+ */
29
+
30
+ // 返回结果
31
+
32
+ /**
33
+ * 获取自定义食谱列表
34
+ * @param {GetCustomRecipeListParams} params - 自定义食谱列表请求参数
35
+ * @returns {Promise<GetCustomRecipeListResponse>} - 自定义食谱列表响应的 Promise
36
+ */
37
+ export const getCustomRecipeList = params => {
38
+ const {
39
+ query
40
+ } = params,
41
+ rest = _objectWithoutProperties(params, _excluded);
42
+ return requestCloud({
43
+ api: THING + '.m.menu.custom.lang.list',
44
+ version: '1.0',
45
+ // 假设使用 POST 方法
46
+ data: _objectSpread({
47
+ queryJson: JSON.stringify(query)
48
+ }, rest)
49
+ });
50
+ };
51
+
52
+ // #endregion
53
+
54
+ // #region 自定义食谱添加
55
+
56
+ /**
57
+ * 图文步骤参数
58
+ */
59
+
60
+ /**
61
+ * 烹饪步骤信息参数
62
+ */
63
+
64
+ /**
65
+ * 烹饪参数
66
+ */
67
+
68
+ /**
69
+ * 自定义食谱信息
70
+ */
71
+
72
+ /**
73
+ * AddCustomRecipeParams - 自定义食谱添加请求参数
74
+ */
75
+
76
+ /**
77
+ * AddCustomRecipeResponse - 自定义食谱添加响应
78
+ */
79
+
80
+ // 返回结果
81
+
82
+ /**
83
+ * 自定义食谱添加
84
+ * @param {AddCustomRecipeParams} params - 自定义食谱添加请求参数
85
+ * @returns {Promise<AddCustomRecipeResponse>} - 自定义食谱添加响应的 Promise
86
+ */
87
+ export const addCustomRecipe = params => {
88
+ const {
89
+ menuCustom
90
+ } = params,
91
+ rest = _objectWithoutProperties(params, _excluded2);
92
+ return requestCloud({
93
+ api: THING + '.m.menu.diy.add',
94
+ version: '2.0',
95
+ data: _objectSpread({
96
+ menuCustomJson: JSON.stringify(menuCustom)
97
+ }, rest)
98
+ });
99
+ };
100
+
101
+ // #endregion
102
+
103
+ // #region 自定义食谱更新
104
+ /**
105
+ * 图文步骤参数
106
+ */
107
+
108
+ /**
109
+ * 烹饪步骤信息参数
110
+ */
111
+
112
+ /**
113
+ * 自定义食谱信息
114
+ */
115
+
116
+ /**
117
+ * UpdateCustomRecipeParams - 自定义食谱更新请求参数
118
+ */
119
+
120
+ /**
121
+ * UpdateCustomRecipeResponse - 自定义食谱更新响应
122
+ */
123
+
124
+ // 返回结果
125
+
126
+ /**
127
+ * 自定义食谱更新
128
+ * @param {UpdateCustomRecipeParams} params - 自定义食谱更新请求参数
129
+ * @returns {Promise<UpdateCustomRecipeResponse>} - 自定义食谱更新响应的 Promise
130
+ */
131
+ export const updateCustomRecipe = params => {
132
+ const {
133
+ menuCustom
134
+ } = params,
135
+ rest = _objectWithoutProperties(params, _excluded3);
136
+ return requestCloud({
137
+ api: THING + '.m.menu.diy.update',
138
+ version: '2.0',
139
+ data: _objectSpread({
140
+ menuCustomJson: JSON.stringify(menuCustom)
141
+ }, rest)
142
+ });
143
+ };
144
+
145
+ // #endregion
146
+
147
+ // #region 自定义食谱删除
148
+
149
+ /**
150
+ * DeleteCustomRecipeParams - 自定义食谱删除请求参数
151
+ */
152
+
153
+ /**
154
+ * DeleteCustomRecipeResponse - 自定义食谱删除响应
155
+ */
156
+
157
+ // 返回结果
158
+
159
+ /**
160
+ * 删除自定义食谱
161
+ * @param {DeleteCustomRecipeParams} params - 自定义食谱删除请求参数
162
+ * @returns {Promise<DeleteCustomRecipeResponse>} - 自定义食谱删除响应的 Promise
163
+ */
164
+ export const deleteCustomRecipe = params => {
165
+ return requestCloud({
166
+ api: THING + '.m.menu.diy.delete',
167
+ version: '1.0',
168
+ data: params
169
+ });
170
+ };
171
+
172
+ // #endregion
@@ -0,0 +1,8 @@
1
+ export * from './basket';
2
+ export * from './record';
3
+ export * from './score';
4
+ export * from './star';
5
+ export * from './menu';
6
+ export * from './query';
7
+ export * from './category-list';
8
+ export * from './custom';
@@ -0,0 +1,8 @@
1
+ export * from './basket';
2
+ export * from './record';
3
+ export * from './score';
4
+ export * from './star';
5
+ export * from './menu';
6
+ export * from './query';
7
+ export * from './category-list';
8
+ export * from './custom';
@@ -0,0 +1,170 @@
1
+ type GetRecipeListParams = {
2
+ query: RecipeListQuery;
3
+ };
4
+ /**
5
+ * RecipeListQuery - 食谱列表查询条件
6
+ */
7
+ interface RecipeListQuery {
8
+ productId: string;
9
+ name?: string;
10
+ categoryIds?: number[];
11
+ cookTimeMin?: number;
12
+ cookTimeMax?: number;
13
+ easyLevelIds?: number[];
14
+ foodTypeIds?: number[];
15
+ allergenIds?: number[];
16
+ isFoodChannel?: number;
17
+ orderType?: number;
18
+ pvWeight?: number;
19
+ starCountWeight?: number;
20
+ avgScoreWeight?: number;
21
+ pageNo: number;
22
+ pageSize: number;
23
+ }
24
+ /**
25
+ * RecipeInfo - 食谱信息
26
+ */
27
+ interface RecipeInfo {
28
+ id: number;
29
+ mainImgs: string[];
30
+ lang: number;
31
+ langDesc: string;
32
+ desc: string;
33
+ cookType: number;
34
+ sourceType: number;
35
+ isMainShow: number;
36
+ isShowControl: number;
37
+ isControl: number;
38
+ name: string;
39
+ easyLevel: string;
40
+ easyLevelDesc: string;
41
+ taste: string;
42
+ tasteDesc: string;
43
+ foodType: string;
44
+ foodTypeDesc: string;
45
+ cookTime: number;
46
+ eatCount: number;
47
+ avgScore: number;
48
+ isStar: boolean;
49
+ gmtCreate: number;
50
+ gmtModified: number;
51
+ }
52
+ /**
53
+ * RecipeListResult - 食谱列表返回结果
54
+ */
55
+ interface RecipeListResult {
56
+ totalCount: number;
57
+ pageNo: number;
58
+ pageSize: number;
59
+ hasNext: boolean;
60
+ data: RecipeInfo[];
61
+ }
62
+ /**
63
+ * RecipeListResponse - 食谱列表响应参数
64
+ */
65
+ type RecipeListResponse = RecipeListResult;
66
+ /**
67
+ * 获取食谱列表
68
+ * @param {RecipeListQuery} query - 食谱列表查询条件
69
+ * @returns {Promise<RecipeListResponse>} - 食谱列表响应的 Promise
70
+ */
71
+ export declare const getRecipeList: (params: GetRecipeListParams) => Promise<RecipeListResponse>;
72
+ interface RecipeDetailParams {
73
+ menuId: number;
74
+ devId: string;
75
+ }
76
+ interface AllergenInfo {
77
+ id: number;
78
+ name: string;
79
+ }
80
+ interface LangInfo {
81
+ lang: string;
82
+ stepImg?: string;
83
+ origStepImg?: string;
84
+ desc: string;
85
+ }
86
+ interface MenuStepInfoVO {
87
+ id: number;
88
+ menuId: number;
89
+ step: number;
90
+ langInfos: LangInfo[];
91
+ gmtCreate: number;
92
+ gmtModified: number;
93
+ }
94
+ interface CookStepInfoVO {
95
+ id: number;
96
+ menuId: number;
97
+ isCookArgs: number;
98
+ step: number;
99
+ stepImg?: string;
100
+ origStepImg?: string;
101
+ finishCtrl?: string;
102
+ cookArgs?: any[];
103
+ langInfos: LangInfo[];
104
+ gmtCreate: number;
105
+ gmtModified: number;
106
+ }
107
+ interface FoodInfoVO {
108
+ id: number;
109
+ name: string;
110
+ lang: string;
111
+ image: string;
112
+ desc: string;
113
+ menuFoodRelationVO: any;
114
+ foodNutritionVOList: any[];
115
+ gmtCreate: number;
116
+ gmtModified: number;
117
+ }
118
+ interface CustomLangInfo {
119
+ lang: string;
120
+ name: string;
121
+ desc: string;
122
+ fileUrl?: string;
123
+ }
124
+ interface CustomInfo {
125
+ code: string;
126
+ langInfos: CustomLangInfo[];
127
+ }
128
+ interface RecipeDetailResult {
129
+ id: number;
130
+ name: string;
131
+ desc: string;
132
+ information: string;
133
+ xyxk: string;
134
+ foods?: string;
135
+ mainImgs: string[];
136
+ origMainImgs?: string[];
137
+ lang: number;
138
+ langDesc: string;
139
+ preVideo?: string;
140
+ stepVideo?: string;
141
+ isMainShow: number;
142
+ isControl: number;
143
+ isShowControl: number;
144
+ sourceType: number;
145
+ cookType: number;
146
+ extInfo?: string;
147
+ cookTime: number;
148
+ useFoodLib: number;
149
+ eatCount: number;
150
+ isFoodChannel: number;
151
+ easyLevel: string;
152
+ easyLevelDesc: string;
153
+ taste: string;
154
+ tasteDesc: string;
155
+ foodType: string;
156
+ foodTypeDesc: string;
157
+ allergens: AllergenInfo[];
158
+ author: string;
159
+ pv: number;
160
+ avgScore: number;
161
+ menuStepInfoVOList: MenuStepInfoVO[];
162
+ cookStepInfoVOList: CookStepInfoVO[];
163
+ foodInfoVOList: FoodInfoVO[];
164
+ customInfoList: CustomInfo[];
165
+ gmtCreate: number;
166
+ gmtModified: number;
167
+ }
168
+ type RecipeDetailResponse = RecipeDetailResult;
169
+ export declare const getRecipeDetail: (params: RecipeDetailParams) => Promise<RecipeDetailResponse>;
170
+ export {};
@@ -0,0 +1,76 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ const _excluded = ["query"];
4
+ import { THING } from '../../constants';
5
+ import requestCloud from '../../requestCloud';
6
+ // #region 食谱列表
7
+
8
+ /**
9
+ * RecipeListQuery - 食谱列表查询条件
10
+ */
11
+
12
+ /**
13
+ * RecipeInfo - 食谱信息
14
+ */
15
+
16
+ /**
17
+ * RecipeListResult - 食谱列表返回结果
18
+ */
19
+
20
+ /**
21
+ * RecipeListResponse - 食谱列表响应参数
22
+ */
23
+
24
+ /**
25
+ * 获取食谱列表
26
+ * @param {RecipeListQuery} query - 食谱列表查询条件
27
+ * @returns {Promise<RecipeListResponse>} - 食谱列表响应的 Promise
28
+ */
29
+ export const getRecipeList = params => {
30
+ const {
31
+ query
32
+ } = params,
33
+ rest = _objectWithoutProperties(params, _excluded);
34
+ return requestCloud({
35
+ api: "tuya.m.menu.lang.list",
36
+ version: '2.0',
37
+ data: _objectSpread({
38
+ queryJson: JSON.stringify(query)
39
+ }, rest)
40
+ });
41
+ };
42
+
43
+ //#endregion
44
+
45
+ // #region 获取食谱详情的函数
46
+ // 请求参数接口
47
+
48
+ // 过敏原信息接口
49
+
50
+ // 多语言信息接口
51
+
52
+ // 图文步骤接口
53
+
54
+ // 烹饪步骤接口
55
+
56
+ // 食材信息接口
57
+
58
+ // 自定义属性多语言信息接口
59
+
60
+ // 自定义属性接口
61
+
62
+ // 食谱详情响应结果中的 result 接口
63
+
64
+ // 食谱详情响应接口
65
+
66
+ // 获取食谱详情的函数
67
+ export const getRecipeDetail = params => {
68
+ return requestCloud({
69
+ api: THING + '.m.menu.get',
70
+ version: '1.0',
71
+ // 假设使用 GET 方法
72
+ data: params
73
+ });
74
+ };
75
+
76
+ //#endregion
@@ -0,0 +1,87 @@
1
+ /**
2
+ * LanguageDescription - 语言描述信息
3
+ */
4
+ type LanguageDescription = {
5
+ enDesc: string;
6
+ cnDesc: string;
7
+ code: string;
8
+ orderNum: number;
9
+ };
10
+ /**
11
+ * GetAllLanguagesResponse - 获取食谱所有语言响应
12
+ */
13
+ type GetAllLanguagesResponse = LanguageDescription[];
14
+ /**
15
+ * 获取食谱所支持的所有语言信息
16
+ * @returns {Promise<GetAllLanguagesResponse>} - 获取所有语言信息结果的 Promise
17
+ */
18
+ export declare const getAllLanguages: () => Promise<GetAllLanguagesResponse>;
19
+ /**
20
+ * GetSearchModelParams - 获取搜索模型参数
21
+ */
22
+ type GetSearchModelParams = {
23
+ productId: string;
24
+ };
25
+ /**
26
+ * SearchModelResponse - 获取搜索模型响应
27
+ */
28
+ type SearchModelResponse = {
29
+ metadata: Metadata[];
30
+ productGroup: ProductGroup[];
31
+ };
32
+ /**
33
+ * Metadata - 元数据信息
34
+ */
35
+ type Metadata = {
36
+ gmtModified: number;
37
+ code: string;
38
+ id: number;
39
+ gmtCreate: number;
40
+ value: string;
41
+ langInfos: LangInfo[];
42
+ key: string;
43
+ };
44
+ /**
45
+ * ProductGroup - 产品组信息
46
+ */
47
+ type ProductGroup = {
48
+ gmtModified: number;
49
+ name: string;
50
+ id: number;
51
+ gmtCreate: number;
52
+ };
53
+ /**
54
+ * 获取 C 端用户搜索模型
55
+ * @param {GetSearchModelParams} params - 获取搜索模型参数
56
+ * @returns {Promise<SearchModelResponse>} - 获取搜索模型结果的 Promise
57
+ */
58
+ export declare const getSearchModel: (params: GetSearchModelParams) => Promise<SearchModelResponse>;
59
+ /**
60
+ * CookingTimeCondition - 烹饪时间筛选条件
61
+ */
62
+ type CookingTimeCondition = {
63
+ sourceType: number;
64
+ name?: string;
65
+ categoryIds?: number[];
66
+ };
67
+ /**
68
+ * GetCookingTimeConditionParams - 获取烹饪时间筛选条件参数
69
+ */
70
+ type GetCookingTimeConditionParams = {
71
+ query: CookingTimeCondition;
72
+ devId: string;
73
+ };
74
+ /**
75
+ * CookingTimeConditionResponse - 获取烹饪时间筛选条件响应
76
+ */
77
+ type CookingTimeConditionResponse = {
78
+ minCookTime: number;
79
+ maxCookTime: number;
80
+ };
81
+ /**
82
+ * 获取已上线食谱的最小、最大烹饪时间
83
+ * @param {GetCookingTimeConditionParams} params - 获取烹饪时间筛选条件参数
84
+ * @returns {Promise<CookingTimeConditionResponse>} - 获取烹饪时间筛选条件结果的 Promise
85
+ */
86
+ export declare const getCookingTimeCondition: (params: GetCookingTimeConditionParams) => Promise<CookingTimeConditionResponse>;
87
+ export {};
@@ -0,0 +1,101 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ const _excluded = ["query"];
4
+ import { THING } from '../../constants';
5
+ import requestCloud from '../../requestCloud';
6
+
7
+ // #region 获取食谱所有语言
8
+
9
+ /**
10
+ * GetAllLanguagesParams - 获取食谱所有语言参数
11
+ */
12
+
13
+ /**
14
+ * LanguageDescription - 语言描述信息
15
+ */
16
+
17
+ /**
18
+ * GetAllLanguagesResponse - 获取食谱所有语言响应
19
+ */
20
+
21
+ /**
22
+ * 获取食谱所支持的所有语言信息
23
+ * @returns {Promise<GetAllLanguagesResponse>} - 获取所有语言信息结果的 Promise
24
+ */
25
+ export const getAllLanguages = () => {
26
+ return requestCloud({
27
+ api: THING + '.m.cookbook.all.lang',
28
+ version: '1.0',
29
+ data: {}
30
+ });
31
+ };
32
+
33
+ // #endregion
34
+
35
+ // #region 获取搜索模型
36
+
37
+ /**
38
+ * GetSearchModelParams - 获取搜索模型参数
39
+ */
40
+
41
+ /**
42
+ * SearchModelResponse - 获取搜索模型响应
43
+ */
44
+
45
+ /**
46
+ * Metadata - 元数据信息
47
+ */
48
+
49
+ /**
50
+ * ProductGroup - 产品组信息
51
+ */
52
+
53
+ /**
54
+ * 获取 C 端用户搜索模型
55
+ * @param {GetSearchModelParams} params - 获取搜索模型参数
56
+ * @returns {Promise<SearchModelResponse>} - 获取搜索模型结果的 Promise
57
+ */
58
+ export const getSearchModel = params => {
59
+ return requestCloud({
60
+ api: THING + '.m.menu.query.model.list',
61
+ version: '1.0',
62
+ data: params
63
+ });
64
+ };
65
+
66
+ // #endregion
67
+
68
+ // #region 获取烹饪时间筛选条件
69
+
70
+ /**
71
+ * CookingTimeCondition - 烹饪时间筛选条件
72
+ */
73
+
74
+ /**
75
+ * GetCookingTimeConditionParams - 获取烹饪时间筛选条件参数
76
+ */
77
+
78
+ /**
79
+ * CookingTimeConditionResponse - 获取烹饪时间筛选条件响应
80
+ */
81
+
82
+ /**
83
+ * 获取已上线食谱的最小、最大烹饪时间
84
+ * @param {GetCookingTimeConditionParams} params - 获取烹饪时间筛选条件参数
85
+ * @returns {Promise<CookingTimeConditionResponse>} - 获取烹饪时间筛选条件结果的 Promise
86
+ */
87
+ export const getCookingTimeCondition = params => {
88
+ const {
89
+ query
90
+ } = params,
91
+ rest = _objectWithoutProperties(params, _excluded);
92
+ return requestCloud({
93
+ api: THING + '.m.menu.search.condition',
94
+ version: '1.0',
95
+ data: _objectSpread({
96
+ queryJson: JSON.stringify(query)
97
+ }, rest)
98
+ });
99
+ };
100
+
101
+ // #endregion
@@ -0,0 +1,54 @@
1
+ /**
2
+ * SearchHistoryListParams - 搜索记录列表参数
3
+ */
4
+ type SearchHistoryListParams = {
5
+ devId: string;
6
+ };
7
+ /**
8
+ * SearchHistory - 搜索记录
9
+ */
10
+ type SearchHistory = string;
11
+ /**
12
+ * SearchHistoryListResponse - 搜索记录列表响应
13
+ */
14
+ type SearchHistoryListResponse = SearchHistory[];
15
+ /**
16
+ * 获取搜索历史记录列表
17
+ * @param params - 搜索记录列表参数
18
+ * @returns 获取搜索记录列表结果的 Promise
19
+ */
20
+ export declare function getSearchHistoryList(params: SearchHistoryListParams): Promise<SearchHistoryListResponse>;
21
+ /**
22
+ * DeleteSearchHistoryParams - 搜索记录单条删除参数
23
+ */
24
+ type DeleteSearchHistoryParams = {
25
+ name: string;
26
+ devId: string;
27
+ };
28
+ /**
29
+ * DeleteSearchHistoryResponse - 搜索记录单条删除响应
30
+ */
31
+ type DeleteSearchHistoryResponse = boolean;
32
+ /**
33
+ * 删除单条搜索历史记录
34
+ * @param params - 搜索记录单条删除参数
35
+ * @returns 删除单条搜索历史记录结果的 Promise
36
+ */
37
+ export declare function deleteSearchHistory(params: DeleteSearchHistoryParams): Promise<DeleteSearchHistoryResponse>;
38
+ /**
39
+ * CleanSearchHistoryParams - 搜索记录清空参数
40
+ */
41
+ type CleanSearchHistoryParams = {
42
+ devId: string;
43
+ };
44
+ /**
45
+ * CleanSearchHistoryResponse - 搜索记录清空响应
46
+ */
47
+ type CleanSearchHistoryResponse = boolean;
48
+ /**
49
+ * 清空搜索历史记录
50
+ * @param params - 搜索记录清空参数
51
+ * @returns 清空搜索历史记录结果的 Promise
52
+ */
53
+ export declare function cleanSearchHistory(params: CleanSearchHistoryParams): Promise<CleanSearchHistoryResponse>;
54
+ export {};