@trackunit/iris-app-api 0.0.115 → 0.0.117
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 +4 -0
- package/package.json +2 -2
- package/src/types/extensions/assetHomeExtensionManifest.d.ts +3 -3
- package/src/types/extensions/assetHomeExtensionManifest.js.map +1 -1
- package/src/types/extensions/fleetExtensionManifest.d.ts +3 -3
- package/src/types/extensions/fleetExtensionManifest.js.map +1 -1
- package/src/types/irisAppCustomFields.d.ts +1 -13
- package/src/types/irisAppCustomFields.js.map +1 -1
- package/src/types/irisAppExtensionManifest.d.ts +3 -0
- package/src/types/irisAppExtensionManifest.js.map +1 -1
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.117](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.116...iris-app-api/0.0.117) (2023-09-21)
|
|
6
|
+
|
|
7
|
+
## [0.0.116](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.115...iris-app-api/0.0.116) (2023-09-19)
|
|
8
|
+
|
|
5
9
|
## [0.0.115](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.114...iris-app-api/0.0.115) (2023-09-13)
|
|
6
10
|
|
|
7
11
|
## [0.0.114](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.113...iris-app-api/0.0.114) (2023-09-13)
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.117",
|
|
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.3.0"
|
|
11
11
|
},
|
|
12
12
|
"main": "./src/index.js",
|
|
13
13
|
"type": "commonjs"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractExtensionManifest, RequiredCustomField, RequiredPermission, TranslationKey, Translations } from "../irisAppExtensionManifest";
|
|
1
|
+
import { AbstractExtensionManifest, RegExpType, RequiredCustomField, RequiredPermission, TranslationKey, Translations } from "../irisAppExtensionManifest";
|
|
2
2
|
export interface AssetHomeExtensionManifest extends AbstractExtensionManifest {
|
|
3
3
|
type: "ASSET_HOME_EXTENSION";
|
|
4
4
|
/**
|
|
@@ -14,8 +14,8 @@ export interface AssetHomeExtensionManifest extends AbstractExtensionManifest {
|
|
|
14
14
|
* - If no conditions are used/filled out then the asset home extension will be shown for all assets.
|
|
15
15
|
*/
|
|
16
16
|
conditions?: {
|
|
17
|
-
model?: string[] | string;
|
|
18
|
-
brand?: string[] | string;
|
|
17
|
+
model?: (string | RegExpType)[] | string | RegExpType;
|
|
18
|
+
brand?: (string | RegExpType)[] | string | RegExpType;
|
|
19
19
|
requiredPermission?: RequiredPermission | RequiredPermission[];
|
|
20
20
|
/**
|
|
21
21
|
* Only entityType ASSET custom fields are supported here
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/assetHomeExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RequiredCustomField,\n RequiredPermission,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\n\nexport interface AssetHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"ASSET_HOME_EXTENSION\";\n /**\n * Conditions for the asset home extension to be shown.\n * model and brand is case insensitive so does not matter how you write the brand.\n * brand: \"trackunit\" and brand: \"Trackunit\" will be the same.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If both model and brand are used/filled out then asset needs to match both model and brand.\n * - If only brand or model is used/filled out then the asset needs to match the filled out property.\n * - If only requiredPermissions is used/filled out then the asset home extension will be shown for all assets that the user has the required permission for.\n * - If more requiredPermissions are used/filled out then the asset home extension will be shown for all assets that the user has one of the required permission for.\n * - If no conditions are used/filled out then the asset home extension will be shown for all assets.\n */\n conditions?: {\n model?: string[] | string;\n brand?: string[] | string;\n requiredPermission?: RequiredPermission | RequiredPermission[];\n\n /**\n * Only entityType ASSET custom fields are supported here\n */\n requiredCustomField?: RequiredCustomField | RequiredCustomField[];\n };\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"assetHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/assetHomeExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RegExpType,\n RequiredCustomField,\n RequiredPermission,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\n\nexport interface AssetHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"ASSET_HOME_EXTENSION\";\n /**\n * Conditions for the asset home extension to be shown.\n * model and brand is case insensitive so does not matter how you write the brand.\n * brand: \"trackunit\" and brand: \"Trackunit\" will be the same.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If both model and brand are used/filled out then asset needs to match both model and brand.\n * - If only brand or model is used/filled out then the asset needs to match the filled out property.\n * - If only requiredPermissions is used/filled out then the asset home extension will be shown for all assets that the user has the required permission for.\n * - If more requiredPermissions are used/filled out then the asset home extension will be shown for all assets that the user has one of the required permission for.\n * - If no conditions are used/filled out then the asset home extension will be shown for all assets.\n */\n conditions?: {\n model?: (string | RegExpType)[] | string | RegExpType;\n brand?: (string | RegExpType)[] | string | RegExpType;\n requiredPermission?: RequiredPermission | RequiredPermission[];\n\n /**\n * Only entityType ASSET custom fields are supported here\n */\n requiredCustomField?: RequiredCustomField | RequiredCustomField[];\n };\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractExtensionManifest, RequiredPermission, TranslationKey, Translations } from "../irisAppExtensionManifest";
|
|
1
|
+
import { AbstractExtensionManifest, RegExpType, RequiredPermission, TranslationKey, Translations } from "../irisAppExtensionManifest";
|
|
2
2
|
export interface FleetExtensionManifest extends AbstractExtensionManifest {
|
|
3
3
|
type: "FLEET_EXTENSION";
|
|
4
4
|
/**
|
|
@@ -14,8 +14,8 @@ export interface FleetExtensionManifest extends AbstractExtensionManifest {
|
|
|
14
14
|
* - If no conditions are used/filled out then the asset home extension will be shown for all assets.
|
|
15
15
|
*/
|
|
16
16
|
conditions?: {
|
|
17
|
-
model?: string[] | string;
|
|
18
|
-
brand?: string[] | string;
|
|
17
|
+
model?: (string | RegExpType)[] | string | RegExpType;
|
|
18
|
+
brand?: (string | RegExpType)[] | string | RegExpType;
|
|
19
19
|
requiredPermission?: RequiredPermission | RequiredPermission[];
|
|
20
20
|
};
|
|
21
21
|
menuItem: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fleetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/fleetExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RequiredPermission,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\n\nexport interface FleetExtensionManifest extends AbstractExtensionManifest {\n type: \"FLEET_EXTENSION\";\n\n /**\n * Conditions for the fleet extension to be shown.\n * It is case insensitive so does not matter how you write the brand.\n * brand: \"trackunit\" and brand: \"Trackunit\" will be the same.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If both model and brand are used/filled out then asset needs to match both model and brand.\n * - If only brand or model is used/filled out then the asset needs to match the filled out property.\n * - If only requiredPermission is used/filled out then the fleet extension will be shown if the user has the required permission.\n * - If more requiredPermissions are used/filled out then the fleet extension will be shown if the user has one of the required permissions.\n * - If no conditions are used/filled out then the asset home extension will be shown for all assets.\n */\n conditions?: {\n model?: string[] | string;\n brand?: string[] | string;\n requiredPermission?: RequiredPermission | RequiredPermission[];\n };\n menuItem: {\n name: string | Translations | TranslationKey;\n icon: string;\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"fleetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/fleetExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RegExpType,\n RequiredPermission,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\n\nexport interface FleetExtensionManifest extends AbstractExtensionManifest {\n type: \"FLEET_EXTENSION\";\n\n /**\n * Conditions for the fleet extension to be shown.\n * It is case insensitive so does not matter how you write the brand.\n * brand: \"trackunit\" and brand: \"Trackunit\" will be the same.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If both model and brand are used/filled out then asset needs to match both model and brand.\n * - If only brand or model is used/filled out then the asset needs to match the filled out property.\n * - If only requiredPermission is used/filled out then the fleet extension will be shown if the user has the required permission.\n * - If more requiredPermissions are used/filled out then the fleet extension will be shown if the user has one of the required permissions.\n * - If no conditions are used/filled out then the asset home extension will be shown for all assets.\n */\n conditions?: {\n model?: (string | RegExpType)[] | string | RegExpType;\n brand?: (string | RegExpType)[] | string | RegExpType;\n requiredPermission?: RequiredPermission | RequiredPermission[];\n };\n menuItem: {\n name: string | Translations | TranslationKey;\n icon: string;\n };\n}\n"]}
|
|
@@ -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"]}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare type IrisAppExtensionType = "REPORT_EXTENSION" | "IRIS_APP_SETTINGS_EXTENSION" | "ADMIN_EXTENSION" | "FLEET_EXTENSION" | "WIDGET_EXTENSION" | "ASSET_HOME_EXTENSION" | "SITE_HOME_EXTENSION";
|
|
2
|
+
export type RegExpType = {
|
|
3
|
+
pattern: string | RegExp;
|
|
4
|
+
};
|
|
2
5
|
export interface RequiredPermission {
|
|
3
6
|
/**
|
|
4
7
|
* The type of entity that the permission is required for.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppExtensionManifest.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppExtensionManifest.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"irisAppExtensionManifest.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppExtensionManifest.ts"],"names":[],"mappings":";;;AAiFa,QAAA,YAAY,GAAG;IAC1B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACI,CAAC","sourcesContent":["export declare type IrisAppExtensionType =\n | \"REPORT_EXTENSION\"\n | \"IRIS_APP_SETTINGS_EXTENSION\"\n | \"ADMIN_EXTENSION\"\n | \"FLEET_EXTENSION\"\n | \"WIDGET_EXTENSION\"\n | \"ASSET_HOME_EXTENSION\"\n | \"SITE_HOME_EXTENSION\";\n\nexport type RegExpType = {\n pattern: string | RegExp;\n};\n\nexport interface RequiredPermission {\n /**\n * The type of entity that the permission is required for.\n */\n entityType: \"ACCOUNT\";\n\n /**\n * The permission that is required for the app extension to be visible.\n */\n permission: string;\n}\n\n/**\n * Used to limit access to iris apps based on custom field value.\n */\nexport interface RequiredCustomField {\n /**\n * The custom field key to check for, only dropdown, string or boolean is supported.\n */\n customFieldKey: string;\n\n /**\n * The requiredValue that is required for the app extension to be visible.\n */\n requiredValue: string | string[] | boolean;\n}\n\nexport interface AbstractExtensionManifest {\n /** The id of the app extension, will be part of the URL in the manager */\n id: string;\n\n /**\n * The path to the main entry point for the extension.\n *\n * @default \"index.tsx\"\n */\n main?: string;\n\n /**\n * The relative path from the NX workspace to this projects source Root.\n */\n sourceRoot: string;\n\n /** The type of the app extension */\n type: IrisAppExtensionType;\n}\n\nexport interface Translations {\n en: string;\n da?: string;\n de?: string;\n cs?: string;\n nl?: string;\n fr?: string;\n fi?: string;\n hu?: string;\n it?: string;\n nb?: string;\n pl?: string;\n pt?: string;\n ru?: string;\n ro?: string;\n es?: string;\n sv?: string;\n ja?: string;\n th?: string;\n}\n\nexport const languageKeys = [\n \"en\",\n \"da\",\n \"de\",\n \"cs\",\n \"nl\",\n \"fr\",\n \"fi\",\n \"hu\",\n \"it\",\n \"nb\",\n \"pl\",\n \"pt\",\n \"ru\",\n \"ro\",\n \"es\",\n \"sv\",\n \"ja\",\n \"th\",\n] as const;\n\nexport type TranslationLanguageKeys = (typeof languageKeys)[number];\n\nexport interface TranslationKey {\n key: string;\n}\n"]}
|