@hosterai/types 0.0.3 → 0.0.4

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.
@@ -7,7 +7,7 @@ import { LanguageEnum } from '../../enums/language.enum';
7
7
  import { RolesEnum } from '../../enums/roles.enum';
8
8
  import { ActionDto } from '../action.dto';
9
9
  import { TabDto } from '../tab.dto';
10
- import { MenuDto } from '../menu.dto';
10
+ import { MenuDtoWithSubmenu, MenuDtoWithUrl } from '../menu.dto';
11
11
  /**
12
12
  * DTO for integration information
13
13
  * Contains all information related to a service integration
@@ -81,9 +81,8 @@ export declare class InfoDto {
81
81
  order?: ActionDto[];
82
82
  };
83
83
  /** Main menu for the admin panel. Extends TabDto and adds icon information */
84
- menu?: MenuDto;
85
- /** Settings menu for the admin panel. Extends TabDto and adds icon information */
86
- settings: {
84
+ menu?: MenuDtoWithSubmenu | MenuDtoWithUrl;
85
+ settings?: {
87
86
  label: string;
88
87
  icon: string;
89
88
  descrition: string;
@@ -117,7 +116,7 @@ export declare class InfoDto {
117
116
  * If there are submenus, the label of the MenuDto and the TabDtos of the MenuDto will be displayed in the panel.
118
117
  * The TabDtos of the MenuDto will be the submenus of the MenuDto.
119
118
  */
120
- menu?: MenuDto;
119
+ menu?: MenuDtoWithSubmenu | MenuDtoWithUrl;
121
120
  };
122
121
  /**
123
122
  * The url for the onboarding process after installation of the integration
@@ -37,8 +37,4 @@ export interface MenuDtoWithSubmenu extends BaseMenuDto {
37
37
  */
38
38
  submenu: SubmenuDto[];
39
39
  }
40
- /**
41
- * Union type that ensures a menu item has either a URL or a submenu, but never both
42
- */
43
- export type MenuDto = MenuDtoWithUrl | MenuDtoWithSubmenu;
44
40
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hosterai/types",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {