@trap_stevo/filenet 0.0.39 → 0.0.41
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/dist/cjs/index.js +191 -2
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -6,11 +6,179 @@ class FileNet {
|
|
|
6
6
|
this.fileNetManager = new FileTide();
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
launch(fileNetID, netOptions = {}, onLaunch,
|
|
10
|
-
|
|
9
|
+
launch(fileNetID, netOptions = {}, onLaunch, onTideAction = null, transportOptions = {
|
|
10
|
+
parallelChunks: 3,
|
|
11
|
+
maxRetries: 3
|
|
12
|
+
}, ...netConfigurations) {
|
|
13
|
+
this.fileNetManager.launchFileTide(netOptions, onLaunch, transportOptions, onTideAction, ...netConfigurations);
|
|
11
14
|
this.fileNetManager.currentUserID = fileNetID;
|
|
12
15
|
return;
|
|
13
16
|
}
|
|
17
|
+
|
|
18
|
+
// --- FileNet Tidalytics Management ---
|
|
19
|
+
|
|
20
|
+
async getTidalyticsSince(interval = "1d", source = "storage", filter = {}) {
|
|
21
|
+
if (!this.operational()) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return await this.fileNetManager.fileNet.getTidalyticsSince(interval, source, filter);
|
|
25
|
+
}
|
|
26
|
+
async getStoredTidalytics(filter = {}) {
|
|
27
|
+
if (!this.operational()) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return await this.fileNetManager.fileNet.getStoredTidalytics(filter);
|
|
31
|
+
}
|
|
32
|
+
async getTidalyticsInDomain(domain, options = {}) {
|
|
33
|
+
if (!this.operational()) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return await this.fileNetManager.fileNet.getTidalyticsInDomain(domain, options);
|
|
37
|
+
}
|
|
38
|
+
getTidalytics(filter = {}) {
|
|
39
|
+
if (!this.operational()) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return this.fileNetManager.fileNet.getTidalytics(filter);
|
|
43
|
+
}
|
|
44
|
+
getTidalyticByID(id) {
|
|
45
|
+
if (!this.operational()) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return this.fileNetManager.fileNet.getTidalyticByID(id);
|
|
49
|
+
}
|
|
50
|
+
searchTidalyticByTagValue(key, match) {
|
|
51
|
+
if (!this.operational()) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return this.fileNetManager.fileNet.searchTidalyticByTagValue(key, match);
|
|
55
|
+
}
|
|
56
|
+
getTidalyticAggregate(name) {
|
|
57
|
+
if (!this.operational()) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return this.fileNetManager.fileNet.getTidalyticAggregate(name);
|
|
61
|
+
}
|
|
62
|
+
getTidalyticAggregateByType(type) {
|
|
63
|
+
if (!this.operational()) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return this.fileNetManager.fileNet.getTidalyticAggregateByType(type);
|
|
67
|
+
}
|
|
68
|
+
groupTidalyticByTag(tagKey) {
|
|
69
|
+
if (!this.operational()) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return this.fileNetManager.fileNet.groupTidalyticByTag(tagKey);
|
|
73
|
+
}
|
|
74
|
+
getTidalyticTimeSeries(name, options = {}) {
|
|
75
|
+
if (!this.operational()) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return this.fileNetManager.fileNet.getTidalyticTimeSeries(name, options);
|
|
79
|
+
}
|
|
80
|
+
predictTidalytic(name, config = {}) {
|
|
81
|
+
if (!this.operational()) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return this.fileNetManager.fileNet.predictTidalytic(name, config);
|
|
85
|
+
}
|
|
86
|
+
async clearTidalytics(domain, options = {}) {
|
|
87
|
+
if (!this.operational()) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return await this.fileNetManager.fileNet.clearTidalytics(domain, options);
|
|
91
|
+
}
|
|
92
|
+
clearAllTidalytics() {
|
|
93
|
+
if (!this.operational()) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return this.fileNetManager.fileNet.clearAllTidalytics();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// --- FileNet Tide Sentinel Management ---
|
|
100
|
+
|
|
101
|
+
banClient(clientID, options = {}) {
|
|
102
|
+
if (!this.operational()) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return this.fileNetManager.fileNet.banClient(clientID, options);
|
|
106
|
+
}
|
|
107
|
+
kickClient(clientID, options = {}) {
|
|
108
|
+
if (!this.operational()) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return this.fileNetManager.fileNet.kickClient(clientID, options);
|
|
112
|
+
}
|
|
113
|
+
unbanClient(clientID) {
|
|
114
|
+
if (!this.operational()) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
return this.fileNetManager.fileNet.unbanClient(clientID);
|
|
118
|
+
}
|
|
119
|
+
clientBanned(clientID) {
|
|
120
|
+
if (!this.operational()) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
return this.fileNetManager.fileNet.clientBanned(clientID);
|
|
124
|
+
}
|
|
125
|
+
getBanEntry(clientID) {
|
|
126
|
+
if (!this.operational()) {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
return this.fileNetManager.fileNet.getBanEntry(clientID);
|
|
130
|
+
}
|
|
131
|
+
filterBannedClients(filter = {}) {
|
|
132
|
+
if (!this.operational()) {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
return this.fileNetManager.fileNet.filterBannedClients(filter);
|
|
136
|
+
}
|
|
137
|
+
registerTideSentinelExpireHook(list, callback) {
|
|
138
|
+
if (!this.operational()) {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
return this.fileNetManager.fileNet.registerTideSentinelExpireHook(list, callback);
|
|
142
|
+
}
|
|
143
|
+
addToTideList(list, key, data) {
|
|
144
|
+
if (!this.operational()) {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
return this.fileNetManager.fileNet.addToTideList(list, key, data);
|
|
148
|
+
}
|
|
149
|
+
removeFromTideList(list, key) {
|
|
150
|
+
if (!this.operational()) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
return this.fileNetManager.fileNet.removeFromTideList(list, key);
|
|
154
|
+
}
|
|
155
|
+
inTideList(list, key) {
|
|
156
|
+
if (!this.operational()) {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
return this.fileNetManager.fileNet.inTideList(list, key);
|
|
160
|
+
}
|
|
161
|
+
getEntry(list, key) {
|
|
162
|
+
if (!this.operational()) {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
return this.fileNetManager.fileNet.getEntry(list, key);
|
|
166
|
+
}
|
|
167
|
+
filterTideList(list, filter = {}) {
|
|
168
|
+
if (!this.operational()) {
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
return this.fileNetManager.fileNet.filterTideList(list, filter);
|
|
172
|
+
}
|
|
173
|
+
findSimilarKeys(keyword, options = {}) {
|
|
174
|
+
if (!this.operational()) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
return this.fileNetManager.fileNet.findSimilarKeys(keyword, options);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// --- FileNet Path Management ---
|
|
181
|
+
|
|
14
182
|
async getDirectoryData(directoryPath) {
|
|
15
183
|
return await this.fileNetManager.getDirectoryData(directoryPath);
|
|
16
184
|
}
|
|
@@ -23,10 +191,31 @@ class FileNet {
|
|
|
23
191
|
getTidePath(inputPath) {
|
|
24
192
|
return this.fileNetManager.getTidePath(inputPath);
|
|
25
193
|
}
|
|
194
|
+
|
|
195
|
+
// --- FileNet Client Management ---
|
|
196
|
+
|
|
197
|
+
getClientFromID(clientID) {
|
|
198
|
+
if (!this.operational()) {
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
return this.fileNetManager.fileNet.getClientFromID(clientID);
|
|
202
|
+
}
|
|
203
|
+
getConnectedClients() {
|
|
204
|
+
if (!this.operational()) {
|
|
205
|
+
return null;
|
|
206
|
+
}
|
|
207
|
+
return this.fileNetManager.fileNet.onlineClients;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// --- FileNet Transfer Management ---
|
|
211
|
+
|
|
26
212
|
async sendToDevice(userID, filePath, destinationPath, filterContent = [], tideSize = 200, tidalSize = 500, minTideSize = 10, maxTideSize = 2000, transferRequestExpirationTime = 30000) {
|
|
27
213
|
await this.fileNetManager.sendToDevice(userID, filePath, destinationPath, filterContent, tideSize, tidalSize, minTideSize, maxTideSize, transferRequestExpirationTime);
|
|
28
214
|
return;
|
|
29
215
|
}
|
|
216
|
+
|
|
217
|
+
// --- FileNet Operation Management ---
|
|
218
|
+
|
|
30
219
|
operational() {
|
|
31
220
|
return this.fileNetManager.fileTideOperational();
|
|
32
221
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filenet",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"description": "Provides the groundbreaking solution for real-time, OTA (Over-The-Air) file transfer, streamlining client-to-client sharing with unmatched efficiency and effortless, on-the-fly handling. Whether managing peer-to-peer or client-server transfers, FileNet ensures seamless communication across devices, allowing for file transfers from all over the world, while maintaining fast, secure, and dynamic connectivity. Along with proprietary maximum performance measures, it delivers parallelly synchronized, high-speed transfers, from large data exchanges to instant sharing, setting a new standard in modern file transfer and redefining real-time connectivity.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"author": "Steven Compton",
|
|
39
39
|
"license": "See License in LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@trap_stevo/filetide": "^0.0.
|
|
42
|
-
"@trap_stevo/filetide-client": "^0.0.
|
|
41
|
+
"@trap_stevo/filetide": "^0.0.66",
|
|
42
|
+
"@trap_stevo/filetide-client": "^0.0.35",
|
|
43
43
|
"@trap_stevo/iotide": "^0.0.43"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|