asv-hlps 1.2.17 → 1.2.18

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 (64) hide show
  1. package/lib/cjs/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
  2. package/lib/cjs/index.d.ts +12 -3
  3. package/lib/cjs/index.js +14 -4
  4. package/lib/cjs/models/entities/auth/index.d.ts +3 -0
  5. package/lib/cjs/models/{types/MenuItemType.js → entities/auth/index.js} +0 -0
  6. package/lib/cjs/models/entities/bills/index.d.ts +8 -0
  7. package/lib/cjs/models/entities/bills/index.js +9 -0
  8. package/lib/cjs/models/entities/buys/index.d.ts +5 -0
  9. package/lib/cjs/models/entities/buys/index.js +5 -0
  10. package/lib/cjs/models/entities/cashs/index.d.ts +7 -0
  11. package/lib/cjs/models/entities/cashs/index.js +2 -0
  12. package/lib/cjs/models/entities/comptas/index.d.ts +9 -0
  13. package/lib/cjs/models/entities/comptas/index.js +2 -0
  14. package/lib/cjs/models/entities/docs/index.d.ts +7 -0
  15. package/lib/cjs/models/entities/docs/index.js +2 -0
  16. package/lib/cjs/models/entities/mails/index.d.ts +5 -0
  17. package/lib/cjs/models/entities/mails/index.js +2 -0
  18. package/lib/cjs/models/entities/products/index.d.ts +26 -0
  19. package/lib/cjs/models/entities/products/index.js +5 -0
  20. package/lib/cjs/models/entities/sales/index.d.ts +13 -0
  21. package/lib/cjs/models/entities/sales/index.js +15 -0
  22. package/lib/cjs/models/entities/users/index.d.ts +2 -1
  23. package/lib/cjs/models/entities/utilities/index.d.ts +4 -0
  24. package/lib/cjs/models/entities/utilities/index.js +7 -0
  25. package/lib/cjs/models/entities/world/index.d.ts +7 -0
  26. package/lib/cjs/models/entities/world/index.js +9 -0
  27. package/lib/cjs/models/index.d.ts +1 -84
  28. package/lib/cjs/models/index.js +1 -33
  29. package/lib/esm/helpers/pipes/amount-on-bill-pipe.d.ts +1 -1
  30. package/lib/esm/index.d.ts +12 -3
  31. package/lib/esm/index.js +14 -4
  32. package/lib/esm/models/entities/auth/index.d.ts +3 -0
  33. package/lib/esm/models/{types/MenuItemType.js → entities/auth/index.js} +0 -0
  34. package/lib/esm/models/entities/bills/index.d.ts +8 -0
  35. package/lib/esm/models/entities/bills/index.js +4 -0
  36. package/lib/esm/models/entities/buys/index.d.ts +5 -0
  37. package/lib/esm/models/entities/buys/index.js +2 -0
  38. package/lib/esm/models/entities/cashs/index.d.ts +7 -0
  39. package/lib/esm/models/entities/cashs/index.js +1 -0
  40. package/lib/esm/models/entities/comptas/index.d.ts +9 -0
  41. package/lib/esm/models/entities/comptas/index.js +1 -0
  42. package/lib/esm/models/entities/docs/index.d.ts +7 -0
  43. package/lib/esm/models/entities/docs/index.js +1 -0
  44. package/lib/esm/models/entities/mails/index.d.ts +5 -0
  45. package/lib/esm/models/entities/mails/index.js +1 -0
  46. package/lib/esm/models/entities/products/index.d.ts +26 -0
  47. package/lib/esm/models/entities/products/index.js +2 -0
  48. package/lib/esm/models/entities/sales/index.d.ts +13 -0
  49. package/lib/esm/models/entities/sales/index.js +7 -0
  50. package/lib/esm/models/entities/users/index.d.ts +2 -1
  51. package/lib/esm/models/entities/users/index.js +1 -1
  52. package/lib/esm/models/entities/utilities/index.d.ts +4 -0
  53. package/lib/esm/models/entities/utilities/index.js +3 -0
  54. package/lib/esm/models/entities/world/index.d.ts +7 -0
  55. package/lib/esm/models/entities/world/index.js +4 -0
  56. package/lib/esm/models/index.d.ts +1 -84
  57. package/lib/esm/models/index.js +1 -21
  58. package/package.json +1 -1
  59. package/lib/cjs/helpers/hlpProduct2.d.ts +0 -1
  60. package/lib/cjs/helpers/hlpProduct2.js +0 -130
  61. package/lib/cjs/models/types/MenuItemType.d.ts +0 -14
  62. package/lib/esm/helpers/hlpProduct2.d.ts +0 -1
  63. package/lib/esm/helpers/hlpProduct2.js +0 -126
  64. package/lib/esm/models/types/MenuItemType.d.ts +0 -14
@@ -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,19 @@ import "./utils";
24
22
  export * from "./auth";
25
23
  export * from "./bill";
26
24
  export * from "./bootstrap";
25
+ export * from "./models/entities/bills/index";
26
+ export * from "./models/entities/buys/index";
27
+ export * from "./models/entities/comptas/index";
27
28
  export * from "./models/entities/estates/index";
28
- export * from "./models/entities/users";
29
+ export * from "./models/entities/sales/index";
30
+ export * from "./models/entities/users/index";
31
+ export * from "./models/entities/world/index";
32
+ export * from "./models/entities/cashs/index";
33
+ export * from "./models/entities/auth/index";
34
+ export * from "./models/entities/docs/index";
35
+ export * from "./models/entities/mails/index";
36
+ export * from "./models/entities/products/index";
37
+ export * from "./models/entities/utilities/index";
29
38
  export * from "./models/index";
30
39
  export * from "./pdfs/invoices/amountInvoice";
31
40
  export * from "./pdfs/invoices/infoInvoice";
package/lib/cjs/index.js CHANGED
@@ -35,9 +35,9 @@ exports.StorageService = storageService_1.default;
35
35
  require("./auth");
36
36
  require("./bill");
37
37
  require("./bootstrap");
38
- require("./models/entities/estates/index");
38
+ // import "./models/entities/estates/index";
39
+ // import "./models/entities/users";
39
40
  // import "./models/entities/users/index";
40
- require("./models/entities/users");
41
41
  require("./models/index");
42
42
  require("./pdfs/invoices/amountInvoice");
43
43
  require("./pdfs/invoices/infoInvoice");
@@ -52,9 +52,19 @@ require("./utils");
52
52
  __exportStar(require("./auth"), exports);
53
53
  __exportStar(require("./bill"), exports);
54
54
  __exportStar(require("./bootstrap"), exports);
55
+ __exportStar(require("./models/entities/bills/index"), exports);
56
+ __exportStar(require("./models/entities/buys/index"), exports);
57
+ __exportStar(require("./models/entities/comptas/index"), exports);
55
58
  __exportStar(require("./models/entities/estates/index"), exports);
56
- // export * from "./models/entities/users/index";
57
- __exportStar(require("./models/entities/users"), exports);
59
+ __exportStar(require("./models/entities/sales/index"), exports);
60
+ __exportStar(require("./models/entities/users/index"), exports);
61
+ __exportStar(require("./models/entities/world/index"), exports);
62
+ __exportStar(require("./models/entities/cashs/index"), exports);
63
+ __exportStar(require("./models/entities/auth/index"), exports);
64
+ __exportStar(require("./models/entities/docs/index"), exports);
65
+ __exportStar(require("./models/entities/mails/index"), exports);
66
+ __exportStar(require("./models/entities/products/index"), exports);
67
+ __exportStar(require("./models/entities/utilities/index"), exports);
58
68
  __exportStar(require("./models/index"), exports);
59
69
  __exportStar(require("./pdfs/invoices/amountInvoice"), exports);
60
70
  __exportStar(require("./pdfs/invoices/infoInvoice"), exports);
@@ -0,0 +1,3 @@
1
+ import { AuthTag } from "./AuthTag";
2
+ import { AuthTagCat } from "./AuthTagCat";
3
+ export { AuthTag, AuthTagCat };
@@ -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,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayMethod = exports.EBillPeriod = exports.CBillPeriod = void 0;
4
+ const CBillPeriod_1 = require("./CBillPeriod");
5
+ Object.defineProperty(exports, "CBillPeriod", { enumerable: true, get: function () { return CBillPeriod_1.CBillPeriod; } });
6
+ const EBillPeriod_1 = require("./EBillPeriod");
7
+ Object.defineProperty(exports, "EBillPeriod", { enumerable: true, get: function () { return EBillPeriod_1.EBillPeriod; } });
8
+ const EPayMethod_1 = require("./EPayMethod");
9
+ Object.defineProperty(exports, "EPayMethod", { enumerable: true, get: function () { return EPayMethod_1.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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuyItems = void 0;
4
+ const BuyItems_1 = require("./BuyItems");
5
+ Object.defineProperty(exports, "BuyItems", { enumerable: true, get: function () { return BuyItems_1.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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductPromo = void 0;
4
+ const ProductPromo_1 = require("./ProductPromo");
5
+ Object.defineProperty(exports, "ProductPromo", { enumerable: true, get: function () { return ProductPromo_1.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,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShopCart = exports.SaleTreatStatus = exports.SaleShop = exports.SaleProductLot = exports.SaleProduct = exports.SaleItems = void 0;
4
+ const SaleTreatStatus_1 = require("./enums/SaleTreatStatus");
5
+ Object.defineProperty(exports, "SaleTreatStatus", { enumerable: true, get: function () { return SaleTreatStatus_1.SaleTreatStatus; } });
6
+ const SaleItems_1 = require("./SaleItems");
7
+ Object.defineProperty(exports, "SaleItems", { enumerable: true, get: function () { return SaleItems_1.SaleItems; } });
8
+ const SaleProduct_1 = require("./SaleProduct");
9
+ Object.defineProperty(exports, "SaleProduct", { enumerable: true, get: function () { return SaleProduct_1.SaleProduct; } });
10
+ const SaleProductLot_1 = require("./SaleProductLot");
11
+ Object.defineProperty(exports, "SaleProductLot", { enumerable: true, get: function () { return SaleProductLot_1.SaleProductLot; } });
12
+ const SaleShop_1 = require("./SaleShop");
13
+ Object.defineProperty(exports, "SaleShop", { enumerable: true, get: function () { return SaleShop_1.SaleShop; } });
14
+ const ShopCart_1 = require("./ShopCart");
15
+ Object.defineProperty(exports, "ShopCart", { enumerable: true, get: function () { return ShopCart_1.ShopCart; } });
@@ -7,9 +7,10 @@ import { SteGrp } from "./SteGrp";
7
7
  import { User } from "./User";
8
8
  import { UserCredit } from "./UserCredit";
9
9
  import { UserGrp } from "./UserGrp";
10
+ import { UserNotarial } from "./UserNotatial";
10
11
  import { UserNote } from "./UserNote";
11
12
  import { UserOnline } from "./UserOnline";
12
13
  import { UserRole } from "./UserRole";
13
14
  import { UserTitr } from "./UserTitr";
14
15
  import { Zone } from "./Zone";
15
- export { Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone };
16
+ export { UserNotarial, Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone, };
@@ -0,0 +1,4 @@
1
+ import { Todo } from "./Todo";
2
+ import { Vehicle } from "./Vehicle";
3
+ import { Wish } from "./Wish";
4
+ export { Todo, Vehicle, Wish };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Wish = exports.Todo = void 0;
4
+ const Todo_1 = require("./Todo");
5
+ Object.defineProperty(exports, "Todo", { enumerable: true, get: function () { return Todo_1.Todo; } });
6
+ const Wish_1 = require("./Wish");
7
+ Object.defineProperty(exports, "Wish", { enumerable: true, get: function () { return Wish_1.Wish; } });
@@ -0,0 +1,7 @@
1
+ import { City } from "./City";
2
+ import { Continent } from "./Continent";
3
+ import { Country } from "./Country";
4
+ import { Department } from "./Department";
5
+ import { Quarter } from "./Quarter";
6
+ import { Region } from "./Region";
7
+ export { City, Continent, Country, Department, Quarter, Region };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Region = exports.Continent = exports.City = void 0;
4
+ const City_1 = require("./City");
5
+ Object.defineProperty(exports, "City", { enumerable: true, get: function () { return City_1.City; } });
6
+ const Continent_1 = require("./Continent");
7
+ Object.defineProperty(exports, "Continent", { enumerable: true, get: function () { return Continent_1.Continent; } });
8
+ const Region_1 = require("./Region");
9
+ Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return Region_1.Region; } });
@@ -1,88 +1,5 @@
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 { NaAc, NaCoAc, NaCoShortAc, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormProps, };
@@ -1,38 +1,6 @@
1
1
  "use strict";
2
2
  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; } });
3
+ exports.colNaCoSh = exports.colNaCo = exports.colNa = void 0;
36
4
  const Type_1 = require("./types/Type");
37
5
  Object.defineProperty(exports, "colNa", { enumerable: true, get: function () { return Type_1.colNa; } });
38
6
  Object.defineProperty(exports, "colNaCo", { enumerable: true, get: function () { return Type_1.colNaCo; } });
@@ -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,19 @@ import "./utils";
24
22
  export * from "./auth";
25
23
  export * from "./bill";
26
24
  export * from "./bootstrap";
25
+ export * from "./models/entities/bills/index";
26
+ export * from "./models/entities/buys/index";
27
+ export * from "./models/entities/comptas/index";
27
28
  export * from "./models/entities/estates/index";
28
- export * from "./models/entities/users";
29
+ export * from "./models/entities/sales/index";
30
+ export * from "./models/entities/users/index";
31
+ export * from "./models/entities/world/index";
32
+ export * from "./models/entities/cashs/index";
33
+ export * from "./models/entities/auth/index";
34
+ export * from "./models/entities/docs/index";
35
+ export * from "./models/entities/mails/index";
36
+ export * from "./models/entities/products/index";
37
+ export * from "./models/entities/utilities/index";
29
38
  export * from "./models/index";
30
39
  export * from "./pdfs/invoices/amountInvoice";
31
40
  export * from "./pdfs/invoices/infoInvoice";
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,19 @@ import "./utils";
25
25
  export * from "./auth";
26
26
  export * from "./bill";
27
27
  export * from "./bootstrap";
28
+ export * from "./models/entities/bills/index";
29
+ export * from "./models/entities/buys/index";
30
+ export * from "./models/entities/comptas/index";
28
31
  export * from "./models/entities/estates/index";
29
- // export * from "./models/entities/users/index";
30
- export * from "./models/entities/users";
32
+ export * from "./models/entities/sales/index";
33
+ export * from "./models/entities/users/index";
34
+ export * from "./models/entities/world/index";
35
+ export * from "./models/entities/cashs/index";
36
+ export * from "./models/entities/auth/index";
37
+ export * from "./models/entities/docs/index";
38
+ export * from "./models/entities/mails/index";
39
+ export * from "./models/entities/products/index";
40
+ export * from "./models/entities/utilities/index";
31
41
  export * from "./models/index";
32
42
  export * from "./pdfs/invoices/amountInvoice";
33
43
  export * from "./pdfs/invoices/infoInvoice";
@@ -0,0 +1,3 @@
1
+ import { AuthTag } from "./AuthTag";
2
+ import { AuthTagCat } from "./AuthTagCat";
3
+ export { AuthTag, AuthTagCat };
@@ -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, };
@@ -7,9 +7,10 @@ import { SteGrp } from "./SteGrp";
7
7
  import { User } from "./User";
8
8
  import { UserCredit } from "./UserCredit";
9
9
  import { UserGrp } from "./UserGrp";
10
+ import { UserNotarial } from "./UserNotatial";
10
11
  import { UserNote } from "./UserNote";
11
12
  import { UserOnline } from "./UserOnline";
12
13
  import { UserRole } from "./UserRole";
13
14
  import { UserTitr } from "./UserTitr";
14
15
  import { Zone } from "./Zone";
15
- export { Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone };
16
+ export { UserNotarial, Address, DutyPhcie, Gender, Leave, Ste, SteGrp, User, UserCredit, UserGrp, UserNote, UserOnline, UserRole, UserTitr, Zone, };
@@ -1,2 +1,2 @@
1
1
  import { UserCredit } from "./UserCredit";
2
- export { UserCredit };
2
+ export { UserCredit, };
@@ -0,0 +1,4 @@
1
+ import { Todo } from "./Todo";
2
+ import { Vehicle } from "./Vehicle";
3
+ import { Wish } from "./Wish";
4
+ export { Todo, Vehicle, Wish };
@@ -0,0 +1,3 @@
1
+ import { Todo } from "./Todo";
2
+ import { Wish } from "./Wish";
3
+ export { Todo, Wish };
@@ -0,0 +1,7 @@
1
+ import { City } from "./City";
2
+ import { Continent } from "./Continent";
3
+ import { Country } from "./Country";
4
+ import { Department } from "./Department";
5
+ import { Quarter } from "./Quarter";
6
+ import { Region } from "./Region";
7
+ export { City, Continent, Country, Department, Quarter, Region };
@@ -0,0 +1,4 @@
1
+ import { City } from "./City";
2
+ import { Continent } from "./Continent";
3
+ import { Region } from "./Region";
4
+ export { City, Continent, Region };
@@ -1,88 +1,5 @@
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 { NaAc, NaCoAc, NaCoShortAc, MenuItemType, HeaderTableColumnType, IPath, colNa, colNaCo, colNaCoSh, FormProps, };
@@ -1,22 +1,2 @@
1
- import { CBillPeriod } from "./entities/bills/CBillPeriod";
2
- import { EBillPeriod } from "./entities/bills/EBillPeriod";
3
- import { EPayMethod } from "./entities/bills/EPayMethod";
4
- import { BuyItems } from "./entities/buys/BuyItems";
5
- import { ProductPromo } from "./entities/products/ProductPromo";
6
- import { SaleTreatStatus } from "./entities/sales/enums/SaleTreatStatus";
7
- import { SaleItems } from "./entities/sales/SaleItems";
8
- import { SaleProduct } from "./entities/sales/SaleProduct";
9
- import { SaleProductLot } from "./entities/sales/SaleProductLot";
10
- import { SaleShop } from "./entities/sales/SaleShop";
11
- import { ShopCart } from "./entities/sales/ShopCart";
12
- import { Todo } from "./entities/utilities/Todo";
13
- import { Wish } from "./entities/utilities/Wish";
14
- import { City } from "./entities/world/City";
15
- import { Continent } from "./entities/world/Continent";
16
- import { Region } from "./entities/world/Region";
17
1
  import { colNa, colNaCo, colNaCoSh } from "./types/Type";
18
- export { BuyItems, SaleItems, SaleProduct, SaleProductLot, SaleShop, SaleTreatStatus, ShopCart, ProductPromo, CBillPeriod, EBillPeriod, EPayMethod,
19
- // ------ utilities ------
20
- Todo, Wish,
21
- // ------ world ------
22
- City, Continent, Region, colNa, colNaCo, colNaCoSh, };
2
+ export { colNa, colNaCo, colNaCoSh, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.2.17",
3
+ "version": "1.2.18",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -1 +0,0 @@
1
- export declare const HlpProduct: () => void;
@@ -1,130 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HlpProduct = void 0;
4
- const HlpProduct = () => {
5
- const productCatCode = (product, catCodes) => {
6
- return catCodes.includes(product.cat.code && product.cat.code.toLowerCase());
7
- };
8
- const qtityInAllDepots = (ins) => {
9
- return getQtitiesInDepots(ins);
10
- /* if (!ins.length) {return 0; }
11
-
12
- ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== 'arrivage');
13
- return ins.reduce((prev, curr: ProductIn) => {
14
- return +prev + (+curr.qtity);
15
- }, 0); */
16
- };
17
- const stockValueInDepots = (product, exceptDepots = []) => {
18
- if (!product.ins.length) {
19
- return 0;
20
- }
21
- let ins = product.ins;
22
- ins = ins.filter((x) => x.depot && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
23
- return ins.reduce((prev, curr) => {
24
- var _a;
25
- // return +prev + (+curr.qtity * (+product.stores?.pghtPrice || 0));
26
- return +prev + +curr.qtity * (+((_a = product.stores[0]) === null || _a === void 0 ? void 0 : _a.pghtPrice) || 0);
27
- }, 0);
28
- // return formatToString(Math.floor(value: string | number));
29
- };
30
- const getQtitiesInDepots = (ins, exceptDepots = []) => {
31
- if (!ins.length) {
32
- return 0;
33
- }
34
- ins = ins.filter((x) => x.depot && x.depot.hasViewStock && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
35
- // ins = ins.filter(x => x.depot && x.depot.hasViewStock);
36
- return ins.reduce((prev, curr) => {
37
- return +prev + +curr.qtity;
38
- }, 0);
39
- };
40
- const qtityInAllDepotsExeptStore = (ins, stores) => {
41
- return getQtitiesInDepots(ins, stores);
42
- /* if (!ins?.length) {return 0; }
43
-
44
- ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== storeName && x.depot.name.toLocaleLowerCase() !== 'arrivage');
45
- return ins.reduce((prev, curr: ProductIn) => {
46
- return prev + (+curr.qtity);
47
- }, 0); */
48
- };
49
- const getStockSalable = (product) => {
50
- const stockAllSalable = qtityInAllDepots(product.ins) - (+product.stores[0].stockReserved || 0);
51
- const stockStore = getStockStore(product);
52
- let stockSalable = 0;
53
- if (sessionStorage.getItem("isProforma") === "isProforma") {
54
- stockSalable = stockAllSalable;
55
- }
56
- else {
57
- if (stockAllSalable <= stockStore) {
58
- stockSalable = stockAllSalable;
59
- }
60
- if (stockAllSalable > stockStore) {
61
- stockSalable = stockStore;
62
- }
63
- }
64
- return stockSalable || 0;
65
- };
66
- // ------ sort product stock ------
67
- const onSortStock = (sortStock, filteredProducts) => {
68
- // sortStock = !sortStock;
69
- filteredProducts.sort((a, b) => {
70
- // const keyA = a.stock;
71
- const keyA = getStockStore(a);
72
- // const keyB = b.stock;
73
- const keyB = getStockStore(b);
74
- return sortStock ? keyB - keyA : keyA - keyB;
75
- });
76
- };
77
- // product|stock:'store'
78
- // ------ sort cession price ------
79
- const onSortPc = (sortPc, filteredProducts) => {
80
- // sortPc = !sortPc;
81
- filteredProducts.sort((a, b) => {
82
- const keyA = a.stores[0].salePrice;
83
- const keyB = b.stores[0].salePrice;
84
- return sortPc ? keyB - keyA : keyA - keyB;
85
- });
86
- };
87
- const onSortPght = (sortPght, filteredProducts) => {
88
- // this.sortPght = !this.sortPght;
89
- filteredProducts.sort((a, b) => {
90
- const keyA = a.stores[0].pghtPrice;
91
- const keyB = b.stores[0].pghtPrice;
92
- return sortPght ? keyB - keyA : keyA - keyB;
93
- });
94
- };
95
- const sortDesignation = (sortDesignation, filteredProducts) => {
96
- // this.sortDesignation = !this.sortDesignation;
97
- filteredProducts.sort((a, b) => {
98
- return sortDesignation ? b.designation.localeCompare(a.designation) : a.designation.localeCompare(b.designation);
99
- });
100
- };
101
- const getStockStore = (product) => {
102
- let stock = 0;
103
- if (product === null || product === void 0 ? void 0 : product.ins) {
104
- for (const pdtIn of product === null || product === void 0 ? void 0 : product.ins) {
105
- // if(pdtIn.depot.name.toLocaleLowerCase() === environment.host.toLocaleLowerCase()) {
106
- if (pdtIn.depot.main === "master") {
107
- stock += pdtIn.qtity;
108
- }
109
- }
110
- }
111
- // return stock - (+product.stores[0].stockReserved|| 0)
112
- return stock;
113
- // if(!product.ins.length) {return 0}
114
- /* return product.ins.reduce((prev, curr: ProductIn) => {
115
- return prev + +curr.qtity
116
- }, 0) */
117
- };
118
- /* getLotsToString(ins: ProductIn[]) {
119
- let lots: string[] = [];
120
- for (const pdtIn of ins) {
121
- if (pdtIn.lot) {
122
- lots.push(pdtIn.lot + " =>" + moment(pdtIn.expirationDate).format("DD/MM/YYYY"));
123
- }
124
- }
125
- return [...new Set(lots)];
126
- } */
127
- };
128
- exports.HlpProduct = HlpProduct;
129
- // export default new HlpProduct();
130
- // export default { qtityInAllDepots };
@@ -1,14 +0,0 @@
1
- export interface MenuItemType {
2
- key: string;
3
- label: string;
4
- isTitle?: boolean;
5
- icon?: string;
6
- url?: string;
7
- badge?: {
8
- variant: string;
9
- text: string;
10
- };
11
- parentKey?: string;
12
- target?: string;
13
- children?: MenuItemType[];
14
- }
@@ -1 +0,0 @@
1
- export declare const HlpProduct: () => void;
@@ -1,126 +0,0 @@
1
- export const HlpProduct = () => {
2
- const productCatCode = (product, catCodes) => {
3
- return catCodes.includes(product.cat.code && product.cat.code.toLowerCase());
4
- };
5
- const qtityInAllDepots = (ins) => {
6
- return getQtitiesInDepots(ins);
7
- /* if (!ins.length) {return 0; }
8
-
9
- ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== 'arrivage');
10
- return ins.reduce((prev, curr: ProductIn) => {
11
- return +prev + (+curr.qtity);
12
- }, 0); */
13
- };
14
- const stockValueInDepots = (product, exceptDepots = []) => {
15
- if (!product.ins.length) {
16
- return 0;
17
- }
18
- let ins = product.ins;
19
- ins = ins.filter((x) => x.depot && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
20
- return ins.reduce((prev, curr) => {
21
- var _a;
22
- // return +prev + (+curr.qtity * (+product.stores?.pghtPrice || 0));
23
- return +prev + +curr.qtity * (+((_a = product.stores[0]) === null || _a === void 0 ? void 0 : _a.pghtPrice) || 0);
24
- }, 0);
25
- // return formatToString(Math.floor(value: string | number));
26
- };
27
- const getQtitiesInDepots = (ins, exceptDepots = []) => {
28
- if (!ins.length) {
29
- return 0;
30
- }
31
- ins = ins.filter((x) => x.depot && x.depot.hasViewStock && !["arrivage", ...exceptDepots].includes(x.depot.name.toLocaleLowerCase()));
32
- // ins = ins.filter(x => x.depot && x.depot.hasViewStock);
33
- return ins.reduce((prev, curr) => {
34
- return +prev + +curr.qtity;
35
- }, 0);
36
- };
37
- const qtityInAllDepotsExeptStore = (ins, stores) => {
38
- return getQtitiesInDepots(ins, stores);
39
- /* if (!ins?.length) {return 0; }
40
-
41
- ins = ins.filter( x => x.depot && x.depot.name.toLocaleLowerCase() !== storeName && x.depot.name.toLocaleLowerCase() !== 'arrivage');
42
- return ins.reduce((prev, curr: ProductIn) => {
43
- return prev + (+curr.qtity);
44
- }, 0); */
45
- };
46
- const getStockSalable = (product) => {
47
- const stockAllSalable = qtityInAllDepots(product.ins) - (+product.stores[0].stockReserved || 0);
48
- const stockStore = getStockStore(product);
49
- let stockSalable = 0;
50
- if (sessionStorage.getItem("isProforma") === "isProforma") {
51
- stockSalable = stockAllSalable;
52
- }
53
- else {
54
- if (stockAllSalable <= stockStore) {
55
- stockSalable = stockAllSalable;
56
- }
57
- if (stockAllSalable > stockStore) {
58
- stockSalable = stockStore;
59
- }
60
- }
61
- return stockSalable || 0;
62
- };
63
- // ------ sort product stock ------
64
- const onSortStock = (sortStock, filteredProducts) => {
65
- // sortStock = !sortStock;
66
- filteredProducts.sort((a, b) => {
67
- // const keyA = a.stock;
68
- const keyA = getStockStore(a);
69
- // const keyB = b.stock;
70
- const keyB = getStockStore(b);
71
- return sortStock ? keyB - keyA : keyA - keyB;
72
- });
73
- };
74
- // product|stock:'store'
75
- // ------ sort cession price ------
76
- const onSortPc = (sortPc, filteredProducts) => {
77
- // sortPc = !sortPc;
78
- filteredProducts.sort((a, b) => {
79
- const keyA = a.stores[0].salePrice;
80
- const keyB = b.stores[0].salePrice;
81
- return sortPc ? keyB - keyA : keyA - keyB;
82
- });
83
- };
84
- const onSortPght = (sortPght, filteredProducts) => {
85
- // this.sortPght = !this.sortPght;
86
- filteredProducts.sort((a, b) => {
87
- const keyA = a.stores[0].pghtPrice;
88
- const keyB = b.stores[0].pghtPrice;
89
- return sortPght ? keyB - keyA : keyA - keyB;
90
- });
91
- };
92
- const sortDesignation = (sortDesignation, filteredProducts) => {
93
- // this.sortDesignation = !this.sortDesignation;
94
- filteredProducts.sort((a, b) => {
95
- return sortDesignation ? b.designation.localeCompare(a.designation) : a.designation.localeCompare(b.designation);
96
- });
97
- };
98
- const getStockStore = (product) => {
99
- let stock = 0;
100
- if (product === null || product === void 0 ? void 0 : product.ins) {
101
- for (const pdtIn of product === null || product === void 0 ? void 0 : product.ins) {
102
- // if(pdtIn.depot.name.toLocaleLowerCase() === environment.host.toLocaleLowerCase()) {
103
- if (pdtIn.depot.main === "master") {
104
- stock += pdtIn.qtity;
105
- }
106
- }
107
- }
108
- // return stock - (+product.stores[0].stockReserved|| 0)
109
- return stock;
110
- // if(!product.ins.length) {return 0}
111
- /* return product.ins.reduce((prev, curr: ProductIn) => {
112
- return prev + +curr.qtity
113
- }, 0) */
114
- };
115
- /* getLotsToString(ins: ProductIn[]) {
116
- let lots: string[] = [];
117
- for (const pdtIn of ins) {
118
- if (pdtIn.lot) {
119
- lots.push(pdtIn.lot + " =>" + moment(pdtIn.expirationDate).format("DD/MM/YYYY"));
120
- }
121
- }
122
- return [...new Set(lots)];
123
- } */
124
- };
125
- // export default new HlpProduct();
126
- // export default { qtityInAllDepots };
@@ -1,14 +0,0 @@
1
- export interface MenuItemType {
2
- key: string;
3
- label: string;
4
- isTitle?: boolean;
5
- icon?: string;
6
- url?: string;
7
- badge?: {
8
- variant: string;
9
- text: string;
10
- };
11
- parentKey?: string;
12
- target?: string;
13
- children?: MenuItemType[];
14
- }