asv-hlps 1.2.19 → 1.2.22
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/lib/cjs/core/estates/hlpEstate.d.ts +11 -0
- package/lib/cjs/core/estates/hlpEstate.js +37 -0
- package/lib/cjs/core/estates/index.d.ts +5 -0
- package/lib/cjs/core/estates/index.js +27 -0
- package/lib/cjs/core/estates/models/Estate.d.ts +24 -0
- package/lib/cjs/core/estates/models/Estate.js +2 -0
- package/lib/cjs/core/estates/models/EstateAsset.d.ts +7 -0
- package/lib/cjs/core/estates/models/EstateAsset.js +2 -0
- package/lib/cjs/core/estates/models/EstateCat.d.ts +3 -0
- package/lib/cjs/core/estates/models/EstateCat.js +2 -0
- package/lib/cjs/core/estates/models/EstateElt.d.ts +3 -0
- package/lib/cjs/core/estates/models/EstateElt.js +2 -0
- package/lib/cjs/core/estates/models/EstateLevel.d.ts +3 -0
- package/lib/cjs/core/estates/models/EstateLevel.js +2 -0
- package/lib/cjs/core/estates/models/EstatePor.d.ts +3 -0
- package/lib/cjs/core/estates/models/EstatePor.js +2 -0
- package/lib/cjs/core/estates/models/Housing.d.ts +17 -0
- package/lib/cjs/core/estates/models/Housing.js +2 -0
- package/lib/cjs/core/estates/models/HousingRented.d.ts +15 -0
- package/lib/cjs/core/estates/models/HousingRented.js +2 -0
- package/lib/cjs/core/estates/models/index.d.ts +9 -0
- package/lib/cjs/core/estates/models/index.js +2 -0
- package/lib/cjs/core/estates/pipes/estate-pipe.d.ts +6 -0
- package/lib/cjs/core/estates/pipes/estate-pipe.js +17 -0
- package/lib/cjs/core/estates/pipes/list-estate-pipe.d.ts +6 -0
- package/lib/cjs/core/estates/pipes/list-estate-pipe.js +17 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/models/entities/users/Address.d.ts +8 -8
- package/lib/cjs/models/entities/users/UserAbs.d.ts +1 -1
- package/lib/cjs/models/entities/users/UserNotatial.d.ts +2 -2
- package/lib/cjs/models/index.d.ts +0 -1
- package/lib/cjs/models/index.js +0 -1
- package/lib/esm/core/estates/hlpEstate.d.ts +11 -0
- package/lib/esm/core/estates/hlpEstate.js +35 -0
- package/lib/esm/core/estates/index.d.ts +5 -0
- package/lib/esm/core/estates/index.js +5 -0
- package/lib/esm/core/estates/models/Estate.d.ts +24 -0
- package/lib/esm/core/estates/models/Estate.js +1 -0
- package/lib/esm/core/estates/models/EstateAsset.d.ts +7 -0
- package/lib/esm/core/estates/models/EstateAsset.js +1 -0
- package/lib/esm/core/estates/models/EstateCat.d.ts +3 -0
- package/lib/esm/core/estates/models/EstateCat.js +1 -0
- package/lib/esm/core/estates/models/EstateElt.d.ts +3 -0
- package/lib/esm/core/estates/models/EstateElt.js +1 -0
- package/lib/esm/core/estates/models/EstateLevel.d.ts +3 -0
- package/lib/esm/core/estates/models/EstateLevel.js +1 -0
- package/lib/esm/core/estates/models/EstatePor.d.ts +3 -0
- package/lib/esm/core/estates/models/EstatePor.js +1 -0
- package/lib/esm/core/estates/models/Housing.d.ts +17 -0
- package/lib/esm/core/estates/models/Housing.js +1 -0
- package/lib/esm/core/estates/models/HousingRented.d.ts +15 -0
- package/lib/esm/core/estates/models/HousingRented.js +1 -0
- package/lib/esm/core/estates/models/index.d.ts +9 -0
- package/lib/esm/core/estates/models/index.js +1 -0
- package/lib/esm/core/estates/pipes/estate-pipe.d.ts +6 -0
- package/lib/esm/core/estates/pipes/estate-pipe.js +12 -0
- package/lib/esm/core/estates/pipes/list-estate-pipe.d.ts +6 -0
- package/lib/esm/core/estates/pipes/list-estate-pipe.js +12 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/models/entities/users/Address.d.ts +8 -8
- package/lib/esm/models/entities/users/UserAbs.d.ts +1 -1
- package/lib/esm/models/entities/users/UserNotatial.d.ts +2 -2
- package/lib/esm/models/index.d.ts +0 -1
- package/lib/esm/models/index.js +0 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Estate } from "./models/Estate";
|
|
2
|
+
import { Housing } from "./models/Housing";
|
|
3
|
+
declare class HlpEstate {
|
|
4
|
+
nbHousings(estate: Estate): number;
|
|
5
|
+
totalHousings(estates: Estate[]): number;
|
|
6
|
+
nbLodgers(housings: Housing[]): number;
|
|
7
|
+
totalLodgers(estates: Estate[]): number;
|
|
8
|
+
address(estate: Estate): string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: HlpEstate;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class HlpEstate {
|
|
4
|
+
nbHousings(estate) {
|
|
5
|
+
return estate.housings.length || 0;
|
|
6
|
+
}
|
|
7
|
+
totalHousings(estates) {
|
|
8
|
+
if (!estates.length) {
|
|
9
|
+
return 0;
|
|
10
|
+
}
|
|
11
|
+
let count = 0;
|
|
12
|
+
estates.map((estate) => {
|
|
13
|
+
count += this.nbHousings(estate);
|
|
14
|
+
});
|
|
15
|
+
return count;
|
|
16
|
+
}
|
|
17
|
+
nbLodgers(housings) {
|
|
18
|
+
let count = 0;
|
|
19
|
+
housings.map((housing) => {
|
|
20
|
+
if (housing.lodger) {
|
|
21
|
+
count++;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return count;
|
|
25
|
+
}
|
|
26
|
+
totalLodgers(estates) {
|
|
27
|
+
let count = 0;
|
|
28
|
+
estates.map((estate) => {
|
|
29
|
+
count += this.nbLodgers(estate.housings);
|
|
30
|
+
});
|
|
31
|
+
return count;
|
|
32
|
+
}
|
|
33
|
+
address(estate) {
|
|
34
|
+
return estate.region.name + ", " + estate.city.name + ", " + estate.quarter.name;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = new HlpEstate();
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.ListEstatePipe = exports.EstatePipe = exports.HlpEstate = void 0;
|
|
21
|
+
const hlpEstate_1 = __importDefault(require("./hlpEstate"));
|
|
22
|
+
exports.HlpEstate = hlpEstate_1.default;
|
|
23
|
+
const estate_pipe_1 = __importDefault(require("./pipes/estate-pipe"));
|
|
24
|
+
exports.EstatePipe = estate_pipe_1.default;
|
|
25
|
+
const estate_pipe_2 = __importDefault(require("./pipes/estate-pipe"));
|
|
26
|
+
exports.ListEstatePipe = estate_pipe_2.default;
|
|
27
|
+
__exportStar(require("../estates/models/index"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { User } from "../../../models/entities/users/User";
|
|
2
|
+
import { City } from "../../../models/entities/world/City";
|
|
3
|
+
import { Quarter } from "../../../models/entities/world/Quarter";
|
|
4
|
+
import { Region } from "../../../models/entities/world/Region";
|
|
5
|
+
import { EstateAsset } from "./EstateAsset";
|
|
6
|
+
import { EstateCat } from "./EstateCat";
|
|
7
|
+
import { EstatePor } from "./EstatePor";
|
|
8
|
+
import { Housing } from "./Housing";
|
|
9
|
+
export interface Estate {
|
|
10
|
+
id: number;
|
|
11
|
+
ref: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
description: string;
|
|
14
|
+
salePrice: number;
|
|
15
|
+
cat: EstateCat;
|
|
16
|
+
por: EstatePor;
|
|
17
|
+
region?: Region;
|
|
18
|
+
city?: City;
|
|
19
|
+
quarter?: Quarter;
|
|
20
|
+
prop?: User;
|
|
21
|
+
isActive?: boolean;
|
|
22
|
+
housings?: Housing[];
|
|
23
|
+
assets?: EstateAsset[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { User } from "../../../models/entities/users/User";
|
|
2
|
+
import { Estate } from "./Estate";
|
|
3
|
+
import { HousingRented } from "./HousingRented";
|
|
4
|
+
export interface Housing {
|
|
5
|
+
id: number;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
description: string;
|
|
8
|
+
ref: string;
|
|
9
|
+
price: number;
|
|
10
|
+
deposit: number;
|
|
11
|
+
chargesPrice: number;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
estate: Estate;
|
|
14
|
+
lodger: User;
|
|
15
|
+
encoder: User;
|
|
16
|
+
rented: HousingRented;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from "../../../models/entities/users/User";
|
|
2
|
+
import { Housing } from "./Housing";
|
|
3
|
+
export interface HousingRented {
|
|
4
|
+
id: number;
|
|
5
|
+
dateIn: Date;
|
|
6
|
+
dateOut: Date;
|
|
7
|
+
price: number;
|
|
8
|
+
deposit: number;
|
|
9
|
+
prepaid: number;
|
|
10
|
+
lodger?: User;
|
|
11
|
+
lodgerId?: number;
|
|
12
|
+
housingId?: number;
|
|
13
|
+
housing?: Housing;
|
|
14
|
+
encoder?: User;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Estate } from "./Estate";
|
|
2
|
+
import { EstateAsset } from "./EstateAsset";
|
|
3
|
+
import { EstateCat } from "./EstateCat";
|
|
4
|
+
import { EstateElt } from "./EstateElt";
|
|
5
|
+
import { EstateLevel } from "./EstateLevel";
|
|
6
|
+
import { EstatePor } from "./EstatePor";
|
|
7
|
+
import { Housing } from "./Housing";
|
|
8
|
+
import { HousingRented } from "./HousingRented";
|
|
9
|
+
export { Estate, EstateAsset, EstateCat, EstateElt, EstateLevel, EstatePor, Housing, HousingRented };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const hlpEstate_1 = __importDefault(require("../hlpEstate"));
|
|
7
|
+
class EstatePipe {
|
|
8
|
+
transform(estate, params) {
|
|
9
|
+
switch (params) {
|
|
10
|
+
case "housings":
|
|
11
|
+
return hlpEstate_1.default.nbHousings(estate);
|
|
12
|
+
case "lodgers":
|
|
13
|
+
return hlpEstate_1.default.nbLodgers(estate.housings);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = new EstatePipe();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const hlpEstate_1 = __importDefault(require("../hlpEstate"));
|
|
7
|
+
class ListEstatePipe {
|
|
8
|
+
transform(estates, params) {
|
|
9
|
+
switch (params) {
|
|
10
|
+
case "housings":
|
|
11
|
+
return hlpEstate_1.default.totalHousings(estates);
|
|
12
|
+
case "lodgers":
|
|
13
|
+
return hlpEstate_1.default.totalLodgers(estates);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = new ListEstatePipe();
|
package/lib/cjs/index.d.ts
CHANGED
package/lib/cjs/index.js
CHANGED
|
@@ -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
|
|
6
|
-
phoneS
|
|
7
|
-
address
|
|
8
|
-
city
|
|
9
|
-
country
|
|
10
|
-
region
|
|
11
|
-
email
|
|
12
|
-
cp
|
|
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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Estate } from "
|
|
2
|
-
import { Housing } from "
|
|
1
|
+
import { Estate } from "../../../core/estates/models/Estate";
|
|
2
|
+
import { Housing } from "../../../core/estates/models/Housing";
|
|
3
3
|
import { UserAbs } from "./UserAbs";
|
|
4
4
|
export interface UserNotarial extends UserAbs {
|
|
5
5
|
estates?: Estate[];
|
|
@@ -5,7 +5,6 @@ import { colNa, colNaCo, colNaCoSh, FormProps, HeaderTableColumnType, IPath, Men
|
|
|
5
5
|
export * from "./entities/bills/index";
|
|
6
6
|
export * from "./entities/buys/index";
|
|
7
7
|
export * from "./entities/comptas/index";
|
|
8
|
-
export * from "./entities/estates/index";
|
|
9
8
|
export * from "./entities/sales/index";
|
|
10
9
|
export * from "./entities/users/index";
|
|
11
10
|
export * from "./entities/world/index";
|
package/lib/cjs/models/index.js
CHANGED
|
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "colNaCoSh", { enumerable: true, get: function ()
|
|
|
22
22
|
__exportStar(require("./entities/bills/index"), exports);
|
|
23
23
|
__exportStar(require("./entities/buys/index"), exports);
|
|
24
24
|
__exportStar(require("./entities/comptas/index"), exports);
|
|
25
|
-
__exportStar(require("./entities/estates/index"), exports);
|
|
26
25
|
__exportStar(require("./entities/sales/index"), exports);
|
|
27
26
|
__exportStar(require("./entities/users/index"), exports);
|
|
28
27
|
__exportStar(require("./entities/world/index"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Estate } from "./models/Estate";
|
|
2
|
+
import { Housing } from "./models/Housing";
|
|
3
|
+
declare class HlpEstate {
|
|
4
|
+
nbHousings(estate: Estate): number;
|
|
5
|
+
totalHousings(estates: Estate[]): number;
|
|
6
|
+
nbLodgers(housings: Housing[]): number;
|
|
7
|
+
totalLodgers(estates: Estate[]): number;
|
|
8
|
+
address(estate: Estate): string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: HlpEstate;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
class HlpEstate {
|
|
2
|
+
nbHousings(estate) {
|
|
3
|
+
return estate.housings.length || 0;
|
|
4
|
+
}
|
|
5
|
+
totalHousings(estates) {
|
|
6
|
+
if (!estates.length) {
|
|
7
|
+
return 0;
|
|
8
|
+
}
|
|
9
|
+
let count = 0;
|
|
10
|
+
estates.map((estate) => {
|
|
11
|
+
count += this.nbHousings(estate);
|
|
12
|
+
});
|
|
13
|
+
return count;
|
|
14
|
+
}
|
|
15
|
+
nbLodgers(housings) {
|
|
16
|
+
let count = 0;
|
|
17
|
+
housings.map((housing) => {
|
|
18
|
+
if (housing.lodger) {
|
|
19
|
+
count++;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return count;
|
|
23
|
+
}
|
|
24
|
+
totalLodgers(estates) {
|
|
25
|
+
let count = 0;
|
|
26
|
+
estates.map((estate) => {
|
|
27
|
+
count += this.nbLodgers(estate.housings);
|
|
28
|
+
});
|
|
29
|
+
return count;
|
|
30
|
+
}
|
|
31
|
+
address(estate) {
|
|
32
|
+
return estate.region.name + ", " + estate.city.name + ", " + estate.quarter.name;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export default new HlpEstate();
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { User } from "../../../models/entities/users/User";
|
|
2
|
+
import { City } from "../../../models/entities/world/City";
|
|
3
|
+
import { Quarter } from "../../../models/entities/world/Quarter";
|
|
4
|
+
import { Region } from "../../../models/entities/world/Region";
|
|
5
|
+
import { EstateAsset } from "./EstateAsset";
|
|
6
|
+
import { EstateCat } from "./EstateCat";
|
|
7
|
+
import { EstatePor } from "./EstatePor";
|
|
8
|
+
import { Housing } from "./Housing";
|
|
9
|
+
export interface Estate {
|
|
10
|
+
id: number;
|
|
11
|
+
ref: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
description: string;
|
|
14
|
+
salePrice: number;
|
|
15
|
+
cat: EstateCat;
|
|
16
|
+
por: EstatePor;
|
|
17
|
+
region?: Region;
|
|
18
|
+
city?: City;
|
|
19
|
+
quarter?: Quarter;
|
|
20
|
+
prop?: User;
|
|
21
|
+
isActive?: boolean;
|
|
22
|
+
housings?: Housing[];
|
|
23
|
+
assets?: EstateAsset[];
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { User } from "../../../models/entities/users/User";
|
|
2
|
+
import { Estate } from "./Estate";
|
|
3
|
+
import { HousingRented } from "./HousingRented";
|
|
4
|
+
export interface Housing {
|
|
5
|
+
id: number;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
description: string;
|
|
8
|
+
ref: string;
|
|
9
|
+
price: number;
|
|
10
|
+
deposit: number;
|
|
11
|
+
chargesPrice: number;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
estate: Estate;
|
|
14
|
+
lodger: User;
|
|
15
|
+
encoder: User;
|
|
16
|
+
rented: HousingRented;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from "../../../models/entities/users/User";
|
|
2
|
+
import { Housing } from "./Housing";
|
|
3
|
+
export interface HousingRented {
|
|
4
|
+
id: number;
|
|
5
|
+
dateIn: Date;
|
|
6
|
+
dateOut: Date;
|
|
7
|
+
price: number;
|
|
8
|
+
deposit: number;
|
|
9
|
+
prepaid: number;
|
|
10
|
+
lodger?: User;
|
|
11
|
+
lodgerId?: number;
|
|
12
|
+
housingId?: number;
|
|
13
|
+
housing?: Housing;
|
|
14
|
+
encoder?: User;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Estate } from "./Estate";
|
|
2
|
+
import { EstateAsset } from "./EstateAsset";
|
|
3
|
+
import { EstateCat } from "./EstateCat";
|
|
4
|
+
import { EstateElt } from "./EstateElt";
|
|
5
|
+
import { EstateLevel } from "./EstateLevel";
|
|
6
|
+
import { EstatePor } from "./EstatePor";
|
|
7
|
+
import { Housing } from "./Housing";
|
|
8
|
+
import { HousingRented } from "./HousingRented";
|
|
9
|
+
export { Estate, EstateAsset, EstateCat, EstateElt, EstateLevel, EstatePor, Housing, HousingRented };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import HlpEstate from "../hlpEstate";
|
|
2
|
+
class EstatePipe {
|
|
3
|
+
transform(estate, params) {
|
|
4
|
+
switch (params) {
|
|
5
|
+
case "housings":
|
|
6
|
+
return HlpEstate.nbHousings(estate);
|
|
7
|
+
case "lodgers":
|
|
8
|
+
return HlpEstate.nbLodgers(estate.housings);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default new EstatePipe();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import HlpEstate from "../hlpEstate";
|
|
2
|
+
class ListEstatePipe {
|
|
3
|
+
transform(estates, params) {
|
|
4
|
+
switch (params) {
|
|
5
|
+
case "housings":
|
|
6
|
+
return HlpEstate.totalHousings(estates);
|
|
7
|
+
case "lodgers":
|
|
8
|
+
return HlpEstate.totalLodgers(estates);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default new ListEstatePipe();
|
package/lib/esm/index.d.ts
CHANGED
package/lib/esm/index.js
CHANGED
|
@@ -35,5 +35,6 @@ export * from "./sale";
|
|
|
35
35
|
export * from "./typeorm";
|
|
36
36
|
export * from "./user";
|
|
37
37
|
export * from "./utils";
|
|
38
|
+
export * from "./core/estates/index";
|
|
38
39
|
// export * from "./helpers/hlpProduct";
|
|
39
40
|
export { AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
|
@@ -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
|
|
6
|
-
phoneS
|
|
7
|
-
address
|
|
8
|
-
city
|
|
9
|
-
country
|
|
10
|
-
region
|
|
11
|
-
email
|
|
12
|
-
cp
|
|
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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Estate } from "
|
|
2
|
-
import { Housing } from "
|
|
1
|
+
import { Estate } from "../../../core/estates/models/Estate";
|
|
2
|
+
import { Housing } from "../../../core/estates/models/Housing";
|
|
3
3
|
import { UserAbs } from "./UserAbs";
|
|
4
4
|
export interface UserNotarial extends UserAbs {
|
|
5
5
|
estates?: Estate[];
|
|
@@ -5,7 +5,6 @@ import { colNa, colNaCo, colNaCoSh, FormProps, HeaderTableColumnType, IPath, Men
|
|
|
5
5
|
export * from "./entities/bills/index";
|
|
6
6
|
export * from "./entities/buys/index";
|
|
7
7
|
export * from "./entities/comptas/index";
|
|
8
|
-
export * from "./entities/estates/index";
|
|
9
8
|
export * from "./entities/sales/index";
|
|
10
9
|
export * from "./entities/users/index";
|
|
11
10
|
export * from "./entities/world/index";
|
package/lib/esm/models/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { colNa, colNaCo, colNaCoSh } from "./types/Type";
|
|
|
2
2
|
export * from "./entities/bills/index";
|
|
3
3
|
export * from "./entities/buys/index";
|
|
4
4
|
export * from "./entities/comptas/index";
|
|
5
|
-
export * from "./entities/estates/index";
|
|
6
5
|
export * from "./entities/sales/index";
|
|
7
6
|
export * from "./entities/users/index";
|
|
8
7
|
export * from "./entities/world/index";
|