@uns-kit/cli 2.0.25 → 2.0.27

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 (59) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +175 -175
  3. package/package.json +6 -6
  4. package/templates/api/src/examples/api-example.ts +91 -91
  5. package/templates/azure-pipelines.yml +21 -21
  6. package/templates/codegen/codegen.ts +15 -15
  7. package/templates/codegen/src/uns/uns-tags.ts +1 -1
  8. package/templates/codegen/src/uns/uns-topics.ts +1 -1
  9. package/templates/config-files/config-docker.json +26 -26
  10. package/templates/config-files/config-localhost.json +26 -26
  11. package/templates/cron/AGENTS.md +24 -24
  12. package/templates/cron/src/examples/cron-example.ts +71 -71
  13. package/templates/default/.prettierignore +1 -1
  14. package/templates/default/.prettierrc +7 -7
  15. package/templates/default/AGENTS.md +24 -24
  16. package/templates/default/README.md +43 -43
  17. package/templates/default/config.json +27 -27
  18. package/templates/default/eslint.config.js +30 -30
  19. package/templates/default/gitignore +51 -51
  20. package/templates/default/package.json +49 -49
  21. package/templates/default/src/config/project.config.extension.example +23 -23
  22. package/templates/default/src/config/project.config.extension.ts +6 -6
  23. package/templates/default/src/examples/data-example.ts +86 -86
  24. package/templates/default/src/examples/load-test-data.ts +110 -110
  25. package/templates/default/src/examples/table-example.ts +97 -97
  26. package/templates/default/src/examples/table-window-load-test.ts +446 -446
  27. package/templates/default/src/examples/uns-gateway-cli.ts +10 -10
  28. package/templates/default/src/index.ts +15 -15
  29. package/templates/default/src/uns/uns-assets.ts +12 -12
  30. package/templates/default/src/uns/uns-dictionary.generated.ts +758 -758
  31. package/templates/default/src/uns/uns-measurements.generated.ts +366 -366
  32. package/templates/default/src/uns/uns-tags.ts +2 -2
  33. package/templates/default/src/uns/uns-topics.ts +2 -2
  34. package/templates/default/tsconfig.json +29 -29
  35. package/templates/python/app/README.md +8 -8
  36. package/templates/python/examples/README.md +134 -134
  37. package/templates/python/examples/api_handler.py +28 -28
  38. package/templates/python/examples/data_publish.py +11 -11
  39. package/templates/python/examples/data_subscribe.py +8 -8
  40. package/templates/python/examples/data_transformer.py +17 -17
  41. package/templates/python/examples/table_transformer.py +15 -15
  42. package/templates/python/gateway/cli.py +75 -75
  43. package/templates/python/gateway/client.py +155 -155
  44. package/templates/python/gateway/manager.py +97 -97
  45. package/templates/python/gen/__init__.py +1 -0
  46. package/templates/python/gen/uns_gateway_pb2.py +70 -0
  47. package/templates/python/gen/uns_gateway_pb2_grpc.py +312 -0
  48. package/templates/python/gitignore +47 -47
  49. package/templates/python/proto/uns-gateway.proto +102 -102
  50. package/templates/python/pyproject.toml +4 -4
  51. package/templates/python/runtime.json +4 -4
  52. package/templates/python/scripts/setup.sh +87 -87
  53. package/templates/temporal/src/examples/temporal-example.ts +37 -37
  54. package/templates/uns-dictionary/uns-dictionary.json +650 -650
  55. package/templates/uns-measurements/uns-measurements.json +360 -360
  56. package/templates/vscode/.vscode/launch.json +164 -164
  57. package/templates/vscode/.vscode/settings.json +9 -9
  58. package/templates/vscode/.vscode/tasks.json +27 -27
  59. package/templates/vscode/uns-kit.code-workspace +13 -13
@@ -1,366 +1,366 @@
1
- /* Auto-generated by generate-uns-measurements.ts. Do not edit by hand. */
2
- export const GeneratedPhysicalMeasurements = {
3
- /**
4
- * Amper
5
- */
6
- "Ampere": "A",
7
- /**
8
- * Bajti
9
- */
10
- "B": "B",
11
- /**
12
- * Bar
13
- */
14
- "Bar": "bar",
15
- /**
16
- * Bit
17
- */
18
- "Bit": "bit",
19
- /**
20
- * Bajt
21
- */
22
- "Byte": "byte",
23
- /**
24
- * Stopinje Celzija
25
- */
26
- "Celsius": "°C",
27
- /**
28
- * Centimeter na sekundo
29
- */
30
- "CentiMeterPerSecond": "cm/s",
31
- /**
32
- * Kubični meter
33
- */
34
- "CubicMeter": "m^3",
35
- /**
36
- * Kubični meter na uro
37
- */
38
- "CubicMeterPerHour": "m^3/h",
39
- /**
40
- * Kubični meter na sekundo
41
- */
42
- "CubicMeterPerSecond": "m^3/s",
43
- /**
44
- * Dan
45
- */
46
- "Day": "day",
47
- /**
48
- * Decibel
49
- */
50
- "Decibel": "dB",
51
- /**
52
- * Stopinja
53
- */
54
- "Degree": "°",
55
- /**
56
- * Stopinje Fahrenheita
57
- */
58
- "Fahrenheit": "°F",
59
- /**
60
- * Čevlji
61
- */
62
- "Feet": "ft",
63
- /**
64
- * Galona
65
- */
66
- "Gallon": "gal",
67
- /**
68
- * Gigadžul
69
- */
70
- "Gigajoule": "GJ",
71
- /**
72
- * Gram
73
- */
74
- "Gram": "g",
75
- /**
76
- * Herc
77
- */
78
- "Hertz": "Hz",
79
- /**
80
- * Ura
81
- */
82
- "Hour": "h",
83
- /**
84
- * Džul
85
- */
86
- "Joule": "J",
87
- /**
88
- * Kelvin
89
- */
90
- "Kelvin": "K",
91
- /**
92
- * Kiloamper
93
- */
94
- "KiloAmpere": "kA",
95
- /**
96
- * Kilogram
97
- */
98
- "Kilogram": "kg",
99
- /**
100
- * Kilodžul
101
- */
102
- "Kilojoule": "kJ",
103
- /**
104
- * Kilometer
105
- */
106
- "KiloMeter": "km",
107
- /**
108
- * Kilometer na uro
109
- */
110
- "KilometerPerHour": "km/h",
111
- /**
112
- * Kilovolt
113
- */
114
- "KiloVolt": "kV",
115
- /**
116
- * Kilovolt-amper
117
- */
118
- "KiloVoltAmpere": "kVA",
119
- /**
120
- * Kilovolt-reaktivni amper
121
- */
122
- "KiloVoltAmpereReactive": "kVAR",
123
- /**
124
- * Kilowatt
125
- */
126
- "KiloWatt": "kW",
127
- /**
128
- * Kilowattna ura
129
- */
130
- "KiloWattHour": "kWh",
131
- /**
132
- * Liter
133
- */
134
- "Liter": "l",
135
- /**
136
- * Megaamper
137
- */
138
- "MegaAmpere": "MA",
139
- /**
140
- * Megagram na uro
141
- */
142
- "MegaGramPerHour": "Mg/h",
143
- /**
144
- * Megadžul
145
- */
146
- "Megajoule": "MJ",
147
- /**
148
- * Megavolt
149
- */
150
- "MegaVolt": "MV",
151
- /**
152
- * Megavolt-amper
153
- */
154
- "MegaVoltAmpere": "MVA",
155
- /**
156
- * Megavolt-reaktivni amper
157
- */
158
- "MegaVoltAmpereReactive": "MVAR",
159
- /**
160
- * Megawatt
161
- */
162
- "MegaWatt": "MW",
163
- /**
164
- * Megawattna ura
165
- */
166
- "MegaWattHour": "MWh",
167
- /**
168
- * Meter
169
- */
170
- "Meter": "m",
171
- /**
172
- * Meter na uro
173
- */
174
- "MeterPerHour": "m/h",
175
- /**
176
- * Meter na minuto
177
- */
178
- "MeterPerMinute": "m/min",
179
- /**
180
- * Meter na sekundo
181
- */
182
- "MeterPerSecond": "m/s",
183
- /**
184
- * Tona
185
- */
186
- "MetricTon": "t",
187
- /**
188
- * Tona na uro
189
- */
190
- "MetricTonPerHour": "t/h",
191
- /**
192
- * Miliamper
193
- */
194
- "MiliAmpere": "mA",
195
- /**
196
- * Miligram
197
- */
198
- "Miligram": "mg",
199
- /**
200
- * Milidžul
201
- */
202
- "Milijoule": "mJ",
203
- /**
204
- * Milimeter
205
- */
206
- "MiliMeter": "mm",
207
- /**
208
- * Milimeter na sekundo
209
- */
210
- "MilimeterPerSecond": "mm/s",
211
- /**
212
- * Milivolt
213
- */
214
- "MiliVolt": "mV",
215
- /**
216
- * Milivolt-amper
217
- */
218
- "MiliVoltAmpere": "mVA",
219
- /**
220
- * Milivolt-reaktivni amper
221
- */
222
- "MiliVoltAmpereReactive": "mVAR",
223
- /**
224
- * Miliwatt
225
- */
226
- "MiliWatt": "mW",
227
- /**
228
- * Miliwattna ura
229
- */
230
- "MiliWattHour": "mWh",
231
- /**
232
- * Minuta
233
- */
234
- "Minute": "min",
235
- /**
236
- * Njuton
237
- */
238
- "Newton": "N",
239
- /**
240
- * Brez enote
241
- */
242
- "None": "",
243
- /**
244
- * Delci na milijardo
245
- */
246
- "PartsPerBillion": "ppb",
247
- /**
248
- * Delci na milijon
249
- */
250
- "PartsPerMillion": "ppm",
251
- /**
252
- * Delci na trilijon
253
- */
254
- "PartsPerTrillion": "ppt",
255
- /**
256
- * Pascal
257
- */
258
- "Pascal": "Pa",
259
- /**
260
- * Odstotek
261
- */
262
- "Percent": "percent",
263
- /**
264
- * Funt na kvadratni palec
265
- */
266
- "Psi": "psi",
267
- /**
268
- * Radian
269
- */
270
- "Radian": "rad",
271
- /**
272
- * Obratov na minuto
273
- */
274
- "RevolutionsPerMinute": "rpm",
275
- /**
276
- * Sekunda
277
- */
278
- "Second": "s",
279
- /**
280
- * Teradžul
281
- */
282
- "Terajoule": "TJ",
283
- /**
284
- * Volt
285
- */
286
- "Volt": "V",
287
- /**
288
- * Volt-amper
289
- */
290
- "VoltAmpere": "VA",
291
- /**
292
- * Volt-reaktivni amper
293
- */
294
- "VoltAmpereReactive": "VAR",
295
- /**
296
- * Watt
297
- */
298
- "Watt": "W",
299
- /**
300
- * Wattna ura
301
- */
302
- "WattHour": "Wh",
303
- } as const;
304
-
305
- export const GeneratedDataSizeMeasurements = {
306
- /**
307
- * Bit
308
- */
309
- "Bit": "bit",
310
- /**
311
- * Bajt
312
- */
313
- "Byte": "B",
314
- /**
315
- * Eksabajt
316
- */
317
- "ExaByte": "EB",
318
- /**
319
- * Gigabajt
320
- */
321
- "GigaByte": "GB",
322
- /**
323
- * Kilobajt
324
- */
325
- "KiloByte": "kB",
326
- /**
327
- * Megabajt
328
- */
329
- "MegaByte": "MB",
330
- /**
331
- * Petabajt
332
- */
333
- "PetaByte": "PB",
334
- /**
335
- * Terabajt
336
- */
337
- "TeraByte": "TB",
338
- /**
339
- * Jotabajt
340
- */
341
- "YottaByte": "YB",
342
- /**
343
- * Zetabajt
344
- */
345
- "ZettaByte": "ZB",
346
- } as const;
347
-
348
- export const GeneratedCounterMeasurements = {
349
- /**
350
- * Giga
351
- */
352
- "Giga": "G",
353
- /**
354
- * Kilo
355
- */
356
- "Kilo": "k",
357
- /**
358
- * Mega
359
- */
360
- "Mega": "M",
361
- } as const;
362
-
363
- export type GeneratedPhysicalMeasurement = typeof GeneratedPhysicalMeasurements[keyof typeof GeneratedPhysicalMeasurements];
364
- export type GeneratedDataSizeMeasurement = typeof GeneratedDataSizeMeasurements[keyof typeof GeneratedDataSizeMeasurements];
365
- export type GeneratedCounterMeasurement = typeof GeneratedCounterMeasurements[keyof typeof GeneratedCounterMeasurements];
366
- export type GeneratedMeasurementUnit = GeneratedPhysicalMeasurement | GeneratedDataSizeMeasurement | GeneratedCounterMeasurement | (string & {});
1
+ /* Auto-generated by generate-uns-measurements.ts. Do not edit by hand. */
2
+ export const GeneratedPhysicalMeasurements = {
3
+ /**
4
+ * Amper
5
+ */
6
+ "Ampere": "A",
7
+ /**
8
+ * Bajti
9
+ */
10
+ "B": "B",
11
+ /**
12
+ * Bar
13
+ */
14
+ "Bar": "bar",
15
+ /**
16
+ * Bit
17
+ */
18
+ "Bit": "bit",
19
+ /**
20
+ * Bajt
21
+ */
22
+ "Byte": "byte",
23
+ /**
24
+ * Stopinje Celzija
25
+ */
26
+ "Celsius": "°C",
27
+ /**
28
+ * Centimeter na sekundo
29
+ */
30
+ "CentiMeterPerSecond": "cm/s",
31
+ /**
32
+ * Kubični meter
33
+ */
34
+ "CubicMeter": "m^3",
35
+ /**
36
+ * Kubični meter na uro
37
+ */
38
+ "CubicMeterPerHour": "m^3/h",
39
+ /**
40
+ * Kubični meter na sekundo
41
+ */
42
+ "CubicMeterPerSecond": "m^3/s",
43
+ /**
44
+ * Dan
45
+ */
46
+ "Day": "day",
47
+ /**
48
+ * Decibel
49
+ */
50
+ "Decibel": "dB",
51
+ /**
52
+ * Stopinja
53
+ */
54
+ "Degree": "°",
55
+ /**
56
+ * Stopinje Fahrenheita
57
+ */
58
+ "Fahrenheit": "°F",
59
+ /**
60
+ * Čevlji
61
+ */
62
+ "Feet": "ft",
63
+ /**
64
+ * Galona
65
+ */
66
+ "Gallon": "gal",
67
+ /**
68
+ * Gigadžul
69
+ */
70
+ "Gigajoule": "GJ",
71
+ /**
72
+ * Gram
73
+ */
74
+ "Gram": "g",
75
+ /**
76
+ * Herc
77
+ */
78
+ "Hertz": "Hz",
79
+ /**
80
+ * Ura
81
+ */
82
+ "Hour": "h",
83
+ /**
84
+ * Džul
85
+ */
86
+ "Joule": "J",
87
+ /**
88
+ * Kelvin
89
+ */
90
+ "Kelvin": "K",
91
+ /**
92
+ * Kiloamper
93
+ */
94
+ "KiloAmpere": "kA",
95
+ /**
96
+ * Kilogram
97
+ */
98
+ "Kilogram": "kg",
99
+ /**
100
+ * Kilodžul
101
+ */
102
+ "Kilojoule": "kJ",
103
+ /**
104
+ * Kilometer
105
+ */
106
+ "KiloMeter": "km",
107
+ /**
108
+ * Kilometer na uro
109
+ */
110
+ "KilometerPerHour": "km/h",
111
+ /**
112
+ * Kilovolt
113
+ */
114
+ "KiloVolt": "kV",
115
+ /**
116
+ * Kilovolt-amper
117
+ */
118
+ "KiloVoltAmpere": "kVA",
119
+ /**
120
+ * Kilovolt-reaktivni amper
121
+ */
122
+ "KiloVoltAmpereReactive": "kVAR",
123
+ /**
124
+ * Kilowatt
125
+ */
126
+ "KiloWatt": "kW",
127
+ /**
128
+ * Kilowattna ura
129
+ */
130
+ "KiloWattHour": "kWh",
131
+ /**
132
+ * Liter
133
+ */
134
+ "Liter": "l",
135
+ /**
136
+ * Megaamper
137
+ */
138
+ "MegaAmpere": "MA",
139
+ /**
140
+ * Megagram na uro
141
+ */
142
+ "MegaGramPerHour": "Mg/h",
143
+ /**
144
+ * Megadžul
145
+ */
146
+ "Megajoule": "MJ",
147
+ /**
148
+ * Megavolt
149
+ */
150
+ "MegaVolt": "MV",
151
+ /**
152
+ * Megavolt-amper
153
+ */
154
+ "MegaVoltAmpere": "MVA",
155
+ /**
156
+ * Megavolt-reaktivni amper
157
+ */
158
+ "MegaVoltAmpereReactive": "MVAR",
159
+ /**
160
+ * Megawatt
161
+ */
162
+ "MegaWatt": "MW",
163
+ /**
164
+ * Megawattna ura
165
+ */
166
+ "MegaWattHour": "MWh",
167
+ /**
168
+ * Meter
169
+ */
170
+ "Meter": "m",
171
+ /**
172
+ * Meter na uro
173
+ */
174
+ "MeterPerHour": "m/h",
175
+ /**
176
+ * Meter na minuto
177
+ */
178
+ "MeterPerMinute": "m/min",
179
+ /**
180
+ * Meter na sekundo
181
+ */
182
+ "MeterPerSecond": "m/s",
183
+ /**
184
+ * Tona
185
+ */
186
+ "MetricTon": "t",
187
+ /**
188
+ * Tona na uro
189
+ */
190
+ "MetricTonPerHour": "t/h",
191
+ /**
192
+ * Miliamper
193
+ */
194
+ "MiliAmpere": "mA",
195
+ /**
196
+ * Miligram
197
+ */
198
+ "Miligram": "mg",
199
+ /**
200
+ * Milidžul
201
+ */
202
+ "Milijoule": "mJ",
203
+ /**
204
+ * Milimeter
205
+ */
206
+ "MiliMeter": "mm",
207
+ /**
208
+ * Milimeter na sekundo
209
+ */
210
+ "MilimeterPerSecond": "mm/s",
211
+ /**
212
+ * Milivolt
213
+ */
214
+ "MiliVolt": "mV",
215
+ /**
216
+ * Milivolt-amper
217
+ */
218
+ "MiliVoltAmpere": "mVA",
219
+ /**
220
+ * Milivolt-reaktivni amper
221
+ */
222
+ "MiliVoltAmpereReactive": "mVAR",
223
+ /**
224
+ * Miliwatt
225
+ */
226
+ "MiliWatt": "mW",
227
+ /**
228
+ * Miliwattna ura
229
+ */
230
+ "MiliWattHour": "mWh",
231
+ /**
232
+ * Minuta
233
+ */
234
+ "Minute": "min",
235
+ /**
236
+ * Njuton
237
+ */
238
+ "Newton": "N",
239
+ /**
240
+ * Brez enote
241
+ */
242
+ "None": "",
243
+ /**
244
+ * Delci na milijardo
245
+ */
246
+ "PartsPerBillion": "ppb",
247
+ /**
248
+ * Delci na milijon
249
+ */
250
+ "PartsPerMillion": "ppm",
251
+ /**
252
+ * Delci na trilijon
253
+ */
254
+ "PartsPerTrillion": "ppt",
255
+ /**
256
+ * Pascal
257
+ */
258
+ "Pascal": "Pa",
259
+ /**
260
+ * Odstotek
261
+ */
262
+ "Percent": "percent",
263
+ /**
264
+ * Funt na kvadratni palec
265
+ */
266
+ "Psi": "psi",
267
+ /**
268
+ * Radian
269
+ */
270
+ "Radian": "rad",
271
+ /**
272
+ * Obratov na minuto
273
+ */
274
+ "RevolutionsPerMinute": "rpm",
275
+ /**
276
+ * Sekunda
277
+ */
278
+ "Second": "s",
279
+ /**
280
+ * Teradžul
281
+ */
282
+ "Terajoule": "TJ",
283
+ /**
284
+ * Volt
285
+ */
286
+ "Volt": "V",
287
+ /**
288
+ * Volt-amper
289
+ */
290
+ "VoltAmpere": "VA",
291
+ /**
292
+ * Volt-reaktivni amper
293
+ */
294
+ "VoltAmpereReactive": "VAR",
295
+ /**
296
+ * Watt
297
+ */
298
+ "Watt": "W",
299
+ /**
300
+ * Wattna ura
301
+ */
302
+ "WattHour": "Wh",
303
+ } as const;
304
+
305
+ export const GeneratedDataSizeMeasurements = {
306
+ /**
307
+ * Bit
308
+ */
309
+ "Bit": "bit",
310
+ /**
311
+ * Bajt
312
+ */
313
+ "Byte": "B",
314
+ /**
315
+ * Eksabajt
316
+ */
317
+ "ExaByte": "EB",
318
+ /**
319
+ * Gigabajt
320
+ */
321
+ "GigaByte": "GB",
322
+ /**
323
+ * Kilobajt
324
+ */
325
+ "KiloByte": "kB",
326
+ /**
327
+ * Megabajt
328
+ */
329
+ "MegaByte": "MB",
330
+ /**
331
+ * Petabajt
332
+ */
333
+ "PetaByte": "PB",
334
+ /**
335
+ * Terabajt
336
+ */
337
+ "TeraByte": "TB",
338
+ /**
339
+ * Jotabajt
340
+ */
341
+ "YottaByte": "YB",
342
+ /**
343
+ * Zetabajt
344
+ */
345
+ "ZettaByte": "ZB",
346
+ } as const;
347
+
348
+ export const GeneratedCounterMeasurements = {
349
+ /**
350
+ * Giga
351
+ */
352
+ "Giga": "G",
353
+ /**
354
+ * Kilo
355
+ */
356
+ "Kilo": "k",
357
+ /**
358
+ * Mega
359
+ */
360
+ "Mega": "M",
361
+ } as const;
362
+
363
+ export type GeneratedPhysicalMeasurement = typeof GeneratedPhysicalMeasurements[keyof typeof GeneratedPhysicalMeasurements];
364
+ export type GeneratedDataSizeMeasurement = typeof GeneratedDataSizeMeasurements[keyof typeof GeneratedDataSizeMeasurements];
365
+ export type GeneratedCounterMeasurement = typeof GeneratedCounterMeasurements[keyof typeof GeneratedCounterMeasurements];
366
+ export type GeneratedMeasurementUnit = GeneratedPhysicalMeasurement | GeneratedDataSizeMeasurement | GeneratedCounterMeasurement | (string & {});