@dative-gpi/foundation-shared-domain 1.0.167-terminalv2 → 1.0.167-tree-view

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/models/index.ts CHANGED
@@ -8,7 +8,7 @@ export * from "./notifications";
8
8
  export * from "./organisations";
9
9
  export * from "./organisationTypes"; // No service
10
10
  export * from "./permissions";
11
- export * from "./terminalApplications";
11
+ export * from "./terminals";
12
12
  export * from "./timeZones";
13
13
  export * from "./translations";
14
14
  export * from "./userLegalInformations";
@@ -0,0 +1,2 @@
1
+ export * from "./terminalDetails";
2
+ export * from "./terminalInfos";
@@ -0,0 +1,25 @@
1
+ import { TerminalInfos, type TerminalInfosDTO } from "./terminalInfos";
2
+
3
+ export class TerminalDetails extends TerminalInfos {
4
+ constructor(params: TerminalDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface TerminalDetailsDTO extends TerminalInfosDTO {
10
+ }
11
+
12
+ export interface CreateTerminalDTO {
13
+ label: string;
14
+ icon: string;
15
+ key: string;
16
+ location: string;
17
+ token: string;
18
+ }
19
+
20
+ export interface UpdateTerminalDTO {
21
+ label: string;
22
+ icon: string;
23
+ location: string;
24
+ token: string;
25
+ }
@@ -1,6 +1,6 @@
1
1
  import { isoToEpoch } from "../../tools/datesTools";
2
2
 
3
- export class TerminalApplicationInfos {
3
+ export class TerminalInfos {
4
4
  id: string;
5
5
  userId: string;
6
6
  label: string;
@@ -10,7 +10,7 @@ export class TerminalApplicationInfos {
10
10
  lastConnection: number;
11
11
  token: string;
12
12
 
13
- constructor(params: TerminalApplicationInfosDTO) {
13
+ constructor(params: TerminalInfosDTO) {
14
14
  this.id = params.id;
15
15
  this.userId = params.userId;
16
16
  this.label = params.label;
@@ -23,7 +23,7 @@ export class TerminalApplicationInfos {
23
23
 
24
24
  }
25
25
 
26
- export interface TerminalApplicationInfosDTO {
26
+ export interface TerminalInfosDTO {
27
27
  id: string;
28
28
  userId: string;
29
29
  label: string;
@@ -34,6 +34,6 @@ export interface TerminalApplicationInfosDTO {
34
34
  token: string;
35
35
  }
36
36
 
37
- export interface TerminalApplicationFilters {
37
+ export interface TerminalFilters {
38
38
  token?: string | null;
39
39
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-domain",
3
3
  "sideEffects": false,
4
- "version": "1.0.167-terminalv2",
4
+ "version": "1.0.167-tree-view",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -12,5 +12,5 @@
12
12
  "peerDependencies": {
13
13
  "date-fns": "^3.6.0"
14
14
  },
15
- "gitHead": "fb3d46495efdfd047f02e72d56a426f746e0a987"
15
+ "gitHead": "9cf5322e67afdaed766615c2ec9723c8784e9bfa"
16
16
  }
@@ -1,2 +0,0 @@
1
- export * from "./terminalApplicationDetails";
2
- export * from "./terminalApplicationInfos";
@@ -1,25 +0,0 @@
1
- import { TerminalApplicationInfos, type TerminalApplicationInfosDTO } from "./terminalApplicationInfos";
2
-
3
- export class TerminalApplicationDetails extends TerminalApplicationInfos {
4
- constructor(params: TerminalApplicationDetailsDTO) {
5
- super(params);
6
- }
7
- }
8
-
9
- export interface TerminalApplicationDetailsDTO extends TerminalApplicationInfosDTO {
10
- }
11
-
12
- export interface CreateApplicationTerminalDTO {
13
- label: string;
14
- icon: string;
15
- key: string;
16
- location: string;
17
- token: string;
18
- }
19
-
20
- export interface UpdateTerminalApplicationDTO {
21
- label: string;
22
- icon: string;
23
- location: string;
24
- token: string;
25
- }