@trackunit/iris-app-api 0.0.163 → 0.0.164
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.164](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.163...iris-app-api/0.0.164) (2024-04-19)
|
|
6
|
+
|
|
5
7
|
## [0.0.163](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.162...iris-app-api/0.0.163) (2024-04-18)
|
|
6
8
|
|
|
7
9
|
## [0.0.162](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.161...iris-app-api/0.0.162) (2024-04-08)
|
package/package.json
CHANGED
|
@@ -108,60 +108,137 @@ export interface DropDownFieldDefinition extends AbstractCustomFieldDefinition {
|
|
|
108
108
|
*/
|
|
109
109
|
valueReplacements?: Record<string, string>;
|
|
110
110
|
}
|
|
111
|
+
export declare const UnitOfMeasurement: {
|
|
112
|
+
readonly NEWTON: "NEWTON";
|
|
113
|
+
readonly PASCAL: "PASCAL";
|
|
114
|
+
readonly KILOPASCAL: "KILOPASCAL";
|
|
115
|
+
readonly WATT: "WATT";
|
|
116
|
+
readonly BAR: "BAR";
|
|
117
|
+
readonly CENTIMETRE: "CENTIMETRE";
|
|
118
|
+
readonly MILLIMETRE: "MILLIMETRE";
|
|
119
|
+
readonly METRE: "METRE";
|
|
120
|
+
readonly KILOMETRE: "KILOMETRE";
|
|
121
|
+
readonly GRAM: "GRAM";
|
|
122
|
+
readonly KILOGRAM: "KILOGRAM";
|
|
123
|
+
readonly VOLT: "VOLT";
|
|
124
|
+
readonly AMPERE_HOUR: "AMPERE_HOUR";
|
|
125
|
+
readonly KILOWATT: "KILOWATT";
|
|
126
|
+
readonly KILOWATT_HOUR: "KILOWATT_HOUR";
|
|
127
|
+
readonly KILOGRAM_PER_HOUR: "KILOGRAM_PER_HOUR";
|
|
128
|
+
readonly KILOGRAM_PER_SECOND: "KILOGRAM_PER_SECOND";
|
|
129
|
+
readonly SQUARE_KILOMETRE: "SQUARE_KILOMETRE";
|
|
130
|
+
readonly KILOMETRE_PER_HOUR: "KILOMETRE_PER_HOUR";
|
|
131
|
+
readonly LITRE: "LITRE";
|
|
132
|
+
readonly SQUARE_METRE: "SQUARE_METRE";
|
|
133
|
+
readonly CUBIC_METRE: "CUBIC_METRE";
|
|
134
|
+
readonly METRE_PER_SECOND: "METRE_PER_SECOND";
|
|
135
|
+
readonly METRE_PER_SECOND_SQUARED: "METRE_PER_SECOND_SQUARED";
|
|
136
|
+
readonly METRIC_TON: "METRIC_TON";
|
|
137
|
+
readonly ARE: "ARE";
|
|
138
|
+
readonly HECTARE: "HECTARE";
|
|
139
|
+
readonly YEAR: "YEAR";
|
|
140
|
+
readonly MONTH: "MONTH";
|
|
141
|
+
readonly DAY: "DAY";
|
|
142
|
+
readonly HOUR: "HOUR";
|
|
143
|
+
readonly LITRES_PER_HOUR: "LITRES_PER_HOUR";
|
|
144
|
+
readonly REVOLUTIONS_PER_MINUTE: "REVOLUTIONS_PER_MINUTE";
|
|
145
|
+
readonly VOLT_AMPERE: "VOLT_AMPERE";
|
|
146
|
+
readonly G_FORCE: "G_FORCE";
|
|
147
|
+
readonly CELSIUS: "CELSIUS";
|
|
148
|
+
readonly PERCENT: "PERCENT";
|
|
149
|
+
readonly DEGREE_ANGLE: "DEGREE_ANGLE";
|
|
150
|
+
readonly MILLISECOND: "MILLISECOND";
|
|
151
|
+
readonly SECOND: "SECOND";
|
|
152
|
+
readonly MINUTE: "MINUTE";
|
|
153
|
+
readonly WEEK: "WEEK";
|
|
154
|
+
readonly AMPERE: "AMPERE";
|
|
155
|
+
readonly HERTZ: "HERTZ";
|
|
156
|
+
readonly ACRE: "ACRE";
|
|
157
|
+
readonly FOOT: "FOOT";
|
|
158
|
+
readonly SQUARE_FOOT: "SQUARE_FOOT";
|
|
159
|
+
readonly CUBIC_FOOT: "CUBIC_FOOT";
|
|
160
|
+
readonly GALLON_LIQUID: "GALLON_LIQUID";
|
|
161
|
+
readonly INCH: "INCH";
|
|
162
|
+
readonly POUND: "POUND";
|
|
163
|
+
readonly POUND_PER_HOUR: "POUND_PER_HOUR";
|
|
164
|
+
readonly POUND_PER_SECOND: "POUND_PER_SECOND";
|
|
165
|
+
readonly MILE: "MILE";
|
|
166
|
+
readonly MILE_PER_HOUR: "MILE_PER_HOUR";
|
|
167
|
+
readonly OUNCE: "OUNCE";
|
|
168
|
+
readonly US_TON: "US_TON";
|
|
169
|
+
readonly YARD: "YARD";
|
|
170
|
+
readonly POUND_PER_SQUARE_INCH: "POUND_PER_SQUARE_INCH";
|
|
171
|
+
readonly INCHES_OF_WATER: "INCHES_OF_WATER";
|
|
172
|
+
readonly GALLONS_PER_HOUR: "GALLONS_PER_HOUR";
|
|
173
|
+
readonly FAHRENHEIT: "FAHRENHEIT";
|
|
174
|
+
};
|
|
175
|
+
export type UnitOfMeasurementType = (typeof UnitOfMeasurement)[keyof typeof UnitOfMeasurement];
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated Use UnitOfMeasurement instead
|
|
178
|
+
*/
|
|
111
179
|
export declare const UnitUs: {
|
|
112
|
-
readonly acre: "
|
|
113
|
-
readonly foot: "
|
|
114
|
-
readonly square_foot: "
|
|
115
|
-
readonly cubic_foot: "
|
|
116
|
-
readonly gallon_liquid: "
|
|
117
|
-
readonly inch: "
|
|
118
|
-
readonly pound: "
|
|
119
|
-
readonly pound_per_hour: "
|
|
120
|
-
readonly pound_per_second: "
|
|
121
|
-
readonly mile: "
|
|
122
|
-
readonly mile_per_hour: "
|
|
123
|
-
readonly ounce: "
|
|
124
|
-
readonly ton_us: "
|
|
125
|
-
readonly yard: "
|
|
126
|
-
readonly pound_per_square_inch: "
|
|
180
|
+
readonly acre: "ACRE";
|
|
181
|
+
readonly foot: "FOOT";
|
|
182
|
+
readonly square_foot: "SQUARE_FOOT";
|
|
183
|
+
readonly cubic_foot: "CUBIC_FOOT";
|
|
184
|
+
readonly gallon_liquid: "GALLON_LIQUID";
|
|
185
|
+
readonly inch: "INCH";
|
|
186
|
+
readonly pound: "POUND";
|
|
187
|
+
readonly pound_per_hour: "POUND_PER_HOUR";
|
|
188
|
+
readonly pound_per_second: "POUND_PER_SECOND";
|
|
189
|
+
readonly mile: "MILE";
|
|
190
|
+
readonly mile_per_hour: "MILE_PER_HOUR";
|
|
191
|
+
readonly ounce: "OUNCE";
|
|
192
|
+
readonly ton_us: "US_TON";
|
|
193
|
+
readonly yard: "YARD";
|
|
194
|
+
readonly pound_per_square_inch: "POUND_PER_SQUARE_INCH";
|
|
127
195
|
};
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated Use UnitOfMeasurementType instead
|
|
198
|
+
*/
|
|
128
199
|
export type UnitUsType = (typeof UnitUs)[keyof typeof UnitUs];
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated Use UnitOfMeasurement instead
|
|
202
|
+
*/
|
|
129
203
|
export declare const UnitSi: {
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly volt: "
|
|
135
|
-
readonly watt: "
|
|
136
|
-
readonly bar: "
|
|
137
|
-
readonly centimetre: "
|
|
138
|
-
readonly millimetre: "
|
|
139
|
-
readonly metre: "
|
|
140
|
-
readonly kilometre: "
|
|
141
|
-
readonly gram: "
|
|
142
|
-
readonly kilogram: "
|
|
143
|
-
readonly kilowatt: "
|
|
144
|
-
readonly kilowatthour: "
|
|
145
|
-
readonly kilogram_per_hour: "
|
|
146
|
-
readonly kilogram_per_second: "
|
|
147
|
-
readonly square_kilometre: "
|
|
148
|
-
readonly kilometre_per_hour: "
|
|
149
|
-
readonly litre: "
|
|
150
|
-
readonly square_metre: "
|
|
151
|
-
readonly cubic_metre: "
|
|
152
|
-
readonly metre_per_second: "
|
|
153
|
-
readonly metre_per_second_squared: "
|
|
154
|
-
readonly ton: "
|
|
155
|
-
readonly hectare: "
|
|
156
|
-
readonly hour: "
|
|
204
|
+
readonly newton: "NEWTON";
|
|
205
|
+
readonly pascal: "PASCAL";
|
|
206
|
+
readonly kilopascal: "KILOPASCAL";
|
|
207
|
+
readonly amperehour: "AMPERE_HOUR";
|
|
208
|
+
readonly volt: "VOLT";
|
|
209
|
+
readonly watt: "WATT";
|
|
210
|
+
readonly bar: "BAR";
|
|
211
|
+
readonly centimetre: "CENTIMETRE";
|
|
212
|
+
readonly millimetre: "MILLIMETRE";
|
|
213
|
+
readonly metre: "METRE";
|
|
214
|
+
readonly kilometre: "KILOMETRE";
|
|
215
|
+
readonly gram: "GRAM";
|
|
216
|
+
readonly kilogram: "KILOGRAM";
|
|
217
|
+
readonly kilowatt: "KILOWATT";
|
|
218
|
+
readonly kilowatthour: "KILOWATT_HOUR";
|
|
219
|
+
readonly kilogram_per_hour: "KILOGRAM_PER_HOUR";
|
|
220
|
+
readonly kilogram_per_second: "KILOGRAM_PER_SECOND";
|
|
221
|
+
readonly square_kilometre: "SQUARE_KILOMETRE";
|
|
222
|
+
readonly kilometre_per_hour: "KILOMETRE_PER_HOUR";
|
|
223
|
+
readonly litre: "LITRE";
|
|
224
|
+
readonly square_metre: "SQUARE_METRE";
|
|
225
|
+
readonly cubic_metre: "CUBIC_METRE";
|
|
226
|
+
readonly metre_per_second: "METRE_PER_SECOND";
|
|
227
|
+
readonly metre_per_second_squared: "METRE_PER_SECOND_SQUARED";
|
|
228
|
+
readonly ton: "TON";
|
|
229
|
+
readonly hectare: "HECTARE";
|
|
230
|
+
readonly hour: "HOUR";
|
|
157
231
|
};
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Use UnitOfMeasurementType instead
|
|
234
|
+
*/
|
|
158
235
|
export type UnitSiType = (typeof UnitSi)[keyof typeof UnitSi];
|
|
159
236
|
export interface DecimalNumberFieldDefinition extends AbstractCustomFieldDefinition {
|
|
160
237
|
type: "NUMBER";
|
|
161
238
|
minimum?: number;
|
|
162
239
|
maximum?: number;
|
|
163
|
-
unitSi?:
|
|
164
|
-
unitUs?:
|
|
240
|
+
unitSi?: UnitOfMeasurementType;
|
|
241
|
+
unitUs?: UnitOfMeasurementType;
|
|
165
242
|
isInteger: false;
|
|
166
243
|
}
|
|
167
244
|
export interface IntegerNumberFieldDefinition extends AbstractCustomFieldDefinition {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnitSi = exports.UnitUs = exports.isCustomFieldTranslationArray = exports.ScopeType = void 0;
|
|
3
|
+
exports.UnitSi = exports.UnitUs = exports.UnitOfMeasurement = exports.isCustomFieldTranslationArray = exports.ScopeType = void 0;
|
|
4
4
|
exports.ScopeType = {
|
|
5
5
|
/**
|
|
6
6
|
* Values with account scope will be shared within a single account
|
|
@@ -22,50 +22,120 @@ const isCustomFieldTranslationArray = (object) => {
|
|
|
22
22
|
return Array.isArray(object);
|
|
23
23
|
};
|
|
24
24
|
exports.isCustomFieldTranslationArray = isCustomFieldTranslationArray;
|
|
25
|
+
exports.UnitOfMeasurement = {
|
|
26
|
+
NEWTON: "NEWTON",
|
|
27
|
+
PASCAL: "PASCAL",
|
|
28
|
+
KILOPASCAL: "KILOPASCAL",
|
|
29
|
+
WATT: "WATT",
|
|
30
|
+
BAR: "BAR",
|
|
31
|
+
CENTIMETRE: "CENTIMETRE",
|
|
32
|
+
MILLIMETRE: "MILLIMETRE",
|
|
33
|
+
METRE: "METRE",
|
|
34
|
+
KILOMETRE: "KILOMETRE",
|
|
35
|
+
GRAM: "GRAM",
|
|
36
|
+
KILOGRAM: "KILOGRAM",
|
|
37
|
+
VOLT: "VOLT",
|
|
38
|
+
AMPERE_HOUR: "AMPERE_HOUR",
|
|
39
|
+
KILOWATT: "KILOWATT",
|
|
40
|
+
KILOWATT_HOUR: "KILOWATT_HOUR",
|
|
41
|
+
KILOGRAM_PER_HOUR: "KILOGRAM_PER_HOUR",
|
|
42
|
+
KILOGRAM_PER_SECOND: "KILOGRAM_PER_SECOND",
|
|
43
|
+
SQUARE_KILOMETRE: "SQUARE_KILOMETRE",
|
|
44
|
+
KILOMETRE_PER_HOUR: "KILOMETRE_PER_HOUR",
|
|
45
|
+
LITRE: "LITRE",
|
|
46
|
+
SQUARE_METRE: "SQUARE_METRE",
|
|
47
|
+
CUBIC_METRE: "CUBIC_METRE",
|
|
48
|
+
METRE_PER_SECOND: "METRE_PER_SECOND",
|
|
49
|
+
METRE_PER_SECOND_SQUARED: "METRE_PER_SECOND_SQUARED",
|
|
50
|
+
METRIC_TON: "METRIC_TON",
|
|
51
|
+
ARE: "ARE",
|
|
52
|
+
HECTARE: "HECTARE",
|
|
53
|
+
YEAR: "YEAR",
|
|
54
|
+
MONTH: "MONTH",
|
|
55
|
+
DAY: "DAY",
|
|
56
|
+
HOUR: "HOUR",
|
|
57
|
+
LITRES_PER_HOUR: "LITRES_PER_HOUR",
|
|
58
|
+
REVOLUTIONS_PER_MINUTE: "REVOLUTIONS_PER_MINUTE",
|
|
59
|
+
VOLT_AMPERE: "VOLT_AMPERE",
|
|
60
|
+
G_FORCE: "G_FORCE",
|
|
61
|
+
CELSIUS: "CELSIUS",
|
|
62
|
+
PERCENT: "PERCENT",
|
|
63
|
+
DEGREE_ANGLE: "DEGREE_ANGLE",
|
|
64
|
+
MILLISECOND: "MILLISECOND",
|
|
65
|
+
SECOND: "SECOND",
|
|
66
|
+
MINUTE: "MINUTE",
|
|
67
|
+
WEEK: "WEEK",
|
|
68
|
+
AMPERE: "AMPERE",
|
|
69
|
+
HERTZ: "HERTZ",
|
|
70
|
+
ACRE: "ACRE",
|
|
71
|
+
FOOT: "FOOT",
|
|
72
|
+
SQUARE_FOOT: "SQUARE_FOOT",
|
|
73
|
+
CUBIC_FOOT: "CUBIC_FOOT",
|
|
74
|
+
GALLON_LIQUID: "GALLON_LIQUID",
|
|
75
|
+
INCH: "INCH",
|
|
76
|
+
POUND: "POUND",
|
|
77
|
+
POUND_PER_HOUR: "POUND_PER_HOUR",
|
|
78
|
+
POUND_PER_SECOND: "POUND_PER_SECOND",
|
|
79
|
+
MILE: "MILE",
|
|
80
|
+
MILE_PER_HOUR: "MILE_PER_HOUR",
|
|
81
|
+
OUNCE: "OUNCE",
|
|
82
|
+
US_TON: "US_TON",
|
|
83
|
+
YARD: "YARD",
|
|
84
|
+
POUND_PER_SQUARE_INCH: "POUND_PER_SQUARE_INCH",
|
|
85
|
+
INCHES_OF_WATER: "INCHES_OF_WATER",
|
|
86
|
+
GALLONS_PER_HOUR: "GALLONS_PER_HOUR",
|
|
87
|
+
FAHRENHEIT: "FAHRENHEIT",
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Use UnitOfMeasurement instead
|
|
91
|
+
*/
|
|
25
92
|
exports.UnitUs = {
|
|
26
|
-
acre: "
|
|
27
|
-
foot: "
|
|
28
|
-
square_foot: "
|
|
29
|
-
cubic_foot: "
|
|
30
|
-
gallon_liquid: "
|
|
31
|
-
inch: "
|
|
32
|
-
pound: "
|
|
33
|
-
pound_per_hour: "
|
|
34
|
-
pound_per_second: "
|
|
35
|
-
mile: "
|
|
36
|
-
mile_per_hour: "
|
|
37
|
-
ounce: "
|
|
38
|
-
ton_us: "
|
|
39
|
-
yard: "
|
|
40
|
-
pound_per_square_inch: "
|
|
93
|
+
acre: "ACRE",
|
|
94
|
+
foot: "FOOT",
|
|
95
|
+
square_foot: "SQUARE_FOOT",
|
|
96
|
+
cubic_foot: "CUBIC_FOOT",
|
|
97
|
+
gallon_liquid: "GALLON_LIQUID",
|
|
98
|
+
inch: "INCH",
|
|
99
|
+
pound: "POUND",
|
|
100
|
+
pound_per_hour: "POUND_PER_HOUR",
|
|
101
|
+
pound_per_second: "POUND_PER_SECOND",
|
|
102
|
+
mile: "MILE",
|
|
103
|
+
mile_per_hour: "MILE_PER_HOUR",
|
|
104
|
+
ounce: "OUNCE",
|
|
105
|
+
ton_us: "US_TON",
|
|
106
|
+
yard: "YARD",
|
|
107
|
+
pound_per_square_inch: "POUND_PER_SQUARE_INCH",
|
|
41
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated Use UnitOfMeasurement instead
|
|
111
|
+
*/
|
|
42
112
|
exports.UnitSi = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
volt: "
|
|
48
|
-
watt: "
|
|
49
|
-
bar: "
|
|
50
|
-
centimetre: "
|
|
51
|
-
millimetre: "
|
|
52
|
-
metre: "
|
|
53
|
-
kilometre: "
|
|
54
|
-
gram: "
|
|
55
|
-
kilogram: "
|
|
56
|
-
kilowatt: "
|
|
57
|
-
kilowatthour: "
|
|
58
|
-
kilogram_per_hour: "
|
|
59
|
-
kilogram_per_second: "
|
|
60
|
-
square_kilometre: "
|
|
61
|
-
kilometre_per_hour: "
|
|
62
|
-
litre: "
|
|
63
|
-
square_metre: "
|
|
64
|
-
cubic_metre: "
|
|
65
|
-
metre_per_second: "
|
|
66
|
-
metre_per_second_squared: "
|
|
67
|
-
ton: "
|
|
68
|
-
hectare: "
|
|
69
|
-
hour: "
|
|
113
|
+
newton: "NEWTON",
|
|
114
|
+
pascal: "PASCAL",
|
|
115
|
+
kilopascal: "KILOPASCAL",
|
|
116
|
+
amperehour: "AMPERE_HOUR",
|
|
117
|
+
volt: "VOLT",
|
|
118
|
+
watt: "WATT",
|
|
119
|
+
bar: "BAR",
|
|
120
|
+
centimetre: "CENTIMETRE",
|
|
121
|
+
millimetre: "MILLIMETRE",
|
|
122
|
+
metre: "METRE",
|
|
123
|
+
kilometre: "KILOMETRE",
|
|
124
|
+
gram: "GRAM",
|
|
125
|
+
kilogram: "KILOGRAM",
|
|
126
|
+
kilowatt: "KILOWATT",
|
|
127
|
+
kilowatthour: "KILOWATT_HOUR",
|
|
128
|
+
kilogram_per_hour: "KILOGRAM_PER_HOUR",
|
|
129
|
+
kilogram_per_second: "KILOGRAM_PER_SECOND",
|
|
130
|
+
square_kilometre: "SQUARE_KILOMETRE",
|
|
131
|
+
kilometre_per_hour: "KILOMETRE_PER_HOUR",
|
|
132
|
+
litre: "LITRE",
|
|
133
|
+
square_metre: "SQUARE_METRE",
|
|
134
|
+
cubic_metre: "CUBIC_METRE",
|
|
135
|
+
metre_per_second: "METRE_PER_SECOND",
|
|
136
|
+
metre_per_second_squared: "METRE_PER_SECOND_SQUARED",
|
|
137
|
+
ton: "TON",
|
|
138
|
+
hectare: "HECTARE",
|
|
139
|
+
hour: "HOUR",
|
|
70
140
|
};
|
|
71
141
|
//# sourceMappingURL=irisAppCustomFields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppCustomFields.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppCustomFields.ts"],"names":[],"mappings":";;;AAgBa,QAAA,SAAS,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IACtD;;OAEG;IACH,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX;;GAEG;AACI,MAAM,6BAA6B,GAAG,CAC3C,MAA6F,EACtD,EAAE;IACzC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC,CAAC;AAJW,QAAA,6BAA6B,iCAIxC;AAgGW,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,IAAI,EAAE,MAAM;IACZ,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,qBAAqB,EAAE,uBAAuB;CACtC,CAAC;AAGE,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,kBAAkB;IACpC,wBAAwB,EAAE,0BAA0B;IACpD,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAC","sourcesContent":["import { TranslationKey, TranslationLanguageKeys } from \"./irisAppExtensionManifest\";\n\nexport declare type CustomFieldDefinitionType =\n | \"STRING\"\n | \"NUMBER\"\n | \"DATE\"\n | \"BOOLEAN\"\n | \"DROPDOWN\"\n | \"EMAIL\"\n | \"PHONE_NUMBER\"\n | \"WEB_ADDRESS\"\n | \"JSON\"\n | \"MONETARY\";\n\nexport declare type EntityType = \"ASSET\" | \"ACCOUNT\" | \"SITE\" | \"GROUP\";\n\nexport const ScopeType = {\n /**\n * Values with account scope will be shared within a single account\n */\n ACCOUNT: \"ACCOUNT\",\n /**\n * Values will be shared within a single account (write) and visible to all accounts (read)\n */\n ACCOUNT_WRITE_GLOBAL_READ: \"ACCOUNT_WRITE_GLOBAL_READ\",\n /**\n * Values with global scope will be shared between all accounts with access to the entity.\n */\n GLOBAL: \"GLOBAL\",\n} as const;\nexport type ScopeTypeType = (typeof ScopeType)[keyof typeof ScopeType];\n\n/**\n * Test if the object is a CustomFieldTranslation array.\n */\nexport const isCustomFieldTranslationArray = (\n object: CustomFieldTranslationArray | { title: TranslationKey; description?: TranslationKey }\n): object is CustomFieldTranslationArray => {\n return Array.isArray(object);\n};\n\nexport interface CustomFieldTranslation {\n language: TranslationLanguageKeys;\n title: string;\n description?: string;\n}\n\nexport interface CustomFieldTranslationWithoutEnglish {\n language: Exclude<TranslationLanguageKeys, \"en\">;\n title: string;\n description?: string;\n}\n\nexport type CustomFieldTranslationArray = [\n { language: \"en\"; title: string; description?: string },\n ...CustomFieldTranslationWithoutEnglish[],\n];\n\nexport interface AbstractCustomFieldDefinition {\n /**\n * The key is the name you use to get the custom field.\n */\n key: string;\n\n /**\n * The type of the entity to attach this custom field on.\n */\n entityType: EntityType;\n\n /**\n * Who can access the field value. Default is only within the users account.\n */\n scopeType?: ScopeTypeType;\n\n /**\n * The translations for the custom field definition.\n * For Arrays of translations, the list must contain the language \"en\" as the default.\n * Either a list of translations or a single translation object with\n * translation keys it will look for all available languages in src/locales/<languagecode>/translation.json\n */\n translations: CustomFieldTranslationArray | { title: TranslationKey; description?: TranslationKey };\n\n /**\n * Should this be visible in the generic UI in Manager.\n */\n uiVisible?: boolean;\n\n /**\n * Should this be editable in the generic UI in Manager. This does not mean you cannot change it inside a app.\n */\n uiEditable?: boolean;\n\n /**\n * The type of this custom field definition\n */\n type: CustomFieldDefinitionType;\n}\n\nexport interface StringFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"STRING\";\n minimumLength?: number;\n maximumLength?: number;\n pattern?: string;\n}\n\nexport interface EmailFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"EMAIL\";\n}\n\nexport interface WebAddressFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"WEB_ADDRESS\";\n}\n\nexport interface PhoneNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"PHONE_NUMBER\";\n}\nexport interface BooleanFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"BOOLEAN\";\n}\n\nexport interface DateFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"DATE\";\n}\n\nexport interface DropDownFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"DROPDOWN\";\n multiSelect?: boolean;\n allValues?: string[];\n /**\n * Map from old values not in the allValues to new values. Used for updating existing data when changing\n * the drop down options.\n */\n valueReplacements?: Record<string, string>;\n}\n\nexport const UnitUs = {\n acre: \"acre\",\n foot: \"foot\",\n square_foot: \"square_foot\",\n cubic_foot: \"cubic_foot\",\n gallon_liquid: \"gallon_liquid\",\n inch: \"inch\",\n pound: \"pound\",\n pound_per_hour: \"pound_per_hour\",\n pound_per_second: \"pound_per_second\",\n mile: \"mile\",\n mile_per_hour: \"mile_per_hour\",\n ounce: \"ounce\",\n ton_us: \"ton_us\",\n yard: \"yard\",\n pound_per_square_inch: \"pound_per_square_inch\",\n} as const;\nexport type UnitUsType = (typeof UnitUs)[keyof typeof UnitUs];\n\nexport const UnitSi = {\n amperehour: \"amperehour\",\n newton: \"newton\",\n pascal: \"pascal\",\n kilopascal: \"kilopascal\",\n volt: \"volt\",\n watt: \"watt\",\n bar: \"bar\",\n centimetre: \"centimetre\",\n millimetre: \"millimetre\",\n metre: \"metre\",\n kilometre: \"kilometre\",\n gram: \"gram\",\n kilogram: \"kilogram\",\n kilowatt: \"kilowatt\",\n kilowatthour: \"kilowatthour\",\n kilogram_per_hour: \"kilogram_per_hour\",\n kilogram_per_second: \"kilogram_per_second\",\n square_kilometre: \"square_kilometre\",\n kilometre_per_hour: \"kilometre_per_hour\",\n litre: \"litre\",\n square_metre: \"square_metre\",\n cubic_metre: \"cubic_metre\",\n metre_per_second: \"metre_per_second\",\n metre_per_second_squared: \"metre_per_second_squared\",\n ton: \"ton\",\n hectare: \"hectare\",\n hour: \"hour\",\n} as const;\nexport type UnitSiType = (typeof UnitSi)[keyof typeof UnitSi];\n\nexport interface DecimalNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"NUMBER\";\n\n minimum?: number;\n maximum?: number;\n\n unitSi?: UnitSiType;\n unitUs?: UnitUsType;\n\n isInteger: false;\n}\n\nexport interface IntegerNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"NUMBER\";\n\n minimum?: number;\n maximum?: number;\n\n isInteger: true;\n}\n\nexport type JSONValue = string | number | boolean | null | { [x: string]: JSONValue } | JSONValue[];\n\nexport interface JsonFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"JSON\";\n}\n\nexport interface MonetaryFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"MONETARY\";\n /**\n * The currency of the monetary field definition - ISO 4217 compliant.\n */\n currency: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"irisAppCustomFields.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppCustomFields.ts"],"names":[],"mappings":"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","sourcesContent":["import { TranslationKey, TranslationLanguageKeys } from \"./irisAppExtensionManifest\";\n\nexport declare type CustomFieldDefinitionType =\n | \"STRING\"\n | \"NUMBER\"\n | \"DATE\"\n | \"BOOLEAN\"\n | \"DROPDOWN\"\n | \"EMAIL\"\n | \"PHONE_NUMBER\"\n | \"WEB_ADDRESS\"\n | \"JSON\"\n | \"MONETARY\";\n\nexport declare type EntityType = \"ASSET\" | \"ACCOUNT\" | \"SITE\" | \"GROUP\";\n\nexport const ScopeType = {\n /**\n * Values with account scope will be shared within a single account\n */\n ACCOUNT: \"ACCOUNT\",\n /**\n * Values will be shared within a single account (write) and visible to all accounts (read)\n */\n ACCOUNT_WRITE_GLOBAL_READ: \"ACCOUNT_WRITE_GLOBAL_READ\",\n /**\n * Values with global scope will be shared between all accounts with access to the entity.\n */\n GLOBAL: \"GLOBAL\",\n} as const;\nexport type ScopeTypeType = (typeof ScopeType)[keyof typeof ScopeType];\n\n/**\n * Test if the object is a CustomFieldTranslation array.\n */\nexport const isCustomFieldTranslationArray = (\n object: CustomFieldTranslationArray | { title: TranslationKey; description?: TranslationKey }\n): object is CustomFieldTranslationArray => {\n return Array.isArray(object);\n};\n\nexport interface CustomFieldTranslation {\n language: TranslationLanguageKeys;\n title: string;\n description?: string;\n}\n\nexport interface CustomFieldTranslationWithoutEnglish {\n language: Exclude<TranslationLanguageKeys, \"en\">;\n title: string;\n description?: string;\n}\n\nexport type CustomFieldTranslationArray = [\n { language: \"en\"; title: string; description?: string },\n ...CustomFieldTranslationWithoutEnglish[],\n];\n\nexport interface AbstractCustomFieldDefinition {\n /**\n * The key is the name you use to get the custom field.\n */\n key: string;\n\n /**\n * The type of the entity to attach this custom field on.\n */\n entityType: EntityType;\n\n /**\n * Who can access the field value. Default is only within the users account.\n */\n scopeType?: ScopeTypeType;\n\n /**\n * The translations for the custom field definition.\n * For Arrays of translations, the list must contain the language \"en\" as the default.\n * Either a list of translations or a single translation object with\n * translation keys it will look for all available languages in src/locales/<languagecode>/translation.json\n */\n translations: CustomFieldTranslationArray | { title: TranslationKey; description?: TranslationKey };\n\n /**\n * Should this be visible in the generic UI in Manager.\n */\n uiVisible?: boolean;\n\n /**\n * Should this be editable in the generic UI in Manager. This does not mean you cannot change it inside a app.\n */\n uiEditable?: boolean;\n\n /**\n * The type of this custom field definition\n */\n type: CustomFieldDefinitionType;\n}\n\nexport interface StringFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"STRING\";\n minimumLength?: number;\n maximumLength?: number;\n pattern?: string;\n}\n\nexport interface EmailFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"EMAIL\";\n}\n\nexport interface WebAddressFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"WEB_ADDRESS\";\n}\n\nexport interface PhoneNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"PHONE_NUMBER\";\n}\nexport interface BooleanFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"BOOLEAN\";\n}\n\nexport interface DateFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"DATE\";\n}\n\nexport interface DropDownFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"DROPDOWN\";\n multiSelect?: boolean;\n allValues?: string[];\n /**\n * Map from old values not in the allValues to new values. Used for updating existing data when changing\n * the drop down options.\n */\n valueReplacements?: Record<string, string>;\n}\n\nexport const UnitOfMeasurement = {\n NEWTON: \"NEWTON\",\n PASCAL: \"PASCAL\",\n KILOPASCAL: \"KILOPASCAL\",\n WATT: \"WATT\",\n BAR: \"BAR\",\n CENTIMETRE: \"CENTIMETRE\",\n MILLIMETRE: \"MILLIMETRE\",\n METRE: \"METRE\",\n KILOMETRE: \"KILOMETRE\",\n GRAM: \"GRAM\",\n KILOGRAM: \"KILOGRAM\",\n VOLT: \"VOLT\",\n AMPERE_HOUR: \"AMPERE_HOUR\",\n KILOWATT: \"KILOWATT\",\n KILOWATT_HOUR: \"KILOWATT_HOUR\",\n KILOGRAM_PER_HOUR: \"KILOGRAM_PER_HOUR\",\n KILOGRAM_PER_SECOND: \"KILOGRAM_PER_SECOND\",\n SQUARE_KILOMETRE: \"SQUARE_KILOMETRE\",\n KILOMETRE_PER_HOUR: \"KILOMETRE_PER_HOUR\",\n LITRE: \"LITRE\",\n SQUARE_METRE: \"SQUARE_METRE\",\n CUBIC_METRE: \"CUBIC_METRE\",\n METRE_PER_SECOND: \"METRE_PER_SECOND\",\n METRE_PER_SECOND_SQUARED: \"METRE_PER_SECOND_SQUARED\",\n METRIC_TON: \"METRIC_TON\",\n ARE: \"ARE\",\n HECTARE: \"HECTARE\",\n YEAR: \"YEAR\",\n MONTH: \"MONTH\",\n DAY: \"DAY\",\n HOUR: \"HOUR\",\n LITRES_PER_HOUR: \"LITRES_PER_HOUR\",\n REVOLUTIONS_PER_MINUTE: \"REVOLUTIONS_PER_MINUTE\",\n VOLT_AMPERE: \"VOLT_AMPERE\",\n G_FORCE: \"G_FORCE\",\n CELSIUS: \"CELSIUS\",\n PERCENT: \"PERCENT\",\n DEGREE_ANGLE: \"DEGREE_ANGLE\",\n MILLISECOND: \"MILLISECOND\",\n SECOND: \"SECOND\",\n MINUTE: \"MINUTE\",\n WEEK: \"WEEK\",\n AMPERE: \"AMPERE\",\n HERTZ: \"HERTZ\",\n ACRE: \"ACRE\",\n FOOT: \"FOOT\",\n SQUARE_FOOT: \"SQUARE_FOOT\",\n CUBIC_FOOT: \"CUBIC_FOOT\",\n GALLON_LIQUID: \"GALLON_LIQUID\",\n INCH: \"INCH\",\n POUND: \"POUND\",\n POUND_PER_HOUR: \"POUND_PER_HOUR\",\n POUND_PER_SECOND: \"POUND_PER_SECOND\",\n MILE: \"MILE\",\n MILE_PER_HOUR: \"MILE_PER_HOUR\",\n OUNCE: \"OUNCE\",\n US_TON: \"US_TON\",\n YARD: \"YARD\",\n POUND_PER_SQUARE_INCH: \"POUND_PER_SQUARE_INCH\",\n INCHES_OF_WATER: \"INCHES_OF_WATER\",\n GALLONS_PER_HOUR: \"GALLONS_PER_HOUR\",\n FAHRENHEIT: \"FAHRENHEIT\",\n} as const;\nexport type UnitOfMeasurementType = (typeof UnitOfMeasurement)[keyof typeof UnitOfMeasurement];\n\n/**\n * @deprecated Use UnitOfMeasurement instead\n */\nexport const UnitUs = {\n acre: \"ACRE\",\n foot: \"FOOT\",\n square_foot: \"SQUARE_FOOT\",\n cubic_foot: \"CUBIC_FOOT\",\n gallon_liquid: \"GALLON_LIQUID\",\n inch: \"INCH\",\n pound: \"POUND\",\n pound_per_hour: \"POUND_PER_HOUR\",\n pound_per_second: \"POUND_PER_SECOND\",\n mile: \"MILE\",\n mile_per_hour: \"MILE_PER_HOUR\",\n ounce: \"OUNCE\",\n ton_us: \"US_TON\",\n yard: \"YARD\",\n pound_per_square_inch: \"POUND_PER_SQUARE_INCH\",\n} as const;\n/**\n * @deprecated Use UnitOfMeasurementType instead\n */\nexport type UnitUsType = (typeof UnitUs)[keyof typeof UnitUs];\n\n/**\n * @deprecated Use UnitOfMeasurement instead\n */\nexport const UnitSi = {\n newton: \"NEWTON\",\n pascal: \"PASCAL\",\n kilopascal: \"KILOPASCAL\",\n amperehour: \"AMPERE_HOUR\",\n volt: \"VOLT\",\n watt: \"WATT\",\n bar: \"BAR\",\n centimetre: \"CENTIMETRE\",\n millimetre: \"MILLIMETRE\",\n metre: \"METRE\",\n kilometre: \"KILOMETRE\",\n gram: \"GRAM\",\n kilogram: \"KILOGRAM\",\n kilowatt: \"KILOWATT\",\n kilowatthour: \"KILOWATT_HOUR\",\n kilogram_per_hour: \"KILOGRAM_PER_HOUR\",\n kilogram_per_second: \"KILOGRAM_PER_SECOND\",\n square_kilometre: \"SQUARE_KILOMETRE\",\n kilometre_per_hour: \"KILOMETRE_PER_HOUR\",\n litre: \"LITRE\",\n square_metre: \"SQUARE_METRE\",\n cubic_metre: \"CUBIC_METRE\",\n metre_per_second: \"METRE_PER_SECOND\",\n metre_per_second_squared: \"METRE_PER_SECOND_SQUARED\",\n ton: \"TON\",\n hectare: \"HECTARE\",\n hour: \"HOUR\",\n} as const;\n/**\n * @deprecated Use UnitOfMeasurementType instead\n */\nexport type UnitSiType = (typeof UnitSi)[keyof typeof UnitSi];\n\nexport interface DecimalNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"NUMBER\";\n\n minimum?: number;\n maximum?: number;\n\n unitSi?: UnitOfMeasurementType;\n unitUs?: UnitOfMeasurementType;\n\n isInteger: false;\n}\n\nexport interface IntegerNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"NUMBER\";\n\n minimum?: number;\n maximum?: number;\n\n isInteger: true;\n}\n\nexport type JSONValue = string | number | boolean | null | { [x: string]: JSONValue } | JSONValue[];\n\nexport interface JsonFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"JSON\";\n}\n\nexport interface MonetaryFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"MONETARY\";\n /**\n * The currency of the monetary field definition - ISO 4217 compliant.\n */\n currency: string;\n}\n"]}
|