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.
Files changed (118) hide show
  1. package/lib/cjs/core/estates/hlpEstate.d.ts +10 -0
  2. package/lib/cjs/core/estates/hlpEstate.js +34 -0
  3. package/lib/cjs/core/estates/index.d.ts +5 -0
  4. package/lib/cjs/core/estates/index.js +27 -0
  5. package/lib/cjs/core/estates/models/Estate.d.ts +24 -0
  6. package/lib/cjs/{models/types/MenuItemType.js → core/estates/models/Estate.js} +0 -0
  7. package/lib/cjs/core/estates/models/EstateAsset.d.ts +7 -0
  8. package/lib/cjs/core/estates/models/EstateAsset.js +2 -0
  9. package/lib/cjs/core/estates/models/EstateCat.d.ts +3 -0
  10. package/lib/cjs/core/estates/models/EstateCat.js +2 -0
  11. package/lib/cjs/core/estates/models/EstateElt.d.ts +3 -0
  12. package/lib/cjs/core/estates/models/EstateElt.js +2 -0
  13. package/lib/cjs/core/estates/models/EstateLevel.d.ts +3 -0
  14. package/lib/cjs/core/estates/models/EstateLevel.js +2 -0
  15. package/lib/cjs/core/estates/models/EstatePor.d.ts +3 -0
  16. package/lib/cjs/core/estates/models/EstatePor.js +2 -0
  17. package/lib/cjs/core/estates/models/Housing.d.ts +17 -0
  18. package/lib/cjs/core/estates/models/Housing.js +2 -0
  19. package/lib/cjs/core/estates/models/HousingRented.d.ts +15 -0
  20. package/lib/cjs/core/estates/models/HousingRented.js +2 -0
  21. package/lib/cjs/core/estates/models/index.d.ts +9 -0
  22. package/lib/cjs/core/estates/models/index.js +2 -0
  23. package/lib/cjs/core/estates/pipes/estate-pipe.d.ts +6 -0
  24. package/lib/cjs/core/estates/pipes/estate-pipe.js +17 -0
  25. package/lib/cjs/core/estates/pipes/list-estate-pipe.d.ts +6 -0
  26. package/lib/cjs/core/estates/pipes/list-estate-pipe.js +17 -0
  27. package/lib/cjs/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
  28. package/lib/cjs/index.d.ts +1 -4
  29. package/lib/cjs/index.js +3 -5
  30. package/lib/cjs/models/entities/auth/index.d.ts +3 -0
  31. package/lib/cjs/models/entities/auth/index.js +2 -0
  32. package/lib/cjs/models/entities/bills/index.d.ts +8 -0
  33. package/lib/cjs/models/entities/bills/index.js +9 -0
  34. package/lib/cjs/models/entities/buys/index.d.ts +5 -0
  35. package/lib/cjs/models/entities/buys/index.js +5 -0
  36. package/lib/cjs/models/entities/cashs/index.d.ts +7 -0
  37. package/lib/cjs/models/entities/cashs/index.js +2 -0
  38. package/lib/cjs/models/entities/comptas/index.d.ts +9 -0
  39. package/lib/cjs/models/entities/comptas/index.js +2 -0
  40. package/lib/cjs/models/entities/docs/index.d.ts +7 -0
  41. package/lib/cjs/models/entities/docs/index.js +2 -0
  42. package/lib/cjs/models/entities/mails/index.d.ts +5 -0
  43. package/lib/cjs/models/entities/mails/index.js +2 -0
  44. package/lib/cjs/models/entities/products/index.d.ts +26 -0
  45. package/lib/cjs/models/entities/products/index.js +5 -0
  46. package/lib/cjs/models/entities/sales/index.d.ts +13 -0
  47. package/lib/cjs/models/entities/sales/index.js +15 -0
  48. package/lib/cjs/models/entities/users/UserNotatial.d.ts +2 -2
  49. package/lib/cjs/models/entities/users/index.d.ts +2 -1
  50. package/lib/cjs/models/entities/utilities/index.d.ts +4 -0
  51. package/lib/cjs/models/entities/utilities/index.js +7 -0
  52. package/lib/cjs/models/entities/world/index.d.ts +7 -0
  53. package/lib/cjs/models/entities/world/index.js +9 -0
  54. package/lib/cjs/models/index.d.ts +13 -84
  55. package/lib/cjs/models/index.js +27 -33
  56. package/lib/esm/core/estates/hlpEstate.d.ts +10 -0
  57. package/lib/esm/core/estates/hlpEstate.js +32 -0
  58. package/lib/esm/core/estates/index.d.ts +5 -0
  59. package/lib/esm/core/estates/index.js +5 -0
  60. package/lib/esm/core/estates/models/Estate.d.ts +24 -0
  61. package/lib/esm/{models/types/MenuItemType.js → core/estates/models/Estate.js} +0 -0
  62. package/lib/esm/core/estates/models/EstateAsset.d.ts +7 -0
  63. package/lib/esm/core/estates/models/EstateAsset.js +1 -0
  64. package/lib/esm/core/estates/models/EstateCat.d.ts +3 -0
  65. package/lib/esm/core/estates/models/EstateCat.js +1 -0
  66. package/lib/esm/core/estates/models/EstateElt.d.ts +3 -0
  67. package/lib/esm/core/estates/models/EstateElt.js +1 -0
  68. package/lib/esm/core/estates/models/EstateLevel.d.ts +3 -0
  69. package/lib/esm/core/estates/models/EstateLevel.js +1 -0
  70. package/lib/esm/core/estates/models/EstatePor.d.ts +3 -0
  71. package/lib/esm/core/estates/models/EstatePor.js +1 -0
  72. package/lib/esm/core/estates/models/Housing.d.ts +17 -0
  73. package/lib/esm/core/estates/models/Housing.js +1 -0
  74. package/lib/esm/core/estates/models/HousingRented.d.ts +15 -0
  75. package/lib/esm/core/estates/models/HousingRented.js +1 -0
  76. package/lib/esm/core/estates/models/index.d.ts +9 -0
  77. package/lib/esm/core/estates/models/index.js +1 -0
  78. package/lib/esm/core/estates/pipes/estate-pipe.d.ts +6 -0
  79. package/lib/esm/core/estates/pipes/estate-pipe.js +12 -0
  80. package/lib/esm/core/estates/pipes/list-estate-pipe.d.ts +6 -0
  81. package/lib/esm/core/estates/pipes/list-estate-pipe.js +12 -0
  82. package/lib/esm/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
  83. package/lib/esm/index.d.ts +1 -4
  84. package/lib/esm/index.js +3 -5
  85. package/lib/esm/models/entities/auth/index.d.ts +3 -0
  86. package/lib/esm/models/entities/auth/index.js +1 -0
  87. package/lib/esm/models/entities/bills/index.d.ts +8 -0
  88. package/lib/esm/models/entities/bills/index.js +4 -0
  89. package/lib/esm/models/entities/buys/index.d.ts +5 -0
  90. package/lib/esm/models/entities/buys/index.js +2 -0
  91. package/lib/esm/models/entities/cashs/index.d.ts +7 -0
  92. package/lib/esm/models/entities/cashs/index.js +1 -0
  93. package/lib/esm/models/entities/comptas/index.d.ts +9 -0
  94. package/lib/esm/models/entities/comptas/index.js +1 -0
  95. package/lib/esm/models/entities/docs/index.d.ts +7 -0
  96. package/lib/esm/models/entities/docs/index.js +1 -0
  97. package/lib/esm/models/entities/mails/index.d.ts +5 -0
  98. package/lib/esm/models/entities/mails/index.js +1 -0
  99. package/lib/esm/models/entities/products/index.d.ts +26 -0
  100. package/lib/esm/models/entities/products/index.js +2 -0
  101. package/lib/esm/models/entities/sales/index.d.ts +13 -0
  102. package/lib/esm/models/entities/sales/index.js +7 -0
  103. package/lib/esm/models/entities/users/UserNotatial.d.ts +2 -2
  104. package/lib/esm/models/entities/users/index.d.ts +2 -1
  105. package/lib/esm/models/entities/users/index.js +1 -1
  106. package/lib/esm/models/entities/utilities/index.d.ts +4 -0
  107. package/lib/esm/models/entities/utilities/index.js +3 -0
  108. package/lib/esm/models/entities/world/index.d.ts +7 -0
  109. package/lib/esm/models/entities/world/index.js +4 -0
  110. package/lib/esm/models/index.d.ts +13 -84
  111. package/lib/esm/models/index.js +13 -21
  112. package/package.json +1 -1
  113. package/lib/cjs/helpers/hlpProduct2.d.ts +0 -1
  114. package/lib/cjs/helpers/hlpProduct2.js +0 -130
  115. package/lib/cjs/models/types/MenuItemType.d.ts +0 -14
  116. package/lib/esm/helpers/hlpProduct2.d.ts +0 -1
  117. package/lib/esm/helpers/hlpProduct2.js +0 -126
  118. 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 { AuthTag, AuthTagCat, Docu, DocuCat, Faq, FaqCat, Memo, MemoCat, NaAc, NaCoAc, NaCoShortAc, Buy, BuyCart, BuyItem, BuyItems, Mail, MailMass, MsgAlert, MsgChat, Account, Bank, Currency, Deposit, Feed, Spent, Entry, EntryAccount, EntryCat, EntryLine, OhadaCat, OhadaGrp, OhadaPlan, OhadaSubCat, CartItem, DelideryProcess, Sale, SaleDelivery, SaleInfo, SaleItems, SaleProduct, SaleProductLot, SaleProductQtityIssue, SaleShop, SaleTreatStatus, ShopCart, 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, Bill, BillLine, BillPayment, BillPaymentMethod, CBillPeriod, EBillPeriod, EPayMethod, Todo, Vehicle, Wish, City, Continent, Country, Department, Quarter, Region, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormProps, };
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 };
@@ -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 = exports.Region = exports.Continent = exports.City = exports.Wish = exports.Todo = exports.EPayMethod = exports.EBillPeriod = exports.CBillPeriod = exports.ProductPromo = exports.ShopCart = exports.SaleTreatStatus = exports.SaleShop = exports.SaleProductLot = exports.SaleProduct = exports.SaleItems = exports.BuyItems = void 0;
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,5 @@
1
+ import HlpEstate from "./hlpEstate";
2
+ import EstatePipe from "./pipes/estate-pipe";
3
+ import ListEstatePipe from "./pipes/estate-pipe";
4
+ export * from "../estates/models/index";
5
+ export { HlpEstate, EstatePipe, ListEstatePipe };
@@ -0,0 +1,5 @@
1
+ import HlpEstate from "./hlpEstate";
2
+ import EstatePipe from "./pipes/estate-pipe";
3
+ import ListEstatePipe from "./pipes/estate-pipe";
4
+ export * from "../estates/models/index";
5
+ export { HlpEstate, EstatePipe, ListEstatePipe };
@@ -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,7 @@
1
+ export interface EstateAsset {
2
+ id: number;
3
+ name: string;
4
+ elt: string;
5
+ qtity: number;
6
+ size: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { NaCoAc } from "../../../models/shared/NaCoAc";
2
+ export interface EstateCat extends NaCoAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { NaCoAc } from "../../../models/shared/NaCoAc";
2
+ export interface EstateElt extends NaCoAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { NaCoAc } from "../../../models/shared/NaCoAc";
2
+ export interface EstateLevel extends NaCoAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { NaCoAc } from "../../../models/shared/NaCoAc";
2
+ export interface EstatePor extends NaCoAc {
3
+ }
@@ -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,6 @@
1
+ import { Estate } from "../models/Estate";
2
+ declare class EstatePipe {
3
+ transform(estate: Estate, params: "housings" | "lodgers"): number;
4
+ }
5
+ declare const _default: EstatePipe;
6
+ export default _default;
@@ -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,6 @@
1
+ import { Estate } from "../models/Estate";
2
+ declare class ListEstatePipe {
3
+ transform(estates: Estate[], params: "housings" | "lodgers"): number;
4
+ }
5
+ declare const _default: ListEstatePipe;
6
+ export default _default;
@@ -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();
@@ -1,4 +1,4 @@
1
- import { Bill } from "../../models";
1
+ import { Bill } from "../../models/entities/bills/Bill";
2
2
  declare class AmountOnBillPipe {
3
3
  transform(bill: Bill): number;
4
4
  }
@@ -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,3 @@
1
+ import { AuthTag } from "./AuthTag";
2
+ import { AuthTagCat } from "./AuthTagCat";
3
+ export { AuthTag, AuthTagCat };
@@ -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,4 @@
1
+ import { CBillPeriod } from "./CBillPeriod";
2
+ import { EBillPeriod } from "./EBillPeriod";
3
+ import { EPayMethod } from "./EPayMethod";
4
+ export { CBillPeriod, EBillPeriod, EPayMethod };
@@ -0,0 +1,5 @@
1
+ import { Buy } from "./Buy";
2
+ import { BuyCart } from "./BuyCart";
3
+ import { BuyItem } from "./BuyItem";
4
+ import { BuyItems } from "./BuyItems";
5
+ export { Buy, BuyCart, BuyItem, BuyItems };
@@ -0,0 +1,2 @@
1
+ import { BuyItems } from "./BuyItems";
2
+ export { BuyItems };
@@ -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,7 @@
1
+ import { Docu } from "./Docu";
2
+ import { DocuCat } from "./DocuCat";
3
+ import { Faq } from "./Faq";
4
+ import { FaqCat } from "./FaqCat";
5
+ import { Memo } from "./Memo";
6
+ import { MemoCat } from "./MemoCat";
7
+ export { Docu, DocuCat, Faq, FaqCat, Memo, MemoCat };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { Mail } from "./Mail";
2
+ import { MailMass } from "./MailMass";
3
+ import { MsgAlert } from "./MsgAlert";
4
+ import { MsgChat } from "./MsgChat";
5
+ export { Mail, MailMass, MsgAlert, MsgChat };
@@ -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,2 @@
1
+ import { ProductPromo } from "./ProductPromo";
2
+ export { ProductPromo, };
@@ -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 "../estates/Estate";
2
- import { Housing } from "../estates/Housing";
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[];