@springtree/eva-services-core-live-guard 1.10.0 → 2.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.
@@ -11,10 +11,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
11
11
  * @implements {EvaService}
12
12
  */
13
13
  class CreateWatchtowerDevice {
14
- constructor() {
15
- this.name = 'CoreLiveGuard:CreateWatchtowerDevice';
16
- this.path = '/message/CreateWatchtowerDevice';
17
- }
14
+ name = 'CoreLiveGuard:CreateWatchtowerDevice';
15
+ path = '/message/CreateWatchtowerDevice';
16
+ request;
17
+ response;
18
18
  }
19
19
  CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
20
20
  /**
@@ -25,10 +25,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
25
25
  * @implements {EvaService}
26
26
  */
27
27
  class EVAStatus {
28
- constructor() {
29
- this.name = 'CoreLiveGuard:EVAStatus';
30
- this.path = '/message/EVAStatus';
31
- }
28
+ name = 'CoreLiveGuard:EVAStatus';
29
+ path = '/message/EVAStatus';
30
+ request;
31
+ response;
32
32
  }
33
33
  CoreLiveGuard.EVAStatus = EVAStatus;
34
34
  /**
@@ -39,10 +39,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
39
39
  * @implements {EvaService}
40
40
  */
41
41
  class GetUserForLiveGuard {
42
- constructor() {
43
- this.name = 'CoreLiveGuard:GetUserForLiveGuard';
44
- this.path = '/message/GetUserForLiveGuard';
45
- }
42
+ name = 'CoreLiveGuard:GetUserForLiveGuard';
43
+ path = '/message/GetUserForLiveGuard';
44
+ request;
45
+ response;
46
46
  }
47
47
  CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
48
48
  /**
@@ -53,10 +53,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
53
53
  * @implements {EvaService}
54
54
  */
55
55
  class ListWatchtowerDevices {
56
- constructor() {
57
- this.name = 'CoreLiveGuard:ListWatchtowerDevices';
58
- this.path = '/message/ListWatchtowerDevices';
59
- }
56
+ name = 'CoreLiveGuard:ListWatchtowerDevices';
57
+ path = '/message/ListWatchtowerDevices';
58
+ request;
59
+ response;
60
60
  }
61
61
  CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
62
62
  /**
@@ -67,10 +67,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
67
67
  * @implements {EvaService}
68
68
  */
69
69
  class LiveGuardExecuteTask {
70
- constructor() {
71
- this.name = 'CoreLiveGuard:LiveGuardExecuteTask';
72
- this.path = '/message/LiveGuardExecuteTask';
73
- }
70
+ name = 'CoreLiveGuard:LiveGuardExecuteTask';
71
+ path = '/message/LiveGuardExecuteTask';
72
+ request;
73
+ response;
74
74
  }
75
75
  CoreLiveGuard.LiveGuardExecuteTask = LiveGuardExecuteTask;
76
76
  /**
@@ -81,10 +81,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
81
81
  * @implements {EvaService}
82
82
  */
83
83
  class LiveGuardGenerateApiKey {
84
- constructor() {
85
- this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
86
- this.path = '/message/LiveGuardGenerateApiKey';
87
- }
84
+ name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
85
+ path = '/message/LiveGuardGenerateApiKey';
86
+ request;
87
+ response;
88
88
  }
89
89
  CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
90
90
  /**
@@ -95,10 +95,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
95
95
  * @implements {EvaService}
96
96
  */
97
97
  class LiveGuardGetAuditChains {
98
- constructor() {
99
- this.name = 'CoreLiveGuard:LiveGuardGetAuditChains';
100
- this.path = '/message/LiveGuardGetAuditChains';
101
- }
98
+ name = 'CoreLiveGuard:LiveGuardGetAuditChains';
99
+ path = '/message/LiveGuardGetAuditChains';
100
+ request;
101
+ response;
102
102
  }
103
103
  CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
104
104
  /**
@@ -109,10 +109,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
109
109
  * @implements {EvaService}
110
110
  */
111
111
  class LiveGuardGetCloudToken {
112
- constructor() {
113
- this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
114
- this.path = '/message/LiveGuardGetCloudToken';
115
- }
112
+ name = 'CoreLiveGuard:LiveGuardGetCloudToken';
113
+ path = '/message/LiveGuardGetCloudToken';
114
+ request;
115
+ response;
116
116
  }
117
117
  CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
118
118
  /**
@@ -123,10 +123,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
123
123
  * @implements {EvaService}
124
124
  */
125
125
  class LiveGuardGetInformation {
126
- constructor() {
127
- this.name = 'CoreLiveGuard:LiveGuardGetInformation';
128
- this.path = '/message/LiveGuardGetInformation';
129
- }
126
+ name = 'CoreLiveGuard:LiveGuardGetInformation';
127
+ path = '/message/LiveGuardGetInformation';
128
+ request;
129
+ response;
130
130
  }
131
131
  CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
132
132
  /**
@@ -137,10 +137,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
137
137
  * @implements {EvaService}
138
138
  */
139
139
  class LiveGuardGetMapping {
140
- constructor() {
141
- this.name = 'CoreLiveGuard:LiveGuardGetMapping';
142
- this.path = '/message/LiveGuardGetMapping';
143
- }
140
+ name = 'CoreLiveGuard:LiveGuardGetMapping';
141
+ path = '/message/LiveGuardGetMapping';
142
+ request;
143
+ response;
144
144
  }
145
145
  CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
146
146
  /**
@@ -151,10 +151,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
151
151
  * @implements {EvaService}
152
152
  */
153
153
  class LiveGuardGetStatus {
154
- constructor() {
155
- this.name = 'CoreLiveGuard:LiveGuardGetStatus';
156
- this.path = '/message/LiveGuardGetStatus';
157
- }
154
+ name = 'CoreLiveGuard:LiveGuardGetStatus';
155
+ path = '/message/LiveGuardGetStatus';
156
+ request;
157
+ response;
158
158
  }
159
159
  CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
160
160
  /**
@@ -165,10 +165,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
165
165
  * @implements {EvaService}
166
166
  */
167
167
  class LiveGuardGetTOTPSecret {
168
- constructor() {
169
- this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
170
- this.path = '/message/LiveGuardGetTOTPSecret';
171
- }
168
+ name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
169
+ path = '/message/LiveGuardGetTOTPSecret';
170
+ request;
171
+ response;
172
172
  }
173
173
  CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
174
174
  /**
@@ -181,10 +181,10 @@ Can only be called by the liveguard user
181
181
  * @implements {EvaService}
182
182
  */
183
183
  class LiveGuardGetTokenForUser {
184
- constructor() {
185
- this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
186
- this.path = '/message/LiveGuardGetTokenForUser';
187
- }
184
+ name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
185
+ path = '/message/LiveGuardGetTokenForUser';
186
+ request;
187
+ response;
188
188
  }
189
189
  CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
190
190
  /**
@@ -195,10 +195,10 @@ Can only be called by the liveguard user
195
195
  * @implements {EvaService}
196
196
  */
197
197
  class LiveGuardPushMetrics {
198
- constructor() {
199
- this.name = 'CoreLiveGuard:LiveGuardPushMetrics';
200
- this.path = '/message/LiveGuardPushMetrics';
201
- }
198
+ name = 'CoreLiveGuard:LiveGuardPushMetrics';
199
+ path = '/message/LiveGuardPushMetrics';
200
+ request;
201
+ response;
202
202
  }
203
203
  CoreLiveGuard.LiveGuardPushMetrics = LiveGuardPushMetrics;
204
204
  /**
@@ -209,10 +209,10 @@ Can only be called by the liveguard user
209
209
  * @implements {EvaService}
210
210
  */
211
211
  class LiveGuardPushOrder {
212
- constructor() {
213
- this.name = 'CoreLiveGuard:LiveGuardPushOrder';
214
- this.path = '/message/LiveGuardPushOrder';
215
- }
212
+ name = 'CoreLiveGuard:LiveGuardPushOrder';
213
+ path = '/message/LiveGuardPushOrder';
214
+ request;
215
+ response;
216
216
  }
217
217
  CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
218
218
  /**
@@ -225,10 +225,10 @@ This should never be used in production environments. This is used to mimick off
225
225
  * @implements {EvaService}
226
226
  */
227
227
  class LiveGuardSetStatus {
228
- constructor() {
229
- this.name = 'CoreLiveGuard:LiveGuardSetStatus';
230
- this.path = '/message/LiveGuardSetStatus';
231
- }
228
+ name = 'CoreLiveGuard:LiveGuardSetStatus';
229
+ path = '/message/LiveGuardSetStatus';
230
+ request;
231
+ response;
232
232
  }
233
233
  CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
234
234
  /**
@@ -239,10 +239,10 @@ This should never be used in production environments. This is used to mimick off
239
239
  * @implements {EvaService}
240
240
  */
241
241
  class LiveGuardSyncCatalogByBlob {
242
- constructor() {
243
- this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
244
- this.path = '/message/LiveGuardSyncCatalogByBlob';
245
- }
242
+ name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
243
+ path = '/message/LiveGuardSyncCatalogByBlob';
244
+ request;
245
+ response;
246
246
  }
247
247
  CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
248
248
  /**
@@ -253,10 +253,10 @@ This should never be used in production environments. This is used to mimick off
253
253
  * @implements {EvaService}
254
254
  */
255
255
  class LiveGuardSyncGeneralByBlob {
256
- constructor() {
257
- this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
258
- this.path = '/message/LiveGuardSyncGeneralByBlob';
259
- }
256
+ name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
257
+ path = '/message/LiveGuardSyncGeneralByBlob';
258
+ request;
259
+ response;
260
260
  }
261
261
  CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
262
262
  /**
@@ -267,10 +267,10 @@ This should never be used in production environments. This is used to mimick off
267
267
  * @implements {EvaService}
268
268
  */
269
269
  class LiveGuardSyncUsersByBlob {
270
- constructor() {
271
- this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
272
- this.path = '/message/LiveGuardSyncUsersByBlob';
273
- }
270
+ name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
271
+ path = '/message/LiveGuardSyncUsersByBlob';
272
+ request;
273
+ response;
274
274
  }
275
275
  CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
276
276
  /**
@@ -281,10 +281,10 @@ This should never be used in production environments. This is used to mimick off
281
281
  * @implements {EvaService}
282
282
  */
283
283
  class LiveGuardTriggerSync {
284
- constructor() {
285
- this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
286
- this.path = '/message/LiveGuardTriggerSync';
287
- }
284
+ name = 'CoreLiveGuard:LiveGuardTriggerSync';
285
+ path = '/message/LiveGuardTriggerSync';
286
+ request;
287
+ response;
288
288
  }
289
289
  CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
290
290
  /**
@@ -295,10 +295,10 @@ This should never be used in production environments. This is used to mimick off
295
295
  * @implements {EvaService}
296
296
  */
297
297
  class PushWatchtowerConfigurationToDevice {
298
- constructor() {
299
- this.name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
300
- this.path = '/message/PushWatchtowerConfigurationToDevice';
301
- }
298
+ name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
299
+ path = '/message/PushWatchtowerConfigurationToDevice';
300
+ request;
301
+ response;
302
302
  }
303
303
  CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
304
304
  /**
@@ -309,10 +309,10 @@ This should never be used in production environments. This is used to mimick off
309
309
  * @implements {EvaService}
310
310
  */
311
311
  class WatchtowerExecuteCommand {
312
- constructor() {
313
- this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
314
- this.path = '/message/WatchtowerExecuteCommand';
315
- }
312
+ name = 'CoreLiveGuard:WatchtowerExecuteCommand';
313
+ path = '/message/WatchtowerExecuteCommand';
314
+ request;
315
+ response;
316
316
  }
317
317
  CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
318
318
  /**
@@ -326,10 +326,10 @@ Returns the MenderID if found in mender or already stored in EVA
326
326
  * @implements {EvaService}
327
327
  */
328
328
  class WatchtowerGetDeviceByHardwareID {
329
- constructor() {
330
- this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
331
- this.path = '/message/WatchtowerGetDeviceByHardwareID';
332
- }
329
+ name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
330
+ path = '/message/WatchtowerGetDeviceByHardwareID';
331
+ request;
332
+ response;
333
333
  }
334
334
  CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
335
335
  /**
@@ -340,10 +340,10 @@ Returns the MenderID if found in mender or already stored in EVA
340
340
  * @implements {EvaService}
341
341
  */
342
342
  class WatchtowerGetDeviceDetails {
343
- constructor() {
344
- this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
345
- this.path = '/message/WatchtowerGetDeviceDetails';
346
- }
343
+ name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
344
+ path = '/message/WatchtowerGetDeviceDetails';
345
+ request;
346
+ response;
347
347
  }
348
348
  CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
349
349
  })(CoreLiveGuard || (CoreLiveGuard = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"EVA.Core.LiveGuard.Services.js","sourceRoot":"","sources":["../src/EVA.Core.LiveGuard.Services.ts"],"names":[],"mappings":"AAEE,MAAM,KAAW,aAAa,CA2V7B;AA3VD,WAAiB,aAAa;IAE5B;;;;;;;;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QAClD,QAAQ,CAAiC;KAC1C;IALY,kCAAoB,uBAKhC,CAAA;IAED;;;;;;OAMG;IACH,MAAa,mCAAmC;QAC9C,IAAI,GAAG,mDAAmD,CAAC;QAC3D,IAAI,GAAG,8CAA8C,CAAC;QACtD,OAAO,CAA0D;QACjE,QAAQ,CAAiC;KAC1C;IALY,iDAAmC,sCAK/C,CAAA;IAED;;;;;;OAMG;IACH,MAAa,wBAAwB;QACnC,IAAI,GAAG,wCAAwC,CAAC;QAChD,IAAI,GAAG,mCAAmC,CAAC;QAC3C,OAAO,CAA+C;QACtD,QAAQ,CAAuD;KAChE;IALY,sCAAwB,2BAKpC,CAAA;IAED;;;;;;;;;OASG;IACH,MAAa,+BAA+B;QAC1C,IAAI,GAAG,+CAA+C,CAAC;QACvD,IAAI,GAAG,0CAA0C,CAAC;QAClD,OAAO,CAAsD;QAC7D,QAAQ,CAA8D;KACvE;IALY,6CAA+B,kCAK3C,CAAA;IAED;;;;;;OAMG;IACH,MAAa,0BAA0B;QACrC,IAAI,GAAG,0CAA0C,CAAC;QAClD,IAAI,GAAG,qCAAqC,CAAC;QAC7C,OAAO,CAAiD;QACxD,QAAQ,CAAyD;KAClE;IALY,wCAA0B,6BAKtC,CAAA;AACH,CAAC,EA3VgB,aAAa,KAAb,aAAa,QA2V7B"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@springtree/eva-services-core-live-guard",
3
- "version": "1.10.0",
3
+ "version": "2.0.0",
4
4
  "description": "The EVA service repository for EVA.Core.LiveGuard",
5
5
  "keywords": [],
6
6
  "author": "SpringTree <info@springtree.nl>",
7
7
  "license": "UNLICENSED",
8
- "main": "lib/eva-services-core-live-guard.umd.js",
8
+ "main": "lib/eva-services-core-live-guard.js",
9
9
  "directories": {
10
10
  "lib": "lib",
11
11
  "test": "__tests__"
@@ -28,10 +28,11 @@
28
28
  },
29
29
  "homepage": "https://github.com/springtreesolutions/eva-sdk-repo#readme",
30
30
  "typings": "lib/eva-services-core-live-guard.d.ts",
31
- "module": "lib/eva-services-core-live-guard.es5.js",
31
+ "module": "lib/eva-services-core-live-guard.js",
32
+ "type": "module",
32
33
  "private": false,
33
- "peerDependencies": {
34
- "@springtree/eva-services-core": "^1.0.0"
34
+ "dependencies": {
35
+ "@springtree/eva-services-core": "^2.0.0"
35
36
  },
36
- "gitHead": "746c746126f0279173be74b21c66476076abbb2d"
37
+ "gitHead": "e5a13ab2e6c139966aa0907cff56676c3b8753dd"
37
38
  }
@@ -1,352 +0,0 @@
1
- var CoreLiveGuard;
2
- (function (CoreLiveGuard) {
3
- /**
4
- * Create a new watchtower device
5
-
6
- To create a device for fallback IO, leave the HardwareID null
7
- When a HardwareID is set, the device will be boarded in mender and prepared for use.
8
- *
9
- * @export
10
- * @class CreateWatchtowerDevice
11
- * @implements {EvaService}
12
- */
13
- class CreateWatchtowerDevice {
14
- constructor() {
15
- this.name = 'CoreLiveGuard:CreateWatchtowerDevice';
16
- this.path = '/message/CreateWatchtowerDevice';
17
- }
18
- }
19
- CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
20
- /**
21
- * TODO: Needs documentation
22
- *
23
- * @export
24
- * @class EVAStatus
25
- * @implements {EvaService}
26
- */
27
- class EVAStatus {
28
- constructor() {
29
- this.name = 'CoreLiveGuard:EVAStatus';
30
- this.path = '/message/EVAStatus';
31
- }
32
- }
33
- CoreLiveGuard.EVAStatus = EVAStatus;
34
- /**
35
- * Get user information to sync to LiveGuard
36
- *
37
- * @export
38
- * @class GetUserForLiveGuard
39
- * @implements {EvaService}
40
- */
41
- class GetUserForLiveGuard {
42
- constructor() {
43
- this.name = 'CoreLiveGuard:GetUserForLiveGuard';
44
- this.path = '/message/GetUserForLiveGuard';
45
- }
46
- }
47
- CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
48
- /**
49
- * List the configured watchtower devices with their status
50
- *
51
- * @export
52
- * @class ListWatchtowerDevices
53
- * @implements {EvaService}
54
- */
55
- class ListWatchtowerDevices {
56
- constructor() {
57
- this.name = 'CoreLiveGuard:ListWatchtowerDevices';
58
- this.path = '/message/ListWatchtowerDevices';
59
- }
60
- }
61
- CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
62
- /**
63
- * Execute a command on a device
64
- *
65
- * @export
66
- * @class LiveGuardExecuteTask
67
- * @implements {EvaService}
68
- */
69
- class LiveGuardExecuteTask {
70
- constructor() {
71
- this.name = 'CoreLiveGuard:LiveGuardExecuteTask';
72
- this.path = '/message/LiveGuardExecuteTask';
73
- }
74
- }
75
- CoreLiveGuard.LiveGuardExecuteTask = LiveGuardExecuteTask;
76
- /**
77
- * TODO: Needs documentation
78
- *
79
- * @export
80
- * @class LiveGuardGenerateApiKey
81
- * @implements {EvaService}
82
- */
83
- class LiveGuardGenerateApiKey {
84
- constructor() {
85
- this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
86
- this.path = '/message/LiveGuardGenerateApiKey';
87
- }
88
- }
89
- CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
90
- /**
91
- * Retreive current chain status for the connected watchtower
92
- *
93
- * @export
94
- * @class LiveGuardGetAuditChains
95
- * @implements {EvaService}
96
- */
97
- class LiveGuardGetAuditChains {
98
- constructor() {
99
- this.name = 'CoreLiveGuard:LiveGuardGetAuditChains';
100
- this.path = '/message/LiveGuardGetAuditChains';
101
- }
102
- }
103
- CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
104
- /**
105
- * Get an authentication token that's valid in the cloud for the current user
106
- *
107
- * @export
108
- * @class LiveGuardGetCloudToken
109
- * @implements {EvaService}
110
- */
111
- class LiveGuardGetCloudToken {
112
- constructor() {
113
- this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
114
- this.path = '/message/LiveGuardGetCloudToken';
115
- }
116
- }
117
- CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
118
- /**
119
- * Returns some basic information about the current state of the liveGuard
120
- *
121
- * @export
122
- * @class LiveGuardGetInformation
123
- * @implements {EvaService}
124
- */
125
- class LiveGuardGetInformation {
126
- constructor() {
127
- this.name = 'CoreLiveGuard:LiveGuardGetInformation';
128
- this.path = '/message/LiveGuardGetInformation';
129
- }
130
- }
131
- CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
132
- /**
133
- * Returns id mapping for cloud vs liveguard entities
134
- *
135
- * @export
136
- * @class LiveGuardGetMapping
137
- * @implements {EvaService}
138
- */
139
- class LiveGuardGetMapping {
140
- constructor() {
141
- this.name = 'CoreLiveGuard:LiveGuardGetMapping';
142
- this.path = '/message/LiveGuardGetMapping';
143
- }
144
- }
145
- CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
146
- /**
147
- * This service returns the operational flags for a liveguard instance.
148
- *
149
- * @export
150
- * @class LiveGuardGetStatus
151
- * @implements {EvaService}
152
- */
153
- class LiveGuardGetStatus {
154
- constructor() {
155
- this.name = 'CoreLiveGuard:LiveGuardGetStatus';
156
- this.path = '/message/LiveGuardGetStatus';
157
- }
158
- }
159
- CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
160
- /**
161
- * Retreive current secret for TOTP token usage
162
- *
163
- * @export
164
- * @class LiveGuardGetTOTPSecret
165
- * @implements {EvaService}
166
- */
167
- class LiveGuardGetTOTPSecret {
168
- constructor() {
169
- this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
170
- this.path = '/message/LiveGuardGetTOTPSecret';
171
- }
172
- }
173
- CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
174
- /**
175
- * Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
176
-
177
- Can only be called by the liveguard user
178
- *
179
- * @export
180
- * @class LiveGuardGetTokenForUser
181
- * @implements {EvaService}
182
- */
183
- class LiveGuardGetTokenForUser {
184
- constructor() {
185
- this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
186
- this.path = '/message/LiveGuardGetTokenForUser';
187
- }
188
- }
189
- CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
190
- /**
191
- * Push metrics of the watchtower device to the cloud.
192
- *
193
- * @export
194
- * @class LiveGuardPushMetrics
195
- * @implements {EvaService}
196
- */
197
- class LiveGuardPushMetrics {
198
- constructor() {
199
- this.name = 'CoreLiveGuard:LiveGuardPushMetrics';
200
- this.path = '/message/LiveGuardPushMetrics';
201
- }
202
- }
203
- CoreLiveGuard.LiveGuardPushMetrics = LiveGuardPushMetrics;
204
- /**
205
- * Accepts an Order pushed from a LiveGuard instance
206
- *
207
- * @export
208
- * @class LiveGuardPushOrder
209
- * @implements {EvaService}
210
- */
211
- class LiveGuardPushOrder {
212
- constructor() {
213
- this.name = 'CoreLiveGuard:LiveGuardPushOrder';
214
- this.path = '/message/LiveGuardPushOrder';
215
- }
216
- }
217
- CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
218
- /**
219
- * This service overrides the operational flags for a liveguard instance.
220
-
221
- This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
222
- *
223
- * @export
224
- * @class LiveGuardSetStatus
225
- * @implements {EvaService}
226
- */
227
- class LiveGuardSetStatus {
228
- constructor() {
229
- this.name = 'CoreLiveGuard:LiveGuardSetStatus';
230
- this.path = '/message/LiveGuardSetStatus';
231
- }
232
- }
233
- CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
234
- /**
235
- * TODO: Needs documentation
236
- *
237
- * @export
238
- * @class LiveGuardSyncCatalogByBlob
239
- * @implements {EvaService}
240
- */
241
- class LiveGuardSyncCatalogByBlob {
242
- constructor() {
243
- this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
244
- this.path = '/message/LiveGuardSyncCatalogByBlob';
245
- }
246
- }
247
- CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
248
- /**
249
- * TODO: Needs documentation
250
- *
251
- * @export
252
- * @class LiveGuardSyncGeneralByBlob
253
- * @implements {EvaService}
254
- */
255
- class LiveGuardSyncGeneralByBlob {
256
- constructor() {
257
- this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
258
- this.path = '/message/LiveGuardSyncGeneralByBlob';
259
- }
260
- }
261
- CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
262
- /**
263
- * TODO: Needs documentation
264
- *
265
- * @export
266
- * @class LiveGuardSyncUsersByBlob
267
- * @implements {EvaService}
268
- */
269
- class LiveGuardSyncUsersByBlob {
270
- constructor() {
271
- this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
272
- this.path = '/message/LiveGuardSyncUsersByBlob';
273
- }
274
- }
275
- CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
276
- /**
277
- * Trigger a full sync on a liveguard instance, this has major performance impact for a while
278
- *
279
- * @export
280
- * @class LiveGuardTriggerSync
281
- * @implements {EvaService}
282
- */
283
- class LiveGuardTriggerSync {
284
- constructor() {
285
- this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
286
- this.path = '/message/LiveGuardTriggerSync';
287
- }
288
- }
289
- CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
290
- /**
291
- * Push the current configuration for the given device to mender
292
- *
293
- * @export
294
- * @class PushWatchtowerConfigurationToDevice
295
- * @implements {EvaService}
296
- */
297
- class PushWatchtowerConfigurationToDevice {
298
- constructor() {
299
- this.name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
300
- this.path = '/message/PushWatchtowerConfigurationToDevice';
301
- }
302
- }
303
- CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
304
- /**
305
- * Execute a command on a device
306
- *
307
- * @export
308
- * @class WatchtowerExecuteCommand
309
- * @implements {EvaService}
310
- */
311
- class WatchtowerExecuteCommand {
312
- constructor() {
313
- this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
314
- this.path = '/message/WatchtowerExecuteCommand';
315
- }
316
- }
317
- CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
318
- /**
319
- * Try to find the device by the HardwareID in mender
320
-
321
- Returns the DeviceID if already existing in EVA
322
- Returns the MenderID if found in mender or already stored in EVA
323
- *
324
- * @export
325
- * @class WatchtowerGetDeviceByHardwareID
326
- * @implements {EvaService}
327
- */
328
- class WatchtowerGetDeviceByHardwareID {
329
- constructor() {
330
- this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
331
- this.path = '/message/WatchtowerGetDeviceByHardwareID';
332
- }
333
- }
334
- CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
335
- /**
336
- * Get details about the given device.
337
- *
338
- * @export
339
- * @class WatchtowerGetDeviceDetails
340
- * @implements {EvaService}
341
- */
342
- class WatchtowerGetDeviceDetails {
343
- constructor() {
344
- this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
345
- this.path = '/message/WatchtowerGetDeviceDetails';
346
- }
347
- }
348
- CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
349
- })(CoreLiveGuard || (CoreLiveGuard = {}));
350
-
351
- export { CoreLiveGuard };
352
- //# sourceMappingURL=eva-services-core-live-guard.es5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eva-services-core-live-guard.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,360 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.evaServicesCoreLiveGuard = {}));
5
- })(this, (function (exports) { 'use strict';
6
-
7
- exports.CoreLiveGuard = void 0;
8
- (function (CoreLiveGuard) {
9
- /**
10
- * Create a new watchtower device
11
-
12
- To create a device for fallback IO, leave the HardwareID null
13
- When a HardwareID is set, the device will be boarded in mender and prepared for use.
14
- *
15
- * @export
16
- * @class CreateWatchtowerDevice
17
- * @implements {EvaService}
18
- */
19
- class CreateWatchtowerDevice {
20
- constructor() {
21
- this.name = 'CoreLiveGuard:CreateWatchtowerDevice';
22
- this.path = '/message/CreateWatchtowerDevice';
23
- }
24
- }
25
- CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
26
- /**
27
- * TODO: Needs documentation
28
- *
29
- * @export
30
- * @class EVAStatus
31
- * @implements {EvaService}
32
- */
33
- class EVAStatus {
34
- constructor() {
35
- this.name = 'CoreLiveGuard:EVAStatus';
36
- this.path = '/message/EVAStatus';
37
- }
38
- }
39
- CoreLiveGuard.EVAStatus = EVAStatus;
40
- /**
41
- * Get user information to sync to LiveGuard
42
- *
43
- * @export
44
- * @class GetUserForLiveGuard
45
- * @implements {EvaService}
46
- */
47
- class GetUserForLiveGuard {
48
- constructor() {
49
- this.name = 'CoreLiveGuard:GetUserForLiveGuard';
50
- this.path = '/message/GetUserForLiveGuard';
51
- }
52
- }
53
- CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
54
- /**
55
- * List the configured watchtower devices with their status
56
- *
57
- * @export
58
- * @class ListWatchtowerDevices
59
- * @implements {EvaService}
60
- */
61
- class ListWatchtowerDevices {
62
- constructor() {
63
- this.name = 'CoreLiveGuard:ListWatchtowerDevices';
64
- this.path = '/message/ListWatchtowerDevices';
65
- }
66
- }
67
- CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
68
- /**
69
- * Execute a command on a device
70
- *
71
- * @export
72
- * @class LiveGuardExecuteTask
73
- * @implements {EvaService}
74
- */
75
- class LiveGuardExecuteTask {
76
- constructor() {
77
- this.name = 'CoreLiveGuard:LiveGuardExecuteTask';
78
- this.path = '/message/LiveGuardExecuteTask';
79
- }
80
- }
81
- CoreLiveGuard.LiveGuardExecuteTask = LiveGuardExecuteTask;
82
- /**
83
- * TODO: Needs documentation
84
- *
85
- * @export
86
- * @class LiveGuardGenerateApiKey
87
- * @implements {EvaService}
88
- */
89
- class LiveGuardGenerateApiKey {
90
- constructor() {
91
- this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
92
- this.path = '/message/LiveGuardGenerateApiKey';
93
- }
94
- }
95
- CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
96
- /**
97
- * Retreive current chain status for the connected watchtower
98
- *
99
- * @export
100
- * @class LiveGuardGetAuditChains
101
- * @implements {EvaService}
102
- */
103
- class LiveGuardGetAuditChains {
104
- constructor() {
105
- this.name = 'CoreLiveGuard:LiveGuardGetAuditChains';
106
- this.path = '/message/LiveGuardGetAuditChains';
107
- }
108
- }
109
- CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
110
- /**
111
- * Get an authentication token that's valid in the cloud for the current user
112
- *
113
- * @export
114
- * @class LiveGuardGetCloudToken
115
- * @implements {EvaService}
116
- */
117
- class LiveGuardGetCloudToken {
118
- constructor() {
119
- this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
120
- this.path = '/message/LiveGuardGetCloudToken';
121
- }
122
- }
123
- CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
124
- /**
125
- * Returns some basic information about the current state of the liveGuard
126
- *
127
- * @export
128
- * @class LiveGuardGetInformation
129
- * @implements {EvaService}
130
- */
131
- class LiveGuardGetInformation {
132
- constructor() {
133
- this.name = 'CoreLiveGuard:LiveGuardGetInformation';
134
- this.path = '/message/LiveGuardGetInformation';
135
- }
136
- }
137
- CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
138
- /**
139
- * Returns id mapping for cloud vs liveguard entities
140
- *
141
- * @export
142
- * @class LiveGuardGetMapping
143
- * @implements {EvaService}
144
- */
145
- class LiveGuardGetMapping {
146
- constructor() {
147
- this.name = 'CoreLiveGuard:LiveGuardGetMapping';
148
- this.path = '/message/LiveGuardGetMapping';
149
- }
150
- }
151
- CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
152
- /**
153
- * This service returns the operational flags for a liveguard instance.
154
- *
155
- * @export
156
- * @class LiveGuardGetStatus
157
- * @implements {EvaService}
158
- */
159
- class LiveGuardGetStatus {
160
- constructor() {
161
- this.name = 'CoreLiveGuard:LiveGuardGetStatus';
162
- this.path = '/message/LiveGuardGetStatus';
163
- }
164
- }
165
- CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
166
- /**
167
- * Retreive current secret for TOTP token usage
168
- *
169
- * @export
170
- * @class LiveGuardGetTOTPSecret
171
- * @implements {EvaService}
172
- */
173
- class LiveGuardGetTOTPSecret {
174
- constructor() {
175
- this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
176
- this.path = '/message/LiveGuardGetTOTPSecret';
177
- }
178
- }
179
- CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
180
- /**
181
- * Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
182
-
183
- Can only be called by the liveguard user
184
- *
185
- * @export
186
- * @class LiveGuardGetTokenForUser
187
- * @implements {EvaService}
188
- */
189
- class LiveGuardGetTokenForUser {
190
- constructor() {
191
- this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
192
- this.path = '/message/LiveGuardGetTokenForUser';
193
- }
194
- }
195
- CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
196
- /**
197
- * Push metrics of the watchtower device to the cloud.
198
- *
199
- * @export
200
- * @class LiveGuardPushMetrics
201
- * @implements {EvaService}
202
- */
203
- class LiveGuardPushMetrics {
204
- constructor() {
205
- this.name = 'CoreLiveGuard:LiveGuardPushMetrics';
206
- this.path = '/message/LiveGuardPushMetrics';
207
- }
208
- }
209
- CoreLiveGuard.LiveGuardPushMetrics = LiveGuardPushMetrics;
210
- /**
211
- * Accepts an Order pushed from a LiveGuard instance
212
- *
213
- * @export
214
- * @class LiveGuardPushOrder
215
- * @implements {EvaService}
216
- */
217
- class LiveGuardPushOrder {
218
- constructor() {
219
- this.name = 'CoreLiveGuard:LiveGuardPushOrder';
220
- this.path = '/message/LiveGuardPushOrder';
221
- }
222
- }
223
- CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
224
- /**
225
- * This service overrides the operational flags for a liveguard instance.
226
-
227
- This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
228
- *
229
- * @export
230
- * @class LiveGuardSetStatus
231
- * @implements {EvaService}
232
- */
233
- class LiveGuardSetStatus {
234
- constructor() {
235
- this.name = 'CoreLiveGuard:LiveGuardSetStatus';
236
- this.path = '/message/LiveGuardSetStatus';
237
- }
238
- }
239
- CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
240
- /**
241
- * TODO: Needs documentation
242
- *
243
- * @export
244
- * @class LiveGuardSyncCatalogByBlob
245
- * @implements {EvaService}
246
- */
247
- class LiveGuardSyncCatalogByBlob {
248
- constructor() {
249
- this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
250
- this.path = '/message/LiveGuardSyncCatalogByBlob';
251
- }
252
- }
253
- CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
254
- /**
255
- * TODO: Needs documentation
256
- *
257
- * @export
258
- * @class LiveGuardSyncGeneralByBlob
259
- * @implements {EvaService}
260
- */
261
- class LiveGuardSyncGeneralByBlob {
262
- constructor() {
263
- this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
264
- this.path = '/message/LiveGuardSyncGeneralByBlob';
265
- }
266
- }
267
- CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
268
- /**
269
- * TODO: Needs documentation
270
- *
271
- * @export
272
- * @class LiveGuardSyncUsersByBlob
273
- * @implements {EvaService}
274
- */
275
- class LiveGuardSyncUsersByBlob {
276
- constructor() {
277
- this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
278
- this.path = '/message/LiveGuardSyncUsersByBlob';
279
- }
280
- }
281
- CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
282
- /**
283
- * Trigger a full sync on a liveguard instance, this has major performance impact for a while
284
- *
285
- * @export
286
- * @class LiveGuardTriggerSync
287
- * @implements {EvaService}
288
- */
289
- class LiveGuardTriggerSync {
290
- constructor() {
291
- this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
292
- this.path = '/message/LiveGuardTriggerSync';
293
- }
294
- }
295
- CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
296
- /**
297
- * Push the current configuration for the given device to mender
298
- *
299
- * @export
300
- * @class PushWatchtowerConfigurationToDevice
301
- * @implements {EvaService}
302
- */
303
- class PushWatchtowerConfigurationToDevice {
304
- constructor() {
305
- this.name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
306
- this.path = '/message/PushWatchtowerConfigurationToDevice';
307
- }
308
- }
309
- CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
310
- /**
311
- * Execute a command on a device
312
- *
313
- * @export
314
- * @class WatchtowerExecuteCommand
315
- * @implements {EvaService}
316
- */
317
- class WatchtowerExecuteCommand {
318
- constructor() {
319
- this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
320
- this.path = '/message/WatchtowerExecuteCommand';
321
- }
322
- }
323
- CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
324
- /**
325
- * Try to find the device by the HardwareID in mender
326
-
327
- Returns the DeviceID if already existing in EVA
328
- Returns the MenderID if found in mender or already stored in EVA
329
- *
330
- * @export
331
- * @class WatchtowerGetDeviceByHardwareID
332
- * @implements {EvaService}
333
- */
334
- class WatchtowerGetDeviceByHardwareID {
335
- constructor() {
336
- this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
337
- this.path = '/message/WatchtowerGetDeviceByHardwareID';
338
- }
339
- }
340
- CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
341
- /**
342
- * Get details about the given device.
343
- *
344
- * @export
345
- * @class WatchtowerGetDeviceDetails
346
- * @implements {EvaService}
347
- */
348
- class WatchtowerGetDeviceDetails {
349
- constructor() {
350
- this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
351
- this.path = '/message/WatchtowerGetDeviceDetails';
352
- }
353
- }
354
- CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
355
- })(exports.CoreLiveGuard || (exports.CoreLiveGuard = {}));
356
-
357
- Object.defineProperty(exports, '__esModule', { value: true });
358
-
359
- }));
360
- //# sourceMappingURL=eva-services-core-live-guard.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eva-services-core-live-guard.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}