tt-entities 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/tatayab-entities-library/src/entities/brand.entity.d.ts +12 -0
- package/dist/libs/tatayab-entities-library/src/entities/brand.entity.js +56 -0
- package/dist/libs/tatayab-entities-library/src/entities/brand.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/category.entity.d.ts +14 -0
- package/dist/libs/tatayab-entities-library/src/entities/category.entity.js +65 -0
- package/dist/libs/tatayab-entities-library/src/entities/category.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/inventory-stock.entity.d.ts +16 -0
- package/dist/libs/tatayab-entities-library/src/entities/inventory-stock.entity.js +66 -0
- package/dist/libs/tatayab-entities-library/src/entities/inventory-stock.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/inventory.entity.d.ts +15 -0
- package/dist/libs/tatayab-entities-library/src/entities/inventory.entity.js +63 -0
- package/dist/libs/tatayab-entities-library/src/entities/inventory.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-media.entity.d.ts +16 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-media.entity.js +62 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-media.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.d.ts +8 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.js +44 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-variant-option.entity.d.ts +5 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-variant-option.entity.js +32 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-variant-option.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-variant.entity.d.ts +15 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-variant.entity.js +64 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-variant.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.d.ts +27 -0
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.js +104 -0
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order-item.entity.d.ts +25 -0
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order-item.entity.js +88 -0
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order-item.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order.entity.d.ts +27 -0
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order.entity.js +108 -0
- package/dist/libs/tatayab-entities-library/src/entities/purchase-order.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/stock-movement.entity.d.ts +23 -0
- package/dist/libs/tatayab-entities-library/src/entities/stock-movement.entity.js +92 -0
- package/dist/libs/tatayab-entities-library/src/entities/stock-movement.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/store-inventory.entity.d.ts +6 -0
- package/dist/libs/tatayab-entities-library/src/entities/store-inventory.entity.js +36 -0
- package/dist/libs/tatayab-entities-library/src/entities/store-inventory.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/store.entity.d.ts +21 -0
- package/dist/libs/tatayab-entities-library/src/entities/store.entity.js +86 -0
- package/dist/libs/tatayab-entities-library/src/entities/store.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/variant-option.entity.d.ts +11 -0
- package/dist/libs/tatayab-entities-library/src/entities/variant-option.entity.js +50 -0
- package/dist/libs/tatayab-entities-library/src/entities/variant-option.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/variant-type.entity.d.ts +7 -0
- package/dist/libs/tatayab-entities-library/src/entities/variant-type.entity.js +37 -0
- package/dist/libs/tatayab-entities-library/src/entities/variant-type.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/vendor-product.entity.d.ts +19 -0
- package/dist/libs/tatayab-entities-library/src/entities/vendor-product.entity.js +78 -0
- package/dist/libs/tatayab-entities-library/src/entities/vendor-product.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/vendor.entity.d.ts +19 -0
- package/dist/libs/tatayab-entities-library/src/entities/vendor.entity.js +82 -0
- package/dist/libs/tatayab-entities-library/src/entities/vendor.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/index.d.ts +21 -0
- package/dist/libs/tatayab-entities-library/src/index.js +81 -1
- package/dist/libs/tatayab-entities-library/src/index.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.d.ts +8 -0
- package/dist/libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.js +13 -0
- package/dist/libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/utils/enums/stockMovementType.d.ts +11 -0
- package/dist/libs/tatayab-entities-library/src/utils/enums/stockMovementType.js +16 -0
- package/dist/libs/tatayab-entities-library/src/utils/enums/stockMovementType.js.map +1 -0
- package/dist/src/main.js +1437 -1
- package/libs/tatayab-entities-library/src/entities/brand.entity.ts +32 -0
- package/libs/tatayab-entities-library/src/entities/category.entity.ts +47 -0
- package/libs/tatayab-entities-library/src/entities/inventory-stock.entity.ts +55 -0
- package/libs/tatayab-entities-library/src/entities/inventory.entity.ts +47 -0
- package/libs/tatayab-entities-library/src/entities/product-media.entity.ts +45 -0
- package/libs/tatayab-entities-library/src/entities/product-store.entity.ts +31 -0
- package/libs/tatayab-entities-library/src/entities/product-variant-option.entity.ts +19 -0
- package/libs/tatayab-entities-library/src/entities/product-variant.entity.ts +51 -0
- package/libs/tatayab-entities-library/src/entities/product.entity.ts +82 -0
- package/libs/tatayab-entities-library/src/entities/purchase-order-item.entity.ts +73 -0
- package/libs/tatayab-entities-library/src/entities/purchase-order.entity.ts +86 -0
- package/libs/tatayab-entities-library/src/entities/stock-movement.entity.ts +74 -0
- package/libs/tatayab-entities-library/src/entities/store-inventory.entity.ts +24 -0
- package/libs/tatayab-entities-library/src/entities/store.entity.ts +68 -0
- package/libs/tatayab-entities-library/src/entities/variant-option.entity.ts +35 -0
- package/libs/tatayab-entities-library/src/entities/variant-type.entity.ts +18 -0
- package/libs/tatayab-entities-library/src/entities/vendor-product.entity.ts +65 -0
- package/libs/tatayab-entities-library/src/entities/vendor.entity.ts +63 -0
- package/libs/tatayab-entities-library/src/index.ts +95 -2
- package/libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.ts +8 -0
- package/libs/tatayab-entities-library/src/utils/enums/stockMovementType.ts +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Store = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const country_entity_1 = require("./country.entity");
|
|
15
|
+
const product_store_entity_1 = require("./product-store.entity");
|
|
16
|
+
const product_entity_1 = require("./product.entity");
|
|
17
|
+
const store_inventory_entity_1 = require("./store-inventory.entity");
|
|
18
|
+
const inventory_entity_1 = require("./inventory.entity");
|
|
19
|
+
const status_1 = require("../utils/enums/status");
|
|
20
|
+
let Store = class Store extends sequelize_typescript_1.Model {
|
|
21
|
+
};
|
|
22
|
+
exports.Store = Store;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Store.prototype, "nameEn", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Store.prototype, "nameAr", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Store.prototype, "descriptionEn", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Store.prototype, "descriptionAr", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Store.prototype, "logo", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 'USD' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Store.prototype, "currency", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Store.prototype, "currencySymbolEn", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Store.prototype, "currencySymbolAr", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
57
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], Store.prototype, "countryId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: false }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], Store.prototype, "isGlobal", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, sequelize_typescript_1.Column)({
|
|
66
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
67
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], Store.prototype, "status", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
73
|
+
__metadata("design:type", country_entity_1.Country)
|
|
74
|
+
], Store.prototype, "country", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => product_entity_1.Product, () => product_store_entity_1.ProductStore),
|
|
77
|
+
__metadata("design:type", Array)
|
|
78
|
+
], Store.prototype, "products", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => inventory_entity_1.Inventory, () => store_inventory_entity_1.StoreInventory),
|
|
81
|
+
__metadata("design:type", Array)
|
|
82
|
+
], Store.prototype, "inventories", void 0);
|
|
83
|
+
exports.Store = Store = __decorate([
|
|
84
|
+
sequelize_typescript_1.Table
|
|
85
|
+
], Store);
|
|
86
|
+
//# sourceMappingURL=store.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,qDAA2C;AAC3C,iEAAsD;AACtD,qDAA2C;AAC3C,qEAA0D;AAC1D,yDAA+C;AAC/C,kDAA+C;AAGxC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,4BAAK;CAiD/B,CAAA;AAjDY,sBAAK;AAER;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;qCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;qCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;mCACN;AAId;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;uCACzB;AAGjB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CACM;AAG1B;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CACM;AAI1B;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;wCACD;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;uCACN;AAMlB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;qCACqB;AAKf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;sCAAC;AAGjB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,GAAG,EAAE,CAAC,mCAAY,CAAC;;uCACrB;AAGpB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,GAAG,EAAE,CAAC,uCAAc,CAAC;;0CACpB;gBAhDtB,KAAK;IADjB,4BAAK;GACO,KAAK,CAiDjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { VariantType } from './variant-type.entity';
|
|
3
|
+
import { Status } from '../utils/enums/status';
|
|
4
|
+
export declare class VariantOption extends Model {
|
|
5
|
+
variantTypeId: number;
|
|
6
|
+
nameEn: string;
|
|
7
|
+
nameAr: string;
|
|
8
|
+
sortOrder: number;
|
|
9
|
+
status: Status;
|
|
10
|
+
variantType: VariantType;
|
|
11
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VariantOption = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const variant_type_entity_1 = require("./variant-type.entity");
|
|
15
|
+
const status_1 = require("../utils/enums/status");
|
|
16
|
+
let VariantOption = class VariantOption extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.VariantOption = VariantOption;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.ForeignKey)(() => variant_type_entity_1.VariantType),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], VariantOption.prototype, "variantTypeId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], VariantOption.prototype, "nameEn", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], VariantOption.prototype, "nameAr", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], VariantOption.prototype, "sortOrder", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({
|
|
38
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
39
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], VariantOption.prototype, "status", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.BelongsTo)(() => variant_type_entity_1.VariantType),
|
|
45
|
+
__metadata("design:type", variant_type_entity_1.VariantType)
|
|
46
|
+
], VariantOption.prototype, "variantType", void 0);
|
|
47
|
+
exports.VariantOption = VariantOption = __decorate([
|
|
48
|
+
sequelize_typescript_1.Table
|
|
49
|
+
], VariantOption);
|
|
50
|
+
//# sourceMappingURL=variant-option.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-option.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/variant-option.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,+DAAoD;AACpD,kDAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAK;CAsBvC,CAAA;AAtBY,sCAAa;AAGhB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;IAC7B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;oDACC;AAGtB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;gDACF;AAMlB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;6CACqB;AAGf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;8BACR,iCAAW;kDAAC;wBArBtB,aAAa;IADzB,4BAAK;GACO,aAAa,CAsBzB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VariantType = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const status_1 = require("../utils/enums/status");
|
|
15
|
+
const sequelize_typescript_2 = require("sequelize-typescript");
|
|
16
|
+
let VariantType = class VariantType extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.VariantType = VariantType;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], VariantType.prototype, "nameEn", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], VariantType.prototype, "nameAr", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({
|
|
29
|
+
type: sequelize_typescript_2.DataType.ENUM(...Object.values(status_1.Status)),
|
|
30
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], VariantType.prototype, "status", void 0);
|
|
34
|
+
exports.VariantType = VariantType = __decorate([
|
|
35
|
+
sequelize_typescript_1.Table
|
|
36
|
+
], VariantType);
|
|
37
|
+
//# sourceMappingURL=variant-type.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-type.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/variant-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAqE;AACrE,kDAA+C;AAC/C,+DAAgD;AAGzC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAK;CAYrC,CAAA;AAZY,kCAAW;AAEd;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;2CACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;2CACN;AAMf;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;2CACqB;sBAXZ,WAAW;IADvB,4BAAK;GACO,WAAW,CAYvB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Vendor } from './vendor.entity';
|
|
3
|
+
import { Product } from './product.entity';
|
|
4
|
+
import { ProductVariant } from './product-variant.entity';
|
|
5
|
+
import { Status } from '../utils/enums/status';
|
|
6
|
+
export declare class VendorProduct extends Model {
|
|
7
|
+
vendorId: number;
|
|
8
|
+
productId: number;
|
|
9
|
+
productVariantId?: number;
|
|
10
|
+
costPrice: number;
|
|
11
|
+
vendorSku?: string;
|
|
12
|
+
leadTimeDays?: number;
|
|
13
|
+
moq: number;
|
|
14
|
+
isPreferred: boolean;
|
|
15
|
+
status: Status;
|
|
16
|
+
vendor: Vendor;
|
|
17
|
+
product: Product;
|
|
18
|
+
variant?: ProductVariant;
|
|
19
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VendorProduct = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const vendor_entity_1 = require("./vendor.entity");
|
|
15
|
+
const product_entity_1 = require("./product.entity");
|
|
16
|
+
const product_variant_entity_1 = require("./product-variant.entity");
|
|
17
|
+
const status_1 = require("../utils/enums/status");
|
|
18
|
+
let VendorProduct = class VendorProduct extends sequelize_typescript_1.Model {
|
|
19
|
+
};
|
|
20
|
+
exports.VendorProduct = VendorProduct;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, sequelize_typescript_1.ForeignKey)(() => vendor_entity_1.Vendor),
|
|
23
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], VendorProduct.prototype, "vendorId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, sequelize_typescript_1.ForeignKey)(() => product_entity_1.Product),
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], VendorProduct.prototype, "productId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.ForeignKey)(() => product_variant_entity_1.ProductVariant),
|
|
33
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], VendorProduct.prototype, "productVariantId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], VendorProduct.prototype, "costPrice", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], VendorProduct.prototype, "vendorSku", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], VendorProduct.prototype, "leadTimeDays", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 1 }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], VendorProduct.prototype, "moq", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], VendorProduct.prototype, "isPreferred", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, sequelize_typescript_1.Column)({
|
|
58
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
59
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], VendorProduct.prototype, "status", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, sequelize_typescript_1.BelongsTo)(() => vendor_entity_1.Vendor),
|
|
65
|
+
__metadata("design:type", vendor_entity_1.Vendor)
|
|
66
|
+
], VendorProduct.prototype, "vendor", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, sequelize_typescript_1.BelongsTo)(() => product_entity_1.Product),
|
|
69
|
+
__metadata("design:type", product_entity_1.Product)
|
|
70
|
+
], VendorProduct.prototype, "product", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, sequelize_typescript_1.BelongsTo)(() => product_variant_entity_1.ProductVariant),
|
|
73
|
+
__metadata("design:type", product_variant_entity_1.ProductVariant)
|
|
74
|
+
], VendorProduct.prototype, "variant", void 0);
|
|
75
|
+
exports.VendorProduct = VendorProduct = __decorate([
|
|
76
|
+
sequelize_typescript_1.Table
|
|
77
|
+
], VendorProduct);
|
|
78
|
+
//# sourceMappingURL=vendor-product.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-product.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/vendor-product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,mDAAyC;AACzC,qDAA2C;AAC3C,qEAA0D;AAC1D,kDAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAK;CAkDvC,CAAA;AAlDY,sCAAa;AAGhB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;IACxB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;+CACJ;AAIjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;gDACH;AAKlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;uDACM;AAI1B;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;gDAClC;AAIlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;gDACD;AAInB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;mDACE;AAItB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;0CACR;AAIZ;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;kDACH;AAMrB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;6CACqB;AAKf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;8BACR,sBAAM;6CAAC;AAGf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;8CAAC;AAGjB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;8BACd,uCAAc;8CAAC;wBAjDtB,aAAa;IADzB,4BAAK;GACO,aAAa,CAkDzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Country } from './country.entity';
|
|
3
|
+
import { Status } from '../utils/enums/status';
|
|
4
|
+
export declare class Vendor extends Model {
|
|
5
|
+
nameEn: string;
|
|
6
|
+
nameAr: string;
|
|
7
|
+
contactPerson?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
addressEn?: string;
|
|
11
|
+
addressAr?: string;
|
|
12
|
+
countryId?: number;
|
|
13
|
+
taxNumber?: string;
|
|
14
|
+
commercialRegNumber?: string;
|
|
15
|
+
paymentTermsDays: number;
|
|
16
|
+
notes?: string;
|
|
17
|
+
status: Status;
|
|
18
|
+
country: Country;
|
|
19
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Vendor = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const country_entity_1 = require("./country.entity");
|
|
15
|
+
const status_1 = require("../utils/enums/status");
|
|
16
|
+
let Vendor = class Vendor extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.Vendor = Vendor;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Vendor.prototype, "nameEn", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Vendor.prototype, "nameAr", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Vendor.prototype, "contactPerson", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Vendor.prototype, "email", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Vendor.prototype, "phone", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Vendor.prototype, "addressEn", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Vendor.prototype, "addressAr", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
49
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], Vendor.prototype, "countryId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Vendor.prototype, "taxNumber", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], Vendor.prototype, "commercialRegNumber", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], Vendor.prototype, "paymentTermsDays", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Vendor.prototype, "notes", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, sequelize_typescript_1.Column)({
|
|
70
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
71
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], Vendor.prototype, "status", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
77
|
+
__metadata("design:type", country_entity_1.Country)
|
|
78
|
+
], Vendor.prototype, "country", void 0);
|
|
79
|
+
exports.Vendor = Vendor = __decorate([
|
|
80
|
+
sequelize_typescript_1.Table
|
|
81
|
+
], Vendor);
|
|
82
|
+
//# sourceMappingURL=vendor.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/vendor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAQ8B;AAC9B,qDAA2C;AAC3C,kDAA+C;AAGxC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,4BAAK;CAiDhC,CAAA;AAjDY,wBAAM;AAET;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;sCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;sCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;6CACG;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;qCACL;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;qCACL;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;yCACtB;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;yCACtB;AAInB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;yCACD;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;yCACD;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;mDACS;AAI7B;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;gDACK;AAGzB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;qCACL;AAMf;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;sCACqB;AAKf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;uCAAC;iBAhDd,MAAM;IADlB,4BAAK;GACO,MAAM,CAiDlB"}
|
|
@@ -7,9 +7,30 @@ export { SysRole } from './entities/sys.role.entity';
|
|
|
7
7
|
export { SysUser } from './entities/sys.user.entity';
|
|
8
8
|
export { User } from './entities/user.entity';
|
|
9
9
|
export { UserDevice } from './entities/userDevice.entity';
|
|
10
|
+
export { Category } from './entities/category.entity';
|
|
11
|
+
export { Brand } from './entities/brand.entity';
|
|
12
|
+
export { VariantType } from './entities/variant-type.entity';
|
|
13
|
+
export { VariantOption } from './entities/variant-option.entity';
|
|
14
|
+
export { Product } from './entities/product.entity';
|
|
15
|
+
export { ProductMedia, MediaType } from './entities/product-media.entity';
|
|
16
|
+
export { ProductVariant } from './entities/product-variant.entity';
|
|
17
|
+
export { ProductVariantOption } from './entities/product-variant-option.entity';
|
|
18
|
+
export { Store } from './entities/store.entity';
|
|
19
|
+
export { ProductStore } from './entities/product-store.entity';
|
|
20
|
+
export { Inventory } from './entities/inventory.entity';
|
|
21
|
+
export { StoreInventory } from './entities/store-inventory.entity';
|
|
22
|
+
export { InventoryStock } from './entities/inventory-stock.entity';
|
|
23
|
+
export { StockMovement } from './entities/stock-movement.entity';
|
|
24
|
+
export { Vendor } from './entities/vendor.entity';
|
|
25
|
+
export { VendorProduct } from './entities/vendor-product.entity';
|
|
26
|
+
export { PurchaseOrder } from './entities/purchase-order.entity';
|
|
27
|
+
export { PurchaseOrderItem, PurchaseOrderItemStatus, } from './entities/purchase-order-item.entity';
|
|
10
28
|
export { OsName } from './utils/enums/osName';
|
|
11
29
|
export { ProductApp } from './utils/enums/productApp';
|
|
12
30
|
export { VersionType } from './utils/enums/versiontype';
|
|
13
31
|
export { Language } from './utils/enums/language';
|
|
14
32
|
export { Status } from './utils/enums/status';
|
|
33
|
+
export { Gender } from './utils/enums/gender';
|
|
34
|
+
export { PurchaseOrderStatus } from './utils/enums/purchaseOrderStatus';
|
|
35
|
+
export { StockMovementType } from './utils/enums/stockMovementType';
|
|
15
36
|
export declare function getDbModels(): ModelCtor[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Translation = exports.Country = exports.ApiKey = void 0;
|
|
3
|
+
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.PurchaseOrderItemStatus = exports.PurchaseOrderItem = exports.PurchaseOrder = exports.VendorProduct = exports.Vendor = exports.StockMovement = exports.InventoryStock = exports.StoreInventory = exports.Inventory = exports.ProductStore = exports.Store = exports.ProductVariantOption = exports.ProductVariant = exports.MediaType = exports.ProductMedia = exports.Product = exports.VariantOption = exports.VariantType = exports.Brand = exports.Category = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Translation = exports.Country = exports.ApiKey = void 0;
|
|
4
4
|
exports.getDbModels = getDbModels;
|
|
5
5
|
const country_entity_1 = require("./entities/country.entity");
|
|
6
6
|
const translation_entity_1 = require("./entities/translation.entity");
|
|
@@ -10,6 +10,24 @@ const sys_user_entity_1 = require("./entities/sys.user.entity");
|
|
|
10
10
|
const user_entity_1 = require("./entities/user.entity");
|
|
11
11
|
const userDevice_entity_1 = require("./entities/userDevice.entity");
|
|
12
12
|
const apikey_entity_1 = require("./entities/apikey.entity");
|
|
13
|
+
const category_entity_1 = require("./entities/category.entity");
|
|
14
|
+
const brand_entity_1 = require("./entities/brand.entity");
|
|
15
|
+
const variant_type_entity_1 = require("./entities/variant-type.entity");
|
|
16
|
+
const variant_option_entity_1 = require("./entities/variant-option.entity");
|
|
17
|
+
const product_entity_1 = require("./entities/product.entity");
|
|
18
|
+
const product_media_entity_1 = require("./entities/product-media.entity");
|
|
19
|
+
const product_variant_entity_1 = require("./entities/product-variant.entity");
|
|
20
|
+
const product_variant_option_entity_1 = require("./entities/product-variant-option.entity");
|
|
21
|
+
const store_entity_1 = require("./entities/store.entity");
|
|
22
|
+
const product_store_entity_1 = require("./entities/product-store.entity");
|
|
23
|
+
const inventory_entity_1 = require("./entities/inventory.entity");
|
|
24
|
+
const store_inventory_entity_1 = require("./entities/store-inventory.entity");
|
|
25
|
+
const inventory_stock_entity_1 = require("./entities/inventory-stock.entity");
|
|
26
|
+
const stock_movement_entity_1 = require("./entities/stock-movement.entity");
|
|
27
|
+
const vendor_entity_1 = require("./entities/vendor.entity");
|
|
28
|
+
const vendor_product_entity_1 = require("./entities/vendor-product.entity");
|
|
29
|
+
const purchase_order_entity_1 = require("./entities/purchase-order.entity");
|
|
30
|
+
const purchase_order_item_entity_1 = require("./entities/purchase-order-item.entity");
|
|
13
31
|
var apikey_entity_2 = require("./entities/apikey.entity");
|
|
14
32
|
Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return apikey_entity_2.ApiKey; } });
|
|
15
33
|
var country_entity_2 = require("./entities/country.entity");
|
|
@@ -26,6 +44,44 @@ var user_entity_2 = require("./entities/user.entity");
|
|
|
26
44
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_entity_2.User; } });
|
|
27
45
|
var userDevice_entity_2 = require("./entities/userDevice.entity");
|
|
28
46
|
Object.defineProperty(exports, "UserDevice", { enumerable: true, get: function () { return userDevice_entity_2.UserDevice; } });
|
|
47
|
+
var category_entity_2 = require("./entities/category.entity");
|
|
48
|
+
Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return category_entity_2.Category; } });
|
|
49
|
+
var brand_entity_2 = require("./entities/brand.entity");
|
|
50
|
+
Object.defineProperty(exports, "Brand", { enumerable: true, get: function () { return brand_entity_2.Brand; } });
|
|
51
|
+
var variant_type_entity_2 = require("./entities/variant-type.entity");
|
|
52
|
+
Object.defineProperty(exports, "VariantType", { enumerable: true, get: function () { return variant_type_entity_2.VariantType; } });
|
|
53
|
+
var variant_option_entity_2 = require("./entities/variant-option.entity");
|
|
54
|
+
Object.defineProperty(exports, "VariantOption", { enumerable: true, get: function () { return variant_option_entity_2.VariantOption; } });
|
|
55
|
+
var product_entity_2 = require("./entities/product.entity");
|
|
56
|
+
Object.defineProperty(exports, "Product", { enumerable: true, get: function () { return product_entity_2.Product; } });
|
|
57
|
+
var product_media_entity_2 = require("./entities/product-media.entity");
|
|
58
|
+
Object.defineProperty(exports, "ProductMedia", { enumerable: true, get: function () { return product_media_entity_2.ProductMedia; } });
|
|
59
|
+
Object.defineProperty(exports, "MediaType", { enumerable: true, get: function () { return product_media_entity_2.MediaType; } });
|
|
60
|
+
var product_variant_entity_2 = require("./entities/product-variant.entity");
|
|
61
|
+
Object.defineProperty(exports, "ProductVariant", { enumerable: true, get: function () { return product_variant_entity_2.ProductVariant; } });
|
|
62
|
+
var product_variant_option_entity_2 = require("./entities/product-variant-option.entity");
|
|
63
|
+
Object.defineProperty(exports, "ProductVariantOption", { enumerable: true, get: function () { return product_variant_option_entity_2.ProductVariantOption; } });
|
|
64
|
+
var store_entity_2 = require("./entities/store.entity");
|
|
65
|
+
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return store_entity_2.Store; } });
|
|
66
|
+
var product_store_entity_2 = require("./entities/product-store.entity");
|
|
67
|
+
Object.defineProperty(exports, "ProductStore", { enumerable: true, get: function () { return product_store_entity_2.ProductStore; } });
|
|
68
|
+
var inventory_entity_2 = require("./entities/inventory.entity");
|
|
69
|
+
Object.defineProperty(exports, "Inventory", { enumerable: true, get: function () { return inventory_entity_2.Inventory; } });
|
|
70
|
+
var store_inventory_entity_2 = require("./entities/store-inventory.entity");
|
|
71
|
+
Object.defineProperty(exports, "StoreInventory", { enumerable: true, get: function () { return store_inventory_entity_2.StoreInventory; } });
|
|
72
|
+
var inventory_stock_entity_2 = require("./entities/inventory-stock.entity");
|
|
73
|
+
Object.defineProperty(exports, "InventoryStock", { enumerable: true, get: function () { return inventory_stock_entity_2.InventoryStock; } });
|
|
74
|
+
var stock_movement_entity_2 = require("./entities/stock-movement.entity");
|
|
75
|
+
Object.defineProperty(exports, "StockMovement", { enumerable: true, get: function () { return stock_movement_entity_2.StockMovement; } });
|
|
76
|
+
var vendor_entity_2 = require("./entities/vendor.entity");
|
|
77
|
+
Object.defineProperty(exports, "Vendor", { enumerable: true, get: function () { return vendor_entity_2.Vendor; } });
|
|
78
|
+
var vendor_product_entity_2 = require("./entities/vendor-product.entity");
|
|
79
|
+
Object.defineProperty(exports, "VendorProduct", { enumerable: true, get: function () { return vendor_product_entity_2.VendorProduct; } });
|
|
80
|
+
var purchase_order_entity_2 = require("./entities/purchase-order.entity");
|
|
81
|
+
Object.defineProperty(exports, "PurchaseOrder", { enumerable: true, get: function () { return purchase_order_entity_2.PurchaseOrder; } });
|
|
82
|
+
var purchase_order_item_entity_2 = require("./entities/purchase-order-item.entity");
|
|
83
|
+
Object.defineProperty(exports, "PurchaseOrderItem", { enumerable: true, get: function () { return purchase_order_item_entity_2.PurchaseOrderItem; } });
|
|
84
|
+
Object.defineProperty(exports, "PurchaseOrderItemStatus", { enumerable: true, get: function () { return purchase_order_item_entity_2.PurchaseOrderItemStatus; } });
|
|
29
85
|
var osName_1 = require("./utils/enums/osName");
|
|
30
86
|
Object.defineProperty(exports, "OsName", { enumerable: true, get: function () { return osName_1.OsName; } });
|
|
31
87
|
var productApp_1 = require("./utils/enums/productApp");
|
|
@@ -36,6 +92,12 @@ var language_1 = require("./utils/enums/language");
|
|
|
36
92
|
Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return language_1.Language; } });
|
|
37
93
|
var status_1 = require("./utils/enums/status");
|
|
38
94
|
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_1.Status; } });
|
|
95
|
+
var gender_1 = require("./utils/enums/gender");
|
|
96
|
+
Object.defineProperty(exports, "Gender", { enumerable: true, get: function () { return gender_1.Gender; } });
|
|
97
|
+
var purchaseOrderStatus_1 = require("./utils/enums/purchaseOrderStatus");
|
|
98
|
+
Object.defineProperty(exports, "PurchaseOrderStatus", { enumerable: true, get: function () { return purchaseOrderStatus_1.PurchaseOrderStatus; } });
|
|
99
|
+
var stockMovementType_1 = require("./utils/enums/stockMovementType");
|
|
100
|
+
Object.defineProperty(exports, "StockMovementType", { enumerable: true, get: function () { return stockMovementType_1.StockMovementType; } });
|
|
39
101
|
function getDbModels() {
|
|
40
102
|
return [
|
|
41
103
|
apikey_entity_1.ApiKey,
|
|
@@ -46,6 +108,24 @@ function getDbModels() {
|
|
|
46
108
|
translation_entity_1.Translation,
|
|
47
109
|
user_entity_1.User,
|
|
48
110
|
userDevice_entity_1.UserDevice,
|
|
111
|
+
category_entity_1.Category,
|
|
112
|
+
brand_entity_1.Brand,
|
|
113
|
+
variant_type_entity_1.VariantType,
|
|
114
|
+
variant_option_entity_1.VariantOption,
|
|
115
|
+
product_entity_1.Product,
|
|
116
|
+
product_media_entity_1.ProductMedia,
|
|
117
|
+
product_variant_entity_1.ProductVariant,
|
|
118
|
+
product_variant_option_entity_1.ProductVariantOption,
|
|
119
|
+
store_entity_1.Store,
|
|
120
|
+
product_store_entity_1.ProductStore,
|
|
121
|
+
inventory_entity_1.Inventory,
|
|
122
|
+
store_inventory_entity_1.StoreInventory,
|
|
123
|
+
inventory_stock_entity_1.InventoryStock,
|
|
124
|
+
stock_movement_entity_1.StockMovement,
|
|
125
|
+
vendor_entity_1.Vendor,
|
|
126
|
+
vendor_product_entity_1.VendorProduct,
|
|
127
|
+
purchase_order_entity_1.PurchaseOrder,
|
|
128
|
+
purchase_order_item_entity_1.PurchaseOrderItem,
|
|
49
129
|
];
|
|
50
130
|
}
|
|
51
131
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;AA+FA,kCAsCC;AAlID,8DAAoD;AACpD,sEAA4D;AAC5D,wDAA8C;AAC9C,gEAAqD;AACrD,gEAAqD;AACrD,wDAA8C;AAC9C,oEAA0D;AAC1D,4DAAkD;AAGlD,gEAAsD;AACtD,0DAAgD;AAChD,wEAA6D;AAC7D,4EAAiE;AACjE,8DAAoD;AACpD,0EAA+D;AAC/D,8EAAmE;AACnE,4FAAgF;AAGhF,0DAAgD;AAChD,0EAA+D;AAG/D,kEAAwD;AACxD,8EAAmE;AACnE,8EAAmE;AACnE,4EAAiE;AAGjE,4DAAkD;AAClD,4EAAiE;AACjE,4EAAiE;AACjE,sFAA0E;AAO1E,0DAAkD;AAAzC,uGAAA,MAAM,OAAA;AACf,4DAAoD;AAA3C,yGAAA,OAAO,OAAA;AAChB,oEAA4D;AAAnD,iHAAA,WAAW,OAAA;AACpB,sDAA8C;AAArC,mGAAA,IAAI,OAAA;AACb,8DAAqD;AAA5C,0GAAA,OAAO,OAAA;AAChB,8DAAqD;AAA5C,0GAAA,OAAO,OAAA;AAChB,sDAA8C;AAArC,mGAAA,IAAI,OAAA;AACb,kEAA0D;AAAjD,+GAAA,UAAU,OAAA;AAGnB,8DAAsD;AAA7C,2GAAA,QAAQ,OAAA;AACjB,wDAAgD;AAAvC,qGAAA,KAAK,OAAA;AACd,sEAA6D;AAApD,kHAAA,WAAW,OAAA;AACpB,0EAAiE;AAAxD,sHAAA,aAAa,OAAA;AACtB,4DAAoD;AAA3C,yGAAA,OAAO,OAAA;AAChB,wEAA0E;AAAjE,oHAAA,YAAY,OAAA;AAAE,iHAAA,SAAS,OAAA;AAChC,4EAAmE;AAA1D,wHAAA,cAAc,OAAA;AACvB,0FAAgF;AAAvE,qIAAA,oBAAoB,OAAA;AAG7B,wDAAgD;AAAvC,qGAAA,KAAK,OAAA;AACd,wEAA+D;AAAtD,oHAAA,YAAY,OAAA;AAGrB,gEAAwD;AAA/C,6GAAA,SAAS,OAAA;AAClB,4EAAmE;AAA1D,wHAAA,cAAc,OAAA;AACvB,4EAAmE;AAA1D,wHAAA,cAAc,OAAA;AACvB,0EAAiE;AAAxD,sHAAA,aAAa,OAAA;AAGtB,0DAAkD;AAAzC,uGAAA,MAAM,OAAA;AACf,0EAAiE;AAAxD,sHAAA,aAAa,OAAA;AACtB,0EAAiE;AAAxD,sHAAA,aAAa,OAAA;AACtB,oFAG+C;AAF7C,+HAAA,iBAAiB,OAAA;AACjB,qIAAA,uBAAuB,OAAA;AAIzB,+CAA8C;AAArC,gGAAA,MAAM,OAAA;AACf,uDAAsD;AAA7C,wGAAA,UAAU,OAAA;AACnB,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,mDAAkD;AAAzC,oGAAA,QAAQ,OAAA;AACjB,+CAA8C;AAArC,gGAAA,MAAM,OAAA;AACf,+CAA8C;AAArC,gGAAA,MAAM,OAAA;AACf,yEAAwE;AAA/D,0HAAA,mBAAmB,OAAA;AAC5B,qEAAoE;AAA3D,sHAAA,iBAAiB,OAAA;AAM1B,SAAgB,WAAW;IACzB,OAAO;QAEL,sBAAM;QACN,kBAAI;QACJ,wBAAO;QACP,yBAAO;QACP,yBAAO;QACP,gCAAW;QACX,kBAAI;QACJ,8BAAU;QAGV,0BAAQ;QACR,oBAAK;QACL,iCAAW;QACX,qCAAa;QACb,wBAAO;QACP,mCAAY;QACZ,uCAAc;QACd,oDAAoB;QAGpB,oBAAK;QACL,mCAAY;QAGZ,4BAAS;QACT,uCAAc;QACd,uCAAc;QACd,qCAAa;QAGb,sBAAM;QACN,qCAAa;QACb,qCAAa;QACb,8CAAiB;KAClB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PurchaseOrderStatus = void 0;
|
|
4
|
+
var PurchaseOrderStatus;
|
|
5
|
+
(function (PurchaseOrderStatus) {
|
|
6
|
+
PurchaseOrderStatus["DRAFT"] = "draft";
|
|
7
|
+
PurchaseOrderStatus["SENT_TO_VENDOR"] = "sent_to_vendor";
|
|
8
|
+
PurchaseOrderStatus["PARTIALLY_RECEIVED"] = "partially_received";
|
|
9
|
+
PurchaseOrderStatus["FULLY_RECEIVED"] = "fully_received";
|
|
10
|
+
PurchaseOrderStatus["CLOSED"] = "closed";
|
|
11
|
+
PurchaseOrderStatus["CANCELLED"] = "cancelled";
|
|
12
|
+
})(PurchaseOrderStatus || (exports.PurchaseOrderStatus = PurchaseOrderStatus = {}));
|
|
13
|
+
//# sourceMappingURL=purchaseOrderStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchaseOrderStatus.js","sourceRoot":"","sources":["../../../../../../libs/tatayab-entities-library/src/utils/enums/purchaseOrderStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,wDAAiC,CAAA;IACjC,gEAAyC,CAAA;IACzC,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;AACzB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum StockMovementType {
|
|
2
|
+
RECEIVED = "received",
|
|
3
|
+
RESERVED = "reserved",
|
|
4
|
+
RESERVATION_RELEASED = "reservation_released",
|
|
5
|
+
ADJUSTMENT_ADD = "adjustment_add",
|
|
6
|
+
ADJUSTMENT_REMOVE = "adjustment_remove",
|
|
7
|
+
RETURNED_FROM_CUSTOMER = "returned_from_customer",
|
|
8
|
+
RETURNED_TO_VENDOR = "returned_to_vendor",
|
|
9
|
+
TRANSFER_IN = "transfer_in",
|
|
10
|
+
TRANSFER_OUT = "transfer_out"
|
|
11
|
+
}
|