asv-hlps 1.2.17 → 1.2.20
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 +10 -0
- package/lib/cjs/core/estates/hlpEstate.js +34 -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/{models/types/MenuItemType.js → core/estates/models/Estate.js} +0 -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/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
- package/lib/cjs/index.d.ts +1 -4
- package/lib/cjs/index.js +3 -5
- package/lib/cjs/models/entities/auth/index.d.ts +3 -0
- package/lib/cjs/models/entities/auth/index.js +2 -0
- package/lib/cjs/models/entities/bills/index.d.ts +8 -0
- package/lib/cjs/models/entities/bills/index.js +9 -0
- package/lib/cjs/models/entities/buys/index.d.ts +5 -0
- package/lib/cjs/models/entities/buys/index.js +5 -0
- package/lib/cjs/models/entities/cashs/index.d.ts +7 -0
- package/lib/cjs/models/entities/cashs/index.js +2 -0
- package/lib/cjs/models/entities/comptas/index.d.ts +9 -0
- package/lib/cjs/models/entities/comptas/index.js +2 -0
- package/lib/cjs/models/entities/docs/index.d.ts +7 -0
- package/lib/cjs/models/entities/docs/index.js +2 -0
- package/lib/cjs/models/entities/mails/index.d.ts +5 -0
- package/lib/cjs/models/entities/mails/index.js +2 -0
- package/lib/cjs/models/entities/products/index.d.ts +26 -0
- package/lib/cjs/models/entities/products/index.js +5 -0
- package/lib/cjs/models/entities/sales/index.d.ts +13 -0
- package/lib/cjs/models/entities/sales/index.js +15 -0
- package/lib/cjs/models/entities/users/UserNotatial.d.ts +2 -2
- package/lib/cjs/models/entities/users/index.d.ts +2 -1
- package/lib/cjs/models/entities/utilities/index.d.ts +4 -0
- package/lib/cjs/models/entities/utilities/index.js +7 -0
- package/lib/cjs/models/entities/world/index.d.ts +7 -0
- package/lib/cjs/models/entities/world/index.js +9 -0
- package/lib/cjs/models/index.d.ts +13 -84
- package/lib/cjs/models/index.js +27 -33
- package/lib/esm/core/estates/hlpEstate.d.ts +10 -0
- package/lib/esm/core/estates/hlpEstate.js +32 -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/{models/types/MenuItemType.js → core/estates/models/Estate.js} +0 -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/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
- package/lib/esm/index.d.ts +1 -4
- package/lib/esm/index.js +3 -5
- package/lib/esm/models/entities/auth/index.d.ts +3 -0
- package/lib/esm/models/entities/auth/index.js +1 -0
- package/lib/esm/models/entities/bills/index.d.ts +8 -0
- package/lib/esm/models/entities/bills/index.js +4 -0
- package/lib/esm/models/entities/buys/index.d.ts +5 -0
- package/lib/esm/models/entities/buys/index.js +2 -0
- package/lib/esm/models/entities/cashs/index.d.ts +7 -0
- package/lib/esm/models/entities/cashs/index.js +1 -0
- package/lib/esm/models/entities/comptas/index.d.ts +9 -0
- package/lib/esm/models/entities/comptas/index.js +1 -0
- package/lib/esm/models/entities/docs/index.d.ts +7 -0
- package/lib/esm/models/entities/docs/index.js +1 -0
- package/lib/esm/models/entities/mails/index.d.ts +5 -0
- package/lib/esm/models/entities/mails/index.js +1 -0
- package/lib/esm/models/entities/products/index.d.ts +26 -0
- package/lib/esm/models/entities/products/index.js +2 -0
- package/lib/esm/models/entities/sales/index.d.ts +13 -0
- package/lib/esm/models/entities/sales/index.js +7 -0
- package/lib/esm/models/entities/users/UserNotatial.d.ts +2 -2
- package/lib/esm/models/entities/users/index.d.ts +2 -1
- package/lib/esm/models/entities/users/index.js +1 -1
- package/lib/esm/models/entities/utilities/index.d.ts +4 -0
- package/lib/esm/models/entities/utilities/index.js +3 -0
- package/lib/esm/models/entities/world/index.d.ts +7 -0
- package/lib/esm/models/entities/world/index.js +4 -0
- package/lib/esm/models/index.d.ts +13 -84
- package/lib/esm/models/index.js +13 -21
- package/package.json +1 -1
- package/lib/cjs/helpers/hlpProduct2.d.ts +0 -1
- package/lib/cjs/helpers/hlpProduct2.js +0 -130
- package/lib/cjs/models/types/MenuItemType.d.ts +0 -14
- package/lib/esm/helpers/hlpProduct2.d.ts +0 -1
- package/lib/esm/helpers/hlpProduct2.js +0 -126
- package/lib/esm/models/types/MenuItemType.d.ts +0 -14
|
@@ -1,88 +1,17 @@
|
|
|
1
|
-
import { AuthTag } from "./entities/auth/AuthTag";
|
|
2
|
-
import { AuthTagCat } from "./entities/auth/AuthTagCat";
|
|
3
|
-
import { Bill } from "./entities/bills/Bill";
|
|
4
|
-
import { BillLine } from "./entities/bills/BillLine";
|
|
5
|
-
import { BillPayment } from "./entities/bills/BillPayment";
|
|
6
|
-
import { BillPaymentMethod } from "./entities/bills/BillPaymentMethod";
|
|
7
|
-
import { CBillPeriod } from "./entities/bills/CBillPeriod";
|
|
8
|
-
import { EBillPeriod } from "./entities/bills/EBillPeriod";
|
|
9
|
-
import { EPayMethod } from "./entities/bills/EPayMethod";
|
|
10
|
-
import { Buy } from "./entities/buys/Buy";
|
|
11
|
-
import { BuyCart } from "./entities/buys/BuyCart";
|
|
12
|
-
import { BuyItem } from "./entities/buys/BuyItem";
|
|
13
|
-
import { BuyItems } from "./entities/buys/BuyItems";
|
|
14
|
-
import { Account } from "./entities/cashs/Account";
|
|
15
|
-
import { Bank } from "./entities/cashs/Bank";
|
|
16
|
-
import { Currency } from "./entities/cashs/Currency";
|
|
17
|
-
import { Deposit } from "./entities/cashs/Deposit";
|
|
18
|
-
import { Feed } from "./entities/cashs/Feed";
|
|
19
|
-
import { Spent } from "./entities/cashs/Spent";
|
|
20
|
-
import { Entry } from "./entities/comptas/Entry";
|
|
21
|
-
import { EntryAccount } from "./entities/comptas/EntryAccount";
|
|
22
|
-
import { EntryCat } from "./entities/comptas/EntryCat";
|
|
23
|
-
import { EntryLine } from "./entities/comptas/EntryLine";
|
|
24
|
-
import { OhadaCat } from "./entities/comptas/OhadaCat";
|
|
25
|
-
import { OhadaGrp } from "./entities/comptas/OhadaGrp";
|
|
26
|
-
import { OhadaPlan } from "./entities/comptas/OhadaPlan";
|
|
27
|
-
import { OhadaSubCat } from "./entities/comptas/OhadaSubCat";
|
|
28
|
-
import { Docu } from "./entities/docs/Docu";
|
|
29
|
-
import { DocuCat } from "./entities/docs/DocuCat";
|
|
30
|
-
import { Faq } from "./entities/docs/Faq";
|
|
31
|
-
import { FaqCat } from "./entities/docs/FaqCat";
|
|
32
|
-
import { Memo } from "./entities/docs/Memo";
|
|
33
|
-
import { MemoCat } from "./entities/docs/MemoCat";
|
|
34
|
-
import { Mail } from "./entities/mails/Mail";
|
|
35
|
-
import { MailMass } from "./entities/mails/MailMass";
|
|
36
|
-
import { MsgAlert } from "./entities/mails/MsgAlert";
|
|
37
|
-
import { MsgChat } from "./entities/mails/MsgChat";
|
|
38
|
-
import { Product } from "./entities/products/Product";
|
|
39
|
-
import { ProductAgcy } from "./entities/products/ProductAgcy";
|
|
40
|
-
import { ProductAmm } from "./entities/products/ProductAmm";
|
|
41
|
-
import { ProductBuy } from "./entities/products/ProductBuy";
|
|
42
|
-
import { ProductCat } from "./entities/products/ProductCat";
|
|
43
|
-
import { ProductDci } from "./entities/products/ProductDci";
|
|
44
|
-
import { ProductDepot } from "./entities/products/ProductDepot";
|
|
45
|
-
import { ProductDos } from "./entities/products/ProductDos";
|
|
46
|
-
import { ProductFg } from "./entities/products/ProductFg";
|
|
47
|
-
import { ProductIn } from "./entities/products/ProductIn";
|
|
48
|
-
import { ProductInOut } from "./entities/products/ProductInOut";
|
|
49
|
-
import { ProductInventory } from "./entities/products/ProductInventory";
|
|
50
|
-
import { ProductLabo } from "./entities/products/ProductLabo";
|
|
51
|
-
import { ProductLoc } from "./entities/products/ProductLoc";
|
|
52
|
-
import { ProductMvt } from "./entities/products/ProductMvt";
|
|
53
|
-
import { ProductMvtInventory } from "./entities/products/ProductMvtInventory";
|
|
54
|
-
import { ProductOutReason } from "./entities/products/ProductOutReason";
|
|
55
|
-
import { ProductPromo } from "./entities/products/ProductPromo";
|
|
56
|
-
import { ProductPvd } from "./entities/products/ProductPvd";
|
|
57
|
-
import { ProductSof } from "./entities/products/ProductSof";
|
|
58
|
-
import { ProductStore } from "./entities/products/ProductStore";
|
|
59
|
-
import { ProductTcl } from "./entities/products/ProductTcl";
|
|
60
|
-
import { ProductTclGrp } from "./entities/products/ProductTclGrp";
|
|
61
|
-
import { ProductTransfert } from "./entities/products/ProductTransfert";
|
|
62
|
-
import { ProductWanted } from "./entities/products/ProductWanted";
|
|
63
|
-
import { CartItem } from "./entities/sales/CartItem";
|
|
64
|
-
import { DelideryProcess } from "./entities/sales/DeliveryProcess";
|
|
65
|
-
import { SaleTreatStatus } from "./entities/sales/enums/SaleTreatStatus";
|
|
66
|
-
import { Sale } from "./entities/sales/Sale";
|
|
67
|
-
import { SaleDelivery } from "./entities/sales/SaleDelivery";
|
|
68
|
-
import { SaleInfo } from "./entities/sales/SaleInfo";
|
|
69
|
-
import { SaleItems } from "./entities/sales/SaleItems";
|
|
70
|
-
import { SaleProduct } from "./entities/sales/SaleProduct";
|
|
71
|
-
import { SaleProductLot } from "./entities/sales/SaleProductLot";
|
|
72
|
-
import { SaleProductQtityIssue } from "./entities/sales/SaleProductQtityIssue";
|
|
73
|
-
import { SaleShop } from "./entities/sales/SaleShop";
|
|
74
|
-
import { ShopCart } from "./entities/sales/ShopCart";
|
|
75
|
-
import { Todo } from "./entities/utilities/Todo";
|
|
76
|
-
import { Vehicle } from "./entities/utilities/Vehicle";
|
|
77
|
-
import { Wish } from "./entities/utilities/Wish";
|
|
78
|
-
import { City } from "./entities/world/City";
|
|
79
|
-
import { Continent } from "./entities/world/Continent";
|
|
80
|
-
import { Country } from "./entities/world/Country";
|
|
81
|
-
import { Department } from "./entities/world/Department";
|
|
82
|
-
import { Quarter } from "./entities/world/Quarter";
|
|
83
|
-
import { Region } from "./entities/world/Region";
|
|
84
1
|
import { NaAc } from "./shared/NaAc";
|
|
85
2
|
import { NaCoAc } from "./shared/NaCoAc";
|
|
86
3
|
import { NaCoShortAc } from "./shared/NaCoShortAc";
|
|
87
4
|
import { colNa, colNaCo, colNaCoSh, FormProps, HeaderTableColumnType, IPath, MenuItemType } from "./types/Type";
|
|
88
|
-
export
|
|
5
|
+
export * from "./entities/bills/index";
|
|
6
|
+
export * from "./entities/buys/index";
|
|
7
|
+
export * from "./entities/comptas/index";
|
|
8
|
+
export * from "./entities/sales/index";
|
|
9
|
+
export * from "./entities/users/index";
|
|
10
|
+
export * from "./entities/world/index";
|
|
11
|
+
export * from "./entities/cashs/index";
|
|
12
|
+
export * from "./entities/auth/index";
|
|
13
|
+
export * from "./entities/docs/index";
|
|
14
|
+
export * from "./entities/mails/index";
|
|
15
|
+
export * from "./entities/products/index";
|
|
16
|
+
export * from "./entities/utilities/index";
|
|
17
|
+
export { NaAc, NaCoAc, NaCoShortAc, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormProps };
|
package/lib/cjs/models/index.js
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.colNaCoSh = exports.colNaCo = exports.colNa =
|
|
4
|
-
const CBillPeriod_1 = require("./entities/bills/CBillPeriod");
|
|
5
|
-
Object.defineProperty(exports, "CBillPeriod", { enumerable: true, get: function () { return CBillPeriod_1.CBillPeriod; } });
|
|
6
|
-
const EBillPeriod_1 = require("./entities/bills/EBillPeriod");
|
|
7
|
-
Object.defineProperty(exports, "EBillPeriod", { enumerable: true, get: function () { return EBillPeriod_1.EBillPeriod; } });
|
|
8
|
-
const EPayMethod_1 = require("./entities/bills/EPayMethod");
|
|
9
|
-
Object.defineProperty(exports, "EPayMethod", { enumerable: true, get: function () { return EPayMethod_1.EPayMethod; } });
|
|
10
|
-
const BuyItems_1 = require("./entities/buys/BuyItems");
|
|
11
|
-
Object.defineProperty(exports, "BuyItems", { enumerable: true, get: function () { return BuyItems_1.BuyItems; } });
|
|
12
|
-
const ProductPromo_1 = require("./entities/products/ProductPromo");
|
|
13
|
-
Object.defineProperty(exports, "ProductPromo", { enumerable: true, get: function () { return ProductPromo_1.ProductPromo; } });
|
|
14
|
-
const SaleTreatStatus_1 = require("./entities/sales/enums/SaleTreatStatus");
|
|
15
|
-
Object.defineProperty(exports, "SaleTreatStatus", { enumerable: true, get: function () { return SaleTreatStatus_1.SaleTreatStatus; } });
|
|
16
|
-
const SaleItems_1 = require("./entities/sales/SaleItems");
|
|
17
|
-
Object.defineProperty(exports, "SaleItems", { enumerable: true, get: function () { return SaleItems_1.SaleItems; } });
|
|
18
|
-
const SaleProduct_1 = require("./entities/sales/SaleProduct");
|
|
19
|
-
Object.defineProperty(exports, "SaleProduct", { enumerable: true, get: function () { return SaleProduct_1.SaleProduct; } });
|
|
20
|
-
const SaleProductLot_1 = require("./entities/sales/SaleProductLot");
|
|
21
|
-
Object.defineProperty(exports, "SaleProductLot", { enumerable: true, get: function () { return SaleProductLot_1.SaleProductLot; } });
|
|
22
|
-
const SaleShop_1 = require("./entities/sales/SaleShop");
|
|
23
|
-
Object.defineProperty(exports, "SaleShop", { enumerable: true, get: function () { return SaleShop_1.SaleShop; } });
|
|
24
|
-
const ShopCart_1 = require("./entities/sales/ShopCart");
|
|
25
|
-
Object.defineProperty(exports, "ShopCart", { enumerable: true, get: function () { return ShopCart_1.ShopCart; } });
|
|
26
|
-
const Todo_1 = require("./entities/utilities/Todo");
|
|
27
|
-
Object.defineProperty(exports, "Todo", { enumerable: true, get: function () { return Todo_1.Todo; } });
|
|
28
|
-
const Wish_1 = require("./entities/utilities/Wish");
|
|
29
|
-
Object.defineProperty(exports, "Wish", { enumerable: true, get: function () { return Wish_1.Wish; } });
|
|
30
|
-
const City_1 = require("./entities/world/City");
|
|
31
|
-
Object.defineProperty(exports, "City", { enumerable: true, get: function () { return City_1.City; } });
|
|
32
|
-
const Continent_1 = require("./entities/world/Continent");
|
|
33
|
-
Object.defineProperty(exports, "Continent", { enumerable: true, get: function () { return Continent_1.Continent; } });
|
|
34
|
-
const Region_1 = require("./entities/world/Region");
|
|
35
|
-
Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return Region_1.Region; } });
|
|
17
|
+
exports.colNaCoSh = exports.colNaCo = exports.colNa = void 0;
|
|
36
18
|
const Type_1 = require("./types/Type");
|
|
37
19
|
Object.defineProperty(exports, "colNa", { enumerable: true, get: function () { return Type_1.colNa; } });
|
|
38
20
|
Object.defineProperty(exports, "colNaCo", { enumerable: true, get: function () { return Type_1.colNaCo; } });
|
|
39
21
|
Object.defineProperty(exports, "colNaCoSh", { enumerable: true, get: function () { return Type_1.colNaCoSh; } });
|
|
22
|
+
__exportStar(require("./entities/bills/index"), exports);
|
|
23
|
+
__exportStar(require("./entities/buys/index"), exports);
|
|
24
|
+
__exportStar(require("./entities/comptas/index"), exports);
|
|
25
|
+
__exportStar(require("./entities/sales/index"), exports);
|
|
26
|
+
__exportStar(require("./entities/users/index"), exports);
|
|
27
|
+
__exportStar(require("./entities/world/index"), exports);
|
|
28
|
+
__exportStar(require("./entities/cashs/index"), exports);
|
|
29
|
+
__exportStar(require("./entities/auth/index"), exports);
|
|
30
|
+
__exportStar(require("./entities/docs/index"), exports);
|
|
31
|
+
__exportStar(require("./entities/mails/index"), exports);
|
|
32
|
+
__exportStar(require("./entities/products/index"), exports);
|
|
33
|
+
__exportStar(require("./entities/utilities/index"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
9
|
+
declare const _default: HlpEstate;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
32
|
+
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
|
+
}
|
|
File without changes
|
|
@@ -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
|
@@ -8,8 +8,6 @@ import StorageService from "./services/storageService";
|
|
|
8
8
|
import "./auth";
|
|
9
9
|
import "./bill";
|
|
10
10
|
import "./bootstrap";
|
|
11
|
-
import "./models/entities/estates/index";
|
|
12
|
-
import "./models/entities/users";
|
|
13
11
|
import "./models/index";
|
|
14
12
|
import "./pdfs/invoices/amountInvoice";
|
|
15
13
|
import "./pdfs/invoices/infoInvoice";
|
|
@@ -24,8 +22,6 @@ import "./utils";
|
|
|
24
22
|
export * from "./auth";
|
|
25
23
|
export * from "./bill";
|
|
26
24
|
export * from "./bootstrap";
|
|
27
|
-
export * from "./models/entities/estates/index";
|
|
28
|
-
export * from "./models/entities/users";
|
|
29
25
|
export * from "./models/index";
|
|
30
26
|
export * from "./pdfs/invoices/amountInvoice";
|
|
31
27
|
export * from "./pdfs/invoices/infoInvoice";
|
|
@@ -36,4 +32,5 @@ export * from "./sale";
|
|
|
36
32
|
export * from "./typeorm";
|
|
37
33
|
export * from "./user";
|
|
38
34
|
export * from "./utils";
|
|
35
|
+
export * from "./core/estates/index";
|
|
39
36
|
export { AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
package/lib/esm/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import StorageService from "./services/storageService";
|
|
|
8
8
|
import "./auth";
|
|
9
9
|
import "./bill";
|
|
10
10
|
import "./bootstrap";
|
|
11
|
-
import "./models/entities/estates/index";
|
|
11
|
+
// import "./models/entities/estates/index";
|
|
12
|
+
// import "./models/entities/users";
|
|
12
13
|
// import "./models/entities/users/index";
|
|
13
|
-
import "./models/entities/users";
|
|
14
14
|
import "./models/index";
|
|
15
15
|
import "./pdfs/invoices/amountInvoice";
|
|
16
16
|
import "./pdfs/invoices/infoInvoice";
|
|
@@ -25,9 +25,6 @@ import "./utils";
|
|
|
25
25
|
export * from "./auth";
|
|
26
26
|
export * from "./bill";
|
|
27
27
|
export * from "./bootstrap";
|
|
28
|
-
export * from "./models/entities/estates/index";
|
|
29
|
-
// export * from "./models/entities/users/index";
|
|
30
|
-
export * from "./models/entities/users";
|
|
31
28
|
export * from "./models/index";
|
|
32
29
|
export * from "./pdfs/invoices/amountInvoice";
|
|
33
30
|
export * from "./pdfs/invoices/infoInvoice";
|
|
@@ -38,5 +35,6 @@ export * from "./sale";
|
|
|
38
35
|
export * from "./typeorm";
|
|
39
36
|
export * from "./user";
|
|
40
37
|
export * from "./utils";
|
|
38
|
+
export * from "./core/estates/index";
|
|
41
39
|
// export * from "./helpers/hlpProduct";
|
|
42
40
|
export { AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Bill } from "./Bill";
|
|
2
|
+
import { BillLine } from "./BillLine";
|
|
3
|
+
import { BillPayment } from "./BillPayment";
|
|
4
|
+
import { BillPaymentMethod } from "./BillPaymentMethod";
|
|
5
|
+
import { CBillPeriod } from "./CBillPeriod";
|
|
6
|
+
import { EBillPeriod } from "./EBillPeriod";
|
|
7
|
+
import { EPayMethod } from "./EPayMethod";
|
|
8
|
+
export { Bill, BillLine, BillPayment, BillPaymentMethod, CBillPeriod, EBillPeriod, EPayMethod };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Account } from "./Account";
|
|
2
|
+
import { Bank } from "./Bank";
|
|
3
|
+
import { Currency } from "./Currency";
|
|
4
|
+
import { Deposit } from "./Deposit";
|
|
5
|
+
import { Feed } from "./Feed";
|
|
6
|
+
import { Spent } from "./Spent";
|
|
7
|
+
export { Account, Bank, Currency, Deposit, Feed, Spent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Entry } from "./Entry";
|
|
2
|
+
import { EntryAccount } from "./EntryAccount";
|
|
3
|
+
import { EntryCat } from "./EntryCat";
|
|
4
|
+
import { EntryLine } from "./EntryLine";
|
|
5
|
+
import { OhadaCat } from "./OhadaCat";
|
|
6
|
+
import { OhadaGrp } from "./OhadaGrp";
|
|
7
|
+
import { OhadaPlan } from "./OhadaPlan";
|
|
8
|
+
import { OhadaSubCat } from "./OhadaSubCat";
|
|
9
|
+
export { Entry, EntryAccount, EntryCat, EntryLine, OhadaCat, OhadaGrp, OhadaPlan, OhadaSubCat };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Product } from "./Product";
|
|
2
|
+
import { ProductAgcy } from "./ProductAgcy";
|
|
3
|
+
import { ProductAmm } from "./ProductAmm";
|
|
4
|
+
import { ProductBuy } from "./ProductBuy";
|
|
5
|
+
import { ProductCat } from "./ProductCat";
|
|
6
|
+
import { ProductDci } from "./ProductDci";
|
|
7
|
+
import { ProductDepot } from "./ProductDepot";
|
|
8
|
+
import { ProductDos } from "./ProductDos";
|
|
9
|
+
import { ProductFg } from "./ProductFg";
|
|
10
|
+
import { ProductIn } from "./ProductIn";
|
|
11
|
+
import { ProductInOut } from "./ProductInOut";
|
|
12
|
+
import { ProductInventory } from "./ProductInventory";
|
|
13
|
+
import { ProductLabo } from "./ProductLabo";
|
|
14
|
+
import { ProductLoc } from "./ProductLoc";
|
|
15
|
+
import { ProductMvt } from "./ProductMvt";
|
|
16
|
+
import { ProductMvtInventory } from "./ProductMvtInventory";
|
|
17
|
+
import { ProductOutReason } from "./ProductOutReason";
|
|
18
|
+
import { ProductPromo } from "./ProductPromo";
|
|
19
|
+
import { ProductPvd } from "./ProductPvd";
|
|
20
|
+
import { ProductSof } from "./ProductSof";
|
|
21
|
+
import { ProductStore } from "./ProductStore";
|
|
22
|
+
import { ProductTcl } from "./ProductTcl";
|
|
23
|
+
import { ProductTclGrp } from "./ProductTclGrp";
|
|
24
|
+
import { ProductTransfert } from "./ProductTransfert";
|
|
25
|
+
import { ProductWanted } from "./ProductWanted";
|
|
26
|
+
export { Product, ProductAgcy, ProductAmm, ProductBuy, ProductCat, ProductDci, ProductDepot, ProductDos, ProductFg, ProductIn, ProductInOut, ProductInventory, ProductLabo, ProductLoc, ProductMvt, ProductMvtInventory, ProductOutReason, ProductPromo, ProductPvd, ProductSof, ProductStore, ProductTcl, ProductTclGrp, ProductTransfert, ProductWanted, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CartItem } from "./CartItem";
|
|
2
|
+
import { DelideryProcess } from "./DeliveryProcess";
|
|
3
|
+
import { SaleTreatStatus } from "./enums/SaleTreatStatus";
|
|
4
|
+
import { Sale } from "./Sale";
|
|
5
|
+
import { SaleDelivery } from "./SaleDelivery";
|
|
6
|
+
import { SaleInfo } from "./SaleInfo";
|
|
7
|
+
import { SaleItems } from "./SaleItems";
|
|
8
|
+
import { SaleProduct } from "./SaleProduct";
|
|
9
|
+
import { SaleProductLot } from "./SaleProductLot";
|
|
10
|
+
import { SaleProductQtityIssue } from "./SaleProductQtityIssue";
|
|
11
|
+
import { SaleShop } from "./SaleShop";
|
|
12
|
+
import { ShopCart } from "./ShopCart";
|
|
13
|
+
export { CartItem, DelideryProcess, Sale, SaleDelivery, SaleInfo, SaleItems, SaleProduct, SaleProductLot, SaleProductQtityIssue, SaleShop, SaleTreatStatus, ShopCart, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SaleTreatStatus } from "./enums/SaleTreatStatus";
|
|
2
|
+
import { SaleItems } from "./SaleItems";
|
|
3
|
+
import { SaleProduct } from "./SaleProduct";
|
|
4
|
+
import { SaleProductLot } from "./SaleProductLot";
|
|
5
|
+
import { SaleShop } from "./SaleShop";
|
|
6
|
+
import { ShopCart } from "./ShopCart";
|
|
7
|
+
export { SaleItems, SaleProduct, SaleProductLot, SaleShop, SaleTreatStatus, ShopCart, };
|
|
@@ -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[];
|