asv-hlps 1.4.6 → 1.4.7

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 (99) hide show
  1. package/lib/cjs/markets/index.d.ts +2 -0
  2. package/lib/cjs/markets/index.js +18 -0
  3. package/lib/cjs/markets/models/Market.d.ts +8 -0
  4. package/lib/cjs/markets/models/Market.js +2 -0
  5. package/lib/cjs/markets/models/UMarket.d.ts +11 -0
  6. package/lib/cjs/markets/models/UMarket.js +2 -0
  7. package/lib/cjs/markets/models/index.d.ts +2 -0
  8. package/lib/cjs/markets/models/index.js +18 -0
  9. package/lib/cjs/markets/products/models/Product.d.ts +39 -0
  10. package/lib/cjs/markets/products/models/Product.js +2 -0
  11. package/lib/cjs/markets/products/models/ProductAsset.d.ts +8 -0
  12. package/lib/cjs/markets/products/models/ProductAsset.js +2 -0
  13. package/lib/cjs/markets/products/models/ProductCat.d.ts +3 -0
  14. package/lib/cjs/markets/products/models/ProductCat.js +2 -0
  15. package/lib/cjs/markets/products/models/ProductCollection.d.ts +3 -0
  16. package/lib/cjs/markets/products/models/ProductCollection.js +2 -0
  17. package/lib/cjs/markets/products/models/ProductDepot.d.ts +11 -0
  18. package/lib/cjs/markets/products/models/ProductDepot.js +2 -0
  19. package/lib/cjs/markets/products/models/ProductElt.d.ts +3 -0
  20. package/lib/cjs/markets/products/models/ProductElt.js +2 -0
  21. package/lib/cjs/markets/products/models/ProductGrp.d.ts +3 -0
  22. package/lib/cjs/markets/products/models/ProductGrp.js +2 -0
  23. package/lib/cjs/markets/products/models/ProductImage.d.ts +4 -0
  24. package/lib/cjs/markets/products/models/ProductImage.js +6 -0
  25. package/lib/cjs/markets/products/models/ProductIn.d.ts +42 -0
  26. package/lib/cjs/markets/products/models/ProductIn.js +6 -0
  27. package/lib/cjs/markets/products/models/ProductState.d.ts +3 -0
  28. package/lib/cjs/markets/products/models/ProductState.js +2 -0
  29. package/lib/cjs/markets/products/models/ProductStock.d.ts +6 -0
  30. package/lib/cjs/markets/products/models/ProductStock.js +2 -0
  31. package/lib/cjs/markets/products/models/ProductTag.d.ts +3 -0
  32. package/lib/cjs/markets/products/models/ProductTag.js +2 -0
  33. package/lib/cjs/markets/products/models/ProductVariant.d.ts +6 -0
  34. package/lib/cjs/markets/products/models/ProductVariant.js +2 -0
  35. package/lib/cjs/markets/products/models/index.d.ts +13 -0
  36. package/lib/cjs/markets/products/models/index.js +29 -0
  37. package/lib/cjs/markets/shops/index.d.ts +1 -0
  38. package/lib/cjs/markets/shops/index.js +17 -0
  39. package/lib/cjs/markets/shops/models/Shop.d.ts +13 -0
  40. package/lib/cjs/markets/shops/models/Shop.js +2 -0
  41. package/lib/cjs/markets/users/models/User.d.ts +7 -0
  42. package/lib/cjs/markets/users/models/User.js +2 -0
  43. package/lib/cjs/npms/yup.js +17 -7
  44. package/lib/cjs/shared/models/IIcon.d.ts +4 -0
  45. package/lib/cjs/shared/models/IIcon.js +6 -0
  46. package/lib/cjs/shared/models/NaAcIc.d.ts +7 -0
  47. package/lib/cjs/shared/models/NaAcIc.js +7 -0
  48. package/lib/cjs/shared/models/NaCoAcIc.d.ts +4 -0
  49. package/lib/cjs/shared/models/NaCoAcIc.js +7 -0
  50. package/lib/cjs/users/user.js +17 -7
  51. package/lib/esm/markets/index.d.ts +2 -0
  52. package/lib/esm/markets/index.js +2 -0
  53. package/lib/esm/markets/models/Market.d.ts +8 -0
  54. package/lib/esm/markets/models/Market.js +1 -0
  55. package/lib/esm/markets/models/UMarket.d.ts +11 -0
  56. package/lib/esm/markets/models/UMarket.js +1 -0
  57. package/lib/esm/markets/models/index.d.ts +2 -0
  58. package/lib/esm/markets/models/index.js +2 -0
  59. package/lib/esm/markets/products/models/Product.d.ts +39 -0
  60. package/lib/esm/markets/products/models/Product.js +1 -0
  61. package/lib/esm/markets/products/models/ProductAsset.d.ts +8 -0
  62. package/lib/esm/markets/products/models/ProductAsset.js +1 -0
  63. package/lib/esm/markets/products/models/ProductCat.d.ts +3 -0
  64. package/lib/esm/markets/products/models/ProductCat.js +1 -0
  65. package/lib/esm/markets/products/models/ProductCollection.d.ts +3 -0
  66. package/lib/esm/markets/products/models/ProductCollection.js +1 -0
  67. package/lib/esm/markets/products/models/ProductDepot.d.ts +11 -0
  68. package/lib/esm/markets/products/models/ProductDepot.js +1 -0
  69. package/lib/esm/markets/products/models/ProductElt.d.ts +3 -0
  70. package/lib/esm/markets/products/models/ProductElt.js +1 -0
  71. package/lib/esm/markets/products/models/ProductGrp.d.ts +3 -0
  72. package/lib/esm/markets/products/models/ProductGrp.js +1 -0
  73. package/lib/esm/markets/products/models/ProductImage.d.ts +4 -0
  74. package/lib/esm/markets/products/models/ProductImage.js +2 -0
  75. package/lib/esm/markets/products/models/ProductIn.d.ts +42 -0
  76. package/lib/esm/markets/products/models/ProductIn.js +2 -0
  77. package/lib/esm/markets/products/models/ProductState.d.ts +3 -0
  78. package/lib/esm/markets/products/models/ProductState.js +1 -0
  79. package/lib/esm/markets/products/models/ProductStock.d.ts +6 -0
  80. package/lib/esm/markets/products/models/ProductStock.js +1 -0
  81. package/lib/esm/markets/products/models/ProductTag.d.ts +3 -0
  82. package/lib/esm/markets/products/models/ProductTag.js +1 -0
  83. package/lib/esm/markets/products/models/ProductVariant.d.ts +6 -0
  84. package/lib/esm/markets/products/models/ProductVariant.js +1 -0
  85. package/lib/esm/markets/products/models/index.d.ts +13 -0
  86. package/lib/esm/markets/products/models/index.js +13 -0
  87. package/lib/esm/markets/shops/index.d.ts +1 -0
  88. package/lib/esm/markets/shops/index.js +1 -0
  89. package/lib/esm/markets/shops/models/Shop.d.ts +13 -0
  90. package/lib/esm/markets/shops/models/Shop.js +1 -0
  91. package/lib/esm/markets/users/models/User.d.ts +7 -0
  92. package/lib/esm/markets/users/models/User.js +1 -0
  93. package/lib/esm/shared/models/IIcon.d.ts +4 -0
  94. package/lib/esm/shared/models/IIcon.js +2 -0
  95. package/lib/esm/shared/models/NaAcIc.d.ts +7 -0
  96. package/lib/esm/shared/models/NaAcIc.js +3 -0
  97. package/lib/esm/shared/models/NaCoAcIc.d.ts +4 -0
  98. package/lib/esm/shared/models/NaCoAcIc.js +3 -0
  99. package/package.json +9 -9
@@ -0,0 +1,2 @@
1
+ export * from "./models";
2
+ export * from "./products/models";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./models"), exports);
18
+ __exportStar(require("./products/models"), exports);
@@ -0,0 +1,8 @@
1
+ export interface Market {
2
+ id?: number;
3
+ name: string;
4
+ code: string;
5
+ iconName: string;
6
+ iconPack: string;
7
+ isActive: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import User from "../../users/models/User";
2
+ import { Market } from "./Market";
3
+ export interface UMarket {
4
+ id: number;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ isActive: boolean;
8
+ disabled?: boolean;
9
+ user: User;
10
+ market: Market;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./Market";
2
+ export * from "./UMarket";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Market"), exports);
18
+ __exportStar(require("./UMarket"), exports);
@@ -0,0 +1,39 @@
1
+ import { Market } from "../../models/Market";
2
+ import { Shop } from "../../shops/models/Shop";
3
+ import { ProductCat } from "./ProductCat";
4
+ import { ProductImage } from "./ProductImage";
5
+ import { ProductIn } from "./ProductIn";
6
+ interface Stock {
7
+ sumIns: number;
8
+ sumOuts: number;
9
+ qtityPerPackaging: number;
10
+ }
11
+ export interface Product {
12
+ capacity: string;
13
+ cat: ProductCat;
14
+ createdAt: Date;
15
+ description: string;
16
+ designation: string;
17
+ disabled?: boolean;
18
+ iconName: string;
19
+ iconPack: string;
20
+ id: number;
21
+ images: ProductImage[];
22
+ ins: ProductIn[];
23
+ isActive: boolean;
24
+ isAvailable?: boolean;
25
+ isBulk: boolean;
26
+ market: Market;
27
+ price: number;
28
+ publicPrice: number;
29
+ qtityLimit: number;
30
+ qtityUnit: number;
31
+ stock: Stock;
32
+ qtityPerBox: number;
33
+ qtityPerPackaging: number;
34
+ ref: string;
35
+ salePrice: number;
36
+ shop: Shop;
37
+ updatedAt: Date;
38
+ }
39
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface ProductAsset {
2
+ id: number;
3
+ elt: string;
4
+ name: string;
5
+ qtity: number;
6
+ size: number;
7
+ isActive: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { NaCoAcIc } from "../../../shared/models/NaCoAcIc";
2
+ export interface ProductCat extends NaCoAcIc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductCollection extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { ProductIn } from "./ProductIn";
2
+ export interface ProductDepot {
3
+ id: number;
4
+ name: string;
5
+ code: string;
6
+ main: "master" | "slave";
7
+ hasViewStock: boolean;
8
+ qtityInTransfert: number;
9
+ isActive: boolean;
10
+ ins: ProductIn[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { NaCoAc } from "../../../shared/models";
2
+ export interface ProductElt extends NaCoAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductGrp extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { Product } from "./Product";
2
+ export declare class ProductImage extends Image {
3
+ product: Product;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductImage = void 0;
4
+ class ProductImage extends Image {
5
+ }
6
+ exports.ProductImage = ProductImage;
@@ -0,0 +1,42 @@
1
+ import EInOutMotive from "../../../shared/models/EInOutMotive";
2
+ import { Product } from "./Product";
3
+ import { ProductDepot } from "./ProductDepot";
4
+ export declare class ProductIn {
5
+ id: number;
6
+ createdAt: Date;
7
+ lot: string;
8
+ qtity: number;
9
+ comment: string;
10
+ isEdit: boolean;
11
+ motive: EInOutMotive;
12
+ authorId: number;
13
+ qtityPerPackaging: number;
14
+ /**
15
+ * remaining qtity
16
+ */
17
+ qtityIn: number;
18
+ isOutDate: boolean;
19
+ /**
20
+ * expired
21
+ */
22
+ isOut: boolean;
23
+ /**
24
+ * if true the productIn is created from transfering qtity from another productin
25
+ */
26
+ fromTransfert: boolean;
27
+ /**
28
+ * indique the qtity waiting to transfert after transfert validation
29
+ */
30
+ qtityInTransfert: number;
31
+ /**
32
+ * is true if the transfert not validate
33
+ */
34
+ inTransfert: boolean;
35
+ depotId: number;
36
+ productId: number;
37
+ designation: string;
38
+ salePrice: number;
39
+ publicPrice: number;
40
+ product: Product;
41
+ depot: ProductDepot;
42
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductIn = void 0;
4
+ class ProductIn {
5
+ }
6
+ exports.ProductIn = ProductIn;
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductState extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface ProductStock {
2
+ sumIns: number;
3
+ sumOuts: number;
4
+ qtityPerPackaging: number;
5
+ qtityUnit?: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductTag extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface ProductVariant {
2
+ id: number;
3
+ sku: string;
4
+ size: string;
5
+ color: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export * from "./Product";
2
+ export * from "./ProductAsset";
3
+ export * from "./ProductCat";
4
+ export * from "./ProductCollection";
5
+ export * from "./ProductDepot";
6
+ export * from "./ProductElt";
7
+ export * from "./ProductGrp";
8
+ export * from "./ProductImage";
9
+ export * from "./ProductIn";
10
+ export * from "./ProductState";
11
+ export * from "./ProductStock";
12
+ export * from "./ProductTag";
13
+ export * from "./ProductVariant";
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Product"), exports);
18
+ __exportStar(require("./ProductAsset"), exports);
19
+ __exportStar(require("./ProductCat"), exports);
20
+ __exportStar(require("./ProductCollection"), exports);
21
+ __exportStar(require("./ProductDepot"), exports);
22
+ __exportStar(require("./ProductElt"), exports);
23
+ __exportStar(require("./ProductGrp"), exports);
24
+ __exportStar(require("./ProductImage"), exports);
25
+ __exportStar(require("./ProductIn"), exports);
26
+ __exportStar(require("./ProductState"), exports);
27
+ __exportStar(require("./ProductStock"), exports);
28
+ __exportStar(require("./ProductTag"), exports);
29
+ __exportStar(require("./ProductVariant"), exports);
@@ -0,0 +1 @@
1
+ export * from "./models/Shop";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./models/Shop"), exports);
@@ -0,0 +1,13 @@
1
+ import { UMarket } from "../../models/UMarket";
2
+ import { Product } from "../../products/models/Product";
3
+ export interface Shop {
4
+ id: number;
5
+ name: string;
6
+ title: string;
7
+ description: string;
8
+ logo: string;
9
+ banner: string;
10
+ isActive: boolean;
11
+ products: Product[];
12
+ umarket: UMarket;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import UserBase from "../../../users/models/UserBase";
2
+ import { UMarket } from "../../models/UMarket";
3
+ export default interface User extends UserBase {
4
+ markets?: UMarket[];
5
+ wallets?: any;
6
+ phone?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -0,0 +1,4 @@
1
+ export declare abstract class IIcon {
2
+ iconName: string;
3
+ iconPack: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IIcon = void 0;
4
+ class IIcon {
5
+ }
6
+ exports.IIcon = IIcon;
@@ -0,0 +1,7 @@
1
+ import { IIcon } from "./IIcon";
2
+ export declare abstract class NaAcIc extends IIcon {
3
+ id: number;
4
+ name: string;
5
+ isActive?: boolean;
6
+ disabled?: boolean;
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NaAcIc = void 0;
4
+ const IIcon_1 = require("./IIcon");
5
+ class NaAcIc extends IIcon_1.IIcon {
6
+ }
7
+ exports.NaAcIc = NaAcIc;
@@ -0,0 +1,4 @@
1
+ import { NaAcIc } from "./NaAcIc";
2
+ export declare abstract class NaCoAcIc extends NaAcIc {
3
+ code: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NaCoAcIc = void 0;
4
+ const NaAcIc_1 = require("./NaAcIc");
5
+ class NaCoAcIc extends NaAcIc_1.NaAcIc {
6
+ }
7
+ exports.NaCoAcIc = NaCoAcIc;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -0,0 +1,2 @@
1
+ export * from "./models";
2
+ export * from "./products/models";
@@ -0,0 +1,2 @@
1
+ export * from "./models";
2
+ export * from "./products/models";
@@ -0,0 +1,8 @@
1
+ export interface Market {
2
+ id?: number;
3
+ name: string;
4
+ code: string;
5
+ iconName: string;
6
+ iconPack: string;
7
+ isActive: boolean;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import User from "../../users/models/User";
2
+ import { Market } from "./Market";
3
+ export interface UMarket {
4
+ id: number;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ isActive: boolean;
8
+ disabled?: boolean;
9
+ user: User;
10
+ market: Market;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./Market";
2
+ export * from "./UMarket";
@@ -0,0 +1,2 @@
1
+ export * from "./Market";
2
+ export * from "./UMarket";
@@ -0,0 +1,39 @@
1
+ import { Market } from "../../models/Market";
2
+ import { Shop } from "../../shops/models/Shop";
3
+ import { ProductCat } from "./ProductCat";
4
+ import { ProductImage } from "./ProductImage";
5
+ import { ProductIn } from "./ProductIn";
6
+ interface Stock {
7
+ sumIns: number;
8
+ sumOuts: number;
9
+ qtityPerPackaging: number;
10
+ }
11
+ export interface Product {
12
+ capacity: string;
13
+ cat: ProductCat;
14
+ createdAt: Date;
15
+ description: string;
16
+ designation: string;
17
+ disabled?: boolean;
18
+ iconName: string;
19
+ iconPack: string;
20
+ id: number;
21
+ images: ProductImage[];
22
+ ins: ProductIn[];
23
+ isActive: boolean;
24
+ isAvailable?: boolean;
25
+ isBulk: boolean;
26
+ market: Market;
27
+ price: number;
28
+ publicPrice: number;
29
+ qtityLimit: number;
30
+ qtityUnit: number;
31
+ stock: Stock;
32
+ qtityPerBox: number;
33
+ qtityPerPackaging: number;
34
+ ref: string;
35
+ salePrice: number;
36
+ shop: Shop;
37
+ updatedAt: Date;
38
+ }
39
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface ProductAsset {
2
+ id: number;
3
+ elt: string;
4
+ name: string;
5
+ qtity: number;
6
+ size: number;
7
+ isActive: boolean;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { NaCoAcIc } from "../../../shared/models/NaCoAcIc";
2
+ export interface ProductCat extends NaCoAcIc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductCollection extends NaAc {
3
+ }
@@ -0,0 +1,11 @@
1
+ import { ProductIn } from "./ProductIn";
2
+ export interface ProductDepot {
3
+ id: number;
4
+ name: string;
5
+ code: string;
6
+ main: "master" | "slave";
7
+ hasViewStock: boolean;
8
+ qtityInTransfert: number;
9
+ isActive: boolean;
10
+ ins: ProductIn[];
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { NaCoAc } from "../../../shared/models";
2
+ export interface ProductElt extends NaCoAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductGrp extends NaAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Product } from "./Product";
2
+ export declare class ProductImage extends Image {
3
+ product: Product;
4
+ }
@@ -0,0 +1,2 @@
1
+ export class ProductImage extends Image {
2
+ }
@@ -0,0 +1,42 @@
1
+ import EInOutMotive from "../../../shared/models/EInOutMotive";
2
+ import { Product } from "./Product";
3
+ import { ProductDepot } from "./ProductDepot";
4
+ export declare class ProductIn {
5
+ id: number;
6
+ createdAt: Date;
7
+ lot: string;
8
+ qtity: number;
9
+ comment: string;
10
+ isEdit: boolean;
11
+ motive: EInOutMotive;
12
+ authorId: number;
13
+ qtityPerPackaging: number;
14
+ /**
15
+ * remaining qtity
16
+ */
17
+ qtityIn: number;
18
+ isOutDate: boolean;
19
+ /**
20
+ * expired
21
+ */
22
+ isOut: boolean;
23
+ /**
24
+ * if true the productIn is created from transfering qtity from another productin
25
+ */
26
+ fromTransfert: boolean;
27
+ /**
28
+ * indique the qtity waiting to transfert after transfert validation
29
+ */
30
+ qtityInTransfert: number;
31
+ /**
32
+ * is true if the transfert not validate
33
+ */
34
+ inTransfert: boolean;
35
+ depotId: number;
36
+ productId: number;
37
+ designation: string;
38
+ salePrice: number;
39
+ publicPrice: number;
40
+ product: Product;
41
+ depot: ProductDepot;
42
+ }
@@ -0,0 +1,2 @@
1
+ export class ProductIn {
2
+ }
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductState extends NaAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface ProductStock {
2
+ sumIns: number;
3
+ sumOuts: number;
4
+ qtityPerPackaging: number;
5
+ qtityUnit?: number;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import NaAc from "../../../shared/models/NaAc";
2
+ export interface ProductTag extends NaAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface ProductVariant {
2
+ id: number;
3
+ sku: string;
4
+ size: string;
5
+ color: string;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export * from "./Product";
2
+ export * from "./ProductAsset";
3
+ export * from "./ProductCat";
4
+ export * from "./ProductCollection";
5
+ export * from "./ProductDepot";
6
+ export * from "./ProductElt";
7
+ export * from "./ProductGrp";
8
+ export * from "./ProductImage";
9
+ export * from "./ProductIn";
10
+ export * from "./ProductState";
11
+ export * from "./ProductStock";
12
+ export * from "./ProductTag";
13
+ export * from "./ProductVariant";
@@ -0,0 +1,13 @@
1
+ export * from "./Product";
2
+ export * from "./ProductAsset";
3
+ export * from "./ProductCat";
4
+ export * from "./ProductCollection";
5
+ export * from "./ProductDepot";
6
+ export * from "./ProductElt";
7
+ export * from "./ProductGrp";
8
+ export * from "./ProductImage";
9
+ export * from "./ProductIn";
10
+ export * from "./ProductState";
11
+ export * from "./ProductStock";
12
+ export * from "./ProductTag";
13
+ export * from "./ProductVariant";
@@ -0,0 +1 @@
1
+ export * from "./models/Shop";
@@ -0,0 +1 @@
1
+ export * from "./models/Shop";
@@ -0,0 +1,13 @@
1
+ import { UMarket } from "../../models/UMarket";
2
+ import { Product } from "../../products/models/Product";
3
+ export interface Shop {
4
+ id: number;
5
+ name: string;
6
+ title: string;
7
+ description: string;
8
+ logo: string;
9
+ banner: string;
10
+ isActive: boolean;
11
+ products: Product[];
12
+ umarket: UMarket;
13
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import UserBase from "../../../users/models/UserBase";
2
+ import { UMarket } from "../../models/UMarket";
3
+ export default interface User extends UserBase {
4
+ markets?: UMarket[];
5
+ wallets?: any;
6
+ phone?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare abstract class IIcon {
2
+ iconName: string;
3
+ iconPack: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export class IIcon {
2
+ }
@@ -0,0 +1,7 @@
1
+ import { IIcon } from "./IIcon";
2
+ export declare abstract class NaAcIc extends IIcon {
3
+ id: number;
4
+ name: string;
5
+ isActive?: boolean;
6
+ disabled?: boolean;
7
+ }
@@ -0,0 +1,3 @@
1
+ import { IIcon } from "./IIcon";
2
+ export class NaAcIc extends IIcon {
3
+ }
@@ -0,0 +1,4 @@
1
+ import { NaAcIc } from "./NaAcIc";
2
+ export declare abstract class NaCoAcIc extends NaAcIc {
3
+ code: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { NaAcIc } from "./NaAcIc";
2
+ export class NaCoAcIc extends NaAcIc {
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -18,24 +18,24 @@
18
18
  "devDependencies": {
19
19
  "@types/bcryptjs": "^2.4.6",
20
20
  "@types/express": "^5.0.0",
21
- "@types/lodash": "^4.17.13",
22
- "@types/pdfmake": "^0.2.9",
21
+ "@types/lodash": "^4.17.14",
22
+ "@types/pdfmake": "^0.2.11",
23
23
  "@types/randomatic": "^3.1.5",
24
- "@types/react": "^18.3.12"
24
+ "@types/react": "^19.0.4"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "^1.7.7",
27
+ "axios": "^1.7.9",
28
28
  "bcryptjs": "^2.4.3",
29
29
  "class-validator": "^0.14.1",
30
30
  "classnames": "^2.5.1",
31
31
  "dayjs": "^1.11.13",
32
- "express": "^4.21.1",
32
+ "express": "^4.21.2",
33
33
  "jwt-decode": "^4.0.0",
34
34
  "lodash": "^4.17.21",
35
- "pdfmake": "^0.2.15",
35
+ "pdfmake": "^0.2.18",
36
36
  "randomatic": "^3.1.1",
37
37
  "typeorm": "^0.3.20",
38
- "typescript": "^5.6.3",
39
- "yup": "^1.4.0"
38
+ "typescript": "^5.7.3",
39
+ "yup": "^1.6.1"
40
40
  }
41
41
  }