@reachu/database 1.0.19 → 1.0.21
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/AuthMethodTemplateChannel.d.ts +0 -3
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +0 -12
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.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 +1 -0
- package/dist/entity/modules/templates/TemplateChannel.js +4 -0
- package/dist/entity/modules/templates/TemplateChannel.js.map +1 -1
- package/dist/migrations/1681167494090-template-channel-name.d.ts +6 -0
- package/dist/migrations/1681167494090-template-channel-name.js +29 -0
- package/dist/migrations/1681167494090-template-channel-name.js.map +1 -0
- 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/tsconfig.tsbuildinfo +30 -6
- package/package.json +3 -3
- package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +0 -9
- package/src/entity/modules/templates/EndpointTemplateChannel.ts +9 -0
- package/src/entity/modules/templates/TemplateChannel.ts +4 -0
- package/src/migrations/1681167494090-template-channel-name.ts +14 -0
- package/src/migrations/1681170372251-template-channel-fix.ts +24 -0
|
@@ -5,9 +5,6 @@ import TemplateChannel from './TemplateChannel';
|
|
|
5
5
|
export default class AuthMethodTemplateChannel extends AuditedModel {
|
|
6
6
|
id: number;
|
|
7
7
|
deletedAt: Date;
|
|
8
|
-
url: string;
|
|
9
|
-
connection: boolean;
|
|
10
|
-
response: string;
|
|
11
8
|
authInfo: AuthInfo[];
|
|
12
9
|
authMethod: AuthMethod;
|
|
13
10
|
templateChannel: TemplateChannel[];
|
|
@@ -27,18 +27,6 @@ __decorate([
|
|
|
27
27
|
typeorm_1.DeleteDateColumn(),
|
|
28
28
|
__metadata("design:type", Date)
|
|
29
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
30
|
__decorate([
|
|
43
31
|
typeorm_1.OneToMany(() => AuthInfo_1.default, (authInfo) => authInfo.authMethodTemplateChannel, {
|
|
44
32
|
cascade: true,
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"AuthMethodTemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthMethodTemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,0DAAkC;AAClC,8DAAsC;AACtC,wEAAgD;AAGhD,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,sBAAY;CA2BlE,CAAA;AAzBC;IADC,gCAAsB,EAAE;;qDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;4DAAC;AAKhB;IAHC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,yBAAyB,EAAE;QACrF,OAAO,EAAE,IAAI;KACd,CAAC;;2DACmB;AAOrB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,oBAAU,EAAE,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,yBAAyB,EAAE;QAC7F,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACD,oBAAU;6DAAC;AASvB;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,yBAAe,EACrB,CAAC,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,yBAAyB,EAC/E;QACE,OAAO,EAAE,IAAI;KACd,CACF;;kEACkC;AA1BhB,yBAAyB;IAD7C,gBAAM,EAAE;GACY,yBAAyB,CA2B7C;kBA3BoB,yBAAyB"}
|
|
@@ -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"}
|
|
@@ -13,6 +13,7 @@ import TemplateChannelSchemeConfigOrderMapped from './schemeOrder/TemplateChanne
|
|
|
13
13
|
export default class TemplateChannel extends AuditedModel {
|
|
14
14
|
id: number;
|
|
15
15
|
deletedAt: Date;
|
|
16
|
+
name: string;
|
|
16
17
|
authMethodTemplateChannel: AuthMethodTemplateChannel;
|
|
17
18
|
userTemplateChannel: UserTemplateChannel[];
|
|
18
19
|
reachuSchemeConfigProduct: ReachuSchemeConfigProduct;
|
|
@@ -35,6 +35,10 @@ __decorate([
|
|
|
35
35
|
typeorm_1.DeleteDateColumn(),
|
|
36
36
|
__metadata("design:type", Date)
|
|
37
37
|
], TemplateChannel.prototype, "deletedAt", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], TemplateChannel.prototype, "name", void 0);
|
|
38
42
|
__decorate([
|
|
39
43
|
typeorm_1.ManyToOne(() => AuthMethodTemplateChannel_1.default, (authMethodTemplateChannel) => authMethodTemplateChannel.templateChannel, {
|
|
40
44
|
eager: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/TemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"TemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/TemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;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,eA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QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BAC2B,gDAAsC;+EAAC;AAtI5D,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAuInC;kBAvIoB,eAAe"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.templateChannelName1681167494090 = void 0;
|
|
13
|
+
class templateChannelName1681167494090 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'templateChannelName1681167494090';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD \`name\` varchar(255) NOT NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP COLUMN \`name\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.templateChannelName1681167494090 = templateChannelName1681167494090;
|
|
29
|
+
//# sourceMappingURL=1681167494090-template-channel-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1681167494090-template-channel-name.js","sourceRoot":"","sources":["../../src/migrations/1681167494090-template-channel-name.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAU7C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;QACnG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACrF,CAAC;KAAA;CAEJ;AAXD,4EAWC"}
|
|
@@ -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"}
|
|
@@ -2627,8 +2627,8 @@
|
|
|
2627
2627
|
"affectsGlobalScope": false
|
|
2628
2628
|
},
|
|
2629
2629
|
"../src/entity/modules/templates/endpointtemplatechannel.ts": {
|
|
2630
|
-
"version": "
|
|
2631
|
-
"signature": "
|
|
2630
|
+
"version": "977b019efe1c8a4277ca66e1821fd8930f464e82902425cc64286e84804d09c1",
|
|
2631
|
+
"signature": "6d19c60e5a1ee07815d067bce52ff06a79b32c9e7a5ad0657c7cbdbd5962c3b8",
|
|
2632
2632
|
"affectsGlobalScope": false
|
|
2633
2633
|
},
|
|
2634
2634
|
"../src/entity/modules/templates/usertemplatechannel.ts": {
|
|
@@ -2682,13 +2682,13 @@
|
|
|
2682
2682
|
"affectsGlobalScope": false
|
|
2683
2683
|
},
|
|
2684
2684
|
"../src/entity/modules/templates/templatechannel.ts": {
|
|
2685
|
-
"version": "
|
|
2686
|
-
"signature": "
|
|
2685
|
+
"version": "5913887d1b37627eed11f49f8b1288e3590215fb6de669df5eb3cfc3f6e7c85b",
|
|
2686
|
+
"signature": "d08ce84d7d1ffbe7012303bf759610f6ea6fc7336866015e309e9e0c49bbaf20",
|
|
2687
2687
|
"affectsGlobalScope": false
|
|
2688
2688
|
},
|
|
2689
2689
|
"../src/entity/modules/templates/authmethodtemplatechannel.ts": {
|
|
2690
|
-
"version": "
|
|
2691
|
-
"signature": "
|
|
2690
|
+
"version": "a2a955d1570340e4555d2c4071d1acf163bb38e67f351fcb1471ec8ff3a66e7d",
|
|
2691
|
+
"signature": "3ea98ddd101bf4bd783afd6fcecb4ff7df1e24743013888df08c19364183b8e3",
|
|
2692
2692
|
"affectsGlobalScope": false
|
|
2693
2693
|
},
|
|
2694
2694
|
"../src/entity/modules/templates/authinfo.ts": {
|
|
@@ -3116,6 +3116,16 @@
|
|
|
3116
3116
|
"signature": "1916b85a9f87d6c7564aac30d2c7d984413d110272a707efa012e2b738ae315d",
|
|
3117
3117
|
"affectsGlobalScope": false
|
|
3118
3118
|
},
|
|
3119
|
+
"../src/migrations/1681167494090-template-channel-name.ts": {
|
|
3120
|
+
"version": "d7898605e194af7189b618411055842d436335054aac7f074bf6fc235647e454",
|
|
3121
|
+
"signature": "78e72c194424768e760aa11b0776fc9b80bf4bf9a9fbbfb64609b9f8cadc21a4",
|
|
3122
|
+
"affectsGlobalScope": false
|
|
3123
|
+
},
|
|
3124
|
+
"../src/migrations/1681170372251-template-channel-fix.ts": {
|
|
3125
|
+
"version": "51251e074e70a7f8dd0c507e7ad84d6cc7794e81d448db6dc202ead28fc2836d",
|
|
3126
|
+
"signature": "dcddc09e33bd4710187d83f37c7053a0f3e8a61455281dd336ef4cd987f0f560",
|
|
3127
|
+
"affectsGlobalScope": false
|
|
3128
|
+
},
|
|
3119
3129
|
"../src/migrations/execute/index.ts": {
|
|
3120
3130
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3121
3131
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5833,6 +5843,12 @@
|
|
|
5833
5843
|
"../src/migrations/1680581444059-template.ts": [
|
|
5834
5844
|
"../node_modules/typeorm/index.d.ts"
|
|
5835
5845
|
],
|
|
5846
|
+
"../src/migrations/1681167494090-template-channel-name.ts": [
|
|
5847
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5848
|
+
],
|
|
5849
|
+
"../src/migrations/1681170372251-template-channel-fix.ts": [
|
|
5850
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5851
|
+
],
|
|
5836
5852
|
"../src/migrations/execute/index.ts": [
|
|
5837
5853
|
"../src/config/connect.ts"
|
|
5838
5854
|
],
|
|
@@ -8402,6 +8418,12 @@
|
|
|
8402
8418
|
"../src/migrations/1680581444059-template.ts": [
|
|
8403
8419
|
"../node_modules/typeorm/index.d.ts"
|
|
8404
8420
|
],
|
|
8421
|
+
"../src/migrations/1681167494090-template-channel-name.ts": [
|
|
8422
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8423
|
+
],
|
|
8424
|
+
"../src/migrations/1681170372251-template-channel-fix.ts": [
|
|
8425
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8426
|
+
],
|
|
8405
8427
|
"../src/migrations/index.ts": [
|
|
8406
8428
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8407
8429
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9164,6 +9186,8 @@
|
|
|
9164
9186
|
"../src/migrations/1678115824175-task-1098v1.ts",
|
|
9165
9187
|
"../src/migrations/1679329902116-promote_to_production_2023_03_20.ts",
|
|
9166
9188
|
"../src/migrations/1680581444059-template.ts",
|
|
9189
|
+
"../src/migrations/1681167494090-template-channel-name.ts",
|
|
9190
|
+
"../src/migrations/1681170372251-template-channel-fix.ts",
|
|
9167
9191
|
"../src/migrations/execute/index.ts",
|
|
9168
9192
|
"../src/migrations/index.ts",
|
|
9169
9193
|
"../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.21",
|
|
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.21",
|
|
25
|
+
"@reachu/utils": "1.0.21",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -20,15 +20,6 @@ export default class AuthMethodTemplateChannel extends AuditedModel {
|
|
|
20
20
|
@DeleteDateColumn()
|
|
21
21
|
deletedAt: Date;
|
|
22
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
23
|
@OneToMany(() => AuthInfo, (authInfo: AuthInfo) => authInfo.authMethodTemplateChannel, {
|
|
33
24
|
cascade: true,
|
|
34
25
|
})
|
|
@@ -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,
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
JoinColumn,
|
|
6
6
|
ManyToOne,
|
|
7
7
|
OneToMany,
|
|
8
|
+
Column,
|
|
8
9
|
} from 'typeorm';
|
|
9
10
|
import AuditedModel from '../../AuditedModel';
|
|
10
11
|
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
@@ -27,6 +28,9 @@ export default class TemplateChannel extends AuditedModel {
|
|
|
27
28
|
@DeleteDateColumn()
|
|
28
29
|
deletedAt: Date;
|
|
29
30
|
|
|
31
|
+
@Column('varchar', { nullable: false })
|
|
32
|
+
name: string;
|
|
33
|
+
|
|
30
34
|
@ManyToOne(
|
|
31
35
|
() => AuthMethodTemplateChannel,
|
|
32
36
|
(authMethodTemplateChannel: AuthMethodTemplateChannel) =>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class templateChannelName1681167494090 implements MigrationInterface {
|
|
4
|
+
name = 'templateChannelName1681167494090'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` ADD \`name\` varchar(255) NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` DROP COLUMN \`name\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|