@reachu/database 1.0.21 → 1.0.23
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 +1 -2
- package/dist/entity/index.js +1 -3
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/modules/templates/AuthInfo.d.ts +1 -3
- package/dist/entity/modules/templates/AuthInfo.js +4 -9
- package/dist/entity/modules/templates/AuthInfo.js.map +1 -1
- package/dist/entity/modules/templates/AuthMethod.d.ts +2 -2
- package/dist/entity/modules/templates/AuthMethod.js +3 -3
- package/dist/entity/modules/templates/AuthMethod.js.map +1 -1
- package/dist/entity/modules/templates/TemplateChannel.d.ts +2 -2
- package/dist/entity/modules/templates/TemplateChannel.js +4 -4
- package/dist/entity/modules/templates/TemplateChannel.js.map +1 -1
- package/dist/migrations/1681236978678-template-channel-update.d.ts +6 -0
- package/dist/migrations/1681236978678-template-channel-update.js +37 -0
- package/dist/migrations/1681236978678-template-channel-update.js.map +1 -0
- package/dist/migrations/1681258240525-template-channel-update-2.d.ts +6 -0
- package/dist/migrations/1681258240525-template-channel-update-2.js +33 -0
- package/dist/migrations/1681258240525-template-channel-update-2.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -2
- package/dist/repositories/index.js +1 -2
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/templates/index.d.ts +0 -3
- package/dist/repositories/templates/index.js +1 -8
- package/dist/repositories/templates/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +44 -45
- package/package.json +3 -3
- package/src/entity/index.ts +0 -2
- package/src/entity/modules/templates/AuthInfo.ts +8 -20
- package/src/entity/modules/templates/AuthMethod.ts +4 -4
- package/src/entity/modules/templates/TemplateChannel.ts +6 -11
- package/src/migrations/1681236978678-template-channel-update.ts +22 -0
- package/src/migrations/1681258240525-template-channel-update-2.ts +18 -0
- package/src/repositories/index.ts +0 -2
- package/src/repositories/templates/index.ts +0 -4
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.d.ts +0 -11
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +0 -54
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js.map +0 -1
- package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +0 -43
package/dist/entity/index.d.ts
CHANGED
|
@@ -73,7 +73,6 @@ import ProductAttribute from './ProductAttribute';
|
|
|
73
73
|
import CategoryImages from './CategoryImages';
|
|
74
74
|
import AuthInfo from './modules/templates/AuthInfo';
|
|
75
75
|
import AuthMethod from './modules/templates/AuthMethod';
|
|
76
|
-
import AuthMethodTemplateChannel from './modules/templates/AuthMethodTemplateChannel';
|
|
77
76
|
import EndpointTemplateChannel from './modules/templates/EndpointTemplateChannel';
|
|
78
77
|
import TemplateChannel from './modules/templates/TemplateChannel';
|
|
79
78
|
import UserTemplateChannel from './modules/templates/UserTemplateChannel';
|
|
@@ -86,4 +85,4 @@ import TemplateChannelSchemeConfigProductMapped from './modules/templates/scheme
|
|
|
86
85
|
import ReachuSchemeConfigVariant from './modules/templates/schemeVariant/ReachuSchemeConfigVariant';
|
|
87
86
|
import TemplateChannelSchemeConfigVariant from './modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant';
|
|
88
87
|
import TemplateChannelSchemeConfigVariantMapped from './modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped';
|
|
89
|
-
export { CustomVariant, CustomProduct, CustomProductImage, Cart, CartItem, Checkout, CheckoutBillingAddress, CheckoutShippingAddress, PriceData, ProductShipping, Shipping, ShippingCountry, Address, ApiCredential, AuditedModel, BankAccount, Business, BusinessProducts, CardRegistration, Category, Channel, Check, CheckoutMetadata, Contact, Country, Courier, FlatRate, FlatRateCountry, Fulfillment, Image, ImportedProduct, MagentoConnection, MetricActiveUser, Notification, Option, Order, OrderCustomer, OrderItem, OrderShipping, OrderTracking, Payment, PaymentShopify, Permission, Price, Product, Request, Return, ReturnAddress, Role, RolePermission, ShippingPackage, ShopifyConnection, Subcategory, User, UserRole, Variant, Wallet, WooConnection, UserTokenWolt, UserSettings, PaymentMethod, Collection, CollectionItem, CollectionShared, ChannelGroup, ChannelUser, ChannelUserProductSync, UserChannelApiKey, Currency, ExchangeRate, Attribute, ProductAttribute, CategoryImages, AuthInfo, AuthMethod,
|
|
88
|
+
export { CustomVariant, CustomProduct, CustomProductImage, Cart, CartItem, Checkout, CheckoutBillingAddress, CheckoutShippingAddress, PriceData, ProductShipping, Shipping, ShippingCountry, Address, ApiCredential, AuditedModel, BankAccount, Business, BusinessProducts, CardRegistration, Category, Channel, Check, CheckoutMetadata, Contact, Country, Courier, FlatRate, FlatRateCountry, Fulfillment, Image, ImportedProduct, MagentoConnection, MetricActiveUser, Notification, Option, Order, OrderCustomer, OrderItem, OrderShipping, OrderTracking, Payment, PaymentShopify, Permission, Price, Product, Request, Return, ReturnAddress, Role, RolePermission, ShippingPackage, ShopifyConnection, Subcategory, User, UserRole, Variant, Wallet, WooConnection, UserTokenWolt, UserSettings, PaymentMethod, Collection, CollectionItem, CollectionShared, ChannelGroup, ChannelUser, ChannelUserProductSync, UserChannelApiKey, Currency, ExchangeRate, Attribute, ProductAttribute, CategoryImages, AuthInfo, AuthMethod, EndpointTemplateChannel, TemplateChannel, UserTemplateChannel, ReachuSchemeConfigOrder, TemplateChannelSchemeConfigOrder, TemplateChannelSchemeConfigOrderMapped, ReachuSchemeConfigProduct, TemplateChannelSchemeConfigProduct, TemplateChannelSchemeConfigProductMapped, ReachuSchemeConfigVariant, TemplateChannelSchemeConfigVariant, TemplateChannelSchemeConfigVariantMapped, };
|
package/dist/entity/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.RolePermission = exports.Role = exports.ReturnAddress = exports.Return = exports.Request = exports.Product = exports.Price = exports.Permission = exports.PaymentShopify = exports.Payment = exports.OrderTracking = exports.OrderShipping = exports.OrderItem = exports.OrderCustomer = exports.Order = exports.Option = exports.Notification = exports.MetricActiveUser = exports.MagentoConnection = exports.ImportedProduct = exports.Image = exports.Fulfillment = exports.FlatRateCountry = exports.FlatRate = exports.Courier = exports.Country = exports.Contact = exports.CheckoutMetadata = exports.Check = exports.Channel = exports.Category = exports.CardRegistration = exports.BusinessProducts = exports.Business = exports.BankAccount = exports.AuditedModel = exports.ApiCredential = exports.Address = exports.ShippingCountry = exports.Shipping = exports.ProductShipping = exports.PriceData = exports.CheckoutShippingAddress = exports.CheckoutBillingAddress = exports.Checkout = exports.CartItem = exports.Cart = exports.CustomProductImage = exports.CustomProduct = exports.CustomVariant = void 0;
|
|
7
|
-
exports.TemplateChannelSchemeConfigVariantMapped = exports.TemplateChannelSchemeConfigVariant = exports.ReachuSchemeConfigVariant = exports.TemplateChannelSchemeConfigProductMapped = exports.TemplateChannelSchemeConfigProduct = exports.ReachuSchemeConfigProduct = exports.TemplateChannelSchemeConfigOrderMapped = exports.TemplateChannelSchemeConfigOrder = exports.ReachuSchemeConfigOrder = exports.UserTemplateChannel = exports.TemplateChannel = exports.EndpointTemplateChannel = exports.
|
|
7
|
+
exports.TemplateChannelSchemeConfigVariantMapped = exports.TemplateChannelSchemeConfigVariant = exports.ReachuSchemeConfigVariant = exports.TemplateChannelSchemeConfigProductMapped = exports.TemplateChannelSchemeConfigProduct = exports.ReachuSchemeConfigProduct = exports.TemplateChannelSchemeConfigOrderMapped = exports.TemplateChannelSchemeConfigOrder = exports.ReachuSchemeConfigOrder = exports.UserTemplateChannel = exports.TemplateChannel = exports.EndpointTemplateChannel = exports.AuthMethod = exports.AuthInfo = exports.CategoryImages = exports.ProductAttribute = exports.Attribute = exports.ExchangeRate = exports.Currency = exports.UserChannelApiKey = exports.ChannelUserProductSync = exports.ChannelUser = exports.ChannelGroup = exports.CollectionShared = exports.CollectionItem = exports.Collection = exports.PaymentMethod = exports.UserSettings = exports.UserTokenWolt = exports.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = void 0;
|
|
8
8
|
const Address_1 = __importDefault(require("./Address"));
|
|
9
9
|
exports.Address = Address_1.default;
|
|
10
10
|
const ApiCredential_1 = __importDefault(require("./ApiCredential"));
|
|
@@ -155,8 +155,6 @@ const AuthInfo_1 = __importDefault(require("./modules/templates/AuthInfo"));
|
|
|
155
155
|
exports.AuthInfo = AuthInfo_1.default;
|
|
156
156
|
const AuthMethod_1 = __importDefault(require("./modules/templates/AuthMethod"));
|
|
157
157
|
exports.AuthMethod = AuthMethod_1.default;
|
|
158
|
-
const AuthMethodTemplateChannel_1 = __importDefault(require("./modules/templates/AuthMethodTemplateChannel"));
|
|
159
|
-
exports.AuthMethodTemplateChannel = AuthMethodTemplateChannel_1.default;
|
|
160
158
|
const EndpointTemplateChannel_1 = __importDefault(require("./modules/templates/EndpointTemplateChannel"));
|
|
161
159
|
exports.EndpointTemplateChannel = EndpointTemplateChannel_1.default;
|
|
162
160
|
const TemplateChannel_1 = __importDefault(require("./modules/templates/TemplateChannel"));
|
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;AAgH9B,kBAhHK,iBAAO,CAgHL;AA/GT,oEAA4C;AAgH1C,wBAhHK,uBAAa,CAgHL;AA/Gf,kEAA0C;AAgHxC,uBAhHK,sBAAY,CAgHL;AA/Gd,gEAAwC;AAgHtC,sBAhHK,qBAAW,CAgHL;AA/Gb,0DAAkC;AAgHhC,mBAhHK,kBAAQ,CAgHL;AA/GV,0EAAkD;AAgHhD,2BAhHK,0BAAgB,CAgHL;AA/GlB,0EAAkD;AAgHhD,2BAhHK,0BAAgB,CAgHL;AA/GlB,0DA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;AAyFlG,oCAzFK,mCAAyB,CAyFL;AAxF3B,8IAAsH;AAyFpH,6CAzFK,4CAAkC,CAyFL;AAxFpC,0JAAkI;AAyFhI,mDAzFK,kDAAwC,CAyFL"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import AuditedModel from '../../AuditedModel';
|
|
2
|
-
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
3
2
|
import UserTemplateChannel from './UserTemplateChannel';
|
|
4
3
|
export default class AuthInfo extends AuditedModel {
|
|
5
4
|
id: number;
|
|
@@ -9,6 +8,5 @@ export default class AuthInfo extends AuditedModel {
|
|
|
9
8
|
basic: string;
|
|
10
9
|
publicKey: string;
|
|
11
10
|
privateKey: string;
|
|
12
|
-
|
|
13
|
-
userTemplateChannel: UserTemplateChannel;
|
|
11
|
+
userTemplateChannel: UserTemplateChannel[];
|
|
14
12
|
}
|
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
17
|
-
const AuthMethodTemplateChannel_1 = __importDefault(require("./AuthMethodTemplateChannel"));
|
|
18
17
|
const UserTemplateChannel_1 = __importDefault(require("./UserTemplateChannel"));
|
|
19
18
|
let AuthInfo = class AuthInfo extends AuditedModel_1.default {
|
|
20
19
|
};
|
|
@@ -47,14 +46,10 @@ __decorate([
|
|
|
47
46
|
__metadata("design:type", String)
|
|
48
47
|
], AuthInfo.prototype, "privateKey", void 0);
|
|
49
48
|
__decorate([
|
|
50
|
-
typeorm_1.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
__decorate([
|
|
55
|
-
typeorm_1.OneToOne(() => UserTemplateChannel_1.default, { eager: true }),
|
|
56
|
-
typeorm_1.JoinColumn(),
|
|
57
|
-
__metadata("design:type", UserTemplateChannel_1.default)
|
|
49
|
+
typeorm_1.OneToMany(() => UserTemplateChannel_1.default, (userTemplateChannel) => userTemplateChannel.authInfo, {
|
|
50
|
+
cascade: true,
|
|
51
|
+
}),
|
|
52
|
+
__metadata("design:type", Array)
|
|
58
53
|
], AuthInfo.prototype, "userTemplateChannel", void 0);
|
|
59
54
|
AuthInfo = __decorate([
|
|
60
55
|
typeorm_1.Entity()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA8C;AAC9C,gFAAwD;AAGxD,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CA8BjD,CAAA;AA5BC;IADC,gCAAsB,EAAE;;oCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACxB;AAGd;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACvB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACxB;AAGd;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACnB;AASnB;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,6BAAmB,EACzB,CAAC,mBAAwC,EAAE,EAAE,CAAC,mBAAmB,CAAC,QAAQ,EAC1E;QACE,OAAO,EAAE,IAAI;KACd,CACF;;qDAC0C;AA7BxB,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA8B5B;kBA9BoB,QAAQ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import AuditedModel from '../../AuditedModel';
|
|
2
|
-
import
|
|
2
|
+
import TemplateChannel from './TemplateChannel';
|
|
3
3
|
export default class AuthMethod extends AuditedModel {
|
|
4
4
|
id: number;
|
|
5
5
|
deletedAt: Date;
|
|
6
6
|
name: string;
|
|
7
|
-
|
|
7
|
+
templateChannel: TemplateChannel[];
|
|
8
8
|
}
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
17
|
-
const
|
|
17
|
+
const TemplateChannel_1 = __importDefault(require("./TemplateChannel"));
|
|
18
18
|
let AuthMethod = class AuthMethod extends AuditedModel_1.default {
|
|
19
19
|
};
|
|
20
20
|
__decorate([
|
|
@@ -30,11 +30,11 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], AuthMethod.prototype, "name", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
typeorm_1.OneToMany(() =>
|
|
33
|
+
typeorm_1.OneToMany(() => TemplateChannel_1.default, (templateChannel) => templateChannel.authMethod, {
|
|
34
34
|
cascade: true,
|
|
35
35
|
}),
|
|
36
36
|
__metadata("design:type", Array)
|
|
37
|
-
], AuthMethod.prototype, "
|
|
37
|
+
], AuthMethod.prototype, "templateChannel", void 0);
|
|
38
38
|
AuthMethod = __decorate([
|
|
39
39
|
typeorm_1.Entity()
|
|
40
40
|
], AuthMethod);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMethod.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthMethod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"AuthMethod.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthMethod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA8C;AAC9C,wEAAgD;AAGhD,IAAqB,UAAU,GAA/B,MAAqB,UAAW,SAAQ,sBAAY;CAkBnD,CAAA;AAhBC;IADC,gCAAsB,EAAE;;sCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;6CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wCAC1B;AASb;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,yBAAe,EACrB,CAAC,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,EAChE;QACE,OAAO,EAAE,IAAI;KACd,CACF;;mDACkC;AAjBhB,UAAU;IAD9B,gBAAM,EAAE;GACY,UAAU,CAkB9B;kBAlBoB,UAAU"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import AuditedModel from '../../AuditedModel';
|
|
2
|
-
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
3
2
|
import UserTemplateChannel from './UserTemplateChannel';
|
|
4
3
|
import ReachuSchemeConfigProduct from './schemeProduct/ReachuSchemeConfigProduct';
|
|
5
4
|
import TemplateChannelSchemeConfigProduct from './schemeProduct/TemplateChannelSchemeConfigProduct';
|
|
@@ -10,11 +9,12 @@ import TemplateChannelSchemeConfigVariantMapped from './schemeVariant/TemplateCh
|
|
|
10
9
|
import ReachuSchemeConfigOrder from './schemeOrder/ReachuSchemeConfigOrder';
|
|
11
10
|
import TemplateChannelSchemeConfigOrder from './schemeOrder/TemplateChannelSchemeConfigOrder';
|
|
12
11
|
import TemplateChannelSchemeConfigOrderMapped from './schemeOrder/TemplateChannelSchemeConfigOrderMapped';
|
|
12
|
+
import AuthMethod from './AuthMethod';
|
|
13
13
|
export default class TemplateChannel extends AuditedModel {
|
|
14
14
|
id: number;
|
|
15
15
|
deletedAt: Date;
|
|
16
16
|
name: string;
|
|
17
|
-
|
|
17
|
+
authMethod: AuthMethod;
|
|
18
18
|
userTemplateChannel: UserTemplateChannel[];
|
|
19
19
|
reachuSchemeConfigProduct: ReachuSchemeConfigProduct;
|
|
20
20
|
templateChannelSchemeConfigProduct: TemplateChannelSchemeConfigProduct;
|
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
17
|
-
const AuthMethodTemplateChannel_1 = __importDefault(require("./AuthMethodTemplateChannel"));
|
|
18
17
|
const UserTemplateChannel_1 = __importDefault(require("./UserTemplateChannel"));
|
|
19
18
|
const ReachuSchemeConfigProduct_1 = __importDefault(require("./schemeProduct/ReachuSchemeConfigProduct"));
|
|
20
19
|
const TemplateChannelSchemeConfigProduct_1 = __importDefault(require("./schemeProduct/TemplateChannelSchemeConfigProduct"));
|
|
@@ -25,6 +24,7 @@ const TemplateChannelSchemeConfigVariantMapped_1 = __importDefault(require("./sc
|
|
|
25
24
|
const ReachuSchemeConfigOrder_1 = __importDefault(require("./schemeOrder/ReachuSchemeConfigOrder"));
|
|
26
25
|
const TemplateChannelSchemeConfigOrder_1 = __importDefault(require("./schemeOrder/TemplateChannelSchemeConfigOrder"));
|
|
27
26
|
const TemplateChannelSchemeConfigOrderMapped_1 = __importDefault(require("./schemeOrder/TemplateChannelSchemeConfigOrderMapped"));
|
|
27
|
+
const AuthMethod_1 = __importDefault(require("./AuthMethod"));
|
|
28
28
|
let TemplateChannel = class TemplateChannel extends AuditedModel_1.default {
|
|
29
29
|
};
|
|
30
30
|
__decorate([
|
|
@@ -40,13 +40,13 @@ __decorate([
|
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], TemplateChannel.prototype, "name", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
typeorm_1.ManyToOne(() =>
|
|
43
|
+
typeorm_1.ManyToOne(() => AuthMethod_1.default, (authMethod) => authMethod.templateChannel, {
|
|
44
44
|
eager: true,
|
|
45
45
|
onDelete: 'CASCADE',
|
|
46
46
|
}),
|
|
47
47
|
typeorm_1.JoinColumn(),
|
|
48
|
-
__metadata("design:type",
|
|
49
|
-
], TemplateChannel.prototype, "
|
|
48
|
+
__metadata("design:type", AuthMethod_1.default)
|
|
49
|
+
], TemplateChannel.prototype, "authMethod", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
typeorm_1.OneToMany(() => UserTemplateChannel_1.default, (userTemplateChannel) => userTemplateChannel.templateChannel, { cascade: true }),
|
|
52
52
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/TemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"TemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/TemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,gFAAwD;AACxD,0GAAkF;AAClF,4HAAoG;AACpG,wIAAgH;AAChH,0GAAkF;AAClF,4HAAoG;AACpG,wIAAgH;AAChH,oGAA4E;AAC5E,sHAA8F;AAC9F,kIAA0G;AAC1G,8DAAsC;AAGtC,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAkIxD,CAAA;AAhIC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAA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
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.templateChannelUpdate1681236978678 = void 0;
|
|
13
|
+
class templateChannelUpdate1681236978678 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'templateChannelUpdate1681236978678';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_326d68a0e78903191bed82d0bff\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_857c2457632fd40c3b44fcff4cc\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` CHANGE \`auth_method_template_channel_id\` \`auth_method_id\` int NULL`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`auth_method_template_channel_id\``);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_873ffef43ea9243a7165235e702\` FOREIGN KEY (\`auth_method_id\`) REFERENCES \`auth_method\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
down(queryRunner) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_873ffef43ea9243a7165235e702\``);
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`auth_method_template_channel_id\` int NULL`);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` CHANGE \`auth_method_id\` \`auth_method_template_channel_id\` int NULL`);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_857c2457632fd40c3b44fcff4cc\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_326d68a0e78903191bed82d0bff\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.templateChannelUpdate1681236978678 = templateChannelUpdate1681236978678;
|
|
37
|
+
//# sourceMappingURL=1681236978678-template-channel-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1681236978678-template-channel-update.js","sourceRoot":"","sources":["../../src/migrations/1681236978678-template-channel-update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,kCAAkC;IAA/C;QACI,SAAI,GAAG,oCAAoC,CAAA;IAkB/C,CAAC;IAhBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;YACzG,MAAM,WAAW,CAAC,KAAK,CAAC,yGAAyG,CAAC,CAAC;YACnI,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAC;YACrG,MAAM,WAAW,CAAC,KAAK,CAAC,8LAA8L,CAAC,CAAC;QAC5N,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,sFAAsF,CAAC,CAAC;YAChH,MAAM,WAAW,CAAC,KAAK,CAAC,4EAA4E,CAAC,CAAC;YACtG,MAAM,WAAW,CAAC,KAAK,CAAC,yGAAyG,CAAC,CAAC;YACnI,MAAM,WAAW,CAAC,KAAK,CAAC,yNAAyN,CAAC,CAAC;YACnP,MAAM,WAAW,CAAC,KAAK,CAAC,gOAAgO,CAAC,CAAC;QAC9P,CAAC;KAAA;CAEJ;AAnBD,gFAmBC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.templateChannelUpdate21681258240525 = void 0;
|
|
13
|
+
class templateChannelUpdate21681258240525 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'templateChannelUpdate21681258240525';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_683d04174f79d63872cd9abbfd2\``);
|
|
20
|
+
yield queryRunner.query(`DROP INDEX \`REL_683d04174f79d63872cd9abbfd\` ON \`auth_info\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`user_template_channel_id\``);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
down(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`user_template_channel_id\` int NULL`);
|
|
27
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_683d04174f79d63872cd9abbfd\` ON \`auth_info\` (\`user_template_channel_id\`)`);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_683d04174f79d63872cd9abbfd2\` FOREIGN KEY (\`user_template_channel_id\`) REFERENCES \`user_template_channel\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.templateChannelUpdate21681258240525 = templateChannelUpdate21681258240525;
|
|
33
|
+
//# sourceMappingURL=1681258240525-template-channel-update-2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1681258240525-template-channel-update-2.js","sourceRoot":"","sources":["../../src/migrations/1681258240525-template-channel-update-2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,mCAAmC;IAAhD;QACI,SAAI,GAAG,qCAAqC,CAAA;IAchD,CAAC;IAZgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;YACzG,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;YAC1F,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;QAClG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAC;YAClI,MAAM,WAAW,CAAC,KAAK,CAAC,6MAA6M,CAAC,CAAC;QAC3O,CAAC;KAAA;CAEJ;AAfD,kFAeC"}
|
|
@@ -54,7 +54,7 @@ import ProductAttribute from '../entity/ProductAttribute';
|
|
|
54
54
|
import CategoryImages from '../entity/CategoryImages';
|
|
55
55
|
import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
|
|
56
56
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
57
|
-
import { AuthInfoRepository, AuthMethodRepository,
|
|
57
|
+
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateChannelRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateChannelRepository, TemplateChannelSchemeConfigOrderMappedRepository, TemplateChannelSchemeConfigOrderRepository, TemplateChannelSchemeConfigProductMappedRepository, TemplateChannelSchemeConfigProductRepository, TemplateChannelSchemeConfigVariantMappedRepository, TemplateChannelSchemeConfigVariantRepository, UserTemplateChannelRepository } from './templates';
|
|
58
58
|
import { Repository } from 'typeorm';
|
|
59
59
|
export declare class CategoryImagesRepository extends Repository<CategoryImages> {
|
|
60
60
|
}
|
|
@@ -165,5 +165,5 @@ export declare class CurrencyRepository extends Repository<Currency> {
|
|
|
165
165
|
export declare class ExchangeRateRepository extends Repository<ExchangeRate> {
|
|
166
166
|
}
|
|
167
167
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
168
|
-
export { AuthInfoRepository, AuthMethodRepository,
|
|
168
|
+
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateChannelRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateChannelRepository, TemplateChannelSchemeConfigOrderMappedRepository, TemplateChannelSchemeConfigOrderRepository, TemplateChannelSchemeConfigProductMappedRepository, TemplateChannelSchemeConfigProductRepository, TemplateChannelSchemeConfigVariantMappedRepository, TemplateChannelSchemeConfigVariantRepository, UserTemplateChannelRepository, };
|
|
169
169
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
@@ -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.UserTokenWoltRepository = exports.WooConnectionRepository = exports.WalletRepository = exports.VariantRepository = exports.UserRoleRepository = exports.UserRepository = exports.SubcategoryRepository = exports.ShopifyConnectionRepository = exports.ShippingPackageRepository = exports.RolePermissionRepository = exports.RoleRepository = 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.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.UserTemplateChannelRepository = exports.TemplateChannelSchemeConfigVariantRepository = exports.TemplateChannelSchemeConfigVariantMappedRepository = exports.TemplateChannelSchemeConfigProductRepository = exports.TemplateChannelSchemeConfigProductMappedRepository = exports.TemplateChannelSchemeConfigOrderRepository = exports.TemplateChannelSchemeConfigOrderMappedRepository = exports.TemplateChannelRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.EndpointTemplateChannelRepository = exports.
|
|
13
|
+
exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.UserTemplateChannelRepository = exports.TemplateChannelSchemeConfigVariantRepository = exports.TemplateChannelSchemeConfigVariantMappedRepository = exports.TemplateChannelSchemeConfigProductRepository = exports.TemplateChannelSchemeConfigProductMappedRepository = exports.TemplateChannelSchemeConfigOrderRepository = exports.TemplateChannelSchemeConfigOrderMappedRepository = exports.TemplateChannelRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.EndpointTemplateChannelRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = exports.PriceDataRepository = exports.CheckoutShippingAddressRepository = exports.CheckoutRepository = exports.CheckoutBillingAddressRepository = exports.CartRepository = exports.CartItemRepository = 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"));
|
|
@@ -79,7 +79,6 @@ Object.defineProperty(exports, "ShippingRepository", { enumerable: true, get: fu
|
|
|
79
79
|
const templates_1 = require("./templates");
|
|
80
80
|
Object.defineProperty(exports, "AuthInfoRepository", { enumerable: true, get: function () { return templates_1.AuthInfoRepository; } });
|
|
81
81
|
Object.defineProperty(exports, "AuthMethodRepository", { enumerable: true, get: function () { return templates_1.AuthMethodRepository; } });
|
|
82
|
-
Object.defineProperty(exports, "AuthMethodTemplateChannelRepository", { enumerable: true, get: function () { return templates_1.AuthMethodTemplateChannelRepository; } });
|
|
83
82
|
Object.defineProperty(exports, "EndpointTemplateChannelRepository", { enumerable: true, get: function () { return templates_1.EndpointTemplateChannelRepository; } });
|
|
84
83
|
Object.defineProperty(exports, "ReachuSchemeConfigOrderRepository", { enumerable: true, get: function () { return templates_1.ReachuSchemeConfigOrderRepository; } });
|
|
85
84
|
Object.defineProperty(exports, "ReachuSchemeConfigProductRepository", { enumerable: true, get: function () { return templates_1.ReachuSchemeConfigProductRepository; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD,4EAAoD;AACpD,sEAA8C;AAC9C,8EAAsD;AACtD,kFAA0D;AAC1D,0EAAkD;AAClD,wEAAgD;AAChD,8FAAsE;AACtE,oFAA4D;AAC5D,kEAA0C;AAC1C,0EAAkD;AAElD,4EAAoD;AACpD,2DAAwD;AACxD,sFAA8D;AAE9D,oEAA4C;AAC5C,kFAA0D;AAC1D,8EAAsD;AAEtD,yCAOoB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD,4EAAoD;AACpD,sEAA8C;AAC9C,8EAAsD;AACtD,kFAA0D;AAC1D,0EAAkD;AAClD,wEAAgD;AAChD,8FAAsE;AACtE,oFAA4D;AAC5D,kEAA0C;AAC1C,0EAAkD;AAElD,4EAAoD;AACpD,2DAAwD;AACxD,sFAA8D;AAE9D,oEAA4C;AAC5C,kFAA0D;AAC1D,8EAAsD;AAEtD,yCAOoB;AA8LlB,mGApMA,6BAAkB,OAoMA;AAClB,+FApMA,yBAAc,OAoMA;AACd,iHApMA,2CAAgC,OAoMA;AAChC,mGApMA,6BAAkB,OAoMA;AAClB,kHApMA,4CAAiC,OAoMA;AACjC,oGApMA,8BAAmB,OAoMA;AAjMrB,yCAIoB;AAiNX,0GApNP,oCAAyB,OAoNO;AAAE,0GAnNlC,oCA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AA2B,CAAyC;AAApE,kEAA2B;AAGxC,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,oBAAoB;CAAG,CAAA;AAAlD,kBAAkB;IAD9B,0BAAgB,CAAC,kBAAQ,CAAC;GACd,kBAAkB,CAAgC;AAAlD,gDAAkB;AAG/B,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,oBAAwB;CAAG,CAAA;AAA1D,sBAAsB;IADlC,0BAAgB,CAAC,sBAAY,CAAC;GAClB,sBAAsB,CAAoC;AAA1D,wDAAsB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
2
|
import AuthInfo from '../../entity/modules//templates/AuthInfo';
|
|
3
3
|
import AuthMethod from '../../entity/modules/templates/AuthMethod';
|
|
4
|
-
import AuthMethodTemplateChannel from '../../entity/modules/templates/AuthMethodTemplateChannel';
|
|
5
4
|
import EndpointTemplateChannel from '../../entity/modules/templates/EndpointTemplateChannel';
|
|
6
5
|
import TemplateChannel from '../../entity/modules/templates/TemplateChannel';
|
|
7
6
|
import UserTemplateChannel from '../../entity/modules/templates/UserTemplateChannel';
|
|
@@ -18,8 +17,6 @@ export declare class AuthInfoRepository extends Repository<AuthInfo> {
|
|
|
18
17
|
}
|
|
19
18
|
export declare class AuthMethodRepository extends Repository<AuthMethod> {
|
|
20
19
|
}
|
|
21
|
-
export declare class AuthMethodTemplateChannelRepository extends Repository<AuthMethodTemplateChannel> {
|
|
22
|
-
}
|
|
23
20
|
export declare class EndpointTemplateChannelRepository extends Repository<EndpointTemplateChannel> {
|
|
24
21
|
}
|
|
25
22
|
export declare class TemplateChannelRepository extends Repository<TemplateChannel> {
|
|
@@ -9,11 +9,10 @@ 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.TemplateChannelSchemeConfigVariantMappedRepository = exports.TemplateChannelSchemeConfigVariantRepository = exports.ReachuSchemeConfigVariantRepository = exports.TemplateChannelSchemeConfigProductMappedRepository = exports.TemplateChannelSchemeConfigProductRepository = exports.ReachuSchemeConfigProductRepository = exports.TemplateChannelSchemeConfigOrderMappedRepository = exports.TemplateChannelSchemeConfigOrderRepository = exports.ReachuSchemeConfigOrderRepository = exports.UserTemplateChannelRepository = exports.TemplateChannelRepository = exports.EndpointTemplateChannelRepository = exports.
|
|
12
|
+
exports.TemplateChannelSchemeConfigVariantMappedRepository = exports.TemplateChannelSchemeConfigVariantRepository = exports.ReachuSchemeConfigVariantRepository = exports.TemplateChannelSchemeConfigProductMappedRepository = exports.TemplateChannelSchemeConfigProductRepository = exports.ReachuSchemeConfigProductRepository = exports.TemplateChannelSchemeConfigOrderMappedRepository = exports.TemplateChannelSchemeConfigOrderRepository = exports.ReachuSchemeConfigOrderRepository = exports.UserTemplateChannelRepository = exports.TemplateChannelRepository = exports.EndpointTemplateChannelRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const AuthInfo_1 = __importDefault(require("../../entity/modules//templates/AuthInfo"));
|
|
15
15
|
const AuthMethod_1 = __importDefault(require("../../entity/modules/templates/AuthMethod"));
|
|
16
|
-
const AuthMethodTemplateChannel_1 = __importDefault(require("../../entity/modules/templates/AuthMethodTemplateChannel"));
|
|
17
16
|
const EndpointTemplateChannel_1 = __importDefault(require("../../entity/modules/templates/EndpointTemplateChannel"));
|
|
18
17
|
const TemplateChannel_1 = __importDefault(require("../../entity/modules/templates/TemplateChannel"));
|
|
19
18
|
const UserTemplateChannel_1 = __importDefault(require("../../entity/modules/templates/UserTemplateChannel"));
|
|
@@ -38,12 +37,6 @@ AuthMethodRepository = __decorate([
|
|
|
38
37
|
typeorm_1.EntityRepository(AuthMethod_1.default)
|
|
39
38
|
], AuthMethodRepository);
|
|
40
39
|
exports.AuthMethodRepository = AuthMethodRepository;
|
|
41
|
-
let AuthMethodTemplateChannelRepository = class AuthMethodTemplateChannelRepository extends typeorm_1.Repository {
|
|
42
|
-
};
|
|
43
|
-
AuthMethodTemplateChannelRepository = __decorate([
|
|
44
|
-
typeorm_1.EntityRepository(AuthMethodTemplateChannel_1.default)
|
|
45
|
-
], AuthMethodTemplateChannelRepository);
|
|
46
|
-
exports.AuthMethodTemplateChannelRepository = AuthMethodTemplateChannelRepository;
|
|
47
40
|
let EndpointTemplateChannelRepository = class EndpointTemplateChannelRepository extends typeorm_1.Repository {
|
|
48
41
|
};
|
|
49
42
|
EndpointTemplateChannelRepository = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuD;AACvD,wFAAgE;AAChE,2FAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuD;AACvD,wFAAgE;AAChE,2FAAmE;AACnE,qHAA6F;AAC7F,qGAA6E;AAC7E,6GAAqF;AAErF,iIAAyG;AACzG,mJAA2H;AAC3H,+JAAuI;AAEvI,uIAA+G;AAC/G,yJAAiI;AACjI,qKAA6I;AAE7I,uIAA+G;AAC/G,yJAAiI;AACjI,qKAA6I;AAG7I,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,oBAAoB;CAAG,CAAA;AAAlD,kBAAkB;IAD9B,0BAAgB,CAAC,kBAAQ,CAAC;GACd,kBAAkB,CAAgC;AAAlD,gDAAkB;AAG/B,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,oBAAsB;CAAG,CAAA;AAAtD,oBAAoB;IADhC,0BAAgB,CAAC,oBAAU,CAAC;GAChB,oBAAoB,CAAkC;AAAtD,oDAAoB;AAGjC,IAAa,iCAAiC,GAA9C,M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AAtG,oGAA4C;AAGzD,IAAa,kDAAkD,GAA/D,MAAa,kDAAmD,SAAQ,oBAAoD;CAAG,CAAA;AAAlH,kDAAkD;IAD9D,0BAAgB,CAAC,kDAAwC,CAAC;GAC9C,kDAAkD,CAAgE;AAAlH,gHAAkD;AAG/D,IAAa,mCAAmC,GAAhD,MAAa,mCAAoC,SAAQ,oBAAqC;CAAG,CAAA;AAApF,mCAAmC;IAD/C,0BAAgB,CAAC,mCAAyB,CAAC;GAC/B,mCAAmC,CAAiD;AAApF,kFAAmC;AAGhD,IAAa,4CAA4C,GAAzD,MAAa,4CAA6C,SAAQ,oBAA8C;CAAG,CAAA;AAAtG,4CAA4C;IADxD,0BAAgB,CAAC,4CAAkC,CAAC;GACxC,4CAA4C,CAA0D;AAAtG,oGAA4C;AAGzD,IAAa,kDAAkD,GAA/D,MAAa,kDAAmD,SAAQ,oBAAoD;CAAG,CAAA;AAAlH,kDAAkD;IAD9D,0BAAgB,CAAC,kDAAwC,CAAC;GAC9C,kDAAkD,CAAgE;AAAlH,gHAAkD"}
|
|
@@ -2621,21 +2621,11 @@
|
|
|
2621
2621
|
"signature": "edfc427eed5128dec1fecd84338bbbf23d9737b2b637ef70601411e733545186",
|
|
2622
2622
|
"affectsGlobalScope": false
|
|
2623
2623
|
},
|
|
2624
|
-
"../src/entity/modules/templates/authmethod.ts": {
|
|
2625
|
-
"version": "2d07f3895d7170defc689f7b65a03cb2ae61371ac30333d8ccd7683afcfa424a",
|
|
2626
|
-
"signature": "e739ac5fd48e3670eae18f3bce349e51f474a03d34579b6f03e271d74217b9f0",
|
|
2627
|
-
"affectsGlobalScope": false
|
|
2628
|
-
},
|
|
2629
2624
|
"../src/entity/modules/templates/endpointtemplatechannel.ts": {
|
|
2630
2625
|
"version": "977b019efe1c8a4277ca66e1821fd8930f464e82902425cc64286e84804d09c1",
|
|
2631
2626
|
"signature": "6d19c60e5a1ee07815d067bce52ff06a79b32c9e7a5ad0657c7cbdbd5962c3b8",
|
|
2632
2627
|
"affectsGlobalScope": false
|
|
2633
2628
|
},
|
|
2634
|
-
"../src/entity/modules/templates/usertemplatechannel.ts": {
|
|
2635
|
-
"version": "d30027cc5078aaf3f688d641e3490740fe811f9754839bb81e10326fb28ba3c5",
|
|
2636
|
-
"signature": "3057428477650166b0d907b96c0e758f357ec9dfe6c1be82fb8ce27976ee51b7",
|
|
2637
|
-
"affectsGlobalScope": false
|
|
2638
|
-
},
|
|
2639
2629
|
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": {
|
|
2640
2630
|
"version": "9a2d68655273467bb096730dffcf37e2bc2f48730158740b146ff4b4cdf3deaa",
|
|
2641
2631
|
"signature": "5fe631cd5c4032607d7a917ff8711062adee853b93212053b270854084bca568",
|
|
@@ -2681,24 +2671,29 @@
|
|
|
2681
2671
|
"signature": "71483e0e940e4e87919df3817678a6d67d5a580aaff62d484ebde5d76d64f4c3",
|
|
2682
2672
|
"affectsGlobalScope": false
|
|
2683
2673
|
},
|
|
2674
|
+
"../src/entity/modules/templates/authmethod.ts": {
|
|
2675
|
+
"version": "27a6e6d4cec135f4f3bfed190af2e36f8e648bae3051b30a69080fbf4e27b6f5",
|
|
2676
|
+
"signature": "7b7b1f755661d2c537215d87f95d2114d960391e1835054bbb5ec1739778df7b",
|
|
2677
|
+
"affectsGlobalScope": false
|
|
2678
|
+
},
|
|
2684
2679
|
"../src/entity/modules/templates/templatechannel.ts": {
|
|
2685
|
-
"version": "
|
|
2686
|
-
"signature": "
|
|
2680
|
+
"version": "f1961c6544b251bef9a7142ede9fbd0ff1851128e2f0ce92e4a60435bdab70a6",
|
|
2681
|
+
"signature": "7d02f291329fa4ff18ca8782779cacf3a2989bc64fdb564ca7d7c0c6d0298bd3",
|
|
2687
2682
|
"affectsGlobalScope": false
|
|
2688
2683
|
},
|
|
2689
|
-
"../src/entity/modules/templates/
|
|
2690
|
-
"version": "
|
|
2691
|
-
"signature": "
|
|
2684
|
+
"../src/entity/modules/templates/usertemplatechannel.ts": {
|
|
2685
|
+
"version": "d30027cc5078aaf3f688d641e3490740fe811f9754839bb81e10326fb28ba3c5",
|
|
2686
|
+
"signature": "3057428477650166b0d907b96c0e758f357ec9dfe6c1be82fb8ce27976ee51b7",
|
|
2692
2687
|
"affectsGlobalScope": false
|
|
2693
2688
|
},
|
|
2694
2689
|
"../src/entity/modules/templates/authinfo.ts": {
|
|
2695
|
-
"version": "
|
|
2696
|
-
"signature": "
|
|
2690
|
+
"version": "cf831c8fea3b85f0c43964688a7c880235828ceb0511203e10e671d642fdacd9",
|
|
2691
|
+
"signature": "e0decd06165d68e0e1cf02fd2d5720dd321e90337eb173a85d4ca79af8bcc68a",
|
|
2697
2692
|
"affectsGlobalScope": false
|
|
2698
2693
|
},
|
|
2699
2694
|
"../src/entity/index.ts": {
|
|
2700
|
-
"version": "
|
|
2701
|
-
"signature": "
|
|
2695
|
+
"version": "44b6e23be4361ce7e32c94b031f5639fe44ab6f62ee4f96b7f25985b2cef01dd",
|
|
2696
|
+
"signature": "1393566f8bbd78b86cafeb5da7171f9abd1f77bbc09ad59114699a5de0c624c6",
|
|
2702
2697
|
"affectsGlobalScope": false
|
|
2703
2698
|
},
|
|
2704
2699
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2767,13 +2762,13 @@
|
|
|
2767
2762
|
"affectsGlobalScope": false
|
|
2768
2763
|
},
|
|
2769
2764
|
"../src/repositories/templates/index.ts": {
|
|
2770
|
-
"version": "
|
|
2771
|
-
"signature": "
|
|
2765
|
+
"version": "1da2e1c9c1cef78cd4049e41cf50c0059397a6caef98aa3db7ef606d3bde7a89",
|
|
2766
|
+
"signature": "b21e38e24e414d949ca746e7e65ac4b21cdef9e0b40ee051057af83f031c07b3",
|
|
2772
2767
|
"affectsGlobalScope": false
|
|
2773
2768
|
},
|
|
2774
2769
|
"../src/repositories/index.ts": {
|
|
2775
|
-
"version": "
|
|
2776
|
-
"signature": "
|
|
2770
|
+
"version": "79dc05ecd603f6c3637b43b224fda3b0891cc3666ce875fba5263348dd39571d",
|
|
2771
|
+
"signature": "33071b6d0d9486189e6a62040ad8ed4e4c3b7fa196a34d730cb4ef2dfa2a6f6c",
|
|
2777
2772
|
"affectsGlobalScope": false
|
|
2778
2773
|
},
|
|
2779
2774
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3126,6 +3121,16 @@
|
|
|
3126
3121
|
"signature": "dcddc09e33bd4710187d83f37c7053a0f3e8a61455281dd336ef4cd987f0f560",
|
|
3127
3122
|
"affectsGlobalScope": false
|
|
3128
3123
|
},
|
|
3124
|
+
"../src/migrations/1681236978678-template-channel-update.ts": {
|
|
3125
|
+
"version": "d19a436a050e0b814d27349e75190eb14db701791970513c45a866c8eeb96f21",
|
|
3126
|
+
"signature": "752a11918507b981b24a4cfb6587bc507b5591037fee8e54e9db9c6c67bb4c75",
|
|
3127
|
+
"affectsGlobalScope": false
|
|
3128
|
+
},
|
|
3129
|
+
"../src/migrations/1681258240525-template-channel-update-2.ts": {
|
|
3130
|
+
"version": "941310b27f0b39041030ef5be62d79852fcb2d440d4a30661fd09c5b0bcd5de2",
|
|
3131
|
+
"signature": "a1059a3289266257eb87416c5903388fb40803a39f1ff1567d7f36cad8bae994",
|
|
3132
|
+
"affectsGlobalScope": false
|
|
3133
|
+
},
|
|
3129
3134
|
"../src/migrations/execute/index.ts": {
|
|
3130
3135
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3131
3136
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5272,7 +5277,6 @@
|
|
|
5272
5277
|
"../src/entity/modules/shopcart/pricedata.ts",
|
|
5273
5278
|
"../src/entity/modules/templates/authinfo.ts",
|
|
5274
5279
|
"../src/entity/modules/templates/authmethod.ts",
|
|
5275
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5276
5280
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
5277
5281
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5278
5282
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -5379,19 +5383,11 @@
|
|
|
5379
5383
|
"../src/entity/modules/templates/authinfo.ts": [
|
|
5380
5384
|
"../node_modules/typeorm/index.d.ts",
|
|
5381
5385
|
"../src/entity/auditedmodel.ts",
|
|
5382
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5383
5386
|
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
5384
5387
|
],
|
|
5385
5388
|
"../src/entity/modules/templates/authmethod.ts": [
|
|
5386
5389
|
"../node_modules/typeorm/index.d.ts",
|
|
5387
5390
|
"../src/entity/auditedmodel.ts",
|
|
5388
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts"
|
|
5389
|
-
],
|
|
5390
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts": [
|
|
5391
|
-
"../node_modules/typeorm/index.d.ts",
|
|
5392
|
-
"../src/entity/auditedmodel.ts",
|
|
5393
|
-
"../src/entity/modules/templates/authinfo.ts",
|
|
5394
|
-
"../src/entity/modules/templates/authmethod.ts",
|
|
5395
5391
|
"../src/entity/modules/templates/templatechannel.ts"
|
|
5396
5392
|
],
|
|
5397
5393
|
"../src/entity/modules/templates/endpointtemplatechannel.ts": [
|
|
@@ -5456,7 +5452,7 @@
|
|
|
5456
5452
|
"../src/entity/modules/templates/templatechannel.ts": [
|
|
5457
5453
|
"../node_modules/typeorm/index.d.ts",
|
|
5458
5454
|
"../src/entity/auditedmodel.ts",
|
|
5459
|
-
"../src/entity/modules/templates/
|
|
5455
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
5460
5456
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5461
5457
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
5462
5458
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
@@ -5849,6 +5845,12 @@
|
|
|
5849
5845
|
"../src/migrations/1681170372251-template-channel-fix.ts": [
|
|
5850
5846
|
"../node_modules/typeorm/index.d.ts"
|
|
5851
5847
|
],
|
|
5848
|
+
"../src/migrations/1681236978678-template-channel-update.ts": [
|
|
5849
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5850
|
+
],
|
|
5851
|
+
"../src/migrations/1681258240525-template-channel-update-2.ts": [
|
|
5852
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5853
|
+
],
|
|
5852
5854
|
"../src/migrations/execute/index.ts": [
|
|
5853
5855
|
"../src/config/connect.ts"
|
|
5854
5856
|
],
|
|
@@ -5943,7 +5945,6 @@
|
|
|
5943
5945
|
"../node_modules/typeorm/index.d.ts",
|
|
5944
5946
|
"../src/entity/modules/templates/authinfo.ts",
|
|
5945
5947
|
"../src/entity/modules/templates/authmethod.ts",
|
|
5946
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5947
5948
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
5948
5949
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5949
5950
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -7935,7 +7936,6 @@
|
|
|
7935
7936
|
"../src/entity/modules/shopcart/pricedata.ts",
|
|
7936
7937
|
"../src/entity/modules/templates/authinfo.ts",
|
|
7937
7938
|
"../src/entity/modules/templates/authmethod.ts",
|
|
7938
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
7939
7939
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
7940
7940
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
7941
7941
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -8028,17 +8028,10 @@
|
|
|
8028
8028
|
],
|
|
8029
8029
|
"../src/entity/modules/templates/authinfo.ts": [
|
|
8030
8030
|
"../src/entity/auditedmodel.ts",
|
|
8031
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
8032
8031
|
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
8033
8032
|
],
|
|
8034
8033
|
"../src/entity/modules/templates/authmethod.ts": [
|
|
8035
8034
|
"../src/entity/auditedmodel.ts",
|
|
8036
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts"
|
|
8037
|
-
],
|
|
8038
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts": [
|
|
8039
|
-
"../src/entity/auditedmodel.ts",
|
|
8040
|
-
"../src/entity/modules/templates/authinfo.ts",
|
|
8041
|
-
"../src/entity/modules/templates/authmethod.ts",
|
|
8042
8035
|
"../src/entity/modules/templates/templatechannel.ts"
|
|
8043
8036
|
],
|
|
8044
8037
|
"../src/entity/modules/templates/endpointtemplatechannel.ts": [
|
|
@@ -8092,7 +8085,7 @@
|
|
|
8092
8085
|
],
|
|
8093
8086
|
"../src/entity/modules/templates/templatechannel.ts": [
|
|
8094
8087
|
"../src/entity/auditedmodel.ts",
|
|
8095
|
-
"../src/entity/modules/templates/
|
|
8088
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
8096
8089
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
8097
8090
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
8098
8091
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
@@ -8424,6 +8417,12 @@
|
|
|
8424
8417
|
"../src/migrations/1681170372251-template-channel-fix.ts": [
|
|
8425
8418
|
"../node_modules/typeorm/index.d.ts"
|
|
8426
8419
|
],
|
|
8420
|
+
"../src/migrations/1681236978678-template-channel-update.ts": [
|
|
8421
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8422
|
+
],
|
|
8423
|
+
"../src/migrations/1681258240525-template-channel-update-2.ts": [
|
|
8424
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8425
|
+
],
|
|
8427
8426
|
"../src/migrations/index.ts": [
|
|
8428
8427
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8429
8428
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -8515,7 +8514,6 @@
|
|
|
8515
8514
|
"../node_modules/typeorm/index.d.ts",
|
|
8516
8515
|
"../src/entity/modules/templates/authinfo.ts",
|
|
8517
8516
|
"../src/entity/modules/templates/authmethod.ts",
|
|
8518
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
8519
8517
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
8520
8518
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
8521
8519
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -9086,7 +9084,6 @@
|
|
|
9086
9084
|
"../src/entity/modules/shopcart/pricedata.ts",
|
|
9087
9085
|
"../src/entity/modules/templates/authinfo.ts",
|
|
9088
9086
|
"../src/entity/modules/templates/authmethod.ts",
|
|
9089
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
9090
9087
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
9091
9088
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
9092
9089
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -9188,6 +9185,8 @@
|
|
|
9188
9185
|
"../src/migrations/1680581444059-template.ts",
|
|
9189
9186
|
"../src/migrations/1681167494090-template-channel-name.ts",
|
|
9190
9187
|
"../src/migrations/1681170372251-template-channel-fix.ts",
|
|
9188
|
+
"../src/migrations/1681236978678-template-channel-update.ts",
|
|
9189
|
+
"../src/migrations/1681258240525-template-channel-update-2.ts",
|
|
9191
9190
|
"../src/migrations/execute/index.ts",
|
|
9192
9191
|
"../src/migrations/index.ts",
|
|
9193
9192
|
"../src/repositories/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.23",
|
|
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.23",
|
|
25
|
+
"@reachu/utils": "1.0.23",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
package/src/entity/index.ts
CHANGED
|
@@ -81,7 +81,6 @@ import CategoryImages from './CategoryImages';
|
|
|
81
81
|
//templates
|
|
82
82
|
import AuthInfo from './modules/templates/AuthInfo';
|
|
83
83
|
import AuthMethod from './modules/templates/AuthMethod';
|
|
84
|
-
import AuthMethodTemplateChannel from './modules/templates/AuthMethodTemplateChannel';
|
|
85
84
|
import EndpointTemplateChannel from './modules/templates/EndpointTemplateChannel';
|
|
86
85
|
import TemplateChannel from './modules/templates/TemplateChannel';
|
|
87
86
|
import UserTemplateChannel from './modules/templates/UserTemplateChannel';
|
|
@@ -174,7 +173,6 @@ export {
|
|
|
174
173
|
CategoryImages,
|
|
175
174
|
AuthInfo,
|
|
176
175
|
AuthMethod,
|
|
177
|
-
AuthMethodTemplateChannel,
|
|
178
176
|
EndpointTemplateChannel,
|
|
179
177
|
TemplateChannel,
|
|
180
178
|
UserTemplateChannel,
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Entity,
|
|
3
|
-
PrimaryGeneratedColumn,
|
|
4
|
-
Column,
|
|
5
|
-
DeleteDateColumn,
|
|
6
|
-
ManyToOne,
|
|
7
|
-
JoinColumn,
|
|
8
|
-
OneToOne,
|
|
9
|
-
} from 'typeorm';
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn, OneToMany } from 'typeorm';
|
|
10
2
|
import AuditedModel from '../../AuditedModel';
|
|
11
|
-
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
12
3
|
import UserTemplateChannel from './UserTemplateChannel';
|
|
13
4
|
|
|
14
5
|
@Entity()
|
|
@@ -34,15 +25,12 @@ export default class AuthInfo extends AuditedModel {
|
|
|
34
25
|
@Column('varchar', { nullable: true })
|
|
35
26
|
privateKey: string;
|
|
36
27
|
|
|
37
|
-
@
|
|
38
|
-
() =>
|
|
39
|
-
(
|
|
40
|
-
{
|
|
28
|
+
@OneToMany(
|
|
29
|
+
() => UserTemplateChannel,
|
|
30
|
+
(userTemplateChannel: UserTemplateChannel) => userTemplateChannel.authInfo,
|
|
31
|
+
{
|
|
32
|
+
cascade: true,
|
|
33
|
+
},
|
|
41
34
|
)
|
|
42
|
-
|
|
43
|
-
authMethodTemplateChannel: AuthMethodTemplateChannel;
|
|
44
|
-
|
|
45
|
-
@OneToOne(() => UserTemplateChannel, { eager: true })
|
|
46
|
-
@JoinColumn()
|
|
47
|
-
userTemplateChannel: UserTemplateChannel;
|
|
35
|
+
userTemplateChannel: UserTemplateChannel[];
|
|
48
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn, OneToMany } from 'typeorm';
|
|
2
2
|
import AuditedModel from '../../AuditedModel';
|
|
3
|
-
import
|
|
3
|
+
import TemplateChannel from './TemplateChannel';
|
|
4
4
|
|
|
5
5
|
@Entity()
|
|
6
6
|
export default class AuthMethod extends AuditedModel {
|
|
@@ -14,11 +14,11 @@ export default class AuthMethod extends AuditedModel {
|
|
|
14
14
|
name: string;
|
|
15
15
|
|
|
16
16
|
@OneToMany(
|
|
17
|
-
() =>
|
|
18
|
-
(
|
|
17
|
+
() => TemplateChannel,
|
|
18
|
+
(templateChannel: TemplateChannel) => templateChannel.authMethod,
|
|
19
19
|
{
|
|
20
20
|
cascade: true,
|
|
21
21
|
},
|
|
22
22
|
)
|
|
23
|
-
|
|
23
|
+
templateChannel: TemplateChannel[];
|
|
24
24
|
}
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
Column,
|
|
9
9
|
} from 'typeorm';
|
|
10
10
|
import AuditedModel from '../../AuditedModel';
|
|
11
|
-
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
12
11
|
import UserTemplateChannel from './UserTemplateChannel';
|
|
13
12
|
import ReachuSchemeConfigProduct from './schemeProduct/ReachuSchemeConfigProduct';
|
|
14
13
|
import TemplateChannelSchemeConfigProduct from './schemeProduct/TemplateChannelSchemeConfigProduct';
|
|
@@ -19,6 +18,7 @@ import TemplateChannelSchemeConfigVariantMapped from './schemeVariant/TemplateCh
|
|
|
19
18
|
import ReachuSchemeConfigOrder from './schemeOrder/ReachuSchemeConfigOrder';
|
|
20
19
|
import TemplateChannelSchemeConfigOrder from './schemeOrder/TemplateChannelSchemeConfigOrder';
|
|
21
20
|
import TemplateChannelSchemeConfigOrderMapped from './schemeOrder/TemplateChannelSchemeConfigOrderMapped';
|
|
21
|
+
import AuthMethod from './AuthMethod';
|
|
22
22
|
|
|
23
23
|
@Entity()
|
|
24
24
|
export default class TemplateChannel extends AuditedModel {
|
|
@@ -31,17 +31,12 @@ export default class TemplateChannel extends AuditedModel {
|
|
|
31
31
|
@Column('varchar', { nullable: false })
|
|
32
32
|
name: string;
|
|
33
33
|
|
|
34
|
-
@ManyToOne(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
eager: true,
|
|
40
|
-
onDelete: 'CASCADE',
|
|
41
|
-
},
|
|
42
|
-
)
|
|
34
|
+
@ManyToOne(() => AuthMethod, (authMethod: AuthMethod) => authMethod.templateChannel, {
|
|
35
|
+
eager: true,
|
|
36
|
+
onDelete: 'CASCADE',
|
|
37
|
+
})
|
|
43
38
|
@JoinColumn()
|
|
44
|
-
|
|
39
|
+
authMethod: AuthMethod;
|
|
45
40
|
|
|
46
41
|
@OneToMany(
|
|
47
42
|
() => UserTemplateChannel,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class templateChannelUpdate1681236978678 implements MigrationInterface {
|
|
4
|
+
name = 'templateChannelUpdate1681236978678'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_326d68a0e78903191bed82d0bff\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_857c2457632fd40c3b44fcff4cc\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` CHANGE \`auth_method_template_channel_id\` \`auth_method_id\` int NULL`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`auth_method_template_channel_id\``);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_873ffef43ea9243a7165235e702\` FOREIGN KEY (\`auth_method_id\`) REFERENCES \`auth_method\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_873ffef43ea9243a7165235e702\``);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`auth_method_template_channel_id\` int NULL`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` CHANGE \`auth_method_id\` \`auth_method_template_channel_id\` int NULL`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_857c2457632fd40c3b44fcff4cc\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_326d68a0e78903191bed82d0bff\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class templateChannelUpdate21681258240525 implements MigrationInterface {
|
|
4
|
+
name = 'templateChannelUpdate21681258240525'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_683d04174f79d63872cd9abbfd2\``);
|
|
8
|
+
await queryRunner.query(`DROP INDEX \`REL_683d04174f79d63872cd9abbfd\` ON \`auth_info\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`user_template_channel_id\``);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`user_template_channel_id\` int NULL`);
|
|
14
|
+
await queryRunner.query(`CREATE UNIQUE INDEX \`REL_683d04174f79d63872cd9abbfd\` ON \`auth_info\` (\`user_template_channel_id\`)`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_683d04174f79d63872cd9abbfd2\` FOREIGN KEY (\`user_template_channel_id\`) REFERENCES \`user_template_channel\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -73,7 +73,6 @@ import {
|
|
|
73
73
|
import {
|
|
74
74
|
AuthInfoRepository,
|
|
75
75
|
AuthMethodRepository,
|
|
76
|
-
AuthMethodTemplateChannelRepository,
|
|
77
76
|
EndpointTemplateChannelRepository,
|
|
78
77
|
ReachuSchemeConfigOrderRepository,
|
|
79
78
|
ReachuSchemeConfigProductRepository,
|
|
@@ -264,7 +263,6 @@ export {
|
|
|
264
263
|
export {
|
|
265
264
|
AuthInfoRepository,
|
|
266
265
|
AuthMethodRepository,
|
|
267
|
-
AuthMethodTemplateChannelRepository,
|
|
268
266
|
EndpointTemplateChannelRepository,
|
|
269
267
|
ReachuSchemeConfigOrderRepository,
|
|
270
268
|
ReachuSchemeConfigProductRepository,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EntityRepository, Repository } from 'typeorm';
|
|
2
2
|
import AuthInfo from '../../entity/modules//templates/AuthInfo';
|
|
3
3
|
import AuthMethod from '../../entity/modules/templates/AuthMethod';
|
|
4
|
-
import AuthMethodTemplateChannel from '../../entity/modules/templates/AuthMethodTemplateChannel';
|
|
5
4
|
import EndpointTemplateChannel from '../../entity/modules/templates/EndpointTemplateChannel';
|
|
6
5
|
import TemplateChannel from '../../entity/modules/templates/TemplateChannel';
|
|
7
6
|
import UserTemplateChannel from '../../entity/modules/templates/UserTemplateChannel';
|
|
@@ -24,9 +23,6 @@ export class AuthInfoRepository extends Repository<AuthInfo> {}
|
|
|
24
23
|
@EntityRepository(AuthMethod)
|
|
25
24
|
export class AuthMethodRepository extends Repository<AuthMethod> {}
|
|
26
25
|
|
|
27
|
-
@EntityRepository(AuthMethodTemplateChannel)
|
|
28
|
-
export class AuthMethodTemplateChannelRepository extends Repository<AuthMethodTemplateChannel> {}
|
|
29
|
-
|
|
30
26
|
@EntityRepository(EndpointTemplateChannel)
|
|
31
27
|
export class EndpointTemplateChannelRepository extends Repository<EndpointTemplateChannel> {}
|
|
32
28
|
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import AuditedModel from '../../AuditedModel';
|
|
2
|
-
import AuthInfo from './AuthInfo';
|
|
3
|
-
import AuthMethod from './AuthMethod';
|
|
4
|
-
import TemplateChannel from './TemplateChannel';
|
|
5
|
-
export default class AuthMethodTemplateChannel extends AuditedModel {
|
|
6
|
-
id: number;
|
|
7
|
-
deletedAt: Date;
|
|
8
|
-
authInfo: AuthInfo[];
|
|
9
|
-
authMethod: AuthMethod;
|
|
10
|
-
templateChannel: TemplateChannel[];
|
|
11
|
-
}
|
|
@@ -1,54 +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 AuthInfo_1 = __importDefault(require("./AuthInfo"));
|
|
18
|
-
const AuthMethod_1 = __importDefault(require("./AuthMethod"));
|
|
19
|
-
const TemplateChannel_1 = __importDefault(require("./TemplateChannel"));
|
|
20
|
-
let AuthMethodTemplateChannel = class AuthMethodTemplateChannel extends AuditedModel_1.default {
|
|
21
|
-
};
|
|
22
|
-
__decorate([
|
|
23
|
-
typeorm_1.PrimaryGeneratedColumn(),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], AuthMethodTemplateChannel.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
typeorm_1.DeleteDateColumn(),
|
|
28
|
-
__metadata("design:type", Date)
|
|
29
|
-
], AuthMethodTemplateChannel.prototype, "deletedAt", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
typeorm_1.OneToMany(() => AuthInfo_1.default, (authInfo) => authInfo.authMethodTemplateChannel, {
|
|
32
|
-
cascade: true,
|
|
33
|
-
}),
|
|
34
|
-
__metadata("design:type", Array)
|
|
35
|
-
], AuthMethodTemplateChannel.prototype, "authInfo", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
typeorm_1.ManyToOne(() => AuthMethod_1.default, (authMethod) => authMethod.authMethodTemplateChannel, {
|
|
38
|
-
eager: true,
|
|
39
|
-
onDelete: 'CASCADE',
|
|
40
|
-
}),
|
|
41
|
-
typeorm_1.JoinColumn(),
|
|
42
|
-
__metadata("design:type", AuthMethod_1.default)
|
|
43
|
-
], AuthMethodTemplateChannel.prototype, "authMethod", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
typeorm_1.OneToMany(() => TemplateChannel_1.default, (templateChannel) => templateChannel.authMethodTemplateChannel, {
|
|
46
|
-
cascade: true,
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:type", Array)
|
|
49
|
-
], AuthMethodTemplateChannel.prototype, "templateChannel", void 0);
|
|
50
|
-
AuthMethodTemplateChannel = __decorate([
|
|
51
|
-
typeorm_1.Entity()
|
|
52
|
-
], AuthMethodTemplateChannel);
|
|
53
|
-
exports.default = AuthMethodTemplateChannel;
|
|
54
|
-
//# sourceMappingURL=AuthMethodTemplateChannel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMethodTemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthMethodTemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,0DAAkC;AAClC,8DAAsC;AACtC,wEAAgD;AAGhD,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,sBAAY;CA2BlE,CAAA;AAzBC;IADC,gCAAsB,EAAE;;qDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;4DAAC;AAKhB;IAHC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,yBAAyB,EAAE;QACrF,OAAO,EAAE,IAAI;KACd,CAAC;;2DACmB;AAOrB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,oBAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,yBAAyB,EAAE;QAC7F,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACD,oBAAU;6DAAC;AASvB;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,yBAAe,EACrB,CAAC,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,yBAAyB,EAC/E;QACE,OAAO,EAAE,IAAI;KACd,CACF;;kEACkC;AA1BhB,yBAAyB;IAD7C,gBAAM,EAAE;GACY,yBAAyB,CA2B7C;kBA3BoB,yBAAyB"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Entity,
|
|
3
|
-
PrimaryGeneratedColumn,
|
|
4
|
-
Column,
|
|
5
|
-
DeleteDateColumn,
|
|
6
|
-
OneToMany,
|
|
7
|
-
ManyToOne,
|
|
8
|
-
JoinColumn,
|
|
9
|
-
} from 'typeorm';
|
|
10
|
-
import AuditedModel from '../../AuditedModel';
|
|
11
|
-
import AuthInfo from './AuthInfo';
|
|
12
|
-
import AuthMethod from './AuthMethod';
|
|
13
|
-
import TemplateChannel from './TemplateChannel';
|
|
14
|
-
|
|
15
|
-
@Entity()
|
|
16
|
-
export default class AuthMethodTemplateChannel extends AuditedModel {
|
|
17
|
-
@PrimaryGeneratedColumn()
|
|
18
|
-
id: number;
|
|
19
|
-
|
|
20
|
-
@DeleteDateColumn()
|
|
21
|
-
deletedAt: Date;
|
|
22
|
-
|
|
23
|
-
@OneToMany(() => AuthInfo, (authInfo: AuthInfo) => authInfo.authMethodTemplateChannel, {
|
|
24
|
-
cascade: true,
|
|
25
|
-
})
|
|
26
|
-
authInfo: AuthInfo[];
|
|
27
|
-
|
|
28
|
-
@ManyToOne(() => AuthMethod, (authMethod: AuthMethod) => authMethod.authMethodTemplateChannel, {
|
|
29
|
-
eager: true,
|
|
30
|
-
onDelete: 'CASCADE',
|
|
31
|
-
})
|
|
32
|
-
@JoinColumn()
|
|
33
|
-
authMethod: AuthMethod;
|
|
34
|
-
|
|
35
|
-
@OneToMany(
|
|
36
|
-
() => TemplateChannel,
|
|
37
|
-
(templateChannel: TemplateChannel) => templateChannel.authMethodTemplateChannel,
|
|
38
|
-
{
|
|
39
|
-
cascade: true,
|
|
40
|
-
},
|
|
41
|
-
)
|
|
42
|
-
templateChannel: TemplateChannel[];
|
|
43
|
-
}
|