@dative-gpi/foundation-shared-domain 0.0.8 → 0.0.9

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.
Files changed (49) hide show
  1. package/models/applications/applicationDetails.ts +16 -0
  2. package/models/applications/applicationInfos.ts +29 -0
  3. package/models/applications/index.ts +2 -0
  4. package/models/authTokens/authTokenDetails.ts +10 -0
  5. package/models/authTokens/authTokenInfos.ts +19 -0
  6. package/models/authTokens/index.ts +2 -0
  7. package/models/enums/alertEnums.ts +29 -0
  8. package/models/enums/dashboardEnums.ts +6 -0
  9. package/models/enums/deviceEnums.ts +7 -0
  10. package/models/enums/index.ts +3 -0
  11. package/models/frequentlyAskedQuestions/frequentlyAskedQuestionDetails.ts +10 -0
  12. package/models/frequentlyAskedQuestions/frequentlyAskedQuestionInfos.ts +24 -0
  13. package/models/frequentlyAskedQuestions/index.ts +2 -0
  14. package/models/images/blurHash.ts +17 -0
  15. package/models/images/index.ts +1 -0
  16. package/models/index.ts +16 -1
  17. package/models/landingPages/index.ts +2 -0
  18. package/models/landingPages/landingPageDetails.ts +10 -0
  19. package/models/landingPages/landingPageInfos.ts +50 -0
  20. package/models/languages/index.ts +2 -0
  21. package/models/languages/languageDetails.ts +10 -0
  22. package/models/languages/languageInfos.ts +24 -0
  23. package/models/layoutPages/index.ts +2 -0
  24. package/models/layoutPages/layoutPageDetails.ts +10 -0
  25. package/models/layoutPages/layoutPageInfos.ts +32 -0
  26. package/models/legalInformations/index.ts +2 -0
  27. package/models/legalInformations/legalInformationDetails.ts +10 -0
  28. package/models/legalInformations/legalInformationInfos.ts +17 -0
  29. package/models/organisations/index.ts +2 -0
  30. package/models/organisations/organisationDetails.ts +62 -0
  31. package/models/organisations/organisationInfos.ts +33 -0
  32. package/models/permissions/index.ts +2 -0
  33. package/models/permissions/permissionDetails.ts +10 -0
  34. package/models/permissions/permissionInfos.ts +17 -0
  35. package/models/securitySettings/index.ts +2 -0
  36. package/models/securitySettings/securitySettingDetails.ts +10 -0
  37. package/models/securitySettings/securitySettingInfos.ts +47 -0
  38. package/models/timeZones/index.ts +1 -0
  39. package/models/timeZones/timeZoneDetails.ts +10 -0
  40. package/models/translations/index.ts +2 -0
  41. package/models/translations/translationDetails.ts +10 -0
  42. package/models/translations/translationInfos.ts +17 -0
  43. package/models/userLegalInformations/index.ts +2 -0
  44. package/models/userLegalInformations/userLegalInformationDetails.ts +16 -0
  45. package/models/userLegalInformations/userLegalInformationInfos.ts +14 -0
  46. package/models/users/index.ts +2 -0
  47. package/models/users/userDetails.ts +39 -0
  48. package/models/users/userInfos.ts +39 -0
  49. package/package.json +2 -2
@@ -0,0 +1,16 @@
1
+ import { LanguageInfos, LanguageInfosDTO } from "../languages/languageInfos";
2
+ import { ApplicationInfos, ApplicationInfosDTO } from "./applicationInfos";
3
+
4
+ export class ApplicationDetails extends ApplicationInfos {
5
+ languages: LanguageInfos[];
6
+
7
+ constructor(params: ApplicationDetailsDTO) {
8
+ super(params);
9
+
10
+ this.languages = params.languages.map((dto) => new LanguageInfos(dto));
11
+ }
12
+ }
13
+
14
+ export interface ApplicationDetailsDTO extends ApplicationInfosDTO {
15
+ languages: LanguageInfosDTO[];
16
+ }
@@ -0,0 +1,29 @@
1
+ export class ApplicationInfos {
2
+ id: string;
3
+ fallbackLanguageCode: string;
4
+ logoId?: string;
5
+ logoBlurHash?: string;
6
+ logoHeight?: string;
7
+ logoWidth?: string;
8
+ label: string;
9
+
10
+ constructor(params: ApplicationInfosDTO) {
11
+ this.id = params.id;
12
+ this.fallbackLanguageCode = params.fallbackLanguageCode;
13
+ this.logoId = params.logoId;
14
+ this.logoBlurHash = params.logoBlurHash;
15
+ this.logoHeight = params.logoHeight;
16
+ this.logoWidth = params.logoWidth;
17
+ this.label = params.label;
18
+ }
19
+ }
20
+
21
+ export interface ApplicationInfosDTO {
22
+ id: string;
23
+ fallbackLanguageCode: string;
24
+ logoId?: string;
25
+ logoBlurHash?: string;
26
+ logoHeight?: string;
27
+ logoWidth?: string;
28
+ label: string;
29
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./applicationDetails";
2
+ export * from "./applicationInfos";
@@ -0,0 +1,10 @@
1
+ import { AuthTokenInfos, AuthTokenInfosDTO } from "./authTokenInfos";
2
+
3
+ export class AuthTokenDetails extends AuthTokenInfos {
4
+ constructor(params: AuthTokenDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface AuthTokenDetailsDTO extends AuthTokenInfosDTO {
10
+ }
@@ -0,0 +1,19 @@
1
+ import { DatesTools } from "@dative-gpi/foundation-shared-services/tools";
2
+
3
+ export class AuthTokenInfos {
4
+ id?: string;
5
+ token: string;
6
+ dateMax?: number;
7
+
8
+ constructor(params: AuthTokenInfosDTO) {
9
+ this.id = params.id;
10
+ this.token = params.token;
11
+ this.dateMax = params?.dateMax ? DatesTools.utcToEpoch(params.dateMax) : undefined;
12
+ }
13
+ }
14
+
15
+ export interface AuthTokenInfosDTO {
16
+ id?: string;
17
+ token: string;
18
+ dateMax?: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./authTokenDetails";
2
+ export * from "./authTokenInfos";
@@ -0,0 +1,29 @@
1
+ export enum AlertStatus {
2
+ None = 0,
3
+ Pending = 1,
4
+ Untriggered = 2,
5
+ Unresolved = 3,
6
+ Resolved = 4,
7
+ Expired = 5,
8
+ Triggered = 6,
9
+ Abandoned = 7
10
+ }
11
+
12
+ export enum Criticity {
13
+ None = 0,
14
+ Information = 1,
15
+ Warning = 2,
16
+ Error = 3
17
+ }
18
+
19
+ export enum TriggerOn {
20
+ None = 0,
21
+ RisingEdge = 1,
22
+ Everytime = 2
23
+ }
24
+
25
+ export enum ResolveOn {
26
+ None = 0,
27
+ OutOfTrigger = 1,
28
+ NewOperation = 2
29
+ }
@@ -0,0 +1,6 @@
1
+ export enum DashboardType {
2
+ None = 0,
3
+ Organisation = 1,
4
+ OrganisationType = 2,
5
+ Shallow = 3
6
+ }
@@ -0,0 +1,7 @@
1
+ export enum ConnectivityStatus {
2
+ None = 0,
3
+ Connected = 1,
4
+ PartiallyConnected = 2,
5
+ AlmostOffline = 3,
6
+ Offline = 4
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./alertEnums";
2
+ export * from "./dashboardEnums";
3
+ export * from "./deviceEnums";
@@ -0,0 +1,10 @@
1
+ import { FrequentlyAskedQuestionInfos, FrequentlyAskedQuestionInfosDTO } from "./frequentlyAskedQuestionInfos";
2
+
3
+ export class FrequentlyAskedQuestionDetails extends FrequentlyAskedQuestionInfos {
4
+ constructor(params: FrequentlyAskedQuestionDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface FrequentlyAskedQuestionDetailsDTO extends FrequentlyAskedQuestionInfosDTO {
10
+ }
@@ -0,0 +1,24 @@
1
+ export class FrequentlyAskedQuestionInfos {
2
+ id: string;
3
+ question: string;
4
+ answer: string;
5
+ position: number;
6
+
7
+ constructor(params: FrequentlyAskedQuestionInfosDTO) {
8
+ this.id = params.id;
9
+ this.question = params.question;
10
+ this.answer = params.answer;
11
+ this.position = params.position;
12
+ }
13
+ }
14
+
15
+ export interface FrequentlyAskedQuestionInfosDTO {
16
+ id: string;
17
+ question: string;
18
+ answer: string;
19
+ position: number;
20
+ }
21
+
22
+ export interface FrequentlyAskedQuestionFilters {
23
+ search?: string;
24
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./frequentlyAskedQuestionDetails";
2
+ export * from "./frequentlyAskedQuestionInfos";
@@ -0,0 +1,17 @@
1
+ export class BlurHash {
2
+ blurHash: string;
3
+ width: number;
4
+ height: number;
5
+
6
+ constructor(params: BlurHashDTO) {
7
+ this.blurHash = params.blurHash;
8
+ this.width = params.width;
9
+ this.height = params.height;
10
+ }
11
+ }
12
+
13
+ export interface BlurHashDTO {
14
+ blurHash: string;
15
+ width: number;
16
+ height: number;
17
+ }
@@ -0,0 +1 @@
1
+ export * from "./blurHash";
package/models/index.ts CHANGED
@@ -1 +1,16 @@
1
- export * from "./timeZones";
1
+ export * from "./applications";
2
+ export * from "./authTokens";
3
+ export * from "./enums"; // No service
4
+ export * from "./frequentlyAskedQuestions";
5
+ export * from "./images";
6
+ export * from "./landingPages";
7
+ export * from "./languages"; // No service
8
+ export * from "./layoutPages";
9
+ export * from "./legalInformations";
10
+ export * from "./organisations";
11
+ export * from "./permissions";
12
+ export * from "./securitySettings";
13
+ export * from "./timeZones";
14
+ export * from "./translations";
15
+ export * from "./userLegalInformations";
16
+ export * from "./users";
@@ -0,0 +1,2 @@
1
+ export * from "./landingPageDetails";
2
+ export * from "./landingPageInfos";
@@ -0,0 +1,10 @@
1
+ import { LandingPageInfos, LandingPageInfosDTO } from "./landingPageInfos";
2
+
3
+ export class LandingPageDetails extends LandingPageInfos {
4
+ constructor(params: LandingPageDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface LandingPageDetailsDTO extends LandingPageInfosDTO {
10
+ }
@@ -0,0 +1,50 @@
1
+ export class LandingPageInfos {
2
+ id: string;
3
+ backgroundImageId?: string;
4
+ backgroundImageBlurHash?: string;
5
+ backgroundImageHeight?: number;
6
+ backgroundImageWidth?: number;
7
+ bannerImageId?: string;
8
+ bannerImageBlurHash?: string;
9
+ bannerImageHeight?: number;
10
+ bannerImageWidth?: number;
11
+ title: string;
12
+ subTitle: string;
13
+ theme: string;
14
+ faqLink: string;
15
+ signUpLink: string;
16
+
17
+ constructor(params: LandingPageInfosDTO) {
18
+ this.id = params.id;
19
+ this.backgroundImageId = params.backgroundImageId;
20
+ this.backgroundImageBlurHash = params.backgroundImageBlurHash;
21
+ this.backgroundImageHeight = params.backgroundImageHeight;
22
+ this.backgroundImageWidth = params.backgroundImageWidth;
23
+ this.bannerImageId = params.bannerImageId;
24
+ this.bannerImageBlurHash = params.bannerImageBlurHash;
25
+ this.bannerImageHeight = params.bannerImageHeight;
26
+ this.bannerImageWidth = params.bannerImageWidth;
27
+ this.title = params.title;
28
+ this.subTitle = params.subTitle;
29
+ this.theme = params.theme;
30
+ this.faqLink = params.faqLink;
31
+ this.signUpLink = params.signUpLink;
32
+ }
33
+ }
34
+
35
+ export interface LandingPageInfosDTO {
36
+ id: string;
37
+ backgroundImageId?: string;
38
+ backgroundImageBlurHash?: string;
39
+ backgroundImageHeight?: number;
40
+ backgroundImageWidth?: number;
41
+ bannerImageId?: string;
42
+ bannerImageBlurHash?: string;
43
+ bannerImageHeight?: number;
44
+ bannerImageWidth?: number;
45
+ title: string;
46
+ subTitle: string;
47
+ theme: string;
48
+ faqLink: string;
49
+ signUpLink: string;
50
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./languageDetails";
2
+ export * from "./languageInfos";
@@ -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,2 @@
1
+ export * from "./layoutPageDetails";
2
+ export * from "./layoutPageInfos";
@@ -0,0 +1,10 @@
1
+ import { LayoutPageInfos, LayoutPageInfosDTO } from "./layoutPageInfos";
2
+
3
+ export class LayoutPageDetails extends LayoutPageInfos {
4
+ constructor(params: LayoutPageDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface LayoutPageDetailsDTO extends LayoutPageInfosDTO {
10
+ }
@@ -0,0 +1,32 @@
1
+ export class LayoutPageInfos {
2
+ id: string;
3
+ bannerImageId?: string;
4
+ bannerImageBlurHash?: string;
5
+ bannerImageHeight?: number;
6
+ bannerImageWidth?: number;
7
+ backgroundColor: string;
8
+ textColor: string;
9
+ gradiantColors: string[];
10
+
11
+ constructor(params: LayoutPageInfosDTO) {
12
+ this.id = params.id;
13
+ this.bannerImageId = params.bannerImageId;
14
+ this.bannerImageBlurHash = params.bannerImageBlurHash;
15
+ this.bannerImageHeight = params.bannerImageHeight;
16
+ this.bannerImageWidth = params.bannerImageWidth;
17
+ this.backgroundColor = params.backgroundColor;
18
+ this.textColor = params.textColor;
19
+ this.gradiantColors = params.gradiantColors?.slice();
20
+ }
21
+ }
22
+
23
+ export interface LayoutPageInfosDTO {
24
+ id: string;
25
+ bannerImageId?: string;
26
+ bannerImageBlurHash?: string;
27
+ bannerImageHeight?: number;
28
+ bannerImageWidth?: number;
29
+ backgroundColor: string;
30
+ textColor: string;
31
+ gradiantColors: string[];
32
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./legalInformationDetails";
2
+ export * from "./legalInformationInfos";
@@ -0,0 +1,10 @@
1
+ import { LegalInformationInfos, LegalInformationInfosDTO } from "./legalInformationInfos";
2
+
3
+ export class LegalInformationDetails extends LegalInformationInfos {
4
+ constructor(params: LegalInformationDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface LegalInformationDetailsDTO extends LegalInformationInfosDTO {
10
+ }
@@ -0,0 +1,17 @@
1
+ export class LegalInformationInfos {
2
+ id: string;
3
+ privacyPolicyId: string;
4
+ generalConditionsId: string;
5
+
6
+ constructor(params: LegalInformationInfosDTO) {
7
+ this.id = params.id;
8
+ this.privacyPolicyId = params.privacyPolicyId;
9
+ this.generalConditionsId = params.generalConditionsId;
10
+ }
11
+ }
12
+
13
+ export interface LegalInformationInfosDTO {
14
+ id: string;
15
+ privacyPolicyId: string;
16
+ generalConditionsId: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./organisationDetails";
2
+ export * from "./organisationInfos";
@@ -0,0 +1,62 @@
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 CreateOrganisationDTO {
44
+ organisationTypeId: string;
45
+ legalInformationId: string;
46
+ administratorTimeZoneId: string;
47
+ administratorFirstName: string;
48
+ admninistratorLastName: string;
49
+ administratorEmail: string;
50
+ administratorPhoneNumber: string;
51
+ acceptGeneralConditions: boolean;
52
+ acceptPrivacyPolicy: boolean;
53
+ label: string;
54
+ description: string;
55
+ }
56
+
57
+ export interface UpdateOrganisationDTO {
58
+ imageId?: string;
59
+ image?: string;
60
+ label: string;
61
+ description: string;
62
+ }
@@ -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,2 @@
1
+ export * from "./permissionDetails";
2
+ export * from "./permissionInfos";
@@ -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,2 @@
1
+ export * from "./securitySettingDetails";
2
+ export * from "./securitySettingInfos";
@@ -0,0 +1,10 @@
1
+ import { SecuritySettingInfos, SecuritySettingInfosDTO } from "./securitySettingInfos";
2
+
3
+ export class SecuritySettingDetails extends SecuritySettingInfos {
4
+ constructor(params: SecuritySettingDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface SecuritySettingDetailsDTO extends SecuritySettingInfosDTO {
10
+ }
@@ -0,0 +1,47 @@
1
+ export class SecuritySettingInfos {
2
+ id: string;
3
+ useGoogle: boolean;
4
+ useFacebook: boolean;
5
+ useMicrosoft: boolean;
6
+ useLocalAccounts: boolean;
7
+ allowSignUp: boolean;
8
+ allowedOrganisationTypes: string[];
9
+ localPasswordUppercaseMandatory: boolean;
10
+ localPasswordLowercaseMandatory: boolean;
11
+ localPasswordNumberMandatory: boolean;
12
+ localPasswordSpecialCharacterMandatory: boolean;
13
+ localPasswordMinimalLength: number;
14
+ localPasswordMaximalLength: number;
15
+
16
+ constructor(params: SecuritySettingInfosDTO) {
17
+ this.id = params.id;
18
+ this.useGoogle = params.useGoogle;
19
+ this.useFacebook = params.useFacebook;
20
+ this.useMicrosoft = params.useMicrosoft;
21
+ this.useLocalAccounts = params.useLocalAccounts;
22
+ this.allowSignUp = params.allowSignUp;
23
+ this.allowedOrganisationTypes = params.allowedOrganisationTypes?.slice();
24
+ this.localPasswordUppercaseMandatory = params.localPasswordUppercaseMandatory;
25
+ this.localPasswordLowercaseMandatory = params.localPasswordLowercaseMandatory;
26
+ this.localPasswordNumberMandatory = params.localPasswordNumberMandatory;
27
+ this.localPasswordSpecialCharacterMandatory = params.localPasswordSpecialCharacterMandatory;
28
+ this.localPasswordMinimalLength = params.localPasswordMinimalLength;
29
+ this.localPasswordMaximalLength = params.localPasswordMaximalLength;
30
+ }
31
+ }
32
+
33
+ export interface SecuritySettingInfosDTO {
34
+ id: string;
35
+ useGoogle: boolean;
36
+ useFacebook: boolean;
37
+ useMicrosoft: boolean;
38
+ useLocalAccounts: boolean;
39
+ allowSignUp: boolean;
40
+ allowedOrganisationTypes: string[];
41
+ localPasswordUppercaseMandatory: boolean;
42
+ localPasswordLowercaseMandatory: boolean;
43
+ localPasswordNumberMandatory: boolean;
44
+ localPasswordSpecialCharacterMandatory: boolean;
45
+ localPasswordMinimalLength: number;
46
+ localPasswordMaximalLength: number;
47
+ }
@@ -1 +1,2 @@
1
+ export * from "./timeZoneDetails";
1
2
  export * from "./timeZoneInfos";
@@ -0,0 +1,10 @@
1
+ import { TimeZoneInfos, TimeZoneInfosDTO } from "./timeZoneInfos";
2
+
3
+ export class TimeZoneDetails extends TimeZoneInfos {
4
+ constructor(params: TimeZoneDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface TimeZoneDetailsDTO extends TimeZoneInfosDTO {
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./translationDetails";
2
+ export * from "./translationInfos";
@@ -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,2 @@
1
+ export * from "./userLegalInformationDetails";
2
+ export * from "./userLegalInformationInfos";
@@ -0,0 +1,16 @@
1
+ import { UserLegalInformationInfos, UserLegalInformationInfosDTO } from "./userLegalInformationInfos";
2
+
3
+ export class UserLegalInformationDetails extends UserLegalInformationInfos {
4
+ constructor(params: UserLegalInformationDetailsDTO) {
5
+ super(params);
6
+ }
7
+ }
8
+
9
+ export interface UserLegalInformationDetailsDTO extends UserLegalInformationInfosDTO {
10
+ }
11
+
12
+ export interface CreateUserLegalInformationDTO {
13
+ legalInformationId: string;
14
+ acceptGeneralConditions: boolean;
15
+ acceptPrivacyPolicy: boolean;
16
+ }
@@ -0,0 +1,14 @@
1
+ export class UserLegalInformationInfos {
2
+ userId: string;
3
+ legalInformationId: string;
4
+
5
+ constructor(params: UserLegalInformationInfosDTO) {
6
+ this.userId = params.userId;
7
+ this.legalInformationId = params.legalInformationId;
8
+ }
9
+ }
10
+
11
+ export interface UserLegalInformationInfosDTO {
12
+ userId: string;
13
+ legalInformationId: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./userDetails";
2
+ export * from "./userInfos";
@@ -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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-domain",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,5 +8,5 @@
8
8
  "main": "index.ts",
9
9
  "author": "",
10
10
  "license": "ISC",
11
- "gitHead": "b3393ad0a66fda249e1b2d3582af86e961553453"
11
+ "gitHead": "d079d93c7d8677f8269b97bc71820bc35dc46921"
12
12
  }