@trackunit/iris-app-api
Advanced tools
Comparing version 0.0.54 to 0.0.55
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.0.55](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.54...iris-app-api/0.0.55) (2022-11-01) | ||
### [0.0.54](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.53...iris-app-api/0.0.54) (2022-10-27) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@trackunit/iris-app-api", | ||
"version": "0.0.54", | ||
"version": "0.0.55", | ||
"license": "SEE LICENSE IN LICENSE.txt", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/Trackunit/manager", |
@@ -59,2 +59,26 @@ export interface IrisAppManifest { | ||
} | ||
export interface Translations { | ||
en: string; | ||
da?: string; | ||
de?: string; | ||
cs?: string; | ||
nl?: string; | ||
fr?: string; | ||
fi?: string; | ||
hu?: string; | ||
it?: string; | ||
nb?: string; | ||
pl?: string; | ||
pt?: string; | ||
ru?: string; | ||
ro?: string; | ||
es?: string; | ||
sv?: string; | ||
ja?: string; | ||
th?: string; | ||
} | ||
export declare const translationKeys: string[]; | ||
export interface TranslationKey { | ||
key: string; | ||
} | ||
export interface AbstractExtensionManifest { | ||
@@ -213,3 +237,3 @@ /** The id of the app extension, will be part of the URL in the manager */ | ||
menuItem: { | ||
name: string; | ||
name: string | Translations | TranslationKey; | ||
}; | ||
@@ -232,3 +256,3 @@ } | ||
menuItem: { | ||
name: string; | ||
name: string | Translations | TranslationKey; | ||
icon: string; | ||
@@ -240,3 +264,3 @@ }; | ||
menuItem: { | ||
name: string; | ||
name: string | Translations | TranslationKey; | ||
}; | ||
@@ -246,2 +270,17 @@ } | ||
type: "REPORT_EXTENSION"; | ||
menuItem: { | ||
/** | ||
* Title of the card in manager | ||
*/ | ||
name: string | Translations | TranslationKey; | ||
/** | ||
* Subtitle of the card in manager | ||
*/ | ||
description: string | Translations | TranslationKey; | ||
/** | ||
* Icon of the card in manager, must use icons from: | ||
* https://apps.dev.iris.trackunit.com/storybook/?path=/docs/components-icon--default | ||
*/ | ||
icon: string; | ||
}; | ||
} | ||
@@ -248,0 +287,0 @@ export declare type IrisAppExtension = AssetHomeExtensionManifest | AdminExtensionManifest | FleetExtensionManifest | ReportExtensionManifest; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UnitSi = exports.UnitUs = void 0; | ||
exports.UnitSi = exports.UnitUs = exports.translationKeys = void 0; | ||
exports.translationKeys = [ | ||
"en", | ||
"da", | ||
"de", | ||
"cs", | ||
"nl", | ||
"fr", | ||
"fi", | ||
"hu", | ||
"it", | ||
"nb", | ||
"pl", | ||
"pt", | ||
"ru", | ||
"ro", | ||
"es", | ||
"sv", | ||
"ja", | ||
"th", | ||
]; | ||
var UnitUs; | ||
@@ -5,0 +25,0 @@ (function (UnitUs) { |
Sorry, the diff of this file is not supported yet
39798
553