@dative-gpi/foundation-core-domain 1.0.137-widgetextensions → 1.0.137-widgetextensions2

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.
@@ -0,0 +1,24 @@
1
+ import type { ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
2
+ import type { CreateDashboardDatePresetDTO, CreateDashboardEntityPresetDTO, CreateDashboardVariableDTO, DashboardTranslationDTO, UpdateDashboardOrganisationDTO, UpdateDashboardOrganisationTypeDTO, UpdateDashboardShallowDTO } from "@dative-gpi/foundation-core-domain/models";
3
+
4
+ export interface DashboardSettings {
5
+ folderId: string | null;
6
+ imageId: string | null;
7
+ image: string | null;
8
+ labelDefault: string;
9
+ locked: boolean;
10
+ code: string;
11
+ colors: string[];
12
+ icon: string;
13
+ tags: string[];
14
+ translations: DashboardTranslationDTO[];
15
+ entityPresetCode: string | null;
16
+ datePresetCode: string | null;
17
+ variableCode: string | null;
18
+ datePresets: CreateDashboardDatePresetDTO[];
19
+ entityPresets: CreateDashboardEntityPresetDTO[];
20
+ variables: CreateDashboardVariableDTO[];
21
+ scope: ApplicationScope;
22
+ }
23
+
24
+ export type UpdateDashboardSettingsDTO = Omit<UpdateDashboardOrganisationDTO & UpdateDashboardOrganisationTypeDTO & UpdateDashboardShallowDTO, "widgets">;
@@ -1,3 +1,4 @@
1
1
  export * from "./dashboardDetails";
2
2
  export * from "./dashboardInfos";
3
+ export * from "./dashboardSettings";
3
4
  export * from "./dashboardTranslation";
@@ -17,6 +17,7 @@ const clean = <T>(meta: T): T => {
17
17
  export class WidgetTemplateInfos {
18
18
  id: string;
19
19
  extensionId: string | null;
20
+ extensionHost: string | null;
20
21
  label: string;
21
22
  code: string;
22
23
  icon: string;
@@ -28,7 +29,8 @@ export class WidgetTemplateInfos {
28
29
 
29
30
  constructor(params: WidgetTemplateInfosDTO) {
30
31
  this.id = params.id;
31
- this.extensionId = params.extensionId || null;
32
+ this.extensionId = params.extensionId ?? null;
33
+ this.extensionHost = params.extensionHost ?? null;
32
34
  this.label = params.label;
33
35
  this.code = params.code;
34
36
  this.icon = params.icon;
@@ -43,6 +45,7 @@ export class WidgetTemplateInfos {
43
45
  export interface WidgetTemplateInfosDTO {
44
46
  id: string;
45
47
  extensionId?: string;
48
+ extensionHost?: string;
46
49
  label: string;
47
50
  code: string;
48
51
  icon: string;
@@ -1,2 +1,3 @@
1
1
  export * from "./widgetDetails";
2
- export * from "./widgetInfos";
2
+ export * from "./widgetInfos";
3
+ export * from "./widgetInterface";
@@ -12,7 +12,6 @@ export interface WidgetDetailsDTO extends WidgetInfosDTO {
12
12
 
13
13
  export interface CreateWidgetDTO {
14
14
  templateId: string;
15
- extensionId: string | null;
16
15
  hideBorders: boolean;
17
16
  width: number;
18
17
  height: number;
@@ -16,8 +16,6 @@ const clean = <T>(meta: T): T => {
16
16
  export class WidgetInfos {
17
17
  id: string;
18
18
  templateId: string;
19
- extensionId: string | null;
20
- extensionHost: string | null;
21
19
  hideBorders: boolean;
22
20
  width: number;
23
21
  height: number;
@@ -29,8 +27,6 @@ export class WidgetInfos {
29
27
  constructor(params: WidgetInfosDTO) {
30
28
  this.id = params.id;
31
29
  this.templateId = params.templateId;
32
- this.extensionId = params.extensionId || null;
33
- this.extensionHost = params.extensionHost || null;
34
30
  this.hideBorders = params.hideBorders;
35
31
  this.width = params.width;
36
32
  this.height = params.height;
@@ -44,8 +40,6 @@ export class WidgetInfos {
44
40
  export interface WidgetInfosDTO {
45
41
  id: string;
46
42
  templateId: string;
47
- extensionId?: string;
48
- extensionHost?: string;
49
43
  hideBorders: boolean;
50
44
  width: number;
51
45
  height: number;
@@ -0,0 +1,11 @@
1
+ export interface Widget {
2
+ id: string;
3
+ templateId: string;
4
+ hideBorders: boolean;
5
+ width: number;
6
+ height: number;
7
+ x: number;
8
+ y: number;
9
+ targetScreenSize: "s" | "m" | "l" | "xl";
10
+ meta: { [key: string]: string };
11
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-core-domain",
3
3
  "sideEffects": false,
4
- "version": "1.0.137-widgetextensions",
4
+ "version": "1.0.137-widgetextensions2",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.137-widgetextensions",
14
- "@dative-gpi/foundation-shared-services": "1.0.137-widgetextensions"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.137-widgetextensions2",
14
+ "@dative-gpi/foundation-shared-services": "1.0.137-widgetextensions2"
15
15
  },
16
- "gitHead": "b71a94a30c0a389252af262e357deb0d0435fceb"
16
+ "gitHead": "cad1342d5c937276bcb3f03f852f273e8a182a9b"
17
17
  }