@uns-kit/core 1.0.11 → 1.0.13

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 (30) hide show
  1. package/dist/tools/generate-uns-dictionary.js +24 -1
  2. package/dist/tools/generate-uns-dictionary.js.map +1 -1
  3. package/dist/tools/generate-uns-measurements.d.ts +3 -0
  4. package/dist/tools/generate-uns-measurements.d.ts.map +1 -0
  5. package/dist/tools/generate-uns-measurements.js +104 -0
  6. package/dist/tools/generate-uns-measurements.js.map +1 -0
  7. package/dist/uns/uns-dictionary.generated.d.ts +2 -0
  8. package/dist/uns/uns-dictionary.generated.d.ts.map +1 -1
  9. package/dist/uns/uns-dictionary.generated.js +1 -0
  10. package/dist/uns/uns-dictionary.generated.js.map +1 -1
  11. package/dist/uns/uns-interfaces.d.ts +58 -0
  12. package/dist/uns/uns-interfaces.d.ts.map +1 -1
  13. package/dist/uns/uns-interfaces.js.map +1 -1
  14. package/dist/uns/uns-measurements.d.ts +99 -95
  15. package/dist/uns/uns-measurements.d.ts.map +1 -1
  16. package/dist/uns/uns-measurements.generated.d.ts +99 -0
  17. package/dist/uns/uns-measurements.generated.d.ts.map +1 -0
  18. package/dist/uns/uns-measurements.generated.js +96 -0
  19. package/dist/uns/uns-measurements.generated.js.map +1 -0
  20. package/dist/uns/uns-measurements.js +4 -146
  21. package/dist/uns/uns-measurements.js.map +1 -1
  22. package/dist/uns/uns-object.d.ts +1 -0
  23. package/dist/uns/uns-object.d.ts.map +1 -1
  24. package/dist/uns/uns-object.js +4 -1
  25. package/dist/uns/uns-object.js.map +1 -1
  26. package/dist/uns-mqtt/uns-mqtt-proxy.d.ts +2 -2
  27. package/dist/uns-mqtt/uns-mqtt-proxy.d.ts.map +1 -1
  28. package/dist/uns-mqtt/uns-mqtt-proxy.js +66 -32
  29. package/dist/uns-mqtt/uns-mqtt-proxy.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,96 +1,100 @@
1
- export type MeasurementUnit = PhysicalMeasurements | DataSizeMeasurements | (string & {});
2
- export declare enum DataSizeMeasurements {
3
- Bit = "bit",
4
- Byte = "B",
5
- KiloByte = "kB",
6
- MegaByte = "MB",
7
- GigaByte = "GB",
8
- TeraByte = "TB",
9
- PetaByte = "PB",
10
- ExaByte = "EB",
11
- ZettaByte = "ZB",
12
- YottaByte = "YB"
13
- }
14
- export declare enum CounterMeasurements {
15
- Kilo = "k",
16
- Mega = "M",
17
- Giga = "G"
18
- }
19
- export declare enum PhysicalMeasurements {
20
- None = "",
21
- MiliMeter = "mm",
22
- Meter = "m",
23
- KiloMeter = "km",
24
- Feet = "ft",
25
- Second = "s",
26
- Minute = "min",
27
- Hour = "h",
28
- Day = "day",
29
- Hertz = "Hz",
30
- CubicMeter = "m^3",
31
- Liter = "l",
32
- Gallon = "gal",
33
- Psi = "psi",
34
- Pascal = "Pa",
35
- Bar = "bar",
36
- Celsius = "\u00B0C",
37
- Fahrenheit = "\u00B0F",
38
- Kelvin = "K",
39
- Milijoule = "mJ",
40
- Joule = "J",
41
- Kilojoule = "kJ",
42
- Megajoule = "MJ",
43
- Gigajoule = "GJ",
44
- Terajoule = "TJ",
45
- Newton = "N",
46
- Bit = "bit",
47
- Byte = "byte",
48
- B = "B",
49
- MilimeterPerSecond = "mm/s",
50
- MeterPerSecond = "m/s",
51
- MeterPerMinute = "m/min",
52
- CentiMeterPerSecond = "cm/s",
53
- MeterPerHour = "m/h",
54
- KilometerPerHour = "km/h",
55
- RevolutionsPerMinute = "rpm",
56
- Percent = "percent",
57
- PartsPerMillion = "ppm",
58
- PartsPerBillion = "ppb",
59
- PartsPerTrillion = "ppt",
60
- Decibel = "dB",
61
- Degree = "\u00B0",
62
- Radian = "rad",
63
- Miligram = "mg",
64
- Gram = "g",
65
- Kilogram = "kg",
66
- MetricTon = "t",
67
- MiliVolt = "mV",
68
- Volt = "V",
69
- KiloVolt = "kV",
70
- MegaVolt = "MV",
71
- MiliAmpere = "mA",
72
- Ampere = "A",
73
- KiloAmpere = "kA",
74
- MegaAmpere = "MA",
75
- MiliWatt = "mW",
76
- Watt = "W",
77
- KiloWatt = "kW",
78
- MegaWatt = "MW",
79
- MiliWattHour = "mWh",
80
- WattHour = "Wh",
81
- KiloWattHour = "kWh",
82
- MegaWattHour = "MWh",
83
- MiliVoltAmpere = "mVA",
84
- VoltAmpere = "VA",
85
- KiloVoltAmpere = "kVA",
86
- MegaVoltAmpere = "MVA",
87
- MiliVoltAmpereReactive = "mVAR",
88
- VoltAmpereReactive = "VAR",
89
- KiloVoltAmpereReactive = "kVAR",
90
- MegaVoltAmpereReactive = "MVAR",
91
- CubicMeterPerHour = "m^3/h",
92
- CubicMeterPerSecond = "m^3/s",
93
- MegaGramPerHour = "Mg/h",
94
- MetricTonPerHour = "t/h"
95
- }
1
+ import { GeneratedCounterMeasurement, GeneratedDataSizeMeasurement, GeneratedMeasurementUnit, GeneratedPhysicalMeasurement } from "./uns-measurements.generated.js";
2
+ export declare const PhysicalMeasurements: {
3
+ readonly None: "";
4
+ readonly MiliMeter: "mm";
5
+ readonly Meter: "m";
6
+ readonly KiloMeter: "km";
7
+ readonly Feet: "ft";
8
+ readonly Second: "s";
9
+ readonly Minute: "min";
10
+ readonly Hour: "h";
11
+ readonly Day: "day";
12
+ readonly Hertz: "Hz";
13
+ readonly CubicMeter: "m^3";
14
+ readonly Liter: "l";
15
+ readonly Gallon: "gal";
16
+ readonly Psi: "psi";
17
+ readonly Pascal: "Pa";
18
+ readonly Bar: "bar";
19
+ readonly Celsius: "°C";
20
+ readonly Fahrenheit: "°F";
21
+ readonly Kelvin: "K";
22
+ readonly Milijoule: "mJ";
23
+ readonly Joule: "J";
24
+ readonly Kilojoule: "kJ";
25
+ readonly Megajoule: "MJ";
26
+ readonly Gigajoule: "GJ";
27
+ readonly Terajoule: "TJ";
28
+ readonly Newton: "N";
29
+ readonly Bit: "bit";
30
+ readonly Byte: "byte";
31
+ readonly B: "B";
32
+ readonly MilimeterPerSecond: "mm/s";
33
+ readonly MeterPerSecond: "m/s";
34
+ readonly MeterPerMinute: "m/min";
35
+ readonly CentiMeterPerSecond: "cm/s";
36
+ readonly MeterPerHour: "m/h";
37
+ readonly KilometerPerHour: "km/h";
38
+ readonly RevolutionsPerMinute: "rpm";
39
+ readonly Percent: "percent";
40
+ readonly PartsPerMillion: "ppm";
41
+ readonly PartsPerBillion: "ppb";
42
+ readonly PartsPerTrillion: "ppt";
43
+ readonly Decibel: "dB";
44
+ readonly Degree: "°";
45
+ readonly Radian: "rad";
46
+ readonly Miligram: "mg";
47
+ readonly Gram: "g";
48
+ readonly Kilogram: "kg";
49
+ readonly MetricTon: "t";
50
+ readonly MiliVolt: "mV";
51
+ readonly Volt: "V";
52
+ readonly KiloVolt: "kV";
53
+ readonly MegaVolt: "MV";
54
+ readonly MiliAmpere: "mA";
55
+ readonly Ampere: "A";
56
+ readonly KiloAmpere: "kA";
57
+ readonly MegaAmpere: "MA";
58
+ readonly MiliWatt: "mW";
59
+ readonly Watt: "W";
60
+ readonly KiloWatt: "kW";
61
+ readonly MegaWatt: "MW";
62
+ readonly MiliWattHour: "mWh";
63
+ readonly WattHour: "Wh";
64
+ readonly KiloWattHour: "kWh";
65
+ readonly MegaWattHour: "MWh";
66
+ readonly MiliVoltAmpere: "mVA";
67
+ readonly VoltAmpere: "VA";
68
+ readonly KiloVoltAmpere: "kVA";
69
+ readonly MegaVoltAmpere: "MVA";
70
+ readonly MiliVoltAmpereReactive: "mVAR";
71
+ readonly VoltAmpereReactive: "VAR";
72
+ readonly KiloVoltAmpereReactive: "kVAR";
73
+ readonly MegaVoltAmpereReactive: "MVAR";
74
+ readonly CubicMeterPerHour: "m^3/h";
75
+ readonly CubicMeterPerSecond: "m^3/s";
76
+ readonly MegaGramPerHour: "Mg/h";
77
+ readonly MetricTonPerHour: "t/h";
78
+ };
79
+ export type PhysicalMeasurements = GeneratedPhysicalMeasurement;
80
+ export declare const DataSizeMeasurements: {
81
+ readonly Bit: "bit";
82
+ readonly Byte: "B";
83
+ readonly KiloByte: "kB";
84
+ readonly MegaByte: "MB";
85
+ readonly GigaByte: "GB";
86
+ readonly TeraByte: "TB";
87
+ readonly PetaByte: "PB";
88
+ readonly ExaByte: "EB";
89
+ readonly ZettaByte: "ZB";
90
+ readonly YottaByte: "YB";
91
+ };
92
+ export type DataSizeMeasurements = GeneratedDataSizeMeasurement;
93
+ export declare const CounterMeasurements: {
94
+ readonly Kilo: "k";
95
+ readonly Mega: "M";
96
+ readonly Giga: "G";
97
+ };
98
+ export type CounterMeasurements = GeneratedCounterMeasurement;
99
+ export type MeasurementUnit = GeneratedMeasurementUnit;
96
100
  //# sourceMappingURL=uns-measurements.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uns-measurements.d.ts","sourceRoot":"","sources":["../../src/uns/uns-measurements.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,oBAAoB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAG1F,oBAAY,oBAAoB;IAC9B,GAAG,QAAQ;IACX,IAAI,MAAM;IACV,QAAQ,OAAO;IACf,QAAQ,OAAO;IACf,QAAQ,OAAO;IACf,QAAQ,OAAO;IACf,QAAQ,OAAO;IACf,OAAO,OAAO;IACd,SAAS,OAAO;IAChB,SAAS,OAAO;CACjB;AAGD,oBAAY,mBAAmB;IAC7B,IAAI,MAAM;IACV,IAAI,MAAM;IACV,IAAI,MAAM;CACX;AAGD,oBAAY,oBAAoB;IAC9B,IAAI,KAAK;IAGT,SAAS,OAAO;IAChB,KAAK,MAAM;IACX,SAAS,OAAO;IAChB,IAAI,OAAO;IAIX,MAAM,MAAM;IACZ,MAAM,QAAQ;IACd,IAAI,MAAM;IACV,GAAG,QAAQ;IAIX,KAAK,OAAO;IAIZ,UAAU,QAAQ;IAClB,KAAK,MAAM;IACX,MAAM,QAAQ;IAId,GAAG,QAAQ;IACX,MAAM,OAAO;IACb,GAAG,QAAQ;IAIX,OAAO,YAAO;IAC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B,EAE5B,wBAAwB,EACxB,4BAA4B,EAE7B,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAAgC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;CAA+B,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,99 @@
1
+ export declare const GeneratedPhysicalMeasurements: {
2
+ readonly None: "";
3
+ readonly MiliMeter: "mm";
4
+ readonly Meter: "m";
5
+ readonly KiloMeter: "km";
6
+ readonly Feet: "ft";
7
+ readonly Second: "s";
8
+ readonly Minute: "min";
9
+ readonly Hour: "h";
10
+ readonly Day: "day";
11
+ readonly Hertz: "Hz";
12
+ readonly CubicMeter: "m^3";
13
+ readonly Liter: "l";
14
+ readonly Gallon: "gal";
15
+ readonly Psi: "psi";
16
+ readonly Pascal: "Pa";
17
+ readonly Bar: "bar";
18
+ readonly Celsius: "°C";
19
+ readonly Fahrenheit: "°F";
20
+ readonly Kelvin: "K";
21
+ readonly Milijoule: "mJ";
22
+ readonly Joule: "J";
23
+ readonly Kilojoule: "kJ";
24
+ readonly Megajoule: "MJ";
25
+ readonly Gigajoule: "GJ";
26
+ readonly Terajoule: "TJ";
27
+ readonly Newton: "N";
28
+ readonly Bit: "bit";
29
+ readonly Byte: "byte";
30
+ readonly B: "B";
31
+ readonly MilimeterPerSecond: "mm/s";
32
+ readonly MeterPerSecond: "m/s";
33
+ readonly MeterPerMinute: "m/min";
34
+ readonly CentiMeterPerSecond: "cm/s";
35
+ readonly MeterPerHour: "m/h";
36
+ readonly KilometerPerHour: "km/h";
37
+ readonly RevolutionsPerMinute: "rpm";
38
+ readonly Percent: "percent";
39
+ readonly PartsPerMillion: "ppm";
40
+ readonly PartsPerBillion: "ppb";
41
+ readonly PartsPerTrillion: "ppt";
42
+ readonly Decibel: "dB";
43
+ readonly Degree: "°";
44
+ readonly Radian: "rad";
45
+ readonly Miligram: "mg";
46
+ readonly Gram: "g";
47
+ readonly Kilogram: "kg";
48
+ readonly MetricTon: "t";
49
+ readonly MiliVolt: "mV";
50
+ readonly Volt: "V";
51
+ readonly KiloVolt: "kV";
52
+ readonly MegaVolt: "MV";
53
+ readonly MiliAmpere: "mA";
54
+ readonly Ampere: "A";
55
+ readonly KiloAmpere: "kA";
56
+ readonly MegaAmpere: "MA";
57
+ readonly MiliWatt: "mW";
58
+ readonly Watt: "W";
59
+ readonly KiloWatt: "kW";
60
+ readonly MegaWatt: "MW";
61
+ readonly MiliWattHour: "mWh";
62
+ readonly WattHour: "Wh";
63
+ readonly KiloWattHour: "kWh";
64
+ readonly MegaWattHour: "MWh";
65
+ readonly MiliVoltAmpere: "mVA";
66
+ readonly VoltAmpere: "VA";
67
+ readonly KiloVoltAmpere: "kVA";
68
+ readonly MegaVoltAmpere: "MVA";
69
+ readonly MiliVoltAmpereReactive: "mVAR";
70
+ readonly VoltAmpereReactive: "VAR";
71
+ readonly KiloVoltAmpereReactive: "kVAR";
72
+ readonly MegaVoltAmpereReactive: "MVAR";
73
+ readonly CubicMeterPerHour: "m^3/h";
74
+ readonly CubicMeterPerSecond: "m^3/s";
75
+ readonly MegaGramPerHour: "Mg/h";
76
+ readonly MetricTonPerHour: "t/h";
77
+ };
78
+ export declare const GeneratedDataSizeMeasurements: {
79
+ readonly Bit: "bit";
80
+ readonly Byte: "B";
81
+ readonly KiloByte: "kB";
82
+ readonly MegaByte: "MB";
83
+ readonly GigaByte: "GB";
84
+ readonly TeraByte: "TB";
85
+ readonly PetaByte: "PB";
86
+ readonly ExaByte: "EB";
87
+ readonly ZettaByte: "ZB";
88
+ readonly YottaByte: "YB";
89
+ };
90
+ export declare const GeneratedCounterMeasurements: {
91
+ readonly Kilo: "k";
92
+ readonly Mega: "M";
93
+ readonly Giga: "G";
94
+ };
95
+ export type GeneratedPhysicalMeasurement = typeof GeneratedPhysicalMeasurements[keyof typeof GeneratedPhysicalMeasurements];
96
+ export type GeneratedDataSizeMeasurement = typeof GeneratedDataSizeMeasurements[keyof typeof GeneratedDataSizeMeasurements];
97
+ export type GeneratedCounterMeasurement = typeof GeneratedCounterMeasurements[keyof typeof GeneratedCounterMeasurements];
98
+ export type GeneratedMeasurementUnit = GeneratedPhysicalMeasurement | GeneratedDataSizeMeasurement | GeneratedCounterMeasurement | (string & {});
99
+ //# sourceMappingURL=uns-measurements.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uns-measurements.generated.d.ts","sourceRoot":"","sources":["../../src/uns/uns-measurements.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EhC,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;CAWhC,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;CAI/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAC5H,MAAM,MAAM,4BAA4B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAC5H,MAAM,MAAM,2BAA2B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AACzH,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,GAAG,4BAA4B,GAAG,2BAA2B,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -0,0 +1,96 @@
1
+ /* Auto-generated placeholder. Run generate-uns-measurements.ts to regenerate. */
2
+ export const GeneratedPhysicalMeasurements = {
3
+ "None": "",
4
+ "MiliMeter": "mm",
5
+ "Meter": "m",
6
+ "KiloMeter": "km",
7
+ "Feet": "ft",
8
+ "Second": "s",
9
+ "Minute": "min",
10
+ "Hour": "h",
11
+ "Day": "day",
12
+ "Hertz": "Hz",
13
+ "CubicMeter": "m^3",
14
+ "Liter": "l",
15
+ "Gallon": "gal",
16
+ "Psi": "psi",
17
+ "Pascal": "Pa",
18
+ "Bar": "bar",
19
+ "Celsius": "°C",
20
+ "Fahrenheit": "°F",
21
+ "Kelvin": "K",
22
+ "Milijoule": "mJ",
23
+ "Joule": "J",
24
+ "Kilojoule": "kJ",
25
+ "Megajoule": "MJ",
26
+ "Gigajoule": "GJ",
27
+ "Terajoule": "TJ",
28
+ "Newton": "N",
29
+ "Bit": "bit",
30
+ "Byte": "byte",
31
+ "B": "B",
32
+ "MilimeterPerSecond": "mm/s",
33
+ "MeterPerSecond": "m/s",
34
+ "MeterPerMinute": "m/min",
35
+ "CentiMeterPerSecond": "cm/s",
36
+ "MeterPerHour": "m/h",
37
+ "KilometerPerHour": "km/h",
38
+ "RevolutionsPerMinute": "rpm",
39
+ "Percent": "percent",
40
+ "PartsPerMillion": "ppm",
41
+ "PartsPerBillion": "ppb",
42
+ "PartsPerTrillion": "ppt",
43
+ "Decibel": "dB",
44
+ "Degree": "°",
45
+ "Radian": "rad",
46
+ "Miligram": "mg",
47
+ "Gram": "g",
48
+ "Kilogram": "kg",
49
+ "MetricTon": "t",
50
+ "MiliVolt": "mV",
51
+ "Volt": "V",
52
+ "KiloVolt": "kV",
53
+ "MegaVolt": "MV",
54
+ "MiliAmpere": "mA",
55
+ "Ampere": "A",
56
+ "KiloAmpere": "kA",
57
+ "MegaAmpere": "MA",
58
+ "MiliWatt": "mW",
59
+ "Watt": "W",
60
+ "KiloWatt": "kW",
61
+ "MegaWatt": "MW",
62
+ "MiliWattHour": "mWh",
63
+ "WattHour": "Wh",
64
+ "KiloWattHour": "kWh",
65
+ "MegaWattHour": "MWh",
66
+ "MiliVoltAmpere": "mVA",
67
+ "VoltAmpere": "VA",
68
+ "KiloVoltAmpere": "kVA",
69
+ "MegaVoltAmpere": "MVA",
70
+ "MiliVoltAmpereReactive": "mVAR",
71
+ "VoltAmpereReactive": "VAR",
72
+ "KiloVoltAmpereReactive": "kVAR",
73
+ "MegaVoltAmpereReactive": "MVAR",
74
+ "CubicMeterPerHour": "m^3/h",
75
+ "CubicMeterPerSecond": "m^3/s",
76
+ "MegaGramPerHour": "Mg/h",
77
+ "MetricTonPerHour": "t/h",
78
+ };
79
+ export const GeneratedDataSizeMeasurements = {
80
+ "Bit": "bit",
81
+ "Byte": "B",
82
+ "KiloByte": "kB",
83
+ "MegaByte": "MB",
84
+ "GigaByte": "GB",
85
+ "TeraByte": "TB",
86
+ "PetaByte": "PB",
87
+ "ExaByte": "EB",
88
+ "ZettaByte": "ZB",
89
+ "YottaByte": "YB",
90
+ };
91
+ export const GeneratedCounterMeasurements = {
92
+ "Kilo": "k",
93
+ "Mega": "M",
94
+ "Giga": "G",
95
+ };
96
+ //# sourceMappingURL=uns-measurements.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uns-measurements.generated.js","sourceRoot":"","sources":["../../src/uns/uns-measurements.generated.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,MAAM,EAAE,EAAE;IACV,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,GAAG;IACb,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,IAAI;IACb,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,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vB,YAAY,EAAE,IAAI;IAClB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,wBAAwB,EAAE,MAAM;IAChC,oBAAoB,EAAE,KAAK;IAC3B,wBAAwB,EAAE,MAAM;IAChC,wBAAwB,EAAE,MAAM;IAChC,mBAAmB,EAAE,OAAO;IAC5B,qBAAqB,EAAE,OAAO;IAC9B,iBAAiB,EAAE,MAAM;IACzB,kBAAkB,EAAE,KAAK;CACjB,CAAC;AAEX,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,GAAG;IACX,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,IAAI;CACT,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;CACH,CAAC","sourcesContent":["/* Auto-generated placeholder. Run generate-uns-measurements.ts to regenerate. */\nexport const GeneratedPhysicalMeasurements = {\n \"None\": \"\",\n \"MiliMeter\": \"mm\",\n \"Meter\": \"m\",\n \"KiloMeter\": \"km\",\n \"Feet\": \"ft\",\n \"Second\": \"s\",\n \"Minute\": \"min\",\n \"Hour\": \"h\",\n \"Day\": \"day\",\n \"Hertz\": \"Hz\",\n \"CubicMeter\": \"m^3\",\n \"Liter\": \"l\",\n \"Gallon\": \"gal\",\n \"Psi\": \"psi\",\n \"Pascal\": \"Pa\",\n \"Bar\": \"bar\",\n \"Celsius\": \"°C\",\n \"Fahrenheit\": \"°F\",\n \"Kelvin\": \"K\",\n \"Milijoule\": \"mJ\",\n \"Joule\": \"J\",\n \"Kilojoule\": \"kJ\",\n \"Megajoule\": \"MJ\",\n \"Gigajoule\": \"GJ\",\n \"Terajoule\": \"TJ\",\n \"Newton\": \"N\",\n \"Bit\": \"bit\",\n \"Byte\": \"byte\",\n \"B\": \"B\",\n \"MilimeterPerSecond\": \"mm/s\",\n \"MeterPerSecond\": \"m/s\",\n \"MeterPerMinute\": \"m/min\",\n \"CentiMeterPerSecond\": \"cm/s\",\n \"MeterPerHour\": \"m/h\",\n \"KilometerPerHour\": \"km/h\",\n \"RevolutionsPerMinute\": \"rpm\",\n \"Percent\": \"percent\",\n \"PartsPerMillion\": \"ppm\",\n \"PartsPerBillion\": \"ppb\",\n \"PartsPerTrillion\": \"ppt\",\n \"Decibel\": \"dB\",\n \"Degree\": \"°\",\n \"Radian\": \"rad\",\n \"Miligram\": \"mg\",\n \"Gram\": \"g\",\n \"Kilogram\": \"kg\",\n \"MetricTon\": \"t\",\n \"MiliVolt\": \"mV\",\n \"Volt\": \"V\",\n \"KiloVolt\": \"kV\",\n \"MegaVolt\": \"MV\",\n \"MiliAmpere\": \"mA\",\n \"Ampere\": \"A\",\n \"KiloAmpere\": \"kA\",\n \"MegaAmpere\": \"MA\",\n \"MiliWatt\": \"mW\",\n \"Watt\": \"W\",\n \"KiloWatt\": \"kW\",\n \"MegaWatt\": \"MW\",\n \"MiliWattHour\": \"mWh\",\n \"WattHour\": \"Wh\",\n \"KiloWattHour\": \"kWh\",\n \"MegaWattHour\": \"MWh\",\n \"MiliVoltAmpere\": \"mVA\",\n \"VoltAmpere\": \"VA\",\n \"KiloVoltAmpere\": \"kVA\",\n \"MegaVoltAmpere\": \"MVA\",\n \"MiliVoltAmpereReactive\": \"mVAR\",\n \"VoltAmpereReactive\": \"VAR\",\n \"KiloVoltAmpereReactive\": \"kVAR\",\n \"MegaVoltAmpereReactive\": \"MVAR\",\n \"CubicMeterPerHour\": \"m^3/h\",\n \"CubicMeterPerSecond\": \"m^3/s\",\n \"MegaGramPerHour\": \"Mg/h\",\n \"MetricTonPerHour\": \"t/h\",\n} as const;\n\nexport const GeneratedDataSizeMeasurements = {\n \"Bit\": \"bit\",\n \"Byte\": \"B\",\n \"KiloByte\": \"kB\",\n \"MegaByte\": \"MB\",\n \"GigaByte\": \"GB\",\n \"TeraByte\": \"TB\",\n \"PetaByte\": \"PB\",\n \"ExaByte\": \"EB\",\n \"ZettaByte\": \"ZB\",\n \"YottaByte\": \"YB\",\n} as const;\n\nexport const GeneratedCounterMeasurements = {\n \"Kilo\": \"k\",\n \"Mega\": \"M\",\n \"Giga\": \"G\",\n} as const;\n\nexport type GeneratedPhysicalMeasurement = typeof GeneratedPhysicalMeasurements[keyof typeof GeneratedPhysicalMeasurements];\nexport type GeneratedDataSizeMeasurement = typeof GeneratedDataSizeMeasurements[keyof typeof GeneratedDataSizeMeasurements];\nexport type GeneratedCounterMeasurement = typeof GeneratedCounterMeasurements[keyof typeof GeneratedCounterMeasurements];\nexport type GeneratedMeasurementUnit = GeneratedPhysicalMeasurement | GeneratedDataSizeMeasurement | GeneratedCounterMeasurement | (string & {});\n"]}
@@ -1,147 +1,5 @@
1
- // Data Size
2
- export var DataSizeMeasurements;
3
- (function (DataSizeMeasurements) {
4
- DataSizeMeasurements["Bit"] = "bit";
5
- DataSizeMeasurements["Byte"] = "B";
6
- DataSizeMeasurements["KiloByte"] = "kB";
7
- DataSizeMeasurements["MegaByte"] = "MB";
8
- DataSizeMeasurements["GigaByte"] = "GB";
9
- DataSizeMeasurements["TeraByte"] = "TB";
10
- DataSizeMeasurements["PetaByte"] = "PB";
11
- DataSizeMeasurements["ExaByte"] = "EB";
12
- DataSizeMeasurements["ZettaByte"] = "ZB";
13
- DataSizeMeasurements["YottaByte"] = "YB";
14
- })(DataSizeMeasurements || (DataSizeMeasurements = {}));
15
- // Counter Measurements
16
- export var CounterMeasurements;
17
- (function (CounterMeasurements) {
18
- CounterMeasurements["Kilo"] = "k";
19
- CounterMeasurements["Mega"] = "M";
20
- CounterMeasurements["Giga"] = "G";
21
- })(CounterMeasurements || (CounterMeasurements = {}));
22
- // Physical Measurements
23
- export var PhysicalMeasurements;
24
- (function (PhysicalMeasurements) {
25
- PhysicalMeasurements["None"] = "";
26
- // Length
27
- // -------------------------------------------------
28
- PhysicalMeasurements["MiliMeter"] = "mm";
29
- PhysicalMeasurements["Meter"] = "m";
30
- PhysicalMeasurements["KiloMeter"] = "km";
31
- PhysicalMeasurements["Feet"] = "ft";
32
- // Time
33
- // -------------------------------------------------
34
- PhysicalMeasurements["Second"] = "s";
35
- PhysicalMeasurements["Minute"] = "min";
36
- PhysicalMeasurements["Hour"] = "h";
37
- PhysicalMeasurements["Day"] = "day";
38
- // Frequency
39
- // -------------------------------------------------
40
- PhysicalMeasurements["Hertz"] = "Hz";
41
- // Volume
42
- // -------------------------------------------------
43
- PhysicalMeasurements["CubicMeter"] = "m^3";
44
- PhysicalMeasurements["Liter"] = "l";
45
- PhysicalMeasurements["Gallon"] = "gal";
46
- // Pressure
47
- // -------------------------------------------------
48
- PhysicalMeasurements["Psi"] = "psi";
49
- PhysicalMeasurements["Pascal"] = "Pa";
50
- PhysicalMeasurements["Bar"] = "bar";
51
- // Temperature
52
- // -------------------------------------------------
53
- PhysicalMeasurements["Celsius"] = "\u00B0C";
54
- PhysicalMeasurements["Fahrenheit"] = "\u00B0F";
55
- PhysicalMeasurements["Kelvin"] = "K";
56
- // Energy
57
- // -------------------------------------------------
58
- PhysicalMeasurements["Milijoule"] = "mJ";
59
- PhysicalMeasurements["Joule"] = "J";
60
- PhysicalMeasurements["Kilojoule"] = "kJ";
61
- PhysicalMeasurements["Megajoule"] = "MJ";
62
- PhysicalMeasurements["Gigajoule"] = "GJ";
63
- PhysicalMeasurements["Terajoule"] = "TJ";
64
- // Force
65
- // -------------------------------------------------
66
- PhysicalMeasurements["Newton"] = "N";
67
- // Data
68
- // -------------------------------------------------
69
- PhysicalMeasurements["Bit"] = "bit";
70
- PhysicalMeasurements["Byte"] = "byte";
71
- PhysicalMeasurements["B"] = "B";
72
- // Speed
73
- // -------------------------------------------------
74
- PhysicalMeasurements["MilimeterPerSecond"] = "mm/s";
75
- PhysicalMeasurements["MeterPerSecond"] = "m/s";
76
- PhysicalMeasurements["MeterPerMinute"] = "m/min";
77
- PhysicalMeasurements["CentiMeterPerSecond"] = "cm/s";
78
- PhysicalMeasurements["MeterPerHour"] = "m/h";
79
- PhysicalMeasurements["KilometerPerHour"] = "km/h";
80
- // Rotational Speed
81
- // -------------------------------------------------
82
- PhysicalMeasurements["RevolutionsPerMinute"] = "rpm";
83
- // Percentage
84
- // -------------------------------------------------
85
- PhysicalMeasurements["Percent"] = "percent";
86
- // Parts Per
87
- // -------------------------------------------------
88
- PhysicalMeasurements["PartsPerMillion"] = "ppm";
89
- PhysicalMeasurements["PartsPerBillion"] = "ppb";
90
- PhysicalMeasurements["PartsPerTrillion"] = "ppt";
91
- // Other Angular Units
92
- // -------------------------------------------------
93
- PhysicalMeasurements["Decibel"] = "dB";
94
- PhysicalMeasurements["Degree"] = "\u00B0";
95
- PhysicalMeasurements["Radian"] = "rad";
96
- // Mass
97
- // -------------------------------------------------
98
- PhysicalMeasurements["Miligram"] = "mg";
99
- PhysicalMeasurements["Gram"] = "g";
100
- PhysicalMeasurements["Kilogram"] = "kg";
101
- PhysicalMeasurements["MetricTon"] = "t";
102
- // Electric Potential
103
- // -------------------------------------------------
104
- PhysicalMeasurements["MiliVolt"] = "mV";
105
- PhysicalMeasurements["Volt"] = "V";
106
- PhysicalMeasurements["KiloVolt"] = "kV";
107
- PhysicalMeasurements["MegaVolt"] = "MV";
108
- // Electric Current
109
- // -------------------------------------------------
110
- PhysicalMeasurements["MiliAmpere"] = "mA";
111
- PhysicalMeasurements["Ampere"] = "A";
112
- PhysicalMeasurements["KiloAmpere"] = "kA";
113
- PhysicalMeasurements["MegaAmpere"] = "MA";
114
- // Power
115
- // -------------------------------------------------
116
- PhysicalMeasurements["MiliWatt"] = "mW";
117
- PhysicalMeasurements["Watt"] = "W";
118
- PhysicalMeasurements["KiloWatt"] = "kW";
119
- PhysicalMeasurements["MegaWatt"] = "MW";
120
- // Energy per unit time
121
- // -------------------------------------------------
122
- PhysicalMeasurements["MiliWattHour"] = "mWh";
123
- PhysicalMeasurements["WattHour"] = "Wh";
124
- PhysicalMeasurements["KiloWattHour"] = "kWh";
125
- PhysicalMeasurements["MegaWattHour"] = "MWh";
126
- // Apparent Power
127
- // -------------------------------------------------
128
- PhysicalMeasurements["MiliVoltAmpere"] = "mVA";
129
- PhysicalMeasurements["VoltAmpere"] = "VA";
130
- PhysicalMeasurements["KiloVoltAmpere"] = "kVA";
131
- PhysicalMeasurements["MegaVoltAmpere"] = "MVA";
132
- // Reactive Power
133
- // -------------------------------------------------
134
- PhysicalMeasurements["MiliVoltAmpereReactive"] = "mVAR";
135
- PhysicalMeasurements["VoltAmpereReactive"] = "VAR";
136
- PhysicalMeasurements["KiloVoltAmpereReactive"] = "kVAR";
137
- PhysicalMeasurements["MegaVoltAmpereReactive"] = "MVAR";
138
- // Flow Rates
139
- // -------------------------------------------------
140
- PhysicalMeasurements["CubicMeterPerHour"] = "m^3/h";
141
- PhysicalMeasurements["CubicMeterPerSecond"] = "m^3/s";
142
- // Other
143
- // -------------------------------------------------
144
- PhysicalMeasurements["MegaGramPerHour"] = "Mg/h";
145
- PhysicalMeasurements["MetricTonPerHour"] = "t/h";
146
- })(PhysicalMeasurements || (PhysicalMeasurements = {}));
1
+ import { GeneratedCounterMeasurements, GeneratedDataSizeMeasurements, GeneratedPhysicalMeasurements, } from "./uns-measurements.generated.js";
2
+ export const PhysicalMeasurements = GeneratedPhysicalMeasurements;
3
+ export const DataSizeMeasurements = GeneratedDataSizeMeasurements;
4
+ export const CounterMeasurements = GeneratedCounterMeasurements;
147
5
  //# sourceMappingURL=uns-measurements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uns-measurements.js","sourceRoot":"","sources":["../../src/uns/uns-measurements.ts"],"names":[],"mappings":"AAEA,YAAY;AACZ,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;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C3B,qDAA6B,CAAA;IAG7B,QAAQ;IACR,oDAAoD;IACpD,gDAAwB,CAAA;IACxB,gDAAwB,CAAA;AAC1B,CAAC,EAjJW,oBAAoB,KAApB,oBAAoB,QAiJ/B","sourcesContent":["export type MeasurementUnit = PhysicalMeasurements | DataSizeMeasurements | (string & {});\n\n// Data Size\nexport enum DataSizeMeasurements {\n Bit = \"bit\",\n Byte = \"B\",\n KiloByte = \"kB\",\n MegaByte = \"MB\",\n GigaByte = \"GB\",\n TeraByte = \"TB\",\n PetaByte = \"PB\",\n ExaByte = \"EB\",\n ZettaByte = \"ZB\",\n YottaByte = \"YB\",\n}\n\n// Counter Measurements\nexport enum CounterMeasurements {\n Kilo = \"k\",\n Mega = \"M\",\n Giga = \"G\",\n}\n\n// Physical Measurements\nexport enum PhysicalMeasurements {\n None = \"\",\n // Length\n // -------------------------------------------------\n MiliMeter = \"mm\",\n Meter = \"m\",\n KiloMeter = \"km\",\n Feet = \"ft\",\n\n // Time\n // -------------------------------------------------\n Second = \"s\",\n Minute = \"min\",\n Hour = \"h\",\n Day = \"day\",\n\n // Frequency\n // -------------------------------------------------\n Hertz = \"Hz\",\n\n // Volume\n // -------------------------------------------------\n CubicMeter = \"m^3\",\n Liter = \"l\",\n Gallon = \"gal\",\n\n // Pressure\n // -------------------------------------------------\n Psi = \"psi\",\n Pascal = \"Pa\",\n Bar = \"bar\",\n\n // Temperature\n // -------------------------------------------------\n Celsius = \"°C\",\n Fahrenheit = \"°F\",\n Kelvin = \"K\",\n\n // Energy\n // -------------------------------------------------\n Milijoule = \"mJ\",\n Joule = \"J\",\n Kilojoule = \"kJ\",\n Megajoule = \"MJ\",\n Gigajoule = \"GJ\",\n Terajoule = \"TJ\",\n\n // Force\n // -------------------------------------------------\n Newton = \"N\",\n\n // Data\n // -------------------------------------------------\n Bit = \"bit\",\n Byte = \"byte\",\n B = \"B\",\n\n // Speed\n // -------------------------------------------------\n MilimeterPerSecond = \"mm/s\",\n MeterPerSecond = \"m/s\",\n MeterPerMinute = \"m/min\",\n CentiMeterPerSecond = \"cm/s\",\n MeterPerHour = \"m/h\",\n KilometerPerHour = \"km/h\",\n\n // Rotational Speed\n // -------------------------------------------------\n RevolutionsPerMinute = \"rpm\",\n\n // Percentage\n // -------------------------------------------------\n Percent = \"percent\",\n\n // Parts Per\n // -------------------------------------------------\n PartsPerMillion = \"ppm\",\n PartsPerBillion = \"ppb\",\n PartsPerTrillion = \"ppt\",\n\n // Other Angular Units\n // -------------------------------------------------\n Decibel = \"dB\",\n Degree = \"°\",\n Radian = \"rad\",\n\n // Mass\n // -------------------------------------------------\n Miligram = \"mg\",\n Gram = \"g\",\n Kilogram = \"kg\",\n MetricTon = \"t\",\n\n // Electric Potential\n // -------------------------------------------------\n MiliVolt = \"mV\",\n Volt = \"V\",\n KiloVolt = \"kV\",\n MegaVolt = \"MV\",\n\n // Electric Current\n // -------------------------------------------------\n MiliAmpere = \"mA\",\n Ampere = \"A\",\n KiloAmpere = \"kA\",\n MegaAmpere = \"MA\",\n\n // Power\n // -------------------------------------------------\n MiliWatt = \"mW\",\n Watt = \"W\",\n KiloWatt = \"kW\",\n MegaWatt = \"MW\",\n\n // Energy per unit time\n // -------------------------------------------------\n MiliWattHour = \"mWh\",\n WattHour = \"Wh\",\n KiloWattHour = \"kWh\",\n MegaWattHour = \"MWh\",\n\n // Apparent Power\n // -------------------------------------------------\n MiliVoltAmpere = \"mVA\",\n VoltAmpere = \"VA\",\n KiloVoltAmpere = \"kVA\",\n MegaVoltAmpere = \"MVA\",\n\n // Reactive Power\n // -------------------------------------------------\n MiliVoltAmpereReactive = \"mVAR\",\n VoltAmpereReactive = \"VAR\",\n KiloVoltAmpereReactive = \"kVAR\",\n MegaVoltAmpereReactive = \"MVAR\",\n\n // Flow Rates\n // -------------------------------------------------\n CubicMeterPerHour = \"m^3/h\",\n CubicMeterPerSecond = \"m^3/s\",\n\n\n // Other\n // -------------------------------------------------\n MegaGramPerHour = \"Mg/h\",\n MetricTonPerHour = \"t/h\",\n}\n\n\n"]}
1
+ {"version":3,"file":"uns-measurements.js","sourceRoot":"","sources":["../../src/uns/uns-measurements.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,4BAA4B,EAE5B,6BAA6B,EAG7B,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,oBAAoB,GAAG,6BAA6B,CAAC;AAGlE,MAAM,CAAC,MAAM,oBAAoB,GAAG,6BAA6B,CAAC;AAGlE,MAAM,CAAC,MAAM,mBAAmB,GAAG,4BAA4B,CAAC","sourcesContent":["import {\n GeneratedCounterMeasurement,\n GeneratedCounterMeasurements,\n GeneratedDataSizeMeasurement,\n GeneratedDataSizeMeasurements,\n GeneratedMeasurementUnit,\n GeneratedPhysicalMeasurement,\n GeneratedPhysicalMeasurements,\n} from \"./uns-measurements.generated.js\";\n\nexport const PhysicalMeasurements = GeneratedPhysicalMeasurements;\nexport type PhysicalMeasurements = GeneratedPhysicalMeasurement;\n\nexport const DataSizeMeasurements = GeneratedDataSizeMeasurements;\nexport type DataSizeMeasurements = GeneratedDataSizeMeasurement;\n\nexport const CounterMeasurements = GeneratedCounterMeasurements;\nexport type CounterMeasurements = GeneratedCounterMeasurement;\n\nexport type MeasurementUnit = GeneratedMeasurementUnit;\n"]}
@@ -16,4 +16,5 @@ export declare const ObjectTypes: {
16
16
  export type KnownUnsObjectTypeName = keyof typeof GeneratedObjectTypes;
17
17
  export type UnsObjectType = "" | KnownUnsObjectTypeName | (string & {});
18
18
  export type UnsObjectId = "main" | "" | (string & {});
19
+ export declare function getObjectTypeDescription(objectType: UnsObjectType): string | undefined;
19
20
  //# sourceMappingURL=uns-object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uns-object.d.ts","sourceRoot":"","sources":["../../src/uns/uns-object.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAAuB,CAAC;AAEhD,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,EAAE,GAAG,sBAAsB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAGxE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"uns-object.d.ts","sourceRoot":"","sources":["../../src/uns/uns-object.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAmC,MAAM,+BAA+B,CAAC;AAEtG,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAAuB,CAAC;AAEhD,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,EAAE,GAAG,sBAAsB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAGxE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEtD,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAEtF"}
@@ -1,5 +1,8 @@
1
1
  // Slimmed: use generated dictionary as the source of object types.
2
2
  // Ensure generate-uns-dictionary is run (or provide your own generated file).
3
- import { GeneratedObjectTypes } from "./uns-dictionary.generated.js";
3
+ import { GeneratedObjectTypes, GeneratedObjectTypeDescriptions } from "./uns-dictionary.generated.js";
4
4
  export const ObjectTypes = GeneratedObjectTypes;
5
+ export function getObjectTypeDescription(objectType) {
6
+ return GeneratedObjectTypeDescriptions[objectType];
7
+ }
5
8
  //# sourceMappingURL=uns-object.js.map