@reachu/database 1.0.92 → 1.0.94
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/ImportedProduct.js +1 -1
- package/dist/entity/ImportedProduct.js.map +1 -1
- package/dist/entity/Variant.d.ts +1 -0
- package/dist/entity/Variant.js +4 -0
- package/dist/entity/Variant.js.map +1 -1
- package/dist/entity/index.d.ts +5 -1
- package/dist/entity/index.js +9 -1
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/modules/discount/Discount.d.ts +16 -0
- package/dist/entity/modules/discount/Discount.js +72 -0
- package/dist/entity/modules/discount/Discount.js.map +1 -0
- package/dist/entity/modules/discount/DiscountCart.d.ts +9 -0
- package/dist/entity/modules/discount/DiscountCart.js +47 -0
- package/dist/entity/modules/discount/DiscountCart.js.map +1 -0
- package/dist/entity/modules/discount/DiscountProduct.d.ts +9 -0
- package/dist/entity/modules/discount/DiscountProduct.js +47 -0
- package/dist/entity/modules/discount/DiscountProduct.js.map +1 -0
- package/dist/entity/modules/discount/DiscountType.d.ts +8 -0
- package/dist/entity/modules/discount/DiscountType.js +41 -0
- package/dist/entity/modules/discount/DiscountType.js.map +1 -0
- package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.d.ts +6 -0
- package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.js +31 -0
- package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.js.map +1 -0
- package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.d.ts +6 -0
- package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.js +31 -0
- package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.js.map +1 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.d.ts +6 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.js +47 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.js.map +1 -0
- package/dist/migrations/1689020331011-add-discount.d.ts +6 -0
- package/dist/migrations/1689020331011-add-discount.js +45 -0
- package/dist/migrations/1689020331011-add-discount.js.map +1 -0
- package/dist/repositories/discount/index.d.ts +13 -0
- package/dist/repositories/discount/index.js +42 -0
- package/dist/repositories/discount/index.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -0
- package/dist/repositories/index.js +6 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +153 -7
- package/package.json +3 -3
- package/src/entity/ImportedProduct.ts +1 -1
- package/src/entity/Variant.ts +3 -0
- package/src/entity/index.ts +10 -0
- package/src/entity/modules/discount/Discount.ts +52 -0
- package/src/entity/modules/discount/DiscountCart.ts +25 -0
- package/src/entity/modules/discount/DiscountProduct.ts +25 -0
- package/src/entity/modules/discount/DiscountType.ts +26 -0
- package/src/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.ts +16 -0
- package/src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts +16 -0
- package/src/migrations/1689005718747-add-active-colum-in-variant.ts +32 -0
- package/src/migrations/1689020331011-add-discount.ts +30 -0
- package/src/repositories/discount/index.ts +18 -0
- package/src/repositories/index.ts +14 -0
|
@@ -0,0 +1,45 @@
|
|
|
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.addDiscount1689020331011 = void 0;
|
|
13
|
+
class addDiscount1689020331011 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'addDiscount1689020331011';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`discount_type\` (\`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, \`type\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`CREATE TABLE \`discount_product\` (\`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 NOT NULL, \`discount_id\` int NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
21
|
+
yield queryRunner.query(`CREATE TABLE \`discount_cart\` (\`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, \`discount_id\` int NOT NULL, \`cart_id\` varchar(36) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
22
|
+
yield queryRunner.query(`CREATE TABLE \`discount\` (\`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, \`discount_count\` int NULL, \`code\` varchar(255) NOT NULL, \`percentage\` int NOT NULL, \`start_date\` datetime NOT NULL, \`end_date\` datetime NOT NULL, \`discount_type_id\` int NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`discount_product\` ADD CONSTRAINT \`FK_6939b3f91b1db4d133d20c33e3b\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`discount_product\` ADD CONSTRAINT \`FK_6cfb1683e023b96a42f7e72edd6\` FOREIGN KEY (\`discount_id\`) REFERENCES \`discount\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`discount_cart\` ADD CONSTRAINT \`FK_ff034b5de6a90766ce209ae92a4\` FOREIGN KEY (\`discount_id\`) REFERENCES \`discount\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`discount_cart\` ADD CONSTRAINT \`FK_42951860fa261b863933523298e\` FOREIGN KEY (\`cart_id\`) REFERENCES \`cart\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` ADD CONSTRAINT \`FK_40b4ec0b1661fe175e00646f507\` FOREIGN KEY (\`discount_type_id\`) REFERENCES \`discount_type\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
down(queryRunner) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` DROP FOREIGN KEY \`FK_40b4ec0b1661fe175e00646f507\``);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`discount_cart\` DROP FOREIGN KEY \`FK_42951860fa261b863933523298e\``);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`discount_cart\` DROP FOREIGN KEY \`FK_ff034b5de6a90766ce209ae92a4\``);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`discount_product\` DROP FOREIGN KEY \`FK_6cfb1683e023b96a42f7e72edd6\``);
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`discount_product\` DROP FOREIGN KEY \`FK_6939b3f91b1db4d133d20c33e3b\``);
|
|
37
|
+
yield queryRunner.query(`DROP TABLE \`discount\``);
|
|
38
|
+
yield queryRunner.query(`DROP TABLE \`discount_cart\``);
|
|
39
|
+
yield queryRunner.query(`DROP TABLE \`discount_product\``);
|
|
40
|
+
yield queryRunner.query(`DROP TABLE \`discount_type\``);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.addDiscount1689020331011 = addDiscount1689020331011;
|
|
45
|
+
//# sourceMappingURL=1689020331011-add-discount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1689020331011-add-discount.js","sourceRoot":"","sources":["../../src/migrations/1689020331011-add-discount.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,wBAAwB;IAArC;QACI,SAAI,GAAG,0BAA0B,CAAA;IA0BrC,CAAC;IAxBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,6UAA6U,CAAC,CAAC;YACvW,MAAM,WAAW,CAAC,KAAK,CAAC,2WAA2W,CAAC,CAAC;YACrY,MAAM,WAAW,CAAC,KAAK,CAAC,6WAA6W,CAAC,CAAC;YACvY,MAAM,WAAW,CAAC,KAAK,CAAC,ueAAue,CAAC,CAAC;YACjgB,MAAM,WAAW,CAAC,KAAK,CAAC,wLAAwL,CAAC,CAAC;YAClN,MAAM,WAAW,CAAC,KAAK,CAAC,0LAA0L,CAAC,CAAC;YACpN,MAAM,WAAW,CAAC,KAAK,CAAC,uLAAuL,CAAC,CAAC;YACjN,MAAM,WAAW,CAAC,KAAK,CAAC,+KAA+K,CAAC,CAAC;YACzM,MAAM,WAAW,CAAC,KAAK,CAAC,0LAA0L,CAAC,CAAC;QACxN,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC;YACxG,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;YACnD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;YACxD,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;YAC3D,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAC5D,CAAC;KAAA;CAEJ;AA3BD,4DA2BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Repository } from 'typeorm';
|
|
2
|
+
import Discount from '../../entity/modules/discount/Discount';
|
|
3
|
+
import DiscountCart from '../../entity/modules/discount/DiscountCart';
|
|
4
|
+
import DiscountProduct from '../../entity/modules/discount/DiscountProduct';
|
|
5
|
+
import DiscountType from '../../entity/modules/discount/DiscountType';
|
|
6
|
+
export declare class DiscountRepository extends Repository<Discount> {
|
|
7
|
+
}
|
|
8
|
+
export declare class DiscountCartRepository extends Repository<DiscountCart> {
|
|
9
|
+
}
|
|
10
|
+
export declare class DiscountProductRepository extends Repository<DiscountProduct> {
|
|
11
|
+
}
|
|
12
|
+
export declare class DiscountTypeRepository extends Repository<DiscountType> {
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DiscountTypeRepository = exports.DiscountProductRepository = exports.DiscountCartRepository = exports.DiscountRepository = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Discount_1 = __importDefault(require("../../entity/modules/discount/Discount"));
|
|
15
|
+
const DiscountCart_1 = __importDefault(require("../../entity/modules/discount/DiscountCart"));
|
|
16
|
+
const DiscountProduct_1 = __importDefault(require("../../entity/modules/discount/DiscountProduct"));
|
|
17
|
+
const DiscountType_1 = __importDefault(require("../../entity/modules/discount/DiscountType"));
|
|
18
|
+
let DiscountRepository = class DiscountRepository extends typeorm_1.Repository {
|
|
19
|
+
};
|
|
20
|
+
DiscountRepository = __decorate([
|
|
21
|
+
typeorm_1.EntityRepository(Discount_1.default)
|
|
22
|
+
], DiscountRepository);
|
|
23
|
+
exports.DiscountRepository = DiscountRepository;
|
|
24
|
+
let DiscountCartRepository = class DiscountCartRepository extends typeorm_1.Repository {
|
|
25
|
+
};
|
|
26
|
+
DiscountCartRepository = __decorate([
|
|
27
|
+
typeorm_1.EntityRepository(DiscountCart_1.default)
|
|
28
|
+
], DiscountCartRepository);
|
|
29
|
+
exports.DiscountCartRepository = DiscountCartRepository;
|
|
30
|
+
let DiscountProductRepository = class DiscountProductRepository extends typeorm_1.Repository {
|
|
31
|
+
};
|
|
32
|
+
DiscountProductRepository = __decorate([
|
|
33
|
+
typeorm_1.EntityRepository(DiscountProduct_1.default)
|
|
34
|
+
], DiscountProductRepository);
|
|
35
|
+
exports.DiscountProductRepository = DiscountProductRepository;
|
|
36
|
+
let DiscountTypeRepository = class DiscountTypeRepository extends typeorm_1.Repository {
|
|
37
|
+
};
|
|
38
|
+
DiscountTypeRepository = __decorate([
|
|
39
|
+
typeorm_1.EntityRepository(DiscountType_1.default)
|
|
40
|
+
], DiscountTypeRepository);
|
|
41
|
+
exports.DiscountTypeRepository = DiscountTypeRepository;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/discount/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuD;AAEvD,sFAA8D;AAC9D,8FAAsE;AACtE,oGAA4E;AAC5E,8FAAsE;AAGtE,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,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,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,oBAA2B;CAAG,CAAA;AAAhE,yBAAyB;IADrC,0BAAgB,CAAC,yBAAe,CAAC;GACrB,yBAAyB,CAAuC;AAAhE,8DAAyB;AAGtC,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,oBAAwB;CAAG,CAAA;AAA1D,sBAAsB;IADlC,0BAAgB,CAAC,sBAAY,CAAC;GAClB,sBAAsB,CAAoC;AAA1D,wDAAsB"}
|
|
@@ -59,6 +59,7 @@ import Connection from '../entity/Connection';
|
|
|
59
59
|
import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
|
|
60
60
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
61
61
|
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
62
|
+
import { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository } from './discount';
|
|
62
63
|
import { PlanRepository, SubscriptionRepository, UserCountPlanRepository } from './subscriptions';
|
|
63
64
|
import { Repository } from 'typeorm';
|
|
64
65
|
export declare class CategoryImagesRepository extends Repository<CategoryImages> {
|
|
@@ -179,5 +180,6 @@ export declare class ConnectionRepository extends Repository<Connection> {
|
|
|
179
180
|
}
|
|
180
181
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
181
182
|
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
183
|
+
export { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository, };
|
|
182
184
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
183
185
|
export { PlanRepository, SubscriptionRepository, UserCountPlanRepository };
|
|
@@ -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.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.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"));
|
|
@@ -96,6 +96,11 @@ Object.defineProperty(exports, "TemplateEcommerceSchemeConfigProductRepository",
|
|
|
96
96
|
Object.defineProperty(exports, "TemplateEcommerceSchemeConfigVariantMappedRepository", { enumerable: true, get: function () { return templates_1.TemplateEcommerceSchemeConfigVariantMappedRepository; } });
|
|
97
97
|
Object.defineProperty(exports, "TemplateEcommerceSchemeConfigVariantRepository", { enumerable: true, get: function () { return templates_1.TemplateEcommerceSchemeConfigVariantRepository; } });
|
|
98
98
|
Object.defineProperty(exports, "UserTemplateEcommerceRepository", { enumerable: true, get: function () { return templates_1.UserTemplateEcommerceRepository; } });
|
|
99
|
+
const discount_1 = require("./discount");
|
|
100
|
+
Object.defineProperty(exports, "DiscountRepository", { enumerable: true, get: function () { return discount_1.DiscountRepository; } });
|
|
101
|
+
Object.defineProperty(exports, "DiscountCartRepository", { enumerable: true, get: function () { return discount_1.DiscountCartRepository; } });
|
|
102
|
+
Object.defineProperty(exports, "DiscountProductRepository", { enumerable: true, get: function () { return discount_1.DiscountProductRepository; } });
|
|
103
|
+
Object.defineProperty(exports, "DiscountTypeRepository", { enumerable: true, get: function () { return discount_1.DiscountTypeRepository; } });
|
|
99
104
|
const subscriptions_1 = require("./subscriptions");
|
|
100
105
|
Object.defineProperty(exports, "PlanRepository", { enumerable: true, get: function () { return subscriptions_1.PlanRepository; } });
|
|
101
106
|
Object.defineProperty(exports, "SubscriptionRepository", { enumerable: true, get: function () { return subscriptions_1.SubscriptionRepository; } });
|
|
@@ -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;AAE9C,yCAOoB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAA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
2420
|
-
"version": "
|
|
2420
|
+
"version": "8f9cb6bf66f203519c1a2ed09c997d132eb401ee0108b5042751ca556d89c966",
|
|
2421
2421
|
"signature": "e9b48b9b5b47f7a3626ba1ccec58d7fc386dbf08561909014a88e31bd29ce697",
|
|
2422
2422
|
"affectsGlobalScope": false
|
|
2423
2423
|
},
|
|
@@ -2452,8 +2452,8 @@
|
|
|
2452
2452
|
"affectsGlobalScope": false
|
|
2453
2453
|
},
|
|
2454
2454
|
"../src/entity/variant.ts": {
|
|
2455
|
-
"version": "
|
|
2456
|
-
"signature": "
|
|
2455
|
+
"version": "c42fd60fbcf005363d9f04c6c034b9619e47195cb8c88bcdfb9ed821b685b6fb",
|
|
2456
|
+
"signature": "0c322f9fe0c98d48348ae511ed2b23b4ccd2123e1a099d207f8980ea001ec370",
|
|
2457
2457
|
"affectsGlobalScope": false
|
|
2458
2458
|
},
|
|
2459
2459
|
"../src/entity/channelgroup.ts": {
|
|
@@ -2731,9 +2731,29 @@
|
|
|
2731
2731
|
"signature": "66aeb66b02976ce0c024960b13c257d9847b7d976bf45ea557aecdb03c3ebc2c",
|
|
2732
2732
|
"affectsGlobalScope": false
|
|
2733
2733
|
},
|
|
2734
|
+
"../src/entity/modules/discount/discounttype.ts": {
|
|
2735
|
+
"version": "eba029b15b1111dd6a28f554593dc7fba9d2ed6154f50e552cfd503674520dfd",
|
|
2736
|
+
"signature": "8067585a9d8d0298261a84721e16a5432ac3660e8eb5353fda7bd077ab8bc8b9",
|
|
2737
|
+
"affectsGlobalScope": false
|
|
2738
|
+
},
|
|
2739
|
+
"../src/entity/modules/discount/discountproduct.ts": {
|
|
2740
|
+
"version": "0148bea318f75b3a035a2ce336d44ad2607e4832b6b4ab562f31fcf111148de3",
|
|
2741
|
+
"signature": "0a6a4fef1ce8047d20e63895db6a5f77cad489f02bdc7489e4ec1b1dd80c14e4",
|
|
2742
|
+
"affectsGlobalScope": false
|
|
2743
|
+
},
|
|
2744
|
+
"../src/entity/modules/discount/discountcart.ts": {
|
|
2745
|
+
"version": "b565f1ba4a4e2f00921be1b06209a907f098a2e457f9f14c12f161086be09352",
|
|
2746
|
+
"signature": "ad35aff1901823dc326d1ed22e226617275acb8da536f7b29c7c6c9680f9aa04",
|
|
2747
|
+
"affectsGlobalScope": false
|
|
2748
|
+
},
|
|
2749
|
+
"../src/entity/modules/discount/discount.ts": {
|
|
2750
|
+
"version": "81ea6cfed66841d9daffc8f326bb5ac372b001ef6ae507b6057c29a3eefc75b5",
|
|
2751
|
+
"signature": "701bb5a41ef75e6fc6e3d7efca1dd0d23ca5859a94bf6c981f6c5829f93fbebf",
|
|
2752
|
+
"affectsGlobalScope": false
|
|
2753
|
+
},
|
|
2734
2754
|
"../src/entity/index.ts": {
|
|
2735
|
-
"version": "
|
|
2736
|
-
"signature": "
|
|
2755
|
+
"version": "4f2bd0c5b1393a2ec741fe82f8d6204ac271bf31a2e80401c76d94f69fd55d98",
|
|
2756
|
+
"signature": "6da5e718319e99d0f6f94665d222cecc4ca51e396325db71db33c0a820a82563",
|
|
2737
2757
|
"affectsGlobalScope": false
|
|
2738
2758
|
},
|
|
2739
2759
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2806,14 +2826,19 @@
|
|
|
2806
2826
|
"signature": "6ac131ac4c0f68f7633bd98018a4da95244aeebd16304d7b2f3a90b5a1758b51",
|
|
2807
2827
|
"affectsGlobalScope": false
|
|
2808
2828
|
},
|
|
2829
|
+
"../src/repositories/discount/index.ts": {
|
|
2830
|
+
"version": "f75621b1a52dec42e8446b3bba46ac1fa45cf7fbcc362da4fc8a56bc15248fbd",
|
|
2831
|
+
"signature": "18af6a9f618d786b8eeae57120930db4c555b9c03b11fc83d2dc4bf517cda514",
|
|
2832
|
+
"affectsGlobalScope": false
|
|
2833
|
+
},
|
|
2809
2834
|
"../src/repositories/subscriptions/index.ts": {
|
|
2810
2835
|
"version": "fb2ce5c6b06b7b03e85f2a7db2ae88ff95b4e059cfc31d802923b58167e0e639",
|
|
2811
2836
|
"signature": "e0c202c6c131a21df335201bfa7a25de1add8ab54c53ee665be989600c5f2222",
|
|
2812
2837
|
"affectsGlobalScope": false
|
|
2813
2838
|
},
|
|
2814
2839
|
"../src/repositories/index.ts": {
|
|
2815
|
-
"version": "
|
|
2816
|
-
"signature": "
|
|
2840
|
+
"version": "d6ab4a52095627fbc01f61cc237ef7b8a8e4ff85039f0dea3dee2467ec973694",
|
|
2841
|
+
"signature": "36a4526a8bfebe3c25780b6b014f8c666aed8008ff37d815aeb9552bcb69a8c6",
|
|
2817
2842
|
"affectsGlobalScope": false
|
|
2818
2843
|
},
|
|
2819
2844
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3361,6 +3386,26 @@
|
|
|
3361
3386
|
"signature": "8cd3f783cc6a2fd4f9fe1ae4da675196568d5f2a62545c4c91e12103646af565",
|
|
3362
3387
|
"affectsGlobalScope": false
|
|
3363
3388
|
},
|
|
3389
|
+
"../src/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.ts": {
|
|
3390
|
+
"version": "9b9cee6a0cc11c9ec51b962475c76d5b78fcbf941b3ab55481d61a33b13fe7f0",
|
|
3391
|
+
"signature": "53e4d5e2b2e9623e8a61007157cde5956f1368bdf158306b57be2cfdbbdde00a",
|
|
3392
|
+
"affectsGlobalScope": false
|
|
3393
|
+
},
|
|
3394
|
+
"../src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts": {
|
|
3395
|
+
"version": "69e93407c49dffe8795c8c7fec9a867e82f050a46b40dd24c6b7739d37e5b33a",
|
|
3396
|
+
"signature": "83be3e186c96540835f05f393d7534975aba88bda33144528025fe6a2e7c282b",
|
|
3397
|
+
"affectsGlobalScope": false
|
|
3398
|
+
},
|
|
3399
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts": {
|
|
3400
|
+
"version": "f8b2e2847ad2e60dc90d721e03cd2c1a8a7011ad6311370f2dcc94e90e39de47",
|
|
3401
|
+
"signature": "3a158d546f7668eefbd2f1960bd93fd121e0ed1379fd3c4be21c97bed3094449",
|
|
3402
|
+
"affectsGlobalScope": false
|
|
3403
|
+
},
|
|
3404
|
+
"../src/migrations/1689020331011-add-discount.ts": {
|
|
3405
|
+
"version": "5abe038aa68ec99d6fb8d912ed82d5746242a9e7ceaa6539362d12748be25a77",
|
|
3406
|
+
"signature": "38c13c1e434dcdc8aba76aaa2cde1a55df7ec5708840523025ebb0b48d7b7c8e",
|
|
3407
|
+
"affectsGlobalScope": false
|
|
3408
|
+
},
|
|
3364
3409
|
"../src/migrations/execute/index.ts": {
|
|
3365
3410
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3366
3411
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5518,6 +5563,10 @@
|
|
|
5518
5563
|
"../src/entity/importedproduct.ts",
|
|
5519
5564
|
"../src/entity/magentoconnection.entity.ts",
|
|
5520
5565
|
"../src/entity/metricactiveuser.ts",
|
|
5566
|
+
"../src/entity/modules/discount/discount.ts",
|
|
5567
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
5568
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
5569
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
5521
5570
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
5522
5571
|
"../src/entity/modules/shipping/shipping.ts",
|
|
5523
5572
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -5584,6 +5633,30 @@
|
|
|
5584
5633
|
"../src/entity/metricactiveuser.ts": [
|
|
5585
5634
|
"../node_modules/typeorm/index.d.ts"
|
|
5586
5635
|
],
|
|
5636
|
+
"../src/entity/modules/discount/discount.ts": [
|
|
5637
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5638
|
+
"../src/entity/auditedmodel.ts",
|
|
5639
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
5640
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
5641
|
+
"../src/entity/modules/discount/discounttype.ts"
|
|
5642
|
+
],
|
|
5643
|
+
"../src/entity/modules/discount/discountcart.ts": [
|
|
5644
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5645
|
+
"../src/entity/auditedmodel.ts",
|
|
5646
|
+
"../src/entity/modules/discount/discount.ts",
|
|
5647
|
+
"../src/entity/modules/shopcart/cart.ts"
|
|
5648
|
+
],
|
|
5649
|
+
"../src/entity/modules/discount/discountproduct.ts": [
|
|
5650
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5651
|
+
"../src/entity/auditedmodel.ts",
|
|
5652
|
+
"../src/entity/modules/discount/discount.ts",
|
|
5653
|
+
"../src/entity/product.entity.ts"
|
|
5654
|
+
],
|
|
5655
|
+
"../src/entity/modules/discount/discounttype.ts": [
|
|
5656
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5657
|
+
"../src/entity/auditedmodel.ts",
|
|
5658
|
+
"../src/entity/modules/discount/discount.ts"
|
|
5659
|
+
],
|
|
5587
5660
|
"../src/entity/modules/shipping/productshipping.ts": [
|
|
5588
5661
|
"../node_modules/typeorm/index.d.ts",
|
|
5589
5662
|
"../src/entity/auditedmodel.ts",
|
|
@@ -6251,6 +6324,18 @@
|
|
|
6251
6324
|
"../src/migrations/1688489173526-add-webhook-template.ts": [
|
|
6252
6325
|
"../node_modules/typeorm/index.d.ts"
|
|
6253
6326
|
],
|
|
6327
|
+
"../src/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.ts": [
|
|
6328
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6329
|
+
],
|
|
6330
|
+
"../src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts": [
|
|
6331
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6332
|
+
],
|
|
6333
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts": [
|
|
6334
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6335
|
+
],
|
|
6336
|
+
"../src/migrations/1689020331011-add-discount.ts": [
|
|
6337
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6338
|
+
],
|
|
6254
6339
|
"../src/migrations/execute/index.ts": [
|
|
6255
6340
|
"../src/config/connect.ts"
|
|
6256
6341
|
],
|
|
@@ -6266,6 +6351,13 @@
|
|
|
6266
6351
|
"../src/migrations/1648526519546-addedusersettings.ts",
|
|
6267
6352
|
"../src/migrations/1651206194365-wolt.ts"
|
|
6268
6353
|
],
|
|
6354
|
+
"../src/repositories/discount/index.ts": [
|
|
6355
|
+
"../node_modules/typeorm/index.d.ts",
|
|
6356
|
+
"../src/entity/modules/discount/discount.ts",
|
|
6357
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
6358
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
6359
|
+
"../src/entity/modules/discount/discounttype.ts"
|
|
6360
|
+
],
|
|
6269
6361
|
"../src/repositories/index.ts": [
|
|
6270
6362
|
"../node_modules/typeorm/index.d.ts",
|
|
6271
6363
|
"../src/entity/apicredential.ts",
|
|
@@ -6326,6 +6418,7 @@
|
|
|
6326
6418
|
"../src/entity/variant.ts",
|
|
6327
6419
|
"../src/entity/wallet.ts",
|
|
6328
6420
|
"../src/entity/wooconnection.ts",
|
|
6421
|
+
"../src/repositories/discount/index.ts",
|
|
6329
6422
|
"../src/repositories/shipping/index.ts",
|
|
6330
6423
|
"../src/repositories/shopcart/index.ts",
|
|
6331
6424
|
"../src/repositories/subscriptions/index.ts",
|
|
@@ -8356,6 +8449,10 @@
|
|
|
8356
8449
|
"../src/entity/importedproduct.ts",
|
|
8357
8450
|
"../src/entity/magentoconnection.entity.ts",
|
|
8358
8451
|
"../src/entity/metricactiveuser.ts",
|
|
8452
|
+
"../src/entity/modules/discount/discount.ts",
|
|
8453
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
8454
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
8455
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
8359
8456
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
8360
8457
|
"../src/entity/modules/shipping/shipping.ts",
|
|
8361
8458
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -8418,6 +8515,26 @@
|
|
|
8418
8515
|
"../src/entity/magentoconnection.entity.ts": [
|
|
8419
8516
|
"../src/entity/user.ts"
|
|
8420
8517
|
],
|
|
8518
|
+
"../src/entity/modules/discount/discount.ts": [
|
|
8519
|
+
"../src/entity/auditedmodel.ts",
|
|
8520
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
8521
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
8522
|
+
"../src/entity/modules/discount/discounttype.ts"
|
|
8523
|
+
],
|
|
8524
|
+
"../src/entity/modules/discount/discountcart.ts": [
|
|
8525
|
+
"../src/entity/auditedmodel.ts",
|
|
8526
|
+
"../src/entity/modules/discount/discount.ts",
|
|
8527
|
+
"../src/entity/modules/shopcart/cart.ts"
|
|
8528
|
+
],
|
|
8529
|
+
"../src/entity/modules/discount/discountproduct.ts": [
|
|
8530
|
+
"../src/entity/auditedmodel.ts",
|
|
8531
|
+
"../src/entity/modules/discount/discount.ts",
|
|
8532
|
+
"../src/entity/product.entity.ts"
|
|
8533
|
+
],
|
|
8534
|
+
"../src/entity/modules/discount/discounttype.ts": [
|
|
8535
|
+
"../src/entity/auditedmodel.ts",
|
|
8536
|
+
"../src/entity/modules/discount/discount.ts"
|
|
8537
|
+
],
|
|
8421
8538
|
"../src/entity/modules/shipping/productshipping.ts": [
|
|
8422
8539
|
"../src/entity/auditedmodel.ts",
|
|
8423
8540
|
"../src/entity/modules/shipping/shipping.ts",
|
|
@@ -8996,6 +9113,18 @@
|
|
|
8996
9113
|
"../src/migrations/1688489173526-add-webhook-template.ts": [
|
|
8997
9114
|
"../node_modules/typeorm/index.d.ts"
|
|
8998
9115
|
],
|
|
9116
|
+
"../src/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.ts": [
|
|
9117
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9118
|
+
],
|
|
9119
|
+
"../src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts": [
|
|
9120
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9121
|
+
],
|
|
9122
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts": [
|
|
9123
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9124
|
+
],
|
|
9125
|
+
"../src/migrations/1689020331011-add-discount.ts": [
|
|
9126
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9127
|
+
],
|
|
8999
9128
|
"../src/migrations/index.ts": [
|
|
9000
9129
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9001
9130
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9008,6 +9137,13 @@
|
|
|
9008
9137
|
"../src/migrations/1648526519546-addedusersettings.ts",
|
|
9009
9138
|
"../src/migrations/1651206194365-wolt.ts"
|
|
9010
9139
|
],
|
|
9140
|
+
"../src/repositories/discount/index.ts": [
|
|
9141
|
+
"../node_modules/typeorm/index.d.ts",
|
|
9142
|
+
"../src/entity/modules/discount/discount.ts",
|
|
9143
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
9144
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
9145
|
+
"../src/entity/modules/discount/discounttype.ts"
|
|
9146
|
+
],
|
|
9011
9147
|
"../src/repositories/index.ts": [
|
|
9012
9148
|
"../node_modules/typeorm/index.d.ts",
|
|
9013
9149
|
"../src/entity/apicredential.ts",
|
|
@@ -9068,6 +9204,7 @@
|
|
|
9068
9204
|
"../src/entity/variant.ts",
|
|
9069
9205
|
"../src/entity/wallet.ts",
|
|
9070
9206
|
"../src/entity/wooconnection.ts",
|
|
9207
|
+
"../src/repositories/discount/index.ts",
|
|
9071
9208
|
"../src/repositories/shipping/index.ts",
|
|
9072
9209
|
"../src/repositories/shopcart/index.ts",
|
|
9073
9210
|
"../src/repositories/subscriptions/index.ts",
|
|
@@ -9661,6 +9798,10 @@
|
|
|
9661
9798
|
"../src/entity/index.ts",
|
|
9662
9799
|
"../src/entity/magentoconnection.entity.ts",
|
|
9663
9800
|
"../src/entity/metricactiveuser.ts",
|
|
9801
|
+
"../src/entity/modules/discount/discount.ts",
|
|
9802
|
+
"../src/entity/modules/discount/discountcart.ts",
|
|
9803
|
+
"../src/entity/modules/discount/discountproduct.ts",
|
|
9804
|
+
"../src/entity/modules/discount/discounttype.ts",
|
|
9664
9805
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
9665
9806
|
"../src/entity/modules/shipping/shipping.ts",
|
|
9666
9807
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -9817,8 +9958,13 @@
|
|
|
9817
9958
|
"../src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts",
|
|
9818
9959
|
"../src/migrations/1688049065964-add-title-endpoint.ts",
|
|
9819
9960
|
"../src/migrations/1688489173526-add-webhook-template.ts",
|
|
9961
|
+
"../src/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.ts",
|
|
9962
|
+
"../src/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.ts",
|
|
9963
|
+
"../src/migrations/1689005718747-add-active-colum-in-variant.ts",
|
|
9964
|
+
"../src/migrations/1689020331011-add-discount.ts",
|
|
9820
9965
|
"../src/migrations/execute/index.ts",
|
|
9821
9966
|
"../src/migrations/index.ts",
|
|
9967
|
+
"../src/repositories/discount/index.ts",
|
|
9822
9968
|
"../src/repositories/index.ts",
|
|
9823
9969
|
"../src/repositories/shipping/index.ts",
|
|
9824
9970
|
"../src/repositories/shopcart/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.94",
|
|
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.94",
|
|
25
|
+
"@reachu/utils": "1.0.94",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
package/src/entity/Variant.ts
CHANGED
|
@@ -37,6 +37,9 @@ export default class Variant {
|
|
|
37
37
|
@Column(() => Price, { prefix: 'price_' })
|
|
38
38
|
originalPrice: Price;
|
|
39
39
|
|
|
40
|
+
@Column('boolean', { default: true })
|
|
41
|
+
active: boolean;
|
|
42
|
+
|
|
40
43
|
@ManyToOne(() => Product, (product) => product.variants, { onDelete: 'CASCADE' })
|
|
41
44
|
@JoinColumn()
|
|
42
45
|
product: Product;
|
package/src/entity/index.ts
CHANGED
|
@@ -108,6 +108,12 @@ import UserCountPlan from './modules/subscriptions/UserCountPlan';
|
|
|
108
108
|
import Translate from './Translate';
|
|
109
109
|
import Connection from './Connection';
|
|
110
110
|
|
|
111
|
+
//Discount
|
|
112
|
+
import Discount from './modules/discount/Discount';
|
|
113
|
+
import DiscountCart from './modules/discount/DiscountCart';
|
|
114
|
+
import DiscountProduct from './modules/discount/DiscountProduct';
|
|
115
|
+
import DiscountType from './modules/discount/DiscountType';
|
|
116
|
+
|
|
111
117
|
export {
|
|
112
118
|
CustomVariant,
|
|
113
119
|
CustomProduct,
|
|
@@ -204,4 +210,8 @@ export {
|
|
|
204
210
|
EnvironmentConfiguration,
|
|
205
211
|
Translate,
|
|
206
212
|
Connection,
|
|
213
|
+
Discount,
|
|
214
|
+
DiscountCart,
|
|
215
|
+
DiscountProduct,
|
|
216
|
+
DiscountType,
|
|
207
217
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
DeleteDateColumn,
|
|
5
|
+
Column,
|
|
6
|
+
OneToMany,
|
|
7
|
+
JoinColumn,
|
|
8
|
+
ManyToOne,
|
|
9
|
+
} from 'typeorm';
|
|
10
|
+
import AuditedModel from '../../AuditedModel';
|
|
11
|
+
import DiscountType from './DiscountType';
|
|
12
|
+
import DiscountProduct from './DiscountProduct';
|
|
13
|
+
import DiscountCart from './DiscountCart';
|
|
14
|
+
|
|
15
|
+
@Entity()
|
|
16
|
+
export default class Discount extends AuditedModel {
|
|
17
|
+
@PrimaryGeneratedColumn()
|
|
18
|
+
id: number;
|
|
19
|
+
|
|
20
|
+
@DeleteDateColumn()
|
|
21
|
+
deletedAt: Date;
|
|
22
|
+
|
|
23
|
+
@Column('integer', { nullable: true })
|
|
24
|
+
discountCount?: number;
|
|
25
|
+
|
|
26
|
+
@Column('varchar', { nullable: false })
|
|
27
|
+
code: string;
|
|
28
|
+
|
|
29
|
+
@Column('integer', { nullable: false })
|
|
30
|
+
percentage: number;
|
|
31
|
+
|
|
32
|
+
@Column('datetime', { nullable: false })
|
|
33
|
+
startDate: Date;
|
|
34
|
+
|
|
35
|
+
@Column('datetime', { nullable: false })
|
|
36
|
+
endDate: Date;
|
|
37
|
+
|
|
38
|
+
@ManyToOne(() => DiscountType, (discountType: DiscountType) => discountType.discount, {
|
|
39
|
+
onDelete: 'CASCADE',
|
|
40
|
+
nullable: false,
|
|
41
|
+
})
|
|
42
|
+
@JoinColumn()
|
|
43
|
+
discountType: DiscountType;
|
|
44
|
+
|
|
45
|
+
@OneToMany(() => DiscountProduct, (discountProduct: DiscountProduct) => discountProduct.discount)
|
|
46
|
+
@JoinColumn()
|
|
47
|
+
discountProduct: DiscountProduct[];
|
|
48
|
+
|
|
49
|
+
@OneToMany(() => DiscountCart, (discountCart: DiscountCart) => discountCart.discount)
|
|
50
|
+
@JoinColumn()
|
|
51
|
+
discountCart: DiscountCart[];
|
|
52
|
+
}
|