@dative-gpi/foundation-shared-domain 1.0.167-map-edit → 1.0.167-terminal

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.
@@ -1,2 +1,2 @@
1
- export * from "./terminalDetails";
2
- export * from "./terminalInfos";
1
+ export * from "./terminalApplicationDetails";
2
+ export * from "./terminalApplicationInfos";
@@ -0,0 +1,25 @@
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
+ }
@@ -1,6 +1,6 @@
1
1
  import { isoToEpoch } from "../../tools/datesTools";
2
2
 
3
- export class TerminalInfos {
3
+ export class TerminalApplicationInfos {
4
4
  id: string;
5
5
  userId: string;
6
6
  label: string;
@@ -10,7 +10,7 @@ export class TerminalInfos {
10
10
  lastConnection: number;
11
11
  token: string;
12
12
 
13
- constructor(params: TerminalInfosDTO) {
13
+ constructor(params: TerminalApplicationInfosDTO) {
14
14
  this.id = params.id;
15
15
  this.userId = params.userId;
16
16
  this.label = params.label;
@@ -23,7 +23,7 @@ export class TerminalInfos {
23
23
 
24
24
  }
25
25
 
26
- export interface TerminalInfosDTO {
26
+ export interface TerminalApplicationInfosDTO {
27
27
  id: string;
28
28
  userId: string;
29
29
  label: string;
@@ -34,6 +34,6 @@ export interface TerminalInfosDTO {
34
34
  token: string;
35
35
  }
36
36
 
37
- export interface TerminalFilters {
37
+ export interface TerminalApplicationFilters {
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-map-edit",
4
+ "version": "1.0.167-terminal",
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": "725635256ebf2bb6450c38e5a3077fb907ea550c"
15
+ "gitHead": "5e587aa37f9a9956a4240d8dc64ce0878f4e6111"
16
16
  }
@@ -1,25 +0,0 @@
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
- }