@reachu/database 1.0.20 → 1.0.22
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 +0 -2
- package/dist/entity/modules/templates/AuthInfo.js +0 -6
- 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/EndpointTemplateChannel.d.ts +3 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.js +12 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.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/1681170372251-template-channel-fix.d.ts +6 -0
- package/dist/migrations/1681170372251-template-channel-fix.js +39 -0
- package/dist/migrations/1681170372251-template-channel-fix.js.map +1 -0
- 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/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 +46 -47
- package/package.json +3 -3
- package/src/entity/index.ts +0 -2
- package/src/entity/modules/templates/AuthInfo.ts +0 -9
- package/src/entity/modules/templates/AuthMethod.ts +4 -4
- package/src/entity/modules/templates/EndpointTemplateChannel.ts +9 -0
- package/src/entity/modules/templates/TemplateChannel.ts +6 -11
- package/src/migrations/1681170372251-template-channel-fix.ts +24 -0
- package/src/migrations/1681236978678-template-channel-update.ts +22 -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 -14
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +0 -66
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js.map +0 -1
- package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +0 -52
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,C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;AAzFxC,4HAAoG;AA0FlG,oCA1FK,mCAAyB,CA0FL;AAzF3B,8IAAsH;AA0FpH,6CA1FK,4CAAkC,CA0FL;AAzFpC,0JAAkI;AA0FhI,mDA1FK,kDAAwC,CA0FL;AAxF1C,4HAAoG;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
|
-
authMethodTemplateChannel: AuthMethodTemplateChannel;
|
|
13
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
|
};
|
|
@@ -46,11 +45,6 @@ __decorate([
|
|
|
46
45
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
47
46
|
__metadata("design:type", String)
|
|
48
47
|
], AuthInfo.prototype, "privateKey", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
typeorm_1.ManyToOne(() => AuthMethodTemplateChannel_1.default, (authMethodTemplateChannel) => authMethodTemplateChannel.authInfo, { eager: true, onDelete: 'CASCADE' }),
|
|
51
|
-
typeorm_1.JoinColumn(),
|
|
52
|
-
__metadata("design:type", AuthMethodTemplateChannel_1.default)
|
|
53
|
-
], AuthInfo.prototype, "authMethodTemplateChannel", void 0);
|
|
54
48
|
__decorate([
|
|
55
49
|
typeorm_1.OneToOne(() => UserTemplateChannel_1.default, { eager: true }),
|
|
56
50
|
typeorm_1.JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,gFAAwD;AAGxD,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CAyBjD,CAAA;AAvBC;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;AAInB;IAFC,kBAAQ,CAAC,GAAG,EAAE,CAAC,6BAAmB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACpD,oBAAU,EAAE;8BACQ,6BAAmB;qDAAC;AAxBtB,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CAyB5B;kBAzBoB,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"}
|
|
@@ -25,6 +25,18 @@ __decorate([
|
|
|
25
25
|
typeorm_1.DeleteDateColumn(),
|
|
26
26
|
__metadata("design:type", Date)
|
|
27
27
|
], EndpointTemplateChannel.prototype, "deletedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], EndpointTemplateChannel.prototype, "url", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column({ type: 'boolean', default: false }),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], EndpointTemplateChannel.prototype, "connection", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], EndpointTemplateChannel.prototype, "response", void 0);
|
|
28
40
|
__decorate([
|
|
29
41
|
typeorm_1.ManyToOne(() => UserTemplateChannel_1.default, (userTemplateChannel) => userTemplateChannel.endpointTemplateChannel, { eager: true, onDelete: 'CASCADE' }),
|
|
30
42
|
typeorm_1.JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointTemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/EndpointTemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,gFAAwD;AAGxD,IAAqB,uBAAuB,GAA5C,MAAqB,uBAAwB,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"EndpointTemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/EndpointTemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,gFAAwD;AAGxD,IAAqB,uBAAuB,GAA5C,MAAqB,uBAAwB,SAAQ,sBAAY;CAuBhE,CAAA;AArBC;IADC,gCAAsB,EAAE;;mDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;0DAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDAC3B;AAGZ;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2DACxB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACtC;AAQjB;IANC,mBAAS,CACR,GAAG,EAAE,CAAC,6BAAmB,EACzB,CAAC,mBAAwC,EAAE,EAAE,CAAC,mBAAmB,CAAC,uBAAuB,EACzF,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CACrC;IACA,oBAAU,EAAE;8BACQ,6BAAmB;oEAAC;AAtBtB,uBAAuB;IAD3C,gBAAM,EAAE;GACY,uBAAuB,CAuB3C;kBAvBoB,uBAAuB"}
|
|
@@ -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,KAAK,EAAE,CAAC;;6CAC1B;AAOb;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,oBAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,eAAe,EAAE;QACnF,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACD,oBAAU;mDAAC;AAOvB;IALC,mBAAS,CACR,GAAG,EAAE,CAAC,6BAAmB,EACzB,CAAC,mBAAwC,EAAE,EAAE,CAAC,mBAAmB,CAAC,eAAe,EACjF,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB;;4DAC0C;AAY3C;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CACvD,yBAAyB,CAAC,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CAAC,iCAAuB,EAC7B,CAAC,uBAAgD,EAAE,EAAE,CAAC,uBAAuB,CAAC,eAAe,EAC7F;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACY,iCAAuB;gEAAC;AAYjD;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,0CAAgC,EACtC,CAAC,gCAAkE,EAAE,EAAE,CACrE,gCAAgC,CAAC,eAAe,EAClD;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACqB,0CAAgC;yEAAC;AAYnE;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,gDAAsC,EAC5C,CAAC,sCAA8E,EAAE,EAAE,CACjF,sCAAsC,CAAC,eAAe,EACxD;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BAC2B,gDAAsC;+EAAC;AAjI5D,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAkInC;kBAlIoB,eAAe"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.templateChannelFix1681170372251 = void 0;
|
|
13
|
+
class templateChannelFix1681170372251 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'templateChannelFix1681170372251';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP COLUMN \`url\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP COLUMN \`connection\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP COLUMN \`response\``);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD \`url\` varchar(255) NOT NULL`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD \`connection\` tinyint NOT NULL DEFAULT 0`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD \`response\` varchar(21844) NULL`);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
down(queryRunner) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP COLUMN \`response\``);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP COLUMN \`connection\``);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP COLUMN \`url\``);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD \`response\` varchar(21844) NULL`);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD \`connection\` tinyint NOT NULL DEFAULT '0'`);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD \`url\` varchar(255) NOT NULL`);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.templateChannelFix1681170372251 = templateChannelFix1681170372251;
|
|
39
|
+
//# sourceMappingURL=1681170372251-template-channel-fix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1681170372251-template-channel-fix.js","sourceRoot":"","sources":["../../src/migrations/1681170372251-template-channel-fix.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,+BAA+B;IAA5C;QACI,SAAI,GAAG,iCAAiC,CAAA;IAoB5C,CAAC;IAlBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAC5F,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAC;YACnG,MAAM,WAAW,CAAC,KAAK,CAAC,uEAAuE,CAAC,CAAC;YACjG,MAAM,WAAW,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAC;YACvG,MAAM,WAAW,CAAC,KAAK,CAAC,yFAAyF,CAAC,CAAC;YACnH,MAAM,WAAW,CAAC,KAAK,CAAC,gFAAgF,CAAC,CAAC;QAC9G,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;YAChG,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,8FAA8F,CAAC,CAAC;YACxH,MAAM,WAAW,CAAC,KAAK,CAAC,gFAAgF,CAAC,CAAC;QAC9G,CAAC;KAAA;CAEJ;AArBD,0EAqBC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.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"}
|
|
@@ -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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9E,4EAAgC;AAG7C,IAAa,2BAA2B,GAAxC,MAAa,2BAA4B,SAAQ,oBAA6B;CAAG,CAAA;AAApE,2BAA2B;IADvC,0BAAgB,CAAC,2BAAiB,CAAC;GACvB,2BAA2B,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,SAA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hD,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;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,19 +2621,9 @@
|
|
|
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
|
-
"version": "
|
|
2631
|
-
"signature": "
|
|
2632
|
-
"affectsGlobalScope": false
|
|
2633
|
-
},
|
|
2634
|
-
"../src/entity/modules/templates/usertemplatechannel.ts": {
|
|
2635
|
-
"version": "d30027cc5078aaf3f688d641e3490740fe811f9754839bb81e10326fb28ba3c5",
|
|
2636
|
-
"signature": "3057428477650166b0d907b96c0e758f357ec9dfe6c1be82fb8ce27976ee51b7",
|
|
2625
|
+
"version": "977b019efe1c8a4277ca66e1821fd8930f464e82902425cc64286e84804d09c1",
|
|
2626
|
+
"signature": "6d19c60e5a1ee07815d067bce52ff06a79b32c9e7a5ad0657c7cbdbd5962c3b8",
|
|
2637
2627
|
"affectsGlobalScope": false
|
|
2638
2628
|
},
|
|
2639
2629
|
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": {
|
|
@@ -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": "e0599d8f65d2c11072be3258f0cd8d98d9cad9f6c3cdccdaf2d84002e17e6a17",
|
|
2691
|
+
"signature": "fb10a85d8e9494c637733baaac00a59394e0e74e97bb8d0846ae9952cc7a9dbb",
|
|
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": {
|
|
@@ -3121,6 +3116,16 @@
|
|
|
3121
3116
|
"signature": "78e72c194424768e760aa11b0776fc9b80bf4bf9a9fbbfb64609b9f8cadc21a4",
|
|
3122
3117
|
"affectsGlobalScope": false
|
|
3123
3118
|
},
|
|
3119
|
+
"../src/migrations/1681170372251-template-channel-fix.ts": {
|
|
3120
|
+
"version": "51251e074e70a7f8dd0c507e7ad84d6cc7794e81d448db6dc202ead28fc2836d",
|
|
3121
|
+
"signature": "dcddc09e33bd4710187d83f37c7053a0f3e8a61455281dd336ef4cd987f0f560",
|
|
3122
|
+
"affectsGlobalScope": false
|
|
3123
|
+
},
|
|
3124
|
+
"../src/migrations/1681236978678-template-channel-update.ts": {
|
|
3125
|
+
"version": "d19a436a050e0b814d27349e75190eb14db701791970513c45a866c8eeb96f21",
|
|
3126
|
+
"signature": "752a11918507b981b24a4cfb6587bc507b5591037fee8e54e9db9c6c67bb4c75",
|
|
3127
|
+
"affectsGlobalScope": false
|
|
3128
|
+
},
|
|
3124
3129
|
"../src/migrations/execute/index.ts": {
|
|
3125
3130
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3126
3131
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5267,7 +5272,6 @@
|
|
|
5267
5272
|
"../src/entity/modules/shopcart/pricedata.ts",
|
|
5268
5273
|
"../src/entity/modules/templates/authinfo.ts",
|
|
5269
5274
|
"../src/entity/modules/templates/authmethod.ts",
|
|
5270
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5271
5275
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
5272
5276
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5273
5277
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -5374,19 +5378,11 @@
|
|
|
5374
5378
|
"../src/entity/modules/templates/authinfo.ts": [
|
|
5375
5379
|
"../node_modules/typeorm/index.d.ts",
|
|
5376
5380
|
"../src/entity/auditedmodel.ts",
|
|
5377
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5378
5381
|
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
5379
5382
|
],
|
|
5380
5383
|
"../src/entity/modules/templates/authmethod.ts": [
|
|
5381
5384
|
"../node_modules/typeorm/index.d.ts",
|
|
5382
5385
|
"../src/entity/auditedmodel.ts",
|
|
5383
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts"
|
|
5384
|
-
],
|
|
5385
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts": [
|
|
5386
|
-
"../node_modules/typeorm/index.d.ts",
|
|
5387
|
-
"../src/entity/auditedmodel.ts",
|
|
5388
|
-
"../src/entity/modules/templates/authinfo.ts",
|
|
5389
|
-
"../src/entity/modules/templates/authmethod.ts",
|
|
5390
5386
|
"../src/entity/modules/templates/templatechannel.ts"
|
|
5391
5387
|
],
|
|
5392
5388
|
"../src/entity/modules/templates/endpointtemplatechannel.ts": [
|
|
@@ -5451,7 +5447,7 @@
|
|
|
5451
5447
|
"../src/entity/modules/templates/templatechannel.ts": [
|
|
5452
5448
|
"../node_modules/typeorm/index.d.ts",
|
|
5453
5449
|
"../src/entity/auditedmodel.ts",
|
|
5454
|
-
"../src/entity/modules/templates/
|
|
5450
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
5455
5451
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5456
5452
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
5457
5453
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
@@ -5841,6 +5837,12 @@
|
|
|
5841
5837
|
"../src/migrations/1681167494090-template-channel-name.ts": [
|
|
5842
5838
|
"../node_modules/typeorm/index.d.ts"
|
|
5843
5839
|
],
|
|
5840
|
+
"../src/migrations/1681170372251-template-channel-fix.ts": [
|
|
5841
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5842
|
+
],
|
|
5843
|
+
"../src/migrations/1681236978678-template-channel-update.ts": [
|
|
5844
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5845
|
+
],
|
|
5844
5846
|
"../src/migrations/execute/index.ts": [
|
|
5845
5847
|
"../src/config/connect.ts"
|
|
5846
5848
|
],
|
|
@@ -5935,7 +5937,6 @@
|
|
|
5935
5937
|
"../node_modules/typeorm/index.d.ts",
|
|
5936
5938
|
"../src/entity/modules/templates/authinfo.ts",
|
|
5937
5939
|
"../src/entity/modules/templates/authmethod.ts",
|
|
5938
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5939
5940
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
5940
5941
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5941
5942
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -7927,7 +7928,6 @@
|
|
|
7927
7928
|
"../src/entity/modules/shopcart/pricedata.ts",
|
|
7928
7929
|
"../src/entity/modules/templates/authinfo.ts",
|
|
7929
7930
|
"../src/entity/modules/templates/authmethod.ts",
|
|
7930
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
7931
7931
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
7932
7932
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
7933
7933
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -8020,17 +8020,10 @@
|
|
|
8020
8020
|
],
|
|
8021
8021
|
"../src/entity/modules/templates/authinfo.ts": [
|
|
8022
8022
|
"../src/entity/auditedmodel.ts",
|
|
8023
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
8024
8023
|
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
8025
8024
|
],
|
|
8026
8025
|
"../src/entity/modules/templates/authmethod.ts": [
|
|
8027
8026
|
"../src/entity/auditedmodel.ts",
|
|
8028
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts"
|
|
8029
|
-
],
|
|
8030
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts": [
|
|
8031
|
-
"../src/entity/auditedmodel.ts",
|
|
8032
|
-
"../src/entity/modules/templates/authinfo.ts",
|
|
8033
|
-
"../src/entity/modules/templates/authmethod.ts",
|
|
8034
8027
|
"../src/entity/modules/templates/templatechannel.ts"
|
|
8035
8028
|
],
|
|
8036
8029
|
"../src/entity/modules/templates/endpointtemplatechannel.ts": [
|
|
@@ -8084,7 +8077,7 @@
|
|
|
8084
8077
|
],
|
|
8085
8078
|
"../src/entity/modules/templates/templatechannel.ts": [
|
|
8086
8079
|
"../src/entity/auditedmodel.ts",
|
|
8087
|
-
"../src/entity/modules/templates/
|
|
8080
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
8088
8081
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
8089
8082
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
8090
8083
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
@@ -8413,6 +8406,12 @@
|
|
|
8413
8406
|
"../src/migrations/1681167494090-template-channel-name.ts": [
|
|
8414
8407
|
"../node_modules/typeorm/index.d.ts"
|
|
8415
8408
|
],
|
|
8409
|
+
"../src/migrations/1681170372251-template-channel-fix.ts": [
|
|
8410
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8411
|
+
],
|
|
8412
|
+
"../src/migrations/1681236978678-template-channel-update.ts": [
|
|
8413
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8414
|
+
],
|
|
8416
8415
|
"../src/migrations/index.ts": [
|
|
8417
8416
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8418
8417
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -8504,7 +8503,6 @@
|
|
|
8504
8503
|
"../node_modules/typeorm/index.d.ts",
|
|
8505
8504
|
"../src/entity/modules/templates/authinfo.ts",
|
|
8506
8505
|
"../src/entity/modules/templates/authmethod.ts",
|
|
8507
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
8508
8506
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
8509
8507
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
8510
8508
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -9075,7 +9073,6 @@
|
|
|
9075
9073
|
"../src/entity/modules/shopcart/pricedata.ts",
|
|
9076
9074
|
"../src/entity/modules/templates/authinfo.ts",
|
|
9077
9075
|
"../src/entity/modules/templates/authmethod.ts",
|
|
9078
|
-
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
9079
9076
|
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
9080
9077
|
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
9081
9078
|
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
@@ -9176,6 +9173,8 @@
|
|
|
9176
9173
|
"../src/migrations/1679329902116-promote_to_production_2023_03_20.ts",
|
|
9177
9174
|
"../src/migrations/1680581444059-template.ts",
|
|
9178
9175
|
"../src/migrations/1681167494090-template-channel-name.ts",
|
|
9176
|
+
"../src/migrations/1681170372251-template-channel-fix.ts",
|
|
9177
|
+
"../src/migrations/1681236978678-template-channel-update.ts",
|
|
9179
9178
|
"../src/migrations/execute/index.ts",
|
|
9180
9179
|
"../src/migrations/index.ts",
|
|
9181
9180
|
"../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.22",
|
|
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.22",
|
|
25
|
+
"@reachu/utils": "1.0.22",
|
|
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,
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
OneToOne,
|
|
9
9
|
} from 'typeorm';
|
|
10
10
|
import AuditedModel from '../../AuditedModel';
|
|
11
|
-
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
12
11
|
import UserTemplateChannel from './UserTemplateChannel';
|
|
13
12
|
|
|
14
13
|
@Entity()
|
|
@@ -34,14 +33,6 @@ export default class AuthInfo extends AuditedModel {
|
|
|
34
33
|
@Column('varchar', { nullable: true })
|
|
35
34
|
privateKey: string;
|
|
36
35
|
|
|
37
|
-
@ManyToOne(
|
|
38
|
-
() => AuthMethodTemplateChannel,
|
|
39
|
-
(authMethodTemplateChannel: AuthMethodTemplateChannel) => authMethodTemplateChannel.authInfo,
|
|
40
|
-
{ eager: true, onDelete: 'CASCADE' },
|
|
41
|
-
)
|
|
42
|
-
@JoinColumn()
|
|
43
|
-
authMethodTemplateChannel: AuthMethodTemplateChannel;
|
|
44
|
-
|
|
45
36
|
@OneToOne(() => UserTemplateChannel, { eager: true })
|
|
46
37
|
@JoinColumn()
|
|
47
38
|
userTemplateChannel: UserTemplateChannel;
|
|
@@ -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
|
}
|
|
@@ -17,6 +17,15 @@ export default class EndpointTemplateChannel extends AuditedModel {
|
|
|
17
17
|
@DeleteDateColumn()
|
|
18
18
|
deletedAt: Date;
|
|
19
19
|
|
|
20
|
+
@Column('varchar', { nullable: false })
|
|
21
|
+
url: string;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'boolean', default: false })
|
|
24
|
+
connection: boolean;
|
|
25
|
+
|
|
26
|
+
@Column('varchar', { length: '21844', nullable: true })
|
|
27
|
+
response: string;
|
|
28
|
+
|
|
20
29
|
@ManyToOne(
|
|
21
30
|
() => UserTemplateChannel,
|
|
22
31
|
(userTemplateChannel: UserTemplateChannel) => userTemplateChannel.endpointTemplateChannel,
|
|
@@ -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,24 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class templateChannelFix1681170372251 implements MigrationInterface {
|
|
4
|
+
name = 'templateChannelFix1681170372251'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP COLUMN \`url\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP COLUMN \`connection\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP COLUMN \`response\``);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD \`url\` varchar(255) NOT NULL`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD \`connection\` tinyint NOT NULL DEFAULT 0`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD \`response\` varchar(21844) NULL`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP COLUMN \`response\``);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP COLUMN \`connection\``);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP COLUMN \`url\``);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD \`response\` varchar(21844) NULL`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD \`connection\` tinyint NOT NULL DEFAULT '0'`);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD \`url\` varchar(255) NOT NULL`);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,14 +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
|
-
url: string;
|
|
9
|
-
connection: boolean;
|
|
10
|
-
response: string;
|
|
11
|
-
authInfo: AuthInfo[];
|
|
12
|
-
authMethod: AuthMethod;
|
|
13
|
-
templateChannel: TemplateChannel[];
|
|
14
|
-
}
|
|
@@ -1,66 +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.Column('varchar', { nullable: false }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], AuthMethodTemplateChannel.prototype, "url", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
typeorm_1.Column({ type: 'boolean', default: false }),
|
|
36
|
-
__metadata("design:type", Boolean)
|
|
37
|
-
], AuthMethodTemplateChannel.prototype, "connection", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], AuthMethodTemplateChannel.prototype, "response", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
typeorm_1.OneToMany(() => AuthInfo_1.default, (authInfo) => authInfo.authMethodTemplateChannel, {
|
|
44
|
-
cascade: true,
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:type", Array)
|
|
47
|
-
], AuthMethodTemplateChannel.prototype, "authInfo", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
typeorm_1.ManyToOne(() => AuthMethod_1.default, (authMethod) => authMethod.authMethodTemplateChannel, {
|
|
50
|
-
eager: true,
|
|
51
|
-
onDelete: 'CASCADE',
|
|
52
|
-
}),
|
|
53
|
-
typeorm_1.JoinColumn(),
|
|
54
|
-
__metadata("design:type", AuthMethod_1.default)
|
|
55
|
-
], AuthMethodTemplateChannel.prototype, "authMethod", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
typeorm_1.OneToMany(() => TemplateChannel_1.default, (templateChannel) => templateChannel.authMethodTemplateChannel, {
|
|
58
|
-
cascade: true,
|
|
59
|
-
}),
|
|
60
|
-
__metadata("design:type", Array)
|
|
61
|
-
], AuthMethodTemplateChannel.prototype, "templateChannel", void 0);
|
|
62
|
-
AuthMethodTemplateChannel = __decorate([
|
|
63
|
-
typeorm_1.Entity()
|
|
64
|
-
], AuthMethodTemplateChannel);
|
|
65
|
-
exports.default = AuthMethodTemplateChannel;
|
|
66
|
-
//# 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,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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
|
-
@Column('varchar', { nullable: false })
|
|
24
|
-
url: string;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'boolean', default: false })
|
|
27
|
-
connection: boolean;
|
|
28
|
-
|
|
29
|
-
@Column('varchar', { length: '21844', nullable: true })
|
|
30
|
-
response: string;
|
|
31
|
-
|
|
32
|
-
@OneToMany(() => AuthInfo, (authInfo: AuthInfo) => authInfo.authMethodTemplateChannel, {
|
|
33
|
-
cascade: true,
|
|
34
|
-
})
|
|
35
|
-
authInfo: AuthInfo[];
|
|
36
|
-
|
|
37
|
-
@ManyToOne(() => AuthMethod, (authMethod: AuthMethod) => authMethod.authMethodTemplateChannel, {
|
|
38
|
-
eager: true,
|
|
39
|
-
onDelete: 'CASCADE',
|
|
40
|
-
})
|
|
41
|
-
@JoinColumn()
|
|
42
|
-
authMethod: AuthMethod;
|
|
43
|
-
|
|
44
|
-
@OneToMany(
|
|
45
|
-
() => TemplateChannel,
|
|
46
|
-
(templateChannel: TemplateChannel) => templateChannel.authMethodTemplateChannel,
|
|
47
|
-
{
|
|
48
|
-
cascade: true,
|
|
49
|
-
},
|
|
50
|
-
)
|
|
51
|
-
templateChannel: TemplateChannel[];
|
|
52
|
-
}
|