@ray-js/api 1.7.83 → 1.7.84
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/@types/AIStreamKit.d.ts +530 -10
- package/@types/BaseKit.d.ts +291 -233
- package/@types/BizKit.d.ts +499 -161
- package/@types/LightKit.d.ts +3 -3
- package/@types/MapKit.d.ts +24 -24
- package/@types/MiniKit.d.ts +117 -92
- package/@types/OutdoorKit.d.ts +61 -61
- package/@types/P2PKit.d.ts +25 -25
- package/@types/WearKit.d.ts +550 -26
- package/lib/nativeRouters/device.d.ts +50 -15
- package/lib/nativeRouters/device.js +47 -15
- package/lib/nativeRouters/gw.d.ts +0 -3
- package/lib/nativeRouters/gw.js +0 -3
- package/lib/nativeRouters/outdoors.d.ts +12 -3
- package/lib/nativeRouters/outdoors.js +11 -3
- package/lib/nativeRouters/root.d.ts +33 -5
- package/lib/nativeRouters/root.js +32 -5
- package/package.json +5 -5
package/@types/P2PKit.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare namespace ty.p2p {
|
|
|
8
8
|
* P2P SDK init
|
|
9
9
|
* @public
|
|
10
10
|
* @since P2PKit 0.0.1
|
|
11
|
-
* @example
|
|
11
|
+
* @example
|
|
12
12
|
* ```tsx
|
|
13
13
|
* ty.p2p.P2PSDKInit({
|
|
14
14
|
* userId: "xx",
|
|
@@ -52,7 +52,7 @@ declare namespace ty.p2p {
|
|
|
52
52
|
* P2P connect
|
|
53
53
|
* @public
|
|
54
54
|
* @since P2PKit 0.0.1
|
|
55
|
-
* @example
|
|
55
|
+
* @example
|
|
56
56
|
* ```tsx
|
|
57
57
|
* ty.p2p.connectDevice({
|
|
58
58
|
* deviceId: "xx",
|
|
@@ -110,7 +110,7 @@ declare namespace ty.p2p {
|
|
|
110
110
|
* check P2P status
|
|
111
111
|
* @public
|
|
112
112
|
* @since P2PKit 2.0.3
|
|
113
|
-
* @example
|
|
113
|
+
* @example
|
|
114
114
|
* ```tsx
|
|
115
115
|
* ty.p2p.isP2PActive({
|
|
116
116
|
* deviceId: "xx",
|
|
@@ -168,7 +168,7 @@ declare namespace ty.p2p {
|
|
|
168
168
|
* check P2P status
|
|
169
169
|
* @public
|
|
170
170
|
* @since P2PKit 2.0.3
|
|
171
|
-
* @example
|
|
171
|
+
* @example
|
|
172
172
|
* ```tsx
|
|
173
173
|
* ty.p2p.isP2PActive({
|
|
174
174
|
* deviceId: "xx",
|
|
@@ -190,7 +190,7 @@ declare namespace ty.p2p {
|
|
|
190
190
|
* query device's album file index infos
|
|
191
191
|
* @public
|
|
192
192
|
* @since P2PKit 1.0.0
|
|
193
|
-
* @example
|
|
193
|
+
* @example
|
|
194
194
|
* ```tsx
|
|
195
195
|
* ty.p2p.queryAlbumFileIndexs({
|
|
196
196
|
* deviceId: "xx",
|
|
@@ -251,7 +251,7 @@ declare namespace ty.p2p {
|
|
|
251
251
|
* upload file
|
|
252
252
|
* @public
|
|
253
253
|
* @since P2PKit 0.0.1
|
|
254
|
-
* @example
|
|
254
|
+
* @example
|
|
255
255
|
* ```tsx
|
|
256
256
|
* ty.p2p.uploadFile({
|
|
257
257
|
* deviceId: "xx",
|
|
@@ -319,7 +319,7 @@ declare namespace ty.p2p {
|
|
|
319
319
|
* download file
|
|
320
320
|
* @public
|
|
321
321
|
* @since P2PKit 1.0.0
|
|
322
|
-
* @example
|
|
322
|
+
* @example
|
|
323
323
|
* ```tsx
|
|
324
324
|
* ty.p2p.downloadFile({
|
|
325
325
|
* deviceId: "xx",
|
|
@@ -381,7 +381,7 @@ declare namespace ty.p2p {
|
|
|
381
381
|
* download file stream
|
|
382
382
|
* @public
|
|
383
383
|
* @since P2PKit 2.0.2
|
|
384
|
-
* @example
|
|
384
|
+
* @example
|
|
385
385
|
* ```tsx
|
|
386
386
|
* ty.p2p.downloadStream({
|
|
387
387
|
* deviceId: "xx",
|
|
@@ -437,7 +437,7 @@ declare namespace ty.p2p {
|
|
|
437
437
|
* append download file stream
|
|
438
438
|
* @public
|
|
439
439
|
* @since P2PKit 2.1.0
|
|
440
|
-
* @example
|
|
440
|
+
* @example
|
|
441
441
|
* ```tsx
|
|
442
442
|
* ty.p2p.appendDownloadStream({
|
|
443
443
|
* deviceId: "xx",
|
|
@@ -493,7 +493,7 @@ declare namespace ty.p2p {
|
|
|
493
493
|
* cancel upload task
|
|
494
494
|
* @public
|
|
495
495
|
* @since P2PKit 0.0.1
|
|
496
|
-
* @example
|
|
496
|
+
* @example
|
|
497
497
|
* ```tsx
|
|
498
498
|
* ty.p2p.cancelUploadTask({
|
|
499
499
|
* deviceId: "xx",
|
|
@@ -537,7 +537,7 @@ declare namespace ty.p2p {
|
|
|
537
537
|
* cancel download task
|
|
538
538
|
* @public
|
|
539
539
|
* @since P2PKit 1.0.0
|
|
540
|
-
* @example
|
|
540
|
+
* @example
|
|
541
541
|
* ```tsx
|
|
542
542
|
* ty.p2p.cancelDownloadTask({
|
|
543
543
|
* deviceId: "xx",
|
|
@@ -581,7 +581,7 @@ declare namespace ty.p2p {
|
|
|
581
581
|
* P2P disconnect
|
|
582
582
|
* @public
|
|
583
583
|
* @since P2PKit 0.0.1
|
|
584
|
-
* @example
|
|
584
|
+
* @example
|
|
585
585
|
* ```tsx
|
|
586
586
|
* ty.p2p.disconnectDevice({
|
|
587
587
|
* deviceId: "xx",
|
|
@@ -625,7 +625,7 @@ declare namespace ty.p2p {
|
|
|
625
625
|
* P2P SDK deinit
|
|
626
626
|
* @public
|
|
627
627
|
* @since P2PKit 0.0.1
|
|
628
|
-
* @example
|
|
628
|
+
* @example
|
|
629
629
|
* ```tsx
|
|
630
630
|
* ty.p2p.deInitSDK({
|
|
631
631
|
* success: data => {
|
|
@@ -663,7 +663,7 @@ declare namespace ty.p2p {
|
|
|
663
663
|
* P2P status changed event
|
|
664
664
|
* @public
|
|
665
665
|
* @since P2PKit 1.0.0
|
|
666
|
-
* @example
|
|
666
|
+
* @example
|
|
667
667
|
* ```tsx
|
|
668
668
|
* ty.p2p.onSessionStatusChange(e => {
|
|
669
669
|
* console.log(e);
|
|
@@ -679,7 +679,7 @@ declare namespace ty.p2p {
|
|
|
679
679
|
* P2P status changed event
|
|
680
680
|
* @public
|
|
681
681
|
* @since P2PKit 1.0.0
|
|
682
|
-
* @example
|
|
682
|
+
* @example
|
|
683
683
|
* ```tsx
|
|
684
684
|
* const listener = function (res) { console.log(res) }
|
|
685
685
|
* ty.p2p.onSessionStatusChange(listener)
|
|
@@ -695,7 +695,7 @@ declare namespace ty.p2p {
|
|
|
695
695
|
* upload file progress event
|
|
696
696
|
* @public
|
|
697
697
|
* @since P2PKit 0.0.1
|
|
698
|
-
* @example
|
|
698
|
+
* @example
|
|
699
699
|
* ```tsx
|
|
700
700
|
* ty.p2p.onUploadProgressUpdate(e => {
|
|
701
701
|
* console.log(e);
|
|
@@ -711,7 +711,7 @@ declare namespace ty.p2p {
|
|
|
711
711
|
* upload file progress event
|
|
712
712
|
* @public
|
|
713
713
|
* @since P2PKit 0.0.1
|
|
714
|
-
* @example
|
|
714
|
+
* @example
|
|
715
715
|
* ```tsx
|
|
716
716
|
* const listener = function (res) { console.log(res) }
|
|
717
717
|
* ty.p2p.onUploadProgressUpdate(listener)
|
|
@@ -727,7 +727,7 @@ declare namespace ty.p2p {
|
|
|
727
727
|
* single file download progress event
|
|
728
728
|
* @public
|
|
729
729
|
* @since P2PKit 1.0.0
|
|
730
|
-
* @example
|
|
730
|
+
* @example
|
|
731
731
|
* ```tsx
|
|
732
732
|
* ty.p2p.onDownloadProgressUpdate(e => {
|
|
733
733
|
* console.log(e);
|
|
@@ -743,7 +743,7 @@ declare namespace ty.p2p {
|
|
|
743
743
|
* single file download progress event
|
|
744
744
|
* @public
|
|
745
745
|
* @since P2PKit 1.0.0
|
|
746
|
-
* @example
|
|
746
|
+
* @example
|
|
747
747
|
* ```tsx
|
|
748
748
|
* const listener = function (res) { console.log(res) }
|
|
749
749
|
* ty.p2p.onDownloadProgressUpdate(listener)
|
|
@@ -759,7 +759,7 @@ declare namespace ty.p2p {
|
|
|
759
759
|
* total download progress event
|
|
760
760
|
* @public
|
|
761
761
|
* @since P2PKit 1.0.0
|
|
762
|
-
* @example
|
|
762
|
+
* @example
|
|
763
763
|
* ```tsx
|
|
764
764
|
* ty.p2p.onDownloadTotalProgressUpdate(e => {
|
|
765
765
|
* console.log(e);
|
|
@@ -775,7 +775,7 @@ declare namespace ty.p2p {
|
|
|
775
775
|
* total download progress event
|
|
776
776
|
* @public
|
|
777
777
|
* @since P2PKit 1.0.0
|
|
778
|
-
* @example
|
|
778
|
+
* @example
|
|
779
779
|
* ```tsx
|
|
780
780
|
* const listener = function (res) { console.log(res) }
|
|
781
781
|
* ty.p2p.onDownloadTotalProgressUpdate(listener)
|
|
@@ -791,7 +791,7 @@ declare namespace ty.p2p {
|
|
|
791
791
|
* single file download completed event
|
|
792
792
|
* @public
|
|
793
793
|
* @since P2PKit 1.0.0
|
|
794
|
-
* @example
|
|
794
|
+
* @example
|
|
795
795
|
* ```tsx
|
|
796
796
|
* ty.p2p.onFileDownloadComplete(e => {
|
|
797
797
|
* console.log(e);
|
|
@@ -807,7 +807,7 @@ declare namespace ty.p2p {
|
|
|
807
807
|
* single file download completed event
|
|
808
808
|
* @public
|
|
809
809
|
* @since P2PKit 1.0.0
|
|
810
|
-
* @example
|
|
810
|
+
* @example
|
|
811
811
|
* ```tsx
|
|
812
812
|
* const listener = function (res) { console.log(res) }
|
|
813
813
|
* ty.p2p.onFileDownloadComplete(listener)
|
|
@@ -823,7 +823,7 @@ declare namespace ty.p2p {
|
|
|
823
823
|
* download packet received event
|
|
824
824
|
* @public
|
|
825
825
|
* @since P2PKit 2.0.2
|
|
826
|
-
* @example
|
|
826
|
+
* @example
|
|
827
827
|
* ```tsx
|
|
828
828
|
* ty.p2p.onStreamPacketReceive(e => {
|
|
829
829
|
* console.log(e);
|
|
@@ -839,7 +839,7 @@ declare namespace ty.p2p {
|
|
|
839
839
|
* download packet received event
|
|
840
840
|
* @public
|
|
841
841
|
* @since P2PKit 2.0.2
|
|
842
|
-
* @example
|
|
842
|
+
* @example
|
|
843
843
|
* ```tsx
|
|
844
844
|
* const listener = function (res) { console.log(res) }
|
|
845
845
|
* ty.p2p.onStreamPacketReceive(listener)
|