@trackunit/iris-app-api 0.0.114 → 0.0.116
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,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.116](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.115...iris-app-api/0.0.116) (2023-09-19)
|
|
6
|
+
|
|
7
|
+
## [0.0.115](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.114...iris-app-api/0.0.115) (2023-09-13)
|
|
8
|
+
|
|
5
9
|
## [0.0.114](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.113...iris-app-api/0.0.114) (2023-09-13)
|
|
6
10
|
|
|
7
11
|
## [0.0.113](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.112...iris-app-api/0.0.113) (2023-09-12)
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"tslib": "
|
|
10
|
+
"tslib": "2.5.0"
|
|
11
11
|
},
|
|
12
12
|
"main": "./src/index.js",
|
|
13
|
-
"
|
|
13
|
+
"type": "commonjs"
|
|
14
14
|
}
|
|
@@ -31,31 +31,24 @@ export interface StringFieldDefinition extends AbstractCustomFieldDefinition {
|
|
|
31
31
|
minimumLength?: number;
|
|
32
32
|
maximumLength?: number;
|
|
33
33
|
pattern?: string;
|
|
34
|
-
defaultStringValue?: string;
|
|
35
34
|
}
|
|
36
35
|
export interface EmailFieldDefinition extends AbstractCustomFieldDefinition {
|
|
37
36
|
type: "EMAIL";
|
|
38
|
-
defaultStringValue?: string;
|
|
39
37
|
}
|
|
40
38
|
export interface WebAddressFieldDefinition extends AbstractCustomFieldDefinition {
|
|
41
39
|
type: "WEB_ADDRESS";
|
|
42
|
-
defaultStringValue?: string;
|
|
43
40
|
}
|
|
44
41
|
export interface PhoneNumberFieldDefinition extends AbstractCustomFieldDefinition {
|
|
45
42
|
type: "PHONE_NUMBER";
|
|
46
|
-
defaultStringValue?: string;
|
|
47
43
|
}
|
|
48
44
|
export interface BooleanFieldDefinition extends AbstractCustomFieldDefinition {
|
|
49
45
|
type: "BOOLEAN";
|
|
50
|
-
defaultBooleanValue?: boolean;
|
|
51
46
|
}
|
|
52
47
|
export interface DateFieldDefinition extends AbstractCustomFieldDefinition {
|
|
53
48
|
type: "DATE";
|
|
54
|
-
defaultDateValue?: string;
|
|
55
49
|
}
|
|
56
50
|
export interface DropDownFieldDefinition extends AbstractCustomFieldDefinition {
|
|
57
51
|
type: "DROPDOWN";
|
|
58
|
-
defaultStringArrayValue?: string[];
|
|
59
52
|
multiSelect?: boolean;
|
|
60
53
|
allValues?: string[];
|
|
61
54
|
/**
|
|
@@ -110,7 +103,6 @@ export declare enum UnitSi {
|
|
|
110
103
|
}
|
|
111
104
|
export interface DecimalNumberFieldDefinition extends AbstractCustomFieldDefinition {
|
|
112
105
|
type: "NUMBER";
|
|
113
|
-
defaultNumberValue?: number;
|
|
114
106
|
minimum?: number;
|
|
115
107
|
maximum?: number;
|
|
116
108
|
unitSi?: UnitSi;
|
|
@@ -119,24 +111,20 @@ export interface DecimalNumberFieldDefinition extends AbstractCustomFieldDefinit
|
|
|
119
111
|
}
|
|
120
112
|
export interface IntegerNumberFieldDefinition extends AbstractCustomFieldDefinition {
|
|
121
113
|
type: "NUMBER";
|
|
122
|
-
defaultNumberValue?: number;
|
|
123
114
|
minimum?: number;
|
|
124
115
|
maximum?: number;
|
|
125
116
|
isInteger: true;
|
|
126
117
|
}
|
|
127
|
-
type JSONValue = string | number | boolean | null | {
|
|
118
|
+
export type JSONValue = string | number | boolean | null | {
|
|
128
119
|
[x: string]: JSONValue;
|
|
129
120
|
} | JSONValue[];
|
|
130
121
|
export interface JsonFieldDefinition extends AbstractCustomFieldDefinition {
|
|
131
122
|
type: "JSON";
|
|
132
|
-
defaultJsonValue?: JSONValue;
|
|
133
123
|
}
|
|
134
124
|
export interface MonetaryFieldDefinition extends AbstractCustomFieldDefinition {
|
|
135
125
|
type: "MONETARY";
|
|
136
|
-
defaultNumberValue?: number;
|
|
137
126
|
/**
|
|
138
127
|
* The currency of the monetary field definition - ISO 4217 compliant.
|
|
139
128
|
*/
|
|
140
129
|
currency: string;
|
|
141
130
|
}
|
|
142
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppCustomFields.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppCustomFields.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"irisAppCustomFields.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppCustomFields.ts"],"names":[],"mappings":";;;AAmFA,IAAY,MAgBX;AAhBD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,uBAAa,CAAA;IACb,qCAA2B,CAAA;IAC3B,mCAAyB,CAAA;IACzB,yCAA+B,CAAA;IAC/B,uBAAa,CAAA;IACb,yBAAe,CAAA;IACf,2CAAiC,CAAA;IACjC,+CAAqC,CAAA;IACrC,uBAAa,CAAA;IACb,yCAA+B,CAAA;IAC/B,yBAAe,CAAA;IACf,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,yDAA+C,CAAA;AACjD,CAAC,EAhBW,MAAM,sBAAN,MAAM,QAgBjB;AAED,IAAY,MA0BX;AA1BD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACjB,2BAAiB,CAAA;IACjB,mCAAyB,CAAA;IACzB,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,mCAAyB,CAAA;IACzB,mCAAyB,CAAA;IACzB,yBAAe,CAAA;IACf,iCAAuB,CAAA;IACvB,uBAAa,CAAA;IACb,+BAAqB,CAAA;IACrB,+BAAqB,CAAA;IACrB,uCAA6B,CAAA;IAC7B,iDAAuC,CAAA;IACvC,qDAA2C,CAAA;IAC3C,+CAAqC,CAAA;IACrC,mDAAyC,CAAA;IACzC,yBAAe,CAAA;IACf,uCAA6B,CAAA;IAC7B,qCAA2B,CAAA;IAC3B,+CAAqC,CAAA;IACrC,+DAAqD,CAAA;IACrD,qBAAW,CAAA;IACX,6BAAmB,CAAA;IACnB,uBAAa,CAAA;AACf,CAAC,EA1BW,MAAM,sBAAN,MAAM,QA0BjB","sourcesContent":["export 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 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 * The human readable translation of the key. So what the end customer will see.\n */\n title: string;\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 {@link 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 enum 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}\n\nexport enum UnitSi {\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 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}\n\nexport interface DecimalNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"NUMBER\";\n\n minimum?: number;\n maximum?: number;\n\n unitSi?: UnitSi;\n unitUs?: UnitUs;\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"]}
|