@trap_stevo/filenet 0.0.42 → 0.0.44

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 CHANGED
@@ -1,20 +1,61 @@
1
1
  "use strict";
2
2
 
3
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
4
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
5
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
6
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
7
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
3
8
  const FileTide = require("@trap_stevo/filetide");
9
+ var _onFileNetTideAction = /*#__PURE__*/new WeakMap();
10
+ var _onFileNetLaunch = /*#__PURE__*/new WeakMap();
11
+ var _netConfigurations = /*#__PURE__*/new WeakMap();
12
+ var _transportOptions = /*#__PURE__*/new WeakMap();
13
+ var _netOptions = /*#__PURE__*/new WeakMap();
4
14
  class FileNet {
5
- constructor() {
6
- this.fileNetManager = new FileTide();
15
+ constructor(debugMode = true) {
16
+ _classPrivateFieldInitSpec(this, _onFileNetTideAction, null);
17
+ _classPrivateFieldInitSpec(this, _onFileNetLaunch, null);
18
+ _classPrivateFieldInitSpec(this, _netConfigurations, []);
19
+ _classPrivateFieldInitSpec(this, _transportOptions, {});
20
+ _classPrivateFieldInitSpec(this, _netOptions, {});
21
+ this.fileNetManager = new FileTide(debugMode);
7
22
  return;
8
23
  }
24
+
25
+ // --- FileNet Gateway Management ---
26
+
9
27
  launch(fileNetID, netOptions = {}, onLaunch, onTideAction = null, transportOptions = {
10
28
  parallelChunks: 3,
11
29
  maxRetries: 3
12
30
  }, ...netConfigurations) {
13
31
  this.fileNetManager.launchFileTide(netOptions, onLaunch, transportOptions, onTideAction, ...netConfigurations);
14
32
  this.fileNetManager.currentUserID = fileNetID;
33
+ _classPrivateFieldSet(_onFileNetTideAction, this, onTideAction);
34
+ _classPrivateFieldSet(_onFileNetLaunch, this, onLaunch);
35
+ _classPrivateFieldSet(_netConfigurations, this, netConfigurations);
36
+ _classPrivateFieldSet(_transportOptions, this, transportOptions);
37
+ _classPrivateFieldSet(_netOptions, this, netOptions);
15
38
  return;
16
39
  }
17
40
 
41
+ // --- FileNet TideToken Enforcement Management ---
42
+
43
+ updateTideTokenEnforcementCallbackConfigurations(updatedConfigurations = {}) {
44
+ this.fileNetManager.updateTideTokenEnforcementCallbackConfigurations(updatedConfigurations);
45
+ }
46
+ async registerTideToken(tideToken, meta = {}) {
47
+ return await this.fileNetManager.registerTideToken(tideToken, meta);
48
+ }
49
+ async inspectTideToken(tideToken) {
50
+ return await this.fileNetManager.inspectTideToken(tideToken);
51
+ }
52
+ getTideTokenEnforcerOverviewMetrics() {
53
+ return this.fileNetManager.getTideTokenEnforcerOverviewMetrics();
54
+ }
55
+ getTideToken(scope = "default") {
56
+ return this.fileNetManager.getTideToken(scope);
57
+ }
58
+
18
59
  // --- FileNet Tidalytics Management ---
19
60
 
20
61
  async getTidalyticsSince(interval = "1d", source = "storage", filter = {}) {
@@ -23,12 +64,24 @@ class FileNet {
23
64
  }
24
65
  return await this.fileNetManager.fileNet.getTidalyticsSince(interval, source, filter);
25
66
  }
67
+ async getTidalyticsBetween(start, end, source = "both", filter = {}) {
68
+ if (!this.operational()) {
69
+ return null;
70
+ }
71
+ return await this.fileNetManager.fileNet.getTidalyticsBetween(start, end, source, filter);
72
+ }
26
73
  async getStoredTidalytics(filter = {}) {
27
74
  if (!this.operational()) {
28
75
  return null;
29
76
  }
30
77
  return await this.fileNetManager.fileNet.getStoredTidalytics(filter);
31
78
  }
79
+ async getTidalyticsFromDomains(domains = [], options = {}) {
80
+ if (!this.operational()) {
81
+ return null;
82
+ }
83
+ return await this.fileNetManager.fileNet.getTidalyticsFromDomains(domains, options);
84
+ }
32
85
  async getTidalyticsInDomain(domain, options = {}) {
33
86
  if (!this.operational()) {
34
87
  return null;
@@ -95,6 +148,186 @@ class FileNet {
95
148
  }
96
149
  return this.fileNetManager.fileNet.clearAllTidalytics();
97
150
  }
151
+ async getTiderPresenceVisualData(options = {}) {
152
+ if (!this.operational()) {
153
+ return null;
154
+ }
155
+ return await this.fileNetManager.fileNet.getTiderPresenceVisualData(options);
156
+ }
157
+ async getAlreadyOnlineVisualData(options = {}) {
158
+ if (!this.operational()) {
159
+ return null;
160
+ }
161
+ return await this.fileNetManager.fileNet.getAlreadyOnlineVisualData(options);
162
+ }
163
+ async getTiderBanVisualData(options = {}) {
164
+ if (!this.operational()) {
165
+ return null;
166
+ }
167
+ return await this.fileNetManager.fileNet.getTiderBanVisualData(options);
168
+ }
169
+ async getTideFileTransferVisualData(options = {}) {
170
+ if (!this.operational()) {
171
+ return null;
172
+ }
173
+ return await this.fileNetManager.fileNet.getTideFileTransferVisualData(options);
174
+ }
175
+ async getTideTransferStateVisualData(options = {}) {
176
+ if (!this.operational()) {
177
+ return null;
178
+ }
179
+ return await this.fileNetManager.fileNet.getTideTransferStateVisualData(options);
180
+ }
181
+ async getFileListActivityVisualData(options = {}) {
182
+ if (!this.operational()) {
183
+ return null;
184
+ }
185
+ return await this.fileNetManager.fileNet.getFileListActivityVisualData(options);
186
+ }
187
+ async getTideBarrierVisualData(options = {}) {
188
+ if (!this.operational()) {
189
+ return null;
190
+ }
191
+ return await this.fileNetManager.fileNet.getTideBarrierVisualData(options);
192
+ }
193
+
194
+ // --- FileNet Tidalytics Event Management ---
195
+
196
+ attachTiderPresenceVisualStream(options = {}) {
197
+ if (!this.operational()) {
198
+ return null;
199
+ }
200
+ return this.fileNetManager.fileNet.attachTiderPresenceVisualStream(options);
201
+ }
202
+ attachAlreadyOnlineVisualStream(options = {}) {
203
+ if (!this.operational()) {
204
+ return null;
205
+ }
206
+ return this.fileNetManager.fileNet.attachAlreadyOnlineVisualStream(options);
207
+ }
208
+ attachTiderBanVisualStream(options = {}) {
209
+ if (!this.operational()) {
210
+ return null;
211
+ }
212
+ return this.fileNetManager.fileNet.attachTiderBanVisualStream(options);
213
+ }
214
+ attachTideFileTransferVisualStream(options = {}) {
215
+ if (!this.operational()) {
216
+ return null;
217
+ }
218
+ return this.fileNetManager.fileNet.attachTideFileTransferVisualStream(options);
219
+ }
220
+ attachTideTransferStateVisualStream(options = {}) {
221
+ if (!this.operational()) {
222
+ return null;
223
+ }
224
+ return this.fileNetManager.fileNet.attachTideTransferStateVisualStream(options);
225
+ }
226
+ attachFileListVisualStream(options = {}) {
227
+ if (!this.operational()) {
228
+ return null;
229
+ }
230
+ return this.fileNetManager.fileNet.attachFileListVisualStream(options);
231
+ }
232
+ attachTideBarrierVisualStream(options = {}) {
233
+ if (!this.operational()) {
234
+ return null;
235
+ }
236
+ return this.fileNetManager.fileNet.attachTideBarrierVisualStream(options);
237
+ }
238
+
239
+ // --- FileNet Tide Actions Management ---
240
+
241
+ async getAllTideActions(options = {}) {
242
+ if (!this.operational()) {
243
+ return null;
244
+ }
245
+ return await this.fileNetManager.fileNet.getAllTideActions(options);
246
+ }
247
+ async getTideCompletedTransferActions(options = {}) {
248
+ if (!this.operational()) {
249
+ return null;
250
+ }
251
+ return await this.fileNetManager.fileNet.getTideCompletedTransferActions(options);
252
+ }
253
+ async getTideTransferStateActions(options = {}) {
254
+ if (!this.operational()) {
255
+ return null;
256
+ }
257
+ return await this.fileNetManager.fileNet.getTideTransferStateActions(options);
258
+ }
259
+ async getTideIncomingFileActions(options = {}) {
260
+ if (!this.operational()) {
261
+ return null;
262
+ }
263
+ return await this.fileNetManager.fileNet.getTideIncomingFileActions(options);
264
+ }
265
+ async getTideIncomingTransferActions(options = {}) {
266
+ if (!this.operational()) {
267
+ return null;
268
+ }
269
+ return await this.fileNetManager.fileNet.getTideIncomingTransferActions(options);
270
+ }
271
+ async getTideBarrierAcceptedActions(options = {}) {
272
+ if (!this.operational()) {
273
+ return null;
274
+ }
275
+ return await this.fileNetManager.fileNet.getTideBarrierAcceptedActions(options);
276
+ }
277
+ async getTideBarrierDeniedActions(options = {}) {
278
+ if (!this.operational()) {
279
+ return null;
280
+ }
281
+ return await this.fileNetManager.fileNet.getTideBarrierDeniedActions(options);
282
+ }
283
+ async getFileListReceivedActions(options = {}) {
284
+ if (!this.operational()) {
285
+ return null;
286
+ }
287
+ return await this.fileNetManager.fileNet.getFileListReceivedActions(options);
288
+ }
289
+ async getFileListRequestActions(options = {}) {
290
+ if (!this.operational()) {
291
+ return null;
292
+ }
293
+ return await this.fileNetManager.fileNet.getFileListRequestActions(options);
294
+ }
295
+ async getTiderBannedActions(options = {}) {
296
+ if (!this.operational()) {
297
+ return null;
298
+ }
299
+ return await this.fileNetManager.fileNet.getTiderBannedActions(options);
300
+ }
301
+ async getTiderKickedActions(options = {}) {
302
+ if (!this.operational()) {
303
+ return null;
304
+ }
305
+ return await this.fileNetManager.fileNet.getTiderKickedActions(options);
306
+ }
307
+ async getTiderUnbannedActions(options = {}) {
308
+ if (!this.operational()) {
309
+ return null;
310
+ }
311
+ return await this.fileNetManager.fileNet.getTiderUnbannedActions(options);
312
+ }
313
+ async getTiderAlreadyOnlineActions(options = {}) {
314
+ if (!this.operational()) {
315
+ return null;
316
+ }
317
+ return await this.fileNetManager.fileNet.getTiderAlreadyOnlineActions(options);
318
+ }
319
+ async getTiderOnlineActions(options = {}) {
320
+ if (!this.operational()) {
321
+ return null;
322
+ }
323
+ return await this.fileNetManager.fileNet.getTiderOnlineActions(options);
324
+ }
325
+ async getTiderOfflineActions(options = {}) {
326
+ if (!this.operational()) {
327
+ return null;
328
+ }
329
+ return await this.fileNetManager.fileNet.getTiderOfflineActions(options);
330
+ }
98
331
 
99
332
  // --- FileNet Tide Sentinel Management ---
100
333
 
@@ -206,6 +439,12 @@ class FileNet {
206
439
  }
207
440
  return this.fileNetManager.fileNet.onlineClients;
208
441
  }
442
+ getOnlineClients() {
443
+ if (!this.operational()) {
444
+ return null;
445
+ }
446
+ return this.fileNetManager.fileNet.getOnlineClients();
447
+ }
209
448
 
210
449
  // --- FileNet Transfer Management ---
211
450
 
@@ -219,6 +458,13 @@ class FileNet {
219
458
  operational() {
220
459
  return this.fileNetManager.fileTideOperational();
221
460
  }
461
+ reboot(fileNetID) {
462
+ this.close();
463
+ setTimeout(() => {
464
+ const currentFileNetID = fileNetID ?? this.fileNetManager.currentUserID;
465
+ this.launch(currentFileNetID, _classPrivateFieldGet(_netOptions, this), _classPrivateFieldGet(_onFileNetLaunch, this), _classPrivateFieldGet(_onFileNetTideAction, this), _classPrivateFieldGet(_transportOptions, this), ..._classPrivateFieldGet(_netConfigurations, this));
466
+ }, 169);
467
+ }
222
468
  close() {
223
469
  this.fileNetManager.stopFileTide();
224
470
  return;
@@ -0,0 +1 @@
1
+ d49225dd-b689-439a-979f-6a4fe81f9d9b
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trap_stevo/filenet",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
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": {
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "scripts": {
13
13
  "build": "babel src -d dist/cjs --env-name cjs",
14
+ "start-tide-net": "node ./demos/fileNetDemo.js",
14
15
  "start": "node dist/cjs/index.js"
15
16
  },
16
17
  "keywords": [
@@ -38,9 +39,9 @@
38
39
  "author": "Steven Compton",
39
40
  "license": "See License in LICENSE.md",
40
41
  "dependencies": {
41
- "@trap_stevo/filetide": "^0.0.70",
42
- "@trap_stevo/filetide-client": "^0.0.39",
43
- "@trap_stevo/iotide": "^0.0.44"
42
+ "@trap_stevo/filetide": "^0.0.79",
43
+ "@trap_stevo/filetide-client": "^0.0.48",
44
+ "@trap_stevo/iotide": "^0.0.46"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@babel/cli": "^7.24.8",