cdsclient-lib 0.0.2 → 0.0.4

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.
Files changed (62) hide show
  1. package/README.md +19 -20
  2. package/dist/lib/cjs/client.d.ts +304 -0
  3. package/dist/lib/cjs/client.js +916 -0
  4. package/dist/lib/cjs/client.js.map +1 -0
  5. package/dist/lib/cjs/enums.d.ts +23 -0
  6. package/dist/lib/cjs/enums.js +28 -0
  7. package/dist/lib/cjs/enums.js.map +1 -0
  8. package/dist/lib/cjs/errors.d.ts +20 -0
  9. package/dist/lib/cjs/errors.js +25 -0
  10. package/dist/lib/cjs/errors.js.map +1 -0
  11. package/dist/lib/cjs/event/channelstates.d.ts +24 -0
  12. package/dist/lib/cjs/event/channelstates.js +28 -0
  13. package/dist/lib/cjs/event/channelstates.js.map +1 -0
  14. package/dist/lib/cjs/event/eventprovider.d.ts +40 -0
  15. package/dist/lib/cjs/event/eventprovider.js +62 -0
  16. package/dist/lib/cjs/event/eventprovider.js.map +1 -0
  17. package/dist/lib/cjs/event/events.d.ts +32 -0
  18. package/dist/lib/cjs/event/events.js +38 -0
  19. package/dist/lib/cjs/event/events.js.map +1 -0
  20. package/dist/lib/cjs/index.d.ts +23 -0
  21. package/dist/lib/cjs/index.js +68 -0
  22. package/dist/lib/cjs/index.js.map +1 -0
  23. package/dist/lib/cjs/interfaces.d.ts +162 -0
  24. package/dist/lib/cjs/interfaces.js +20 -0
  25. package/dist/lib/cjs/interfaces.js.map +1 -0
  26. package/dist/lib/cjs/models.d.ts +198 -0
  27. package/dist/lib/cjs/models.js +234 -0
  28. package/dist/lib/cjs/models.js.map +1 -0
  29. package/dist/lib/cjs/wsclient.d.ts +99 -0
  30. package/dist/lib/cjs/wsclient.js +330 -0
  31. package/dist/lib/cjs/wsclient.js.map +1 -0
  32. package/dist/lib/es6/client.d.ts +304 -0
  33. package/dist/lib/es6/client.js +876 -0
  34. package/dist/lib/es6/client.js.map +1 -0
  35. package/dist/lib/es6/enums.d.ts +23 -0
  36. package/dist/lib/es6/enums.js +25 -0
  37. package/dist/lib/es6/enums.js.map +1 -0
  38. package/dist/lib/es6/errors.d.ts +20 -0
  39. package/dist/lib/es6/errors.js +25 -0
  40. package/dist/lib/es6/errors.js.map +1 -0
  41. package/dist/lib/es6/event/channelstates.d.ts +24 -0
  42. package/dist/lib/es6/event/channelstates.js +25 -0
  43. package/dist/lib/es6/event/channelstates.js.map +1 -0
  44. package/dist/lib/es6/event/eventprovider.d.ts +40 -0
  45. package/dist/lib/es6/event/eventprovider.js +57 -0
  46. package/dist/lib/es6/event/eventprovider.js.map +1 -0
  47. package/dist/lib/es6/event/events.d.ts +32 -0
  48. package/dist/lib/es6/event/events.js +35 -0
  49. package/dist/lib/es6/event/events.js.map +1 -0
  50. package/dist/lib/es6/index.d.ts +23 -0
  51. package/dist/lib/es6/index.js +23 -0
  52. package/dist/lib/es6/index.js.map +1 -0
  53. package/dist/lib/es6/interfaces.d.ts +162 -0
  54. package/dist/lib/es6/interfaces.js +19 -0
  55. package/dist/lib/es6/interfaces.js.map +1 -0
  56. package/dist/lib/es6/models.d.ts +198 -0
  57. package/dist/lib/es6/models.js +201 -0
  58. package/dist/lib/es6/models.js.map +1 -0
  59. package/dist/lib/es6/wsclient.d.ts +99 -0
  60. package/dist/lib/es6/wsclient.js +292 -0
  61. package/dist/lib/es6/wsclient.js.map +1 -0
  62. package/package.json +28 -14
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,MAAM,EAAU,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAiB,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,C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AAM,GAAG;gBACX,OAAO,EAAE;oBACL,cAAc,EAAE,mCAAmC;iBACtD;aACJ,CAAA;YAED,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;YAE/C,OAAO,CAAC,IAAI,CAAC,CAAC,MAAU,EAAE,EAAE;gBACxB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;gBACrB,OAAO,CAAC,MAAM,CAAC,CAAA;YACnB,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,GAAO,EAAE,EAAE;gBACf,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;gBAC7B,MAAM,CAAC,GAAG,CAAC,CAAA;YACf,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAIM,OAAO;QAEV,gBAAgB;IACpB,CAAC;;AAvoCc,wCAAmB,GAAU,CAAC,AAAX,CAAY"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export declare enum NoticeType {
19
+ INFO = 1,//blue
20
+ SUCCESS = 2,//green
21
+ WARN = 3,//orange
22
+ ERROR = 4
23
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export var NoticeType;
19
+ (function (NoticeType) {
20
+ NoticeType[NoticeType["INFO"] = 1] = "INFO";
21
+ NoticeType[NoticeType["SUCCESS"] = 2] = "SUCCESS";
22
+ NoticeType[NoticeType["WARN"] = 3] = "WARN";
23
+ NoticeType[NoticeType["ERROR"] = 4] = "ERROR"; //red
24
+ })(NoticeType || (NoticeType = {}));
25
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,2CAAQ,CAAA;IACR,iDAAW,CAAA;IACX,2CAAQ,CAAA;IACR,6CAAS,CAAA,CAAC,KAAK;AACnB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ declare class CloudisenseClientError extends Error {
19
+ constructor(msg: string);
20
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
4
+ *
5
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
6
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
7
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * You may not use this file except in compliance with the License.
11
+ * A copy of the License is available at:
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * This code may include third-party open-source libraries subject to their respective licenses.
15
+ * Such licenses are referenced in the source files or accompanying documentation.
16
+ *
17
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
18
+ */
19
+ class CloudisenseClientError extends Error {
20
+ constructor(msg) {
21
+ super(msg);
22
+ Object.setPrototypeOf(this, CloudisenseClientError.prototype);
23
+ }
24
+ }
25
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,MAAM,sBAAuB,SAAQ,KAAK;IACtC,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;CACJ"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export declare const STATE_CHANNEL_CONNECTED = "ChannelConnected";
19
+ export declare const STATE_CHANNEL_DISCONNECTED = "ChannelDisconnected";
20
+ export declare const STATE_CHANNEL_CONNECTION_LOST = "ChannelLost";
21
+ export declare const STATE_CHANNEL_CONNECTIING = "ChannelConnecting";
22
+ export declare const STATE_CHANNEL_DATA = "ChannelData";
23
+ export declare const STATE_CHANNEL_ERROR = "ChannelError";
24
+ export declare const STATE_CHANNEL_DATA_ERROR = "ChannelDataError";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export const STATE_CHANNEL_CONNECTED = "ChannelConnected";
19
+ export const STATE_CHANNEL_DISCONNECTED = "ChannelDisconnected";
20
+ export const STATE_CHANNEL_CONNECTION_LOST = "ChannelLost";
21
+ export const STATE_CHANNEL_CONNECTIING = "ChannelConnecting";
22
+ export const STATE_CHANNEL_DATA = "ChannelData";
23
+ export const STATE_CHANNEL_ERROR = "ChannelError";
24
+ export const STATE_CHANNEL_DATA_ERROR = "ChannelDataError";
25
+ //# sourceMappingURL=channelstates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channelstates.js","sourceRoot":"","sources":["../../../../src/event/channelstates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAC1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAChE,MAAM,CAAC,MAAM,6BAA6B,GAAG,aAAa,CAAC;AAC3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;AAC7D,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAClD,MAAM,CAAC,MAAM,wBAAwB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ import { IClientChannel, IServiceChannel } from "../interfaces";
19
+ import { SimpleEventDispatcher, ISimpleEvent } from "strongly-typed-events";
20
+ import { CloudisenseClientDataNotificationEvent, CloudisenseClientSimpleNotificationEvent, CloudisenseClientUIDataEvent } from "../models";
21
+ export declare class ChannelEventProvider implements IServiceChannel {
22
+ _onChannelData: SimpleEventDispatcher<number>;
23
+ _onChannelState: SimpleEventDispatcher<unknown>;
24
+ constructor();
25
+ get onChannelData(): ISimpleEvent<number>;
26
+ get onChannelState(): ISimpleEvent<unknown>;
27
+ }
28
+ export declare class ClientEventProvider implements IClientChannel {
29
+ _onUIEvent: SimpleEventDispatcher<CloudisenseClientUIDataEvent>;
30
+ _onTextNotificationEvent: SimpleEventDispatcher<CloudisenseClientSimpleNotificationEvent>;
31
+ _onTextDataNotificationEvent: SimpleEventDispatcher<CloudisenseClientDataNotificationEvent>;
32
+ _onDataEvent: SimpleEventDispatcher<any>;
33
+ _onClientStateUpdate: SimpleEventDispatcher<any>;
34
+ constructor();
35
+ get onTextNotification(): ISimpleEvent<CloudisenseClientSimpleNotificationEvent>;
36
+ get onUIEvent(): ISimpleEvent<CloudisenseClientUIDataEvent>;
37
+ get onTextDataNotification(): ISimpleEvent<CloudisenseClientDataNotificationEvent>;
38
+ get onServerData(): ISimpleEvent<any>;
39
+ get onClientStateUpdate(): ISimpleEvent<any>;
40
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ import { SimpleEventDispatcher } from "strongly-typed-events";
19
+ export class ChannelEventProvider {
20
+ constructor() {
21
+ /* Events */
22
+ this._onChannelData = new SimpleEventDispatcher();
23
+ this._onChannelState = new SimpleEventDispatcher();
24
+ }
25
+ get onChannelData() {
26
+ return this._onChannelData.asEvent();
27
+ }
28
+ get onChannelState() {
29
+ return this._onChannelState.asEvent();
30
+ }
31
+ }
32
+ export class ClientEventProvider {
33
+ constructor() {
34
+ /* Events */
35
+ this._onUIEvent = new SimpleEventDispatcher();
36
+ this._onTextNotificationEvent = new SimpleEventDispatcher();
37
+ this._onTextDataNotificationEvent = new SimpleEventDispatcher();
38
+ this._onDataEvent = new SimpleEventDispatcher();
39
+ this._onClientStateUpdate = new SimpleEventDispatcher();
40
+ }
41
+ get onTextNotification() {
42
+ return this._onTextNotificationEvent.asEvent();
43
+ }
44
+ get onUIEvent() {
45
+ return this._onUIEvent.asEvent();
46
+ }
47
+ get onTextDataNotification() {
48
+ return this._onTextDataNotificationEvent.asEvent();
49
+ }
50
+ get onServerData() {
51
+ return this._onDataEvent.asEvent();
52
+ }
53
+ get onClientStateUpdate() {
54
+ return this._onClientStateUpdate.asEvent();
55
+ }
56
+ }
57
+ //# sourceMappingURL=eventprovider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventprovider.js","sourceRoot":"","sources":["../../../../src/event/eventprovider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAoB,qBAAqB,EAAiC,MAAM,uBAAuB,CAAC;AAI/G,MAAM,OAAO,oBAAoB;IAOzB;QALA,YAAY;QACZ,mBAAc,GAAG,IAAI,qBAAqB,EAAU,CAAC;QACrD,oBAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAK9C,CAAC;IAGD,IAAW,aAAa;QACpB,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;IACzC,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;IAC1C,CAAC;CAER;AAID,MAAM,OAAO,mBAAmB;IAS5B;QARA,YAAY;QACZ,eAAU,GAAG,IAAI,qBAAqB,EAAgC,CAAC;QACvE,6BAAwB,GAAG,IAAI,qBAAqB,EAA4C,CAAC;QACjG,iCAA4B,GAAG,IAAI,qBAAqB,EAA0C,CAAC;QACnG,iBAAY,GAAG,IAAI,qBAAqB,EAAO,CAAC;QAChD,yBAAoB,GAAG,IAAI,qBAAqB,EAAO,CAAC;IAKxD,CAAC;IAGD,IAAW,kBAAkB;QACzB,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC;IACnD,CAAC;IAED,IAAW,SAAS;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC;IAED,IAAW,sBAAsB;QAC7B,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,CAAC;IACvD,CAAC;IAED,IAAW,YAAY;QACnB,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;IACvC,CAAC;IAED,IAAW,mBAAmB;QAC1B,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAA;IAC9C,CAAC;CAEJ"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export declare const SERVER_PING_EVENT = "ping_generated";
19
+ export declare const TEXT_NOTIFICATION_EVENT = "text_notification";
20
+ export declare const TEXT_DATA_NOTIFICATION_EVENT = "text_data_notification";
21
+ export declare const EVENT_UI_UPDATE = "ui_update";
22
+ export declare const DATA_EVENT = "data_generated";
23
+ export declare const ERROR_EVENT = "error_generated";
24
+ export declare const TOPIC_LOG_ACTIONS = "/logging/actions";
25
+ export declare const TOPIC_LOG_MONITORING = "/logging";
26
+ export declare const TOPIC_STATS_MONITORING = "/stats";
27
+ export declare const TOPIC_UI_UPDATES = "/ui/updates";
28
+ export declare const TOPIC_UI_INITIALIZATION = "/ui/guide";
29
+ export declare const TOPIC_PING = "/ping";
30
+ export declare const TOPIC_NOTIFICATION = "/notifications";
31
+ export declare const TOPIC_SCRIPT_MONITORING = "/script";
32
+ export declare const TOPIC_DELEGATE_MONITORING = "/targetdelegate";
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ // custom event constants
19
+ export const SERVER_PING_EVENT = "ping_generated";
20
+ export const TEXT_NOTIFICATION_EVENT = "text_notification";
21
+ export const TEXT_DATA_NOTIFICATION_EVENT = "text_data_notification";
22
+ export const EVENT_UI_UPDATE = "ui_update";
23
+ export const DATA_EVENT = "data_generated";
24
+ export const ERROR_EVENT = "error_generated";
25
+ // Event topics
26
+ export const TOPIC_LOG_ACTIONS = "/logging/actions";
27
+ export const TOPIC_LOG_MONITORING = "/logging";
28
+ export const TOPIC_STATS_MONITORING = "/stats";
29
+ export const TOPIC_UI_UPDATES = "/ui/updates";
30
+ export const TOPIC_UI_INITIALIZATION = "/ui/guide";
31
+ export const TOPIC_PING = "/ping";
32
+ export const TOPIC_NOTIFICATION = "/notifications";
33
+ export const TOPIC_SCRIPT_MONITORING = "/script";
34
+ export const TOPIC_DELEGATE_MONITORING = "/targetdelegate";
35
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/event/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,yBAAyB;AACzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAElD,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAE3D,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAA;AAE1C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAG7C,eAAe;AAEf,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAAA;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAA;AAE9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAA;AAE9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAA;AAE7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAA;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAA;AAEjC,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAElD,MAAM,CAAC,MAAM,uBAAuB,GAAG,SAAS,CAAA;AAEhD,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAA"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export { CloudisenseApiClient } from "./client";
19
+ export type { OSStats, CPUStats, MemoryStats, DiskStats, NetworkStats, SystemStats, SimpleNotificationObject, SimpleDataNotificationObject, DataNotificationObject, IRPC, ISocketServiceObject, IClientChannel, IServiceClient, IServiceChannel, IServiceSocket, IClientConfig } from "./interfaces";
20
+ export { RequestRecord, WSClient } from "./wsclient";
21
+ export { AuthData, TokenInfo, ClientStateType, Stats, LogInfo, ErrorData, LogData, ScriptData, SimpleNotificationData, DatatNotificationData, ClientState, Credentials, TopicData, CloudisenseServiceEvent, EventType, CloudisenseClientEvent, CloudisenseClientDataEvent, CloudisenseClientNotificationEvent, CloudisenseClientErrorEvent, CloudisenseClientSimpleNotificationEvent, CloudisenseClientDataNotificationEvent, CloudisenseClientLogDataEvent, CloudisenseClientScriptDataEvent, CloudisenseClientStatsDataEvent } from "./models";
22
+ export * from './event/events';
23
+ export { NoticeType } from './enums';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export { CloudisenseApiClient } from "./client";
19
+ export { RequestRecord, WSClient } from "./wsclient";
20
+ export { AuthData, TokenInfo, ClientStateType, Stats, LogInfo, ErrorData, LogData, ScriptData, SimpleNotificationData, DatatNotificationData, ClientState, Credentials, TopicData, CloudisenseServiceEvent, EventType, CloudisenseClientEvent, CloudisenseClientDataEvent, CloudisenseClientNotificationEvent, CloudisenseClientErrorEvent, CloudisenseClientSimpleNotificationEvent, CloudisenseClientDataNotificationEvent, CloudisenseClientLogDataEvent, CloudisenseClientScriptDataEvent, CloudisenseClientStatsDataEvent } from "./models";
21
+ export * from './event/events';
22
+ export { NoticeType } from './enums';
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,oBAAoB,EAAC,MAAM,UAAU,CAAA;AAE7C,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAA;AAClD,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,uBAAuB,EAAE,SAAS,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,kCAAkC,EAAE,2BAA2B,EAAE,wCAAwC,EAAE,sCAAsC,EAAE,6BAA6B,EAAE,gCAAgC,EAAE,+BAA+B,EAAC,MAAM,UAAU,CAAA;AAC9gB,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA"}
@@ -0,0 +1,162 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ import { ISimpleEvent } from "strongly-typed-events";
19
+ import { AuthData, ClientState, LogInfo, RuleInfo } from "./models";
20
+ export interface OSStats {
21
+ arch: string;
22
+ name: string;
23
+ type: string;
24
+ flavor: string;
25
+ version: string;
26
+ boot_time: number;
27
+ uptime: number;
28
+ system_datetime: string;
29
+ timezone: string;
30
+ }
31
+ export interface CPUStats {
32
+ frequency: string;
33
+ count: number;
34
+ vendor: string;
35
+ model: string;
36
+ percent: string;
37
+ }
38
+ export interface MemoryStats {
39
+ total: number;
40
+ used: number;
41
+ free: number;
42
+ swap_total: number;
43
+ swap_used: number;
44
+ swap_free: number;
45
+ percent: string;
46
+ }
47
+ export interface DiskStats {
48
+ mountpoint: string;
49
+ fstype: string;
50
+ total: string;
51
+ used: string;
52
+ free: string;
53
+ percent: string;
54
+ }
55
+ export interface NetworkStats {
56
+ id: string;
57
+ bytes_sent: number;
58
+ bytes_recv: number;
59
+ packets_sent: number;
60
+ packets_recv: number;
61
+ errin: number;
62
+ errout: number;
63
+ dropin: number;
64
+ dropout: number;
65
+ }
66
+ export interface SystemStats {
67
+ os: OSStats;
68
+ cpu: CPUStats;
69
+ memory: MemoryStats;
70
+ disk: DiskStats;
71
+ network: NetworkStats;
72
+ }
73
+ export interface SimpleNotificationObject {
74
+ message: string;
75
+ type: number;
76
+ timestamp: number;
77
+ }
78
+ export interface SimpleDataNotificationObject {
79
+ data: object;
80
+ timestamp: number;
81
+ }
82
+ export interface DataNotificationObject {
83
+ message: string;
84
+ type: number;
85
+ data: object;
86
+ timestamp: number;
87
+ }
88
+ export interface IRPC {
89
+ requestid: string;
90
+ type: string;
91
+ intent: string;
92
+ params?: any;
93
+ timestamp?: number;
94
+ }
95
+ export interface ISocketServiceObject {
96
+ host: string;
97
+ port: number;
98
+ authtoken: string;
99
+ queryparams?: string;
100
+ }
101
+ export interface IClientChannel {
102
+ onUIEvent: ISimpleEvent<any>;
103
+ onTextNotification: ISimpleEvent<any>;
104
+ onTextDataNotification: ISimpleEvent<any>;
105
+ onServerData: ISimpleEvent<any>;
106
+ onClientStateUpdate: ISimpleEvent<ClientState>;
107
+ }
108
+ export interface IServiceClient extends IClientChannel {
109
+ get_accessible_file_system_paths(): Promise<any>;
110
+ delete_file(path: string): Promise<any>;
111
+ delete_folder(root: string, dirname: string, deleteNonEmpty: boolean): Promise<any>;
112
+ download_file(path: string, mode: string): Promise<any>;
113
+ list_path_content(root: string, path: string): Promise<any>;
114
+ read_file(path: string): Promise<string>;
115
+ write_file(path: string, content: string): Promise<void>;
116
+ get_logs(): Promise<Array<LogInfo>>;
117
+ list_rules(head: boolean): Promise<Array<RuleInfo>>;
118
+ reload_rules(): Promise<any>;
119
+ reload_rule(id: string): Promise<any>;
120
+ get_rule(id: string): Promise<any>;
121
+ generate_sample_rule(): Promise<any>;
122
+ write_rule(data: string, update: boolean): Promise<any>;
123
+ delete_rule(id: string): Promise<string>;
124
+ subscribe_datachannel(topic: string): Promise<any>;
125
+ subscribe_stats(): Promise<any>;
126
+ subscribe_ui_updates(): Promise<any>;
127
+ unsubscribe_stats(): Promise<any>;
128
+ subscribe_log(topic: string): Promise<any>;
129
+ unsubscribe_log(topic: string): Promise<void>;
130
+ download_log(logkey: string, mode: string): Promise<string>;
131
+ get_system_services(): Promise<string[]>;
132
+ start_service(name: string): Promise<void>;
133
+ stop_service(name: string): Promise<void>;
134
+ restart_service(name: string): Promise<void>;
135
+ execute_arbitrary_action(intent: string, params: any): Promise<void>;
136
+ connectWithAuthData(authData: AuthData): Promise<any>;
137
+ }
138
+ export interface IServiceChannel {
139
+ onChannelData: ISimpleEvent<any>;
140
+ onChannelState: ISimpleEvent<any>;
141
+ }
142
+ export interface IServiceSocket extends IServiceChannel {
143
+ host: string;
144
+ port: number;
145
+ autoconnect?: boolean;
146
+ queryparams?: string;
147
+ getHost: () => string;
148
+ getPort: () => number;
149
+ connectService: () => Promise<any>;
150
+ disconnectService: () => void;
151
+ is_connected: () => boolean;
152
+ doRPC: (methodName: string, params?: object) => Promise<any>;
153
+ }
154
+ export interface IClientConfig {
155
+ host: string;
156
+ port: number;
157
+ username?: string;
158
+ password?: string;
159
+ authdata?: AuthData;
160
+ autoconnect?: boolean;
161
+ reconnectOnFailure?: boolean;
162
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright © 2024 Rajdeep Rath. All Rights Reserved.
3
+ *
4
+ * This codebase is open-source and provided for use exclusively with the Cloudisense platform,
5
+ * as governed by its End-User License Agreement (EULA). Unauthorized use, reproduction,
6
+ * or distribution of this code outside of the Cloudisense ecosystem is strictly prohibited.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * You may not use this file except in compliance with the License.
10
+ * A copy of the License is available at:
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * This code may include third-party open-source libraries subject to their respective licenses.
14
+ * Such licenses are referenced in the source files or accompanying documentation.
15
+ *
16
+ * For questions or permissions beyond the scope of this notice, please contact Rajdeep Rath.
17
+ */
18
+ export {};
19
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}