@reachu/database 1.0.214 → 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/Campaign.js +40 -0
- package/dist/entity/modules/liveshow/Campaign.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 +28 -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/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 -18
- package/dist/entity/modules/liveshow/LiveShow.js +0 -84
- package/dist/entity/modules/liveshow/LiveShow.js.map +0 -1
- package/src/entity/modules/liveshow/LiveShow.ts +0 -59
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
|
+
{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iHzD,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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 Campaign = class Campaign extends AuditedModel_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn('uuid'),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], Campaign.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.Column(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], Campaign.prototype, "streamId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.ManyToOne(() => ChannelUser_1.default, (channelUser) => channelUser.id, {
|
|
30
|
+
onDelete: 'CASCADE',
|
|
31
|
+
nullable: true,
|
|
32
|
+
}),
|
|
33
|
+
typeorm_1.JoinColumn(),
|
|
34
|
+
__metadata("design:type", ChannelUser_1.default)
|
|
35
|
+
], Campaign.prototype, "channelUser", void 0);
|
|
36
|
+
Campaign = __decorate([
|
|
37
|
+
typeorm_1.Entity()
|
|
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,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": {
|
|
@@ -3926,6 +3926,11 @@
|
|
|
3926
3926
|
"signature": "ecaa4f591043dcfddee7843e3f3ae673191714c8040c5498eb5279133368e98f",
|
|
3927
3927
|
"affectsGlobalScope": false
|
|
3928
3928
|
},
|
|
3929
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts": {
|
|
3930
|
+
"version": "7dbc6eec7478303c5a01c255017773feb87305e4c51d3b9fb226780a394e6d86",
|
|
3931
|
+
"signature": "f77cd37da257dceb34e204328ac0acc9d0faa7968a850c4319ba5907b16c1daf",
|
|
3932
|
+
"affectsGlobalScope": false
|
|
3933
|
+
},
|
|
3929
3934
|
"../src/migrations/execute/index.ts": {
|
|
3930
3935
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3931
3936
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6124,7 +6129,7 @@
|
|
|
6124
6129
|
"../src/entity/modules/discount/discountcart.ts",
|
|
6125
6130
|
"../src/entity/modules/discount/discountproduct.ts",
|
|
6126
6131
|
"../src/entity/modules/discount/discounttype.ts",
|
|
6127
|
-
"../src/entity/modules/liveshow/
|
|
6132
|
+
"../src/entity/modules/liveshow/campaign.ts",
|
|
6128
6133
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
6129
6134
|
"../src/entity/modules/shipping/shipping.ts",
|
|
6130
6135
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -6226,7 +6231,7 @@
|
|
|
6226
6231
|
"../src/entity/auditedmodel.ts",
|
|
6227
6232
|
"../src/entity/modules/discount/discount.ts"
|
|
6228
6233
|
],
|
|
6229
|
-
"../src/entity/modules/liveshow/
|
|
6234
|
+
"../src/entity/modules/liveshow/campaign.ts": [
|
|
6230
6235
|
"../node_modules/typeorm/index.d.ts",
|
|
6231
6236
|
"../src/entity/auditedmodel.ts",
|
|
6232
6237
|
"../src/entity/channeluser.ts"
|
|
@@ -7207,6 +7212,9 @@
|
|
|
7207
7212
|
"../src/migrations/1758573787467-liveshow2.ts": [
|
|
7208
7213
|
"../node_modules/typeorm/index.d.ts"
|
|
7209
7214
|
],
|
|
7215
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts": [
|
|
7216
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7217
|
+
],
|
|
7210
7218
|
"../src/migrations/execute/index.ts": [
|
|
7211
7219
|
"../src/config/connect.ts"
|
|
7212
7220
|
],
|
|
@@ -7307,7 +7315,7 @@
|
|
|
7307
7315
|
],
|
|
7308
7316
|
"../src/repositories/liveshow/index.ts": [
|
|
7309
7317
|
"../node_modules/typeorm/index.d.ts",
|
|
7310
|
-
"../src/entity/modules/liveshow/
|
|
7318
|
+
"../src/entity/modules/liveshow/campaign.ts"
|
|
7311
7319
|
],
|
|
7312
7320
|
"../src/repositories/shipping/index.ts": [
|
|
7313
7321
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -9376,7 +9384,7 @@
|
|
|
9376
9384
|
"../src/entity/modules/discount/discountcart.ts",
|
|
9377
9385
|
"../src/entity/modules/discount/discountproduct.ts",
|
|
9378
9386
|
"../src/entity/modules/discount/discounttype.ts",
|
|
9379
|
-
"../src/entity/modules/liveshow/
|
|
9387
|
+
"../src/entity/modules/liveshow/campaign.ts",
|
|
9380
9388
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
9381
9389
|
"../src/entity/modules/shipping/shipping.ts",
|
|
9382
9390
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -9469,7 +9477,7 @@
|
|
|
9469
9477
|
"../src/entity/auditedmodel.ts",
|
|
9470
9478
|
"../src/entity/modules/discount/discount.ts"
|
|
9471
9479
|
],
|
|
9472
|
-
"../src/entity/modules/liveshow/
|
|
9480
|
+
"../src/entity/modules/liveshow/campaign.ts": [
|
|
9473
9481
|
"../src/entity/auditedmodel.ts",
|
|
9474
9482
|
"../src/entity/channeluser.ts"
|
|
9475
9483
|
],
|
|
@@ -10349,6 +10357,9 @@
|
|
|
10349
10357
|
"../src/migrations/1758573787467-liveshow2.ts": [
|
|
10350
10358
|
"../node_modules/typeorm/index.d.ts"
|
|
10351
10359
|
],
|
|
10360
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts": [
|
|
10361
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10362
|
+
],
|
|
10352
10363
|
"../src/migrations/index.ts": [
|
|
10353
10364
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10354
10365
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10446,7 +10457,7 @@
|
|
|
10446
10457
|
],
|
|
10447
10458
|
"../src/repositories/liveshow/index.ts": [
|
|
10448
10459
|
"../node_modules/typeorm/index.d.ts",
|
|
10449
|
-
"../src/entity/modules/liveshow/
|
|
10460
|
+
"../src/entity/modules/liveshow/campaign.ts"
|
|
10450
10461
|
],
|
|
10451
10462
|
"../src/repositories/shipping/index.ts": [
|
|
10452
10463
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -11051,7 +11062,7 @@
|
|
|
11051
11062
|
"../src/entity/modules/discount/discountcart.ts",
|
|
11052
11063
|
"../src/entity/modules/discount/discountproduct.ts",
|
|
11053
11064
|
"../src/entity/modules/discount/discounttype.ts",
|
|
11054
|
-
"../src/entity/modules/liveshow/
|
|
11065
|
+
"../src/entity/modules/liveshow/campaign.ts",
|
|
11055
11066
|
"../src/entity/modules/shipping/productshipping.ts",
|
|
11056
11067
|
"../src/entity/modules/shipping/shipping.ts",
|
|
11057
11068
|
"../src/entity/modules/shipping/shippingcountry.ts",
|
|
@@ -11306,6 +11317,7 @@
|
|
|
11306
11317
|
"../src/migrations/1747783948794-new-qa-2.ts",
|
|
11307
11318
|
"../src/migrations/1758571354123-liveshow.ts",
|
|
11308
11319
|
"../src/migrations/1758573787467-liveshow2.ts",
|
|
11320
|
+
"../src/migrations/1758897566987-liveshow-to-campaign.ts",
|
|
11309
11321
|
"../src/migrations/execute/index.ts",
|
|
11310
11322
|
"../src/migrations/index.ts",
|
|
11311
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,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,18 +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
|
-
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
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
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
|
|
@@ -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;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"}
|
|
@@ -1,59 +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('varchar', { nullable: true })
|
|
27
|
-
eventId?: string;
|
|
28
|
-
|
|
29
|
-
@Column('varchar', { nullable: true })
|
|
30
|
-
videoId?: string;
|
|
31
|
-
|
|
32
|
-
@Column('boolean', { nullable: true, default: false })
|
|
33
|
-
liveEnd?: boolean;
|
|
34
|
-
|
|
35
|
-
@Column('boolean', { nullable: true, default: false })
|
|
36
|
-
broadcasting?: boolean;
|
|
37
|
-
|
|
38
|
-
@Column('varchar', { nullable: true })
|
|
39
|
-
hls?: string;
|
|
40
|
-
|
|
41
|
-
@Column('varchar', { nullable: true })
|
|
42
|
-
streamKey?: string;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'timestamp', nullable: true })
|
|
45
|
-
startDate?: Date;
|
|
46
|
-
|
|
47
|
-
@Column({ type: 'timestamp', nullable: true })
|
|
48
|
-
endDate?: Date;
|
|
49
|
-
|
|
50
|
-
@Column('varchar', { length: '21844', nullable: true })
|
|
51
|
-
thumbnail?: string;
|
|
52
|
-
|
|
53
|
-
@ManyToOne(() => ChannelUser, (channelUser: ChannelUser) => channelUser.id, {
|
|
54
|
-
onDelete: 'CASCADE',
|
|
55
|
-
nullable: true,
|
|
56
|
-
})
|
|
57
|
-
@JoinColumn()
|
|
58
|
-
channelUser?: ChannelUser;
|
|
59
|
-
}
|