tt-entities 0.0.29 → 0.0.30
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/entities/bundle-product.entity.d.ts +13 -0
- package/dist/libs/tatayab-entities-library/entities/bundle-product.entity.js +54 -0
- package/dist/libs/tatayab-entities-library/entities/bundle-product.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/bundle-store.entity.d.ts +11 -0
- package/dist/libs/tatayab-entities-library/entities/bundle-store.entity.js +56 -0
- package/dist/libs/tatayab-entities-library/entities/bundle-store.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/bundle.entity.d.ts +27 -0
- package/dist/libs/tatayab-entities-library/entities/bundle.entity.js +102 -0
- package/dist/libs/tatayab-entities-library/entities/bundle.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/index.d.ts +3 -0
- package/dist/libs/tatayab-entities-library/index.js +14 -1
- package/dist/libs/tatayab-entities-library/index.js.map +1 -1
- package/dist/src/main.js +261 -6
- package/libs/tatayab-entities-library/src/entities/bundle-product.entity.ts +38 -0
- package/libs/tatayab-entities-library/src/entities/bundle-store.entity.ts +37 -0
- package/libs/tatayab-entities-library/src/entities/bundle.entity.ts +77 -0
- package/libs/tatayab-entities-library/src/index.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Bundle } from './bundle.entity';
|
|
3
|
+
import { Product } from './product.entity';
|
|
4
|
+
import { ProductVariant } from './product-variant.entity';
|
|
5
|
+
export declare class BundleProduct extends Model {
|
|
6
|
+
bundleId: number;
|
|
7
|
+
productId: number;
|
|
8
|
+
productVariantId?: number;
|
|
9
|
+
sortOrder: number;
|
|
10
|
+
bundle: Bundle;
|
|
11
|
+
product: Product;
|
|
12
|
+
variant?: ProductVariant;
|
|
13
|
+
}
|
|
@@ -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.BundleProduct = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const bundle_entity_1 = require("./bundle.entity");
|
|
15
|
+
const product_entity_1 = require("./product.entity");
|
|
16
|
+
const product_variant_entity_1 = require("./product-variant.entity");
|
|
17
|
+
let BundleProduct = class BundleProduct extends sequelize_typescript_1.Model {
|
|
18
|
+
};
|
|
19
|
+
exports.BundleProduct = BundleProduct;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.ForeignKey)(() => bundle_entity_1.Bundle),
|
|
22
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], BundleProduct.prototype, "bundleId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, sequelize_typescript_1.ForeignKey)(() => product_entity_1.Product),
|
|
27
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], BundleProduct.prototype, "productId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, sequelize_typescript_1.ForeignKey)(() => product_variant_entity_1.ProductVariant),
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], BundleProduct.prototype, "productVariantId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], BundleProduct.prototype, "sortOrder", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.BelongsTo)(() => bundle_entity_1.Bundle),
|
|
41
|
+
__metadata("design:type", bundle_entity_1.Bundle)
|
|
42
|
+
], BundleProduct.prototype, "bundle", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.BelongsTo)(() => product_entity_1.Product),
|
|
45
|
+
__metadata("design:type", product_entity_1.Product)
|
|
46
|
+
], BundleProduct.prototype, "product", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.BelongsTo)(() => product_variant_entity_1.ProductVariant),
|
|
49
|
+
__metadata("design:type", product_variant_entity_1.ProductVariant)
|
|
50
|
+
], BundleProduct.prototype, "variant", void 0);
|
|
51
|
+
exports.BundleProduct = BundleProduct = __decorate([
|
|
52
|
+
sequelize_typescript_1.Table
|
|
53
|
+
], BundleProduct);
|
|
54
|
+
//# sourceMappingURL=bundle-product.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-product.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/bundle-product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,mDAAyC;AACzC,qDAA2C;AAC3C,qEAA0D;AAGnD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAK;CA6BvC,CAAA;AA7BY,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;AAMlB;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,YAAY,EAAE,CAAC,EAAE,CAAC;;gDACF;AAKlB;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;wBA5BtB,aAAa;IADzB,4BAAK;GACO,aAAa,CA6BzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Status } from '../utils/enums/status';
|
|
3
|
+
export declare class BundleStore extends Model {
|
|
4
|
+
bundleId: number;
|
|
5
|
+
storeId: number;
|
|
6
|
+
price?: number;
|
|
7
|
+
salePrice?: number;
|
|
8
|
+
saleStartDate?: Date;
|
|
9
|
+
saleEndDate?: Date;
|
|
10
|
+
status: Status;
|
|
11
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.BundleStore = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const bundle_entity_1 = require("./bundle.entity");
|
|
15
|
+
const store_entity_1 = require("./store.entity");
|
|
16
|
+
const status_1 = require("../utils/enums/status");
|
|
17
|
+
let BundleStore = class BundleStore extends sequelize_typescript_1.Model {
|
|
18
|
+
};
|
|
19
|
+
exports.BundleStore = BundleStore;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.ForeignKey)(() => bundle_entity_1.Bundle),
|
|
22
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], BundleStore.prototype, "bundleId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, sequelize_typescript_1.ForeignKey)(() => store_entity_1.Store),
|
|
27
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], BundleStore.prototype, "storeId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], BundleStore.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
|
+
], BundleStore.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
|
+
], BundleStore.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
|
+
], BundleStore.prototype, "saleEndDate", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, sequelize_typescript_1.Column)({
|
|
48
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
49
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
50
|
+
}),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], BundleStore.prototype, "status", void 0);
|
|
53
|
+
exports.BundleStore = BundleStore = __decorate([
|
|
54
|
+
sequelize_typescript_1.Table
|
|
55
|
+
], BundleStore);
|
|
56
|
+
//# sourceMappingURL=bundle-store.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-store.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/bundle-store.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,mDAAyC;AACzC,iDAAuC;AACvC,kDAA+C;AAGxC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAK;CA4BrC,CAAA;AA5BY,kCAAW;AAGd;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;IACxB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;6CACJ;AAIjB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACvB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;4CACL;AAIhB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;0CACpC;AAIf;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;8CAChC;AAGnB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;8BACzB,IAAI;kDAAC;AAGrB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;8BAC3B,IAAI;gDAAC;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;;2CACqB;sBA3BZ,WAAW;IADvB,4BAAK;GACO,WAAW,CA4BvB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Category } from './category.entity';
|
|
3
|
+
import { Store } from './store.entity';
|
|
4
|
+
import { BundleProduct } from './bundle-product.entity';
|
|
5
|
+
import { BundleStore } from './bundle-store.entity';
|
|
6
|
+
import { Product } from './product.entity';
|
|
7
|
+
import { Status } from '../utils/enums/status';
|
|
8
|
+
export declare class Bundle extends Model {
|
|
9
|
+
sku: string;
|
|
10
|
+
nameEn: string;
|
|
11
|
+
nameAr: string;
|
|
12
|
+
descriptionEn?: string;
|
|
13
|
+
descriptionAr?: string;
|
|
14
|
+
image?: string;
|
|
15
|
+
totalProducts: number;
|
|
16
|
+
choiceCount: number;
|
|
17
|
+
defaultPrice: number;
|
|
18
|
+
categoryId?: number;
|
|
19
|
+
sortOrder: number;
|
|
20
|
+
isFeatured: boolean;
|
|
21
|
+
status: Status;
|
|
22
|
+
category?: Category;
|
|
23
|
+
bundleProducts: BundleProduct[];
|
|
24
|
+
products: Product[];
|
|
25
|
+
bundleStores: BundleStore[];
|
|
26
|
+
stores: Store[];
|
|
27
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.Bundle = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const category_entity_1 = require("./category.entity");
|
|
15
|
+
const store_entity_1 = require("./store.entity");
|
|
16
|
+
const bundle_product_entity_1 = require("./bundle-product.entity");
|
|
17
|
+
const bundle_store_entity_1 = require("./bundle-store.entity");
|
|
18
|
+
const product_entity_1 = require("./product.entity");
|
|
19
|
+
const status_1 = require("../utils/enums/status");
|
|
20
|
+
let Bundle = class Bundle extends sequelize_typescript_1.Model {
|
|
21
|
+
};
|
|
22
|
+
exports.Bundle = Bundle;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Bundle.prototype, "sku", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Bundle.prototype, "nameEn", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Bundle.prototype, "nameAr", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Bundle.prototype, "descriptionEn", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Bundle.prototype, "descriptionAr", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Bundle.prototype, "image", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 0 }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], Bundle.prototype, "totalProducts", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 1 }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], Bundle.prototype, "choiceCount", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], Bundle.prototype, "defaultPrice", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, sequelize_typescript_1.ForeignKey)(() => category_entity_1.Category),
|
|
61
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], Bundle.prototype, "categoryId", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: 0 }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], Bundle.prototype, "sortOrder", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, sequelize_typescript_1.Column)({ defaultValue: false }),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], Bundle.prototype, "isFeatured", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, sequelize_typescript_1.Column)({
|
|
74
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(status_1.Status)),
|
|
75
|
+
defaultValue: status_1.Status.ACTIVE,
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], Bundle.prototype, "status", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, sequelize_typescript_1.BelongsTo)(() => category_entity_1.Category),
|
|
81
|
+
__metadata("design:type", category_entity_1.Category)
|
|
82
|
+
], Bundle.prototype, "category", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, sequelize_typescript_1.HasMany)(() => bundle_product_entity_1.BundleProduct),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], Bundle.prototype, "bundleProducts", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => product_entity_1.Product, () => bundle_product_entity_1.BundleProduct),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], Bundle.prototype, "products", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, sequelize_typescript_1.HasMany)(() => bundle_store_entity_1.BundleStore),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], Bundle.prototype, "bundleStores", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, sequelize_typescript_1.BelongsToMany)(() => store_entity_1.Store, () => bundle_store_entity_1.BundleStore),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], Bundle.prototype, "stores", void 0);
|
|
99
|
+
exports.Bundle = Bundle = __decorate([
|
|
100
|
+
sequelize_typescript_1.Table
|
|
101
|
+
], Bundle);
|
|
102
|
+
//# sourceMappingURL=bundle.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/bundle.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAG8B;AAC9B,uDAA6C;AAC7C,iDAAuC;AACvC,mEAAwD;AACxD,+DAAoD;AACpD,qDAA2C;AAC3C,kDAA+C;AAGxC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,4BAAK;CAgEhC,CAAA;AAhEY,wBAAM;AAET;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACvB;AAGZ;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,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;6CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,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AG,EAAE,CAAC,iCAAW,CAAC;;4CACS;AAG5B;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,GAAG,EAAE,CAAC,iCAAW,CAAC;;sCACtB;iBA/Db,MAAM;IADlB,4BAAK;GACO,MAAM,CAgElB"}
|
|
@@ -18,6 +18,9 @@ export { ProductVariant } from './entities/product-variant.entity';
|
|
|
18
18
|
export { ProductVariantOption } from './entities/product-variant-option.entity';
|
|
19
19
|
export { Tag } from './entities/tag.entity';
|
|
20
20
|
export { ProductTag } from './entities/product-tag.entity';
|
|
21
|
+
export { Bundle } from './entities/bundle.entity';
|
|
22
|
+
export { BundleProduct } from './entities/bundle-product.entity';
|
|
23
|
+
export { BundleStore } from './entities/bundle-store.entity';
|
|
21
24
|
export { Store } from './entities/store.entity';
|
|
22
25
|
export { ProductStore } from './entities/product-store.entity';
|
|
23
26
|
export { Inventory } from './entities/inventory.entity';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.StorePaymentMethod = exports.PaymentMethodCountry = exports.PaymentMethodType = exports.PaymentMethod = exports.PaymentGatewayType = exports.PaymentGateway = exports.RolePermission = exports.Permission = exports.PurchaseOrderItemStatus = exports.PurchaseOrderItem = exports.PurchaseOrder = exports.VendorProduct = exports.Vendor = exports.ShippingRule = exports.StockMovement = exports.InventoryStock = exports.StoreInventory = exports.Inventory = exports.ProductStore = exports.Store = exports.BundleStore = exports.BundleProduct = exports.Bundle = exports.ProductTag = exports.Tag = exports.ProductVariantOption = exports.ProductVariant = exports.MediaType = exports.ProductMedia = exports.Product = exports.VariantOption = exports.VariantType = exports.Brand = exports.Category = exports.UserFavorite = exports.UserAddress = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Country = exports.ApiKey = void 0;
|
|
4
|
+
exports.StockMovementType = void 0;
|
|
4
5
|
exports.getDbModels = getDbModels;
|
|
5
6
|
const country_entity_1 = require("./entities/country.entity");
|
|
6
7
|
const area_entity_1 = require("./entities/area.entity");
|
|
@@ -21,6 +22,9 @@ const product_variant_entity_1 = require("./entities/product-variant.entity");
|
|
|
21
22
|
const product_variant_option_entity_1 = require("./entities/product-variant-option.entity");
|
|
22
23
|
const tag_entity_1 = require("./entities/tag.entity");
|
|
23
24
|
const product_tag_entity_1 = require("./entities/product-tag.entity");
|
|
25
|
+
const bundle_entity_1 = require("./entities/bundle.entity");
|
|
26
|
+
const bundle_product_entity_1 = require("./entities/bundle-product.entity");
|
|
27
|
+
const bundle_store_entity_1 = require("./entities/bundle-store.entity");
|
|
24
28
|
const store_entity_1 = require("./entities/store.entity");
|
|
25
29
|
const product_store_entity_1 = require("./entities/product-store.entity");
|
|
26
30
|
const inventory_entity_1 = require("./entities/inventory.entity");
|
|
@@ -77,6 +81,12 @@ var tag_entity_2 = require("./entities/tag.entity");
|
|
|
77
81
|
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return tag_entity_2.Tag; } });
|
|
78
82
|
var product_tag_entity_2 = require("./entities/product-tag.entity");
|
|
79
83
|
Object.defineProperty(exports, "ProductTag", { enumerable: true, get: function () { return product_tag_entity_2.ProductTag; } });
|
|
84
|
+
var bundle_entity_2 = require("./entities/bundle.entity");
|
|
85
|
+
Object.defineProperty(exports, "Bundle", { enumerable: true, get: function () { return bundle_entity_2.Bundle; } });
|
|
86
|
+
var bundle_product_entity_2 = require("./entities/bundle-product.entity");
|
|
87
|
+
Object.defineProperty(exports, "BundleProduct", { enumerable: true, get: function () { return bundle_product_entity_2.BundleProduct; } });
|
|
88
|
+
var bundle_store_entity_2 = require("./entities/bundle-store.entity");
|
|
89
|
+
Object.defineProperty(exports, "BundleStore", { enumerable: true, get: function () { return bundle_store_entity_2.BundleStore; } });
|
|
80
90
|
var store_entity_2 = require("./entities/store.entity");
|
|
81
91
|
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return store_entity_2.Store; } });
|
|
82
92
|
var product_store_entity_2 = require("./entities/product-store.entity");
|
|
@@ -151,6 +161,9 @@ function getDbModels() {
|
|
|
151
161
|
product_variant_option_entity_1.ProductVariantOption,
|
|
152
162
|
tag_entity_1.Tag,
|
|
153
163
|
product_tag_entity_1.ProductTag,
|
|
164
|
+
bundle_entity_1.Bundle,
|
|
165
|
+
bundle_product_entity_1.BundleProduct,
|
|
166
|
+
bundle_store_entity_1.BundleStore,
|
|
154
167
|
store_entity_1.Store,
|
|
155
168
|
product_store_entity_1.ProductStore,
|
|
156
169
|
inventory_entity_1.Inventory,
|
|
@@ -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":";;;;AAwIA,kCAuDC;AA5LD,8DAAoD;AACpD,wDAA8C;AAC9C,gEAAqD;AACrD,gEAAqD;AACrD,wDAA8C;AAC9C,oEAA0D;AAC1D,4DAAkD;AAClD,wEAA6D;AAC7D,0EAA+D;AAG/D,gEAAsD;AACtD,0DAAgD;AAChD,wEAA6D;AAC7D,4EAAiE;AACjE,8DAAoD;AACpD,0EAA+D;AAC/D,8EAAmE;AACnE,4FAAgF;AAChF,sDAA4C;AAC5C,sEAA2D;AAC3D,4DAAkD;AAClD,4EAAiE;AACjE,wEAA6D;AAG7D,0DAAgD;AAChD,0EAA+D;AAG/D,kEAAwD;AACxD,8EAAmE;AACnE,8EAAmE;AACnE,4EAAiE;AACjE,0EAA+D;AAG/D,4DAAkD;AAClD,4EAAiE;AACjE,4EAAiE;AACjE,sFAA0E;AAG1E,oEAA0D;AAC1D,8EAAmE;AAGnE,8EAAmE;AACnE,4EAAiE;AACjE,4FAAgF;AAChF,w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