@reachu/database 1.0.115 → 1.0.117
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/ProductDigital.d.ts +12 -0
- package/dist/entity/ProductDigital.js +59 -0
- package/dist/entity/ProductDigital.js.map +1 -0
- package/dist/entity/index.d.ts +2 -1
- package/dist/entity/index.js +3 -0
- package/dist/entity/index.js.map +1 -1
- package/dist/migrations/1695658039275-digital-product-v-1.d.ts +6 -0
- package/dist/migrations/1695658039275-digital-product-v-1.js +31 -0
- package/dist/migrations/1695658039275-digital-product-v-1.js.map +1 -0
- package/dist/migrations/1695907880854-digital-product-v-2.d.ts +6 -0
- package/dist/migrations/1695907880854-digital-product-v-2.js +29 -0
- package/dist/migrations/1695907880854-digital-product-v-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 +47 -4
- package/package.json +3 -3
- package/src/entity/ProductDigital.ts +40 -0
- package/src/entity/index.ts +2 -0
- package/src/migrations/1695658039275-digital-product-v-1.ts +16 -0
- package/src/migrations/1695907880854-digital-product-v-2.ts +14 -0
- package/src/repositories/index.ts +4 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import AuditedModel from './AuditedModel';
|
|
2
|
+
import { Product } from './Product.entity';
|
|
3
|
+
export default class ProductDigital extends AuditedModel {
|
|
4
|
+
id: number;
|
|
5
|
+
deletedAt: Date;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_size: number;
|
|
8
|
+
donwload_limit: number;
|
|
9
|
+
expiration_date: Date;
|
|
10
|
+
product: Product;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
let ProductDigital = class ProductDigital extends AuditedModel_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProductDigital.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.DeleteDateColumn(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], ProductDigital.prototype, "deletedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column('text', { nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ProductDigital.prototype, "file_url", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ProductDigital.prototype, "file_size", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], ProductDigital.prototype, "donwload_limit", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.Column('datetime', { nullable: true }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], ProductDigital.prototype, "expiration_date", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.id, {
|
|
46
|
+
eager: false,
|
|
47
|
+
}),
|
|
48
|
+
typeorm_1.JoinColumn(),
|
|
49
|
+
__metadata("design:type", Product_entity_1.Product)
|
|
50
|
+
], ProductDigital.prototype, "product", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
typeorm_1.Column('text', { nullable: false }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ProductDigital.prototype, "name", void 0);
|
|
55
|
+
ProductDigital = __decorate([
|
|
56
|
+
typeorm_1.Entity()
|
|
57
|
+
], ProductDigital);
|
|
58
|
+
exports.default = ProductDigital;
|
|
59
|
+
//# sourceMappingURL=ProductDigital.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductDigital.js","sourceRoot":"","sources":["../../src/entity/ProductDigital.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,kEAA0C;AAC1C,qDAA2C;AAG3C,IAAqB,cAAc,GAAnC,MAAqB,cAAe,SAAQ,sBAAY;CA2BvD,CAAA;AAzBC;IADC,gCAAsB,EAAE;;0CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;iDAAC;AAGhB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACnB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACf;AAGvB;IADC,gBAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;uDAAC;AAMtB;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;+CAAC;AAGjB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4CACvB;AA1BM,cAAc;IADlC,gBAAM,EAAE;GACY,cAAc,CA2BlC;kBA3BoB,cAAc"}
|
package/dist/entity/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ import Currency from './Currency';
|
|
|
59
59
|
import ExchangeRate from './ExchangeRate';
|
|
60
60
|
import EnvironmentConfiguration from './EnvironmentConfiguration';
|
|
61
61
|
import ProductCategory from './ProductCategory';
|
|
62
|
+
import ProductDigital from './ProductDigital';
|
|
62
63
|
import Cart from './modules/shopcart/Cart';
|
|
63
64
|
import CartItem from './modules/shopcart/CartItem';
|
|
64
65
|
import Checkout from './modules/shopcart/Checkout';
|
|
@@ -98,4 +99,4 @@ import Discount from './modules/discount/Discount';
|
|
|
98
99
|
import DiscountCart from './modules/discount/DiscountCart';
|
|
99
100
|
import DiscountProduct from './modules/discount/DiscountProduct';
|
|
100
101
|
import DiscountType from './modules/discount/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, };
|
|
102
|
+
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, ProductDigital, };
|
package/dist/entity/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
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
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
|
+
exports.ProductDigital = void 0;
|
|
8
9
|
const Address_1 = __importDefault(require("./Address"));
|
|
9
10
|
exports.Address = Address_1.default;
|
|
10
11
|
const ApiCredential_1 = __importDefault(require("./ApiCredential"));
|
|
@@ -127,6 +128,8 @@ const EnvironmentConfiguration_1 = __importDefault(require("./EnvironmentConfigu
|
|
|
127
128
|
exports.EnvironmentConfiguration = EnvironmentConfiguration_1.default;
|
|
128
129
|
const ProductCategory_1 = __importDefault(require("./ProductCategory"));
|
|
129
130
|
exports.ProductCategory = ProductCategory_1.default;
|
|
131
|
+
const ProductDigital_1 = __importDefault(require("./ProductDigital"));
|
|
132
|
+
exports.ProductDigital = ProductDigital_1.default;
|
|
130
133
|
const Cart_1 = __importDefault(require("./modules/shopcart/Cart"));
|
|
131
134
|
exports.Cart = Cart_1.default;
|
|
132
135
|
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":[],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+
"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.digitalProductV11695658039275 = void 0;
|
|
13
|
+
class digitalProductV11695658039275 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'digitalProductV11695658039275';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`product_digital\` (\`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, \`file_url\` text NOT NULL, \`file_size\` int NULL, \`donwload_limit\` int NULL, \`expiration_date\` datetime NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD CONSTRAINT \`FK_5ae6751cfab05ae1b8f754939a0\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP FOREIGN KEY \`FK_5ae6751cfab05ae1b8f754939a0\``);
|
|
26
|
+
yield queryRunner.query(`DROP TABLE \`product_digital\``);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.digitalProductV11695658039275 = digitalProductV11695658039275;
|
|
31
|
+
//# sourceMappingURL=1695658039275-digital-product-v-1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1695658039275-digital-product-v-1.js","sourceRoot":"","sources":["../../src/migrations/1695658039275-digital-product-v-1.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6BAA6B;IAA1C;QACI,SAAI,GAAG,+BAA+B,CAAA;IAY1C,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,4bAA4b,CAAC,CAAC;YACtd,MAAM,WAAW,CAAC,KAAK,CAAC,uLAAuL,CAAC,CAAC;QACrN,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;YAC/G,MAAM,WAAW,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAC9D,CAAC;KAAA;CAEJ;AAbD,sEAaC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.digitalProductV21695907880854 = void 0;
|
|
13
|
+
class digitalProductV21695907880854 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'digitalProductV21695907880854';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`name\` text NOT NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`name\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.digitalProductV21695907880854 = digitalProductV21695907880854;
|
|
29
|
+
//# sourceMappingURL=1695907880854-digital-product-v-2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1695907880854-digital-product-v-2.js","sourceRoot":"","sources":["../../src/migrations/1695907880854-digital-product-v-2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6BAA6B;IAA1C;QACI,SAAI,GAAG,+BAA+B,CAAA;IAU1C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAC1F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;QACpF,CAAC;KAAA;CAEJ;AAXD,sEAWC"}
|
|
@@ -57,6 +57,7 @@ import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
|
|
|
57
57
|
import Translate from '../entity/Translate';
|
|
58
58
|
import Connection from '../entity/Connection';
|
|
59
59
|
import ProductCategory from '../entity/ProductCategory';
|
|
60
|
+
import ProductDigital from '../entity/ProductDigital';
|
|
60
61
|
import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
|
|
61
62
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
62
63
|
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
@@ -181,6 +182,8 @@ export declare class ConnectionRepository extends Repository<Connection> {
|
|
|
181
182
|
}
|
|
182
183
|
export declare class ProductCategoryRepository extends Repository<ProductCategory> {
|
|
183
184
|
}
|
|
185
|
+
export declare class ProductDigitalRepository extends Repository<ProductDigital> {
|
|
186
|
+
}
|
|
184
187
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
185
188
|
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
186
189
|
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.ProductCategoryRepository = 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.ProductDigitalRepository = 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"));
|
|
@@ -70,6 +70,7 @@ const EnvironmentConfiguration_1 = __importDefault(require("../entity/Environmen
|
|
|
70
70
|
const Translate_1 = __importDefault(require("../entity/Translate"));
|
|
71
71
|
const Connection_1 = __importDefault(require("../entity/Connection"));
|
|
72
72
|
const ProductCategory_1 = __importDefault(require("../entity/ProductCategory"));
|
|
73
|
+
const ProductDigital_1 = __importDefault(require("../entity/ProductDigital"));
|
|
73
74
|
const shopcart_1 = require("./shopcart");
|
|
74
75
|
Object.defineProperty(exports, "CartItemRepository", { enumerable: true, get: function () { return shopcart_1.CartItemRepository; } });
|
|
75
76
|
Object.defineProperty(exports, "CartRepository", { enumerable: true, get: function () { return shopcart_1.CartRepository; } });
|
|
@@ -461,4 +462,10 @@ ProductCategoryRepository = __decorate([
|
|
|
461
462
|
typeorm_1.EntityRepository(ProductCategory_1.default)
|
|
462
463
|
], ProductCategoryRepository);
|
|
463
464
|
exports.ProductCategoryRepository = ProductCategoryRepository;
|
|
465
|
+
let ProductDigitalRepository = class ProductDigitalRepository extends typeorm_1.Repository {
|
|
466
|
+
};
|
|
467
|
+
ProductDigitalRepository = __decorate([
|
|
468
|
+
typeorm_1.EntityRepository(ProductDigital_1.default)
|
|
469
|
+
], ProductDigitalRepository);
|
|
470
|
+
exports.ProductDigitalRepository = ProductDigitalRepository;
|
|
464
471
|
//# 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;AAC9C,gFAAwD;
|
|
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;A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@@ -2651,6 +2651,11 @@
|
|
|
2651
2651
|
"signature": "416f9204d08d97b17fdf41693dbcbcfa003c5b1ae6e4e4d9986895d5dd5a93a9",
|
|
2652
2652
|
"affectsGlobalScope": false
|
|
2653
2653
|
},
|
|
2654
|
+
"../src/entity/productdigital.ts": {
|
|
2655
|
+
"version": "979148edce9886aef3487d70735d03f835c2d3977ca3cbde5ee8cb7e6506e30a",
|
|
2656
|
+
"signature": "e82c4ae324740ff4e3caeec86c7a74d21840f860e3d21a3b30c2b7d30b9c3632",
|
|
2657
|
+
"affectsGlobalScope": false
|
|
2658
|
+
},
|
|
2654
2659
|
"../src/entity/modules/templates/endpointtemplateecommerce.ts": {
|
|
2655
2660
|
"version": "cfeefc06c867749ddde60e6bb5177a2797c450f2a2efcc8bc3c6091e93568f71",
|
|
2656
2661
|
"signature": "22cbe559bce594ffd910b8d3ae6237a7d9137f68baafdd5e7759c0e26e2d1636",
|
|
@@ -2757,8 +2762,8 @@
|
|
|
2757
2762
|
"affectsGlobalScope": false
|
|
2758
2763
|
},
|
|
2759
2764
|
"../src/entity/index.ts": {
|
|
2760
|
-
"version": "
|
|
2761
|
-
"signature": "
|
|
2765
|
+
"version": "e8377b78af90e802d908f28e5cf3fefd6a914e1411fe13a4e53cd0e4ff2c2481",
|
|
2766
|
+
"signature": "8f339138d382828812163c1c224154e3a7e9216e40f41cba6d0bc67708630b2e",
|
|
2762
2767
|
"affectsGlobalScope": false
|
|
2763
2768
|
},
|
|
2764
2769
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2842,8 +2847,8 @@
|
|
|
2842
2847
|
"affectsGlobalScope": false
|
|
2843
2848
|
},
|
|
2844
2849
|
"../src/repositories/index.ts": {
|
|
2845
|
-
"version": "
|
|
2846
|
-
"signature": "
|
|
2850
|
+
"version": "39cf5a58bc861ec89e90c8bd6a356022b7ce8ab0ca1797061ebb69838195be81",
|
|
2851
|
+
"signature": "41086c7d017c9cb2299c614d9a7f11e9a72d7959a90644c19c614ee45076ee44",
|
|
2847
2852
|
"affectsGlobalScope": false
|
|
2848
2853
|
},
|
|
2849
2854
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3521,6 +3526,16 @@
|
|
|
3521
3526
|
"signature": "5b95f8e8603edb11d8099947cab5f931a6406f5503c21c42ebdb75ad042e0994",
|
|
3522
3527
|
"affectsGlobalScope": false
|
|
3523
3528
|
},
|
|
3529
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts": {
|
|
3530
|
+
"version": "2f51aa125d9c7ffa1207d06ed5bdfac495bb636c33b87005fab66773c8a3c4ea",
|
|
3531
|
+
"signature": "e659d5a979a00a9e06f84e8a49e3e1ee0209081584e3fc61e661be0010c55514",
|
|
3532
|
+
"affectsGlobalScope": false
|
|
3533
|
+
},
|
|
3534
|
+
"../src/migrations/1695907880854-digital-product-v-2.ts": {
|
|
3535
|
+
"version": "a6d812720d8d08a2fa6806d7c7f70eeaf118983bd6962844ef8b3c1999518a54",
|
|
3536
|
+
"signature": "a44b995de12ecde750895d72b61706ba5c063712ea3d2f505597b008f04b92dc",
|
|
3537
|
+
"affectsGlobalScope": false
|
|
3538
|
+
},
|
|
3524
3539
|
"../src/migrations/execute/index.ts": {
|
|
3525
3540
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3526
3541
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5727,6 +5742,7 @@
|
|
|
5727
5742
|
"../src/entity/product.entity.ts",
|
|
5728
5743
|
"../src/entity/productattribute.ts",
|
|
5729
5744
|
"../src/entity/productcategory.ts",
|
|
5745
|
+
"../src/entity/productdigital.ts",
|
|
5730
5746
|
"../src/entity/request.ts",
|
|
5731
5747
|
"../src/entity/return.ts",
|
|
5732
5748
|
"../src/entity/returnaddress.ts",
|
|
@@ -6040,6 +6056,11 @@
|
|
|
6040
6056
|
"../src/entity/category.ts",
|
|
6041
6057
|
"../src/entity/product.entity.ts"
|
|
6042
6058
|
],
|
|
6059
|
+
"../src/entity/productdigital.ts": [
|
|
6060
|
+
"../node_modules/typeorm/index.d.ts",
|
|
6061
|
+
"../src/entity/auditedmodel.ts",
|
|
6062
|
+
"../src/entity/product.entity.ts"
|
|
6063
|
+
],
|
|
6043
6064
|
"../src/entity/request.ts": [
|
|
6044
6065
|
"../node_modules/typeorm/index.d.ts",
|
|
6045
6066
|
"../src/entity/auditedmodel.ts",
|
|
@@ -6531,6 +6552,12 @@
|
|
|
6531
6552
|
"../src/migrations/1695123846329-imported_magento_1.ts": [
|
|
6532
6553
|
"../node_modules/typeorm/index.d.ts"
|
|
6533
6554
|
],
|
|
6555
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts": [
|
|
6556
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6557
|
+
],
|
|
6558
|
+
"../src/migrations/1695907880854-digital-product-v-2.ts": [
|
|
6559
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6560
|
+
],
|
|
6534
6561
|
"../src/migrations/execute/index.ts": [
|
|
6535
6562
|
"../src/config/connect.ts"
|
|
6536
6563
|
],
|
|
@@ -6599,6 +6626,7 @@
|
|
|
6599
6626
|
"../src/entity/product.entity.ts",
|
|
6600
6627
|
"../src/entity/productattribute.ts",
|
|
6601
6628
|
"../src/entity/productcategory.ts",
|
|
6629
|
+
"../src/entity/productdigital.ts",
|
|
6602
6630
|
"../src/entity/request.ts",
|
|
6603
6631
|
"../src/entity/role.ts",
|
|
6604
6632
|
"../src/entity/rolepermission.ts",
|
|
@@ -8694,6 +8722,7 @@
|
|
|
8694
8722
|
"../src/entity/product.entity.ts",
|
|
8695
8723
|
"../src/entity/productattribute.ts",
|
|
8696
8724
|
"../src/entity/productcategory.ts",
|
|
8725
|
+
"../src/entity/productdigital.ts",
|
|
8697
8726
|
"../src/entity/request.ts",
|
|
8698
8727
|
"../src/entity/return.ts",
|
|
8699
8728
|
"../src/entity/returnaddress.ts",
|
|
@@ -8948,6 +8977,10 @@
|
|
|
8948
8977
|
"../src/entity/category.ts",
|
|
8949
8978
|
"../src/entity/product.entity.ts"
|
|
8950
8979
|
],
|
|
8980
|
+
"../src/entity/productdigital.ts": [
|
|
8981
|
+
"../src/entity/auditedmodel.ts",
|
|
8982
|
+
"../src/entity/product.entity.ts"
|
|
8983
|
+
],
|
|
8951
8984
|
"../src/entity/request.ts": [
|
|
8952
8985
|
"../src/entity/auditedmodel.ts",
|
|
8953
8986
|
"../src/entity/user.ts"
|
|
@@ -9396,6 +9429,12 @@
|
|
|
9396
9429
|
"../src/migrations/1695123846329-imported_magento_1.ts": [
|
|
9397
9430
|
"../node_modules/typeorm/index.d.ts"
|
|
9398
9431
|
],
|
|
9432
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts": [
|
|
9433
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9434
|
+
],
|
|
9435
|
+
"../src/migrations/1695907880854-digital-product-v-2.ts": [
|
|
9436
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9437
|
+
],
|
|
9399
9438
|
"../src/migrations/index.ts": [
|
|
9400
9439
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9401
9440
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9461,6 +9500,7 @@
|
|
|
9461
9500
|
"../src/entity/product.entity.ts",
|
|
9462
9501
|
"../src/entity/productattribute.ts",
|
|
9463
9502
|
"../src/entity/productcategory.ts",
|
|
9503
|
+
"../src/entity/productdigital.ts",
|
|
9464
9504
|
"../src/entity/request.ts",
|
|
9465
9505
|
"../src/entity/role.ts",
|
|
9466
9506
|
"../src/entity/rolepermission.ts",
|
|
@@ -10116,6 +10156,7 @@
|
|
|
10116
10156
|
"../src/entity/product.entity.ts",
|
|
10117
10157
|
"../src/entity/productattribute.ts",
|
|
10118
10158
|
"../src/entity/productcategory.ts",
|
|
10159
|
+
"../src/entity/productdigital.ts",
|
|
10119
10160
|
"../src/entity/request.ts",
|
|
10120
10161
|
"../src/entity/return.ts",
|
|
10121
10162
|
"../src/entity/returnaddress.ts",
|
|
@@ -10257,6 +10298,8 @@
|
|
|
10257
10298
|
"../src/migrations/1694787189040-flag-digital.ts",
|
|
10258
10299
|
"../src/migrations/1695122269023-imported_magento.ts",
|
|
10259
10300
|
"../src/migrations/1695123846329-imported_magento_1.ts",
|
|
10301
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts",
|
|
10302
|
+
"../src/migrations/1695907880854-digital-product-v-2.ts",
|
|
10260
10303
|
"../src/migrations/execute/index.ts",
|
|
10261
10304
|
"../src/migrations/index.ts",
|
|
10262
10305
|
"../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.117",
|
|
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.117",
|
|
25
|
+
"@reachu/utils": "1.0.117",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
DeleteDateColumn,
|
|
5
|
+
ManyToOne,
|
|
6
|
+
JoinColumn,
|
|
7
|
+
Column,
|
|
8
|
+
} from 'typeorm';
|
|
9
|
+
import AuditedModel from './AuditedModel';
|
|
10
|
+
import { Product } from './Product.entity';
|
|
11
|
+
|
|
12
|
+
@Entity()
|
|
13
|
+
export default class ProductDigital extends AuditedModel {
|
|
14
|
+
@PrimaryGeneratedColumn()
|
|
15
|
+
id: number;
|
|
16
|
+
|
|
17
|
+
@DeleteDateColumn()
|
|
18
|
+
deletedAt: Date;
|
|
19
|
+
|
|
20
|
+
@Column('text', { nullable: false })
|
|
21
|
+
file_url: string;
|
|
22
|
+
|
|
23
|
+
@Column('integer', { nullable: true })
|
|
24
|
+
file_size: number;
|
|
25
|
+
|
|
26
|
+
@Column('integer', { nullable: true })
|
|
27
|
+
donwload_limit: number;
|
|
28
|
+
|
|
29
|
+
@Column('datetime', { nullable: true })
|
|
30
|
+
expiration_date: Date;
|
|
31
|
+
|
|
32
|
+
@ManyToOne(() => Product, (product: Product) => product.id, {
|
|
33
|
+
eager: false,
|
|
34
|
+
})
|
|
35
|
+
@JoinColumn()
|
|
36
|
+
product: Product;
|
|
37
|
+
|
|
38
|
+
@Column('text', { nullable: false })
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
package/src/entity/index.ts
CHANGED
|
@@ -59,6 +59,7 @@ import Currency from './Currency';
|
|
|
59
59
|
import ExchangeRate from './ExchangeRate';
|
|
60
60
|
import EnvironmentConfiguration from './EnvironmentConfiguration';
|
|
61
61
|
import ProductCategory from './ProductCategory';
|
|
62
|
+
import ProductDigital from './ProductDigital';
|
|
62
63
|
|
|
63
64
|
//shopCart
|
|
64
65
|
import Cart from './modules/shopcart/Cart';
|
|
@@ -216,4 +217,5 @@ export {
|
|
|
216
217
|
DiscountProduct,
|
|
217
218
|
DiscountType,
|
|
218
219
|
ProductCategory,
|
|
220
|
+
ProductDigital,
|
|
219
221
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class digitalProductV11695658039275 implements MigrationInterface {
|
|
4
|
+
name = 'digitalProductV11695658039275'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`product_digital\` (\`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, \`file_url\` text NOT NULL, \`file_size\` int NULL, \`donwload_limit\` int NULL, \`expiration_date\` datetime NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` ADD CONSTRAINT \`FK_5ae6751cfab05ae1b8f754939a0\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` DROP FOREIGN KEY \`FK_5ae6751cfab05ae1b8f754939a0\``);
|
|
13
|
+
await queryRunner.query(`DROP TABLE \`product_digital\``);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class digitalProductV21695907880854 implements MigrationInterface {
|
|
4
|
+
name = 'digitalProductV21695907880854'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`name\` text NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`name\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -61,6 +61,7 @@ import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
|
|
|
61
61
|
import Translate from '../entity/Translate';
|
|
62
62
|
import Connection from '../entity/Connection';
|
|
63
63
|
import ProductCategory from '../entity/ProductCategory';
|
|
64
|
+
import ProductDigital from '../entity/ProductDigital';
|
|
64
65
|
|
|
65
66
|
import {
|
|
66
67
|
CartItemRepository,
|
|
@@ -283,6 +284,9 @@ export class ConnectionRepository extends Repository<Connection> {}
|
|
|
283
284
|
@EntityRepository(ProductCategory)
|
|
284
285
|
export class ProductCategoryRepository extends Repository<ProductCategory> {}
|
|
285
286
|
|
|
287
|
+
@EntityRepository(ProductDigital)
|
|
288
|
+
export class ProductDigitalRepository extends Repository<ProductDigital> {}
|
|
289
|
+
|
|
286
290
|
export {
|
|
287
291
|
CartItemRepository,
|
|
288
292
|
CartRepository,
|