@reachu/database 1.0.103 → 1.0.104
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/ProductCategory.d.ts +9 -0
- package/dist/entity/ProductCategory.js +47 -0
- package/dist/entity/ProductCategory.js.map +1 -0
- 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/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 +37 -4
- package/package.json +3 -3
- package/src/entity/ProductCategory.ts +25 -0
- package/src/entity/index.ts +2 -0
- package/src/migrations/1693335945081-first-step-category-2.ts +18 -0
- package/src/repositories/index.ts +4 -0
|
@@ -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/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":[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K,oBAAU,CA4GL;AA3GZ,8GAAsF;AA4GpF,oCA5GK,mCAAyB,CA4GL;AA3G3B,8FAAsE;AA6GpE,4BA7GK,2BAAiB,CA6GL;AA5GnB,sGAA8E;AA6G5E,gCA7GK,+BAAqB,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"}
|
|
@@ -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,0DAA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,SAAQ,oBAAoB;CAAG,CAAA;AAAlD,kBAAkB;IAD9B,0BAAgB,CAAC,kBAAQ,CAAC;GACd,kBAAkB,CAAgC;AAAlD,gDAAkB;AAG/B,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,oBAAwB;CAAG,CAAA;AAA1D,sBAAsB;IADlC,0BAAgB,CAAC,sBAAY,CAAC;GAClB,sBAAsB,CAAoC;AAA1D,wDAAsB;AAGnC,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,oBAAoC;CAAG,CAAA;AAAlF,kCAAkC;IAD9C,0BAAgB,CAAC,kCAAwB,CAAC;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"}
|
|
@@ -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,11 @@
|
|
|
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
|
+
},
|
|
3479
3489
|
"../src/migrations/execute/index.ts": {
|
|
3480
3490
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3481
3491
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5679,6 +5689,7 @@
|
|
|
5679
5689
|
"../src/entity/price.entity.ts",
|
|
5680
5690
|
"../src/entity/product.entity.ts",
|
|
5681
5691
|
"../src/entity/productattribute.ts",
|
|
5692
|
+
"../src/entity/productcategory.ts",
|
|
5682
5693
|
"../src/entity/request.ts",
|
|
5683
5694
|
"../src/entity/return.ts",
|
|
5684
5695
|
"../src/entity/returnaddress.ts",
|
|
@@ -5986,6 +5997,12 @@
|
|
|
5986
5997
|
"../src/entity/auditedmodel.ts",
|
|
5987
5998
|
"../src/entity/product.entity.ts"
|
|
5988
5999
|
],
|
|
6000
|
+
"../src/entity/productcategory.ts": [
|
|
6001
|
+
"../node_modules/typeorm/index.d.ts",
|
|
6002
|
+
"../src/entity/auditedmodel.ts",
|
|
6003
|
+
"../src/entity/category.ts",
|
|
6004
|
+
"../src/entity/product.entity.ts"
|
|
6005
|
+
],
|
|
5989
6006
|
"../src/entity/request.ts": [
|
|
5990
6007
|
"../node_modules/typeorm/index.d.ts",
|
|
5991
6008
|
"../src/entity/auditedmodel.ts",
|
|
@@ -6451,6 +6468,9 @@
|
|
|
6451
6468
|
"../src/migrations/1693249143377-first-stem-category.ts": [
|
|
6452
6469
|
"../node_modules/typeorm/index.d.ts"
|
|
6453
6470
|
],
|
|
6471
|
+
"../src/migrations/1693335945081-first-step-category-2.ts": [
|
|
6472
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6473
|
+
],
|
|
6454
6474
|
"../src/migrations/execute/index.ts": [
|
|
6455
6475
|
"../src/config/connect.ts"
|
|
6456
6476
|
],
|
|
@@ -6518,6 +6538,7 @@
|
|
|
6518
6538
|
"../src/entity/permission.ts",
|
|
6519
6539
|
"../src/entity/product.entity.ts",
|
|
6520
6540
|
"../src/entity/productattribute.ts",
|
|
6541
|
+
"../src/entity/productcategory.ts",
|
|
6521
6542
|
"../src/entity/request.ts",
|
|
6522
6543
|
"../src/entity/role.ts",
|
|
6523
6544
|
"../src/entity/rolepermission.ts",
|
|
@@ -8610,6 +8631,7 @@
|
|
|
8610
8631
|
"../src/entity/price.entity.ts",
|
|
8611
8632
|
"../src/entity/product.entity.ts",
|
|
8612
8633
|
"../src/entity/productattribute.ts",
|
|
8634
|
+
"../src/entity/productcategory.ts",
|
|
8613
8635
|
"../src/entity/request.ts",
|
|
8614
8636
|
"../src/entity/return.ts",
|
|
8615
8637
|
"../src/entity/returnaddress.ts",
|
|
@@ -8859,6 +8881,11 @@
|
|
|
8859
8881
|
"../src/entity/auditedmodel.ts",
|
|
8860
8882
|
"../src/entity/product.entity.ts"
|
|
8861
8883
|
],
|
|
8884
|
+
"../src/entity/productcategory.ts": [
|
|
8885
|
+
"../src/entity/auditedmodel.ts",
|
|
8886
|
+
"../src/entity/category.ts",
|
|
8887
|
+
"../src/entity/product.entity.ts"
|
|
8888
|
+
],
|
|
8862
8889
|
"../src/entity/request.ts": [
|
|
8863
8890
|
"../src/entity/auditedmodel.ts",
|
|
8864
8891
|
"../src/entity/user.ts"
|
|
@@ -9282,6 +9309,9 @@
|
|
|
9282
9309
|
"../src/migrations/1693249143377-first-stem-category.ts": [
|
|
9283
9310
|
"../node_modules/typeorm/index.d.ts"
|
|
9284
9311
|
],
|
|
9312
|
+
"../src/migrations/1693335945081-first-step-category-2.ts": [
|
|
9313
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9314
|
+
],
|
|
9285
9315
|
"../src/migrations/index.ts": [
|
|
9286
9316
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9287
9317
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9346,6 +9376,7 @@
|
|
|
9346
9376
|
"../src/entity/permission.ts",
|
|
9347
9377
|
"../src/entity/product.entity.ts",
|
|
9348
9378
|
"../src/entity/productattribute.ts",
|
|
9379
|
+
"../src/entity/productcategory.ts",
|
|
9349
9380
|
"../src/entity/request.ts",
|
|
9350
9381
|
"../src/entity/role.ts",
|
|
9351
9382
|
"../src/entity/rolepermission.ts",
|
|
@@ -10000,6 +10031,7 @@
|
|
|
10000
10031
|
"../src/entity/price.entity.ts",
|
|
10001
10032
|
"../src/entity/product.entity.ts",
|
|
10002
10033
|
"../src/entity/productattribute.ts",
|
|
10034
|
+
"../src/entity/productcategory.ts",
|
|
10003
10035
|
"../src/entity/request.ts",
|
|
10004
10036
|
"../src/entity/return.ts",
|
|
10005
10037
|
"../src/entity/returnaddress.ts",
|
|
@@ -10133,6 +10165,7 @@
|
|
|
10133
10165
|
"../src/migrations/1691764260299-promote_to_production_11_08_23.ts",
|
|
10134
10166
|
"../src/migrations/1693220480521-woo_connect_supplier.ts",
|
|
10135
10167
|
"../src/migrations/1693249143377-first-stem-category.ts",
|
|
10168
|
+
"../src/migrations/1693335945081-first-step-category-2.ts",
|
|
10136
10169
|
"../src/migrations/execute/index.ts",
|
|
10137
10170
|
"../src/migrations/index.ts",
|
|
10138
10171
|
"../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.104",
|
|
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.104",
|
|
25
|
+
"@reachu/utils": "1.0.104",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -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/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
|
+
}
|
|
@@ -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,
|