tt-entities 0.0.16 → 0.0.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.
- package/dist/libs/tatayab-entities-library/src/entities/permission.entity.d.ts +8 -0
- package/dist/libs/tatayab-entities-library/src/entities/permission.entity.js +38 -0
- package/dist/libs/tatayab-entities-library/src/entities/permission.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.d.ts +3 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.js +12 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-store.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/product-tag.entity.d.ts +5 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-tag.entity.js +32 -0
- package/dist/libs/tatayab-entities-library/src/entities/product-tag.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.d.ts +2 -0
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.js +6 -0
- package/dist/libs/tatayab-entities-library/src/entities/product.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/role-permission.entity.d.ts +5 -0
- package/dist/libs/tatayab-entities-library/src/entities/role-permission.entity.js +32 -0
- package/dist/libs/tatayab-entities-library/src/entities/role-permission.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.d.ts +3 -0
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.js +11 -1
- package/dist/libs/tatayab-entities-library/src/entities/sys.role.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.d.ts +6 -6
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.js +15 -15
- package/dist/libs/tatayab-entities-library/src/entities/sys.user.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/src/entities/tag.entity.d.ts +12 -0
- package/dist/libs/tatayab-entities-library/src/entities/tag.entity.js +54 -0
- package/dist/libs/tatayab-entities-library/src/entities/tag.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/src/index.d.ts +4 -1
- package/dist/libs/tatayab-entities-library/src/index.js +17 -5
- package/dist/libs/tatayab-entities-library/src/index.js.map +1 -1
- package/dist/src/main.js +392 -224
- package/libs/tatayab-entities-library/src/entities/permission.entity.ts +26 -0
- package/libs/tatayab-entities-library/src/entities/product-store.entity.ts +11 -1
- package/libs/tatayab-entities-library/src/entities/product-tag.entity.ts +19 -0
- package/libs/tatayab-entities-library/src/entities/product.entity.ts +5 -0
- package/libs/tatayab-entities-library/src/entities/role-permission.entity.ts +19 -0
- package/libs/tatayab-entities-library/src/entities/sys.role.entity.ts +16 -2
- package/libs/tatayab-entities-library/src/entities/sys.user.entity.ts +22 -21
- package/libs/tatayab-entities-library/src/entities/tag.entity.ts +38 -0
- package/libs/tatayab-entities-library/src/index.ts +20 -3
- package/package.json +1 -1
- package/libs/tatayab-entities-library/src/entities/translation.entity.ts +0 -17
|
@@ -0,0 +1,38 @@
|
|
|
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.Permission = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const sys_role_entity_1 = require("./sys.role.entity");
|
|
15
|
+
const role_permission_entity_1 = require("./role-permission.entity");
|
|
16
|
+
let Permission = class Permission extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.Permission = Permission;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Permission.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Permission.prototype, "displayName", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Permission.prototype, "group", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => sys_role_entity_1.SysRole, () => role_permission_entity_1.RolePermission),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], Permission.prototype, "roles", void 0);
|
|
35
|
+
exports.Permission = Permission = __decorate([
|
|
36
|
+
sequelize_typescript_1.Table
|
|
37
|
+
], Permission);
|
|
38
|
+
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAK8B;AAC9B,uDAA4C;AAC5C,qEAA0D;AAGnD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAK;CAepC,CAAA;AAfY,gCAAU;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACtB;AAIb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;+CACD;AAIpB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACP;AAGd;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,yBAAO,EAAE,GAAG,EAAE,CAAC,uCAAc,CAAC;;yCAC1B;qBAdd,UAAU;IADtB,4BAAK;GACO,UAAU,CAetB"}
|
|
@@ -31,6 +31,18 @@ __decorate([
|
|
|
31
31
|
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true }),
|
|
32
32
|
__metadata("design:type", Number)
|
|
33
33
|
], ProductStore.prototype, "price", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], ProductStore.prototype, "salePrice", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: true }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], ProductStore.prototype, "saleStartDate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: true }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], ProductStore.prototype, "saleEndDate", void 0);
|
|
34
46
|
__decorate([
|
|
35
47
|
(0, sequelize_typescript_1.Column)({
|
|
36
48
|
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-store.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/product-store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAM8B;AAC9B,qDAA2C;AAC3C,iDAAuC;AACvC,kDAA+C;AAGxC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;
|
|
1
|
+
{"version":3,"file":"product-store.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/product-store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAM8B;AAC9B,qDAA2C;AAC3C,iDAAuC;AACvC,kDAA+C;AAGxC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CA4BtC,CAAA;AA5BY,oCAAY;AAGf;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;+CACH;AAIlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACvB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACL;AAIhB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;2CACpC;AAIf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;+CAChC;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;8BACzB,IAAI;mDAAC;AAGrB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;8BAC3B,IAAI;iDAAC;AAMnB;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;;4CACqB;uBA3BZ,YAAY;IADxB,4BAAK;GACO,YAAY,CA4BxB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.ProductTag = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const product_entity_1 = require("./product.entity");
|
|
15
|
+
const tag_entity_1 = require("./tag.entity");
|
|
16
|
+
let ProductTag = class ProductTag extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.ProductTag = ProductTag;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.ForeignKey)(() => product_entity_1.Product),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProductTag.prototype, "productId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.ForeignKey)(() => tag_entity_1.Tag),
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ProductTag.prototype, "tagId", void 0);
|
|
29
|
+
exports.ProductTag = ProductTag = __decorate([
|
|
30
|
+
sequelize_typescript_1.Table
|
|
31
|
+
], ProductTag);
|
|
32
|
+
//# sourceMappingURL=product-tag.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-tag.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/product-tag.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAK8B;AAC9B,qDAA2C;AAC3C,6CAAmC;AAG5B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAK;CAQpC,CAAA;AARY,gCAAU;AAGb;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACH;AAIlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,gBAAG,CAAC;IACrB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACP;qBAPX,UAAU;IADtB,4BAAK;GACO,UAAU,CAQtB"}
|
|
@@ -4,6 +4,7 @@ import { Category } from './category.entity';
|
|
|
4
4
|
import { ProductMedia } from './product-media.entity';
|
|
5
5
|
import { ProductVariant } from './product-variant.entity';
|
|
6
6
|
import { Store } from './store.entity';
|
|
7
|
+
import { Tag } from './tag.entity';
|
|
7
8
|
import { Status } from '../utils/enums/status';
|
|
8
9
|
export declare class Product extends Model {
|
|
9
10
|
nameEn: string;
|
|
@@ -24,4 +25,5 @@ export declare class Product extends Model {
|
|
|
24
25
|
media: ProductMedia[];
|
|
25
26
|
variants: ProductVariant[];
|
|
26
27
|
stores: Store[];
|
|
28
|
+
tags: Tag[];
|
|
27
29
|
}
|
|
@@ -16,7 +16,9 @@ const category_entity_1 = require("./category.entity");
|
|
|
16
16
|
const product_media_entity_1 = require("./product-media.entity");
|
|
17
17
|
const product_variant_entity_1 = require("./product-variant.entity");
|
|
18
18
|
const product_store_entity_1 = require("./product-store.entity");
|
|
19
|
+
const product_tag_entity_1 = require("./product-tag.entity");
|
|
19
20
|
const store_entity_1 = require("./store.entity");
|
|
21
|
+
const tag_entity_1 = require("./tag.entity");
|
|
20
22
|
const status_1 = require("../utils/enums/status");
|
|
21
23
|
let Product = class Product extends sequelize_typescript_1.Model {
|
|
22
24
|
};
|
|
@@ -98,6 +100,10 @@ __decorate([
|
|
|
98
100
|
(0, sequelize_typescript_1.BelongsToMany)(() => store_entity_1.Store, () => product_store_entity_1.ProductStore),
|
|
99
101
|
__metadata("design:type", Array)
|
|
100
102
|
], Product.prototype, "stores", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => tag_entity_1.Tag, () => product_tag_entity_1.ProductTag),
|
|
105
|
+
__metadata("design:type", Array)
|
|
106
|
+
], Product.prototype, "tags", void 0);
|
|
101
107
|
exports.Product = Product = __decorate([
|
|
102
108
|
sequelize_typescript_1.Table
|
|
103
109
|
], Product);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,iDAAuC;AACvC,uDAA6C;AAC7C,iEAAsD;AACtD,qEAA0D;AAC1D,iEAAsD;AACtD,iDAAuC;AACvC,kDAA+C;AAGxC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;
|
|
1
|
+
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,iDAAuC;AACvC,uDAA6C;AAC7C,iEAAsD;AACtD,qEAA0D;AAC1D,iEAAsD;AACtD,6DAAkD;AAClD,iDAAuC;AACvC,6CAAmC;AACnC,kDAA+C;AAGxC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;CAiEjC,CAAA;AAjEY,0BAAO;AAEV;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;uCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;uCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;8CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;8CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;oCACP;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;wCACH;AAIjB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;6CAChD;AAIrB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACvB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;wCACH;AAIjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,0BAAQ,CAAC;IAC1B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;2CACA;AAGpB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;0CACF;AAGlB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;2CACJ;AAGpB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;4CACH;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;;uCACqB;AAKf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;8BACR,oBAAK;sCAAC;AAGb;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,CAAC;8BACR,0BAAQ;yCAAC;AAGnB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,mCAAY,CAAC;;sCACE;AAGtB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;;yCACK;AAG3B;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,GAAG,EAAE,CAAC,mCAAY,CAAC;;uCACvB;AAGhB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,gBAAG,EAAE,GAAG,EAAE,CAAC,+BAAU,CAAC;;qCACvB;kBAhET,OAAO;IADnB,4BAAK;GACO,OAAO,CAiEnB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.RolePermission = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const sys_role_entity_1 = require("./sys.role.entity");
|
|
15
|
+
const permission_entity_1 = require("./permission.entity");
|
|
16
|
+
let RolePermission = class RolePermission extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.RolePermission = RolePermission;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.ForeignKey)(() => sys_role_entity_1.SysRole),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], RolePermission.prototype, "sysRoleId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.ForeignKey)(() => permission_entity_1.Permission),
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], RolePermission.prototype, "permissionId", void 0);
|
|
29
|
+
exports.RolePermission = RolePermission = __decorate([
|
|
30
|
+
sequelize_typescript_1.Table
|
|
31
|
+
], RolePermission);
|
|
32
|
+
//# sourceMappingURL=role-permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-permission.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/role-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAK8B;AAC9B,uDAA4C;AAC5C,2DAAiD;AAG1C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAQxC,CAAA;AARY,wCAAc;AAGjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,yBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;iDACH;AAIlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,8BAAU,CAAC;IAC5B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;oDACA;yBAPlB,cAAc;IAD1B,4BAAK;GACO,cAAc,CAQ1B"}
|
|
@@ -11,13 +11,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SysRole = void 0;
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const permission_entity_1 = require("./permission.entity");
|
|
15
|
+
const role_permission_entity_1 = require("./role-permission.entity");
|
|
14
16
|
let SysRole = class SysRole extends sequelize_typescript_1.Model {
|
|
15
17
|
};
|
|
16
18
|
exports.SysRole = SysRole;
|
|
17
19
|
__decorate([
|
|
18
|
-
sequelize_typescript_1.Column,
|
|
20
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
19
21
|
__metadata("design:type", String)
|
|
20
22
|
], SysRole.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SysRole.prototype, "displayName", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => permission_entity_1.Permission, () => role_permission_entity_1.RolePermission),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], SysRole.prototype, "permissions", void 0);
|
|
21
31
|
exports.SysRole = SysRole = __decorate([
|
|
22
32
|
sequelize_typescript_1.Table
|
|
23
33
|
], SysRole);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sys.role.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"sys.role.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAM8B;AAC9B,2DAAiD;AACjD,qEAA0D;AAGnD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;CASjC,CAAA;AATY,0BAAO;AAEV;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACtB;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;4CACC;AAGrB;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,8BAAU,EAAE,GAAG,EAAE,CAAC,uCAAc,CAAC;;4CACpB;kBARvB,OAAO;IADnB,4BAAK;GACO,OAAO,CASnB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { Status } from '../utils/enums/status';
|
|
3
2
|
import { SysRole } from './sys.role.entity';
|
|
3
|
+
import { Status } from '../utils/enums/status';
|
|
4
4
|
export declare class SysUser extends Model {
|
|
5
5
|
name: string;
|
|
6
6
|
username: string;
|
|
@@ -8,9 +8,9 @@ export declare class SysUser extends Model {
|
|
|
8
8
|
phoneExt: string;
|
|
9
9
|
phone: string;
|
|
10
10
|
password: string;
|
|
11
|
-
|
|
12
|
-
roleId
|
|
13
|
-
|
|
14
|
-
lastLogin
|
|
15
|
-
role
|
|
11
|
+
profilePicture?: string;
|
|
12
|
+
roleId?: number;
|
|
13
|
+
status: Status;
|
|
14
|
+
lastLogin?: Date;
|
|
15
|
+
role?: SysRole;
|
|
16
16
|
}
|
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SysUser = void 0;
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const status_1 = require("../utils/enums/status");
|
|
15
14
|
const sys_role_entity_1 = require("./sys.role.entity");
|
|
15
|
+
const status_1 = require("../utils/enums/status");
|
|
16
16
|
let SysUser = class SysUser extends sequelize_typescript_1.Model {
|
|
17
17
|
};
|
|
18
18
|
exports.SysUser = SysUser;
|
|
@@ -21,43 +21,43 @@ __decorate([
|
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], SysUser.prototype, "name", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], SysUser.prototype, "username", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
sequelize_typescript_1.Column,
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], SysUser.prototype, "email", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
sequelize_typescript_1.Column,
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], SysUser.prototype, "phoneExt", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
sequelize_typescript_1.Column,
|
|
36
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], SysUser.prototype, "phone", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
sequelize_typescript_1.Column,
|
|
40
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], SysUser.prototype, "password", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
|
|
45
|
-
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
46
|
-
defaultValue: status_1.Status.ACTIVE,
|
|
47
|
-
}),
|
|
44
|
+
sequelize_typescript_1.Column,
|
|
48
45
|
__metadata("design:type", String)
|
|
49
|
-
], SysUser.prototype, "
|
|
46
|
+
], SysUser.prototype, "profilePicture", void 0);
|
|
50
47
|
__decorate([
|
|
51
48
|
(0, sequelize_typescript_1.ForeignKey)(() => sys_role_entity_1.SysRole),
|
|
52
|
-
sequelize_typescript_1.Column,
|
|
49
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
53
50
|
__metadata("design:type", Number)
|
|
54
51
|
], SysUser.prototype, "roleId", void 0);
|
|
55
52
|
__decorate([
|
|
56
|
-
sequelize_typescript_1.Column
|
|
53
|
+
(0, sequelize_typescript_1.Column)({
|
|
54
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
55
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
56
|
+
}),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
|
-
], SysUser.prototype, "
|
|
58
|
+
], SysUser.prototype, "status", void 0);
|
|
59
59
|
__decorate([
|
|
60
|
-
sequelize_typescript_1.Column,
|
|
60
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
61
61
|
__metadata("design:type", Date)
|
|
62
62
|
], SysUser.prototype, "lastLogin", void 0);
|
|
63
63
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sys.user.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,kDAA+C;
|
|
1
|
+
{"version":3,"file":"sys.user.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/sys.user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,uDAA4C;AAC5C,kDAA+C;AAGxC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAK;CAqCjC,CAAA;AArCY,0BAAO;AAEV;IADP,6BAAM;;qCACc;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACJ;AAGjB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACrB;AAGd;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACJ;AAGjB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;sCACP;AAGd;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;yCACJ;AAGjB;IADP,6BAAM;;+CACyB;AAIxB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,yBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;uCACJ;AAMhB;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;;uCACqB;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;0CAAC;AAGjB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,yBAAO,CAAC;8BACV,yBAAO;qCAAC;kBApCZ,OAAO;IADnB,4BAAK;GACO,OAAO,CAqCnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Product } from './product.entity';
|
|
3
|
+
import { Status } from '../utils/enums/status';
|
|
4
|
+
export declare class Tag extends Model {
|
|
5
|
+
slug: string;
|
|
6
|
+
nameEn: string;
|
|
7
|
+
nameAr: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
sortOrder: number;
|
|
10
|
+
status: Status;
|
|
11
|
+
products: Product[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.Tag = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const product_entity_1 = require("./product.entity");
|
|
15
|
+
const product_tag_entity_1 = require("./product-tag.entity");
|
|
16
|
+
const status_1 = require("../utils/enums/status");
|
|
17
|
+
let Tag = class Tag extends sequelize_typescript_1.Model {
|
|
18
|
+
};
|
|
19
|
+
exports.Tag = Tag;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Tag.prototype, "slug", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Tag.prototype, "nameEn", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Tag.prototype, "nameAr", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Tag.prototype, "color", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], Tag.prototype, "sortOrder", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, sequelize_typescript_1.Column)({
|
|
42
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
43
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Tag.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => product_entity_1.Product, () => product_tag_entity_1.ProductTag),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], Tag.prototype, "products", void 0);
|
|
51
|
+
exports.Tag = Tag = __decorate([
|
|
52
|
+
sequelize_typescript_1.Table
|
|
53
|
+
], Tag);
|
|
54
|
+
//# sourceMappingURL=tag.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.entity.js","sourceRoot":"","sources":["../../../../../libs/tatayab-entities-library/src/entities/tag.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAM8B;AAC9B,qDAA2C;AAC3C,6DAAkD;AAClD,kDAA+C;AAGxC,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,4BAAK;CAyB7B,CAAA;AAzBY,kBAAG;AAEN;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;iCACtB;AAGb;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;mCACN;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;mCACN;AAIf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;kCACL;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;sCACF;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;;mCACqB;AAGf;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,GAAG,EAAE,CAAC,+BAAU,CAAC;;qCACnB;cAxBjB,GAAG;IADf,4BAAK;GACO,GAAG,CAyBf"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ModelCtor } from 'sequelize-typescript';
|
|
2
2
|
export { ApiKey } from './entities/apikey.entity';
|
|
3
3
|
export { Country } from './entities/country.entity';
|
|
4
|
-
export { Translation } from './entities/translation.entity';
|
|
5
4
|
export { Area } from './entities/area.entity';
|
|
6
5
|
export { SysRole } from './entities/sys.role.entity';
|
|
7
6
|
export { SysUser } from './entities/sys.user.entity';
|
|
@@ -15,6 +14,8 @@ export { Product } from './entities/product.entity';
|
|
|
15
14
|
export { ProductMedia, MediaType } from './entities/product-media.entity';
|
|
16
15
|
export { ProductVariant } from './entities/product-variant.entity';
|
|
17
16
|
export { ProductVariantOption } from './entities/product-variant-option.entity';
|
|
17
|
+
export { Tag } from './entities/tag.entity';
|
|
18
|
+
export { ProductTag } from './entities/product-tag.entity';
|
|
18
19
|
export { Store } from './entities/store.entity';
|
|
19
20
|
export { ProductStore } from './entities/product-store.entity';
|
|
20
21
|
export { Inventory } from './entities/inventory.entity';
|
|
@@ -25,6 +26,8 @@ export { Vendor } from './entities/vendor.entity';
|
|
|
25
26
|
export { VendorProduct } from './entities/vendor-product.entity';
|
|
26
27
|
export { PurchaseOrder } from './entities/purchase-order.entity';
|
|
27
28
|
export { PurchaseOrderItem, PurchaseOrderItemStatus, } from './entities/purchase-order-item.entity';
|
|
29
|
+
export { Permission } from './entities/permission.entity';
|
|
30
|
+
export { RolePermission } from './entities/role-permission.entity';
|
|
28
31
|
export { OsName } from './utils/enums/osName';
|
|
29
32
|
export { ProductApp } from './utils/enums/productApp';
|
|
30
33
|
export { VersionType } from './utils/enums/versiontype';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
3
|
+
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.RolePermission = exports.Permission = exports.PurchaseOrderItemStatus = exports.PurchaseOrderItem = exports.PurchaseOrder = exports.VendorProduct = exports.Vendor = exports.StockMovement = exports.InventoryStock = exports.StoreInventory = exports.Inventory = exports.ProductStore = exports.Store = exports.ProductTag = exports.Tag = 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.Country = exports.ApiKey = void 0;
|
|
4
4
|
exports.getDbModels = getDbModels;
|
|
5
5
|
const country_entity_1 = require("./entities/country.entity");
|
|
6
|
-
const translation_entity_1 = require("./entities/translation.entity");
|
|
7
6
|
const area_entity_1 = require("./entities/area.entity");
|
|
8
7
|
const sys_role_entity_1 = require("./entities/sys.role.entity");
|
|
9
8
|
const sys_user_entity_1 = require("./entities/sys.user.entity");
|
|
@@ -18,6 +17,8 @@ const product_entity_1 = require("./entities/product.entity");
|
|
|
18
17
|
const product_media_entity_1 = require("./entities/product-media.entity");
|
|
19
18
|
const product_variant_entity_1 = require("./entities/product-variant.entity");
|
|
20
19
|
const product_variant_option_entity_1 = require("./entities/product-variant-option.entity");
|
|
20
|
+
const tag_entity_1 = require("./entities/tag.entity");
|
|
21
|
+
const product_tag_entity_1 = require("./entities/product-tag.entity");
|
|
21
22
|
const store_entity_1 = require("./entities/store.entity");
|
|
22
23
|
const product_store_entity_1 = require("./entities/product-store.entity");
|
|
23
24
|
const inventory_entity_1 = require("./entities/inventory.entity");
|
|
@@ -28,12 +29,12 @@ const vendor_entity_1 = require("./entities/vendor.entity");
|
|
|
28
29
|
const vendor_product_entity_1 = require("./entities/vendor-product.entity");
|
|
29
30
|
const purchase_order_entity_1 = require("./entities/purchase-order.entity");
|
|
30
31
|
const purchase_order_item_entity_1 = require("./entities/purchase-order-item.entity");
|
|
32
|
+
const permission_entity_1 = require("@app/tatayab-entities-library/entities/permission.entity");
|
|
33
|
+
const role_permission_entity_1 = require("@app/tatayab-entities-library/entities/role-permission.entity");
|
|
31
34
|
var apikey_entity_2 = require("./entities/apikey.entity");
|
|
32
35
|
Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return apikey_entity_2.ApiKey; } });
|
|
33
36
|
var country_entity_2 = require("./entities/country.entity");
|
|
34
37
|
Object.defineProperty(exports, "Country", { enumerable: true, get: function () { return country_entity_2.Country; } });
|
|
35
|
-
var translation_entity_2 = require("./entities/translation.entity");
|
|
36
|
-
Object.defineProperty(exports, "Translation", { enumerable: true, get: function () { return translation_entity_2.Translation; } });
|
|
37
38
|
var area_entity_2 = require("./entities/area.entity");
|
|
38
39
|
Object.defineProperty(exports, "Area", { enumerable: true, get: function () { return area_entity_2.Area; } });
|
|
39
40
|
var sys_role_entity_2 = require("./entities/sys.role.entity");
|
|
@@ -61,6 +62,10 @@ var product_variant_entity_2 = require("./entities/product-variant.entity");
|
|
|
61
62
|
Object.defineProperty(exports, "ProductVariant", { enumerable: true, get: function () { return product_variant_entity_2.ProductVariant; } });
|
|
62
63
|
var product_variant_option_entity_2 = require("./entities/product-variant-option.entity");
|
|
63
64
|
Object.defineProperty(exports, "ProductVariantOption", { enumerable: true, get: function () { return product_variant_option_entity_2.ProductVariantOption; } });
|
|
65
|
+
var tag_entity_2 = require("./entities/tag.entity");
|
|
66
|
+
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return tag_entity_2.Tag; } });
|
|
67
|
+
var product_tag_entity_2 = require("./entities/product-tag.entity");
|
|
68
|
+
Object.defineProperty(exports, "ProductTag", { enumerable: true, get: function () { return product_tag_entity_2.ProductTag; } });
|
|
64
69
|
var store_entity_2 = require("./entities/store.entity");
|
|
65
70
|
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return store_entity_2.Store; } });
|
|
66
71
|
var product_store_entity_2 = require("./entities/product-store.entity");
|
|
@@ -82,6 +87,10 @@ Object.defineProperty(exports, "PurchaseOrder", { enumerable: true, get: functio
|
|
|
82
87
|
var purchase_order_item_entity_2 = require("./entities/purchase-order-item.entity");
|
|
83
88
|
Object.defineProperty(exports, "PurchaseOrderItem", { enumerable: true, get: function () { return purchase_order_item_entity_2.PurchaseOrderItem; } });
|
|
84
89
|
Object.defineProperty(exports, "PurchaseOrderItemStatus", { enumerable: true, get: function () { return purchase_order_item_entity_2.PurchaseOrderItemStatus; } });
|
|
90
|
+
var permission_entity_2 = require("./entities/permission.entity");
|
|
91
|
+
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return permission_entity_2.Permission; } });
|
|
92
|
+
var role_permission_entity_2 = require("./entities/role-permission.entity");
|
|
93
|
+
Object.defineProperty(exports, "RolePermission", { enumerable: true, get: function () { return role_permission_entity_2.RolePermission; } });
|
|
85
94
|
var osName_1 = require("./utils/enums/osName");
|
|
86
95
|
Object.defineProperty(exports, "OsName", { enumerable: true, get: function () { return osName_1.OsName; } });
|
|
87
96
|
var productApp_1 = require("./utils/enums/productApp");
|
|
@@ -105,7 +114,6 @@ function getDbModels() {
|
|
|
105
114
|
country_entity_1.Country,
|
|
106
115
|
sys_role_entity_1.SysRole,
|
|
107
116
|
sys_user_entity_1.SysUser,
|
|
108
|
-
translation_entity_1.Translation,
|
|
109
117
|
user_entity_1.User,
|
|
110
118
|
userDevice_entity_1.UserDevice,
|
|
111
119
|
category_entity_1.Category,
|
|
@@ -116,6 +124,8 @@ function getDbModels() {
|
|
|
116
124
|
product_media_entity_1.ProductMedia,
|
|
117
125
|
product_variant_entity_1.ProductVariant,
|
|
118
126
|
product_variant_option_entity_1.ProductVariantOption,
|
|
127
|
+
tag_entity_1.Tag,
|
|
128
|
+
product_tag_entity_1.ProductTag,
|
|
119
129
|
store_entity_1.Store,
|
|
120
130
|
product_store_entity_1.ProductStore,
|
|
121
131
|
inventory_entity_1.Inventory,
|
|
@@ -126,6 +136,8 @@ function getDbModels() {
|
|
|
126
136
|
vendor_product_entity_1.VendorProduct,
|
|
127
137
|
purchase_order_entity_1.PurchaseOrder,
|
|
128
138
|
purchase_order_item_entity_1.PurchaseOrderItem,
|
|
139
|
+
permission_entity_1.Permission,
|
|
140
|
+
role_permission_entity_1.RolePermission,
|
|
129
141
|
];
|
|
130
142
|
}
|
|
131
143
|
//# 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":"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"}
|