@reachu/database 1.0.103 → 1.0.105
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/entity/Image.d.ts +2 -0
- package/dist/entity/Image.js +10 -1
- package/dist/entity/Image.js.map +1 -1
- package/dist/entity/Price.entity.d.ts +1 -0
- package/dist/entity/Price.entity.js +4 -0
- package/dist/entity/Price.entity.js.map +1 -1
- package/dist/entity/ProductCategory.d.ts +9 -0
- package/dist/entity/ProductCategory.js +47 -0
- package/dist/entity/ProductCategory.js.map +1 -0
- package/dist/entity/Variant.d.ts +2 -0
- package/dist/entity/Variant.js +6 -0
- package/dist/entity/Variant.js.map +1 -1
- package/dist/entity/index.d.ts +2 -1
- package/dist/entity/index.js +3 -1
- package/dist/entity/index.js.map +1 -1
- package/dist/migrations/1693335945081-first-step-category-2.d.ts +6 -0
- package/dist/migrations/1693335945081-first-step-category-2.js +33 -0
- package/dist/migrations/1693335945081-first-step-category-2.js.map +1 -0
- package/dist/migrations/1693484300635-variant_images.d.ts +6 -0
- package/dist/migrations/1693484300635-variant_images.js +43 -0
- package/dist/migrations/1693484300635-variant_images.js.map +1 -0
- package/dist/repositories/index.d.ts +3 -0
- package/dist/repositories/index.js +8 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +61 -12
- package/package.json +3 -3
- package/src/entity/Image.ts +6 -1
- package/src/entity/Price.entity.ts +3 -0
- package/src/entity/ProductCategory.ts +25 -0
- package/src/entity/Variant.ts +5 -0
- package/src/entity/index.ts +2 -0
- package/src/migrations/1693335945081-first-step-category-2.ts +18 -0
- package/src/migrations/1693484300635-variant_images.ts +28 -0
- package/src/repositories/index.ts +4 -0
package/dist/entity/Image.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Product } from './Product.entity';
|
|
2
|
+
import Variant from './Variant';
|
|
2
3
|
export default class Image {
|
|
3
4
|
id: number;
|
|
4
5
|
deletedAt: Date;
|
|
@@ -7,4 +8,5 @@ export default class Image {
|
|
|
7
8
|
height?: number;
|
|
8
9
|
order: number;
|
|
9
10
|
product: Product;
|
|
11
|
+
variant: Variant;
|
|
10
12
|
}
|
package/dist/entity/Image.js
CHANGED
|
@@ -8,9 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
const typeorm_1 = require("typeorm");
|
|
13
16
|
const Product_entity_1 = require("./Product.entity");
|
|
17
|
+
const Variant_1 = __importDefault(require("./Variant"));
|
|
14
18
|
let Image = class Image {
|
|
15
19
|
};
|
|
16
20
|
__decorate([
|
|
@@ -38,10 +42,15 @@ __decorate([
|
|
|
38
42
|
__metadata("design:type", Number)
|
|
39
43
|
], Image.prototype, "order", void 0);
|
|
40
44
|
__decorate([
|
|
41
|
-
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.images, { onDelete: 'CASCADE' }),
|
|
45
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.images, { onDelete: 'CASCADE', nullable: true }),
|
|
42
46
|
typeorm_1.JoinColumn(),
|
|
43
47
|
__metadata("design:type", Product_entity_1.Product)
|
|
44
48
|
], Image.prototype, "product", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
typeorm_1.ManyToOne(() => Variant_1.default, (variant) => variant.images, { onDelete: 'CASCADE', nullable: true }),
|
|
51
|
+
typeorm_1.JoinColumn(),
|
|
52
|
+
__metadata("design:type", Variant_1.default)
|
|
53
|
+
], Image.prototype, "variant", void 0);
|
|
45
54
|
Image = __decorate([
|
|
46
55
|
typeorm_1.Entity()
|
|
47
56
|
], Image);
|
package/dist/entity/Image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/entity/Image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/entity/Image.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAC3C,wDAAgC;AAGhC,IAAqB,KAAK,GAA1B,MAAqB,KAAK;CA0BzB,CAAA;AAxBC;IADC,gCAAsB,EAAE;;iCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;wCAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,CAAC;;kCACN;AAGZ;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACvB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACtB;AAGhB;IADC,gBAAM,CAAC,SAAS,CAAC;;oCACJ;AAId;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9F,oBAAU,EAAE;8BACJ,wBAAO;sCAAC;AAIjB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9F,oBAAU,EAAE;8BACJ,iBAAO;sCAAC;AAzBE,KAAK;IADzB,gBAAM,EAAE;GACY,KAAK,CA0BzB;kBA1BoB,KAAK"}
|
|
@@ -25,5 +25,9 @@ __decorate([
|
|
|
25
25
|
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
27
|
], Price.prototype, "baseAmount", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], Price.prototype, "compareAt", void 0);
|
|
28
32
|
exports.Price = Price;
|
|
29
33
|
//# sourceMappingURL=Price.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Price.entity.js","sourceRoot":"","sources":["../../src/entity/Price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiC;AAEjC,MAAa,KAAK;
|
|
1
|
+
{"version":3,"file":"Price.entity.js","sourceRoot":"","sources":["../../src/entity/Price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiC;AAEjC,MAAa,KAAK;CAYjB;AAVC;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAC/C;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAChB;AAGtB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC3C;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC5C;AAXrB,sBAYC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import AuditedModel from './AuditedModel';
|
|
2
|
+
import { Product } from './Product.entity';
|
|
3
|
+
import Category from './Category';
|
|
4
|
+
export default class ProductCategory extends AuditedModel {
|
|
5
|
+
id: number;
|
|
6
|
+
deletedAt: Date;
|
|
7
|
+
product: Product;
|
|
8
|
+
category: Category;
|
|
9
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
17
|
+
const Product_entity_1 = require("./Product.entity");
|
|
18
|
+
const Category_1 = __importDefault(require("./Category"));
|
|
19
|
+
let ProductCategory = class ProductCategory extends AuditedModel_1.default {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ProductCategory.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.DeleteDateColumn(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], ProductCategory.prototype, "deletedAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.id, {
|
|
31
|
+
eager: false,
|
|
32
|
+
}),
|
|
33
|
+
typeorm_1.JoinColumn(),
|
|
34
|
+
__metadata("design:type", Product_entity_1.Product)
|
|
35
|
+
], ProductCategory.prototype, "product", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.ManyToOne(() => Category_1.default, (category) => category.id, {
|
|
38
|
+
eager: false,
|
|
39
|
+
}),
|
|
40
|
+
typeorm_1.JoinColumn(),
|
|
41
|
+
__metadata("design:type", Category_1.default)
|
|
42
|
+
], ProductCategory.prototype, "category", void 0);
|
|
43
|
+
ProductCategory = __decorate([
|
|
44
|
+
typeorm_1.Entity()
|
|
45
|
+
], ProductCategory);
|
|
46
|
+
exports.default = ProductCategory;
|
|
47
|
+
//# sourceMappingURL=ProductCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCategory.js","sourceRoot":"","sources":["../../src/entity/ProductCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAkG;AAClG,kEAA0C;AAC1C,qDAA2C;AAC3C,0DAAkC;AAGlC,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAkBxD,CAAA;AAhBC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAMhB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;QAC1D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;gDAAC;AAMjB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC9D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACH,kBAAQ;iDAAC;AAjBA,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAkBnC;kBAlBoB,eAAe"}
|
package/dist/entity/Variant.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import CustomVariant from './CustomVariant';
|
|
2
2
|
import { Price } from './Price.entity';
|
|
3
3
|
import { Product } from './Product.entity';
|
|
4
|
+
import Image from './Image';
|
|
4
5
|
export default class Variant {
|
|
5
6
|
id: number;
|
|
6
7
|
deletedAt: Date;
|
|
@@ -15,4 +16,5 @@ export default class Variant {
|
|
|
15
16
|
customVariant: CustomVariant;
|
|
16
17
|
originId?: string;
|
|
17
18
|
originData: string;
|
|
19
|
+
images: Image[];
|
|
18
20
|
}
|
package/dist/entity/Variant.js
CHANGED
|
@@ -16,6 +16,7 @@ const typeorm_1 = require("typeorm");
|
|
|
16
16
|
const CustomVariant_1 = __importDefault(require("./CustomVariant"));
|
|
17
17
|
const Price_entity_1 = require("./Price.entity");
|
|
18
18
|
const Product_entity_1 = require("./Product.entity");
|
|
19
|
+
const Image_1 = __importDefault(require("./Image"));
|
|
19
20
|
let Variant = class Variant {
|
|
20
21
|
};
|
|
21
22
|
__decorate([
|
|
@@ -72,6 +73,11 @@ __decorate([
|
|
|
72
73
|
typeorm_1.Column({ type: 'varchar', length: '21844', nullable: true, default: null }),
|
|
73
74
|
__metadata("design:type", String)
|
|
74
75
|
], Variant.prototype, "originData", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
typeorm_1.OneToMany(() => Image_1.default, (image) => image.product, { eager: true, cascade: true }),
|
|
78
|
+
typeorm_1.JoinColumn(),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], Variant.prototype, "images", void 0);
|
|
75
81
|
Variant = __decorate([
|
|
76
82
|
typeorm_1.Entity()
|
|
77
83
|
], Variant);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Variant.js","sourceRoot":"","sources":["../../src/entity/Variant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,oEAA4C;AAC5C,iDAAuC;AACvC,qDAA2C;
|
|
1
|
+
{"version":3,"file":"Variant.js","sourceRoot":"","sources":["../../src/entity/Variant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,oEAA4C;AAC5C,iDAAuC;AACvC,qDAA2C;AAC3C,oDAA4B;AAG5B,IAAqB,OAAO,GAA5B,MAAqB,OAAO;CA6C3B,CAAA;AA3CC;IADC,gCAAsB,EAAE;;mCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;0CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCACxB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oCAC1B;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCACrB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCACjD;AAGf;IADC,gBAAM,CAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;8BAC3B,oBAAK;8CAAC;AAGrB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;uCACrB;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChF,oBAAU,EAAE;8BACJ,wBAAO;wCAAC;AAIjB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,uBAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjG,oBAAU,EAAE;8BACE,uBAAa;8CAAC;AAG7B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACpB;AAGlB;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACzD;AAInB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,eAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAChF,oBAAU,EAAE;;uCACG;AA5CG,OAAO;IAD3B,gBAAM,EAAE;GACY,OAAO,CA6C3B;kBA7CoB,OAAO"}
|
package/dist/entity/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ import UserChannelApiKey from './UserChannelApiKey';
|
|
|
58
58
|
import Currency from './Currency';
|
|
59
59
|
import ExchangeRate from './ExchangeRate';
|
|
60
60
|
import EnvironmentConfiguration from './EnvironmentConfiguration';
|
|
61
|
+
import ProductCategory from './ProductCategory';
|
|
61
62
|
import Cart from './modules/shopcart/Cart';
|
|
62
63
|
import CartItem from './modules/shopcart/CartItem';
|
|
63
64
|
import Checkout from './modules/shopcart/Checkout';
|
|
@@ -97,4 +98,4 @@ import Discount from './modules/discount/Discount';
|
|
|
97
98
|
import DiscountCart from './modules/discount/DiscountCart';
|
|
98
99
|
import DiscountProduct from './modules/discount/DiscountProduct';
|
|
99
100
|
import DiscountType from './modules/discount/DiscountType';
|
|
100
|
-
export { CustomVariant, CustomProduct, CustomProductImage, Cart, CartItem, Checkout, CheckoutBillingAddress, CheckoutShippingAddress, PriceData, ProductShipping, Shipping, ShippingCountry, Address, ApiCredential, AuditedModel, BankAccount, Business, BusinessProducts, CardRegistration, Category, Channel, Check, CheckoutMetadata, Contact, Country, Courier, FlatRate, FlatRateCountry, Fulfillment, Image, ImportedProduct, MagentoConnection, MetricActiveUser, Notification, Option, Order, OrderCustomer, OrderItem, OrderShipping, OrderTracking, Payment, PaymentShopify, Permission, Price, Product, Request, ExternalRequest, Return, ReturnAddress, Role, RolePermission, ShippingPackage, ShopifyConnection, Subcategory, User, UserRole, Variant, Wallet, WooConnection, UserTokenWolt, UserSettings, PaymentMethod, Collection, CollectionItem, CollectionShared, ChannelGroup, ChannelUser, ChannelUserProductSync, UserChannelApiKey, Currency, ExchangeRate, Attribute, ProductAttribute, CategoryImages, AuthInfo, AuthMethod, EndpointTemplateEcommerce, WebhookTemplateEcommerce, TemplateEcommerce, UserTemplateEcommerce, TemplateEcommerceSchemeConfigOrder, TemplateEcommerceSchemeConfigOrderMapped, ReachuSchemeConfigOrder, TemplateEcommerceSchemeConfigProduct, TemplateEcommerceSchemeConfigProductMapped, ReachuSchemeConfigProduct, TemplateEcommerceSchemeConfigVariant, TemplateEcommerceSchemeConfigVariantMapped, ReachuSchemeConfigVariant, Plan, Subscription, UserCountPlan, EnvironmentConfiguration, Translate, Connection, Discount, DiscountCart, DiscountProduct, DiscountType, };
|
|
101
|
+
export { CustomVariant, CustomProduct, CustomProductImage, Cart, CartItem, Checkout, CheckoutBillingAddress, CheckoutShippingAddress, PriceData, ProductShipping, Shipping, ShippingCountry, Address, ApiCredential, AuditedModel, BankAccount, Business, BusinessProducts, CardRegistration, Category, Channel, Check, CheckoutMetadata, Contact, Country, Courier, FlatRate, FlatRateCountry, Fulfillment, Image, ImportedProduct, MagentoConnection, MetricActiveUser, Notification, Option, Order, OrderCustomer, OrderItem, OrderShipping, OrderTracking, Payment, PaymentShopify, Permission, Price, Product, Request, ExternalRequest, Return, ReturnAddress, Role, RolePermission, ShippingPackage, ShopifyConnection, Subcategory, User, UserRole, Variant, Wallet, WooConnection, UserTokenWolt, UserSettings, PaymentMethod, Collection, CollectionItem, CollectionShared, ChannelGroup, ChannelUser, ChannelUserProductSync, UserChannelApiKey, Currency, ExchangeRate, Attribute, ProductAttribute, CategoryImages, AuthInfo, AuthMethod, EndpointTemplateEcommerce, WebhookTemplateEcommerce, TemplateEcommerce, UserTemplateEcommerce, TemplateEcommerceSchemeConfigOrder, TemplateEcommerceSchemeConfigOrderMapped, ReachuSchemeConfigOrder, TemplateEcommerceSchemeConfigProduct, TemplateEcommerceSchemeConfigProductMapped, ReachuSchemeConfigProduct, TemplateEcommerceSchemeConfigVariant, TemplateEcommerceSchemeConfigVariantMapped, ReachuSchemeConfigVariant, Plan, Subscription, UserCountPlan, EnvironmentConfiguration, Translate, Connection, Discount, DiscountCart, DiscountProduct, DiscountType, ProductCategory, };
|
package/dist/entity/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Role = exports.ReturnAddress = exports.Return = exports.ExternalRequest = exports.Request = exports.Product = exports.Price = exports.Permission = exports.PaymentShopify = exports.Payment = exports.OrderTracking = exports.OrderShipping = exports.OrderItem = exports.OrderCustomer = exports.Order = exports.Option = exports.Notification = exports.MetricActiveUser = exports.MagentoConnection = exports.ImportedProduct = exports.Image = exports.Fulfillment = exports.FlatRateCountry = exports.FlatRate = exports.Courier = exports.Country = exports.Contact = exports.CheckoutMetadata = exports.Check = exports.Channel = exports.Category = exports.CardRegistration = exports.BusinessProducts = exports.Business = exports.BankAccount = exports.AuditedModel = exports.ApiCredential = exports.Address = exports.ShippingCountry = exports.Shipping = exports.ProductShipping = exports.PriceData = exports.CheckoutShippingAddress = exports.CheckoutBillingAddress = exports.Checkout = exports.CartItem = exports.Cart = exports.CustomProductImage = exports.CustomProduct = exports.CustomVariant = void 0;
|
|
7
|
-
exports.DiscountType = exports.DiscountProduct = exports.DiscountCart = exports.Discount = exports.Connection = exports.Translate = exports.EnvironmentConfiguration = exports.UserCountPlan = exports.Subscription = exports.Plan = exports.ReachuSchemeConfigVariant = exports.TemplateEcommerceSchemeConfigVariantMapped = exports.TemplateEcommerceSchemeConfigVariant = exports.ReachuSchemeConfigProduct = exports.TemplateEcommerceSchemeConfigProductMapped = exports.TemplateEcommerceSchemeConfigProduct = exports.ReachuSchemeConfigOrder = exports.TemplateEcommerceSchemeConfigOrderMapped = exports.TemplateEcommerceSchemeConfigOrder = exports.UserTemplateEcommerce = exports.TemplateEcommerce = exports.WebhookTemplateEcommerce = exports.EndpointTemplateEcommerce = exports.AuthMethod = exports.AuthInfo = exports.CategoryImages = exports.ProductAttribute = exports.Attribute = exports.ExchangeRate = exports.Currency = exports.UserChannelApiKey = exports.ChannelUserProductSync = exports.ChannelUser = exports.ChannelGroup = exports.CollectionShared = exports.CollectionItem = exports.Collection = exports.PaymentMethod = exports.UserSettings = exports.UserTokenWolt = exports.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = exports.RolePermission = void 0;
|
|
7
|
+
exports.ProductCategory = exports.DiscountType = exports.DiscountProduct = exports.DiscountCart = exports.Discount = exports.Connection = exports.Translate = exports.EnvironmentConfiguration = exports.UserCountPlan = exports.Subscription = exports.Plan = exports.ReachuSchemeConfigVariant = exports.TemplateEcommerceSchemeConfigVariantMapped = exports.TemplateEcommerceSchemeConfigVariant = exports.ReachuSchemeConfigProduct = exports.TemplateEcommerceSchemeConfigProductMapped = exports.TemplateEcommerceSchemeConfigProduct = exports.ReachuSchemeConfigOrder = exports.TemplateEcommerceSchemeConfigOrderMapped = exports.TemplateEcommerceSchemeConfigOrder = exports.UserTemplateEcommerce = exports.TemplateEcommerce = exports.WebhookTemplateEcommerce = exports.EndpointTemplateEcommerce = exports.AuthMethod = exports.AuthInfo = exports.CategoryImages = exports.ProductAttribute = exports.Attribute = exports.ExchangeRate = exports.Currency = exports.UserChannelApiKey = exports.ChannelUserProductSync = exports.ChannelUser = exports.ChannelGroup = exports.CollectionShared = exports.CollectionItem = exports.Collection = exports.PaymentMethod = exports.UserSettings = exports.UserTokenWolt = exports.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = exports.RolePermission = void 0;
|
|
8
8
|
const Address_1 = __importDefault(require("./Address"));
|
|
9
9
|
exports.Address = Address_1.default;
|
|
10
10
|
const ApiCredential_1 = __importDefault(require("./ApiCredential"));
|
|
@@ -125,6 +125,8 @@ const ExchangeRate_1 = __importDefault(require("./ExchangeRate"));
|
|
|
125
125
|
exports.ExchangeRate = ExchangeRate_1.default;
|
|
126
126
|
const EnvironmentConfiguration_1 = __importDefault(require("./EnvironmentConfiguration"));
|
|
127
127
|
exports.EnvironmentConfiguration = EnvironmentConfiguration_1.default;
|
|
128
|
+
const ProductCategory_1 = __importDefault(require("./ProductCategory"));
|
|
129
|
+
exports.ProductCategory = ProductCategory_1.default;
|
|
128
130
|
const Cart_1 = __importDefault(require("./modules/shopcart/Cart"));
|
|
129
131
|
exports.Cart = Cart_1.default;
|
|
130
132
|
const CartItem_1 = __importDefault(require("./modules/shopcart/CartItem"));
|
package/dist/entity/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;AAAA,wDAAgC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;AAAA,wDAAgC;AAkI9B,kBAlIK,iBAAO,CAkIL;AAjIT,oEAA4C;AAkI1C,wBAlIK,uBAAa,CAkIL;AAjIf,kEAA0C;AAkIxC,uBAlIK,sBAAY,CAkIL;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B,CA6GL;AA5GvB,4GAAoF;AA0GlF,mCA1GK,kCAAwB,CA0GL;AAxG1B,sHAA8F;AA6G5F,kCA7GK,iCAAuB,CA6GL;AA5GzB,4IAAoH;AA0GlH,6CA1GK,4CAAkC,CA0GL;AAzGpC,wJAAgI;AA0G9H,mDA1GK,kDAAwC,CA0GL;AAxG1C,4HAAoG;AA4GlG,oCA5GK,mCAAyB,CA4GL;AA3G3B,kJAA0H;AAyGxH,+CAzGK,8CAAoC,CAyGL;AAxGtC,8JAAsI;AAyGpI,qDAzGK,oDAA0C,CAyGL;AAvG5C,4HAAoG;AA2GlG,oCA3GK,mCAAyB,CA2GL;AA1G3B,kJAA0H;AAwGxH,+CAxGK,8CAAoC,CAwGL;AAvGtC,8JAAsI;AAwGpI,qDAxGK,oDAA0C,CAwGL;AArG5C,wEAAgD;AAuG9C,eAvGK,cAAI,CAuGL;AAtGN,wFAAgE;AAuG9D,uBAvGK,sBAAY,CAuGL;AAtGd,0FAAkE;AAuGhE,wBAvGK,uBAAa,CAuGL;AArGf,4DAAoC;AAuGlC,oBAvGK,mBAAS,CAuGL;AAtGX,8DAAsC;AAuGpC,qBAvGK,oBAAU,CAuGL;AApGZ,2EAAmD;AAqGjD,mBArGK,kBAAQ,CAqGL;AApGV,mFAA2D;AAqGzD,uBArGK,sBAAY,CAqGL;AApGd,yFAAiE;AAqG/D,0BArGK,yBAAe,CAqGL;AApGjB,mFAA2D;AAqGzD,uBArGK,sBAAY,CAqGL"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.firstStepCategory21693335945081 = void 0;
|
|
13
|
+
class firstStepCategory21693335945081 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'firstStepCategory21693335945081';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`product_category\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`product_id\` int NULL, \`category_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`product_category\` ADD CONSTRAINT \`FK_0374879a971928bc3f57eed0a59\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`product_category\` ADD CONSTRAINT \`FK_2df1f83329c00e6eadde0493e16\` FOREIGN KEY (\`category_id\`) REFERENCES \`category\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
down(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`product_category\` DROP FOREIGN KEY \`FK_2df1f83329c00e6eadde0493e16\``);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`product_category\` DROP FOREIGN KEY \`FK_0374879a971928bc3f57eed0a59\``);
|
|
28
|
+
yield queryRunner.query(`DROP TABLE \`product_category\``);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.firstStepCategory21693335945081 = firstStepCategory21693335945081;
|
|
33
|
+
//# sourceMappingURL=1693335945081-first-step-category-2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1693335945081-first-step-category-2.js","sourceRoot":"","sources":["../../src/migrations/1693335945081-first-step-category-2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,+BAA+B;IAA5C;QACI,SAAI,GAAG,iCAAiC,CAAA;IAc5C,CAAC;IAZgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,mWAAmW,CAAC,CAAC;YAC7X,MAAM,WAAW,CAAC,KAAK,CAAC,wLAAwL,CAAC,CAAC;YAClN,MAAM,WAAW,CAAC,KAAK,CAAC,0LAA0L,CAAC,CAAC;QACxN,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;QAC/D,CAAC;KAAA;CAEJ;AAfD,0EAeC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.variantImages1693484300635 = void 0;
|
|
13
|
+
class variantImages1693484300635 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'variantImages1693484300635';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`category\` DROP FOREIGN KEY \`FK_08644d63888f9493b187f8dda2e\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`category\` DROP COLUMN \`father_id\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`custom_product\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`image\` ADD \`variant_id\` int NULL`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`variant\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`product\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`order\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`image\` ADD CONSTRAINT \`FK_71e4b36c663cdd3ec0dd947b6f6\` FOREIGN KEY (\`variant_id\`) REFERENCES \`variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
down(queryRunner) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`image\` DROP FOREIGN KEY \`FK_71e4b36c663cdd3ec0dd947b6f6\``);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_compare_at\``);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`price_compare_at\``);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`variant\` DROP COLUMN \`price_compare_at\``);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`image\` DROP COLUMN \`variant_id\``);
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`custom_product\` DROP COLUMN \`price_compare_at\``);
|
|
37
|
+
yield queryRunner.query(`ALTER TABLE \`category\` ADD \`father_id\` int NULL`);
|
|
38
|
+
yield queryRunner.query(`ALTER TABLE \`category\` ADD CONSTRAINT \`FK_08644d63888f9493b187f8dda2e\` FOREIGN KEY (\`father_id\`) REFERENCES \`category\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.variantImages1693484300635 = variantImages1693484300635;
|
|
43
|
+
//# sourceMappingURL=1693484300635-variant_images.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1693484300635-variant_images.js","sourceRoot":"","sources":["../../src/migrations/1693484300635-variant_images.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,0BAA0B;IAAvC;QACI,SAAI,GAAG,4BAA4B,CAAA;IAwBvC,CAAC;IAtBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC;YACxG,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,4EAA4E,CAAC,CAAC;YACtG,MAAM,WAAW,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;YAC7E,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CAAC,2KAA2K,CAAC,CAAC;QACzM,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAC;YACrG,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;YACpF,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;YACpF,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;YAC5E,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,qDAAqD,CAAC,CAAC;YAC/E,MAAM,WAAW,CAAC,KAAK,CAAC,gLAAgL,CAAC,CAAC;QAC9M,CAAC;KAAA;CAEJ;AAzBD,gEAyBC"}
|
|
@@ -56,6 +56,7 @@ import CategoryImages from '../entity/CategoryImages';
|
|
|
56
56
|
import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
|
|
57
57
|
import Translate from '../entity/Translate';
|
|
58
58
|
import Connection from '../entity/Connection';
|
|
59
|
+
import ProductCategory from '../entity/ProductCategory';
|
|
59
60
|
import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
|
|
60
61
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
61
62
|
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
@@ -178,6 +179,8 @@ export declare class TranslateRepository extends Repository<Translate> {
|
|
|
178
179
|
}
|
|
179
180
|
export declare class ConnectionRepository extends Repository<Connection> {
|
|
180
181
|
}
|
|
182
|
+
export declare class ProductCategoryRepository extends Repository<ProductCategory> {
|
|
183
|
+
}
|
|
181
184
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
182
185
|
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
183
186
|
export { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository, };
|
|
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ChannelGroupRepository = exports.CollectionSharedRepository = exports.CollectionItemRepository = exports.CollectionRepository = exports.PaymentMethodRepository = exports.UserSettingsRepository = exports.UserTokenWoltRepository = exports.WooConnectionRepository = exports.WalletRepository = exports.VariantRepository = exports.UserRoleRepository = exports.UserRepository = exports.SubcategoryRepository = exports.ShopifyConnectionRepository = exports.ShippingPackageRepository = exports.RolePermissionRepository = exports.RoleRepository = exports.ExternalRequestRepository = exports.RequestRepository = exports.ProductRepository = exports.PermissionRepository = exports.PaymentShopifyRepository = exports.PaymentRepository = exports.OrderTrackingRepository = exports.OrderShippingRepository = exports.OrderItemRepository = exports.OrderRepository = exports.OptionRepository = exports.NotificationRepository = exports.MetricActiveUserRepository = exports.MagentoConnectionRepository = exports.ImportedProductRepository = exports.ImageRepository = exports.FlatRateCountryRepository = exports.FlatRateRepository = exports.CourierRepository = exports.CountryRepository = exports.CheckoutMetadataRepository = exports.ChannelRepository = exports.CategoryRepository = exports.CardRegistrationRepository = exports.BusinessRepository = exports.BankAccountRepository = exports.ApiCredentialRepository = exports.CustomProductImageRepository = exports.CustomProductRepository = exports.CustomVariantRepository = exports.AttributeRepository = exports.ProductAttributeRepository = exports.CategoryImagesRepository = void 0;
|
|
13
|
-
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.DiscountTypeRepository = exports.DiscountProductRepository = exports.DiscountCartRepository = exports.DiscountRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.WebhookTemplateEcommerceRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = exports.PriceDataRepository = exports.CheckoutShippingAddressRepository = exports.CheckoutRepository = exports.CheckoutBillingAddressRepository = exports.CartRepository = exports.CartItemRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = exports.ChannelUserRepository = void 0;
|
|
13
|
+
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.DiscountTypeRepository = exports.DiscountProductRepository = exports.DiscountCartRepository = exports.DiscountRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.WebhookTemplateEcommerceRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = exports.PriceDataRepository = exports.CheckoutShippingAddressRepository = exports.CheckoutRepository = exports.CheckoutBillingAddressRepository = exports.CartRepository = exports.CartItemRepository = exports.ProductCategoryRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = exports.ChannelUserRepository = void 0;
|
|
14
14
|
const ApiCredential_1 = __importDefault(require("../entity/ApiCredential"));
|
|
15
15
|
const BankAccount_1 = __importDefault(require("../entity/BankAccount"));
|
|
16
16
|
const Business_1 = __importDefault(require("../entity/Business"));
|
|
@@ -69,6 +69,7 @@ const CategoryImages_1 = __importDefault(require("../entity/CategoryImages"));
|
|
|
69
69
|
const EnvironmentConfiguration_1 = __importDefault(require("../entity/EnvironmentConfiguration"));
|
|
70
70
|
const Translate_1 = __importDefault(require("../entity/Translate"));
|
|
71
71
|
const Connection_1 = __importDefault(require("../entity/Connection"));
|
|
72
|
+
const ProductCategory_1 = __importDefault(require("../entity/ProductCategory"));
|
|
72
73
|
const shopcart_1 = require("./shopcart");
|
|
73
74
|
Object.defineProperty(exports, "CartItemRepository", { enumerable: true, get: function () { return shopcart_1.CartItemRepository; } });
|
|
74
75
|
Object.defineProperty(exports, "CartRepository", { enumerable: true, get: function () { return shopcart_1.CartRepository; } });
|
|
@@ -454,4 +455,10 @@ ConnectionRepository = __decorate([
|
|
|
454
455
|
typeorm_1.EntityRepository(Connection_1.default)
|
|
455
456
|
], ConnectionRepository);
|
|
456
457
|
exports.ConnectionRepository = ConnectionRepository;
|
|
458
|
+
let ProductCategoryRepository = class ProductCategoryRepository extends typeorm_1.Repository {
|
|
459
|
+
};
|
|
460
|
+
ProductCategoryRepository = __decorate([
|
|
461
|
+
typeorm_1.EntityRepository(ProductCategory_1.default)
|
|
462
|
+
], ProductCategoryRepository);
|
|
463
|
+
exports.ProductCategoryRepository = ProductCategoryRepository;
|
|
457
464
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,gFAAwD;AACxD,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD,4EAAoD;AACpD,sEAA8C;AAC9C,8EAAsD;AACtD,kFAA0D;AAC1D,0EAAkD;AAClD,wEAAgD;AAChD,8FAAsE;AACtE,oFAA4D;AAC5D,kEAA0C;AAC1C,0EAAkD;AAElD,4EAAoD;AACpD,2DAAwD;AACxD,sFAA8D;AAE9D,oEAA4C;AAC5C,kFAA0D;AAC1D,8EAAsD;AAEtD,kGAA0E;AAE1E,oEAA4C;AAC5C,sEAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,gFAAwD;AACxD,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD,4EAAoD;AACpD,sEAA8C;AAC9C,8EAAsD;AACtD,kFAA0D;AAC1D,0EAAkD;AAClD,wEAAgD;AAChD,8FAAsE;AACtE,oFAA4D;AAC5D,kEAA0C;AAC1C,0EAAkD;AAElD,4EAAoD;AACpD,2DAAwD;AACxD,sFAA8D;AAE9D,oEAA4C;AAC5C,kFAA0D;AAC1D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C;GAC9B,kCAAkC,CAAgD;AAAlF,gFAAkC;AAG/C,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,oBAAqB;CAAG,CAAA;AAApD,mBAAmB;IAD/B,0BAAgB,CAAC,mBAAS,CAAC;GACf,mBAAmB,CAAiC;AAApD,kDAAmB;AAGhC,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,oBAAsB;CAAG,CAAA;AAAtD,oBAAoB;IADhC,0BAAgB,CAAC,oBAAU,CAAC;GAChB,oBAAoB,CAAkC;AAAtD,oDAAoB;AAGjC,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,oBAA2B;CAAG,CAAA;AAAhE,yBAAyB;IADrC,0BAAgB,CAAC,yBAAe,CAAC;GACrB,yBAAyB,CAAuC;AAAhE,8DAAyB"}
|
|
@@ -2412,8 +2412,8 @@
|
|
|
2412
2412
|
"affectsGlobalScope": false
|
|
2413
2413
|
},
|
|
2414
2414
|
"../src/entity/image.ts": {
|
|
2415
|
-
"version": "
|
|
2416
|
-
"signature": "
|
|
2415
|
+
"version": "19ab7547c5d21c0737c761ad4782d1c143b60434caf795404026fd3625757248",
|
|
2416
|
+
"signature": "21e01b387406871f1f540b7722119f5bc2f9fe941fd3edacf95eee84db35dd50",
|
|
2417
2417
|
"affectsGlobalScope": false
|
|
2418
2418
|
},
|
|
2419
2419
|
"../src/entity/importedproduct.ts": {
|
|
@@ -2427,8 +2427,8 @@
|
|
|
2427
2427
|
"affectsGlobalScope": false
|
|
2428
2428
|
},
|
|
2429
2429
|
"../src/entity/price.entity.ts": {
|
|
2430
|
-
"version": "
|
|
2431
|
-
"signature": "
|
|
2430
|
+
"version": "6aef659faa28c184b30e4bdaec7da756c08846cfc9fa2245ddb11226862979c2",
|
|
2431
|
+
"signature": "04be4477fa66e64bf58235550211314ac2dc7aaf829b9218ceb7b01eef7eb373",
|
|
2432
2432
|
"affectsGlobalScope": false
|
|
2433
2433
|
},
|
|
2434
2434
|
"../src/entity/modules/shipping/productshipping.ts": {
|
|
@@ -2452,8 +2452,8 @@
|
|
|
2452
2452
|
"affectsGlobalScope": false
|
|
2453
2453
|
},
|
|
2454
2454
|
"../src/entity/variant.ts": {
|
|
2455
|
-
"version": "
|
|
2456
|
-
"signature": "
|
|
2455
|
+
"version": "a743c42bf3d1a9ec4dbe895db721d4111d22d0153a5ca20b6692c4aa1b0037b1",
|
|
2456
|
+
"signature": "50b25567de85a66172ddcd1c0145e35c2d2b4cd41a11ec1c4c7112430d3dce02",
|
|
2457
2457
|
"affectsGlobalScope": false
|
|
2458
2458
|
},
|
|
2459
2459
|
"../src/entity/channelgroup.ts": {
|
|
@@ -2646,6 +2646,11 @@
|
|
|
2646
2646
|
"signature": "7fcdec100c9f2117182bee40540c09ef5c38cc643a1dca4a483fdf44f5059c40",
|
|
2647
2647
|
"affectsGlobalScope": false
|
|
2648
2648
|
},
|
|
2649
|
+
"../src/entity/productcategory.ts": {
|
|
2650
|
+
"version": "053ca7c6273ab6993decd9ce3aa559d58c9087f16a9bec46458c912a77be6de8",
|
|
2651
|
+
"signature": "416f9204d08d97b17fdf41693dbcbcfa003c5b1ae6e4e4d9986895d5dd5a93a9",
|
|
2652
|
+
"affectsGlobalScope": false
|
|
2653
|
+
},
|
|
2649
2654
|
"../src/entity/modules/templates/endpointtemplateecommerce.ts": {
|
|
2650
2655
|
"version": "cfeefc06c867749ddde60e6bb5177a2797c450f2a2efcc8bc3c6091e93568f71",
|
|
2651
2656
|
"signature": "22cbe559bce594ffd910b8d3ae6237a7d9137f68baafdd5e7759c0e26e2d1636",
|
|
@@ -2752,8 +2757,8 @@
|
|
|
2752
2757
|
"affectsGlobalScope": false
|
|
2753
2758
|
},
|
|
2754
2759
|
"../src/entity/index.ts": {
|
|
2755
|
-
"version": "
|
|
2756
|
-
"signature": "
|
|
2760
|
+
"version": "0e175838118832cc29b7f081c4175f92413fd2c3b5ad08d1690ad91891226a5c",
|
|
2761
|
+
"signature": "99c22c01ba5ec8cde15ec9ee7533c48f664f305ae8883eb4094cb7be96330953",
|
|
2757
2762
|
"affectsGlobalScope": false
|
|
2758
2763
|
},
|
|
2759
2764
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2837,8 +2842,8 @@
|
|
|
2837
2842
|
"affectsGlobalScope": false
|
|
2838
2843
|
},
|
|
2839
2844
|
"../src/repositories/index.ts": {
|
|
2840
|
-
"version": "
|
|
2841
|
-
"signature": "
|
|
2845
|
+
"version": "22f40804cf6d9d110b6c87a0b3a7caae2810152531dfb98af800e0faac6f86b4",
|
|
2846
|
+
"signature": "ff56d106ccd96a085379a87617dc6125d091f1c1020fc21bacd813c3e8cb2730",
|
|
2842
2847
|
"affectsGlobalScope": false
|
|
2843
2848
|
},
|
|
2844
2849
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3476,6 +3481,16 @@
|
|
|
3476
3481
|
"signature": "d77e1a1a60fee4a52ada4104357603cf6e213fd5fa02e04c97f026a3353d6f3b",
|
|
3477
3482
|
"affectsGlobalScope": false
|
|
3478
3483
|
},
|
|
3484
|
+
"../src/migrations/1693335945081-first-step-category-2.ts": {
|
|
3485
|
+
"version": "97c78a51c28ff065d46d4f36d1ac838dcc9de51c023cddbc6e2eb77623055ec6",
|
|
3486
|
+
"signature": "09cf1016ee0c5acc4626ff0d2cd6b76839b27cf47b65e41f63b3598f37a5fee7",
|
|
3487
|
+
"affectsGlobalScope": false
|
|
3488
|
+
},
|
|
3489
|
+
"../src/migrations/1693484300635-variant_images.ts": {
|
|
3490
|
+
"version": "3127aa7c168419a8d84c5789472d9e632b564831f2e8403f9dc979541de3b41a",
|
|
3491
|
+
"signature": "b4907745ae95c699a2cffbc74608afdc1c862a2d5d03ab178a505819fd00fc5e",
|
|
3492
|
+
"affectsGlobalScope": false
|
|
3493
|
+
},
|
|
3479
3494
|
"../src/migrations/execute/index.ts": {
|
|
3480
3495
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3481
3496
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5588,7 +5603,8 @@
|
|
|
5588
5603
|
],
|
|
5589
5604
|
"../src/entity/image.ts": [
|
|
5590
5605
|
"../node_modules/typeorm/index.d.ts",
|
|
5591
|
-
"../src/entity/product.entity.ts"
|
|
5606
|
+
"../src/entity/product.entity.ts",
|
|
5607
|
+
"../src/entity/variant.ts"
|
|
5592
5608
|
],
|
|
5593
5609
|
"../src/entity/importedproduct.ts": [
|
|
5594
5610
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -5679,6 +5695,7 @@
|
|
|
5679
5695
|
"../src/entity/price.entity.ts",
|
|
5680
5696
|
"../src/entity/product.entity.ts",
|
|
5681
5697
|
"../src/entity/productattribute.ts",
|
|
5698
|
+
"../src/entity/productcategory.ts",
|
|
5682
5699
|
"../src/entity/request.ts",
|
|
5683
5700
|
"../src/entity/return.ts",
|
|
5684
5701
|
"../src/entity/returnaddress.ts",
|
|
@@ -5986,6 +6003,12 @@
|
|
|
5986
6003
|
"../src/entity/auditedmodel.ts",
|
|
5987
6004
|
"../src/entity/product.entity.ts"
|
|
5988
6005
|
],
|
|
6006
|
+
"../src/entity/productcategory.ts": [
|
|
6007
|
+
"../node_modules/typeorm/index.d.ts",
|
|
6008
|
+
"../src/entity/auditedmodel.ts",
|
|
6009
|
+
"../src/entity/category.ts",
|
|
6010
|
+
"../src/entity/product.entity.ts"
|
|
6011
|
+
],
|
|
5989
6012
|
"../src/entity/request.ts": [
|
|
5990
6013
|
"../node_modules/typeorm/index.d.ts",
|
|
5991
6014
|
"../src/entity/auditedmodel.ts",
|
|
@@ -6070,6 +6093,7 @@
|
|
|
6070
6093
|
"../src/entity/variant.ts": [
|
|
6071
6094
|
"../node_modules/typeorm/index.d.ts",
|
|
6072
6095
|
"../src/entity/customvariant.ts",
|
|
6096
|
+
"../src/entity/image.ts",
|
|
6073
6097
|
"../src/entity/price.entity.ts",
|
|
6074
6098
|
"../src/entity/product.entity.ts"
|
|
6075
6099
|
],
|
|
@@ -6451,6 +6475,12 @@
|
|
|
6451
6475
|
"../src/migrations/1693249143377-first-stem-category.ts": [
|
|
6452
6476
|
"../node_modules/typeorm/index.d.ts"
|
|
6453
6477
|
],
|
|
6478
|
+
"../src/migrations/1693335945081-first-step-category-2.ts": [
|
|
6479
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6480
|
+
],
|
|
6481
|
+
"../src/migrations/1693484300635-variant_images.ts": [
|
|
6482
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6483
|
+
],
|
|
6454
6484
|
"../src/migrations/execute/index.ts": [
|
|
6455
6485
|
"../src/config/connect.ts"
|
|
6456
6486
|
],
|
|
@@ -6518,6 +6548,7 @@
|
|
|
6518
6548
|
"../src/entity/permission.ts",
|
|
6519
6549
|
"../src/entity/product.entity.ts",
|
|
6520
6550
|
"../src/entity/productattribute.ts",
|
|
6551
|
+
"../src/entity/productcategory.ts",
|
|
6521
6552
|
"../src/entity/request.ts",
|
|
6522
6553
|
"../src/entity/role.ts",
|
|
6523
6554
|
"../src/entity/rolepermission.ts",
|
|
@@ -8520,7 +8551,8 @@
|
|
|
8520
8551
|
"../src/entity/flatrate.ts"
|
|
8521
8552
|
],
|
|
8522
8553
|
"../src/entity/image.ts": [
|
|
8523
|
-
"../src/entity/product.entity.ts"
|
|
8554
|
+
"../src/entity/product.entity.ts",
|
|
8555
|
+
"../src/entity/variant.ts"
|
|
8524
8556
|
],
|
|
8525
8557
|
"../src/entity/importedproduct.ts": [
|
|
8526
8558
|
"../src/entity/channeluser.ts",
|
|
@@ -8610,6 +8642,7 @@
|
|
|
8610
8642
|
"../src/entity/price.entity.ts",
|
|
8611
8643
|
"../src/entity/product.entity.ts",
|
|
8612
8644
|
"../src/entity/productattribute.ts",
|
|
8645
|
+
"../src/entity/productcategory.ts",
|
|
8613
8646
|
"../src/entity/request.ts",
|
|
8614
8647
|
"../src/entity/return.ts",
|
|
8615
8648
|
"../src/entity/returnaddress.ts",
|
|
@@ -8859,6 +8892,11 @@
|
|
|
8859
8892
|
"../src/entity/auditedmodel.ts",
|
|
8860
8893
|
"../src/entity/product.entity.ts"
|
|
8861
8894
|
],
|
|
8895
|
+
"../src/entity/productcategory.ts": [
|
|
8896
|
+
"../src/entity/auditedmodel.ts",
|
|
8897
|
+
"../src/entity/category.ts",
|
|
8898
|
+
"../src/entity/product.entity.ts"
|
|
8899
|
+
],
|
|
8862
8900
|
"../src/entity/request.ts": [
|
|
8863
8901
|
"../src/entity/auditedmodel.ts",
|
|
8864
8902
|
"../src/entity/user.ts"
|
|
@@ -8923,6 +8961,7 @@
|
|
|
8923
8961
|
],
|
|
8924
8962
|
"../src/entity/variant.ts": [
|
|
8925
8963
|
"../src/entity/customvariant.ts",
|
|
8964
|
+
"../src/entity/image.ts",
|
|
8926
8965
|
"../src/entity/price.entity.ts",
|
|
8927
8966
|
"../src/entity/product.entity.ts"
|
|
8928
8967
|
],
|
|
@@ -9282,6 +9321,12 @@
|
|
|
9282
9321
|
"../src/migrations/1693249143377-first-stem-category.ts": [
|
|
9283
9322
|
"../node_modules/typeorm/index.d.ts"
|
|
9284
9323
|
],
|
|
9324
|
+
"../src/migrations/1693335945081-first-step-category-2.ts": [
|
|
9325
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9326
|
+
],
|
|
9327
|
+
"../src/migrations/1693484300635-variant_images.ts": [
|
|
9328
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9329
|
+
],
|
|
9285
9330
|
"../src/migrations/index.ts": [
|
|
9286
9331
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9287
9332
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9346,6 +9391,7 @@
|
|
|
9346
9391
|
"../src/entity/permission.ts",
|
|
9347
9392
|
"../src/entity/product.entity.ts",
|
|
9348
9393
|
"../src/entity/productattribute.ts",
|
|
9394
|
+
"../src/entity/productcategory.ts",
|
|
9349
9395
|
"../src/entity/request.ts",
|
|
9350
9396
|
"../src/entity/role.ts",
|
|
9351
9397
|
"../src/entity/rolepermission.ts",
|
|
@@ -10000,6 +10046,7 @@
|
|
|
10000
10046
|
"../src/entity/price.entity.ts",
|
|
10001
10047
|
"../src/entity/product.entity.ts",
|
|
10002
10048
|
"../src/entity/productattribute.ts",
|
|
10049
|
+
"../src/entity/productcategory.ts",
|
|
10003
10050
|
"../src/entity/request.ts",
|
|
10004
10051
|
"../src/entity/return.ts",
|
|
10005
10052
|
"../src/entity/returnaddress.ts",
|
|
@@ -10133,6 +10180,8 @@
|
|
|
10133
10180
|
"../src/migrations/1691764260299-promote_to_production_11_08_23.ts",
|
|
10134
10181
|
"../src/migrations/1693220480521-woo_connect_supplier.ts",
|
|
10135
10182
|
"../src/migrations/1693249143377-first-stem-category.ts",
|
|
10183
|
+
"../src/migrations/1693335945081-first-step-category-2.ts",
|
|
10184
|
+
"../src/migrations/1693484300635-variant_images.ts",
|
|
10136
10185
|
"../src/migrations/execute/index.ts",
|
|
10137
10186
|
"../src/migrations/index.ts",
|
|
10138
10187
|
"../src/repositories/discount/index.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.105",
|
|
4
4
|
"description": "reachu-database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "reachu",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reachu/logger": "1.0.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.105",
|
|
25
|
+
"@reachu/utils": "1.0.105",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
package/src/entity/Image.ts
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
DeleteDateColumn,
|
|
8
8
|
} from 'typeorm';
|
|
9
9
|
import { Product } from './Product.entity';
|
|
10
|
+
import Variant from './Variant';
|
|
10
11
|
|
|
11
12
|
@Entity()
|
|
12
13
|
export default class Image {
|
|
@@ -28,7 +29,11 @@ export default class Image {
|
|
|
28
29
|
@Column('integer')
|
|
29
30
|
order: number;
|
|
30
31
|
|
|
31
|
-
@ManyToOne(() => Product, (product) => product.images, { onDelete: 'CASCADE' })
|
|
32
|
+
@ManyToOne(() => Product, (product) => product.images, { onDelete: 'CASCADE', nullable: true })
|
|
32
33
|
@JoinColumn()
|
|
33
34
|
product: Product;
|
|
35
|
+
|
|
36
|
+
@ManyToOne(() => Variant, (variant) => variant.images, { onDelete: 'CASCADE', nullable: true })
|
|
37
|
+
@JoinColumn()
|
|
38
|
+
variant: Variant;
|
|
34
39
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, DeleteDateColumn, ManyToOne, JoinColumn } from 'typeorm';
|
|
2
|
+
import AuditedModel from './AuditedModel';
|
|
3
|
+
import { Product } from './Product.entity';
|
|
4
|
+
import Category from './Category';
|
|
5
|
+
|
|
6
|
+
@Entity()
|
|
7
|
+
export default class ProductCategory extends AuditedModel {
|
|
8
|
+
@PrimaryGeneratedColumn()
|
|
9
|
+
id: number;
|
|
10
|
+
|
|
11
|
+
@DeleteDateColumn()
|
|
12
|
+
deletedAt: Date;
|
|
13
|
+
|
|
14
|
+
@ManyToOne(() => Product, (product: Product) => product.id, {
|
|
15
|
+
eager: false,
|
|
16
|
+
})
|
|
17
|
+
@JoinColumn()
|
|
18
|
+
product: Product;
|
|
19
|
+
|
|
20
|
+
@ManyToOne(() => Category, (category: Category) => category.id, {
|
|
21
|
+
eager: false,
|
|
22
|
+
})
|
|
23
|
+
@JoinColumn()
|
|
24
|
+
category: Category;
|
|
25
|
+
}
|
package/src/entity/Variant.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import CustomVariant from './CustomVariant';
|
|
11
11
|
import { Price } from './Price.entity';
|
|
12
12
|
import { Product } from './Product.entity';
|
|
13
|
+
import Image from './Image';
|
|
13
14
|
|
|
14
15
|
@Entity()
|
|
15
16
|
export default class Variant {
|
|
@@ -53,4 +54,8 @@ export default class Variant {
|
|
|
53
54
|
|
|
54
55
|
@Column({ type: 'varchar', length: '21844', nullable: true, default: null })
|
|
55
56
|
originData: string;
|
|
57
|
+
|
|
58
|
+
@OneToMany(() => Image, (image) => image.product, { eager: true, cascade: true })
|
|
59
|
+
@JoinColumn()
|
|
60
|
+
images: Image[];
|
|
56
61
|
}
|
package/src/entity/index.ts
CHANGED
|
@@ -58,6 +58,7 @@ import UserChannelApiKey from './UserChannelApiKey';
|
|
|
58
58
|
import Currency from './Currency';
|
|
59
59
|
import ExchangeRate from './ExchangeRate';
|
|
60
60
|
import EnvironmentConfiguration from './EnvironmentConfiguration';
|
|
61
|
+
import ProductCategory from './ProductCategory';
|
|
61
62
|
|
|
62
63
|
//shopCart
|
|
63
64
|
import Cart from './modules/shopcart/Cart';
|
|
@@ -214,4 +215,5 @@ export {
|
|
|
214
215
|
DiscountCart,
|
|
215
216
|
DiscountProduct,
|
|
216
217
|
DiscountType,
|
|
218
|
+
ProductCategory,
|
|
217
219
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class firstStepCategory21693335945081 implements MigrationInterface {
|
|
4
|
+
name = 'firstStepCategory21693335945081'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`product_category\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`product_id\` int NULL, \`category_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`product_category\` ADD CONSTRAINT \`FK_0374879a971928bc3f57eed0a59\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`product_category\` ADD CONSTRAINT \`FK_2df1f83329c00e6eadde0493e16\` FOREIGN KEY (\`category_id\`) REFERENCES \`category\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`product_category\` DROP FOREIGN KEY \`FK_2df1f83329c00e6eadde0493e16\``);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`product_category\` DROP FOREIGN KEY \`FK_0374879a971928bc3f57eed0a59\``);
|
|
15
|
+
await queryRunner.query(`DROP TABLE \`product_category\``);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class variantImages1693484300635 implements MigrationInterface {
|
|
4
|
+
name = 'variantImages1693484300635'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`category\` DROP FOREIGN KEY \`FK_08644d63888f9493b187f8dda2e\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`category\` DROP COLUMN \`father_id\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`image\` ADD \`variant_id\` int NULL`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`variant\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`product\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`price_compare_at\` decimal(10,2) NULL`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`image\` ADD CONSTRAINT \`FK_71e4b36c663cdd3ec0dd947b6f6\` FOREIGN KEY (\`variant_id\`) REFERENCES \`variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`image\` DROP FOREIGN KEY \`FK_71e4b36c663cdd3ec0dd947b6f6\``);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_compare_at\``);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`price_compare_at\``);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE \`variant\` DROP COLUMN \`price_compare_at\``);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE \`image\` DROP COLUMN \`variant_id\``);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` DROP COLUMN \`price_compare_at\``);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE \`category\` ADD \`father_id\` int NULL`);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE \`category\` ADD CONSTRAINT \`FK_08644d63888f9493b187f8dda2e\` FOREIGN KEY (\`father_id\`) REFERENCES \`category\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -60,6 +60,7 @@ import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
|
|
|
60
60
|
|
|
61
61
|
import Translate from '../entity/Translate';
|
|
62
62
|
import Connection from '../entity/Connection';
|
|
63
|
+
import ProductCategory from '../entity/ProductCategory';
|
|
63
64
|
|
|
64
65
|
import {
|
|
65
66
|
CartItemRepository,
|
|
@@ -279,6 +280,9 @@ export class TranslateRepository extends Repository<Translate> {}
|
|
|
279
280
|
@EntityRepository(Connection)
|
|
280
281
|
export class ConnectionRepository extends Repository<Connection> {}
|
|
281
282
|
|
|
283
|
+
@EntityRepository(ProductCategory)
|
|
284
|
+
export class ProductCategoryRepository extends Repository<ProductCategory> {}
|
|
285
|
+
|
|
282
286
|
export {
|
|
283
287
|
CartItemRepository,
|
|
284
288
|
CartRepository,
|