@dative-gpi/foundation-core-domain 0.0.2
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/index.ts +1 -0
- package/models/alerts/alertDataDefinition.ts +17 -0
- package/models/alerts/alertDetails.ts +15 -0
- package/models/alerts/alertInfos.ts +116 -0
- package/models/alerts/alertState.ts +29 -0
- package/models/alerts/index.ts +4 -0
- package/models/applications/applicationDetails.ts +16 -0
- package/models/applications/applicationInfos.ts +29 -0
- package/models/applications/index.ts +2 -0
- package/models/articles/articleDetails.ts +27 -0
- package/models/articles/articleInfos.ts +30 -0
- package/models/articles/index.ts +2 -0
- package/models/authTokens/authTokenDetails.ts +20 -0
- package/models/authTokens/authTokenInfos.ts +27 -0
- package/models/authTokens/index.ts +2 -0
- package/models/connectivityAlerts/connectivityAlertDetails.ts +10 -0
- package/models/connectivityAlerts/connectivityAlertInfos.ts +58 -0
- package/models/connectivityAlerts/index.ts +2 -0
- package/models/customProperties/customPropertyColor.ts +22 -0
- package/models/customProperties/customPropertyDetails.ts +11 -0
- package/models/customProperties/customPropertyInfos.ts +68 -0
- package/models/customProperties/index.ts +3 -0
- package/models/customPropertyValues/customPropertyValueDetails.ts +10 -0
- package/models/customPropertyValues/customPropertyValueInfos.ts +14 -0
- package/models/customPropertyValues/index.ts +2 -0
- package/models/dataCategories/dataCategoryDetails.ts +10 -0
- package/models/dataCategories/dataCategoryInfos.ts +29 -0
- package/models/dataCategories/index.ts +2 -0
- package/models/dataDefinitionMappings/dataDefinitionMappingDetails.ts +10 -0
- package/models/dataDefinitionMappings/dataDefinitionMappingInfos.ts +17 -0
- package/models/dataDefinitionMappings/index.ts +2 -0
- package/models/dataDefinitions/dataDefinitionDetails.ts +10 -0
- package/models/dataDefinitions/dataDefinitionInfos.ts +57 -0
- package/models/dataDefinitions/index.ts +2 -0
- package/models/deviceConnectivities/deviceConnectivityDetails.ts +10 -0
- package/models/deviceConnectivities/deviceConnectivityInfos.ts +31 -0
- package/models/deviceConnectivities/index.ts +2 -0
- package/models/deviceOrganisations/deviceOrganisationAlert.ts +28 -0
- package/models/deviceOrganisations/deviceOrganisationDetails.ts +64 -0
- package/models/deviceOrganisations/deviceOrganisationInfos.ts +132 -0
- package/models/deviceOrganisations/deviceOrganisationOption.ts +23 -0
- package/models/deviceOrganisations/index.ts +4 -0
- package/models/deviceStatuses/deviceStatusDetails.ts +10 -0
- package/models/deviceStatuses/deviceStatusInfos.ts +65 -0
- package/models/deviceStatuses/index.ts +2 -0
- package/models/enums/alertEnums.ts +30 -0
- package/models/enums/applicationEnums.ts +8 -0
- package/models/enums/customPropertyEnums.ts +12 -0
- package/models/enums/dashboardEnums.ts +30 -0
- package/models/enums/dataDefinitionEnums.ts +5 -0
- package/models/enums/deviceEnums.ts +7 -0
- package/models/enums/index.ts +9 -0
- package/models/enums/roleEnums.ts +5 -0
- package/models/enums/sharedEnums.ts +20 -0
- package/models/enums/userEnums.ts +13 -0
- package/models/families/familyDetails.ts +18 -0
- package/models/families/familyInfos.ts +18 -0
- package/models/families/index.ts +2 -0
- package/models/groups/groupDetails.ts +41 -0
- package/models/groups/groupInfos.ts +72 -0
- package/models/groups/index.ts +2 -0
- package/models/index.ts +32 -0
- package/models/languages/index.ts +2 -0
- package/models/languages/languageDetails.ts +10 -0
- package/models/languages/languageInfos.ts +24 -0
- package/models/locations/address.ts +29 -0
- package/models/locations/index.ts +3 -0
- package/models/locations/locationDetails.ts +35 -0
- package/models/locations/locationInfos.ts +46 -0
- package/models/manufacturers/index.ts +2 -0
- package/models/manufacturers/manufacturerDetails.ts +15 -0
- package/models/manufacturers/manufacturerInfos.ts +30 -0
- package/models/modelStatuses/index.ts +1 -0
- package/models/modelStatuses/modelStatus.ts +53 -0
- package/models/models/index.ts +2 -0
- package/models/models/modelDetails.ts +10 -0
- package/models/models/modelInfos.ts +43 -0
- package/models/organisationTypes/index.ts +2 -0
- package/models/organisationTypes/organisationTypeDetails.ts +21 -0
- package/models/organisationTypes/organisationTypeInfos.ts +29 -0
- package/models/organisations/index.ts +2 -0
- package/models/organisations/organisationDetails.ts +53 -0
- package/models/organisations/organisationInfos.ts +33 -0
- package/models/permissionCategories/index.ts +2 -0
- package/models/permissionCategories/permissionCategoryDetails.ts +10 -0
- package/models/permissionCategories/permissionCategoryInfos.ts +24 -0
- package/models/permissions/index.ts +2 -0
- package/models/permissions/permissionDetails.ts +10 -0
- package/models/permissions/permissionInfos.ts +17 -0
- package/models/roleOrganisationTypes/index.ts +2 -0
- package/models/roleOrganisationTypes/roleOrganisationTypeDetails.ts +15 -0
- package/models/roleOrganisationTypes/roleOrganisationTypeInfos.ts +52 -0
- package/models/roleOrganisations/index.ts +2 -0
- package/models/roleOrganisations/roleOrganisationDetails.ts +36 -0
- package/models/roleOrganisations/roleOrganisationInfos.ts +47 -0
- package/models/shared/dateVariable.ts +14 -0
- package/models/shared/index.ts +2 -0
- package/models/shared/pathCrumb.ts +17 -0
- package/models/timeZones/index.ts +1 -0
- package/models/timeZones/timeZoneInfos.ts +18 -0
- package/models/translations/index.ts +2 -0
- package/models/translations/translationDetails.ts +10 -0
- package/models/translations/translationInfos.ts +17 -0
- package/models/userOrganisations/index.ts +2 -0
- package/models/userOrganisations/userOrganisationDetails.ts +70 -0
- package/models/userOrganisations/userOrganisationInfos.ts +82 -0
- package/models/users/index.ts +2 -0
- package/models/users/userDetails.ts +39 -0
- package/models/users/userInfos.ts +39 -0
- package/package.json +12 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PathCrumb, PathCrumbDTO } from "../shared/pathCrumb";
|
|
2
|
+
|
|
3
|
+
export class GroupInfos {
|
|
4
|
+
id: string;
|
|
5
|
+
organisationId: string;
|
|
6
|
+
parentId?: string;
|
|
7
|
+
imageId?: string;
|
|
8
|
+
imageBlurHash: string;
|
|
9
|
+
imageHeight?: number;
|
|
10
|
+
imageWidth?: number;
|
|
11
|
+
icon: string;
|
|
12
|
+
code: string;
|
|
13
|
+
label: string;
|
|
14
|
+
tags: string[];
|
|
15
|
+
path: PathCrumb[];
|
|
16
|
+
groupsIds: string[];
|
|
17
|
+
deviceOrganisationsIds: string[];
|
|
18
|
+
modelsIds: string[];
|
|
19
|
+
recursiveGroupsIds: string[];
|
|
20
|
+
recursiveDeviceOrganisationsIds: string[];
|
|
21
|
+
recursiveModelsIds: string[];
|
|
22
|
+
|
|
23
|
+
constructor(params: GroupInfosDTO) {
|
|
24
|
+
this.id = params.id;
|
|
25
|
+
this.organisationId = params.organisationId;
|
|
26
|
+
this.parentId = params.parentId;
|
|
27
|
+
this.imageId = params.imageId;
|
|
28
|
+
this.imageBlurHash = params.imageBlurHash;
|
|
29
|
+
this.imageHeight = params.imageHeight;
|
|
30
|
+
this.imageWidth = params.imageWidth;
|
|
31
|
+
this.icon = params.icon;
|
|
32
|
+
this.code = params.code;
|
|
33
|
+
this.label = params.label;
|
|
34
|
+
this.tags = params.tags;
|
|
35
|
+
this.path = params.path.map(dto => new PathCrumb({ ...dto })).sort((a, b) => b.index - a.index);
|
|
36
|
+
this.groupsIds = params.groupsIds.slice();
|
|
37
|
+
this.deviceOrganisationsIds = params.deviceOrganisationsIds.slice();
|
|
38
|
+
this.modelsIds = params.modelsIds.slice();
|
|
39
|
+
this.recursiveGroupsIds = params.recursiveGroupsIds.slice();
|
|
40
|
+
this.recursiveDeviceOrganisationsIds = params.recursiveDeviceOrganisationsIds.slice();
|
|
41
|
+
this.recursiveModelsIds = params.recursiveModelsIds.slice();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface GroupInfosDTO {
|
|
46
|
+
id: string;
|
|
47
|
+
organisationId: string;
|
|
48
|
+
parentId?: string;
|
|
49
|
+
imageId?: string;
|
|
50
|
+
imageBlurHash: string;
|
|
51
|
+
imageHeight?: number;
|
|
52
|
+
imageWidth?: number;
|
|
53
|
+
icon: string;
|
|
54
|
+
code: string;
|
|
55
|
+
label: string;
|
|
56
|
+
tags: string[];
|
|
57
|
+
path: PathCrumbDTO[];
|
|
58
|
+
groupsIds: string[];
|
|
59
|
+
deviceOrganisationsIds: string[];
|
|
60
|
+
modelsIds: string[];
|
|
61
|
+
recursiveGroupsIds: string[];
|
|
62
|
+
recursiveDeviceOrganisationsIds: string[];
|
|
63
|
+
recursiveModelsIds: string[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface GroupFilters {
|
|
67
|
+
parentId?: string;
|
|
68
|
+
root?: boolean;
|
|
69
|
+
modelsIds?: string[];
|
|
70
|
+
groupsIds?: string[];
|
|
71
|
+
search?: string;
|
|
72
|
+
}
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export * from "./alerts";
|
|
2
|
+
export * from "./applications";
|
|
3
|
+
export * from "./articles";
|
|
4
|
+
export * from "./authTokens";
|
|
5
|
+
export * from "./connectivityAlerts";
|
|
6
|
+
export * from "./customProperties";
|
|
7
|
+
export * from "./customPropertyValues";
|
|
8
|
+
export * from "./dataCategories";
|
|
9
|
+
export * from "./dataDefinitions";
|
|
10
|
+
export * from "./dataDefinitionMappings"; // No service
|
|
11
|
+
export * from "./deviceConnectivities";
|
|
12
|
+
export * from "./deviceOrganisations";
|
|
13
|
+
export * from "./deviceStatuses";
|
|
14
|
+
export * from "./enums"; // No service
|
|
15
|
+
export * from "./families";
|
|
16
|
+
export * from "./groups";
|
|
17
|
+
export * from "./languages";
|
|
18
|
+
export * from "./locations";
|
|
19
|
+
export * from "./manufacturers";
|
|
20
|
+
export * from "./models";
|
|
21
|
+
export * from "./modelStatuses"; // No service
|
|
22
|
+
export * from "./organisations";
|
|
23
|
+
export * from "./organisationTypes";
|
|
24
|
+
export * from "./permissionCategories";
|
|
25
|
+
export * from "./permissions";
|
|
26
|
+
export * from "./roleOrganisations";
|
|
27
|
+
export * from "./roleOrganisationTypes";
|
|
28
|
+
export * from "./shared"; // No service
|
|
29
|
+
export * from "./timeZones";
|
|
30
|
+
export * from "./translations";
|
|
31
|
+
export * from "./userOrganisations";
|
|
32
|
+
export * from "./users";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LanguageInfos, LanguageInfosDTO } from "./languageInfos";
|
|
2
|
+
|
|
3
|
+
export class LanguageDetails extends LanguageInfos {
|
|
4
|
+
constructor(params: LanguageDetailsDTO) {
|
|
5
|
+
super(params);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface LanguageDetailsDTO extends LanguageInfosDTO {
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class LanguageInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
code: string;
|
|
5
|
+
label: string;
|
|
6
|
+
|
|
7
|
+
constructor(params: LanguageInfosDTO) {
|
|
8
|
+
this.id = params.id;
|
|
9
|
+
this.icon = params.icon;
|
|
10
|
+
this.code = params.code;
|
|
11
|
+
this.label = params.label;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface LanguageInfosDTO {
|
|
16
|
+
id: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
code: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface LanguageFilters {
|
|
23
|
+
search?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export class Address {
|
|
2
|
+
placeId: string;
|
|
3
|
+
placeLabel: string;
|
|
4
|
+
formattedAddress: string;
|
|
5
|
+
locality: string;
|
|
6
|
+
country: string;
|
|
7
|
+
latitude: number;
|
|
8
|
+
longitude: number;
|
|
9
|
+
|
|
10
|
+
constructor(params: AddressDTO) {
|
|
11
|
+
this.placeId = params.placeId;
|
|
12
|
+
this.placeLabel = params.placeLabel;
|
|
13
|
+
this.formattedAddress = params.formattedAddress;
|
|
14
|
+
this.locality = params.locality;
|
|
15
|
+
this.country = params.country;
|
|
16
|
+
this.latitude = params.latitude;
|
|
17
|
+
this.longitude = params.longitude;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AddressDTO {
|
|
22
|
+
placeId: string;
|
|
23
|
+
placeLabel: string;
|
|
24
|
+
formattedAddress: string;
|
|
25
|
+
locality: string;
|
|
26
|
+
country: string;
|
|
27
|
+
latitude: number;
|
|
28
|
+
longitude: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LocationInfos, LocationInfosDTO } from "./locationInfos";
|
|
2
|
+
import { AddressDTO } from "./address";
|
|
3
|
+
|
|
4
|
+
export class LocationDetails extends LocationInfos {
|
|
5
|
+
description: string;
|
|
6
|
+
|
|
7
|
+
constructor(params: LocationDetailsDTO) {
|
|
8
|
+
super(params);
|
|
9
|
+
|
|
10
|
+
this.description = params.description;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface LocationDetailsDTO extends LocationInfosDTO {
|
|
15
|
+
description: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export interface CreateLocationDTO {
|
|
20
|
+
icon: string;
|
|
21
|
+
code: string;
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
tags: string[];
|
|
25
|
+
address?: AddressDTO;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface UpdateLocationDTO {
|
|
29
|
+
icon: string;
|
|
30
|
+
code: string;
|
|
31
|
+
label: string;
|
|
32
|
+
description: string;
|
|
33
|
+
tags: string[];
|
|
34
|
+
address?: AddressDTO;
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Address, AddressDTO } from "./address";
|
|
2
|
+
|
|
3
|
+
export class LocationInfos {
|
|
4
|
+
id: string;
|
|
5
|
+
organisationId: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
code: string;
|
|
8
|
+
label: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
address: Address;
|
|
11
|
+
modelsIds: string[];
|
|
12
|
+
deviceOrganisationsIds: string[];
|
|
13
|
+
deviceOrganisationsCount: number;
|
|
14
|
+
|
|
15
|
+
constructor(params: LocationInfosDTO) {
|
|
16
|
+
this.id = params.id;
|
|
17
|
+
this.organisationId = params.organisationId;
|
|
18
|
+
this.icon = params.icon;
|
|
19
|
+
this.code = params.code;
|
|
20
|
+
this.label = params.label;
|
|
21
|
+
this.tags = params.tags.slice();
|
|
22
|
+
this.address = new Address(params.address);
|
|
23
|
+
this.modelsIds = params.modelsIds.slice();
|
|
24
|
+
this.deviceOrganisationsIds = params.deviceOrganisationsIds.slice();
|
|
25
|
+
this.deviceOrganisationsCount = params.deviceOrganisationsCount;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class LocationInfosDTO {
|
|
30
|
+
id: string;
|
|
31
|
+
organisationId: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
code: string;
|
|
34
|
+
label: string;
|
|
35
|
+
tags: string[];
|
|
36
|
+
address: AddressDTO;
|
|
37
|
+
modelsIds: string[];
|
|
38
|
+
deviceOrganisationsIds: string[];
|
|
39
|
+
deviceOrganisationsCount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface LocationFilters {
|
|
43
|
+
locationsIds?: string[];
|
|
44
|
+
modelsIds?: string[];
|
|
45
|
+
search?: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ManufacturerInfos, ManufacturerInfosDTO } from "./manufacturerInfos";
|
|
2
|
+
|
|
3
|
+
export class ManufacturerDetails extends ManufacturerInfos {
|
|
4
|
+
description: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: ManufacturerDetailsDTO) {
|
|
7
|
+
super(params);
|
|
8
|
+
|
|
9
|
+
this.description = params.description;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ManufacturerDetailsDTO extends ManufacturerInfosDTO {
|
|
14
|
+
description: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export class ManufacturerInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
imageId?: string;
|
|
4
|
+
imageBlurHash?: string;
|
|
5
|
+
imageHeight?: number;
|
|
6
|
+
imageWidth?: number;
|
|
7
|
+
label: string;
|
|
8
|
+
|
|
9
|
+
constructor(params: ManufacturerInfosDTO) {
|
|
10
|
+
this.id = params.id;
|
|
11
|
+
this.imageId = params.imageId;
|
|
12
|
+
this.imageBlurHash = params.imageBlurHash;
|
|
13
|
+
this.imageHeight = params.imageHeight;
|
|
14
|
+
this.imageWidth = params.imageWidth;
|
|
15
|
+
this.label = params.label;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ManufacturerInfosDTO {
|
|
20
|
+
id: string;
|
|
21
|
+
imageId?: string;
|
|
22
|
+
imageBlurHash?: string;
|
|
23
|
+
imageHeight?: number;
|
|
24
|
+
imageWidth?: number;
|
|
25
|
+
label: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface ManufacturerFilters {
|
|
29
|
+
search?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./modelStatus";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export class ModelStatus {
|
|
2
|
+
id: string;
|
|
3
|
+
modelId: string;
|
|
4
|
+
dataCategoryId: string;
|
|
5
|
+
dataCategoryLabel: string;
|
|
6
|
+
dataDefinitionId: string;
|
|
7
|
+
dataDefinitionLabel: string;
|
|
8
|
+
groupById: string;
|
|
9
|
+
groupByLabel: string;
|
|
10
|
+
label: string;
|
|
11
|
+
index: number;
|
|
12
|
+
lifetime: number;
|
|
13
|
+
timeToLive: number;
|
|
14
|
+
showDefault: boolean;
|
|
15
|
+
iconDefault: string;
|
|
16
|
+
colorDefault: string;
|
|
17
|
+
|
|
18
|
+
constructor(params: ModelStatusDTO) {
|
|
19
|
+
this.id = params.id;
|
|
20
|
+
this.modelId = params.modelId;
|
|
21
|
+
this.dataCategoryId = params.dataCategoryId;
|
|
22
|
+
this.dataCategoryLabel = params.dataCategoryLabel;
|
|
23
|
+
this.dataDefinitionId = params.dataDefinitionId;
|
|
24
|
+
this.dataDefinitionLabel = params.dataDefinitionLabel;
|
|
25
|
+
this.groupById = params.groupById;
|
|
26
|
+
this.groupByLabel = params.groupByLabel;
|
|
27
|
+
this.label = params.label;
|
|
28
|
+
this.index = params.index;
|
|
29
|
+
this.lifetime = params.lifetime;
|
|
30
|
+
this.timeToLive = params.timeToLive;
|
|
31
|
+
this.showDefault = params.showDefault;
|
|
32
|
+
this.iconDefault = params.iconDefault;
|
|
33
|
+
this.colorDefault = params.colorDefault;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface ModelStatusDTO {
|
|
38
|
+
id: string;
|
|
39
|
+
modelId: string;
|
|
40
|
+
dataCategoryId: string;
|
|
41
|
+
dataCategoryLabel: string;
|
|
42
|
+
dataDefinitionId: string;
|
|
43
|
+
dataDefinitionLabel: string;
|
|
44
|
+
groupById: string;
|
|
45
|
+
groupByLabel: string;
|
|
46
|
+
label: string;
|
|
47
|
+
index: number;
|
|
48
|
+
lifetime: number;
|
|
49
|
+
timeToLive: number;
|
|
50
|
+
showDefault: boolean;
|
|
51
|
+
iconDefault: string;
|
|
52
|
+
colorDefault: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export class ModelInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
manufacturerId: string;
|
|
4
|
+
manufacturerLabel: string;
|
|
5
|
+
imageId?: string;
|
|
6
|
+
imageBlurHash?: string;
|
|
7
|
+
imageHeight?: number;
|
|
8
|
+
imageWidth?: number;
|
|
9
|
+
code: string;
|
|
10
|
+
label: string;
|
|
11
|
+
connectable: boolean;
|
|
12
|
+
|
|
13
|
+
constructor(params: ModelInfosDTO) {
|
|
14
|
+
this.id = params.id;
|
|
15
|
+
this.manufacturerId = params.manufacturerId;
|
|
16
|
+
this.manufacturerLabel = params.manufacturerLabel;
|
|
17
|
+
this.imageId = params.imageId;
|
|
18
|
+
this.imageBlurHash = params.imageBlurHash;
|
|
19
|
+
this.imageHeight = params.imageHeight;
|
|
20
|
+
this.imageWidth = params.imageWidth;
|
|
21
|
+
this.code = params.code;
|
|
22
|
+
this.label = params.label;
|
|
23
|
+
this.connectable = params.connectable;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ModelInfosDTO {
|
|
28
|
+
id: string;
|
|
29
|
+
manufacturerId: string;
|
|
30
|
+
manufacturerLabel: string;
|
|
31
|
+
imageId?: string;
|
|
32
|
+
imageBlurHash?: string;
|
|
33
|
+
imageHeight?: number;
|
|
34
|
+
imageWidth?: number;
|
|
35
|
+
code: string;
|
|
36
|
+
label: string;
|
|
37
|
+
connectable: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ModelFilters {
|
|
41
|
+
modelsIds?: string[];
|
|
42
|
+
search?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OrganisationTypeInfos, OrganisationTypeInfosDTO } from "./organisationTypeInfos";
|
|
2
|
+
import { DashboardType } from "../enums/dashboardEnums";
|
|
3
|
+
|
|
4
|
+
export class OrganisationTypeDetails extends OrganisationTypeInfos {
|
|
5
|
+
description: string;
|
|
6
|
+
|
|
7
|
+
constructor(params: OrganisationTypeDetailsDTO) {
|
|
8
|
+
super(params);
|
|
9
|
+
|
|
10
|
+
this.description = params.description;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface OrganisationTypeDetailsDTO extends OrganisationTypeInfosDTO {
|
|
15
|
+
description: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ChangeOrganisationTypeDashboardDTO {
|
|
19
|
+
mainDashboardId?: string;
|
|
20
|
+
mainDashboardType: DashboardType;
|
|
21
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DashboardType } from "../enums/dashboardEnums";
|
|
2
|
+
|
|
3
|
+
export class OrganisationTypeInfos {
|
|
4
|
+
id: string;
|
|
5
|
+
mainDashboardId?: string;
|
|
6
|
+
mainDashboardType: DashboardType;
|
|
7
|
+
code: string;
|
|
8
|
+
label: string;
|
|
9
|
+
|
|
10
|
+
constructor(params: OrganisationTypeInfosDTO) {
|
|
11
|
+
this.id = params.id;
|
|
12
|
+
this.mainDashboardId = params.mainDashboardId;
|
|
13
|
+
this.mainDashboardType = params.mainDashboardType;
|
|
14
|
+
this.code = params.code;
|
|
15
|
+
this.label = params.label;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface OrganisationTypeInfosDTO {
|
|
20
|
+
id: string;
|
|
21
|
+
mainDashboardId?: string;
|
|
22
|
+
mainDashboardType: DashboardType;
|
|
23
|
+
code: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface OrganisationTypeFilters {
|
|
28
|
+
search?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PermissionInfos, PermissionInfosDTO } from "../permissions/permissionInfos";
|
|
2
|
+
import { OrganisationInfos, OrganisationInfosDTO } from "./organisationInfos";
|
|
3
|
+
import { DashboardType } from "../enums/dashboardEnums";
|
|
4
|
+
|
|
5
|
+
export class OrganisationDetails extends OrganisationInfos {
|
|
6
|
+
organisationTypeId: string;
|
|
7
|
+
mainDashboardId?: string;
|
|
8
|
+
mainDashboardType: DashboardType;
|
|
9
|
+
adminId: string;
|
|
10
|
+
adminName: string;
|
|
11
|
+
description: string;
|
|
12
|
+
locationsCount: number;
|
|
13
|
+
deviceOrganisationsCount: number;
|
|
14
|
+
permissions: PermissionInfos[];
|
|
15
|
+
|
|
16
|
+
constructor(params: OrganisationDetailsDTO) {
|
|
17
|
+
super(params);
|
|
18
|
+
|
|
19
|
+
this.organisationTypeId = params.organisationTypeId;
|
|
20
|
+
this.mainDashboardType = params.mainDashboardType;
|
|
21
|
+
this.mainDashboardId = params.mainDashboardId;
|
|
22
|
+
this.adminId = params.adminId;
|
|
23
|
+
this.adminName = params.adminName;
|
|
24
|
+
this.description = params.description;
|
|
25
|
+
this.locationsCount = params.locationsCount;
|
|
26
|
+
this.deviceOrganisationsCount = params.deviceOrganisationsCount;
|
|
27
|
+
this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface OrganisationDetailsDTO extends OrganisationInfosDTO {
|
|
32
|
+
organisationTypeId: string;
|
|
33
|
+
mainDashboardId?: string;
|
|
34
|
+
mainDashboardType: DashboardType;
|
|
35
|
+
adminId: string;
|
|
36
|
+
adminName: string;
|
|
37
|
+
description: string;
|
|
38
|
+
locationsCount: number;
|
|
39
|
+
deviceOrganisationsCount: number;
|
|
40
|
+
permissions: PermissionInfosDTO[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface UpdateOrganisationDTO {
|
|
44
|
+
imageId?: string;
|
|
45
|
+
image?: string;
|
|
46
|
+
label: string;
|
|
47
|
+
description: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ChangeOrganisationDashboardDTO {
|
|
51
|
+
mainDashboardId?: string;
|
|
52
|
+
mainDashboardType: DashboardType;
|
|
53
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export class OrganisationInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
imageId?: string;
|
|
4
|
+
imageBlurHash?: string;
|
|
5
|
+
imageHeight?: number;
|
|
6
|
+
imageWidth?: number;
|
|
7
|
+
label: string;
|
|
8
|
+
userOrganisationsCount: number;
|
|
9
|
+
|
|
10
|
+
constructor(params: OrganisationInfosDTO) {
|
|
11
|
+
this.id = params.id;
|
|
12
|
+
this.imageId = params.imageId;
|
|
13
|
+
this.imageBlurHash = params.imageBlurHash;
|
|
14
|
+
this.imageHeight = params.imageHeight;
|
|
15
|
+
this.imageWidth = params.imageWidth;
|
|
16
|
+
this.label = params.label;
|
|
17
|
+
this.userOrganisationsCount = params.userOrganisationsCount;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface OrganisationInfosDTO {
|
|
22
|
+
id: string;
|
|
23
|
+
imageId?: string;
|
|
24
|
+
imageBlurHash?: string;
|
|
25
|
+
imageHeight?: number;
|
|
26
|
+
imageWidth?: number;
|
|
27
|
+
label: string;
|
|
28
|
+
userOrganisationsCount: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface OrganisationFilters {
|
|
32
|
+
search?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PermissionCategoryInfos, PermissionCategoryInfosDTO } from "./permissionCategoryInfos";
|
|
2
|
+
|
|
3
|
+
export class PermissionCategoryDetails extends PermissionCategoryInfos {
|
|
4
|
+
constructor(params: PermissionCategoryDetailsDTO) {
|
|
5
|
+
super(params);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface PermissionCategoryDetailsDTO extends PermissionCategoryInfosDTO {
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class PermissionCategoryInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
code: string;
|
|
4
|
+
label: string;
|
|
5
|
+
prefix: string;
|
|
6
|
+
|
|
7
|
+
constructor(params: PermissionCategoryInfosDTO) {
|
|
8
|
+
this.id = params.id;
|
|
9
|
+
this.code = params.code;
|
|
10
|
+
this.label = params.label;
|
|
11
|
+
this.prefix = params.prefix;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface PermissionCategoryInfosDTO {
|
|
16
|
+
id: string;
|
|
17
|
+
code: string;
|
|
18
|
+
label: string;
|
|
19
|
+
prefix: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface PermissionCategoryFilters {
|
|
23
|
+
search?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PermissionInfos, PermissionInfosDTO } from "./permissionInfos";
|
|
2
|
+
|
|
3
|
+
export class PermissionDetails extends PermissionInfos {
|
|
4
|
+
constructor(params: PermissionDetailsDTO) {
|
|
5
|
+
super(params);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface PermissionDetailsDTO extends PermissionInfosDTO {
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class PermissionInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
code: string;
|
|
4
|
+
label: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: PermissionInfosDTO) {
|
|
7
|
+
this.id = params.id;
|
|
8
|
+
this.code = params.code;
|
|
9
|
+
this.label = params.label;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface PermissionInfosDTO {
|
|
14
|
+
id: string;
|
|
15
|
+
code: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RoleOrganisationTypeInfos, RoleOrganisationTypeInfosDTO } from "./roleOrganisationTypeInfos";
|
|
2
|
+
|
|
3
|
+
export class RoleOrganisationTypeDetails extends RoleOrganisationTypeInfos {
|
|
4
|
+
description: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: RoleOrganisationTypeDetailsDTO) {
|
|
7
|
+
super(params);
|
|
8
|
+
|
|
9
|
+
this.description = params.description;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface RoleOrganisationTypeDetailsDTO extends RoleOrganisationTypeInfosDTO {
|
|
14
|
+
description: string;
|
|
15
|
+
}
|