lavva.exalushome 1.0.0

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 (97) hide show
  1. package/build/exalushome-library-bundle.js +2 -0
  2. package/build/exalushome-library-bundle.js.map +1 -0
  3. package/build/js/Api.d.ts +15 -0
  4. package/build/js/Api.js +35 -0
  5. package/build/js/Api.js.map +1 -0
  6. package/build/js/CancelationTokenSource.d.ts +8 -0
  7. package/build/js/CancelationTokenSource.js +25 -0
  8. package/build/js/CancelationTokenSource.js.map +1 -0
  9. package/build/js/DataFrame.d.ts +41 -0
  10. package/build/js/DataFrame.js +38 -0
  11. package/build/js/DataFrame.js.map +1 -0
  12. package/build/js/DependencyContainer.d.ts +19 -0
  13. package/build/js/DependencyContainer.js +83 -0
  14. package/build/js/DependencyContainer.js.map +1 -0
  15. package/build/js/Event.d.ts +19 -0
  16. package/build/js/Event.js +28 -0
  17. package/build/js/Event.js.map +1 -0
  18. package/build/js/ExalusConnectionService.d.ts +35 -0
  19. package/build/js/ExalusConnectionService.js +316 -0
  20. package/build/js/ExalusConnectionService.js.map +1 -0
  21. package/build/js/Helpers.d.ts +3 -0
  22. package/build/js/Helpers.js +23 -0
  23. package/build/js/Helpers.js.map +1 -0
  24. package/build/js/IDIService.d.ts +3 -0
  25. package/build/js/IDIService.js +2 -0
  26. package/build/js/IDIService.js.map +1 -0
  27. package/build/js/IExalusConnector.d.ts +44 -0
  28. package/build/js/IExalusConnector.js +33 -0
  29. package/build/js/IExalusConnector.js.map +1 -0
  30. package/build/js/Services/Devices/Device.d.ts +33 -0
  31. package/build/js/Services/Devices/Device.js +130 -0
  32. package/build/js/Services/Devices/Device.js.map +1 -0
  33. package/build/js/Services/Devices/DevicesService.d.ts +23 -0
  34. package/build/js/Services/Devices/DevicesService.js +47 -0
  35. package/build/js/Services/Devices/DevicesService.js.map +1 -0
  36. package/build/js/Services/Devices/IDevice.d.ts +53 -0
  37. package/build/js/Services/Devices/IDevice.js +33 -0
  38. package/build/js/Services/Devices/IDevice.js.map +1 -0
  39. package/build/js/Services/Devices/IDeviceChannel.d.ts +28 -0
  40. package/build/js/Services/Devices/IDeviceChannel.js +9 -0
  41. package/build/js/Services/Devices/IDeviceChannel.js.map +1 -0
  42. package/build/js/Services/Devices/IDeviceState.d.ts +3 -0
  43. package/build/js/Services/Devices/IDeviceState.js +2 -0
  44. package/build/js/Services/Devices/IDeviceState.js.map +1 -0
  45. package/build/js/Services/Devices/IDeviceTask.d.ts +8 -0
  46. package/build/js/Services/Devices/IDeviceTask.js +2 -0
  47. package/build/js/Services/Devices/IDeviceTask.js.map +1 -0
  48. package/build/js/Services/Devices/IDevicesService.d.ts +16 -0
  49. package/build/js/Services/Devices/IDevicesService.js +2 -0
  50. package/build/js/Services/Devices/IDevicesService.js.map +1 -0
  51. package/build/js/Services/Devices/TaskExecutionResult.d.ts +8 -0
  52. package/build/js/Services/Devices/TaskExecutionResult.js +10 -0
  53. package/build/js/Services/Devices/TaskExecutionResult.js.map +1 -0
  54. package/build/js/Services/FieldChangeResult.d.ts +17 -0
  55. package/build/js/Services/FieldChangeResult.js +39 -0
  56. package/build/js/Services/FieldChangeResult.js.map +1 -0
  57. package/build/js/Services/ILocalStorageService.d.ts +15 -0
  58. package/build/js/Services/ILocalStorageService.js +2 -0
  59. package/build/js/Services/ILocalStorageService.js.map +1 -0
  60. package/build/js/Services/LocalStorageService.d.ts +9 -0
  61. package/build/js/Services/LocalStorageService.js +33 -0
  62. package/build/js/Services/LocalStorageService.js.map +1 -0
  63. package/build/js/Services/Logging/ILoggerService.d.ts +29 -0
  64. package/build/js/Services/Logging/ILoggerService.js +8 -0
  65. package/build/js/Services/Logging/ILoggerService.js.map +1 -0
  66. package/build/js/Services/Logging/LoggerService.d.ts +21 -0
  67. package/build/js/Services/Logging/LoggerService.js +88 -0
  68. package/build/js/Services/Logging/LoggerService.js.map +1 -0
  69. package/build/js/Services/Session/ISessionService.d.ts +10 -0
  70. package/build/js/Services/Session/ISessionService.js +2 -0
  71. package/build/js/Services/Session/ISessionService.js.map +1 -0
  72. package/build/js/Services/Session/SessionService.d.ts +15 -0
  73. package/build/js/Services/Session/SessionService.js +35 -0
  74. package/build/js/Services/Session/SessionService.js.map +1 -0
  75. package/build/js/Services/Users/IUser.d.ts +33 -0
  76. package/build/js/Services/Users/IUser.js +22 -0
  77. package/build/js/Services/Users/IUser.js.map +1 -0
  78. package/build/js/Services/Users/IUsersService.d.ts +9 -0
  79. package/build/js/Services/Users/IUsersService.js +2 -0
  80. package/build/js/Services/Users/IUsersService.js.map +1 -0
  81. package/build/js/Services/Users/User.d.ts +42 -0
  82. package/build/js/Services/Users/User.js +151 -0
  83. package/build/js/Services/Users/User.js.map +1 -0
  84. package/build/js/Services/Users/UsersService.d.ts +10 -0
  85. package/build/js/Services/Users/UsersService.js +36 -0
  86. package/build/js/Services/Users/UsersService.js.map +1 -0
  87. package/build/js/Services/WebApi/IWebApiCacheService.d.ts +8 -0
  88. package/build/js/Services/WebApi/IWebApiCacheService.js +2 -0
  89. package/build/js/Services/WebApi/IWebApiCacheService.js.map +1 -0
  90. package/build/js/Services/WebApi/WebApiCacheService.d.ts +13 -0
  91. package/build/js/Services/WebApi/WebApiCacheService.js +39 -0
  92. package/build/js/Services/WebApi/WebApiCacheService.js.map +1 -0
  93. package/build/js/TypedEvent.d.ts +19 -0
  94. package/build/js/TypedEvent.js +28 -0
  95. package/build/js/TypedEvent.js.map +1 -0
  96. package/build/tsconfig.tsbuildinfo +1 -0
  97. package/package.json +37 -0
@@ -0,0 +1,47 @@
1
+ import { nameof } from 'ts-simple-nameof';
2
+ import { TypedEvent } from '../../TypedEvent';
3
+ var DevicesService = (function () {
4
+ function DevicesService() {
5
+ this._serviceName = nameof(DevicesService);
6
+ this._onDeviceFoundEvent = new TypedEvent();
7
+ this._onDeviceRegisteredEvent = new TypedEvent();
8
+ this._onDeviceRemovedEvent = new TypedEvent();
9
+ this._onDeviceStateChangedEvent = new TypedEvent();
10
+ }
11
+ DevicesService.prototype.GetServiceName = function () {
12
+ return this._serviceName;
13
+ };
14
+ DevicesService.prototype.SyncDevicesStatesAsync = function () {
15
+ throw new Error('Method not implemented.');
16
+ };
17
+ DevicesService.prototype.OnDeviceStateChangedEvent = function () {
18
+ return this._onDeviceStateChangedEvent;
19
+ };
20
+ DevicesService.prototype.OnDeviceRegisteredEvent = function () {
21
+ return this._onDeviceRegisteredEvent;
22
+ };
23
+ DevicesService.prototype.OnDeviceRemovedEvent = function () {
24
+ return this._onDeviceRemovedEvent;
25
+ };
26
+ DevicesService.prototype.OnDeviceFoundEvent = function () {
27
+ return this._onDeviceFoundEvent;
28
+ };
29
+ DevicesService.prototype.GetDevicesAsync = function () {
30
+ throw new Error('Method not implemented.');
31
+ };
32
+ DevicesService.prototype.GetDevice = function (guid) {
33
+ throw new Error('Method not implemented.');
34
+ };
35
+ DevicesService.prototype.FindDevicesAsync = function (device) {
36
+ throw new Error('Method not implemented.');
37
+ };
38
+ DevicesService.prototype.RegisterDeviceAsync = function (device) {
39
+ throw new Error('Method not implemented.');
40
+ };
41
+ DevicesService.prototype.RemoveDeviceAsync = function (device) {
42
+ throw new Error('Method not implemented.');
43
+ };
44
+ return DevicesService;
45
+ }());
46
+ export { DevicesService };
47
+ //# sourceMappingURL=DevicesService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevicesService.js","sourceRoot":"","sources":["../../../../src/Services/Devices/DevicesService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAe,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAK3D;IAAA;QACY,iBAAY,GAAW,MAAM,CAAC,cAAc,CAAC,CAAC;QAC9C,wBAAmB,GAAyB,IAAI,UAAU,EAAW,CAAC;QACtE,6BAAwB,GAAyB,IAAI,UAAU,EAAW,CAAC;QAC3E,0BAAqB,GAAyB,IAAI,UAAU,EAAW,CAAC;QACxE,+BAA0B,GAAwD,IAAI,UAAU,EAA0C,CAAC;IA4CvJ,CAAC;IA1CG,uCAAc,GAAd;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,+CAAsB,GAAtB;QACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACD,kDAAyB,GAAzB;QACI,OAAO,IAAI,CAAC,0BAA0B,CAAC;IAC3C,CAAC;IAED,gDAAuB,GAAvB;QACI,OAAO,IAAI,CAAC,wBAAwB,CAAC;IACzC,CAAC;IAED,6CAAoB,GAApB;QACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;IACtC,CAAC;IAED,2CAAkB,GAAlB;QACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;IAED,wCAAe,GAAf;QACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED,kCAAS,GAAT,UAAU,IAAY;QAClB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED,yCAAgB,GAAhB,UAAiB,MAAe;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED,4CAAmB,GAAnB,UAAoB,MAAe;QAC/B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED,0CAAiB,GAAjB,UAAkB,MAAe;QAC7B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACL,qBAAC;AAAD,CAAC,AAjDD,IAiDC"}
@@ -0,0 +1,53 @@
1
+ import { IDeviceTask } from './IDeviceTask';
2
+ import { DeviceTaskExecutionResult } from './TaskExecutionResult';
3
+ import { IDeviceChannel } from './IDeviceChannel';
4
+ import { FieldChangeResult } from '../FieldChangeResult';
5
+ import { ITypedEvent } from '../../TypedEvent';
6
+ import { IDeviceState } from './IDeviceState';
7
+ export interface IDevice {
8
+ OnDeviceStateChangedEvent(): ITypedEvent<IDeviceState>;
9
+ get Guid(): string;
10
+ get Name(): string;
11
+ get SerialNumber(): string;
12
+ get ModelGuid(): string;
13
+ get ManufacturerGuid(): string;
14
+ get IsVirtual(): boolean;
15
+ get IsEnabled(): boolean;
16
+ get DeviceState(): DeviceState;
17
+ get DeviceType(): DeviceType;
18
+ get CommunicationWay(): CommunicationWay;
19
+ get AvailableTasks(): string[];
20
+ get AvailableTaskTypes(): DeviceTaskType[];
21
+ get AvailableResponseTypes(): DeviceResponseType[];
22
+ get ChannelsAmount(): number;
23
+ get Channels(): IDeviceChannel[];
24
+ ChangeDeviceNameAsync(name: string): Promise<FieldChangeResult>;
25
+ ExecuteTaskAsync(task: IDeviceTask, channel: number): Promise<DeviceTaskExecutionResult>;
26
+ }
27
+ export declare enum DeviceTaskType {
28
+ Unknown = ""
29
+ }
30
+ export declare enum DeviceResponseType {
31
+ Unknown = ""
32
+ }
33
+ export declare enum DeviceState {
34
+ NotResponding = 0,
35
+ Working = 1,
36
+ Broken = 2,
37
+ FirmareUpgradeMode = 3
38
+ }
39
+ export declare enum CommunicationWay {
40
+ TwoWay = 1,
41
+ OneWay = 2,
42
+ ConditionalTwoWay = 3
43
+ }
44
+ export declare enum DeviceType {
45
+ Unknown = -1,
46
+ Multipurpose = 0,
47
+ Controller = 1,
48
+ Driver = 2,
49
+ Receiver = 3,
50
+ Remote = 4,
51
+ Sensor = 5,
52
+ Scene = 6
53
+ }
@@ -0,0 +1,33 @@
1
+ export var DeviceTaskType;
2
+ (function (DeviceTaskType) {
3
+ DeviceTaskType["Unknown"] = "";
4
+ })(DeviceTaskType || (DeviceTaskType = {}));
5
+ export var DeviceResponseType;
6
+ (function (DeviceResponseType) {
7
+ DeviceResponseType["Unknown"] = "";
8
+ })(DeviceResponseType || (DeviceResponseType = {}));
9
+ export var DeviceState;
10
+ (function (DeviceState) {
11
+ DeviceState[DeviceState["NotResponding"] = 0] = "NotResponding";
12
+ DeviceState[DeviceState["Working"] = 1] = "Working";
13
+ DeviceState[DeviceState["Broken"] = 2] = "Broken";
14
+ DeviceState[DeviceState["FirmareUpgradeMode"] = 3] = "FirmareUpgradeMode";
15
+ })(DeviceState || (DeviceState = {}));
16
+ export var CommunicationWay;
17
+ (function (CommunicationWay) {
18
+ CommunicationWay[CommunicationWay["TwoWay"] = 1] = "TwoWay";
19
+ CommunicationWay[CommunicationWay["OneWay"] = 2] = "OneWay";
20
+ CommunicationWay[CommunicationWay["ConditionalTwoWay"] = 3] = "ConditionalTwoWay";
21
+ })(CommunicationWay || (CommunicationWay = {}));
22
+ export var DeviceType;
23
+ (function (DeviceType) {
24
+ DeviceType[DeviceType["Unknown"] = -1] = "Unknown";
25
+ DeviceType[DeviceType["Multipurpose"] = 0] = "Multipurpose";
26
+ DeviceType[DeviceType["Controller"] = 1] = "Controller";
27
+ DeviceType[DeviceType["Driver"] = 2] = "Driver";
28
+ DeviceType[DeviceType["Receiver"] = 3] = "Receiver";
29
+ DeviceType[DeviceType["Remote"] = 4] = "Remote";
30
+ DeviceType[DeviceType["Sensor"] = 5] = "Sensor";
31
+ DeviceType[DeviceType["Scene"] = 6] = "Scene";
32
+ })(DeviceType || (DeviceType = {}));
33
+ //# sourceMappingURL=IDevice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDevice.js","sourceRoot":"","sources":["../../../../src/Services/Devices/IDevice.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAN,IAAY,cAEX;AAFD,WAAY,cAAc;IACtB,8BAAY,CAAA;AAChB,CAAC,EAFW,cAAc,KAAd,cAAc,QAEzB;AAED,MAAM,CAAN,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC1B,kCAAY,CAAA;AAChB,CAAC,EAFW,kBAAkB,KAAlB,kBAAkB,QAE7B;AAED,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,+DAAiB,CAAA;IACjB,mDAAW,CAAA;IACX,iDAAU,CAAA;IACV,yEAAsB,CAAA;AAC1B,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAED,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,2DAAU,CAAA;IACV,2DAAU,CAAA;IACV,iFAAqB,CAAA;AACzB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAED,MAAM,CAAN,IAAY,UASX;AATD,WAAY,UAAU;IAClB,kDAAY,CAAA;IACZ,2DAAgB,CAAA;IAChB,uDAAc,CAAA;IACd,+CAAU,CAAA;IACV,mDAAY,CAAA;IACZ,+CAAU,CAAA;IACV,+CAAU,CAAA;IACV,6CAAS,CAAA;AACb,CAAC,EATW,UAAU,KAAV,UAAU,QASrB"}
@@ -0,0 +1,28 @@
1
+ import { IDeviceState } from './IDeviceState';
2
+ import { DeviceTaskExecutionResult } from './TaskExecutionResult';
3
+ import { IDeviceTask } from './IDeviceTask';
4
+ import { DeviceResponseType, DeviceTaskType } from './IDevice';
5
+ export interface IDeviceChannel {
6
+ get Number(): number;
7
+ set Number(value: number);
8
+ get Name(): string;
9
+ set Name(value: string);
10
+ get IconName(): string;
11
+ set IconName(value: string);
12
+ get States(): IDeviceState[];
13
+ set States(value: IDeviceState[]);
14
+ set State(value: IDeviceState);
15
+ get Mode(): ChannelConfigurations;
16
+ get ChannelGroups(): string[];
17
+ get IsHidden(): boolean;
18
+ get AvailableTaskTypes(): DeviceTaskType[];
19
+ get AvailableResponseTypes(): DeviceResponseType[];
20
+ ExecuteTaskAsync(task: IDeviceTask): Promise<DeviceTaskExecutionResult>;
21
+ }
22
+ export declare enum ChannelConfigurations {
23
+ Default = 0,
24
+ Monostable = 1,
25
+ Bistable = 2,
26
+ Gate = 3,
27
+ Gateway = 4
28
+ }
@@ -0,0 +1,9 @@
1
+ export var ChannelConfigurations;
2
+ (function (ChannelConfigurations) {
3
+ ChannelConfigurations[ChannelConfigurations["Default"] = 0] = "Default";
4
+ ChannelConfigurations[ChannelConfigurations["Monostable"] = 1] = "Monostable";
5
+ ChannelConfigurations[ChannelConfigurations["Bistable"] = 2] = "Bistable";
6
+ ChannelConfigurations[ChannelConfigurations["Gate"] = 3] = "Gate";
7
+ ChannelConfigurations[ChannelConfigurations["Gateway"] = 4] = "Gateway";
8
+ })(ChannelConfigurations || (ChannelConfigurations = {}));
9
+ //# sourceMappingURL=IDeviceChannel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDeviceChannel.js","sourceRoot":"","sources":["../../../../src/Services/Devices/IDeviceChannel.ts"],"names":[],"mappings":"AAgCA,MAAM,CAAN,IAAY,qBAOP;AAPL,WAAY,qBAAqB;IAEzB,uEAAW,CAAA;IACX,6EAAc,CAAA;IACd,yEAAY,CAAA;IACZ,iEAAQ,CAAA;IACR,uEAAW,CAAA;AACf,CAAC,EAPO,qBAAqB,KAArB,qBAAqB,QAO5B"}
@@ -0,0 +1,3 @@
1
+ export interface IDeviceState {
2
+ get Channel(): number;
3
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDeviceState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDeviceState.js","sourceRoot":"","sources":["../../../../src/Services/Devices/IDeviceState.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface IDeviceTask {
2
+ get Guid(): string;
3
+ set Guid(value: string);
4
+ get DeviceGuid(): string;
5
+ set DeviceGuid(value: string);
6
+ get Channel(): number;
7
+ set Channel(value: number);
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDeviceTask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDeviceTask.js","sourceRoot":"","sources":["../../../../src/Services/Devices/IDeviceTask.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { IDIService } from "../../IDIService";
2
+ import { ITypedEvent } from "../../TypedEvent";
3
+ import { IDevice } from './IDevice';
4
+ import { IDeviceState } from './IDeviceState';
5
+ export interface IDevicesService extends IDIService {
6
+ OnDeviceRegisteredEvent(): ITypedEvent<IDevice>;
7
+ OnDeviceRemovedEvent(): ITypedEvent<IDevice>;
8
+ OnDeviceFoundEvent(): ITypedEvent<IDevice>;
9
+ OnDeviceStateChangedEvent(): ITypedEvent<[IDevice, IDeviceState]>;
10
+ GetDevicesAsync(): Promise<IDevice[]>;
11
+ SyncDevicesStatesAsync(): Promise<IDeviceState[]>;
12
+ GetDevice(guid: string): Promise<IDevice>;
13
+ FindDevicesAsync(device: IDevice): Promise<void>;
14
+ RegisterDeviceAsync(device: IDevice): Promise<void>;
15
+ RemoveDeviceAsync(device: IDevice): Promise<void>;
16
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDevicesService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDevicesService.js","sourceRoot":"","sources":["../../../../src/Services/Devices/IDevicesService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export declare enum DeviceTaskExecutionResult {
2
+ ControllerResponseTimeout = -4,
3
+ DeviceNotFound = -3,
4
+ DeviceResponseTimeout = -2,
5
+ Failed = -1,
6
+ Unknown = 0,
7
+ Executed = 1
8
+ }
@@ -0,0 +1,10 @@
1
+ export var DeviceTaskExecutionResult;
2
+ (function (DeviceTaskExecutionResult) {
3
+ DeviceTaskExecutionResult[DeviceTaskExecutionResult["ControllerResponseTimeout"] = -4] = "ControllerResponseTimeout";
4
+ DeviceTaskExecutionResult[DeviceTaskExecutionResult["DeviceNotFound"] = -3] = "DeviceNotFound";
5
+ DeviceTaskExecutionResult[DeviceTaskExecutionResult["DeviceResponseTimeout"] = -2] = "DeviceResponseTimeout";
6
+ DeviceTaskExecutionResult[DeviceTaskExecutionResult["Failed"] = -1] = "Failed";
7
+ DeviceTaskExecutionResult[DeviceTaskExecutionResult["Unknown"] = 0] = "Unknown";
8
+ DeviceTaskExecutionResult[DeviceTaskExecutionResult["Executed"] = 1] = "Executed";
9
+ })(DeviceTaskExecutionResult || (DeviceTaskExecutionResult = {}));
10
+ //# sourceMappingURL=TaskExecutionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskExecutionResult.js","sourceRoot":"","sources":["../../../../src/Services/Devices/TaskExecutionResult.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACjC,oHAA8B,CAAA;IAC9B,8FAAmB,CAAA;IACnB,4GAA0B,CAAA;IAC1B,8EAAW,CAAA;IACX,+EAAW,CAAA;IACX,iFAAY,CAAA;AAChB,CAAC,EAPW,yBAAyB,KAAzB,yBAAyB,QAOpC"}
@@ -0,0 +1,17 @@
1
+ export declare class FieldChangeResult {
2
+ private _type;
3
+ private _data;
4
+ get Type(): FieldChangeResultType;
5
+ set Type(value: FieldChangeResultType);
6
+ get Data(): string;
7
+ set Data(value: string);
8
+ }
9
+ export declare enum FieldChangeResultType {
10
+ UnknownError = -5,
11
+ NoPermissions = -4,
12
+ WrongData = -3,
13
+ ControllerResponseTimeout = -2,
14
+ Failed = -1,
15
+ Unknown = 0,
16
+ Changed = 1
17
+ }
@@ -0,0 +1,39 @@
1
+ var FieldChangeResult = (function () {
2
+ function FieldChangeResult() {
3
+ this._type = FieldChangeResultType.Unknown;
4
+ this._data = "";
5
+ }
6
+ Object.defineProperty(FieldChangeResult.prototype, "Type", {
7
+ get: function () {
8
+ return this._type;
9
+ },
10
+ set: function (value) {
11
+ this._type = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ Object.defineProperty(FieldChangeResult.prototype, "Data", {
17
+ get: function () {
18
+ return this._data;
19
+ },
20
+ set: function (value) {
21
+ this._data = value;
22
+ },
23
+ enumerable: false,
24
+ configurable: true
25
+ });
26
+ return FieldChangeResult;
27
+ }());
28
+ export { FieldChangeResult };
29
+ export var FieldChangeResultType;
30
+ (function (FieldChangeResultType) {
31
+ FieldChangeResultType[FieldChangeResultType["UnknownError"] = -5] = "UnknownError";
32
+ FieldChangeResultType[FieldChangeResultType["NoPermissions"] = -4] = "NoPermissions";
33
+ FieldChangeResultType[FieldChangeResultType["WrongData"] = -3] = "WrongData";
34
+ FieldChangeResultType[FieldChangeResultType["ControllerResponseTimeout"] = -2] = "ControllerResponseTimeout";
35
+ FieldChangeResultType[FieldChangeResultType["Failed"] = -1] = "Failed";
36
+ FieldChangeResultType[FieldChangeResultType["Unknown"] = 0] = "Unknown";
37
+ FieldChangeResultType[FieldChangeResultType["Changed"] = 1] = "Changed";
38
+ })(FieldChangeResultType || (FieldChangeResultType = {}));
39
+ //# sourceMappingURL=FieldChangeResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldChangeResult.js","sourceRoot":"","sources":["../../../src/Services/FieldChangeResult.ts"],"names":[],"mappings":"AAAA;IAAA;QAEY,UAAK,GAA0B,qBAAqB,CAAC,OAAO,CAAC;QAC7D,UAAK,GAAW,EAAE,CAAC;IAqB/B,CAAC;IAnBG,sBAAI,mCAAI;aAAR;YAEI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAA4B;YAEjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OALA;IAOD,sBAAI,mCAAI;aAAR;YAEI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAa;YAElB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OALA;IAML,wBAAC;AAAD,CAAC,AAxBD,IAwBC;;AAED,MAAM,CAAN,IAAY,qBASX;AATD,WAAY,qBAAqB;IAE7B,kFAAiB,CAAA;IACjB,oFAAkB,CAAA;IAClB,4EAAc,CAAA;IACd,4GAA8B,CAAA;IAC9B,sEAAW,CAAA;IACX,uEAAW,CAAA;IACX,uEAAW,CAAA;AACf,CAAC,EATW,qBAAqB,KAArB,qBAAqB,QAShC"}
@@ -0,0 +1,15 @@
1
+ import { IDIService } from "../IDIService";
2
+ export interface ILocalStorageService extends IDIService {
3
+ Save(inContextOf: {
4
+ new (...params: any[]): any;
5
+ }, objectId: string, data: any): void;
6
+ Read<T>(inContextOf: {
7
+ new (...params: any[]): any;
8
+ }, objectId: string): T | null;
9
+ Remove(inContextOf: {
10
+ new (...params: any[]): any;
11
+ }, objectId: string): void;
12
+ DropStorage(inContextOf: {
13
+ new (...params: any[]): any;
14
+ }): void;
15
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ILocalStorageService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILocalStorageService.js","sourceRoot":"","sources":["../../../src/Services/ILocalStorageService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { ILocalStorageService } from "./ILocalStorageService";
2
+ export declare class LocalStorageService implements ILocalStorageService {
3
+ GetServiceName(): string;
4
+ private GetResourceName;
5
+ Remove(inContextOf: new (...params: any[]) => any, objectId: string): void;
6
+ DropStorage(inContextOf: new (...params: any[]) => any): void;
7
+ Save(inContextOf: new (...params: any[]) => any, objectId: string, data: any): void;
8
+ Read<T>(inContextOf: new (...params: any[]) => any, objectId: string): T | null;
9
+ }
@@ -0,0 +1,33 @@
1
+ import { nameof } from 'ts-simple-nameof';
2
+ var LocalStorageService = (function () {
3
+ function LocalStorageService() {
4
+ }
5
+ LocalStorageService.prototype.GetServiceName = function () {
6
+ return nameof(LocalStorageService);
7
+ };
8
+ LocalStorageService.prototype.GetResourceName = function (inContextOf, objectId) {
9
+ return "_exalus_".concat(inContextOf, "_").concat(objectId);
10
+ };
11
+ LocalStorageService.prototype.Remove = function (inContextOf, objectId) {
12
+ localStorage.removeItem(this.GetResourceName(inContextOf, objectId));
13
+ };
14
+ LocalStorageService.prototype.DropStorage = function (inContextOf) {
15
+ var prefix = "_exalus_".concat(inContextOf);
16
+ for (var key in localStorage) {
17
+ if (key === null || key === void 0 ? void 0 : key.startsWith(prefix))
18
+ localStorage.removeItem(key);
19
+ }
20
+ };
21
+ LocalStorageService.prototype.Save = function (inContextOf, objectId, data) {
22
+ localStorage.setItem(this.GetResourceName(inContextOf, objectId), JSON.stringify(data));
23
+ };
24
+ LocalStorageService.prototype.Read = function (inContextOf, objectId) {
25
+ var obj = localStorage.getItem(this.GetResourceName(inContextOf, objectId));
26
+ if (obj == null)
27
+ return null;
28
+ return JSON.parse(obj);
29
+ };
30
+ return LocalStorageService;
31
+ }());
32
+ export { LocalStorageService };
33
+ //# sourceMappingURL=LocalStorageService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalStorageService.js","sourceRoot":"","sources":["../../../src/Services/LocalStorageService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;IAAA;IAkCA,CAAC;IAjCG,4CAAc,GAAd;QACI,OAAO,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAEO,6CAAe,GAAvB,UAAwB,WAA0C,EAAE,QAAgB;QAChF,OAAO,kBAAW,WAAW,cAAI,QAAQ,CAAE,CAAC;IAChD,CAAC;IAED,oCAAM,GAAN,UAAO,WAA0C,EAAE,QAAgB;QAC/D,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,yCAAW,GAAX,UAAY,WAA0C;QAClD,IAAI,MAAM,GAAG,kBAAW,WAAW,CAAE,CAAC;QAEtC,KAAK,IAAM,GAAG,IAAI,YAAY,EAAE;YAC5B,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,UAAU,CAAC,MAAM,CAAC;gBACvB,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;SACpC;IACL,CAAC;IAED,kCAAI,GAAJ,UAAK,WAA0C,EAAE,QAAgB,EAAE,IAAS;QACxE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED,kCAAI,GAAJ,UAAQ,WAA0C,EAAE,QAAgB;QAChE,IAAI,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;QAE5E,IAAI,GAAG,IAAI,IAAI;YACX,OAAO,IAAI,CAAC;QAEhB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAa,CAAM,CAAC;IAC1C,CAAC;IACL,0BAAC;AAAD,CAAC,AAlCD,IAkCC"}
@@ -0,0 +1,29 @@
1
+ import { IDIService } from "./../../IDIService";
2
+ export interface ILoggerService extends IDIService {
3
+ get LogLevel(): LogLevel;
4
+ set LogLevel(level: LogLevel);
5
+ Warning(message: string): void;
6
+ Warning<T extends Object>(contextClassType: new (...params: any[]) => T | string, message: string): void;
7
+ Error(message: string): void;
8
+ Error<T extends Object>(contextClassType: {
9
+ new (...params: any[]): T;
10
+ } | string, message: string): void;
11
+ Info(message: string): void;
12
+ Info<T extends Object>(contextClassType: {
13
+ new (...params: any[]): T;
14
+ } | string, message: string): void;
15
+ Debug(message: string): void;
16
+ Debug<T extends Object>(contextClassType: {
17
+ new (...params: any[]): T;
18
+ } | string, message: string): void;
19
+ Log(message: string): void;
20
+ Log<T extends Object>(contextClassType: {
21
+ new (...params: any[]): T;
22
+ } | string, message: string): void;
23
+ }
24
+ export declare enum LogLevel {
25
+ Debug = 0,
26
+ Info = 1,
27
+ Warning = 2,
28
+ Error = 3
29
+ }
@@ -0,0 +1,8 @@
1
+ export var LogLevel;
2
+ (function (LogLevel) {
3
+ LogLevel[LogLevel["Debug"] = 0] = "Debug";
4
+ LogLevel[LogLevel["Info"] = 1] = "Info";
5
+ LogLevel[LogLevel["Warning"] = 2] = "Warning";
6
+ LogLevel[LogLevel["Error"] = 3] = "Error";
7
+ })(LogLevel || (LogLevel = {}));
8
+ //# sourceMappingURL=ILoggerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILoggerService.js","sourceRoot":"","sources":["../../../../src/Services/Logging/ILoggerService.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,yCAAS,CAAA;IACT,uCAAQ,CAAA;IACR,6CAAW,CAAA;IACX,yCAAS,CAAA;AACb,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
@@ -0,0 +1,21 @@
1
+ import { ILoggerService, LogLevel } from "./ILoggerService";
2
+ export declare class LoggerService implements ILoggerService {
3
+ private _logLevel;
4
+ get LogLevel(): LogLevel;
5
+ set LogLevel(level: LogLevel);
6
+ GetServiceName(): string;
7
+ private GetTimeStamp;
8
+ Warning(message: string): void;
9
+ Warning<T extends Object>(contextClassType: {
10
+ new (...params: any[]): T;
11
+ } | string, message: string): void;
12
+ Error(message: string): void;
13
+ Error<T extends Object>(contextClassType: new (...params: any[]) => T | string, message: string): void;
14
+ Info(message: string): void;
15
+ Info(contextOf: string, message: string): void;
16
+ Info<T extends Object>(contextClassType: new (...params: any[]) => T | string, message: string): void;
17
+ Debug(message: string): void;
18
+ Debug<T extends Object>(contextClassType: new (...params: any[]) => T | string, message: string): void;
19
+ Log(message: string): void;
20
+ Log<T extends Object>(contextClassType: new (...params: any[]) => T | string, message: string): void;
21
+ }
@@ -0,0 +1,88 @@
1
+ import { nameof } from "ts-simple-nameof";
2
+ import { LogLevel } from "./ILoggerService";
3
+ var LoggerService = (function () {
4
+ function LoggerService() {
5
+ this._logLevel = LogLevel.Debug;
6
+ }
7
+ Object.defineProperty(LoggerService.prototype, "LogLevel", {
8
+ get: function () {
9
+ return this._logLevel;
10
+ },
11
+ set: function (level) {
12
+ this._logLevel = level;
13
+ },
14
+ enumerable: false,
15
+ configurable: true
16
+ });
17
+ LoggerService.prototype.GetServiceName = function () {
18
+ return nameof(LoggerService);
19
+ };
20
+ LoggerService.prototype.GetTimeStamp = function () {
21
+ var date = new Date();
22
+ return "".concat(date.getHours(), ":").concat(date.getMinutes(), ":").concat(date.getSeconds(), ".").concat(date.getMilliseconds(), " | ");
23
+ };
24
+ LoggerService.prototype.Warning = function (contextClassType, message) {
25
+ switch (this._logLevel) {
26
+ case LogLevel.Warning:
27
+ case LogLevel.Info:
28
+ case LogLevel.Debug:
29
+ break;
30
+ default:
31
+ return;
32
+ }
33
+ if (contextClassType != null && (typeof contextClassType === 'string' || contextClassType instanceof String))
34
+ console.info("".concat(this.GetTimeStamp(), "[WARN] [").concat(contextClassType, "] ").concat(message));
35
+ else if (contextClassType != null && contextClassType instanceof Object)
36
+ console.warn("".concat(this.GetTimeStamp(), "[WARN] [").concat(nameof(contextClassType), "] ").concat(message));
37
+ else
38
+ console.warn("".concat(this.GetTimeStamp(), "[WARN] ").concat(message));
39
+ };
40
+ LoggerService.prototype.Error = function (contextClassType, message) {
41
+ if (contextClassType != null && (typeof contextClassType === 'string' || contextClassType instanceof String))
42
+ console.info("".concat(this.GetTimeStamp(), "[ERROR] [").concat(contextClassType, "] ").concat(message));
43
+ else if (contextClassType != null && contextClassType instanceof Object)
44
+ console.error("".concat(this.GetTimeStamp(), "[ERROR] [").concat(nameof(contextClassType), "] ").concat(message));
45
+ else
46
+ console.error("".concat(this.GetTimeStamp(), "[ERROR] ").concat(message));
47
+ };
48
+ LoggerService.prototype.Info = function (contextClassType, message) {
49
+ switch (this._logLevel) {
50
+ case LogLevel.Info:
51
+ case LogLevel.Debug:
52
+ break;
53
+ default:
54
+ return;
55
+ }
56
+ if (contextClassType != null && (typeof contextClassType === 'string' || contextClassType instanceof String))
57
+ console.info("".concat(this.GetTimeStamp(), "[INFO] [").concat(contextClassType, "] ").concat(message));
58
+ else if (contextClassType != null && contextClassType instanceof Object)
59
+ console.info("".concat(this.GetTimeStamp(), "[INFO] [").concat(nameof(contextClassType), "] ").concat(message));
60
+ else
61
+ console.info("".concat(this.GetTimeStamp(), "[INFO] ").concat(message));
62
+ };
63
+ LoggerService.prototype.Debug = function (contextClassType, message) {
64
+ switch (this._logLevel) {
65
+ case LogLevel.Debug:
66
+ break;
67
+ default:
68
+ return;
69
+ }
70
+ if (contextClassType != null && (typeof contextClassType === 'string' || contextClassType instanceof String))
71
+ console.info("".concat(this.GetTimeStamp(), "[DEBUG] [").concat(contextClassType, "] ").concat(message));
72
+ else if (contextClassType != null && contextClassType instanceof Object)
73
+ console.info("".concat(this.GetTimeStamp(), "[DEBUG] [").concat(nameof(contextClassType), "] ").concat(message));
74
+ else
75
+ console.info("".concat(this.GetTimeStamp(), "[DEBUG] ").concat(message));
76
+ };
77
+ LoggerService.prototype.Log = function (contextClassType, message) {
78
+ if (contextClassType != null && (typeof contextClassType === 'string' || contextClassType instanceof String))
79
+ console.info("".concat(this.GetTimeStamp(), "[LOG] [").concat(contextClassType, "] ").concat(message));
80
+ else if (contextClassType != null && contextClassType instanceof Object)
81
+ console.log("".concat(this.GetTimeStamp(), "[LOG] [").concat(nameof(contextClassType), "] ").concat(message));
82
+ else
83
+ console.log("".concat(this.GetTimeStamp(), "[LOG] ").concat(message));
84
+ };
85
+ return LoggerService;
86
+ }());
87
+ export { LoggerService };
88
+ //# sourceMappingURL=LoggerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoggerService.js","sourceRoot":"","sources":["../../../../src/Services/Logging/LoggerService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ import { IDIService } from "../../IDIService";
2
+ import { ITypedEvent } from "../../TypedEvent";
3
+ import { IUser } from "../Users/IUser";
4
+ export interface ISessionService extends IDIService {
5
+ OnUserLoggedInEvent(): ITypedEvent<IUser>;
6
+ OnUserLoggedOutEvent(): ITypedEvent<IUser>;
7
+ get User(): IUser | null;
8
+ UserLogOut(): Promise<void>;
9
+ UserLogIn(email: string, password: string): Promise<boolean>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISessionService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISessionService.js","sourceRoot":"","sources":["../../../../src/Services/Session/ISessionService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { ITypedEvent } from "../../TypedEvent";
2
+ import { IUser } from "../Users/IUser";
3
+ import { ISessionService } from "./ISessionService";
4
+ export declare class SessionService implements ISessionService {
5
+ private _onUserLoggedInEvent;
6
+ private _onUserLoggedOutEvent;
7
+ private _serviceName;
8
+ private _user;
9
+ OnUserLoggedInEvent(): ITypedEvent<IUser>;
10
+ OnUserLoggedOutEvent(): ITypedEvent<IUser>;
11
+ get User(): IUser | null;
12
+ UserLogOut(): Promise<void>;
13
+ UserLogIn(email: string, password: string): Promise<boolean>;
14
+ GetServiceName(): string;
15
+ }