tt-entities 0.0.29 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/libs/tatayab-entities-library/entities/bundle-product.entity.d.ts +13 -0
  2. package/dist/libs/tatayab-entities-library/entities/bundle-product.entity.js +54 -0
  3. package/dist/libs/tatayab-entities-library/entities/bundle-product.entity.js.map +1 -0
  4. package/dist/libs/tatayab-entities-library/entities/bundle-store.entity.d.ts +11 -0
  5. package/dist/libs/tatayab-entities-library/entities/bundle-store.entity.js +56 -0
  6. package/dist/libs/tatayab-entities-library/entities/bundle-store.entity.js.map +1 -0
  7. package/dist/libs/tatayab-entities-library/entities/bundle.entity.d.ts +27 -0
  8. package/dist/libs/tatayab-entities-library/entities/bundle.entity.js +102 -0
  9. package/dist/libs/tatayab-entities-library/entities/bundle.entity.js.map +1 -0
  10. package/dist/libs/tatayab-entities-library/entities/cart-item-bundle-selection.entity.d.ts +13 -0
  11. package/dist/libs/tatayab-entities-library/entities/cart-item-bundle-selection.entity.js +54 -0
  12. package/dist/libs/tatayab-entities-library/entities/cart-item-bundle-selection.entity.js.map +1 -0
  13. package/dist/libs/tatayab-entities-library/entities/cart-item.entity.d.ts +26 -0
  14. package/dist/libs/tatayab-entities-library/entities/cart-item.entity.js +93 -0
  15. package/dist/libs/tatayab-entities-library/entities/cart-item.entity.js.map +1 -0
  16. package/dist/libs/tatayab-entities-library/entities/cart.entity.d.ts +20 -0
  17. package/dist/libs/tatayab-entities-library/entities/cart.entity.js +68 -0
  18. package/dist/libs/tatayab-entities-library/entities/cart.entity.js.map +1 -0
  19. package/dist/libs/tatayab-entities-library/index.d.ts +6 -0
  20. package/dist/libs/tatayab-entities-library/index.js +28 -1
  21. package/dist/libs/tatayab-entities-library/index.js.map +1 -1
  22. package/dist/src/main.js +520 -6
  23. package/libs/tatayab-entities-library/src/entities/bundle-product.entity.ts +38 -0
  24. package/libs/tatayab-entities-library/src/entities/bundle-store.entity.ts +37 -0
  25. package/libs/tatayab-entities-library/src/entities/bundle.entity.ts +77 -0
  26. package/libs/tatayab-entities-library/src/entities/cart-item-bundle-selection.entity.ts +36 -0
  27. package/libs/tatayab-entities-library/src/entities/cart-item.entity.ts +75 -0
  28. package/libs/tatayab-entities-library/src/entities/cart.entity.ts +58 -0
  29. package/libs/tatayab-entities-library/src/index.ts +24 -0
  30. 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,EAAE,IAAI,EAAE,CAAC;;6CAClB;AAGvB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;qCACL;AAIf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;6CAChB;AAKtB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;2CAClB;AAIpB;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;;4CAChD;AAIrB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,0BAAQ,CAAC;IAC1B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;0CACA;AAGpB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;yCACF;AAGlB;IADP,IAAA,6BAAM,EAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;0CACJ;AAMpB;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,0BAAQ,CAAC;8BACP,0BAAQ;wCAAC;AAGpB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,qCAAa,CAAC;;8CACW;AAGhC;IADP,IAAA,oCAAa,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,GAAG,EAAE,CAAC,qCAAa,CAAC;;wCACtB;AAGpB;IADP,IAAA,8BAAO,EAAC,GAAG,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"}
@@ -0,0 +1,13 @@
1
+ import { Model } from 'sequelize-typescript';
2
+ import { CartItem } from './cart-item.entity';
3
+ import { Product } from './product.entity';
4
+ import { ProductVariant } from './product-variant.entity';
5
+ export declare class CartItemBundleSelection extends Model {
6
+ cartItemId: number;
7
+ productId: number;
8
+ productVariantId?: number;
9
+ sortOrder: number;
10
+ cartItem: CartItem;
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.CartItemBundleSelection = void 0;
13
+ const sequelize_typescript_1 = require("sequelize-typescript");
14
+ const cart_item_entity_1 = require("./cart-item.entity");
15
+ const product_entity_1 = require("./product.entity");
16
+ const product_variant_entity_1 = require("./product-variant.entity");
17
+ let CartItemBundleSelection = class CartItemBundleSelection extends sequelize_typescript_1.Model {
18
+ };
19
+ exports.CartItemBundleSelection = CartItemBundleSelection;
20
+ __decorate([
21
+ (0, sequelize_typescript_1.ForeignKey)(() => cart_item_entity_1.CartItem),
22
+ (0, sequelize_typescript_1.Column)({ allowNull: false }),
23
+ __metadata("design:type", Number)
24
+ ], CartItemBundleSelection.prototype, "cartItemId", 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
+ ], CartItemBundleSelection.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
+ ], CartItemBundleSelection.prototype, "productVariantId", void 0);
35
+ __decorate([
36
+ (0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 0 }),
37
+ __metadata("design:type", Number)
38
+ ], CartItemBundleSelection.prototype, "sortOrder", void 0);
39
+ __decorate([
40
+ (0, sequelize_typescript_1.BelongsTo)(() => cart_item_entity_1.CartItem),
41
+ __metadata("design:type", cart_item_entity_1.CartItem)
42
+ ], CartItemBundleSelection.prototype, "cartItem", void 0);
43
+ __decorate([
44
+ (0, sequelize_typescript_1.BelongsTo)(() => product_entity_1.Product),
45
+ __metadata("design:type", product_entity_1.Product)
46
+ ], CartItemBundleSelection.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
+ ], CartItemBundleSelection.prototype, "variant", void 0);
51
+ exports.CartItemBundleSelection = CartItemBundleSelection = __decorate([
52
+ sequelize_typescript_1.Table
53
+ ], CartItemBundleSelection);
54
+ //# sourceMappingURL=cart-item-bundle-selection.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-item-bundle-selection.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/cart-item-bundle-selection.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,yDAA8C;AAC9C,qDAA2C;AAC3C,qEAA0D;AAGnD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,4BAAK;CA2BjD,CAAA;AA3BY,0DAAuB;AAG1B;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,2BAAQ,CAAC;IAC1B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;2DACF;AAInB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;0DACH;AAIlB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;iEACM;AAI1B;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;0DACpB;AAKlB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,2BAAQ,CAAC;8BACR,2BAAQ;yDAAC;AAGnB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACR,wBAAO;wDAAC;AAGjB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;8BACd,uCAAc;wDAAC;kCA1BtB,uBAAuB;IADnC,4BAAK;GACO,uBAAuB,CA2BnC"}
@@ -0,0 +1,26 @@
1
+ import { Model } from 'sequelize-typescript';
2
+ import { Cart } from './cart.entity';
3
+ import { Product } from './product.entity';
4
+ import { ProductVariant } from './product-variant.entity';
5
+ import { Bundle } from './bundle.entity';
6
+ import { CartItemBundleSelection } from './cart-item-bundle-selection.entity';
7
+ export declare enum CartItemType {
8
+ PRODUCT = "product",
9
+ BUNDLE = "bundle"
10
+ }
11
+ export declare class CartItem extends Model {
12
+ cartId: number;
13
+ itemType: CartItemType;
14
+ productId?: number;
15
+ productVariantId?: number;
16
+ bundleId?: number;
17
+ composedSku?: string;
18
+ quantity: number;
19
+ unitPrice: number;
20
+ isOutOfStock: boolean;
21
+ cart: Cart;
22
+ product?: Product;
23
+ variant?: ProductVariant;
24
+ bundle?: Bundle;
25
+ bundleSelections: CartItemBundleSelection[];
26
+ }
@@ -0,0 +1,93 @@
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.CartItem = exports.CartItemType = void 0;
13
+ const sequelize_typescript_1 = require("sequelize-typescript");
14
+ const cart_entity_1 = require("./cart.entity");
15
+ const product_entity_1 = require("./product.entity");
16
+ const product_variant_entity_1 = require("./product-variant.entity");
17
+ const bundle_entity_1 = require("./bundle.entity");
18
+ const cart_item_bundle_selection_entity_1 = require("./cart-item-bundle-selection.entity");
19
+ var CartItemType;
20
+ (function (CartItemType) {
21
+ CartItemType["PRODUCT"] = "product";
22
+ CartItemType["BUNDLE"] = "bundle";
23
+ })(CartItemType || (exports.CartItemType = CartItemType = {}));
24
+ let CartItem = class CartItem extends sequelize_typescript_1.Model {
25
+ };
26
+ exports.CartItem = CartItem;
27
+ __decorate([
28
+ (0, sequelize_typescript_1.ForeignKey)(() => cart_entity_1.Cart),
29
+ (0, sequelize_typescript_1.Column)({ allowNull: false }),
30
+ __metadata("design:type", Number)
31
+ ], CartItem.prototype, "cartId", void 0);
32
+ __decorate([
33
+ (0, sequelize_typescript_1.Column)({
34
+ type: sequelize_typescript_1.DataType.ENUM(...Object.values(CartItemType)),
35
+ allowNull: false,
36
+ }),
37
+ __metadata("design:type", String)
38
+ ], CartItem.prototype, "itemType", void 0);
39
+ __decorate([
40
+ (0, sequelize_typescript_1.ForeignKey)(() => product_entity_1.Product),
41
+ (0, sequelize_typescript_1.Column)({ allowNull: true }),
42
+ __metadata("design:type", Number)
43
+ ], CartItem.prototype, "productId", void 0);
44
+ __decorate([
45
+ (0, sequelize_typescript_1.ForeignKey)(() => product_variant_entity_1.ProductVariant),
46
+ (0, sequelize_typescript_1.Column)({ allowNull: true }),
47
+ __metadata("design:type", Number)
48
+ ], CartItem.prototype, "productVariantId", void 0);
49
+ __decorate([
50
+ (0, sequelize_typescript_1.ForeignKey)(() => bundle_entity_1.Bundle),
51
+ (0, sequelize_typescript_1.Column)({ allowNull: true }),
52
+ __metadata("design:type", Number)
53
+ ], CartItem.prototype, "bundleId", void 0);
54
+ __decorate([
55
+ (0, sequelize_typescript_1.Column)({ allowNull: true }),
56
+ __metadata("design:type", String)
57
+ ], CartItem.prototype, "composedSku", void 0);
58
+ __decorate([
59
+ (0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 1 }),
60
+ __metadata("design:type", Number)
61
+ ], CartItem.prototype, "quantity", void 0);
62
+ __decorate([
63
+ (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false }),
64
+ __metadata("design:type", Number)
65
+ ], CartItem.prototype, "unitPrice", void 0);
66
+ __decorate([
67
+ (0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: false }),
68
+ __metadata("design:type", Boolean)
69
+ ], CartItem.prototype, "isOutOfStock", void 0);
70
+ __decorate([
71
+ (0, sequelize_typescript_1.BelongsTo)(() => cart_entity_1.Cart),
72
+ __metadata("design:type", cart_entity_1.Cart)
73
+ ], CartItem.prototype, "cart", void 0);
74
+ __decorate([
75
+ (0, sequelize_typescript_1.BelongsTo)(() => product_entity_1.Product),
76
+ __metadata("design:type", product_entity_1.Product)
77
+ ], CartItem.prototype, "product", void 0);
78
+ __decorate([
79
+ (0, sequelize_typescript_1.BelongsTo)(() => product_variant_entity_1.ProductVariant),
80
+ __metadata("design:type", product_variant_entity_1.ProductVariant)
81
+ ], CartItem.prototype, "variant", void 0);
82
+ __decorate([
83
+ (0, sequelize_typescript_1.BelongsTo)(() => bundle_entity_1.Bundle),
84
+ __metadata("design:type", bundle_entity_1.Bundle)
85
+ ], CartItem.prototype, "bundle", void 0);
86
+ __decorate([
87
+ (0, sequelize_typescript_1.HasMany)(() => cart_item_bundle_selection_entity_1.CartItemBundleSelection),
88
+ __metadata("design:type", Array)
89
+ ], CartItem.prototype, "bundleSelections", void 0);
90
+ exports.CartItem = CartItem = __decorate([
91
+ sequelize_typescript_1.Table
92
+ ], CartItem);
93
+ //# sourceMappingURL=cart-item.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/cart-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAG8B;AAC9B,+CAAqC;AACrC,qDAA2C;AAC3C,qEAA0D;AAC1D,mDAAyC;AACzC,2FAA8E;AAE9E,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,iCAAkB,CAAA;AACpB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAGM,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAK;CA0DlC,CAAA;AA1DY,4BAAQ;AAGX;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;wCACN;AAMf;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACnD,SAAS,EAAE,KAAK;KACjB,CAAC;;0CAC6B;AAKvB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;2CACD;AAInB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;kDACM;AAK1B;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;IACxB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;0CACF;AAIlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;6CACC;AAIrB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;0CACrB;AAIjB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;2CAClC;AAKlB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;8CACpB;AAKtB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;8BACR,kBAAI;sCAAC;AAGX;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BACP,wBAAO;yCAAC;AAGlB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,CAAC;8BACd,uCAAc;yCAAC;AAGzB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC;8BACP,sBAAM;wCAAC;AAGhB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,2DAAuB,CAAC;;kDACa;mBAzDzC,QAAQ;IADpB,4BAAK;GACO,QAAQ,CA0DpB"}
@@ -0,0 +1,20 @@
1
+ import { Model } from 'sequelize-typescript';
2
+ import { User } from './user.entity';
3
+ import { Store } from './store.entity';
4
+ import { CartItem } from './cart-item.entity';
5
+ export declare enum CartStatus {
6
+ ACTIVE = "active",
7
+ MERGED = "merged",
8
+ CONVERTED = "converted",
9
+ ABANDONED = "abandoned"
10
+ }
11
+ export declare class Cart extends Model {
12
+ userId?: number;
13
+ guestToken?: string;
14
+ storeId: number;
15
+ status: CartStatus;
16
+ expiresAt?: Date;
17
+ user?: User;
18
+ store: Store;
19
+ items: CartItem[];
20
+ }
@@ -0,0 +1,68 @@
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.Cart = exports.CartStatus = void 0;
13
+ const sequelize_typescript_1 = require("sequelize-typescript");
14
+ const user_entity_1 = require("./user.entity");
15
+ const store_entity_1 = require("./store.entity");
16
+ const cart_item_entity_1 = require("./cart-item.entity");
17
+ var CartStatus;
18
+ (function (CartStatus) {
19
+ CartStatus["ACTIVE"] = "active";
20
+ CartStatus["MERGED"] = "merged";
21
+ CartStatus["CONVERTED"] = "converted";
22
+ CartStatus["ABANDONED"] = "abandoned";
23
+ })(CartStatus || (exports.CartStatus = CartStatus = {}));
24
+ let Cart = class Cart extends sequelize_typescript_1.Model {
25
+ };
26
+ exports.Cart = Cart;
27
+ __decorate([
28
+ (0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.User),
29
+ (0, sequelize_typescript_1.Column)({ allowNull: true }),
30
+ __metadata("design:type", Number)
31
+ ], Cart.prototype, "userId", void 0);
32
+ __decorate([
33
+ (0, sequelize_typescript_1.Column)({ allowNull: true }),
34
+ __metadata("design:type", String)
35
+ ], Cart.prototype, "guestToken", void 0);
36
+ __decorate([
37
+ (0, sequelize_typescript_1.ForeignKey)(() => store_entity_1.Store),
38
+ (0, sequelize_typescript_1.Column)({ allowNull: false }),
39
+ __metadata("design:type", Number)
40
+ ], Cart.prototype, "storeId", void 0);
41
+ __decorate([
42
+ (0, sequelize_typescript_1.Column)({
43
+ type: sequelize_typescript_1.DataType.ENUM(...Object.values(CartStatus)),
44
+ allowNull: false,
45
+ defaultValue: CartStatus.ACTIVE,
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], Cart.prototype, "status", void 0);
49
+ __decorate([
50
+ (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: true }),
51
+ __metadata("design:type", Date)
52
+ ], Cart.prototype, "expiresAt", void 0);
53
+ __decorate([
54
+ (0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.User),
55
+ __metadata("design:type", user_entity_1.User)
56
+ ], Cart.prototype, "user", void 0);
57
+ __decorate([
58
+ (0, sequelize_typescript_1.BelongsTo)(() => store_entity_1.Store),
59
+ __metadata("design:type", store_entity_1.Store)
60
+ ], Cart.prototype, "store", void 0);
61
+ __decorate([
62
+ (0, sequelize_typescript_1.HasMany)(() => cart_item_entity_1.CartItem),
63
+ __metadata("design:type", Array)
64
+ ], Cart.prototype, "items", void 0);
65
+ exports.Cart = Cart = __decorate([
66
+ sequelize_typescript_1.Table
67
+ ], Cart);
68
+ //# sourceMappingURL=cart.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/cart.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAG8B;AAC9B,+CAAqC;AACrC,iDAAuC;AACvC,yDAA8C;AAE9C,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,+BAAoB,CAAA;IACpB,+BAAoB,CAAA;IACpB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;AACzB,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAGM,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,4BAAK;CAyC9B,CAAA;AAzCY,oBAAI;AAMP;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;oCACJ;AAKhB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;wCACA;AAKpB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACvB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;qCACL;AAQhB;IALP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACjD,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,UAAU,CAAC,MAAM;KAChC,CAAC;;oCACyB;AAKnB;IADP,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;8BAC7B,IAAI;uCAAC;AAKjB;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;8BACP,kBAAI;kCAAC;AAGZ;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;8BACR,oBAAK;mCAAC;AAGb;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,2BAAQ,CAAC;;mCACE;eAxCf,IAAI;IADhB,4BAAK;GACO,IAAI,CAyChB"}
@@ -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';
@@ -35,6 +38,9 @@ export { PaymentGateway, PaymentGatewayType, } from './entities/payment-gateway.
35
38
  export { PaymentMethod, PaymentMethodType, } from './entities/payment-method.entity';
36
39
  export { PaymentMethodCountry } from './entities/payment-method-country.entity';
37
40
  export { StorePaymentMethod } from './entities/store-payment-method.entity';
41
+ export { Cart, CartStatus } from './entities/cart.entity';
42
+ export { CartItem, CartItemType } from './entities/cart-item.entity';
43
+ export { CartItemBundleSelection } from './entities/cart-item-bundle-selection.entity';
38
44
  export { OsName } from './utils/enums/osName';
39
45
  export { ProductApp } from './utils/enums/productApp';
40
46
  export { VersionType } from './utils/enums/versiontype';