@reachu/database 1.0.213 → 1.0.215
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 -2
- package/dist/entity/index.js +3 -4
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/modules/liveshow/Campaign.d.ts +7 -0
- package/dist/entity/modules/liveshow/{LiveShow.js → Campaign.js} +11 -31
- package/dist/entity/modules/liveshow/Campaign.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/migrations/1758897566987-liveshow-to-campaign.d.ts +6 -0
- package/dist/migrations/1758897566987-liveshow-to-campaign.js +31 -0
- package/dist/migrations/1758897566987-liveshow-to-campaign.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -2
- package/dist/repositories/index.js +2 -2
- package/dist/repositories/liveshow/index.d.ts +2 -2
- package/dist/repositories/liveshow/index.js +7 -7
- package/dist/tsconfig.tsbuildinfo +40 -16
- package/package.json +3 -3
- package/src/entity/index.ts +2 -3
- package/src/entity/modules/liveshow/Campaign.ts +19 -0
- package/src/migrations/1758573787467-liveshow2.ts +25 -0
- package/src/migrations/1758897566987-liveshow-to-campaign.ts +21 -0
- package/src/repositories/index.ts +2 -2
- package/src/repositories/liveshow/index.ts +3 -3
- package/dist/entity/modules/liveshow/LiveShow.d.ts +0 -12
- package/dist/entity/modules/liveshow/LiveShow.js.map +0 -1
- package/src/entity/modules/liveshow/LiveShow.ts +0 -41
package/dist/entity/index.d.ts
CHANGED
|
@@ -106,5 +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
|
-
import
|
|
110
|
-
export {
|
|
109
|
+
import Campaign from './modules/liveshow/Campaign';
|
|
110
|
+
export { Campaign, 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,7 +3,7 @@ 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.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.
|
|
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.Campaign = 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.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = exports.RolePermission = exports.Role = void 0;
|
|
8
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"));
|
|
@@ -222,7 +222,6 @@ 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
|
|
226
|
-
exports.
|
|
227
|
-
('./modules/LiveShow/LiveShow');
|
|
225
|
+
const Campaign_1 = __importDefault(require("./modules/liveshow/Campaign"));
|
|
226
|
+
exports.Campaign = Campaign_1.default;
|
|
228
227
|
//# 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;AAiJ9B,kBAjJK,iBAAO,CAiJL;AAhJT,oEAA4C;AAiJ1C,wBAjJK,uBAAa,CAiJL;AAhJf,kEAA0C;AAiJxC,uBAjJK,sBAAY,CAiJL;AAhJd,gEAAwC;AAiJtC,sBAjJK,qBAAW,CAiJL;AAhJb,0DAAkC;AAiJhC,mBAjJK,kBAAQ,CAiJL;AAhJV,0EAAkD;AAiJhD,2BAjJK,0BAAgB,CAiJL;AAhJlB,0EAAkD;AAiJhD,2BAjJK,0BAAgB,CAiJL;AAhJlB,0DAAkC;AAiJhC,mBAjJK,kBAAQ,CAiJL;AAhJV,wDAAgC;AAiJ9B,kBAjJK,iBAAO,CAiJL;AAhJT,oDAA4B;AAiJ1B,gBAjJK,eAAK,CAiJL;AAhJP,0EAAkD;AAiJhD,2BAjJK,0BAAgB,CAiJL;AAhJlB,wDAAgC;AAiJ9B,kBAjJK,iBAAO,CAiJL;AAhJT,wDAAgC;AAiJ9B,kBAjJK,iBAAO,CAiJL;AAhJT,wDAAgC;AAiJ9B,kBAjJK,iBAAO,CAiJL;AAhJT,0DAAkC;AAiJhC,mBAjJK,kBAAQ,CAiJL;AAhJV,wEAAgD;AAiJ9C,0BAjJK,yBAAe,CAiJL;AAhJjB,gEAAwC;AAiJtC,sBAjJK,qBAAW,CAiJL;AAhJb,oDAA4B;AAiJ1B,gBAjJK,eAAK,CAiJL;AAhJP,wEAAgD;AAiJ9C,0BAjJK,yBAAe,CAiJL;AAhJjB,yEAA+D;AAiJ7D,kGAjJO,4CAAiB,OAiJP;AAhJnB,0EAAkD;AAiJhD,2BAjJK,0BAAgB,CAiJL;AAhJlB,kEAA0C;AAiJxC,uBAj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,CAiHL;AAhHV,mFAA2D;AAiHzD,uBAjHK,sBAAY,CAiHL;AAhHd,yFAAiE;AAiH/D,0BAjHK,yBAAe,CAiHL;AAhHjB,mFAA2D;AAiHzD,uBAjHK,sBAAY,CAiHL;AA/Gd,gEAAwC;AAmHtC,sBAnHK,qBAAW,CAmHL;AAjHb,4DAAmC;AAkHjC,mBAlHK,mBAAQ,CAkHL;AAhHV,4HAAoG;AAkHlG,oDAlHK,mDAAyC,CAkHL;AAhH3C,wEAAgD;AAiH9C,0BAjHK,yBAAe,CAiHL;AAhHjB,gFAAwD;AAiHtD,8BAjHK,6BAAmB,CAiHL;AAhHrB,wEAAgD;AAiH9C,0BAjHK,yBAAe,CAiHL;AA/GjB,2EAAmD;AAGjD,mBAHK,kBAAQ,CAGL"}
|
|
@@ -15,36 +15,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
17
17
|
const ChannelUser_1 = __importDefault(require("../../ChannelUser"));
|
|
18
|
-
let
|
|
18
|
+
let Campaign = class Campaign extends AuditedModel_1.default {
|
|
19
19
|
};
|
|
20
20
|
__decorate([
|
|
21
21
|
typeorm_1.PrimaryGeneratedColumn('uuid'),
|
|
22
|
-
__metadata("design:type",
|
|
23
|
-
],
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], Campaign.prototype, "id", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
typeorm_1.
|
|
26
|
-
__metadata("design:type",
|
|
27
|
-
],
|
|
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({ type: 'timestamp', nullable: true }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], LiveShow.prototype, "startDate", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
typeorm_1.Column({ type: 'timestamp', nullable: true }),
|
|
42
|
-
__metadata("design:type", Date)
|
|
43
|
-
], LiveShow.prototype, "endDate", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], LiveShow.prototype, "thumbnail", void 0);
|
|
25
|
+
typeorm_1.Column(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], Campaign.prototype, "streamId", void 0);
|
|
48
28
|
__decorate([
|
|
49
29
|
typeorm_1.ManyToOne(() => ChannelUser_1.default, (channelUser) => channelUser.id, {
|
|
50
30
|
onDelete: 'CASCADE',
|
|
@@ -52,9 +32,9 @@ __decorate([
|
|
|
52
32
|
}),
|
|
53
33
|
typeorm_1.JoinColumn(),
|
|
54
34
|
__metadata("design:type", ChannelUser_1.default)
|
|
55
|
-
],
|
|
56
|
-
|
|
35
|
+
], Campaign.prototype, "channelUser", void 0);
|
|
36
|
+
Campaign = __decorate([
|
|
57
37
|
typeorm_1.Entity()
|
|
58
|
-
],
|
|
59
|
-
exports.default =
|
|
60
|
-
//# sourceMappingURL=
|
|
38
|
+
], Campaign);
|
|
39
|
+
exports.default = Campaign;
|
|
40
|
+
//# sourceMappingURL=Campaign.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Campaign.js","sourceRoot":"","sources":["../../../../src/entity/modules/liveshow/Campaign.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAwF;AACxF,sEAA8C;AAC9C,oEAA4C;AAG5C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CAajD,CAAA;AAXC;IADC,gCAAsB,CAAC,MAAM,CAAC;;oCACpB;AAGX;IADC,gBAAM,EAAE;;0CACQ;AAOjB;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;AAZP,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CAa5B;kBAboB,QAAQ"}
|
|
@@ -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"}
|
|
@@ -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.liveshowToCampaign1758897566987 = void 0;
|
|
13
|
+
class liveshowToCampaign1758897566987 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'liveshowToCampaign1758897566987';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`campaign\` (\`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, \`stream_id\` int NOT NULL, \`channel_user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`campaign\` ADD CONSTRAINT \`FK_27d35a7d446a29b750902f1a8d9\` 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 \`campaign\` DROP FOREIGN KEY \`FK_27d35a7d446a29b750902f1a8d9\``);
|
|
26
|
+
yield queryRunner.query(`DROP TABLE \`campaign\``);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.liveshowToCampaign1758897566987 = liveshowToCampaign1758897566987;
|
|
31
|
+
//# sourceMappingURL=1758897566987-liveshow-to-campaign.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1758897566987-liveshow-to-campaign.js","sourceRoot":"","sources":["../../src/migrations/1758897566987-liveshow-to-campaign.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,+BAA+B;IAA5C;QACE,SAAI,GAAG,iCAAiC,CAAC;IAiB3C,CAAC;IAfc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,0TAA0T,CAC3T,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,wLAAwL,CACzL,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,8EAA8E,CAC/E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACrD,CAAC;KAAA;CACF;AAlBD,0EAkBC"}
|
|
@@ -68,7 +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 {
|
|
71
|
+
import { CampaignRepository } from './liveshow';
|
|
72
72
|
import { PlanRepository, SubscriptionRepository, UserCountPlanRepository } from './subscriptions';
|
|
73
73
|
import { Repository } from 'typeorm';
|
|
74
74
|
import { MagentoBulk } from '../entity';
|
|
@@ -209,6 +209,6 @@ export declare class NotFoundProductRepository extends Repository<NotFoundProduc
|
|
|
209
209
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
210
210
|
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
211
211
|
export { DiscountRepository, DiscountCartRepository, DiscountProductRepository, DiscountTypeRepository, };
|
|
212
|
-
export {
|
|
212
|
+
export { CampaignRepository };
|
|
213
213
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
214
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.
|
|
13
|
+
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.CampaignRepository = 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"));
|
|
@@ -110,7 +110,7 @@ Object.defineProperty(exports, "DiscountCartRepository", { enumerable: true, get
|
|
|
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
112
|
const liveshow_1 = require("./liveshow");
|
|
113
|
-
Object.defineProperty(exports, "
|
|
113
|
+
Object.defineProperty(exports, "CampaignRepository", { enumerable: true, get: function () { return liveshow_1.CampaignRepository; } });
|
|
114
114
|
const subscriptions_1 = require("./subscriptions");
|
|
115
115
|
Object.defineProperty(exports, "PlanRepository", { enumerable: true, get: function () { return subscriptions_1.PlanRepository; } });
|
|
116
116
|
Object.defineProperty(exports, "SubscriptionRepository", { enumerable: true, get: function () { return subscriptions_1.SubscriptionRepository; } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
|
-
import
|
|
3
|
-
export declare class
|
|
2
|
+
import Campaign from '../../entity/modules/liveshow/Campaign';
|
|
3
|
+
export declare class CampaignRepository extends Repository<Campaign> {
|
|
4
4
|
}
|
|
@@ -9,13 +9,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CampaignRepository = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const
|
|
15
|
-
let
|
|
14
|
+
const Campaign_1 = __importDefault(require("../../entity/modules/liveshow/Campaign"));
|
|
15
|
+
let CampaignRepository = class CampaignRepository extends typeorm_1.Repository {
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
typeorm_1.EntityRepository(
|
|
19
|
-
],
|
|
20
|
-
exports.
|
|
17
|
+
CampaignRepository = __decorate([
|
|
18
|
+
typeorm_1.EntityRepository(Campaign_1.default)
|
|
19
|
+
], CampaignRepository);
|
|
20
|
+
exports.CampaignRepository = CampaignRepository;
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -2801,14 +2801,14 @@
|
|
|
2801
2801
|
"signature": "9717c7aa423ceb1070387a8a4a586bdf1badaa0b373688e42bd13f7cf80beb8e",
|
|
2802
2802
|
"affectsGlobalScope": false
|
|
2803
2803
|
},
|
|
2804
|
-
"../src/entity/modules/liveshow/
|
|
2805
|
-
"version": "
|
|
2806
|
-
"signature": "
|
|
2804
|
+
"../src/entity/modules/liveshow/campaign.ts": {
|
|
2805
|
+
"version": "349a7bc58aaaf96b60200a509c39e715d7a0ef83dc24f76098fa8795468bb0f5",
|
|
2806
|
+
"signature": "b347c7b8f3cf73e10f09e29d3b99c57c3b4b2a941b0fc2d5aae265653588ec5a",
|
|
2807
2807
|
"affectsGlobalScope": false
|
|
2808
2808
|
},
|
|
2809
2809
|
"../src/entity/index.ts": {
|
|
2810
|
-
"version": "
|
|
2811
|
-
"signature": "
|
|
2810
|
+
"version": "925fb71cb8c3af8a8ba1939071823c0e6a23c5582f442accb9e6783bde4fdb0f",
|
|
2811
|
+
"signature": "fbbb3b38a4a3f2aad5b6c14e909414c36a8c9bd2dd6a4f22dc84d51c33620462",
|
|
2812
2812
|
"affectsGlobalScope": false
|
|
2813
2813
|
},
|
|
2814
2814
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2887,8 +2887,8 @@
|
|
|
2887
2887
|
"affectsGlobalScope": false
|
|
2888
2888
|
},
|
|
2889
2889
|
"../src/repositories/liveshow/index.ts": {
|
|
2890
|
-
"version": "
|
|
2891
|
-
"signature": "
|
|
2890
|
+
"version": "c4cb37ce70eb545e7149004e4ad716c5d38f3b01ed9f1cc94d9e72a7b8527b00",
|
|
2891
|
+
"signature": "b0b9141af27464bd2aebb493013ac0d33c3e6af3d0f865cf8c48d64b18f7b934",
|
|
2892
2892
|
"affectsGlobalScope": false
|
|
2893
2893
|
},
|
|
2894
2894
|
"../src/repositories/subscriptions/index.ts": {
|
|
@@ -2897,8 +2897,8 @@
|
|
|
2897
2897
|
"affectsGlobalScope": false
|
|
2898
2898
|
},
|
|
2899
2899
|
"../src/repositories/index.ts": {
|
|
2900
|
-
"version": "
|
|
2901
|
-
"signature": "
|
|
2900
|
+
"version": "f025dd47e82a33fd39e7394f9ca84237d772fc07f775b9f2791708978bb90a49",
|
|
2901
|
+
"signature": "c765a18b0aae853d4dde7b50ad4d028d531cf2c1d0b22672006dbc3730a7655d",
|
|
2902
2902
|
"affectsGlobalScope": false
|
|
2903
2903
|
},
|
|
2904
2904
|
"../node_modules/eventemitter2/eventemitter2.d.ts": {
|
|
@@ -3921,6 +3921,16 @@
|
|
|
3921
3921
|
"signature": "132e5a9c4f0ba1716064229fb2ae455e27c5901d289da4e52c151d7a4497d687",
|
|
3922
3922
|
"affectsGlobalScope": false
|
|
3923
3923
|
},
|
|
3924
|
+
"../src/migrations/1758573787467-liveshow2.ts": {
|
|
3925
|
+
"version": "5e1ad069e4dc63e5a9a29815d0c8488833f3bd0b1cc08cbf6e5212690f52c1f5",
|
|
3926
|
+
"signature": "ecaa4f591043dcfddee7843e3f3ae673191714c8040c5498eb5279133368e98f",
|
|
3927
|
+
"affectsGlobalScope": false
|
|
3928
|
+
},
|
|
3929
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts": {
|
|
3930
|
+
"version": "7dbc6eec7478303c5a01c255017773feb87305e4c51d3b9fb226780a394e6d86",
|
|
3931
|
+
"signature": "f77cd37da257dceb34e204328ac0acc9d0faa7968a850c4319ba5907b16c1daf",
|
|
3932
|
+
"affectsGlobalScope": false
|
|
3933
|
+
},
|
|
3924
3934
|
"../src/migrations/execute/index.ts": {
|
|
3925
3935
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3926
3936
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6119,7 +6129,7 @@
|
|
|
6119
6129
|
"../src/entity/modules/discount/discountcart.ts",
|
|
6120
6130
|
"../src/entity/modules/discount/discountproduct.ts",
|
|
6121
6131
|
"../src/entity/modules/discount/discounttype.ts",
|
|
6122
|
-
"../src/entity/modules/liveshow/
|
|
6132
|
+
"../src/entity/modules/liveshow/campaign.ts",
|
|
6123
6133
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
6124
6134
|
"../src/entity/modules/shipping/shipping.ts",
|
|
6125
6135
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -6221,7 +6231,7 @@
|
|
|
6221
6231
|
"../src/entity/auditedmodel.ts",
|
|
6222
6232
|
"../src/entity/modules/discount/discount.ts"
|
|
6223
6233
|
],
|
|
6224
|
-
"../src/entity/modules/liveshow/
|
|
6234
|
+
"../src/entity/modules/liveshow/campaign.ts": [
|
|
6225
6235
|
"../node_modules/typeorm/index.d.ts",
|
|
6226
6236
|
"../src/entity/auditedmodel.ts",
|
|
6227
6237
|
"../src/entity/channeluser.ts"
|
|
@@ -7199,6 +7209,12 @@
|
|
|
7199
7209
|
"../src/migrations/1758571354123-liveshow.ts": [
|
|
7200
7210
|
"../node_modules/typeorm/index.d.ts"
|
|
7201
7211
|
],
|
|
7212
|
+
"../src/migrations/1758573787467-liveshow2.ts": [
|
|
7213
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7214
|
+
],
|
|
7215
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts": [
|
|
7216
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7217
|
+
],
|
|
7202
7218
|
"../src/migrations/execute/index.ts": [
|
|
7203
7219
|
"../src/config/connect.ts"
|
|
7204
7220
|
],
|
|
@@ -7299,7 +7315,7 @@
|
|
|
7299
7315
|
],
|
|
7300
7316
|
"../src/repositories/liveshow/index.ts": [
|
|
7301
7317
|
"../node_modules/typeorm/index.d.ts",
|
|
7302
|
-
"../src/entity/modules/liveshow/
|
|
7318
|
+
"../src/entity/modules/liveshow/campaign.ts"
|
|
7303
7319
|
],
|
|
7304
7320
|
"../src/repositories/shipping/index.ts": [
|
|
7305
7321
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -9368,7 +9384,7 @@
|
|
|
9368
9384
|
"../src/entity/modules/discount/discountcart.ts",
|
|
9369
9385
|
"../src/entity/modules/discount/discountproduct.ts",
|
|
9370
9386
|
"../src/entity/modules/discount/discounttype.ts",
|
|
9371
|
-
"../src/entity/modules/liveshow/
|
|
9387
|
+
"../src/entity/modules/liveshow/campaign.ts",
|
|
9372
9388
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
9373
9389
|
"../src/entity/modules/shipping/shipping.ts",
|
|
9374
9390
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -9461,7 +9477,7 @@
|
|
|
9461
9477
|
"../src/entity/auditedmodel.ts",
|
|
9462
9478
|
"../src/entity/modules/discount/discount.ts"
|
|
9463
9479
|
],
|
|
9464
|
-
"../src/entity/modules/liveshow/
|
|
9480
|
+
"../src/entity/modules/liveshow/campaign.ts": [
|
|
9465
9481
|
"../src/entity/auditedmodel.ts",
|
|
9466
9482
|
"../src/entity/channeluser.ts"
|
|
9467
9483
|
],
|
|
@@ -10338,6 +10354,12 @@
|
|
|
10338
10354
|
"../src/migrations/1758571354123-liveshow.ts": [
|
|
10339
10355
|
"../node_modules/typeorm/index.d.ts"
|
|
10340
10356
|
],
|
|
10357
|
+
"../src/migrations/1758573787467-liveshow2.ts": [
|
|
10358
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10359
|
+
],
|
|
10360
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts": [
|
|
10361
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10362
|
+
],
|
|
10341
10363
|
"../src/migrations/index.ts": [
|
|
10342
10364
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10343
10365
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10435,7 +10457,7 @@
|
|
|
10435
10457
|
],
|
|
10436
10458
|
"../src/repositories/liveshow/index.ts": [
|
|
10437
10459
|
"../node_modules/typeorm/index.d.ts",
|
|
10438
|
-
"../src/entity/modules/liveshow/
|
|
10460
|
+
"../src/entity/modules/liveshow/campaign.ts"
|
|
10439
10461
|
],
|
|
10440
10462
|
"../src/repositories/shipping/index.ts": [
|
|
10441
10463
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -11040,7 +11062,7 @@
|
|
|
11040
11062
|
"../src/entity/modules/discount/discountcart.ts",
|
|
11041
11063
|
"../src/entity/modules/discount/discountproduct.ts",
|
|
11042
11064
|
"../src/entity/modules/discount/discounttype.ts",
|
|
11043
|
-
"../src/entity/modules/liveshow/
|
|
11065
|
+
"../src/entity/modules/liveshow/campaign.ts",
|
|
11044
11066
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
11045
11067
|
"../src/entity/modules/shipping/shipping.ts",
|
|
11046
11068
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -11294,6 +11316,8 @@
|
|
|
11294
11316
|
"../src/migrations/1747783183804-new-qa.ts",
|
|
11295
11317
|
"../src/migrations/1747783948794-new-qa-2.ts",
|
|
11296
11318
|
"../src/migrations/1758571354123-liveshow.ts",
|
|
11319
|
+
"../src/migrations/1758573787467-liveshow2.ts",
|
|
11320
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts",
|
|
11297
11321
|
"../src/migrations/execute/index.ts",
|
|
11298
11322
|
"../src/migrations/index.ts",
|
|
11299
11323
|
"../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.215",
|
|
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.215",
|
|
25
|
+
"@reachu/utils": "1.0.215",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"eventemitter2": "^6.4.9",
|
|
28
28
|
"express": "4.17.1",
|
package/src/entity/index.ts
CHANGED
|
@@ -127,11 +127,10 @@ import ProductScraping from './ProductScraping';
|
|
|
127
127
|
import ChannelUserProducts from './ChannelUserProducts';
|
|
128
128
|
import NotFoundProduct from './NotFoundProduct';
|
|
129
129
|
|
|
130
|
-
import
|
|
131
|
-
('./modules/LiveShow/LiveShow');
|
|
130
|
+
import Campaign from './modules/liveshow/Campaign';
|
|
132
131
|
|
|
133
132
|
export {
|
|
134
|
-
|
|
133
|
+
Campaign,
|
|
135
134
|
CustomVariant,
|
|
136
135
|
CustomProduct,
|
|
137
136
|
CustomProductImage,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn } from 'typeorm';
|
|
2
|
+
import AuditedModel from '../../AuditedModel';
|
|
3
|
+
import ChannelUser from '../../ChannelUser';
|
|
4
|
+
|
|
5
|
+
@Entity()
|
|
6
|
+
export default class Campaign extends AuditedModel {
|
|
7
|
+
@PrimaryGeneratedColumn('uuid')
|
|
8
|
+
id: number;
|
|
9
|
+
|
|
10
|
+
@Column()
|
|
11
|
+
streamId: number;
|
|
12
|
+
|
|
13
|
+
@ManyToOne(() => ChannelUser, (channelUser: ChannelUser) => channelUser.id, {
|
|
14
|
+
onDelete: 'CASCADE',
|
|
15
|
+
nullable: true,
|
|
16
|
+
})
|
|
17
|
+
@JoinColumn()
|
|
18
|
+
channelUser?: ChannelUser;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class liveshow21758573787467 implements MigrationInterface {
|
|
4
|
+
name = 'liveshow21758573787467';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`event_id\` varchar(255) NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`video_id\` varchar(255) NULL`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`live_end\` tinyint NULL DEFAULT 0`);
|
|
10
|
+
await queryRunner.query(
|
|
11
|
+
`ALTER TABLE \`live_show\` ADD \`broadcasting\` tinyint NULL DEFAULT 0`,
|
|
12
|
+
);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`hls\` varchar(255) NULL`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`stream_key\` varchar(255) NULL`);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`stream_key\``);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`hls\``);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`broadcasting\``);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`live_end\``);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`video_id\``);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`event_id\``);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class liveshowToCampaign1758897566987 implements MigrationInterface {
|
|
4
|
+
name = 'liveshowToCampaign1758897566987';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`CREATE TABLE \`campaign\` (\`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, \`stream_id\` int NOT NULL, \`channel_user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`,
|
|
9
|
+
);
|
|
10
|
+
await queryRunner.query(
|
|
11
|
+
`ALTER TABLE \`campaign\` ADD CONSTRAINT \`FK_27d35a7d446a29b750902f1a8d9\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`,
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
16
|
+
await queryRunner.query(
|
|
17
|
+
`ALTER TABLE \`campaign\` DROP FOREIGN KEY \`FK_27d35a7d446a29b750902f1a8d9\``,
|
|
18
|
+
);
|
|
19
|
+
await queryRunner.query(`DROP TABLE \`campaign\``);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
DiscountTypeRepository,
|
|
112
112
|
} from './discount';
|
|
113
113
|
|
|
114
|
-
import {
|
|
114
|
+
import { CampaignRepository } from './liveshow';
|
|
115
115
|
|
|
116
116
|
import { PlanRepository, SubscriptionRepository, UserCountPlanRepository } from './subscriptions';
|
|
117
117
|
|
|
@@ -353,7 +353,7 @@ export {
|
|
|
353
353
|
DiscountTypeRepository,
|
|
354
354
|
};
|
|
355
355
|
|
|
356
|
-
export {
|
|
356
|
+
export { CampaignRepository };
|
|
357
357
|
|
|
358
358
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
359
359
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Repository, EntityRepository } from 'typeorm';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Campaign from '../../entity/modules/liveshow/Campaign';
|
|
4
4
|
|
|
5
|
-
@EntityRepository(
|
|
6
|
-
export class
|
|
5
|
+
@EntityRepository(Campaign)
|
|
6
|
+
export class CampaignRepository extends Repository<Campaign> {}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
startDate?: string;
|
|
9
|
-
endDate?: Date;
|
|
10
|
-
thumbnail?: string;
|
|
11
|
-
channelUser?: ChannelUser;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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;CA4BjD,CAAA;AA1BC;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,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC3B;AAGnB;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;AA3BP,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA4B5B;kBA5BoB,QAAQ"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Entity,
|
|
3
|
-
PrimaryGeneratedColumn,
|
|
4
|
-
DeleteDateColumn,
|
|
5
|
-
Column,
|
|
6
|
-
ManyToOne,
|
|
7
|
-
JoinColumn,
|
|
8
|
-
} from 'typeorm';
|
|
9
|
-
import AuditedModel from '../../AuditedModel';
|
|
10
|
-
import ChannelUser from '../../ChannelUser';
|
|
11
|
-
|
|
12
|
-
@Entity()
|
|
13
|
-
export default class LiveShow extends AuditedModel {
|
|
14
|
-
@PrimaryGeneratedColumn('uuid')
|
|
15
|
-
id: string;
|
|
16
|
-
|
|
17
|
-
@DeleteDateColumn()
|
|
18
|
-
deletedAt: Date;
|
|
19
|
-
|
|
20
|
-
@Column('varchar', { nullable: true })
|
|
21
|
-
title?: string;
|
|
22
|
-
|
|
23
|
-
@Column('varchar', { nullable: true })
|
|
24
|
-
description?: string;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'timestamp', nullable: true })
|
|
27
|
-
startDate?: string;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'timestamp', nullable: true })
|
|
30
|
-
endDate?: Date;
|
|
31
|
-
|
|
32
|
-
@Column('varchar', { length: '21844', nullable: true })
|
|
33
|
-
thumbnail?: string;
|
|
34
|
-
|
|
35
|
-
@ManyToOne(() => ChannelUser, (channelUser: ChannelUser) => channelUser.id, {
|
|
36
|
-
onDelete: 'CASCADE',
|
|
37
|
-
nullable: true,
|
|
38
|
-
})
|
|
39
|
-
@JoinColumn()
|
|
40
|
-
channelUser?: ChannelUser;
|
|
41
|
-
}
|