@trackunit/iris-app-oem-api 0.0.1

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 ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
+
5
+ ## 0.0.1 (2023-04-03)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `iris-app-api` updated to version `0.0.81`
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ > **⚠️ Beta**
2
+ >
3
+ > This is a beta version and subject to change without notice.
4
+
5
+ # Trackunit Iris App OEM API
6
+ The `@trackunit/iris-app-oem-api` package is a small package containing reusable types for the Trackunit Iris App SDK.
7
+
8
+ Trackunit Iris App OEM are used to add custom brand images into [the Trackunit Manager platform](https://www.trackunit.com/services/manager/) globally.
9
+
10
+ For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
11
+
12
+ ## Basic Usage
13
+ This package is not meant for isolated usage but is a part of the [`@trackunit/iris-app`](https://www.npmjs.com/package/@trackunit/iris-app) package.
14
+
15
+ ## Trackunit
16
+ This package was developed by Trackunit ApS.
17
+ Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
18
+
19
+ ![The Trackunit logo](https://trackunit.com/wp-content/uploads/2022/03/top-logo.svg)
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@trackunit/iris-app-oem-api",
3
+ "version": "0.0.1",
4
+ "license": "SEE LICENSE IN LICENSE.txt",
5
+ "repository": "https://github.com/Trackunit/manager",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
8
+ "dependencies": {
9
+ "@trackunit/iris-app-api": "0.0.81",
10
+ "tslib": "2.4.1"
11
+ },
12
+ "peerDependencies": {}
13
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./types";
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./types"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-oem-api/src/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB","sourcesContent":["export * from \"./types\";\n"]}
@@ -0,0 +1 @@
1
+ export * from "./irisAppOemManifest";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./irisAppOemManifest"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-oem-api/src/types/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC","sourcesContent":["export * from \"./irisAppOemManifest\";\n"]}
@@ -0,0 +1,72 @@
1
+ import { IrisAppManifest } from "@trackunit/iris-app-api";
2
+ export interface IrisAppOemManifest extends IrisAppManifest {
3
+ /**
4
+ * OEM Branding, where logos and color will be brand oriented.
5
+ */
6
+ oemBranding?: Branding;
7
+ /**
8
+ * Platform Branding, where logos will be platform oriented.
9
+ */
10
+ oemPlatformBranding?: PlatformBranding;
11
+ }
12
+ export interface Branding {
13
+ /**
14
+ * Conditions for the OEM app to be shown.
15
+ */
16
+ conditions: {
17
+ /**
18
+ * It is case insensitive so does not matter how you write the brand.
19
+ * brand: "trackunit" and brand: "Trackunit" will be the same.
20
+ *
21
+ * Brand used/filled out then the asset needs to match the filled out property.
22
+ */
23
+ brand: string;
24
+ };
25
+ /**
26
+ * Path to an image in the assets folder of the app.
27
+ * The image will be shown as brand logo.
28
+ * Example: typing "MyImage.png" here, will show the file "apps/my-app/assets/MyImage.png"
29
+ */
30
+ logoPath?: string;
31
+ /**
32
+ * Path to a grey image in the assets folder of the app.
33
+ * The image will be shown as fleet list logo of an OEM asset.
34
+ * Example: typing "MyImage.png" here, will show the file "apps/my-app/assets/MyImage.png"
35
+ * This image color should be fully this shade of grey: '#717579'.
36
+ */
37
+ darkLogoPath?: string;
38
+ /**
39
+ * Path to an image in the assets folder of the app.
40
+ * The image will be shown as banner of an OEM asset.
41
+ * Example: typing "MyImage.png" here, will show the file "apps/my-app/assets/MyImage.png"
42
+ */
43
+ bannerPath?: string;
44
+ /**
45
+ * Color will be applied to banner and also will used as brand theme color.
46
+ * It will be a hex code. eg: '#FF0000'.
47
+ */
48
+ color?: string;
49
+ }
50
+ export interface PlatformBranding {
51
+ /**
52
+ * Path to an image in the assets folder of the app.
53
+ * The image will be shown in the Events and Insights tab in Asset home.
54
+ * Example: typing "MyImage.png" here, will show the file "apps/my-app/assets/MyImage.png"
55
+ */
56
+ logoPath: string;
57
+ /**
58
+ * Conditions for the OEM app to be shown.
59
+ */
60
+ conditions: {
61
+ /**
62
+ * It is case insensitive so does not matter how you write the brand.
63
+ * brand: "trackunit" and brand: "Trackunit" will be the same.
64
+ * Brand used/filled out then the asset needs to match the filled out property.
65
+ */
66
+ brand: string;
67
+ /**
68
+ * CAN Profiles takes an array of CAN profile names.
69
+ */
70
+ canProfiles?: string[];
71
+ };
72
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=irisAppOemManifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"irisAppOemManifest.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-oem-api/src/types/irisAppOemManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { IrisAppManifest } from \"@trackunit/iris-app-api\";\n\nexport interface IrisAppOemManifest extends IrisAppManifest {\n /**\n * OEM Branding, where logos and color will be brand oriented.\n */\n oemBranding?: Branding;\n /**\n * Platform Branding, where logos will be platform oriented.\n */\n oemPlatformBranding?: PlatformBranding;\n}\n\nexport interface Branding {\n /**\n * Conditions for the OEM app to be shown.\n */\n conditions: {\n /**\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 * Brand used/filled out then the asset needs to match the filled out property.\n */\n brand: string;\n };\n /**\n * Path to an image in the assets folder of the app.\n * The image will be shown as brand logo.\n * Example: typing \"MyImage.png\" here, will show the file \"apps/my-app/assets/MyImage.png\"\n */\n logoPath?: string;\n /**\n * Path to a grey image in the assets folder of the app.\n * The image will be shown as fleet list logo of an OEM asset.\n * Example: typing \"MyImage.png\" here, will show the file \"apps/my-app/assets/MyImage.png\"\n * This image color should be fully this shade of grey: '#717579'.\n */\n darkLogoPath?: string;\n /**\n * Path to an image in the assets folder of the app.\n * The image will be shown as banner of an OEM asset.\n * Example: typing \"MyImage.png\" here, will show the file \"apps/my-app/assets/MyImage.png\"\n */\n bannerPath?: string;\n /**\n * Color will be applied to banner and also will used as brand theme color.\n * It will be a hex code. eg: '#FF0000'.\n */\n color?: string;\n}\n\nexport interface PlatformBranding {\n /**\n * Path to an image in the assets folder of the app.\n * The image will be shown in the Events and Insights tab in Asset home.\n * Example: typing \"MyImage.png\" here, will show the file \"apps/my-app/assets/MyImage.png\"\n */\n logoPath: string;\n /**\n * Conditions for the OEM app to be shown.\n */\n conditions: {\n /**\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 * Brand used/filled out then the asset needs to match the filled out property.\n */\n brand: string;\n /**\n * CAN Profiles takes an array of CAN profile names.\n */\n canProfiles?: string[];\n };\n}\n"]}