@dative-gpi/foundation-core-domain 0.0.162 → 0.0.166
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 +2 -2
- package/models/serviceAccountOrganisationAuthTokens/index.ts +2 -0
- package/models/serviceAccountOrganisationAuthTokens/serviceAccountOrganisationAuthTokenDetails.ts +20 -0
- package/models/serviceAccountOrganisationAuthTokens/serviceAccountOrganisationAuthTokenInfos.ts +28 -0
- package/models/serviceAccountOrganisations/index.ts +2 -0
- package/models/{serviceAccounts/serviceAccountDetails.ts → serviceAccountOrganisations/serviceAccountOrganisationDetails.ts} +6 -6
- package/models/{serviceAccounts/serviceAccountInfos.ts → serviceAccountOrganisations/serviceAccountOrganisationInfos.ts} +4 -4
- package/package.json +2 -2
- package/models/serviceAccountAuthTokens/index.ts +0 -2
- package/models/serviceAccountAuthTokens/serviceAccountAuthTokenDetails.ts +0 -20
- package/models/serviceAccountAuthTokens/serviceAccountIdAuthTokenInfos.ts +0 -28
- package/models/serviceAccounts/index.ts +0 -2
package/models/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./actions";
|
|
2
2
|
export * from "./alerts";
|
|
3
3
|
export * from "./articles";
|
|
4
|
-
export * from "./serviceAccountAuthTokens";
|
|
5
4
|
export * from "./chartCategories";
|
|
6
5
|
export * from "./chartOrganisationTypes";
|
|
7
6
|
export * from "./chartOrganisations";
|
|
@@ -46,7 +45,8 @@ export * from "./scenarioOrganisations";
|
|
|
46
45
|
export * from "./scenarioOrganisationTypes";
|
|
47
46
|
export * from "./scenarios"; // No service
|
|
48
47
|
export * from "./shared"; // No service
|
|
49
|
-
export * from "./
|
|
48
|
+
export * from "./serviceAccountOrganisationAuthTokens";
|
|
49
|
+
export * from "./serviceAccountOrganisations";
|
|
50
50
|
export * from "./userOrganisationColumns"; // No service
|
|
51
51
|
export * from "./userOrganisations";
|
|
52
52
|
export * from "./userOrganisationTables";
|
package/models/serviceAccountOrganisationAuthTokens/serviceAccountOrganisationAuthTokenDetails.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ServiceAccountOrganisationAuthTokenInfos, ServiceAccountOrganisationAuthTokenInfosDTO } from "./serviceAccountOrganisationAuthTokenInfos";
|
|
2
|
+
|
|
3
|
+
export class ServiceAccountOrganisationAuthTokenDetails extends ServiceAccountOrganisationAuthTokenInfos {
|
|
4
|
+
token: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: ServiceAccountOrganisationAuthTokenDetailsDTO) {
|
|
7
|
+
super(params);
|
|
8
|
+
this.token = params.token;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ServiceAccountOrganisationAuthTokenDetailsDTO extends ServiceAccountOrganisationAuthTokenInfosDTO {
|
|
13
|
+
token: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface CreateServiceAccountOrganisationAuthTokenDTO {
|
|
17
|
+
serviceAccountOrganisationId?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
lifetime?: number;
|
|
20
|
+
}
|
package/models/serviceAccountOrganisationAuthTokens/serviceAccountOrganisationAuthTokenInfos.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { utcToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
2
|
+
|
|
3
|
+
export class ServiceAccountOrganisationAuthTokenInfos {
|
|
4
|
+
id: string;
|
|
5
|
+
serviceAccountOrganisationId: string | null;
|
|
6
|
+
label: string;
|
|
7
|
+
creationDate: number;
|
|
8
|
+
dateMax: number;
|
|
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
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ServiceAccountOrganisationAuthTokenInfosDTO {
|
|
20
|
+
id: string;
|
|
21
|
+
serviceAccountOrganisationId: string | null;
|
|
22
|
+
label: string;
|
|
23
|
+
creationDate: string;
|
|
24
|
+
dateMax: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ServiceAccountOrganisationAuthTokenFilters {
|
|
28
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PermissionInfos, PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { ServiceAccountOrganisationInfos, ServiceAccountOrganisationInfosDTO } from "./serviceAccountOrganisationInfos";
|
|
4
4
|
import { RoleType } from "../enums/roleEnums";
|
|
5
5
|
|
|
6
|
-
export class
|
|
6
|
+
export class ServiceAccountOrganisationDetails extends ServiceAccountOrganisationInfos {
|
|
7
7
|
languageCode: string;
|
|
8
8
|
timeZoneId: string;
|
|
9
9
|
permissions: PermissionInfos[];
|
|
10
10
|
|
|
11
|
-
constructor(params:
|
|
11
|
+
constructor(params: ServiceAccountOrganisationDetailsDTO) {
|
|
12
12
|
super(params);
|
|
13
13
|
|
|
14
14
|
this.languageCode = params.languageCode;
|
|
@@ -17,13 +17,13 @@ export class ServiceAccountDetails extends ServiceAccountInfos {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface
|
|
20
|
+
export interface ServiceAccountOrganisationDetailsDTO extends ServiceAccountOrganisationInfosDTO {
|
|
21
21
|
languageCode: string;
|
|
22
22
|
timeZoneId: string;
|
|
23
23
|
permissions: PermissionInfosDTO[];
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export interface
|
|
26
|
+
export interface CreateServiceAccountOrganisationDTO {
|
|
27
27
|
roleType: RoleType;
|
|
28
28
|
roleId: string | null;
|
|
29
29
|
languageCode: string;
|
|
@@ -34,7 +34,7 @@ export interface CreateServiceAccountDTO {
|
|
|
34
34
|
tags: string[];
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export interface
|
|
37
|
+
export interface UpdateServiceAccountOrganisationDTO {
|
|
38
38
|
roleType: RoleType;
|
|
39
39
|
roleId: string | null;
|
|
40
40
|
languageCode: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserType, UserValidityState } from "../enums/userEnums";
|
|
2
2
|
import { RoleType } from "../enums/roleEnums";
|
|
3
3
|
|
|
4
|
-
export class
|
|
4
|
+
export class ServiceAccountOrganisationInfos {
|
|
5
5
|
id: string;
|
|
6
6
|
userId: string;
|
|
7
7
|
organisationId: string;
|
|
@@ -16,7 +16,7 @@ export class ServiceAccountInfos {
|
|
|
16
16
|
description: string;
|
|
17
17
|
tags: string[];
|
|
18
18
|
|
|
19
|
-
constructor(params:
|
|
19
|
+
constructor(params: ServiceAccountOrganisationInfosDTO) {
|
|
20
20
|
this.id = params.id;
|
|
21
21
|
this.userId = params.userId;
|
|
22
22
|
this.organisationId = params.organisationId;
|
|
@@ -33,7 +33,7 @@ export class ServiceAccountInfos {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface
|
|
36
|
+
export interface ServiceAccountOrganisationInfosDTO {
|
|
37
37
|
id: string;
|
|
38
38
|
userId: string;
|
|
39
39
|
organisationId: string;
|
|
@@ -49,6 +49,6 @@ export interface ServiceAccountInfosDTO {
|
|
|
49
49
|
tags: string[] | null;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export interface
|
|
52
|
+
export interface ServiceAccountOrganisationFilters {
|
|
53
53
|
search?: string | null;
|
|
54
54
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.166",
|
|
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": "
|
|
12
|
+
"gitHead": "1ba8f680febcc23d230b890ed81dcfd451fd009b"
|
|
13
13
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ServiceAccountAuthTokenInfos, ServiceAccountAuthTokenInfosDTO } from "./serviceAccountIdAuthTokenInfos";
|
|
2
|
-
|
|
3
|
-
export class ServiceAccountAuthTokenDetails extends ServiceAccountAuthTokenInfos {
|
|
4
|
-
token: string;
|
|
5
|
-
|
|
6
|
-
constructor(params: ServiceAccountAuthTokenDetailsDTO) {
|
|
7
|
-
super(params);
|
|
8
|
-
this.token = params.token;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface ServiceAccountAuthTokenDetailsDTO extends ServiceAccountAuthTokenInfosDTO {
|
|
13
|
-
token: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface CreateServiceAccountAuthTokenDTO {
|
|
17
|
-
serviceAccountId?: string;
|
|
18
|
-
label?: string;
|
|
19
|
-
lifetime?: number;
|
|
20
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { utcToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
2
|
-
|
|
3
|
-
export class ServiceAccountAuthTokenInfos {
|
|
4
|
-
id: string;
|
|
5
|
-
serviceAccountId: string | null;
|
|
6
|
-
label: string;
|
|
7
|
-
creationDate: number;
|
|
8
|
-
dateMax: number;
|
|
9
|
-
|
|
10
|
-
constructor(params: ServiceAccountAuthTokenInfosDTO) {
|
|
11
|
-
this.id = params.id;
|
|
12
|
-
this.serviceAccountId = params.serviceAccountId;
|
|
13
|
-
this.label = params.label;
|
|
14
|
-
this.creationDate = utcToEpoch(params.creationDate);
|
|
15
|
-
this.dateMax = utcToEpoch(params.dateMax);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface ServiceAccountAuthTokenInfosDTO {
|
|
20
|
-
id: string;
|
|
21
|
-
serviceAccountId: string | null;
|
|
22
|
-
label: string;
|
|
23
|
-
creationDate: string;
|
|
24
|
-
dateMax: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface ServiceAccountAuthTokenFilters {
|
|
28
|
-
}
|