@ray-js/api 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/BaseKit.d.ts +1009 -89
- package/@types/{TYKit.d.ts → BizKit.d.ts} +104 -41
- package/@types/DeviceKit.d.ts +1512 -176
- package/@types/MiniKit.d.ts +381 -26
- package/@types/all-kits.d.ts +1 -1
- package/lib/{BaseKit-2.3.11.d.ts → BaseKit-3.0.0.d.ts} +18 -2
- package/lib/{BaseKit-2.3.11.js → BaseKit-3.0.0.js} +18 -2
- package/lib/{TYKit-2.2.6.d.ts → BizKit-3.0.1.d.ts} +2 -1
- package/lib/{TYKit-2.2.6.js → BizKit-3.0.1.js} +2 -1
- package/lib/{DeviceKit-2.3.3.d.ts → DeviceKit-3.0.0.d.ts} +58 -18
- package/lib/{DeviceKit-2.3.3.js → DeviceKit-3.0.0.js} +140 -20
- package/lib/{MiniKit-2.4.3.d.ts → MiniKit-3.0.0.d.ts} +14 -0
- package/lib/{MiniKit-2.4.3.js → MiniKit-3.0.0.js} +14 -0
- package/lib/all-kits.d.ts +5 -5
- package/lib/all-kits.js +5 -5
- package/lib/getApp/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getApp/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getBoundingClientRect/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getBoundingClientRect/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getCurrentPages/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getCurrentPages/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getElementById/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getElementById/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getI18nInfo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getI18nInfo/{index.tuya.js → index.thing.js} +0 -0
- package/lib/hideTabBar/index.d.ts +1 -7
- package/lib/hideTabBar/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/hideTabBar/{index.tuya.js → index.thing.js} +0 -0
- package/lib/navigateBack/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/navigateBack/{index.tuya.js → index.thing.js} +0 -0
- package/lib/navigateTo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/navigateTo/{index.tuya.js → index.thing.js} +0 -0
- package/lib/reLaunch/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/reLaunch/{index.tuya.js → index.thing.js} +0 -0
- package/lib/readFileSync/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/readFileSync/{index.tuya.js → index.thing.js} +0 -0
- package/lib/redirectTo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/redirectTo/{index.tuya.js → index.thing.js} +0 -0
- package/lib/requestCloud/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/requestCloud/{index.tuya.js → index.thing.js} +0 -0
- package/lib/setNavigationBarColor/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/setNavigationBarColor/{index.tuya.js → index.thing.js} +0 -0
- package/lib/setNavigationBarTitle/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/setNavigationBarTitle/{index.tuya.js → index.thing.js} +0 -0
- package/lib/showTabBar/index.d.ts +1 -7
- package/lib/showTabBar/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/showTabBar/{index.tuya.js → index.thing.js} +0 -0
- package/lib/switchTab/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/switchTab/{index.tuya.js → index.thing.js} +0 -0
- package/package.json +5 -9
@@ -1,4 +1,4 @@
|
|
1
|
-
/// <reference path="../@types/
|
1
|
+
/// <reference path="../@types/BizKit.d.ts" />
|
2
2
|
import { factory } from './utils';
|
3
3
|
export var apiRequestByAtop = factory('apiRequestByAtop');
|
4
4
|
export var event = factory('event');
|
@@ -35,6 +35,7 @@ export var goDeviceAlarm = factory('goDeviceAlarm', {
|
|
35
35
|
});
|
36
36
|
export var share = factory('share');
|
37
37
|
export var getShareChannelList = factory('getShareChannelList');
|
38
|
+
export var getUserInfo = factory('getUserInfo');
|
38
39
|
export var resizeImage = factory('resizeImage');
|
39
40
|
export var rotateImage = factory('rotateImage');
|
40
41
|
export var saveToAlbum = factory('saveToAlbum', {
|
@@ -1,16 +1,24 @@
|
|
1
1
|
/// <reference path="../@types/DeviceKit.d.ts" />
|
2
|
+
export declare const unregisterLeaveBeaconFenceEvent: typeof ty.device.unregisterLeaveBeaconFenceEvent;
|
3
|
+
export declare const registerLeaveBeaconFenceEvent: typeof ty.device.registerLeaveBeaconFenceEvent;
|
4
|
+
export declare const writeBeaconFenceConfig: typeof ty.device.writeBeaconFenceConfig;
|
5
|
+
export declare const readBeaconFenceConfig: typeof ty.device.readBeaconFenceConfig;
|
6
|
+
export declare const disconnectBTBond: typeof ty.device.disconnectBTBond;
|
7
|
+
export declare const connectBTBond: typeof ty.device.connectBTBond;
|
8
|
+
export declare const cancelBLEFileTransfer: typeof ty.device.cancelBLEFileTransfer;
|
9
|
+
export declare const postBLEFileTransfer: typeof ty.device.postBLEFileTransfer;
|
2
10
|
export declare const getBLEDeviceRSSI: typeof ty.device.getBLEDeviceRSSI;
|
3
|
-
export declare const
|
4
|
-
export declare const
|
5
|
-
export declare const
|
11
|
+
export declare const subscribeBLEConnectStatus: typeof ty.device.subscribeBLEConnectStatus;
|
12
|
+
export declare const unsubscribeBLEConnectStatus: typeof ty.device.unsubscribeBLEConnectStatus;
|
13
|
+
export declare const connectBLEDevice: typeof ty.device.connectBLEDevice;
|
6
14
|
export declare const directConnectBLEDevice: typeof ty.device.directConnectBLEDevice;
|
7
|
-
export declare const
|
8
|
-
export declare const
|
9
|
-
export declare const
|
10
|
-
export declare const
|
11
|
-
export declare const
|
15
|
+
export declare const disconnectBLEDevice: typeof ty.device.disconnectBLEDevice;
|
16
|
+
export declare const getBLEOnlineState: typeof ty.device.getBLEOnlineState;
|
17
|
+
export declare const subscribeBLETransparentDataReport: typeof ty.device.subscribeBLETransparentDataReport;
|
18
|
+
export declare const unsubscribeBLETransparentDataReport: typeof ty.device.unsubscribeBLETransparentDataReport;
|
19
|
+
export declare const publishBLETransparentData: typeof ty.device.publishBLETransparentData;
|
12
20
|
export declare const getEncryptLocalKeyWithData: typeof ty.device.getEncryptLocalKeyWithData;
|
13
|
-
export declare const
|
21
|
+
export declare const postBLEBigDataChannelWithProgress: typeof ty.device.postBLEBigDataChannelWithProgress;
|
14
22
|
export declare const startBLEMeshLowPowerConnection: typeof ty.device.startBLEMeshLowPowerConnection;
|
15
23
|
export declare const stopBLEMeshLowPowerConnection: typeof ty.device.stopBLEMeshLowPowerConnection;
|
16
24
|
export declare const startBLEScanBeacon: typeof ty.device.startBLEScanBeacon;
|
@@ -32,6 +40,9 @@ export declare const stopDirectlyConnectedDeviceActivator: typeof ty.device.stop
|
|
32
40
|
export declare const openCategoryActivatorPage: typeof ty.device.openCategoryActivatorPage;
|
33
41
|
export declare const startDirectlyConnectedSearchDevice: typeof ty.device.startDirectlyConnectedSearchDevice;
|
34
42
|
export declare const stopDirectlyConnectedSearchDevice: typeof ty.device.stopDirectlyConnectedSearchDevice;
|
43
|
+
export declare const getDeviceWifiActivatorStatus: typeof ty.device.getDeviceWifiActivatorStatus;
|
44
|
+
export declare const startDeviceWifiActivator: typeof ty.device.startDeviceWifiActivator;
|
45
|
+
export declare const renameDeviceName: typeof ty.device.renameDeviceName;
|
35
46
|
export declare const resetFactory: typeof ty.device.resetFactory;
|
36
47
|
export declare const removeDevice: typeof ty.device.removeDevice;
|
37
48
|
export declare const registerZigbeeGateWaySubDeviceListener: typeof ty.device.registerZigbeeGateWaySubDeviceListener;
|
@@ -59,6 +70,9 @@ export declare const registerMQTTProtocolListener: typeof ty.device.registerMQTT
|
|
59
70
|
export declare const unregisterMQTTProtocolListener: typeof ty.device.unregisterMQTTProtocolListener;
|
60
71
|
export declare const registerDeviceListListener: typeof ty.device.registerDeviceListListener;
|
61
72
|
export declare const unregisterDeviceListListener: typeof ty.device.unregisterDeviceListListener;
|
73
|
+
export declare const registerTopicListListener: typeof ty.device.registerTopicListListener;
|
74
|
+
export declare const unregisterTopicListListener: typeof ty.device.unregisterTopicListListener;
|
75
|
+
export declare const getMqttConnectState: typeof ty.device.getMqttConnectState;
|
62
76
|
export declare const checkOTAUpdateInfo: typeof ty.device.checkOTAUpdateInfo;
|
63
77
|
export declare const openDeviceDetailPage: typeof ty.device.openDeviceDetailPage;
|
64
78
|
export declare const openGroupDetailPage: typeof ty.device.openGroupDetailPage;
|
@@ -83,29 +97,49 @@ export declare const openShareDevice: typeof ty.device.openShareDevice;
|
|
83
97
|
export declare const addDeviceToDesk: typeof ty.device.addDeviceToDesk;
|
84
98
|
export declare const removeShareDevice: typeof ty.device.removeShareDevice;
|
85
99
|
export declare const getSupportedThirdPartyServices: typeof ty.device.getSupportedThirdPartyServices;
|
100
|
+
export declare const openRecommendSceneDetail: typeof ty.device.openRecommendSceneDetail;
|
101
|
+
export declare const openDeviceExecutionAndAnutomation: typeof ty.device.openDeviceExecutionAndAnutomation;
|
102
|
+
export declare const saveSceneAction: typeof ty.device.saveSceneAction;
|
103
|
+
export declare const createAction: typeof ty.device.createAction;
|
104
|
+
export declare const editAction: typeof ty.device.editAction;
|
105
|
+
export declare const showSceneDialog: typeof ty.device.showSceneDialog;
|
106
|
+
export declare const openPreConditionPage: typeof ty.device.openPreConditionPage;
|
107
|
+
export declare const createCondition: typeof ty.device.createCondition;
|
108
|
+
export declare const editCondition: typeof ty.device.editCondition;
|
109
|
+
export declare const getGroupDeviceList: typeof ty.device.getGroupDeviceList;
|
110
|
+
export declare const getGroupDeviceNum: typeof ty.device.getGroupDeviceNum;
|
111
|
+
export declare const getDeviceNumWithDpCode: typeof ty.device.getDeviceNumWithDpCode;
|
112
|
+
export declare const publishGroupDpCodes: typeof ty.device.publishGroupDpCodes;
|
113
|
+
export declare const publishSigMeshMultiDps: typeof ty.device.publishSigMeshMultiDps;
|
114
|
+
export declare const openMeshLocalGroup: typeof ty.device.openMeshLocalGroup;
|
86
115
|
export declare const getGroupInfo: typeof ty.device.getGroupInfo;
|
87
116
|
export declare const publishGroupDps: typeof ty.device.publishGroupDps;
|
88
117
|
export declare const getGroupProperty: typeof ty.device.getGroupProperty;
|
89
118
|
export declare const setGroupProperty: typeof ty.device.setGroupProperty;
|
90
119
|
export declare const registerGroupChange: typeof ty.device.registerGroupChange;
|
91
120
|
export declare const unRegisterGroupChange: typeof ty.device.unRegisterGroupChange;
|
121
|
+
export declare const getMeshDeviceId: typeof ty.device.getMeshDeviceId;
|
122
|
+
export declare const getDpDataByMesh: typeof ty.device.getDpDataByMesh;
|
92
123
|
export declare const checkOTAUpgradeStatus: typeof ty.device.checkOTAUpgradeStatus;
|
93
124
|
export declare const openOTAUpgrade: typeof ty.device.openOTAUpgrade;
|
94
|
-
export declare const pushRNPanel: typeof ty.device.pushRNPanel;
|
95
125
|
export declare const deviceIsSupportThingModel: typeof ty.device.deviceIsSupportThingModel;
|
96
126
|
export declare const updateDeviceThingModelInfo: typeof ty.device.updateDeviceThingModelInfo;
|
97
127
|
export declare const getDeviceThingModelInfo: typeof ty.device.getDeviceThingModelInfo;
|
98
128
|
export declare const publishThingModelMessage: typeof ty.device.publishThingModelMessage;
|
99
129
|
export declare const subscribeReceivedThingModelMessage: typeof ty.device.subscribeReceivedThingModelMessage;
|
100
130
|
export declare const unSubscribeReceivedThingModelMessage: typeof ty.device.unSubscribeReceivedThingModelMessage;
|
101
|
-
export declare const
|
102
|
-
export declare const
|
103
|
-
export declare const
|
104
|
-
export declare const
|
105
|
-
export declare const
|
106
|
-
export declare const
|
107
|
-
export declare const
|
108
|
-
export declare const
|
131
|
+
export declare const onLeaveBeaconFence: typeof ty.device.onLeaveBeaconFence;
|
132
|
+
export declare const offLeaveBeaconFence: typeof ty.device.offLeaveBeaconFence;
|
133
|
+
export declare const onFileTransferProgress: typeof ty.device.onFileTransferProgress;
|
134
|
+
export declare const offFileTransferProgress: typeof ty.device.offFileTransferProgress;
|
135
|
+
export declare const onBLEConnectStatusChange: typeof ty.device.onBLEConnectStatusChange;
|
136
|
+
export declare const offBLEConnectStatusChange: typeof ty.device.offBLEConnectStatusChange;
|
137
|
+
export declare const onBLETransparentDataReport: typeof ty.device.onBLETransparentDataReport;
|
138
|
+
export declare const offBLETransparentDataReport: typeof ty.device.offBLETransparentDataReport;
|
139
|
+
export declare const onBLEBigDataChannelProgressEvent: typeof ty.device.onBLEBigDataChannelProgressEvent;
|
140
|
+
export declare const offBLEBigDataChannelProgressEvent: typeof ty.device.offBLEBigDataChannelProgressEvent;
|
141
|
+
export declare const onBLEScanBindDevice: typeof ty.device.onBLEScanBindDevice;
|
142
|
+
export declare const offBLEScanBindDevice: typeof ty.device.offBLEScanBindDevice;
|
109
143
|
export declare const onBLEBigDataChannelDeviceToAppSuccess: typeof ty.device.onBLEBigDataChannelDeviceToAppSuccess;
|
110
144
|
export declare const offBLEBigDataChannelDeviceToAppSuccess: typeof ty.device.offBLEBigDataChannelDeviceToAppSuccess;
|
111
145
|
export declare const onBLEBigDataChannelUploadCloudProgress: typeof ty.device.onBLEBigDataChannelUploadCloudProgress;
|
@@ -126,8 +160,14 @@ export declare const onDeviceInfoUpdated: typeof ty.device.onDeviceInfoUpdated;
|
|
126
160
|
export declare const offDeviceInfoUpdated: typeof ty.device.offDeviceInfoUpdated;
|
127
161
|
export declare const onDeviceRemoved: typeof ty.device.onDeviceRemoved;
|
128
162
|
export declare const offDeviceRemoved: typeof ty.device.offDeviceRemoved;
|
163
|
+
export declare const onMqttConnectState: typeof ty.device.onMqttConnectState;
|
164
|
+
export declare const offMqttConnectState: typeof ty.device.offMqttConnectState;
|
129
165
|
export declare const onTimerUpdate: typeof ty.device.onTimerUpdate;
|
130
166
|
export declare const offTimerUpdate: typeof ty.device.offTimerUpdate;
|
167
|
+
export declare const onGroupInfoChange: typeof ty.device.onGroupInfoChange;
|
168
|
+
export declare const offGroupInfoChange: typeof ty.device.offGroupInfoChange;
|
169
|
+
export declare const onGroupDpCodeChange: typeof ty.device.onGroupDpCodeChange;
|
170
|
+
export declare const offGroupDpCodeChange: typeof ty.device.offGroupDpCodeChange;
|
131
171
|
export declare const onGroupRemovedEvent: typeof ty.device.onGroupRemovedEvent;
|
132
172
|
export declare const offGroupRemovedEvent: typeof ty.device.offGroupRemovedEvent;
|
133
173
|
export declare const onGroupDpDataChangeEvent: typeof ty.device.onGroupDpDataChangeEvent;
|
@@ -1,39 +1,63 @@
|
|
1
1
|
/// <reference path="../@types/DeviceKit.d.ts" />
|
2
2
|
import { factory } from './utils';
|
3
|
+
export var unregisterLeaveBeaconFenceEvent = factory('unregisterLeaveBeaconFenceEvent', {
|
4
|
+
"namespace": "device"
|
5
|
+
});
|
6
|
+
export var registerLeaveBeaconFenceEvent = factory('registerLeaveBeaconFenceEvent', {
|
7
|
+
"namespace": "device"
|
8
|
+
});
|
9
|
+
export var writeBeaconFenceConfig = factory('writeBeaconFenceConfig', {
|
10
|
+
"namespace": "device"
|
11
|
+
});
|
12
|
+
export var readBeaconFenceConfig = factory('readBeaconFenceConfig', {
|
13
|
+
"namespace": "device"
|
14
|
+
});
|
15
|
+
export var disconnectBTBond = factory('disconnectBTBond', {
|
16
|
+
"namespace": "device"
|
17
|
+
});
|
18
|
+
export var connectBTBond = factory('connectBTBond', {
|
19
|
+
"namespace": "device"
|
20
|
+
});
|
21
|
+
export var cancelBLEFileTransfer = factory('cancelBLEFileTransfer', {
|
22
|
+
"namespace": "device"
|
23
|
+
});
|
24
|
+
export var postBLEFileTransfer = factory('postBLEFileTransfer', {
|
25
|
+
"namespace": "device"
|
26
|
+
});
|
3
27
|
export var getBLEDeviceRSSI = factory('getBLEDeviceRSSI', {
|
4
28
|
"namespace": "device"
|
5
29
|
});
|
6
|
-
export var
|
30
|
+
export var subscribeBLEConnectStatus = factory('subscribeBLEConnectStatus', {
|
7
31
|
"namespace": "device"
|
8
32
|
});
|
9
|
-
export var
|
33
|
+
export var unsubscribeBLEConnectStatus = factory('unsubscribeBLEConnectStatus', {
|
10
34
|
"namespace": "device"
|
11
35
|
});
|
12
|
-
export var
|
36
|
+
export var connectBLEDevice = factory('connectBLEDevice', {
|
13
37
|
"namespace": "device"
|
14
38
|
});
|
15
39
|
export var directConnectBLEDevice = factory('directConnectBLEDevice', {
|
16
40
|
"namespace": "device"
|
17
41
|
});
|
18
|
-
export var
|
42
|
+
export var disconnectBLEDevice = factory('disconnectBLEDevice', {
|
19
43
|
"namespace": "device"
|
20
44
|
});
|
21
|
-
export var
|
45
|
+
export var getBLEOnlineState = factory('getBLEOnlineState', {
|
22
46
|
"namespace": "device"
|
23
47
|
});
|
24
|
-
export var
|
48
|
+
export var subscribeBLETransparentDataReport = factory('subscribeBLETransparentDataReport', {
|
25
49
|
"namespace": "device"
|
26
50
|
});
|
27
|
-
export var
|
51
|
+
export var unsubscribeBLETransparentDataReport = factory('unsubscribeBLETransparentDataReport', {
|
28
52
|
"namespace": "device"
|
29
53
|
});
|
30
|
-
export var
|
54
|
+
export var publishBLETransparentData = factory('publishBLETransparentData', {
|
31
55
|
"namespace": "device"
|
32
56
|
});
|
33
57
|
export var getEncryptLocalKeyWithData = factory('getEncryptLocalKeyWithData', {
|
34
58
|
"namespace": "device"
|
35
59
|
});
|
36
|
-
export var
|
60
|
+
export var postBLEBigDataChannelWithProgress = factory('postBLEBigDataChannelWithProgress', {
|
37
61
|
"namespace": "device"
|
38
62
|
});
|
39
63
|
export var startBLEMeshLowPowerConnection = factory('startBLEMeshLowPowerConnection', {
|
@@ -99,6 +123,15 @@ export var startDirectlyConnectedSearchDevice = factory('startDirectlyConnectedS
|
|
99
123
|
export var stopDirectlyConnectedSearchDevice = factory('stopDirectlyConnectedSearchDevice', {
|
100
124
|
"namespace": "device"
|
101
125
|
});
|
126
|
+
export var getDeviceWifiActivatorStatus = factory('getDeviceWifiActivatorStatus', {
|
127
|
+
"namespace": "device"
|
128
|
+
});
|
129
|
+
export var startDeviceWifiActivator = factory('startDeviceWifiActivator', {
|
130
|
+
"namespace": "device"
|
131
|
+
});
|
132
|
+
export var renameDeviceName = factory('renameDeviceName', {
|
133
|
+
"namespace": "device"
|
134
|
+
});
|
102
135
|
export var resetFactory = factory('resetFactory', {
|
103
136
|
"namespace": "device"
|
104
137
|
});
|
@@ -180,6 +213,15 @@ export var registerDeviceListListener = factory('registerDeviceListListener', {
|
|
180
213
|
export var unregisterDeviceListListener = factory('unregisterDeviceListListener', {
|
181
214
|
"namespace": "device"
|
182
215
|
});
|
216
|
+
export var registerTopicListListener = factory('registerTopicListListener', {
|
217
|
+
"namespace": "device"
|
218
|
+
});
|
219
|
+
export var unregisterTopicListListener = factory('unregisterTopicListListener', {
|
220
|
+
"namespace": "device"
|
221
|
+
});
|
222
|
+
export var getMqttConnectState = factory('getMqttConnectState', {
|
223
|
+
"namespace": "device"
|
224
|
+
});
|
183
225
|
export var checkOTAUpdateInfo = factory('checkOTAUpdateInfo', {
|
184
226
|
"namespace": "device"
|
185
227
|
});
|
@@ -252,6 +294,51 @@ export var removeShareDevice = factory('removeShareDevice', {
|
|
252
294
|
export var getSupportedThirdPartyServices = factory('getSupportedThirdPartyServices', {
|
253
295
|
"namespace": "device"
|
254
296
|
});
|
297
|
+
export var openRecommendSceneDetail = factory('openRecommendSceneDetail', {
|
298
|
+
"namespace": "device"
|
299
|
+
});
|
300
|
+
export var openDeviceExecutionAndAnutomation = factory('openDeviceExecutionAndAnutomation', {
|
301
|
+
"namespace": "device"
|
302
|
+
});
|
303
|
+
export var saveSceneAction = factory('saveSceneAction', {
|
304
|
+
"namespace": "device"
|
305
|
+
});
|
306
|
+
export var createAction = factory('createAction', {
|
307
|
+
"namespace": "device"
|
308
|
+
});
|
309
|
+
export var editAction = factory('editAction', {
|
310
|
+
"namespace": "device"
|
311
|
+
});
|
312
|
+
export var showSceneDialog = factory('showSceneDialog', {
|
313
|
+
"namespace": "device"
|
314
|
+
});
|
315
|
+
export var openPreConditionPage = factory('openPreConditionPage', {
|
316
|
+
"namespace": "device"
|
317
|
+
});
|
318
|
+
export var createCondition = factory('createCondition', {
|
319
|
+
"namespace": "device"
|
320
|
+
});
|
321
|
+
export var editCondition = factory('editCondition', {
|
322
|
+
"namespace": "device"
|
323
|
+
});
|
324
|
+
export var getGroupDeviceList = factory('getGroupDeviceList', {
|
325
|
+
"namespace": "device"
|
326
|
+
});
|
327
|
+
export var getGroupDeviceNum = factory('getGroupDeviceNum', {
|
328
|
+
"namespace": "device"
|
329
|
+
});
|
330
|
+
export var getDeviceNumWithDpCode = factory('getDeviceNumWithDpCode', {
|
331
|
+
"namespace": "device"
|
332
|
+
});
|
333
|
+
export var publishGroupDpCodes = factory('publishGroupDpCodes', {
|
334
|
+
"namespace": "device"
|
335
|
+
});
|
336
|
+
export var publishSigMeshMultiDps = factory('publishSigMeshMultiDps', {
|
337
|
+
"namespace": "device"
|
338
|
+
});
|
339
|
+
export var openMeshLocalGroup = factory('openMeshLocalGroup', {
|
340
|
+
"namespace": "device"
|
341
|
+
});
|
255
342
|
export var getGroupInfo = factory('getGroupInfo', {
|
256
343
|
"namespace": "device"
|
257
344
|
});
|
@@ -270,13 +357,16 @@ export var registerGroupChange = factory('registerGroupChange', {
|
|
270
357
|
export var unRegisterGroupChange = factory('unRegisterGroupChange', {
|
271
358
|
"namespace": "device"
|
272
359
|
});
|
273
|
-
export var
|
360
|
+
export var getMeshDeviceId = factory('getMeshDeviceId', {
|
274
361
|
"namespace": "device"
|
275
362
|
});
|
276
|
-
export var
|
363
|
+
export var getDpDataByMesh = factory('getDpDataByMesh', {
|
364
|
+
"namespace": "device"
|
365
|
+
});
|
366
|
+
export var checkOTAUpgradeStatus = factory('checkOTAUpgradeStatus', {
|
277
367
|
"namespace": "device"
|
278
368
|
});
|
279
|
-
export var
|
369
|
+
export var openOTAUpgrade = factory('openOTAUpgrade', {
|
280
370
|
"namespace": "device"
|
281
371
|
});
|
282
372
|
export var deviceIsSupportThingModel = factory('deviceIsSupportThingModel', {
|
@@ -297,28 +387,40 @@ export var subscribeReceivedThingModelMessage = factory('subscribeReceivedThingM
|
|
297
387
|
export var unSubscribeReceivedThingModelMessage = factory('unSubscribeReceivedThingModelMessage', {
|
298
388
|
"namespace": "device"
|
299
389
|
});
|
300
|
-
export var
|
390
|
+
export var onLeaveBeaconFence = factory('onLeaveBeaconFence', {
|
391
|
+
"namespace": "device"
|
392
|
+
});
|
393
|
+
export var offLeaveBeaconFence = factory('offLeaveBeaconFence', {
|
301
394
|
"namespace": "device"
|
302
395
|
});
|
303
|
-
export var
|
396
|
+
export var onFileTransferProgress = factory('onFileTransferProgress', {
|
304
397
|
"namespace": "device"
|
305
398
|
});
|
306
|
-
export var
|
399
|
+
export var offFileTransferProgress = factory('offFileTransferProgress', {
|
307
400
|
"namespace": "device"
|
308
401
|
});
|
309
|
-
export var
|
402
|
+
export var onBLEConnectStatusChange = factory('onBLEConnectStatusChange', {
|
310
403
|
"namespace": "device"
|
311
404
|
});
|
312
|
-
export var
|
405
|
+
export var offBLEConnectStatusChange = factory('offBLEConnectStatusChange', {
|
313
406
|
"namespace": "device"
|
314
407
|
});
|
315
|
-
export var
|
408
|
+
export var onBLETransparentDataReport = factory('onBLETransparentDataReport', {
|
316
409
|
"namespace": "device"
|
317
410
|
});
|
318
|
-
export var
|
411
|
+
export var offBLETransparentDataReport = factory('offBLETransparentDataReport', {
|
319
412
|
"namespace": "device"
|
320
413
|
});
|
321
|
-
export var
|
414
|
+
export var onBLEBigDataChannelProgressEvent = factory('onBLEBigDataChannelProgressEvent', {
|
415
|
+
"namespace": "device"
|
416
|
+
});
|
417
|
+
export var offBLEBigDataChannelProgressEvent = factory('offBLEBigDataChannelProgressEvent', {
|
418
|
+
"namespace": "device"
|
419
|
+
});
|
420
|
+
export var onBLEScanBindDevice = factory('onBLEScanBindDevice', {
|
421
|
+
"namespace": "device"
|
422
|
+
});
|
423
|
+
export var offBLEScanBindDevice = factory('offBLEScanBindDevice', {
|
322
424
|
"namespace": "device"
|
323
425
|
});
|
324
426
|
export var onBLEBigDataChannelDeviceToAppSuccess = factory('onBLEBigDataChannelDeviceToAppSuccess', {
|
@@ -381,12 +483,30 @@ export var onDeviceRemoved = factory('onDeviceRemoved', {
|
|
381
483
|
export var offDeviceRemoved = factory('offDeviceRemoved', {
|
382
484
|
"namespace": "device"
|
383
485
|
});
|
486
|
+
export var onMqttConnectState = factory('onMqttConnectState', {
|
487
|
+
"namespace": "device"
|
488
|
+
});
|
489
|
+
export var offMqttConnectState = factory('offMqttConnectState', {
|
490
|
+
"namespace": "device"
|
491
|
+
});
|
384
492
|
export var onTimerUpdate = factory('onTimerUpdate', {
|
385
493
|
"namespace": "device"
|
386
494
|
});
|
387
495
|
export var offTimerUpdate = factory('offTimerUpdate', {
|
388
496
|
"namespace": "device"
|
389
497
|
});
|
498
|
+
export var onGroupInfoChange = factory('onGroupInfoChange', {
|
499
|
+
"namespace": "device"
|
500
|
+
});
|
501
|
+
export var offGroupInfoChange = factory('offGroupInfoChange', {
|
502
|
+
"namespace": "device"
|
503
|
+
});
|
504
|
+
export var onGroupDpCodeChange = factory('onGroupDpCodeChange', {
|
505
|
+
"namespace": "device"
|
506
|
+
});
|
507
|
+
export var offGroupDpCodeChange = factory('offGroupDpCodeChange', {
|
508
|
+
"namespace": "device"
|
509
|
+
});
|
390
510
|
export var onGroupRemovedEvent = factory('onGroupRemovedEvent', {
|
391
511
|
"namespace": "device"
|
392
512
|
});
|
@@ -1,6 +1,11 @@
|
|
1
1
|
/// <reference path="../@types/MiniKit.d.ts" />
|
2
2
|
export declare const nativeDisabled: typeof ty.nativeDisabled;
|
3
3
|
export declare const nativeInovke: typeof ty.nativeInovke;
|
4
|
+
export declare const getPermissionConfig: typeof ty.getPermissionConfig;
|
5
|
+
export declare const getPermissionConfigSync: typeof ty.getPermissionConfigSync;
|
6
|
+
export declare const openSetting: typeof ty.openSetting;
|
7
|
+
export declare const changeDebugMode: typeof ty.changeDebugMode;
|
8
|
+
export declare const openHelpCenter: typeof ty.openHelpCenter;
|
4
9
|
export declare const showTabBarRedDot: typeof ty.showTabBarRedDot;
|
5
10
|
export declare const showTabBar: typeof ty.showTabBar;
|
6
11
|
export declare const setTabBarStyle: typeof ty.setTabBarStyle;
|
@@ -9,6 +14,7 @@ export declare const setTabBarBadge: typeof ty.setTabBarBadge;
|
|
9
14
|
export declare const removeTabBarBadge: typeof ty.removeTabBarBadge;
|
10
15
|
export declare const hideTabBarRedDot: typeof ty.hideTabBarRedDot;
|
11
16
|
export declare const hideTabBar: typeof ty.hideTabBar;
|
17
|
+
export declare const apiRequestByHighway: typeof ty.apiRequestByHighway;
|
12
18
|
export declare const navigateBackMiniProgram: typeof ty.navigateBackMiniProgram;
|
13
19
|
export declare const exitMiniProgram: typeof ty.exitMiniProgram;
|
14
20
|
export declare const getLaunchOptions: typeof ty.getLaunchOptions;
|
@@ -22,6 +28,14 @@ export declare const getMenuButtonBoundingClientRectSync: typeof ty.getMenuButto
|
|
22
28
|
export declare const preDownloadMiniApp: typeof ty.preDownloadMiniApp;
|
23
29
|
export declare const login: typeof ty.login;
|
24
30
|
export declare const setPageOrientation: typeof ty.setPageOrientation;
|
31
|
+
export declare const hideMenuButton: typeof ty.hideMenuButton;
|
32
|
+
export declare const showMenuButton: typeof ty.showMenuButton;
|
33
|
+
export declare const showStatusBar: typeof ty.showStatusBar;
|
34
|
+
export declare const hideStatusBar: typeof ty.hideStatusBar;
|
35
|
+
export declare const exitMiniWidget: typeof ty.exitMiniWidget;
|
36
|
+
export declare const canOpenURL: typeof ty.canOpenURL;
|
37
|
+
export declare const canOpenURLSync: typeof ty.canOpenURLSync;
|
38
|
+
export declare const openURL: typeof ty.openURL;
|
25
39
|
export declare const showNavigationBarLoading: typeof ty.showNavigationBarLoading;
|
26
40
|
export declare const setNavigationBarTitle: typeof ty.setNavigationBarTitle;
|
27
41
|
export declare const setNavigationBarColor: typeof ty.setNavigationBarColor;
|
@@ -2,6 +2,11 @@
|
|
2
2
|
import { factory } from './utils';
|
3
3
|
export var nativeDisabled = factory('nativeDisabled');
|
4
4
|
export var nativeInovke = factory('nativeInovke');
|
5
|
+
export var getPermissionConfig = factory('getPermissionConfig');
|
6
|
+
export var getPermissionConfigSync = factory('getPermissionConfigSync');
|
7
|
+
export var openSetting = factory('openSetting');
|
8
|
+
export var changeDebugMode = factory('changeDebugMode');
|
9
|
+
export var openHelpCenter = factory('openHelpCenter');
|
5
10
|
export var showTabBarRedDot = factory('showTabBarRedDot');
|
6
11
|
export var showTabBar = factory('showTabBar');
|
7
12
|
export var setTabBarStyle = factory('setTabBarStyle');
|
@@ -10,6 +15,7 @@ export var setTabBarBadge = factory('setTabBarBadge');
|
|
10
15
|
export var removeTabBarBadge = factory('removeTabBarBadge');
|
11
16
|
export var hideTabBarRedDot = factory('hideTabBarRedDot');
|
12
17
|
export var hideTabBar = factory('hideTabBar');
|
18
|
+
export var apiRequestByHighway = factory('apiRequestByHighway');
|
13
19
|
export var navigateBackMiniProgram = factory('navigateBackMiniProgram');
|
14
20
|
export var exitMiniProgram = factory('exitMiniProgram');
|
15
21
|
export var getLaunchOptions = factory('getLaunchOptions');
|
@@ -23,6 +29,14 @@ export var getMenuButtonBoundingClientRectSync = factory('getMenuButtonBoundingC
|
|
23
29
|
export var preDownloadMiniApp = factory('preDownloadMiniApp');
|
24
30
|
export var login = factory('login');
|
25
31
|
export var setPageOrientation = factory('setPageOrientation');
|
32
|
+
export var hideMenuButton = factory('hideMenuButton');
|
33
|
+
export var showMenuButton = factory('showMenuButton');
|
34
|
+
export var showStatusBar = factory('showStatusBar');
|
35
|
+
export var hideStatusBar = factory('hideStatusBar');
|
36
|
+
export var exitMiniWidget = factory('exitMiniWidget');
|
37
|
+
export var canOpenURL = factory('canOpenURL');
|
38
|
+
export var canOpenURLSync = factory('canOpenURLSync');
|
39
|
+
export var openURL = factory('openURL');
|
26
40
|
export var showNavigationBarLoading = factory('showNavigationBarLoading');
|
27
41
|
export var setNavigationBarTitle = factory('setNavigationBarTitle');
|
28
42
|
export var setNavigationBarColor = factory('setNavigationBarColor');
|
package/lib/all-kits.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import * as device from './DeviceKit-
|
2
|
-
export * from './BaseKit-
|
1
|
+
import * as device from './DeviceKit-3.0.0';
|
2
|
+
export * from './BaseKit-3.0.0';
|
3
|
+
export * from './BizKit-3.0.1';
|
3
4
|
export { device };
|
4
|
-
export * from './DeviceKit-
|
5
|
-
export * from './MiniKit-
|
6
|
-
export * from './TYKit-2.2.6';
|
5
|
+
export * from './DeviceKit-3.0.0';
|
6
|
+
export * from './MiniKit-3.0.0';
|
package/lib/all-kits.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import * as device from './DeviceKit-
|
2
|
-
export * from './BaseKit-
|
1
|
+
import * as device from './DeviceKit-3.0.0';
|
2
|
+
export * from './BaseKit-3.0.0';
|
3
|
+
export * from './BizKit-3.0.1';
|
3
4
|
export { device };
|
4
|
-
export * from './DeviceKit-
|
5
|
-
export * from './MiniKit-
|
6
|
-
export * from './TYKit-2.2.6';
|
5
|
+
export * from './DeviceKit-3.0.0';
|
6
|
+
export * from './MiniKit-3.0.0';
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,9 +1,3 @@
|
|
1
1
|
/// <reference path="../../@types/api.d.ts" />
|
2
|
-
declare const _default: (arg?:
|
3
|
-
animation?: boolean | undefined;
|
4
|
-
} & {
|
5
|
-
success?: ((S?: any) => void) | undefined;
|
6
|
-
fail?: ((F?: any) => void) | undefined;
|
7
|
-
complete?: ((C?: any) => void) | undefined;
|
8
|
-
} & import("../core").PromisifyArgs<any, any>) => Promise<any>;
|
2
|
+
declare const _default: (arg?: any) => Promise<any>;
|
9
3
|
export default _default;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,9 +1,3 @@
|
|
1
1
|
/// <reference path="../../@types/api.d.ts" />
|
2
|
-
declare const _default: (arg?:
|
3
|
-
animation?: boolean | undefined;
|
4
|
-
} & {
|
5
|
-
success?: ((S?: any) => void) | undefined;
|
6
|
-
fail?: ((F?: any) => void) | undefined;
|
7
|
-
complete?: ((C?: any) => void) | undefined;
|
8
|
-
} & import("../core").PromisifyArgs<any, any>) => Promise<any>;
|
2
|
+
declare const _default: (arg?: any) => Promise<any>;
|
9
3
|
export default _default;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.11",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,16 +26,12 @@
|
|
26
26
|
"build:kit:api": "node scripts/api-creator.mjs"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@ray-js/framework": "^0.5.
|
30
|
-
"@ray-js/router": "^0.5.
|
31
|
-
"@tuya-miniapp/base-kit": "^2.1.2",
|
32
|
-
"@tuya-miniapp/device-kit": "^2.1.6",
|
33
|
-
"@tuya-miniapp/mini-kit": "^2.3.7",
|
34
|
-
"@tuya-miniapp/ty-kit": "^2.0.7",
|
29
|
+
"@ray-js/framework": "^0.5.11",
|
30
|
+
"@ray-js/router": "^0.5.11",
|
35
31
|
"react-native": "0.59.10"
|
36
32
|
},
|
37
33
|
"devDependencies": {
|
38
|
-
"@ray-js/cli": "^0.5.
|
34
|
+
"@ray-js/cli": "^0.5.11",
|
39
35
|
"art-template": "^4.13.2",
|
40
36
|
"fs-extra": "^10.1.0",
|
41
37
|
"miniprogram-api-typings": "^3.4.3",
|
@@ -47,6 +43,6 @@
|
|
47
43
|
"email": "tuyafe@tuya.com"
|
48
44
|
}
|
49
45
|
],
|
50
|
-
"gitHead": "
|
46
|
+
"gitHead": "f5460daeb7fc33645238859ac41d6c1517685ab9",
|
51
47
|
"repository": {}
|
52
48
|
}
|