@reachu/database 1.0.212 → 1.0.214
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/index.d.ts +2 -1
- package/dist/entity/index.js +6 -3
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/modules/liveshow/LiveShow.d.ts +18 -0
- package/dist/entity/modules/liveshow/LiveShow.js +84 -0
- package/dist/entity/modules/liveshow/LiveShow.js.map +1 -0
- package/dist/migrations/1747777929517-new-prod.d.ts +6 -0
- package/dist/migrations/1747777929517-new-prod.js +44 -0
- package/dist/migrations/1747777929517-new-prod.js.map +1 -0
- package/dist/migrations/1747783183804-new-qa.d.ts +6 -0
- package/dist/migrations/1747783183804-new-qa.js +105 -0
- package/dist/migrations/1747783183804-new-qa.js.map +1 -0
- package/dist/migrations/1747783948794-new-qa-2.d.ts +6 -0
- package/dist/migrations/1747783948794-new-qa-2.js +43 -0
- package/dist/migrations/1747783948794-new-qa-2.js.map +1 -0
- package/dist/migrations/1758571354123-liveshow.d.ts +6 -0
- package/dist/migrations/1758571354123-liveshow.js +31 -0
- package/dist/migrations/1758571354123-liveshow.js.map +1 -0
- package/dist/migrations/1758573787467-liveshow2.d.ts +6 -0
- package/dist/migrations/1758573787467-liveshow2.js +39 -0
- package/dist/migrations/1758573787467-liveshow2.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -0
- package/dist/repositories/index.js +3 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/liveshow/index.d.ts +4 -0
- package/dist/repositories/liveshow/index.js +21 -0
- package/dist/repositories/liveshow/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +97 -4
- package/package.json +3 -3
- package/src/entity/index.ts +4 -0
- package/src/entity/modules/liveshow/LiveShow.ts +59 -0
- package/src/migrations/1747777929517-new-prod.ts +56 -0
- package/src/migrations/1747783183804-new-qa.ts +178 -0
- package/src/migrations/1747783948794-new-qa-2.ts +28 -0
- package/src/migrations/1758571354123-liveshow.ts +21 -0
- package/src/migrations/1758573787467-liveshow2.ts +25 -0
- package/src/repositories/index.ts +4 -0
- package/src/repositories/liveshow/index.ts +6 -0
package/dist/entity/index.d.ts
CHANGED
|
@@ -106,4 +106,5 @@ import TemplateEmailChannelUserOrderConfirmation from './TemplateEmailChannelUse
|
|
|
106
106
|
import ProductScraping from './ProductScraping';
|
|
107
107
|
import ChannelUserProducts from './ChannelUserProducts';
|
|
108
108
|
import NotFoundProduct from './NotFoundProduct';
|
|
109
|
-
|
|
109
|
+
import LiveShow from './modules/liveshow/LiveShow';
|
|
110
|
+
export { LiveShow, 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, 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, EnvType, MagentoBulk, EcomUser, ChannelUserSettings, TemplateEmailChannelUserOrderConfirmation, ProductScraping, ChannelUserProducts, NotFoundProduct, };
|
package/dist/entity/index.js
CHANGED
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.NotFoundProduct = exports.ChannelUserProducts = exports.ProductScraping = exports.TemplateEmailChannelUserOrderConfirmation = exports.ChannelUserSettings = exports.EcomUser = exports.MagentoBulk = exports.EnvType = void 0;
|
|
6
|
+
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 = exports.LiveShow = void 0;
|
|
7
|
+
exports.ProductCategory = exports.DiscountType = exports.DiscountProduct = exports.DiscountCart = exports.Discount = exports.Connection = exports.Translate = exports.EnvironmentConfiguration = exports.UserCountPlan = exports.Subscription = exports.Plan = exports.ReachuSchemeConfigVariant = exports.TemplateEcommerceSchemeConfigVariantMapped = exports.TemplateEcommerceSchemeConfigVariant = exports.ReachuSchemeConfigProduct = exports.TemplateEcommerceSchemeConfigProductMapped = exports.TemplateEcommerceSchemeConfigProduct = exports.ReachuSchemeConfigOrder = exports.TemplateEcommerceSchemeConfigOrderMapped = exports.TemplateEcommerceSchemeConfigOrder = exports.UserTemplateEcommerce = exports.TemplateEcommerce = exports.WebhookTemplateEcommerce = exports.EndpointTemplateEcommerce = exports.AuthMethod = exports.AuthInfo = exports.CategoryImages = exports.ProductAttribute = exports.Attribute = exports.ExchangeRate = exports.Currency = exports.UserChannelApiKey = exports.ChannelUserProductSync = exports.ChannelUser = exports.ChannelGroup = exports.CollectionShared = exports.CollectionItem = exports.Collection = exports.PaymentMethod = exports.UserSettings = exports.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = exports.RolePermission = exports.Role = void 0;
|
|
8
|
+
exports.NotFoundProduct = exports.ChannelUserProducts = exports.ProductScraping = exports.TemplateEmailChannelUserOrderConfirmation = exports.ChannelUserSettings = exports.EcomUser = exports.MagentoBulk = exports.EnvType = exports.ProductDigital = void 0;
|
|
9
9
|
const Address_1 = __importDefault(require("./Address"));
|
|
10
10
|
exports.Address = Address_1.default;
|
|
11
11
|
const ApiCredential_1 = __importDefault(require("./ApiCredential"));
|
|
@@ -222,4 +222,7 @@ const ChannelUserProducts_1 = __importDefault(require("./ChannelUserProducts"));
|
|
|
222
222
|
exports.ChannelUserProducts = ChannelUserProducts_1.default;
|
|
223
223
|
const NotFoundProduct_1 = __importDefault(require("./NotFoundProduct"));
|
|
224
224
|
exports.NotFoundProduct = NotFoundProduct_1.default;
|
|
225
|
+
const LiveShow_1 = __importDefault(require("./modules/liveshow/LiveShow"));
|
|
226
|
+
exports.LiveShow = LiveShow_1.default;
|
|
227
|
+
('./modules/LiveShow/LiveShow');
|
|
225
228
|
//# sourceMappingURL=index.js.map
|
package/dist/entity/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,wDAAgC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,wDAAgC;AAkJ9B,kBAlJK,iBAAO,CAkJL;AAjJT,oEAA4C;AAkJ1C,wBAlJK,uBAAa,CAkJL;AAjJf,kEAA0C;AAkJxC,uBAlJK,sBAAY,CAkJL;AAjJd,gEAAwC;AAkJtC,sBAlJK,qBAAW,CAkJL;AAjJb,0DAAkC;AAkJhC,mBAlJK,kBAAQ,CAkJL;AAjJV,0EAAkD;AAkJhD,2BAlJK,0BAAgB,CAkJL;AAjJlB,0EAAkD;AAkJhD,2BAlJK,0BAAgB,CAkJL;AAjJlB,0DAAkC;AAkJhC,mBAlJK,kBAAQ,CAkJL;AAjJV,wDAAgC;AAkJ9B,kBAlJK,iBAAO,CAkJL;AAjJT,oDAA4B;AAkJ1B,gBAlJK,eAAK,CAkJL;AAjJP,0EAAkD;AAkJhD,2BAlJK,0BAAgB,CAkJL;AAjJlB,wDAAgC;AAkJ9B,kBAlJK,iBAAO,CAkJL;AAjJT,wDAAgC;AAkJ9B,kBAlJK,iBAAO,CAkJL;AAjJT,wDAAgC;AAkJ9B,kBAlJK,iBAAO,CAkJL;AAjJT,0DAAkC;AAkJhC,mBAlJK,kBAAQ,CAkJL;AAjJV,wEAAgD;AAkJ9C,0BAlJK,yBAAe,CAkJL;AAjJjB,gEAAwC;AAkJtC,sBAlJK,qBAAW,CAkJL;AAjJb,oDAA4B;AAkJ1B,gBAlJK,eAAK,CAkJL;AAjJP,wEAAgD;AAkJ9C,0BAlJK,yBAAe,CAkJL;AAjJjB,yEAA+D;AAkJ7D,kGAlJO,4CAAiB,OAkJP;AAjJnB,0EAAkD;AAkJhD,2BAlJK,0BAAgB,CAkJL;AAjJlB,kEAA0C;AAkJxC,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AQ,CAkHL;AAjHV,mFAA2D;AAkHzD,uBAlHK,sBAAY,CAkHL;AAjHd,yFAAiE;AAkH/D,0BAlHK,yBAAe,CAkHL;AAjHjB,mFAA2D;AAkHzD,uBAlHK,sBAAY,CAkHL;AAhHd,gEAAwC;AAoHtC,sBApHK,qBAAW,CAoHL;AAlHb,4DAAmC;AAmHjC,mBAnHK,mBAAQ,CAmHL;AAjHV,4HAAoG;AAmHlG,oDAnHK,mDAAyC,CAmHL;AAjH3C,wEAAgD;AAkH9C,0BAlHK,yBAAe,CAkHL;AAjHjB,gFAAwD;AAkHtD,8BAlHK,6BAAmB,CAkHL;AAjHrB,wEAAgD;AAkH9C,0BAlHK,yBAAe,CAkHL;AAhHjB,2EAAmD;AAIjD,mBAJK,kBAAQ,CAIL;AAHV,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import AuditedModel from '../../AuditedModel';
|
|
2
|
+
import ChannelUser from '../../ChannelUser';
|
|
3
|
+
export default class LiveShow extends AuditedModel {
|
|
4
|
+
id: string;
|
|
5
|
+
deletedAt: Date;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
eventId?: string;
|
|
9
|
+
videoId?: string;
|
|
10
|
+
liveEnd?: boolean;
|
|
11
|
+
broadcasting?: boolean;
|
|
12
|
+
hls?: string;
|
|
13
|
+
streamKey?: string;
|
|
14
|
+
startDate?: Date;
|
|
15
|
+
endDate?: Date;
|
|
16
|
+
thumbnail?: string;
|
|
17
|
+
channelUser?: ChannelUser;
|
|
18
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 ChannelUser_1 = __importDefault(require("../../ChannelUser"));
|
|
18
|
+
let LiveShow = class LiveShow extends AuditedModel_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn('uuid'),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], LiveShow.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.DeleteDateColumn(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], LiveShow.prototype, "deletedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], LiveShow.prototype, "title", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], LiveShow.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], LiveShow.prototype, "eventId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], LiveShow.prototype, "videoId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
typeorm_1.Column('boolean', { nullable: true, default: false }),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], LiveShow.prototype, "liveEnd", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
typeorm_1.Column('boolean', { nullable: true, default: false }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], LiveShow.prototype, "broadcasting", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], LiveShow.prototype, "hls", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], LiveShow.prototype, "streamKey", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
typeorm_1.Column({ type: 'timestamp', nullable: true }),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], LiveShow.prototype, "startDate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
typeorm_1.Column({ type: 'timestamp', nullable: true }),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], LiveShow.prototype, "endDate", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], LiveShow.prototype, "thumbnail", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
typeorm_1.ManyToOne(() => ChannelUser_1.default, (channelUser) => channelUser.id, {
|
|
74
|
+
onDelete: 'CASCADE',
|
|
75
|
+
nullable: true,
|
|
76
|
+
}),
|
|
77
|
+
typeorm_1.JoinColumn(),
|
|
78
|
+
__metadata("design:type", ChannelUser_1.default)
|
|
79
|
+
], LiveShow.prototype, "channelUser", void 0);
|
|
80
|
+
LiveShow = __decorate([
|
|
81
|
+
typeorm_1.Entity()
|
|
82
|
+
], LiveShow);
|
|
83
|
+
exports.default = LiveShow;
|
|
84
|
+
//# sourceMappingURL=LiveShow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveShow.js","sourceRoot":"","sources":["../../../../src/entity/modules/liveshow/LiveShow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,oEAA4C;AAG5C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CA8CjD,CAAA;AA5CC;IADC,gCAAsB,CAAC,MAAM,CAAC;;oCACpB;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACvB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACjB;AAGrB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACpC;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CAC/B;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACzB;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACnB;AAGnB;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,IAAI;2CAAC;AAGjB;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;yCAAC;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACpC;AAOnB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,qBAAW,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC1E,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACC,qBAAW;6CAAC;AA7CP,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA8C5B;kBA9CoB,QAAQ"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.newProd1747777929517 = void 0;
|
|
13
|
+
class newProd1747777929517 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'newProd1747777929517';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`channel_user_products\` (\`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), \`deleted_at\` datetime(6) NULL, \`id\` int NOT NULL AUTO_INCREMENT, \`title\` varchar(255) NULL, \`description\` text NULL, \`public_price\` decimal(10,2) NULL, \`referral_fee\` int NOT NULL DEFAULT '10', \`tags\` varchar(255) NULL DEFAULT '', \`sku\` varchar(255) NULL, \`barcode\` varchar(255) NULL, \`quantity\` int NULL, \`options_enabled\` tinyint NOT NULL DEFAULT 0, \`digital\` tinyint NOT NULL DEFAULT 0, \`origin\` varchar(255) NULL, \`brand\` varchar(255) NULL, \`channel_user_id\` int NULL, \`product_id\` int NULL, \`collection_id\` varchar(10) NULL, \`price_amount\` decimal(10,2) NULL, \`price_currency_code\` varchar(255) NULL, \`price_base_amount\` decimal(10,2) NULL, \`price_compare_at\` decimal(10,2) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`CREATE TABLE \`not_found_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, \`api_key\` varchar(255) NOT NULL, \`channel_id_general\` int NOT NULL, \`channel_id\` int NOT NULL, \`channel_name\` varchar(255) NULL, \`barcode\` varchar(255) NOT NULL, \`count\` int NULL, UNIQUE INDEX \`IDX_cc976f2be6a2290712b72f2159\` (\`api_key\`, \`channel_id_general\`, \`channel_id\`, \`barcode\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` ADD \`vipps\` tinyint NOT NULL DEFAULT 0`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_billing_address\` MODIFY \`phone\` bigint NULL`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_shipping_address\` MODIFY \`phone\` bigint NULL`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_635d9f7bf7582fca6e2b961bdbe\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_ef37d3e38597aa6352c51ca2d57\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_6a15e1ba4f071b0fa85f8188756\` FOREIGN KEY (\`collection_id\`) REFERENCES \`collection\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
down(queryRunner) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_6a15e1ba4f071b0fa85f8188756\``);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_ef37d3e38597aa6352c51ca2d57\``);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_635d9f7bf7582fca6e2b961bdbe\``);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_shipping_address\` ADD \`phone\` int NULL`);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_billing_address\` ADD \`phone\` int NULL`);
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`vipps\``);
|
|
37
|
+
yield queryRunner.query(`DROP INDEX \`IDX_cc976f2be6a2290712b72f2159\` ON \`not_found_product\``);
|
|
38
|
+
yield queryRunner.query(`DROP TABLE \`not_found_product\``);
|
|
39
|
+
yield queryRunner.query(`DROP TABLE \`channel_user_products\``);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.newProd1747777929517 = newProd1747777929517;
|
|
44
|
+
//# sourceMappingURL=1747777929517-new-prod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1747777929517-new-prod.js","sourceRoot":"","sources":["../../src/migrations/1747777929517-new-prod.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,oBAAoB;IAAjC;QACE,SAAI,GAAG,sBAAsB,CAAC;IAoDhC,CAAC;IAlDc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,u8BAAu8B,CACx8B,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,okBAAokB,CACrkB,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;YAEF,MAAM,WAAW,CAAC,KAAK,CACrB,uEAAuE,CACxE,CAAC;YAEF,MAAM,WAAW,CAAC,KAAK,CACrB,wEAAwE,CACzE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,qMAAqM,CACtM,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,2LAA2L,CAC5L,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,iMAAiM,CAClM,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,2FAA2F,CAC5F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,2FAA2F,CAC5F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,2FAA2F,CAC5F,CAAC;YAEF,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAE5F,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;YACvF,MAAM,WAAW,CAAC,KAAK,CACrB,wEAAwE,CACzE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;YAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAClE,CAAC;KAAA;CACF;AArDD,oDAqDC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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.newQa1747783183804 = void 0;
|
|
13
|
+
class newQa1747783183804 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'newQa1747783183804';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`user\` DROP FOREIGN KEY \`FK_c9bd34a984ea3ad2570defd876a\``);
|
|
20
|
+
yield queryRunner.query(`DROP INDEX \`REL_c9bd34a984ea3ad2570defd876\` ON \`user\``);
|
|
21
|
+
yield queryRunner.query(`CREATE TABLE \`channel_user_settings\` (\`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), \`deleted_at\` datetime(6) NULL, \`id\` int NOT NULL AUTO_INCREMENT, \`stripe_payment_link\` tinyint NOT NULL DEFAULT 0, \`stripe_payment_intent\` tinyint NOT NULL DEFAULT 0, \`klarna\` tinyint NOT NULL DEFAULT 0, \`vipps\` tinyint NOT NULL DEFAULT 0, \`markets\` varchar(21844) NOT NULL, \`purchase_conditions\` tinyint NOT NULL DEFAULT 1, \`order_confirmation_email\` int NOT NULL DEFAULT '0', PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
22
|
+
yield queryRunner.query(`CREATE TABLE \`channel_user_products\` (\`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), \`deleted_at\` datetime(6) NULL, \`id\` int NOT NULL AUTO_INCREMENT, \`title\` varchar(255) NULL, \`description\` text NULL, \`public_price\` decimal(10,2) NULL, \`referral_fee\` int NOT NULL DEFAULT '10', \`tags\` varchar(255) NULL DEFAULT '', \`sku\` varchar(255) NULL, \`barcode\` varchar(255) NULL, \`quantity\` int NULL, \`options_enabled\` tinyint NOT NULL DEFAULT 0, \`digital\` tinyint NOT NULL DEFAULT 0, \`origin\` varchar(255) NULL, \`brand\` varchar(255) NULL, \`channel_user_id\` int NULL, \`product_id\` int NULL, \`collection_id\` varchar(10) NULL, \`price_amount\` decimal(10,2) NULL, \`price_currency_code\` varchar(255) NULL, \`price_base_amount\` decimal(10,2) NULL, \`price_compare_at\` decimal(10,2) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
23
|
+
yield queryRunner.query(`CREATE TABLE \`template_email_channel_user_order_confirmation\` (\`id\` int NOT NULL AUTO_INCREMENT, \`name\` varchar(255) NULL, \`template_id\` int NULL, \`variables\` varchar(21844) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
24
|
+
yield queryRunner.query(`CREATE TABLE \`product_scraping\` (\`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, \`urls\` varchar(255) NOT NULL, \`status\` varchar(255) NOT NULL, \`properties\` varchar(21844) NULL, \`scraper\` varchar(21844) NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
25
|
+
yield queryRunner.query(`CREATE TABLE \`not_found_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, \`api_key\` varchar(255) NOT NULL, \`channel_id_general\` int NOT NULL, \`channel_id\` int NOT NULL, \`channel_name\` varchar(255) NULL, \`barcode\` varchar(255) NOT NULL, \`count\` int NULL, UNIQUE INDEX \`IDX_cc976f2be6a2290712b72f2159\` (\`api_key\`, \`channel_id_general\`, \`channel_id\`, \`barcode\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`woo_id\``);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`currency\` ADD \`symbol\` varchar(255) NOT NULL`);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`woo_connection\` ADD \`prices_include_tax\` tinyint NULL`);
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`channel_user_settings_id\` int NULL`);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD UNIQUE INDEX \`IDX_7e330764fdf1dc12dd5ba35dec\` (\`channel_user_settings_id\`)`);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_id\` varchar(255) NULL`);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_url\` varchar(255) NULL`);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`product\` ADD \`origin_url\` varchar(255) NULL`);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`product\` ADD \`brand\` varchar(255) NULL`);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`order\` ADD \`channel_user_id\` int NULL`);
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` ADD \`origin_payment_body\` varchar(21844) NULL`);
|
|
37
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` ADD \`buyer_accepts_purchase_conditions\` tinyint NOT NULL DEFAULT 0`);
|
|
38
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` ADD \`buyer_accepts_terms_conditions\` tinyint NOT NULL DEFAULT 0`);
|
|
39
|
+
yield queryRunner.query(`ALTER TABLE \`cart\` ADD \`channel_user_id\` int NULL`);
|
|
40
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` ADD \`channel_user_id\` int NULL`);
|
|
41
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_billing_address\` MODIFY \`phone\` bigint NULL`);
|
|
42
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_shipping_address\` MODIFY \`phone\` bigint NULL`);
|
|
43
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` MODIFY \`total_line_items_price\` decimal(10,2) NOT NULL DEFAULT '0.00'`);
|
|
44
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_7e330764fdf1dc12dd5ba35dec\` ON \`channel_user\` (\`channel_user_settings_id\`)`);
|
|
45
|
+
yield queryRunner.query(`CREATE INDEX \`idx_enabled\` ON \`exchange_rate\` (\`enabled\`)`);
|
|
46
|
+
yield queryRunner.query(`CREATE INDEX \`idx_currency\` ON \`exchange_rate\` (\`currency\`)`);
|
|
47
|
+
yield queryRunner.query(`CREATE INDEX \`idx_currency_enabled\` ON \`exchange_rate\` (\`currency\`, \`enabled\`)`);
|
|
48
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_7e330764fdf1dc12dd5ba35dece\` FOREIGN KEY (\`channel_user_settings_id\`) REFERENCES \`channel_user_settings\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
49
|
+
yield queryRunner.query(`ALTER TABLE \`order\` ADD CONSTRAINT \`FK_d1254e4dc50ab0aca711d375fb6\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
50
|
+
yield queryRunner.query(`ALTER TABLE \`cart\` ADD CONSTRAINT \`FK_a52dfc052d7bf74ad101c711217\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
51
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_635d9f7bf7582fca6e2b961bdbe\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
52
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_ef37d3e38597aa6352c51ca2d57\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
53
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_6a15e1ba4f071b0fa85f8188756\` FOREIGN KEY (\`collection_id\`) REFERENCES \`collection\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
54
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` ADD CONSTRAINT \`FK_8e291dd48c120ebe1e1a4a9062e\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
55
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` ADD CONSTRAINT \`FK_e8c2061ff40e510e6fb8e89a184\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
down(queryRunner) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` DROP FOREIGN KEY \`FK_e8c2061ff40e510e6fb8e89a184\``);
|
|
61
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` DROP FOREIGN KEY \`FK_8e291dd48c120ebe1e1a4a9062e\``);
|
|
62
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_6a15e1ba4f071b0fa85f8188756\``);
|
|
63
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_ef37d3e38597aa6352c51ca2d57\``);
|
|
64
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_635d9f7bf7582fca6e2b961bdbe\``);
|
|
65
|
+
yield queryRunner.query(`ALTER TABLE \`cart\` DROP FOREIGN KEY \`FK_a52dfc052d7bf74ad101c711217\``);
|
|
66
|
+
yield queryRunner.query(`ALTER TABLE \`order\` DROP FOREIGN KEY \`FK_d1254e4dc50ab0aca711d375fb6\``);
|
|
67
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_7e330764fdf1dc12dd5ba35dece\``);
|
|
68
|
+
yield queryRunner.query(`DROP INDEX \`idx_currency_enabled\` ON \`exchange_rate\``);
|
|
69
|
+
yield queryRunner.query(`DROP INDEX \`idx_currency\` ON \`exchange_rate\``);
|
|
70
|
+
yield queryRunner.query(`DROP INDEX \`idx_enabled\` ON \`exchange_rate\``);
|
|
71
|
+
yield queryRunner.query(`DROP INDEX \`REL_7e330764fdf1dc12dd5ba35dec\` ON \`channel_user\``);
|
|
72
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` DROP COLUMN \`total_line_items_price\``);
|
|
73
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` ADD \`total_line_items_price\` int NOT NULL DEFAULT '0'`);
|
|
74
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_shipping_address\` DROP COLUMN \`phone\``);
|
|
75
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_shipping_address\` ADD \`phone\` int NULL`);
|
|
76
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_billing_address\` DROP COLUMN \`phone\``);
|
|
77
|
+
yield queryRunner.query(`ALTER TABLE \`checkout_billing_address\` ADD \`phone\` int NULL`);
|
|
78
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` DROP COLUMN \`channel_user_id\``);
|
|
79
|
+
yield queryRunner.query(`ALTER TABLE \`cart\` DROP COLUMN \`channel_user_id\``);
|
|
80
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` DROP COLUMN \`buyer_accepts_terms_conditions\``);
|
|
81
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` DROP COLUMN \`buyer_accepts_purchase_conditions\``);
|
|
82
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` DROP COLUMN \`origin_payment_body\``);
|
|
83
|
+
yield queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`channel_user_id\``);
|
|
84
|
+
yield queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`brand\``);
|
|
85
|
+
yield queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`origin_url\``);
|
|
86
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_url\``);
|
|
87
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_id\``);
|
|
88
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP INDEX \`IDX_7e330764fdf1dc12dd5ba35dec\``);
|
|
89
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`channel_user_settings_id\``);
|
|
90
|
+
yield queryRunner.query(`ALTER TABLE \`woo_connection\` DROP COLUMN \`prices_include_tax\``);
|
|
91
|
+
yield queryRunner.query(`ALTER TABLE \`currency\` DROP COLUMN \`symbol\``);
|
|
92
|
+
yield queryRunner.query(`ALTER TABLE \`user\` ADD \`woo_id\` int NULL`);
|
|
93
|
+
yield queryRunner.query(`DROP INDEX \`IDX_cc976f2be6a2290712b72f2159\` ON \`not_found_product\``);
|
|
94
|
+
yield queryRunner.query(`DROP TABLE \`not_found_product\``);
|
|
95
|
+
yield queryRunner.query(`DROP TABLE \`product_scraping\``);
|
|
96
|
+
yield queryRunner.query(`DROP TABLE \`template_email_channel_user_order_confirmation\``);
|
|
97
|
+
yield queryRunner.query(`DROP TABLE \`channel_user_products\``);
|
|
98
|
+
yield queryRunner.query(`DROP TABLE \`channel_user_settings\``);
|
|
99
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_c9bd34a984ea3ad2570defd876\` ON \`user\` (\`woo_id\`)`);
|
|
100
|
+
yield queryRunner.query(`ALTER TABLE \`user\` ADD CONSTRAINT \`FK_c9bd34a984ea3ad2570defd876a\` FOREIGN KEY (\`woo_id\`) REFERENCES \`woo_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.newQa1747783183804 = newQa1747783183804;
|
|
105
|
+
//# sourceMappingURL=1747783183804-new-qa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1747783183804-new-qa.js","sourceRoot":"","sources":["../../src/migrations/1747783183804-new-qa.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,kBAAkB;IAA/B;QACE,SAAI,GAAG,oBAAoB,CAAC;IA8K9B,CAAC;IA5Kc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,0EAA0E,CAC3E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;YACrF,MAAM,WAAW,CAAC,KAAK,CACrB,4nBAA4nB,CAC7nB,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,u8BAAu8B,CACx8B,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,mOAAmO,CACpO,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,6cAA6c,CAC9c,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,okBAAokB,CACrkB,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;YACvE,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACzF,MAAM,WAAW,CAAC,KAAK,CACrB,wEAAwE,CACzE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,wEAAwE,CACzE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,iHAAiH,CAClH,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,wEAAwE,CACzE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,yEAAyE,CAC1E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;YACnF,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CACrB,0EAA0E,CAC3E,CA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CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACzE,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CACrB,4EAA4E,CAC7E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,uEAAuE,CACxE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAC3E,MAAM,WAAW,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;YACxE,MAAM,WAAW,CAAC,KAAK,CACrB,wEAAwE,CACzE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;YAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;YAC3D,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;YAChE,MAAM,WAAW,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;YAChE,MAAM,WAAW,CAAC,KAAK,CACrB,iFAAiF,CAClF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,+KAA+K,CAChL,CAAC;QACJ,CAAC;KAAA;CACF;AA/KD,gDA+KC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.newQa21747783948794 = void 0;
|
|
13
|
+
class newQa21747783948794 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'newQa21747783948794';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_7e330764fdf1dc12dd5ba35dece\` FOREIGN KEY (\`channel_user_settings_id\`) REFERENCES \`channel_user_settings\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`order\` ADD CONSTRAINT \`FK_d1254e4dc50ab0aca711d375fb6\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`cart\` ADD CONSTRAINT \`FK_a52dfc052d7bf74ad101c711217\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_635d9f7bf7582fca6e2b961bdbe\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_ef37d3e38597aa6352c51ca2d57\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` ADD CONSTRAINT \`FK_6a15e1ba4f071b0fa85f8188756\` FOREIGN KEY (\`collection_id\`) REFERENCES \`collection\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` ADD CONSTRAINT \`FK_8e291dd48c120ebe1e1a4a9062e\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` ADD CONSTRAINT \`FK_e8c2061ff40e510e6fb8e89a184\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
down(queryRunner) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` DROP FOREIGN KEY \`FK_e8c2061ff40e510e6fb8e89a184\``);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`discount\` DROP FOREIGN KEY \`FK_8e291dd48c120ebe1e1a4a9062e\``);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_6a15e1ba4f071b0fa85f8188756\``);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_ef37d3e38597aa6352c51ca2d57\``);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_products\` DROP FOREIGN KEY \`FK_635d9f7bf7582fca6e2b961bdbe\``);
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`cart\` DROP FOREIGN KEY \`FK_a52dfc052d7bf74ad101c711217\``);
|
|
37
|
+
yield queryRunner.query(`ALTER TABLE \`order\` DROP FOREIGN KEY \`FK_d1254e4dc50ab0aca711d375fb6\``);
|
|
38
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_7e330764fdf1dc12dd5ba35dece\``);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.newQa21747783948794 = newQa21747783948794;
|
|
43
|
+
//# sourceMappingURL=1747783948794-new-qa-2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1747783948794-new-qa-2.js","sourceRoot":"","sources":["../../src/migrations/1747783948794-new-qa-2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,mBAAmB;IAAhC;QACI,SAAI,GAAG,qBAAqB,CAAA;IAwBhC,CAAC;IAtBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,gNAAgN,CAAC,CAAC;YAC1O,MAAM,WAAW,CAAC,KAAK,CAAC,uLAAuL,CAAC,CAAC;YACjN,MAAM,WAAW,CAAC,KAAK,CAAC,sLAAsL,CAAC,CAAC;YAChN,MAAM,WAAW,CAAC,KAAK,CAAC,qMAAqM,CAAC,CAAC;YAC/N,MAAM,WAAW,CAAC,KAAK,CAAC,2LAA2L,CAAC,CAAC;YACrN,MAAM,WAAW,CAAC,KAAK,CAAC,iMAAiM,CAAC,CAAC;YAC3N,MAAM,WAAW,CAAC,KAAK,CAAC,wLAAwL,CAAC,CAAC;YAClN,MAAM,WAAW,CAAC,KAAK,CAAC,kLAAkL,CAAC,CAAC;QAChN,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC;YACxG,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAC;YACrH,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAC;YACrH,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAC;YACrH,MAAM,WAAW,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;YACpG,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAC;YACrG,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;QAChH,CAAC;KAAA;CAEJ;AAzBD,kDAyBC"}
|
|
@@ -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.liveshow1758571354123 = void 0;
|
|
13
|
+
class liveshow1758571354123 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'liveshow1758571354123';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`live_show\` (\`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\` varchar(36) NOT NULL, \`deleted_at\` datetime(6) NULL, \`title\` varchar(255) NULL, \`description\` varchar(255) NULL, \`start_date\` timestamp NULL, \`end_date\` timestamp NULL, \`thumbnail\` varchar(21844) NULL, \`channel_user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` ADD CONSTRAINT \`FK_baebcae77d1d0c7f6e5a0e6550f\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` DROP FOREIGN KEY \`FK_baebcae77d1d0c7f6e5a0e6550f\``);
|
|
26
|
+
yield queryRunner.query(`DROP TABLE \`live_show\``);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.liveshow1758571354123 = liveshow1758571354123;
|
|
31
|
+
//# sourceMappingURL=1758571354123-liveshow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1758571354123-liveshow.js","sourceRoot":"","sources":["../../src/migrations/1758571354123-liveshow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,qBAAqB;IAAlC;QACE,SAAI,GAAG,uBAAuB,CAAC;IAiBjC,CAAC;IAfc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,+dAA+d,CAChe,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,yLAAyL,CAC1L,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,+EAA+E,CAChF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;QACtD,CAAC;KAAA;CACF;AAlBD,sDAkBC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.liveshow21758573787467 = void 0;
|
|
13
|
+
class liveshow21758573787467 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'liveshow21758573787467';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`event_id\` varchar(255) NULL`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`video_id\` varchar(255) NULL`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`live_end\` tinyint NULL DEFAULT 0`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`broadcasting\` tinyint NULL DEFAULT 0`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`hls\` varchar(255) NULL`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`stream_key\` varchar(255) NULL`);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
down(queryRunner) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`stream_key\``);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`hls\``);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`broadcasting\``);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`live_end\``);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`video_id\``);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`event_id\``);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.liveshow21758573787467 = liveshow21758573787467;
|
|
39
|
+
//# sourceMappingURL=1758573787467-liveshow2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1758573787467-liveshow2.js","sourceRoot":"","sources":["../../src/migrations/1758573787467-liveshow2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,sBAAsB;IAAnC;QACE,SAAI,GAAG,wBAAwB,CAAC;IAqBlC,CAAC;IAnBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CACrB,uEAAuE,CACxE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;YACnF,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;QAC5F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;YAChF,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACzE,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;QAChF,CAAC;KAAA;CACF;AAtBD,wDAsBC"}
|
|
@@ -68,6 +68,7 @@ import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, C
|
|
|
68
68
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
69
69
|
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
70
70
|
import { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository } from './discount';
|
|
71
|
+
import { LiveShowRepository } from './liveshow';
|
|
71
72
|
import { PlanRepository, SubscriptionRepository, UserCountPlanRepository } from './subscriptions';
|
|
72
73
|
import { Repository } from 'typeorm';
|
|
73
74
|
import { MagentoBulk } from '../entity';
|
|
@@ -208,5 +209,6 @@ export declare class NotFoundProductRepository extends Repository<NotFoundProduc
|
|
|
208
209
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
209
210
|
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
210
211
|
export { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository, };
|
|
212
|
+
export { LiveShowRepository };
|
|
211
213
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
212
214
|
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.ChannelUserRepository = exports.ChannelGroupRepository = exports.CollectionSharedRepository = exports.CollectionItemRepository = exports.CollectionRepository = exports.PaymentMethodRepository = exports.UserSettingsRepository = 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.NotFoundProductRepository = exports.ChannelUserProductsRepository = exports.ProductScrapingRepository = exports.TemplateEmailChannelUserOrderConfirmationRepository = exports.ChannelUserSettingsRepository = exports.EcomUserRepository = exports.MagentoBulkRepository = exports.EnvTypeRepository = exports.ProductDigitalRepository = exports.ProductCategoryRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = void 0;
|
|
13
|
+
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.LiveShowRepository = 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.NotFoundProductRepository = exports.ChannelUserProductsRepository = exports.ProductScrapingRepository = exports.TemplateEmailChannelUserOrderConfirmationRepository = exports.ChannelUserSettingsRepository = exports.EcomUserRepository = exports.MagentoBulkRepository = exports.EnvTypeRepository = exports.ProductDigitalRepository = exports.ProductCategoryRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = 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"));
|
|
@@ -109,6 +109,8 @@ Object.defineProperty(exports, "DiscountRepository", { enumerable: true, get: fu
|
|
|
109
109
|
Object.defineProperty(exports, "DiscountCartRepository", { enumerable: true, get: function () { return discount_1.DiscountCartRepository; } });
|
|
110
110
|
Object.defineProperty(exports, "DiscountProductRepository", { enumerable: true, get: function () { return discount_1.DiscountProductRepository; } });
|
|
111
111
|
Object.defineProperty(exports, "DiscountTypeRepository", { enumerable: true, get: function () { return discount_1.DiscountTypeRepository; } });
|
|
112
|
+
const liveshow_1 = require("./liveshow");
|
|
113
|
+
Object.defineProperty(exports, "LiveShowRepository", { enumerable: true, get: function () { return liveshow_1.LiveShowRepository; } });
|
|
112
114
|
const subscriptions_1 = require("./subscriptions");
|
|
113
115
|
Object.defineProperty(exports, "PlanRepository", { enumerable: true, get: function () { return subscriptions_1.PlanRepository; } });
|
|
114
116
|
Object.defineProperty(exports, "SubscriptionRepository", { enumerable: true, get: function () { return subscriptions_1.SubscriptionRepository; } });
|