@reachu/database 1.0.14 → 1.0.16
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/modules/templates/AuthInfo.d.ts +14 -0
- package/dist/entity/modules/templates/AuthInfo.js +63 -0
- package/dist/entity/modules/templates/AuthInfo.js.map +1 -0
- package/dist/entity/modules/templates/AuthMethod.d.ts +8 -0
- package/dist/entity/modules/templates/AuthMethod.js +42 -0
- package/dist/entity/modules/templates/AuthMethod.js.map +1 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.d.ts +14 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +66 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.d.ts +7 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.js +37 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/TemplateChannel.d.ts +27 -0
- package/dist/entity/modules/templates/TemplateChannel.js +126 -0
- package/dist/entity/modules/templates/TemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/UserTemplateChannel.d.ts +13 -0
- package/dist/entity/modules/templates/UserTemplateChannel.js +57 -0
- package/dist/entity/modules/templates/UserTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.d.ts +12 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js +56 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js.map +1 -0
- package/dist/migrations/1680581444059-template.d.ts +6 -0
- package/dist/migrations/1680581444059-template.js +111 -0
- package/dist/migrations/1680581444059-template.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -0
- package/dist/repositories/index.js +17 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/templates/index.d.ts +46 -0
- package/dist/repositories/templates/index.js +119 -0
- package/dist/repositories/templates/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +335 -4
- package/package.json +3 -3
- package/src/entity/modules/templates/AuthInfo.ts +48 -0
- package/src/entity/modules/templates/AuthMethod.ts +24 -0
- package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +52 -0
- package/src/entity/modules/templates/EndpointTemplateChannel.ts +27 -0
- package/src/entity/modules/templates/TemplateChannel.ts +155 -0
- package/src/entity/modules/templates/UserTemplateChannel.ts +51 -0
- package/src/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.ts +43 -0
- package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.ts +44 -0
- package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.ts +43 -0
- package/src/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.ts +43 -0
- package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.ts +40 -0
- package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.ts +40 -0
- package/src/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.ts +44 -0
- package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.ts +44 -0
- package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.ts +44 -0
- package/src/migrations/1680581444059-template.ts +96 -0
- package/src/repositories/index.ts +36 -0
- package/src/repositories/templates/index.ts +64 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import AuditedModel from '../../AuditedModel';
|
|
2
|
+
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
3
|
+
import UserTemplateChannel from './UserTemplateChannel';
|
|
4
|
+
export default class AuthInfo extends AuditedModel {
|
|
5
|
+
id: number;
|
|
6
|
+
deletedAt: Date;
|
|
7
|
+
token: string;
|
|
8
|
+
apiKey: string;
|
|
9
|
+
basic: string;
|
|
10
|
+
publicKey: string;
|
|
11
|
+
privateKey: string;
|
|
12
|
+
authMethodTemplateChannel: AuthMethodTemplateChannel;
|
|
13
|
+
userTemplateChannel: UserTemplateChannel;
|
|
14
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 AuthMethodTemplateChannel_1 = __importDefault(require("./AuthMethodTemplateChannel"));
|
|
18
|
+
const UserTemplateChannel_1 = __importDefault(require("./UserTemplateChannel"));
|
|
19
|
+
let AuthInfo = class AuthInfo extends AuditedModel_1.default {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], AuthInfo.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.DeleteDateColumn(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], AuthInfo.prototype, "deletedAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AuthInfo.prototype, "token", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AuthInfo.prototype, "apiKey", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AuthInfo.prototype, "basic", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AuthInfo.prototype, "publicKey", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], 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
|
+
__decorate([
|
|
55
|
+
typeorm_1.OneToOne(() => UserTemplateChannel_1.default, { eager: true }),
|
|
56
|
+
typeorm_1.JoinColumn(),
|
|
57
|
+
__metadata("design:type", UserTemplateChannel_1.default)
|
|
58
|
+
], AuthInfo.prototype, "userTemplateChannel", void 0);
|
|
59
|
+
AuthInfo = __decorate([
|
|
60
|
+
typeorm_1.Entity()
|
|
61
|
+
], AuthInfo);
|
|
62
|
+
exports.default = AuthInfo;
|
|
63
|
+
//# sourceMappingURL=AuthInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,4FAAoE;AACpE,gFAAwD;AAGxD,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CAiCjD,CAAA;AA/BC;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;AAQnB;IANC,mBAAS,CACR,GAAG,EAAE,CAAC,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,QAAQ,EAC5F,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CACrC;IACA,oBAAU,EAAE;8BACc,mCAAyB;2DAAC;AAIrD;IAFC,kBAAQ,CAAC,GAAG,EAAE,CAAC,6BAAmB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACpD,oBAAU,EAAE;8BACQ,6BAAmB;qDAAC;AAhCtB,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CAiC5B;kBAjCoB,QAAQ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AuditedModel from '../../AuditedModel';
|
|
2
|
+
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
3
|
+
export default class AuthMethod extends AuditedModel {
|
|
4
|
+
id: number;
|
|
5
|
+
deletedAt: Date;
|
|
6
|
+
name: string;
|
|
7
|
+
authMethodTemplateChannel: AuthMethodTemplateChannel[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 AuthMethodTemplateChannel_1 = __importDefault(require("./AuthMethodTemplateChannel"));
|
|
18
|
+
let AuthMethod = class AuthMethod extends AuditedModel_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], AuthMethod.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.DeleteDateColumn(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], AuthMethod.prototype, "deletedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], AuthMethod.prototype, "name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.OneToMany(() => AuthMethodTemplateChannel_1.default, (authMethodTemplateChannel) => authMethodTemplateChannel.authMethod, {
|
|
34
|
+
cascade: true,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], AuthMethod.prototype, "authMethodTemplateChannel", void 0);
|
|
38
|
+
AuthMethod = __decorate([
|
|
39
|
+
typeorm_1.Entity()
|
|
40
|
+
], AuthMethod);
|
|
41
|
+
exports.default = AuthMethod;
|
|
42
|
+
//# sourceMappingURL=AuthMethod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthMethod.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthMethod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA8C;AAC9C,4FAAoE;AAGpE,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,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,UAAU,EAC9F;QACE,OAAO,EAAE,IAAI;KACd,CACF;;6DACsD;AAjBpC,UAAU;IAD9B,gBAAM,EAAE;GACY,UAAU,CAkB9B;kBAlBoB,UAAU"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;CAoClE,CAAA;AAlCC;IADC,gCAAsB,EAAE;;qDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;4DAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sDAC3B;AAGZ;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6DACxB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACtC;AAKjB;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;AAnChB,yBAAyB;IAD7C,gBAAM,EAAE;GACY,yBAAyB,CAoC7C;kBApCoB,yBAAyB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 UserTemplateChannel_1 = __importDefault(require("./UserTemplateChannel"));
|
|
18
|
+
let EndpointTemplateChannel = class EndpointTemplateChannel extends AuditedModel_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], EndpointTemplateChannel.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.DeleteDateColumn(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], EndpointTemplateChannel.prototype, "deletedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.ManyToOne(() => UserTemplateChannel_1.default, (userTemplateChannel) => userTemplateChannel.endpointTemplateChannel, { eager: true, onDelete: 'CASCADE' }),
|
|
30
|
+
typeorm_1.JoinColumn(),
|
|
31
|
+
__metadata("design:type", UserTemplateChannel_1.default)
|
|
32
|
+
], EndpointTemplateChannel.prototype, "userTemplateChannel", void 0);
|
|
33
|
+
EndpointTemplateChannel = __decorate([
|
|
34
|
+
typeorm_1.Entity()
|
|
35
|
+
], EndpointTemplateChannel);
|
|
36
|
+
exports.default = EndpointTemplateChannel;
|
|
37
|
+
//# sourceMappingURL=EndpointTemplateChannel.js.map
|
|
@@ -0,0 +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;CAchE,CAAA;AAZC;IADC,gCAAsB,EAAE;;mDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;0DAAC;AAQhB;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;AAbtB,uBAAuB;IAD3C,gBAAM,EAAE;GACY,uBAAuB,CAc3C;kBAdoB,uBAAuB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import AuditedModel from '../../AuditedModel';
|
|
2
|
+
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
3
|
+
import UserTemplateChannel from './UserTemplateChannel';
|
|
4
|
+
import ReachuSchemeConfigProduct from './schemeProduct/ReachuSchemeConfigProduct';
|
|
5
|
+
import TemplateChannelSchemeConfigProduct from './schemeProduct/TemplateChannelSchemeConfigProduct';
|
|
6
|
+
import TemplateChannelSchemeConfigProductMapped from './schemeProduct/TemplateChannelSchemeConfigProductMapped';
|
|
7
|
+
import ReachuSchemeConfigVariant from './schemeVariant/ReachuSchemeConfigVariant';
|
|
8
|
+
import TemplateChannelSchemeConfigVariant from './schemeVariant/TemplateChannelSchemeConfigVariant';
|
|
9
|
+
import TemplateChannelSchemeConfigVariantMapped from './schemeVariant/TemplateChannelSchemeConfigVariantMapped';
|
|
10
|
+
import ReachuSchemeConfigOrder from './schemeOrder/ReachuSchemeConfigOrder';
|
|
11
|
+
import TemplateChannelSchemeConfigOrder from './schemeOrder/TemplateChannelSchemeConfigOrder';
|
|
12
|
+
import TemplateChannelSchemeConfigOrderMapped from './schemeOrder/TemplateChannelSchemeConfigOrderMapped';
|
|
13
|
+
export default class TemplateChannel extends AuditedModel {
|
|
14
|
+
id: number;
|
|
15
|
+
deletedAt: Date;
|
|
16
|
+
authMethodTemplateChannel: AuthMethodTemplateChannel;
|
|
17
|
+
userTemplateChannel: UserTemplateChannel[];
|
|
18
|
+
reachuSchemeConfigProduct: ReachuSchemeConfigProduct;
|
|
19
|
+
templateChannelSchemeConfigProduct: TemplateChannelSchemeConfigProduct;
|
|
20
|
+
templateChannelSchemeConfigProductMapped: TemplateChannelSchemeConfigProductMapped;
|
|
21
|
+
reachuSchemeConfigVariant: ReachuSchemeConfigVariant;
|
|
22
|
+
templateChannelSchemeConfigVariant: TemplateChannelSchemeConfigVariant;
|
|
23
|
+
templateChannelSchemeConfigVariantMapped: TemplateChannelSchemeConfigVariantMapped;
|
|
24
|
+
reachuSchemeConfigOrder: ReachuSchemeConfigOrder;
|
|
25
|
+
templateChannelSchemeConfigOrder: TemplateChannelSchemeConfigOrder;
|
|
26
|
+
templateChannelSchemeConfigOrderMapped: TemplateChannelSchemeConfigOrderMapped;
|
|
27
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
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 AuthMethodTemplateChannel_1 = __importDefault(require("./AuthMethodTemplateChannel"));
|
|
18
|
+
const UserTemplateChannel_1 = __importDefault(require("./UserTemplateChannel"));
|
|
19
|
+
const ReachuSchemeConfigProduct_1 = __importDefault(require("./schemeProduct/ReachuSchemeConfigProduct"));
|
|
20
|
+
const TemplateChannelSchemeConfigProduct_1 = __importDefault(require("./schemeProduct/TemplateChannelSchemeConfigProduct"));
|
|
21
|
+
const TemplateChannelSchemeConfigProductMapped_1 = __importDefault(require("./schemeProduct/TemplateChannelSchemeConfigProductMapped"));
|
|
22
|
+
const ReachuSchemeConfigVariant_1 = __importDefault(require("./schemeVariant/ReachuSchemeConfigVariant"));
|
|
23
|
+
const TemplateChannelSchemeConfigVariant_1 = __importDefault(require("./schemeVariant/TemplateChannelSchemeConfigVariant"));
|
|
24
|
+
const TemplateChannelSchemeConfigVariantMapped_1 = __importDefault(require("./schemeVariant/TemplateChannelSchemeConfigVariantMapped"));
|
|
25
|
+
const ReachuSchemeConfigOrder_1 = __importDefault(require("./schemeOrder/ReachuSchemeConfigOrder"));
|
|
26
|
+
const TemplateChannelSchemeConfigOrder_1 = __importDefault(require("./schemeOrder/TemplateChannelSchemeConfigOrder"));
|
|
27
|
+
const TemplateChannelSchemeConfigOrderMapped_1 = __importDefault(require("./schemeOrder/TemplateChannelSchemeConfigOrderMapped"));
|
|
28
|
+
let TemplateChannel = class TemplateChannel extends AuditedModel_1.default {
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], TemplateChannel.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
typeorm_1.DeleteDateColumn(),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], TemplateChannel.prototype, "deletedAt", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
typeorm_1.ManyToOne(() => AuthMethodTemplateChannel_1.default, (authMethodTemplateChannel) => authMethodTemplateChannel.templateChannel, {
|
|
40
|
+
eager: true,
|
|
41
|
+
onDelete: 'CASCADE',
|
|
42
|
+
}),
|
|
43
|
+
typeorm_1.JoinColumn(),
|
|
44
|
+
__metadata("design:type", AuthMethodTemplateChannel_1.default)
|
|
45
|
+
], TemplateChannel.prototype, "authMethodTemplateChannel", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
typeorm_1.OneToMany(() => UserTemplateChannel_1.default, (userTemplateChannel) => userTemplateChannel.templateChannel, { cascade: true }),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], TemplateChannel.prototype, "userTemplateChannel", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
typeorm_1.ManyToOne(() => ReachuSchemeConfigProduct_1.default, (reachuSchemeConfigProduct) => reachuSchemeConfigProduct.templateChannel, {
|
|
52
|
+
eager: true,
|
|
53
|
+
onDelete: 'CASCADE',
|
|
54
|
+
}),
|
|
55
|
+
typeorm_1.JoinColumn(),
|
|
56
|
+
__metadata("design:type", ReachuSchemeConfigProduct_1.default)
|
|
57
|
+
], TemplateChannel.prototype, "reachuSchemeConfigProduct", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
typeorm_1.ManyToOne(() => TemplateChannelSchemeConfigProduct_1.default, (templateChannelSchemeConfigProduct) => templateChannelSchemeConfigProduct.templateChannel, {
|
|
60
|
+
eager: true,
|
|
61
|
+
onDelete: 'CASCADE',
|
|
62
|
+
}),
|
|
63
|
+
typeorm_1.JoinColumn(),
|
|
64
|
+
__metadata("design:type", TemplateChannelSchemeConfigProduct_1.default)
|
|
65
|
+
], TemplateChannel.prototype, "templateChannelSchemeConfigProduct", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
typeorm_1.ManyToOne(() => TemplateChannelSchemeConfigProductMapped_1.default, (templateChannelSchemeConfigProductMapped) => templateChannelSchemeConfigProductMapped.templateChannel, {
|
|
68
|
+
eager: true,
|
|
69
|
+
onDelete: 'CASCADE',
|
|
70
|
+
}),
|
|
71
|
+
typeorm_1.JoinColumn(),
|
|
72
|
+
__metadata("design:type", TemplateChannelSchemeConfigProductMapped_1.default)
|
|
73
|
+
], TemplateChannel.prototype, "templateChannelSchemeConfigProductMapped", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
typeorm_1.ManyToOne(() => ReachuSchemeConfigVariant_1.default, (reachuSchemeConfigVariant) => reachuSchemeConfigVariant.templateChannel, {
|
|
76
|
+
eager: true,
|
|
77
|
+
onDelete: 'CASCADE',
|
|
78
|
+
}),
|
|
79
|
+
typeorm_1.JoinColumn(),
|
|
80
|
+
__metadata("design:type", ReachuSchemeConfigVariant_1.default)
|
|
81
|
+
], TemplateChannel.prototype, "reachuSchemeConfigVariant", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
typeorm_1.ManyToOne(() => TemplateChannelSchemeConfigVariant_1.default, (templateChannelSchemeConfigVariant) => templateChannelSchemeConfigVariant.templateChannel, {
|
|
84
|
+
eager: true,
|
|
85
|
+
onDelete: 'CASCADE',
|
|
86
|
+
}),
|
|
87
|
+
typeorm_1.JoinColumn(),
|
|
88
|
+
__metadata("design:type", TemplateChannelSchemeConfigVariant_1.default)
|
|
89
|
+
], TemplateChannel.prototype, "templateChannelSchemeConfigVariant", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
typeorm_1.ManyToOne(() => TemplateChannelSchemeConfigVariantMapped_1.default, (templateChannelSchemeConfigVariantMapped) => templateChannelSchemeConfigVariantMapped.templateChannel, {
|
|
92
|
+
eager: true,
|
|
93
|
+
onDelete: 'CASCADE',
|
|
94
|
+
}),
|
|
95
|
+
typeorm_1.JoinColumn(),
|
|
96
|
+
__metadata("design:type", TemplateChannelSchemeConfigVariantMapped_1.default)
|
|
97
|
+
], TemplateChannel.prototype, "templateChannelSchemeConfigVariantMapped", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
typeorm_1.ManyToOne(() => ReachuSchemeConfigOrder_1.default, (reachuSchemeConfigOrder) => reachuSchemeConfigOrder.templateChannel, {
|
|
100
|
+
eager: true,
|
|
101
|
+
onDelete: 'CASCADE',
|
|
102
|
+
}),
|
|
103
|
+
typeorm_1.JoinColumn(),
|
|
104
|
+
__metadata("design:type", ReachuSchemeConfigOrder_1.default)
|
|
105
|
+
], TemplateChannel.prototype, "reachuSchemeConfigOrder", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
typeorm_1.ManyToOne(() => TemplateChannelSchemeConfigOrder_1.default, (templateChannelSchemeConfigOrder) => templateChannelSchemeConfigOrder.templateChannel, {
|
|
108
|
+
eager: true,
|
|
109
|
+
onDelete: 'CASCADE',
|
|
110
|
+
}),
|
|
111
|
+
typeorm_1.JoinColumn(),
|
|
112
|
+
__metadata("design:type", TemplateChannelSchemeConfigOrder_1.default)
|
|
113
|
+
], TemplateChannel.prototype, "templateChannelSchemeConfigOrder", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
typeorm_1.ManyToOne(() => TemplateChannelSchemeConfigOrderMapped_1.default, (templateChannelSchemeConfigOrderMapped) => templateChannelSchemeConfigOrderMapped.templateChannel, {
|
|
116
|
+
eager: true,
|
|
117
|
+
onDelete: 'CASCADE',
|
|
118
|
+
}),
|
|
119
|
+
typeorm_1.JoinColumn(),
|
|
120
|
+
__metadata("design:type", TemplateChannelSchemeConfigOrderMapped_1.default)
|
|
121
|
+
], TemplateChannel.prototype, "templateChannelSchemeConfigOrderMapped", void 0);
|
|
122
|
+
TemplateChannel = __decorate([
|
|
123
|
+
typeorm_1.Entity()
|
|
124
|
+
], TemplateChannel);
|
|
125
|
+
exports.default = TemplateChannel;
|
|
126
|
+
//# sourceMappingURL=TemplateChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/TemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,4FAAoE;AACpE,gFAAwD;AACxD,0GAAkF;AAClF,4HAAoG;AACpG,wIAAgH;AAChH,0GAAkF;AAClF,4HAAoG;AACpG,wIAAgH;AAChH,oGAA4E;AAC5E,sHAA8F;AAC9F,kIAA0G;AAG1G,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAoIxD,CAAA;AAlIC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAYhB;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CACvD,yBAAyB,CAAC,eAAe,EAC3C;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACc,mCAAyB;kEAAC;AAOrD;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,eAAe,EAC3C;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACc,mCAAyB;kEAAC;AAYrD;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,4CAAkC,EACxC,CAAC,kCAAsE,EAAE,EAAE,CACzE,kCAAkC,CAAC,eAAe,EACpD;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACuB,4CAAkC;2EAAC;AAYvE;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,kDAAwC,EAC9C,CAAC,wCAAkF,EAAE,EAAE,CACrF,wCAAwC,CAAC,eAAe,EAC1D;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BAC6B,kDAAwC;iFAAC;AAYnF;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CACvD,yBAAyB,CAAC,eAAe,EAC3C;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACc,mCAAyB;kEAAC;AAYrD;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,4CAAkC,EACxC,CAAC,kCAAsE,EAAE,EAAE,CACzE,kCAAkC,CAAC,eAAe,EACpD;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACuB,4CAAkC;2EAAC;AAYvE;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,kDAAwC,EAC9C,CAAC,wCAAkF,EAAE,EAAE,CACrF,wCAAwC,CAAC,eAAe,EAC1D;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BAC6B,kDAAwC;iFAAC;AAWnF;IATC,mBAAS,CACR,GAAG,EAAE,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;AAnI5D,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAoInC;kBApIoB,eAAe"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import User from '../../User';
|
|
2
|
+
import AuditedModel from '../../AuditedModel';
|
|
3
|
+
import EndpointTemplateChannel from './EndpointTemplateChannel';
|
|
4
|
+
import AuthInfo from './AuthInfo';
|
|
5
|
+
import TemplateChannel from './TemplateChannel';
|
|
6
|
+
export default class UserTemplateChannel extends AuditedModel {
|
|
7
|
+
id: number;
|
|
8
|
+
deletedAt: Date;
|
|
9
|
+
user: User;
|
|
10
|
+
endpointTemplateChannel: EndpointTemplateChannel[];
|
|
11
|
+
authInfo: AuthInfo;
|
|
12
|
+
templateChannel: TemplateChannel;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 User_1 = __importDefault(require("../../User"));
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
18
|
+
const EndpointTemplateChannel_1 = __importDefault(require("./EndpointTemplateChannel"));
|
|
19
|
+
const AuthInfo_1 = __importDefault(require("./AuthInfo"));
|
|
20
|
+
const TemplateChannel_1 = __importDefault(require("./TemplateChannel"));
|
|
21
|
+
let UserTemplateChannel = class UserTemplateChannel extends AuditedModel_1.default {
|
|
22
|
+
};
|
|
23
|
+
__decorate([
|
|
24
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UserTemplateChannel.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
typeorm_1.DeleteDateColumn(),
|
|
29
|
+
__metadata("design:type", Date)
|
|
30
|
+
], UserTemplateChannel.prototype, "deletedAt", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { eager: true, onDelete: 'CASCADE' }),
|
|
33
|
+
typeorm_1.JoinColumn(),
|
|
34
|
+
__metadata("design:type", User_1.default)
|
|
35
|
+
], UserTemplateChannel.prototype, "user", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.OneToMany(() => EndpointTemplateChannel_1.default, (endpointTemplateChannel) => endpointTemplateChannel.userTemplateChannel, { cascade: true }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], UserTemplateChannel.prototype, "endpointTemplateChannel", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.OneToOne(() => AuthInfo_1.default, { eager: true }),
|
|
42
|
+
typeorm_1.JoinColumn(),
|
|
43
|
+
__metadata("design:type", AuthInfo_1.default)
|
|
44
|
+
], UserTemplateChannel.prototype, "authInfo", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
typeorm_1.ManyToOne(() => TemplateChannel_1.default, (templateChannel) => templateChannel.userTemplateChannel, {
|
|
47
|
+
eager: true,
|
|
48
|
+
onDelete: 'CASCADE',
|
|
49
|
+
}),
|
|
50
|
+
typeorm_1.JoinColumn(),
|
|
51
|
+
__metadata("design:type", TemplateChannel_1.default)
|
|
52
|
+
], UserTemplateChannel.prototype, "templateChannel", void 0);
|
|
53
|
+
UserTemplateChannel = __decorate([
|
|
54
|
+
typeorm_1.Entity()
|
|
55
|
+
], UserTemplateChannel);
|
|
56
|
+
exports.default = UserTemplateChannel;
|
|
57
|
+
//# sourceMappingURL=UserTemplateChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserTemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/UserTemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,qCASiB;AACjB,sEAA8C;AAC9C,wFAAgE;AAChE,0DAAkC;AAClC,wEAAgD;AAGhD,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,sBAAY;CAiC5D,CAAA;AA/BC;IADC,gCAAsB,EAAE;;+CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;sDAAC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACpF,oBAAU,EAAE;8BACP,cAAI;iDAAC;AAQX;IANC,mBAAS,CACR,GAAG,EAAE,CAAC,iCAAuB,EAC7B,CAAC,uBAAgD,EAAE,EAAE,CACnD,uBAAuB,CAAC,mBAAmB,EAC7C,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB;;oEACkD;AAInD;IAFC,kBAAQ,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACzC,oBAAU,EAAE;8BACH,kBAAQ;qDAAC;AAWnB;IATC,mBAAS,CACR,GAAG,EAAE,CAAC,yBAAe,EACrB,CAAC,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,mBAAmB,EACzE;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACI,yBAAe;4DAAC;AAhCd,mBAAmB;IADvC,gBAAM,EAAE;GACY,mBAAmB,CAiCvC;kBAjCoB,mBAAmB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import User from '../../../User';
|
|
2
|
+
import AuditedModel from '../../../AuditedModel';
|
|
3
|
+
import TemplateChannel from '../TemplateChannel';
|
|
4
|
+
export default class ReachuSchemeConfigOrder extends AuditedModel {
|
|
5
|
+
id: number;
|
|
6
|
+
deletedAt: Date;
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
version: number;
|
|
10
|
+
user: User;
|
|
11
|
+
templateChannel: TemplateChannel[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 User_1 = __importDefault(require("../../../User"));
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const AuditedModel_1 = __importDefault(require("../../../AuditedModel"));
|
|
18
|
+
const TemplateChannel_1 = __importDefault(require("../TemplateChannel"));
|
|
19
|
+
let ReachuSchemeConfigOrder = class ReachuSchemeConfigOrder extends AuditedModel_1.default {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ReachuSchemeConfigOrder.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.DeleteDateColumn(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], ReachuSchemeConfigOrder.prototype, "deletedAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ReachuSchemeConfigOrder.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ReachuSchemeConfigOrder.prototype, "url", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ReachuSchemeConfigOrder.prototype, "version", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { eager: true, onDelete: 'CASCADE' }),
|
|
43
|
+
typeorm_1.JoinColumn(),
|
|
44
|
+
__metadata("design:type", User_1.default)
|
|
45
|
+
], ReachuSchemeConfigOrder.prototype, "user", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
typeorm_1.OneToMany(() => TemplateChannel_1.default, (templateChannel) => templateChannel.reachuSchemeConfigOrder, {
|
|
48
|
+
cascade: true,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], ReachuSchemeConfigOrder.prototype, "templateChannel", void 0);
|
|
52
|
+
ReachuSchemeConfigOrder = __decorate([
|
|
53
|
+
typeorm_1.Entity()
|
|
54
|
+
], ReachuSchemeConfigOrder);
|
|
55
|
+
exports.default = ReachuSchemeConfigOrder;
|
|
56
|
+
//# sourceMappingURL=ReachuSchemeConfigOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReachuSchemeConfigOrder.js","sourceRoot":"","sources":["../../../../../src/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAAiC;AACjC,qCAQiB;AACjB,yEAAiD;AACjD,yEAAiD;AAGjD,IAAqB,uBAAuB,GAA5C,MAAqB,uBAAwB,SAAQ,sBAAY;CA4BhE,CAAA;AA1BC;IADC,gCAAsB,EAAE;;mDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;0DAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACzB;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC1B;AAGZ;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACtB;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACpF,oBAAU,EAAE;8BACP,cAAI;qDAAC;AASX;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,yBAAe,EACrB,CAAC,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,uBAAuB,EAC7E;QACE,OAAO,EAAE,IAAI;KACd,CACF;;gEACkC;AA3BhB,uBAAuB;IAD3C,gBAAM,EAAE;GACY,uBAAuB,CA4B3C;kBA5BoB,uBAAuB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import User from '../../../User';
|
|
2
|
+
import AuditedModel from '../../../AuditedModel';
|
|
3
|
+
import TemplateChannel from '../TemplateChannel';
|
|
4
|
+
export default class TemplateChannelSchemeConfigOrder extends AuditedModel {
|
|
5
|
+
id: number;
|
|
6
|
+
deletedAt: Date;
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
version: number;
|
|
10
|
+
user: User;
|
|
11
|
+
templateChannel: TemplateChannel[];
|
|
12
|
+
}
|