@trackunit/iris-app-api 0.2.13-alpha-c6639d22933.0 → 0.2.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
-
## [0.2.13
|
|
5
|
+
## [0.2.13](https://github.com/Trackunit/manager/compare/iris-app-api/0.2.12...iris-app-api/0.2.13) (2024-11-18)
|
|
6
6
|
|
|
7
7
|
## [0.2.12](https://github.com/Trackunit/manager/compare/iris-app-api/0.2.11...iris-app-api/0.2.12) (2024-10-29)
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { AbstractExtensionManifest, RequiredCustomField, TranslationKey, Translations } from "../irisAppExtensionManifest";
|
|
2
2
|
import { AccountScope } from "../scopes";
|
|
3
|
+
declare const siteType: {
|
|
4
|
+
readonly AREA: "AREA";
|
|
5
|
+
readonly CLASSIC_POI: "CLASSIC_POI";
|
|
6
|
+
readonly CLASSIC_ZONE: "CLASSIC_ZONE";
|
|
7
|
+
readonly CONSTRUCTION_SITE: "CONSTRUCTION_SITE";
|
|
8
|
+
readonly DEPOT: "DEPOT";
|
|
9
|
+
readonly NOT_ON_SITE: "NOT_ON_SITE";
|
|
10
|
+
readonly WORK_PLACE: "WORK_PLACE";
|
|
11
|
+
};
|
|
12
|
+
type SiteType = (typeof siteType)[keyof typeof siteType];
|
|
3
13
|
export interface SiteHomeExtensionManifest extends AbstractExtensionManifest {
|
|
4
14
|
type: "SITE_HOME_EXTENSION";
|
|
5
15
|
/**
|
|
@@ -13,6 +23,7 @@ export interface SiteHomeExtensionManifest extends AbstractExtensionManifest {
|
|
|
13
23
|
* - If no conditions are used/filled out then the site home extension will be shown for all sites.
|
|
14
24
|
*/
|
|
15
25
|
conditions?: {
|
|
26
|
+
siteType?: SiteType[] | SiteType;
|
|
16
27
|
scopes?: AccountScope | AccountScope[];
|
|
17
28
|
/**
|
|
18
29
|
* Only entityType SITE custom fields are supported here
|
|
@@ -23,3 +34,4 @@ export interface SiteHomeExtensionManifest extends AbstractExtensionManifest {
|
|
|
23
34
|
name: string | Translations | TranslationKey;
|
|
24
35
|
};
|
|
25
36
|
}
|
|
37
|
+
export {};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const siteType = {
|
|
4
|
+
AREA: "AREA",
|
|
5
|
+
CLASSIC_POI: "CLASSIC_POI",
|
|
6
|
+
CLASSIC_ZONE: "CLASSIC_ZONE",
|
|
7
|
+
CONSTRUCTION_SITE: "CONSTRUCTION_SITE",
|
|
8
|
+
DEPOT: "DEPOT",
|
|
9
|
+
NOT_ON_SITE: "NOT_ON_SITE",
|
|
10
|
+
WORK_PLACE: "WORK_PLACE",
|
|
11
|
+
};
|
|
3
12
|
//# sourceMappingURL=siteHomeExtensionManifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siteHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/siteHomeExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RequiredCustomField,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface SiteHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"SITE_HOME_EXTENSION\";\n\n /**\n * Conditions for the site home extension to be shown.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If only scopes is used/filled out then the site home extension will be shown for all sites that the user has the required permission for.\n * - If more scopes are used/filled out then the site home extension will be shown for all sites that the user has one of the required permission for.\n * - If only requiredCustomField is used/filled out then the site home extension will be shown for all sites that has the required custom field.\n * - If more requiredCustomField are used/filled out then the site home extension will be shown for all sites that has all of the required custom field.\n * - If no conditions are used/filled out then the site home extension will be shown for all sites.\n */\n conditions?: {\n scopes?: AccountScope | AccountScope[];\n\n /**\n * Only entityType SITE custom fields are supported here\n */\n requiredCustomField?: RequiredCustomField | RequiredCustomField[];\n };\n\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"siteHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/siteHomeExtensionManifest.ts"],"names":[],"mappings":";;AAQA,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;IACtC,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;CAChB,CAAC","sourcesContent":["import {\n AbstractExtensionManifest,\n RequiredCustomField,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nconst siteType = {\n AREA: \"AREA\",\n CLASSIC_POI: \"CLASSIC_POI\",\n CLASSIC_ZONE: \"CLASSIC_ZONE\",\n CONSTRUCTION_SITE: \"CONSTRUCTION_SITE\",\n DEPOT: \"DEPOT\",\n NOT_ON_SITE: \"NOT_ON_SITE\",\n WORK_PLACE: \"WORK_PLACE\",\n} as const;\ntype SiteType = (typeof siteType)[keyof typeof siteType];\n\nexport interface SiteHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"SITE_HOME_EXTENSION\";\n\n /**\n * Conditions for the site home extension to be shown.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If only scopes is used/filled out then the site home extension will be shown for all sites that the user has the required permission for.\n * - If more scopes are used/filled out then the site home extension will be shown for all sites that the user has one of the required permission for.\n * - If only requiredCustomField is used/filled out then the site home extension will be shown for all sites that has the required custom field.\n * - If more requiredCustomField are used/filled out then the site home extension will be shown for all sites that has all of the required custom field.\n * - If no conditions are used/filled out then the site home extension will be shown for all sites.\n */\n conditions?: {\n siteType?: SiteType[] | SiteType;\n scopes?: AccountScope | AccountScope[];\n\n /**\n * Only entityType SITE custom fields are supported here\n */\n requiredCustomField?: RequiredCustomField | RequiredCustomField[];\n };\n\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
|