@reachu/database 1.0.114 → 1.0.116
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.d.ts +1 -0
- package/dist/entity/ImportedProduct.js +4 -0
- package/dist/entity/ImportedProduct.js.map +1 -1
- package/dist/entity/ProductDigital.d.ts +11 -0
- package/dist/entity/ProductDigital.js +55 -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/1695123846329-imported_magento_1.d.ts +6 -0
- package/dist/migrations/1695123846329-imported_magento_1.js +33 -0
- package/dist/migrations/1695123846329-imported_magento_1.js.map +1 -0
- 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/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 +49 -6
- package/package.json +3 -3
- package/src/entity/ImportedProduct.ts +3 -0
- package/src/entity/ProductDigital.ts +37 -0
- package/src/entity/index.ts +2 -0
- package/src/migrations/1695123846329-imported_magento_1.ts +18 -0
- package/src/migrations/1695658039275-digital-product-v-1.ts +16 -0
- package/src/repositories/index.ts +4 -0
|
@@ -48,6 +48,10 @@ __decorate([
|
|
|
48
48
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
49
49
|
__metadata("design:type", String)
|
|
50
50
|
], ImportedProduct.prototype, "magentoSku", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ImportedProduct.prototype, "profileMagentoId", void 0);
|
|
51
55
|
__decorate([
|
|
52
56
|
typeorm_1.Column('bigint', { nullable: true }),
|
|
53
57
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AAGxC,IAAqB,eAAe,GAApC,MAAqB,eAAe;
|
|
1
|
+
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AAGxC,IAAqB,eAAe,GAApC,MAAqB,eAAe;CA6CnC,CAAA;AA3CC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC3D,oBAAU,EAAE;8BACP,cAAI;6CAAC;AAIX;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9D,oBAAU,EAAE;8BACJ,wBAAO;gDAAC;AAGjB;IADC,gBAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAClB;AAGnB;IADC,gBAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAClB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAClB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACZ;AAG1B;IADC,gBAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACtB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACf;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAChB;AAGtB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACtB;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,qBAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,oBAAU,EAAE;8BACA,qBAAW;oDAAC;AA5CN,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CA6CnC;kBA7CoB,eAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
ProductDigital = __decorate([
|
|
52
|
+
typeorm_1.Entity()
|
|
53
|
+
], ProductDigital);
|
|
54
|
+
exports.default = ProductDigital;
|
|
55
|
+
//# 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;CAwBvD,CAAA;AAtBC;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;AAvBE,cAAc;IADlC,gBAAM,EAAE;GACY,cAAc,CAwBlC;kBAxBoB,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":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,wDAAgC;AAmI9B,kBAnIK,iBAAO,CAmIL;AAlIT,oEAA4C;AAmI1C,wBAnIK,uBAAa,CAmIL;AAlIf,kEAA0C;AAmIxC,uBAnIK,sBAAY,CAmIL;AAlId,gEAAwC;AAmItC,sBAnIK,qBAAW,CAmIL;AAlIb,0DAAkC;AAmIhC,mBAnIK,kBAAQ,CAmIL;AAlIV,0EAAkD;AAmIhD,2BAnIK,0BAAgB,CAmIL;AAlIlB,0EAAkD;AAmIhD,2BAnIK,0BAAgB,CAm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GK,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.importedMagento11695123846329 = void 0;
|
|
13
|
+
class importedMagento11695123846329 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'importedMagento11695123846329';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_id\` bigint NULL`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_sku\` varchar(255) NULL`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`profile_magento_id\` varchar(255) NULL`);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
down(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`profile_magento_id\``);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.importedMagento11695123846329 = importedMagento11695123846329;
|
|
33
|
+
//# sourceMappingURL=1695123846329-imported_magento_1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1695123846329-imported_magento_1.js","sourceRoot":"","sources":["../../src/migrations/1695123846329-imported_magento_1.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6BAA6B;IAA1C;QACI,SAAI,GAAG,+BAA+B,CAAA;IAc1C,CAAC;IAZgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,wEAAwE,CAAC,CAAC;YAClG,MAAM,WAAW,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;QAC7G,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QAC3F,CAAC;KAAA;CAEJ;AAfD,sEAeC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.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"}
|
|
@@ -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,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AA;AAA9D,wBAAwB;IADpC,0BAAgB,CAAC,wBAAc,CAAC;GACpB,wBAAwB,CAAsC;AAA9D,4DAAwB"}
|
|
@@ -2417,8 +2417,8 @@
|
|
|
2417
2417
|
"affectsGlobalScope": false
|
|
2418
2418
|
},
|
|
2419
2419
|
"../src/entity/importedproduct.ts": {
|
|
2420
|
-
"version": "
|
|
2421
|
-
"signature": "
|
|
2420
|
+
"version": "110ac8ceecb7ae64aa807b9588d274ff2a023fd3e50d6456234bce74a8017823",
|
|
2421
|
+
"signature": "7bf17cca9ae7e345f842523f6b7c3a1bfbec42f3ce8d439b5f1d68a7d70de7f4",
|
|
2422
2422
|
"affectsGlobalScope": false
|
|
2423
2423
|
},
|
|
2424
2424
|
"../src/staticdata/currency.ts": {
|
|
@@ -2651,6 +2651,11 @@
|
|
|
2651
2651
|
"signature": "416f9204d08d97b17fdf41693dbcbcfa003c5b1ae6e4e4d9986895d5dd5a93a9",
|
|
2652
2652
|
"affectsGlobalScope": false
|
|
2653
2653
|
},
|
|
2654
|
+
"../src/entity/productdigital.ts": {
|
|
2655
|
+
"version": "1a8d6b2e87063af60aa677c93941c9dd4ccf8269e6e2305a1a5649fa832629f3",
|
|
2656
|
+
"signature": "e78c087f1f5dd26086ad14cdea5baa5c91fdbb99215315d1e3b2443b214b1027",
|
|
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": {
|
|
@@ -3516,6 +3521,16 @@
|
|
|
3516
3521
|
"signature": "291ded748e5c781ea1a320b63b31ff77a26bf6e89936fe0de9b0075383542633",
|
|
3517
3522
|
"affectsGlobalScope": false
|
|
3518
3523
|
},
|
|
3524
|
+
"../src/migrations/1695123846329-imported_magento_1.ts": {
|
|
3525
|
+
"version": "041792231c6b7b810677f6046ceb107063ae01e8b27a89b88d5b7e8141343986",
|
|
3526
|
+
"signature": "5b95f8e8603edb11d8099947cab5f931a6406f5503c21c42ebdb75ad042e0994",
|
|
3527
|
+
"affectsGlobalScope": false
|
|
3528
|
+
},
|
|
3529
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts": {
|
|
3530
|
+
"version": "2f51aa125d9c7ffa1207d06ed5bdfac495bb636c33b87005fab66773c8a3c4ea",
|
|
3531
|
+
"signature": "e659d5a979a00a9e06f84e8a49e3e1ee0209081584e3fc61e661be0010c55514",
|
|
3532
|
+
"affectsGlobalScope": false
|
|
3533
|
+
},
|
|
3519
3534
|
"../src/migrations/execute/index.ts": {
|
|
3520
3535
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3521
3536
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5722,6 +5737,7 @@
|
|
|
5722
5737
|
"../src/entity/product.entity.ts",
|
|
5723
5738
|
"../src/entity/productattribute.ts",
|
|
5724
5739
|
"../src/entity/productcategory.ts",
|
|
5740
|
+
"../src/entity/productdigital.ts",
|
|
5725
5741
|
"../src/entity/request.ts",
|
|
5726
5742
|
"../src/entity/return.ts",
|
|
5727
5743
|
"../src/entity/returnaddress.ts",
|
|
@@ -6035,6 +6051,11 @@
|
|
|
6035
6051
|
"../src/entity/category.ts",
|
|
6036
6052
|
"../src/entity/product.entity.ts"
|
|
6037
6053
|
],
|
|
6054
|
+
"../src/entity/productdigital.ts": [
|
|
6055
|
+
"../node_modules/typeorm/index.d.ts",
|
|
6056
|
+
"../src/entity/auditedmodel.ts",
|
|
6057
|
+
"../src/entity/product.entity.ts"
|
|
6058
|
+
],
|
|
6038
6059
|
"../src/entity/request.ts": [
|
|
6039
6060
|
"../node_modules/typeorm/index.d.ts",
|
|
6040
6061
|
"../src/entity/auditedmodel.ts",
|
|
@@ -6523,6 +6544,12 @@
|
|
|
6523
6544
|
"../src/migrations/1695122269023-imported_magento.ts": [
|
|
6524
6545
|
"../node_modules/typeorm/index.d.ts"
|
|
6525
6546
|
],
|
|
6547
|
+
"../src/migrations/1695123846329-imported_magento_1.ts": [
|
|
6548
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6549
|
+
],
|
|
6550
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts": [
|
|
6551
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6552
|
+
],
|
|
6526
6553
|
"../src/migrations/execute/index.ts": [
|
|
6527
6554
|
"../src/config/connect.ts"
|
|
6528
6555
|
],
|
|
@@ -6591,6 +6618,7 @@
|
|
|
6591
6618
|
"../src/entity/product.entity.ts",
|
|
6592
6619
|
"../src/entity/productattribute.ts",
|
|
6593
6620
|
"../src/entity/productcategory.ts",
|
|
6621
|
+
"../src/entity/productdigital.ts",
|
|
6594
6622
|
"../src/entity/request.ts",
|
|
6595
6623
|
"../src/entity/role.ts",
|
|
6596
6624
|
"../src/entity/rolepermission.ts",
|
|
@@ -8686,6 +8714,7 @@
|
|
|
8686
8714
|
"../src/entity/product.entity.ts",
|
|
8687
8715
|
"../src/entity/productattribute.ts",
|
|
8688
8716
|
"../src/entity/productcategory.ts",
|
|
8717
|
+
"../src/entity/productdigital.ts",
|
|
8689
8718
|
"../src/entity/request.ts",
|
|
8690
8719
|
"../src/entity/return.ts",
|
|
8691
8720
|
"../src/entity/returnaddress.ts",
|
|
@@ -8940,6 +8969,10 @@
|
|
|
8940
8969
|
"../src/entity/category.ts",
|
|
8941
8970
|
"../src/entity/product.entity.ts"
|
|
8942
8971
|
],
|
|
8972
|
+
"../src/entity/productdigital.ts": [
|
|
8973
|
+
"../src/entity/auditedmodel.ts",
|
|
8974
|
+
"../src/entity/product.entity.ts"
|
|
8975
|
+
],
|
|
8943
8976
|
"../src/entity/request.ts": [
|
|
8944
8977
|
"../src/entity/auditedmodel.ts",
|
|
8945
8978
|
"../src/entity/user.ts"
|
|
@@ -9385,6 +9418,12 @@
|
|
|
9385
9418
|
"../src/migrations/1695122269023-imported_magento.ts": [
|
|
9386
9419
|
"../node_modules/typeorm/index.d.ts"
|
|
9387
9420
|
],
|
|
9421
|
+
"../src/migrations/1695123846329-imported_magento_1.ts": [
|
|
9422
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9423
|
+
],
|
|
9424
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts": [
|
|
9425
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9426
|
+
],
|
|
9388
9427
|
"../src/migrations/index.ts": [
|
|
9389
9428
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9390
9429
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9450,6 +9489,7 @@
|
|
|
9450
9489
|
"../src/entity/product.entity.ts",
|
|
9451
9490
|
"../src/entity/productattribute.ts",
|
|
9452
9491
|
"../src/entity/productcategory.ts",
|
|
9492
|
+
"../src/entity/productdigital.ts",
|
|
9453
9493
|
"../src/entity/request.ts",
|
|
9454
9494
|
"../src/entity/role.ts",
|
|
9455
9495
|
"../src/entity/rolepermission.ts",
|
|
@@ -10105,6 +10145,7 @@
|
|
|
10105
10145
|
"../src/entity/product.entity.ts",
|
|
10106
10146
|
"../src/entity/productattribute.ts",
|
|
10107
10147
|
"../src/entity/productcategory.ts",
|
|
10148
|
+
"../src/entity/productdigital.ts",
|
|
10108
10149
|
"../src/entity/request.ts",
|
|
10109
10150
|
"../src/entity/return.ts",
|
|
10110
10151
|
"../src/entity/returnaddress.ts",
|
|
@@ -10245,6 +10286,8 @@
|
|
|
10245
10286
|
"../src/migrations/1694661125001-user-channel-and-megento-connection.ts",
|
|
10246
10287
|
"../src/migrations/1694787189040-flag-digital.ts",
|
|
10247
10288
|
"../src/migrations/1695122269023-imported_magento.ts",
|
|
10289
|
+
"../src/migrations/1695123846329-imported_magento_1.ts",
|
|
10290
|
+
"../src/migrations/1695658039275-digital-product-v-1.ts",
|
|
10248
10291
|
"../src/migrations/execute/index.ts",
|
|
10249
10292
|
"../src/migrations/index.ts",
|
|
10250
10293
|
"../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.116",
|
|
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.116",
|
|
25
|
+
"@reachu/utils": "1.0.116",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
}
|
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,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class importedMagento11695123846329 implements MigrationInterface {
|
|
4
|
+
name = 'importedMagento11695123846329'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_id\` bigint NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_sku\` varchar(255) NULL`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`profile_magento_id\` varchar(255) NULL`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`profile_magento_id\``);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,
|