@dative-gpi/foundation-core-domain 1.0.11 → 1.0.12

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,21 +1,20 @@
1
- import type { ServiceAccountOrganisationAuthTokenInfosDTO } from "./serviceAccountOrganisationAuthTokenInfos";
2
- import { ServiceAccountOrganisationAuthTokenInfos } from "./serviceAccountOrganisationAuthTokenInfos";
1
+ import { ServiceAccountOrganisationAuthTokenInfos, type ServiceAccountOrganisationAuthTokenInfosDTO } from "./serviceAccountOrganisationAuthTokenInfos";
3
2
 
4
3
  export class ServiceAccountOrganisationAuthTokenDetails extends ServiceAccountOrganisationAuthTokenInfos {
5
- token: string;
4
+ token: string;
6
5
 
7
- constructor(params: ServiceAccountOrganisationAuthTokenDetailsDTO) {
8
- super(params);
9
- this.token = params.token;
10
- }
6
+ constructor(params: ServiceAccountOrganisationAuthTokenDetailsDTO) {
7
+ super(params);
8
+ this.token = params.token;
9
+ }
11
10
  }
12
11
 
13
12
  export interface ServiceAccountOrganisationAuthTokenDetailsDTO extends ServiceAccountOrganisationAuthTokenInfosDTO {
14
- token: string;
13
+ token: string;
15
14
  }
16
15
 
17
16
  export interface CreateServiceAccountOrganisationAuthTokenDTO {
18
- serviceAccountOrganisationId?: string;
19
- label?: string;
20
- lifetime?: number;
17
+ serviceAccountOrganisationId?: string;
18
+ label?: string;
19
+ lifetime?: number;
21
20
  }
@@ -1,30 +1,31 @@
1
1
  import { utcToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
2
2
 
3
3
  export class ServiceAccountOrganisationAuthTokenInfos {
4
- id: string;
5
- serviceAccountOrganisationId: string | null;
6
- label: string;
7
- creationDate: number;
8
- dateMax: number;
4
+ id: string;
5
+ serviceAccountOrganisationId: string | null;
6
+ label: string;
7
+ creationDate: number;
8
+ dateMax: number;
9
9
 
10
- constructor(params: ServiceAccountOrganisationAuthTokenInfosDTO) {
11
- this.id = params.id;
12
- this.serviceAccountOrganisationId = params.serviceAccountOrganisationId;
13
- this.label = params.label;
14
- this.creationDate = utcToEpoch(params.creationDate);
15
- this.dateMax = utcToEpoch(params.dateMax);
16
- }
10
+ constructor(params: ServiceAccountOrganisationAuthTokenInfosDTO) {
11
+ this.id = params.id;
12
+ this.serviceAccountOrganisationId = params.serviceAccountOrganisationId;
13
+ this.label = params.label;
14
+ this.creationDate = utcToEpoch(params.creationDate);
15
+ this.dateMax = utcToEpoch(params.dateMax);
16
+ }
17
17
  }
18
18
 
19
19
  export interface ServiceAccountOrganisationAuthTokenInfosDTO {
20
- id: string;
21
- serviceAccountOrganisationId: string | null;
22
- label: string;
23
- creationDate: string;
24
- dateMax: string;
20
+ id: string;
21
+ serviceAccountOrganisationId: string | null;
22
+ label: string;
23
+ creationDate: string;
24
+ dateMax: string;
25
25
  }
26
26
 
27
27
  export interface ServiceAccountOrganisationAuthTokenFilters {
28
- active?: boolean;
29
- minimumSecondDuration?: number;
28
+ serviceAccountOrganisationId?: string | null;
29
+ active?: boolean | null;
30
+ minimumSecondDuration?: number | null;
30
31
  }
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.11",
4
+ "version": "1.0.12",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -9,5 +9,5 @@
9
9
  "main": "index.ts",
10
10
  "author": "",
11
11
  "license": "ISC",
12
- "gitHead": "09cb2eac9d07026646421d3d70214f4cdc5041f2"
12
+ "gitHead": "453b59a41537525583f7c9a3b6d2f2023dbd67f3"
13
13
  }