@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,52 @@
|
|
|
1
|
+
import { PermissionInfos, PermissionInfosDTO } from "../permissions/permissionInfos";
|
|
2
|
+
import { ApplicationScope } from "../enums/applicationEnums";
|
|
3
|
+
import { UserType } from "../enums/userEnums";
|
|
4
|
+
|
|
5
|
+
export class RoleOrganisationTypeInfos {
|
|
6
|
+
id: string;
|
|
7
|
+
roleId: string;
|
|
8
|
+
organisationTypeId: string;
|
|
9
|
+
organisationTypeLabel: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
code: string;
|
|
12
|
+
label: string;
|
|
13
|
+
scope: ApplicationScope;
|
|
14
|
+
userType: UserType;
|
|
15
|
+
tags: string[];
|
|
16
|
+
permissions: PermissionInfos[];
|
|
17
|
+
|
|
18
|
+
constructor(params: RoleOrganisationTypeInfosDTO) {
|
|
19
|
+
this.id = params.id;
|
|
20
|
+
this.roleId = params.roleId;
|
|
21
|
+
this.organisationTypeId = params.organisationTypeId;
|
|
22
|
+
this.organisationTypeLabel = params.organisationTypeLabel;
|
|
23
|
+
this.scope = params.scope;
|
|
24
|
+
this.userType = params.userType;
|
|
25
|
+
this.icon = params.icon;
|
|
26
|
+
this.code = params.code;
|
|
27
|
+
this.label = params.label;
|
|
28
|
+
this.scope = params.scope;
|
|
29
|
+
this.userType = params.userType;
|
|
30
|
+
this.tags = params.tags.slice();
|
|
31
|
+
this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface RoleOrganisationTypeInfosDTO {
|
|
36
|
+
id: string;
|
|
37
|
+
roleId: string;
|
|
38
|
+
organisationTypeId: string;
|
|
39
|
+
organisationTypeLabel: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
code: string;
|
|
42
|
+
label: string;
|
|
43
|
+
scope: ApplicationScope;
|
|
44
|
+
userType: UserType;
|
|
45
|
+
tags: string[];
|
|
46
|
+
permissions: PermissionInfosDTO[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface RoleOrganisationTypeFilters {
|
|
50
|
+
userType?: number;
|
|
51
|
+
search?: string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { RoleOrganisationInfos, RoleOrganisationInfosDTO } from "./roleOrganisationInfos";
|
|
2
|
+
import { RoleType } from "../enums/roleEnums";
|
|
3
|
+
|
|
4
|
+
export class RoleOrganisationDetails extends RoleOrganisationInfos {
|
|
5
|
+
description: string;
|
|
6
|
+
|
|
7
|
+
constructor(params: RoleOrganisationDetailsDTO) {
|
|
8
|
+
super(params);
|
|
9
|
+
|
|
10
|
+
this.description = params.description;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface RoleOrganisationDetailsDTO extends RoleOrganisationInfosDTO {
|
|
15
|
+
description: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface CreateRoleOrganisationDTO {
|
|
19
|
+
roleTemplateType: RoleType;
|
|
20
|
+
roleTemplateId?: string;
|
|
21
|
+
userType: number;
|
|
22
|
+
icon: string;
|
|
23
|
+
code: string;
|
|
24
|
+
label: string;
|
|
25
|
+
description: string;
|
|
26
|
+
tags: string[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface UpdateRoleOrganisationDTO {
|
|
30
|
+
icon: string;
|
|
31
|
+
code: string;
|
|
32
|
+
label: string;
|
|
33
|
+
description: string;
|
|
34
|
+
tags: string[];
|
|
35
|
+
permissionsIds: string[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { PermissionInfos, PermissionInfosDTO } from "../permissions/permissionInfos";
|
|
2
|
+
import { ApplicationScope } from "../enums/applicationEnums";
|
|
3
|
+
import { UserType } from "../enums/userEnums";
|
|
4
|
+
|
|
5
|
+
export class RoleOrganisationInfos {
|
|
6
|
+
id: string;
|
|
7
|
+
roleId: string;
|
|
8
|
+
organisationId: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
code: string;
|
|
11
|
+
label: string;
|
|
12
|
+
scope: ApplicationScope;
|
|
13
|
+
userType: UserType;
|
|
14
|
+
tags: string[];
|
|
15
|
+
permissions: PermissionInfos[];
|
|
16
|
+
|
|
17
|
+
constructor(params: RoleOrganisationInfosDTO) {
|
|
18
|
+
this.id = params.id;
|
|
19
|
+
this.roleId = params.roleId;
|
|
20
|
+
this.organisationId = params.organisationId;
|
|
21
|
+
this.icon = params.icon;
|
|
22
|
+
this.code = params.code;
|
|
23
|
+
this.label = params.label;
|
|
24
|
+
this.scope = params.scope;
|
|
25
|
+
this.userType = params.userType;
|
|
26
|
+
this.tags = params.tags.slice();
|
|
27
|
+
this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface RoleOrganisationInfosDTO {
|
|
32
|
+
id: string;
|
|
33
|
+
roleId: string;
|
|
34
|
+
organisationId: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
code: string;
|
|
37
|
+
label: string;
|
|
38
|
+
scope: ApplicationScope;
|
|
39
|
+
userType: UserType;
|
|
40
|
+
tags: string[];
|
|
41
|
+
permissions: PermissionInfosDTO[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface RoleOrganisationFilters {
|
|
45
|
+
userType?: UserType;
|
|
46
|
+
search?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class DateVariable {
|
|
2
|
+
name: string;
|
|
3
|
+
expression: string;
|
|
4
|
+
|
|
5
|
+
constructor(params: DateVariableDTO) {
|
|
6
|
+
this.name = params.name;
|
|
7
|
+
this.expression = params.expression;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface DateVariableDTO {
|
|
12
|
+
name: string;
|
|
13
|
+
expression: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class PathCrumb {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
index: number;
|
|
5
|
+
|
|
6
|
+
constructor (params: PathCrumbDTO) {
|
|
7
|
+
this.id = params.id;
|
|
8
|
+
this.label = params.label;
|
|
9
|
+
this.index = params.index;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface PathCrumbDTO {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
index: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./timeZoneInfos";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class TimeZoneInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
offset: string;
|
|
4
|
+
|
|
5
|
+
constructor(params: TimeZoneInfosDTO) {
|
|
6
|
+
this.id = params.id;
|
|
7
|
+
this.offset = params.offset;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface TimeZoneInfosDTO {
|
|
12
|
+
id: string;
|
|
13
|
+
offset: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface TimeZoneFilters {
|
|
17
|
+
search?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TranslationInfos, TranslationInfosDTO } from "./translationInfos";
|
|
2
|
+
|
|
3
|
+
export class TranslationDetails extends TranslationInfos {
|
|
4
|
+
constructor(params: TranslationDetailsDTO) {
|
|
5
|
+
super(params);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface TranslationDetailsDTO extends TranslationInfosDTO {
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class TranslationInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
code: string;
|
|
4
|
+
value: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: TranslationInfosDTO) {
|
|
7
|
+
this.id = params.id;
|
|
8
|
+
this.code = params.code;
|
|
9
|
+
this.value = params.value;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface TranslationInfosDTO {
|
|
14
|
+
id: string;
|
|
15
|
+
code: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { UserOrganisationInfos, UserOrganisationInfosDTO } from "./userOrganisationInfos";
|
|
2
|
+
import { PermissionInfos, PermissionInfosDTO } from "../permissions/permissionInfos";
|
|
3
|
+
import { DashboardType } from "../enums/dashboardEnums";
|
|
4
|
+
import { RoleType } from "../enums/roleEnums";
|
|
5
|
+
|
|
6
|
+
export class UserOrganisationDetails extends UserOrganisationInfos {
|
|
7
|
+
mainDashboardType: DashboardType;
|
|
8
|
+
mainDashboardId?: string;
|
|
9
|
+
mainDashboardLabel: string;
|
|
10
|
+
languageCode: string;
|
|
11
|
+
timeZoneId: string;
|
|
12
|
+
permissions: PermissionInfos[];
|
|
13
|
+
|
|
14
|
+
constructor(params: UserOrganisationDetailsDTO) {
|
|
15
|
+
super(params);
|
|
16
|
+
|
|
17
|
+
this.mainDashboardType = params.mainDashboardType as DashboardType;
|
|
18
|
+
this.mainDashboardId = params.mainDashboardId;
|
|
19
|
+
this.mainDashboardLabel = params.mainDashboardLabel;
|
|
20
|
+
this.languageCode = params.languageCode;
|
|
21
|
+
this.timeZoneId = params.timeZoneId;
|
|
22
|
+
this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface UserOrganisationDetailsDTO extends UserOrganisationInfosDTO {
|
|
27
|
+
mainDashboardType: DashboardType;
|
|
28
|
+
mainDashboardId?: string;
|
|
29
|
+
mainDashboardLabel: string;
|
|
30
|
+
languageCode: string;
|
|
31
|
+
timeZoneId: string;
|
|
32
|
+
permissions: PermissionInfosDTO[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface CreateUserOrganisationDTO {
|
|
36
|
+
roleType: RoleType;
|
|
37
|
+
roleId?: string;
|
|
38
|
+
languageCode: string;
|
|
39
|
+
timeZoneId: string;
|
|
40
|
+
image?: string;
|
|
41
|
+
email: string;
|
|
42
|
+
phoneNumber: string;
|
|
43
|
+
firstName: string;
|
|
44
|
+
lastName: string;
|
|
45
|
+
tags: string[];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface CreateServiceUserOrganisationDTO {
|
|
49
|
+
roleType: RoleType;
|
|
50
|
+
roleId?: string;
|
|
51
|
+
languageCode: string;
|
|
52
|
+
timeZoneId: string;
|
|
53
|
+
image?: string;
|
|
54
|
+
label: string;
|
|
55
|
+
description: string;
|
|
56
|
+
tags: string[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface UpdateUserOrganisationDTO {
|
|
60
|
+
roleType: RoleType;
|
|
61
|
+
roleId?: string;
|
|
62
|
+
mainDashboardType: DashboardType;
|
|
63
|
+
mainDashboardId?: string;
|
|
64
|
+
tags: string[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ChangeUserOrganisationDashboardDTO {
|
|
68
|
+
mainDashboardType: DashboardType;
|
|
69
|
+
mainDashboardId?: string;
|
|
70
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { UserType, UserValidityState } from "../enums/userEnums";
|
|
2
|
+
import { RoleType } from "../enums/roleEnums";
|
|
3
|
+
|
|
4
|
+
export class UserOrganisationInfos {
|
|
5
|
+
id: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
organisationId: string;
|
|
8
|
+
roleType: RoleType;
|
|
9
|
+
roleId?: string;
|
|
10
|
+
roleLabel: string;
|
|
11
|
+
imageId?: string;
|
|
12
|
+
imageBlurHash?: string;
|
|
13
|
+
imageHeight?: number;
|
|
14
|
+
imageWidth?: number;
|
|
15
|
+
userType: UserType;
|
|
16
|
+
validity: UserValidityState;
|
|
17
|
+
allowSms: boolean;
|
|
18
|
+
allowEmails: boolean;
|
|
19
|
+
email: string;
|
|
20
|
+
phoneNumber: string;
|
|
21
|
+
firstName: string;
|
|
22
|
+
lastName: string;
|
|
23
|
+
name: string;
|
|
24
|
+
label: string;
|
|
25
|
+
description: string;
|
|
26
|
+
tags: string[];
|
|
27
|
+
|
|
28
|
+
constructor(params: UserOrganisationInfosDTO) {
|
|
29
|
+
this.id = params.id;
|
|
30
|
+
this.userId = params.userId;
|
|
31
|
+
this.organisationId = params.organisationId;
|
|
32
|
+
this.roleType = params.roleType;
|
|
33
|
+
this.roleId = params.roleId;
|
|
34
|
+
this.roleLabel = params.roleLabel;
|
|
35
|
+
this.imageId = params.imageId;
|
|
36
|
+
this.imageBlurHash = params.imageBlurHash;
|
|
37
|
+
this.imageHeight = params.imageHeight;
|
|
38
|
+
this.imageWidth = params.imageWidth;
|
|
39
|
+
this.userType = params.userType;
|
|
40
|
+
this.validity = params.validity;
|
|
41
|
+
this.allowSms = params.allowSms;
|
|
42
|
+
this.allowEmails = params.allowEmails;
|
|
43
|
+
this.email = params.email;
|
|
44
|
+
this.phoneNumber = params.phoneNumber;
|
|
45
|
+
this.firstName = params.firstName;
|
|
46
|
+
this.lastName = params.lastName;
|
|
47
|
+
this.name = params.name ?? params.label;
|
|
48
|
+
this.label = params.name ?? params.label;
|
|
49
|
+
this.description = params.description;
|
|
50
|
+
this.tags = params.tags && params.tags.slice() || [];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface UserOrganisationInfosDTO {
|
|
55
|
+
id: string;
|
|
56
|
+
userId: string;
|
|
57
|
+
organisationId: string;
|
|
58
|
+
roleType: RoleType;
|
|
59
|
+
roleId?: string;
|
|
60
|
+
roleLabel: string;
|
|
61
|
+
imageId?: string;
|
|
62
|
+
imageBlurHash?: string;
|
|
63
|
+
imageHeight?: number;
|
|
64
|
+
imageWidth?: number;
|
|
65
|
+
userType: UserType;
|
|
66
|
+
validity: UserValidityState;
|
|
67
|
+
allowSms: boolean;
|
|
68
|
+
allowEmails: boolean;
|
|
69
|
+
email: string;
|
|
70
|
+
phoneNumber: string;
|
|
71
|
+
firstName: string;
|
|
72
|
+
lastName: string;
|
|
73
|
+
name: string;
|
|
74
|
+
label: string;
|
|
75
|
+
description: string;
|
|
76
|
+
tags: string[] | null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface UserOrganisationFilters {
|
|
80
|
+
userType?: UserType;
|
|
81
|
+
search?: string;
|
|
82
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UserInfos, UserInfosDTO } from "./userInfos";
|
|
2
|
+
|
|
3
|
+
export class UserDetails extends UserInfos {
|
|
4
|
+
languageCode: string;
|
|
5
|
+
timeZoneId: string;
|
|
6
|
+
allowSms: boolean;
|
|
7
|
+
allowEmails: boolean;
|
|
8
|
+
|
|
9
|
+
constructor(params: UserDetailsDTO) {
|
|
10
|
+
super(params);
|
|
11
|
+
|
|
12
|
+
this.languageCode = params.languageCode;
|
|
13
|
+
this.timeZoneId = params.timeZoneId;
|
|
14
|
+
this.allowSms = params.allowSms;
|
|
15
|
+
this.allowEmails = params.allowEmails;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface UserDetailsDTO extends UserInfosDTO {
|
|
20
|
+
languageCode: string;
|
|
21
|
+
timeZoneId: string;
|
|
22
|
+
allowSms: boolean;
|
|
23
|
+
allowEmails: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface UpdateUserDTO {
|
|
27
|
+
languageCode: string;
|
|
28
|
+
timeZoneId: string;
|
|
29
|
+
imageId?: string;
|
|
30
|
+
image?: string;
|
|
31
|
+
allowSms: boolean;
|
|
32
|
+
allowEmails: boolean;
|
|
33
|
+
email: string;
|
|
34
|
+
phoneNumber: string;
|
|
35
|
+
firstName: string;
|
|
36
|
+
lastName: string;
|
|
37
|
+
label: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export class UserInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
imageId?: string;
|
|
4
|
+
imageWidth?: number;
|
|
5
|
+
imageHeight?: number;
|
|
6
|
+
imageBlurHash?: string;
|
|
7
|
+
email: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
|
|
12
|
+
constructor(params: UserInfosDTO) {
|
|
13
|
+
this.id = params.id;
|
|
14
|
+
this.imageId = params.imageId;
|
|
15
|
+
this.imageWidth = params.imageWidth;
|
|
16
|
+
this.imageHeight = params.imageHeight;
|
|
17
|
+
this.imageBlurHash = params.imageBlurHash;
|
|
18
|
+
this.email = params.email;
|
|
19
|
+
this.phoneNumber = params.phoneNumber;
|
|
20
|
+
this.firstName = params.firstName;
|
|
21
|
+
this.lastName = params.lastName;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UserInfosDTO {
|
|
26
|
+
id: string;
|
|
27
|
+
imageId?: string;
|
|
28
|
+
imageWidth?: number;
|
|
29
|
+
imageHeight?: number;
|
|
30
|
+
imageBlurHash?: string;
|
|
31
|
+
email: string;
|
|
32
|
+
phoneNumber: string;
|
|
33
|
+
firstName: string;
|
|
34
|
+
lastName: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface UserFilters {
|
|
38
|
+
search?: string;
|
|
39
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dative-gpi/foundation-core-domain",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "index.ts",
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"gitHead": "44e9629c836e0cd06289b208b53120f07775ea5e"
|
|
12
|
+
}
|