asv-hlps 1.2.20 → 1.2.23

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.
@@ -5,6 +5,7 @@ declare class HlpEstate {
5
5
  totalHousings(estates: Estate[]): number;
6
6
  nbLodgers(housings: Housing[]): number;
7
7
  totalLodgers(estates: Estate[]): number;
8
+ address(estate: Estate): string;
8
9
  }
9
10
  declare const _default: HlpEstate;
10
11
  export default _default;
@@ -30,5 +30,8 @@ class HlpEstate {
30
30
  });
31
31
  return count;
32
32
  }
33
+ address(estate) {
34
+ return estate.region.name + ", " + estate.city.name + ", " + estate.quarter.name;
35
+ }
33
36
  }
34
37
  exports.default = new HlpEstate();
@@ -2,12 +2,12 @@ import { City } from "../world/City";
2
2
  import { Country } from "../world/Country";
3
3
  import { Region } from "../world/Region";
4
4
  export interface Address {
5
- phoneP: string;
6
- phoneS: string;
7
- address: string;
8
- city: City;
9
- country: Country;
10
- region: Region;
11
- email: string;
12
- cp: number;
5
+ phoneP?: string;
6
+ phoneS?: string;
7
+ address?: string;
8
+ city?: City;
9
+ country?: Country;
10
+ region?: Region;
11
+ email?: string;
12
+ cp?: number;
13
13
  }
@@ -6,7 +6,7 @@ import { UserGrp } from "./UserGrp";
6
6
  import { UserRole } from "./UserRole";
7
7
  import { UserTitr } from "./UserTitr";
8
8
  export interface UserAbs extends Address {
9
- id: number;
9
+ id?: number;
10
10
  codeCompta?: string | number;
11
11
  firstname?: string;
12
12
  lastname?: string;
@@ -14,7 +14,7 @@ export interface UserAbs extends Address {
14
14
  birthday?: Date | string;
15
15
  password?: string;
16
16
  ip?: string;
17
- isActive: boolean;
17
+ isActive?: boolean;
18
18
  disabled?: boolean;
19
19
  foto?: string;
20
20
  clp?: string;
@@ -5,6 +5,7 @@ declare class HlpEstate {
5
5
  totalHousings(estates: Estate[]): number;
6
6
  nbLodgers(housings: Housing[]): number;
7
7
  totalLodgers(estates: Estate[]): number;
8
+ address(estate: Estate): string;
8
9
  }
9
10
  declare const _default: HlpEstate;
10
11
  export default _default;
@@ -28,5 +28,8 @@ class HlpEstate {
28
28
  });
29
29
  return count;
30
30
  }
31
+ address(estate) {
32
+ return estate.region.name + ", " + estate.city.name + ", " + estate.quarter.name;
33
+ }
31
34
  }
32
35
  export default new HlpEstate();
@@ -2,12 +2,12 @@ import { City } from "../world/City";
2
2
  import { Country } from "../world/Country";
3
3
  import { Region } from "../world/Region";
4
4
  export interface Address {
5
- phoneP: string;
6
- phoneS: string;
7
- address: string;
8
- city: City;
9
- country: Country;
10
- region: Region;
11
- email: string;
12
- cp: number;
5
+ phoneP?: string;
6
+ phoneS?: string;
7
+ address?: string;
8
+ city?: City;
9
+ country?: Country;
10
+ region?: Region;
11
+ email?: string;
12
+ cp?: number;
13
13
  }
@@ -6,7 +6,7 @@ import { UserGrp } from "./UserGrp";
6
6
  import { UserRole } from "./UserRole";
7
7
  import { UserTitr } from "./UserTitr";
8
8
  export interface UserAbs extends Address {
9
- id: number;
9
+ id?: number;
10
10
  codeCompta?: string | number;
11
11
  firstname?: string;
12
12
  lastname?: string;
@@ -14,7 +14,7 @@ export interface UserAbs extends Address {
14
14
  birthday?: Date | string;
15
15
  password?: string;
16
16
  ip?: string;
17
- isActive: boolean;
17
+ isActive?: boolean;
18
18
  disabled?: boolean;
19
19
  foto?: string;
20
20
  clp?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.2.20",
3
+ "version": "1.2.23",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",