@ray-js/ray-ipc-utils 1.1.0-beta-15 → 1.1.0-beta-17
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/index.d.ts +4 -50
- package/lib/index.js +4 -7
- package/lib/interface.d.ts +1 -0
- package/lib/interface.js +1 -0
- package/lib/kit/ipc/index.js +0 -15
- package/lib/service/index.js +1 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,50 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
delCollectionPointsInfo: <T_3>(deviceId: string, pointData: [{
|
|
6
|
-
devId: string;
|
|
7
|
-
mpId: string;
|
|
8
|
-
}]) => Promise<IRes<T_3>>;
|
|
9
|
-
addCollectionPointsInfo: <T_4>(deviceId: string, name: string) => Promise<IRes<T_4>>;
|
|
10
|
-
getServiceUrl: <T_5>(deviceId: string, serveType: import("./interface").ServeTpe, paramData?: Record<string, any>, action?: boolean, utm_rtid?: string) => Promise<IRes<T_5>>;
|
|
11
|
-
JsonUtil: any;
|
|
12
|
-
getInitUtmTid: () => string;
|
|
13
|
-
getDevInfo: <T_6>(deviceId: string) => Promise<import("./kit/interface").IRes<T_6>>;
|
|
14
|
-
getNativeStorage: <T_7>(key: string) => Promise<import("./kit/interface").IRes<T_7>>;
|
|
15
|
-
setNativeStorage: <T_8>(key: string, data: string) => Promise<import("./kit/interface").IRes<T_8>>;
|
|
16
|
-
removeNativeStorage: <T_9>(key: string) => Promise<import("./kit/interface").IRes<T_9>>;
|
|
17
|
-
publishDps: <T_10>(deviceId: string, dps: any) => Promise<import("./kit/interface").IRes<T_10>>;
|
|
18
|
-
getDpStateValue: <T_11>(deviceId: string, dpCode: string) => Promise<import("./kit/interface").IRes<T_11>>;
|
|
19
|
-
getDpIdByCode: <T_12>(deviceId: string, dpCode: string) => Promise<import("./kit/interface").IRes<T_12>>;
|
|
20
|
-
goToMiniProgramByShortLink: <T_13>(url: string, position?: string) => Promise<import("./kit/interface").IRes<T_13>>;
|
|
21
|
-
getVideoBitrateKbps: <T_14>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_14>>;
|
|
22
|
-
networkStatusDidChangedEvent: (callback: (res: any) => void) => void;
|
|
23
|
-
offNetworkStatusDidChangedEvent: (callback: (res: any) => void) => void;
|
|
24
|
-
getMobileOrientation: <T_15>() => Promise<import("./kit/interface").IRes<T_15>>;
|
|
25
|
-
jumpToWebView: <T_16>(url: string) => Promise<import("./kit/interface").IRes<T_16>>;
|
|
26
|
-
setScreenOrientation: <T_17>(pageOrientation: string) => Promise<import("./kit/interface").IRes<T_17>>;
|
|
27
|
-
isSupportFloatWindow: <T_18>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_18>>;
|
|
28
|
-
openFloatWindow: <T_19>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_19>>;
|
|
29
|
-
isSupportedTalk: <T_20>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_20>>;
|
|
30
|
-
getCurrentSupportedTalkMode: <T_21>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_21>>;
|
|
31
|
-
goToIpcPageNativeRoute: <T_22>(url: string, deviceId: string, theme?: "dark" | "light", extraParams?: {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
} | undefined, isGeneral?: false | undefined) => Promise<import("./kit/interface").IRes<T_22>>;
|
|
34
|
-
goToGeneralHelpMini: <T_23>() => Promise<import("./kit/interface").IRes<T_23>>;
|
|
35
|
-
goToIpcHelpMini: <T_24>(errCode: number, deviceId: string, helpNum: number, helpFeedBack: boolean, brandColor?: string) => Promise<import("./kit/interface").IRes<T_24>>;
|
|
36
|
-
getIsSupportedCloudStorageSync: (deviceId: string) => Promise<{
|
|
37
|
-
code: number;
|
|
38
|
-
data: boolean;
|
|
39
|
-
msg?: undefined;
|
|
40
|
-
} | {
|
|
41
|
-
code: number;
|
|
42
|
-
data: boolean;
|
|
43
|
-
msg: string | boolean | import("./kit/interface").IApiError | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
ipcTTTOperatorLog: <T_25>(ipcLogString: string) => Promise<import("./kit/interface").IRes<T_25>>;
|
|
46
|
-
requestWifiSignal: <T_26>(deviceId: string, dps?: {}) => Promise<import("./kit/interface").IRes<T_26>>;
|
|
47
|
-
wakeUpDevice: <T_27>(deviceId: string, dps?: {}) => Promise<import("./kit/interface").IRes<T_27>>;
|
|
48
|
-
useTrafficViewTip: () => boolean;
|
|
49
|
-
};
|
|
50
|
-
export default IpcUtils;
|
|
1
|
+
export * from './hooks';
|
|
2
|
+
export * from './kit';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './service';
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import * as service from './service';
|
|
6
|
-
const IpcUtils = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, hooks), kit), utils), service);
|
|
7
|
-
export default IpcUtils;
|
|
1
|
+
export * from './hooks';
|
|
2
|
+
export * from './kit';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './service';
|
package/lib/interface.d.ts
CHANGED
package/lib/interface.js
CHANGED
package/lib/kit/ipc/index.js
CHANGED
|
@@ -80,14 +80,12 @@ export const setNativeStorage = (key, data) => {
|
|
|
80
80
|
key,
|
|
81
81
|
data,
|
|
82
82
|
success: res => {
|
|
83
|
-
console.log(res, '______');
|
|
84
83
|
resolve({
|
|
85
84
|
code: 0,
|
|
86
85
|
data: res
|
|
87
86
|
});
|
|
88
87
|
},
|
|
89
88
|
fail: err => {
|
|
90
|
-
console.log(err, '___________');
|
|
91
89
|
resolve({
|
|
92
90
|
code: -1,
|
|
93
91
|
msg: err
|
|
@@ -299,14 +297,12 @@ export const getVideoBitrateKbps = function (deviceId) {
|
|
|
299
297
|
deviceId,
|
|
300
298
|
extendParam: extendParam,
|
|
301
299
|
success: res => {
|
|
302
|
-
console.log('res===getVideoBitrateKbps success', res);
|
|
303
300
|
resolve({
|
|
304
301
|
code: 0,
|
|
305
302
|
data: res
|
|
306
303
|
});
|
|
307
304
|
},
|
|
308
305
|
fail: err => {
|
|
309
|
-
console.log('res===getVideoBitrateKbps err', err);
|
|
310
306
|
resolve({
|
|
311
307
|
code: -1,
|
|
312
308
|
msg: err
|
|
@@ -346,14 +342,12 @@ export const getMobileOrientation = () => {
|
|
|
346
342
|
const {
|
|
347
343
|
deviceOrientation = ''
|
|
348
344
|
} = res;
|
|
349
|
-
console.log('res===getMobileOrientation success', deviceOrientation);
|
|
350
345
|
resolve({
|
|
351
346
|
code: 0,
|
|
352
347
|
data: deviceOrientation
|
|
353
348
|
});
|
|
354
349
|
},
|
|
355
350
|
fail: err => {
|
|
356
|
-
console.log('res===getMobileOrientation err', err);
|
|
357
351
|
resolve({
|
|
358
352
|
code: -1,
|
|
359
353
|
msg: err
|
|
@@ -414,14 +408,12 @@ export const setScreenOrientation = pageOrientation => {
|
|
|
414
408
|
ty.setPageOrientation({
|
|
415
409
|
pageOrientation: pageOrientation,
|
|
416
410
|
success: res => {
|
|
417
|
-
console.log('res===setScreenOrientation success', res);
|
|
418
411
|
resolve({
|
|
419
412
|
code: 0,
|
|
420
413
|
data: res
|
|
421
414
|
});
|
|
422
415
|
},
|
|
423
416
|
fail: err => {
|
|
424
|
-
console.log('res===setScreenOrientation err', err);
|
|
425
417
|
resolve({
|
|
426
418
|
code: -1,
|
|
427
419
|
msg: err
|
|
@@ -451,14 +443,12 @@ export const isSupportFloatWindow = function (deviceId) {
|
|
|
451
443
|
deviceId,
|
|
452
444
|
extendParam: extendParam,
|
|
453
445
|
success: res => {
|
|
454
|
-
console.log('res===isSupportFloatWindow success', res);
|
|
455
446
|
resolve({
|
|
456
447
|
code: 0,
|
|
457
448
|
data: res
|
|
458
449
|
});
|
|
459
450
|
},
|
|
460
451
|
fail: err => {
|
|
461
|
-
console.log('res===isSupportFloatWindow err', err);
|
|
462
452
|
resolve({
|
|
463
453
|
code: -1,
|
|
464
454
|
msg: err
|
|
@@ -488,14 +478,12 @@ export const openFloatWindow = function (deviceId) {
|
|
|
488
478
|
deviceId,
|
|
489
479
|
extendParam: extendParam,
|
|
490
480
|
success: res => {
|
|
491
|
-
console.log('res===openFloatWindow success', res);
|
|
492
481
|
resolve({
|
|
493
482
|
code: 0,
|
|
494
483
|
data: res
|
|
495
484
|
});
|
|
496
485
|
},
|
|
497
486
|
fail: err => {
|
|
498
|
-
console.log('res===openFloatWindow err', err);
|
|
499
487
|
resolve({
|
|
500
488
|
code: -1,
|
|
501
489
|
msg: err
|
|
@@ -562,14 +550,12 @@ export const getCurrentSupportedTalkMode = function (deviceId) {
|
|
|
562
550
|
deviceId,
|
|
563
551
|
extendParam: extendParam,
|
|
564
552
|
success: res => {
|
|
565
|
-
console.log('res===getCurrentSupportedTalkMode success', res);
|
|
566
553
|
resolve({
|
|
567
554
|
code: 0,
|
|
568
555
|
data: res
|
|
569
556
|
});
|
|
570
557
|
},
|
|
571
558
|
fail: err => {
|
|
572
|
-
console.log('res===getCurrentSupportedTalkMode err', err);
|
|
573
559
|
resolve({
|
|
574
560
|
code: -1,
|
|
575
561
|
msg: err
|
|
@@ -784,7 +770,6 @@ export const ipcTTTOperatorLog = ipcLogString => {
|
|
|
784
770
|
ty.ipc.ipcTTTOperatorLog({
|
|
785
771
|
ipcLogString,
|
|
786
772
|
success: res => {
|
|
787
|
-
console.log(res, 'res');
|
|
788
773
|
resolve({
|
|
789
774
|
code: 0,
|
|
790
775
|
data: res
|
package/lib/service/index.js
CHANGED