@reachu/database 1.0.88 → 1.0.90
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/EndpointTemplateEcommerce.d.ts +1 -0
- package/dist/entity/modules/templates/EndpointTemplateEcommerce.js +4 -0
- package/dist/entity/modules/templates/EndpointTemplateEcommerce.js.map +1 -1
- package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.d.ts +6 -0
- package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.js +35 -0
- package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.js.map +1 -0
- package/dist/migrations/1688049065964-add-title-endpoint.d.ts +6 -0
- package/dist/migrations/1688049065964-add-title-endpoint.js +29 -0
- package/dist/migrations/1688049065964-add-title-endpoint.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +26 -2
- package/package.json +3 -3
- package/src/entity/modules/templates/EndpointTemplateEcommerce.ts +3 -0
- package/src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts +20 -0
- package/src/migrations/1688049065964-add-title-endpoint.ts +14 -0
|
@@ -45,6 +45,10 @@ __decorate([
|
|
|
45
45
|
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], EndpointTemplateEcommerce.prototype, "body", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], EndpointTemplateEcommerce.prototype, "title", void 0);
|
|
48
52
|
__decorate([
|
|
49
53
|
typeorm_1.ManyToOne(() => UserTemplateEcommerce_1.default, (userTemplateEcommerce) => userTemplateEcommerce.endpointTemplateEcommerce, { onDelete: 'CASCADE' }),
|
|
50
54
|
typeorm_1.JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointTemplateEcommerce.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/EndpointTemplateEcommerce.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,oFAA4D;AAG5D,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"EndpointTemplateEcommerce.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/EndpointTemplateEcommerce.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,oFAA4D;AAG5D,IAAqB,yBAAyB,GAA9C,MAAqB,yBAA0B,SAAQ,sBAAY;CAiClE,CAAA;AA/BC;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;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACzB;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC1C;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wDACzB;AASd;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,+BAAqB,EAC3B,CAAC,qBAA4C,EAAE,EAAE,CAC/C,qBAAqB,CAAC,yBAAyB,EACjD,EAAE,QAAQ,EAAE,SAAS,EAAE,CACxB;IACA,oBAAU,EAAE;8BACU,+BAAqB;wEAAC;AAhC1B,yBAAyB;IAD7C,gBAAM,EAAE;GACY,yBAAyB,CAiC7C;kBAjCoB,yBAAyB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
2
|
+
export declare class migrationPreDevelopApiKeyChannel1687997223199 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.migrationPreDevelopApiKeyChannel1687997223199 = void 0;
|
|
13
|
+
class migrationPreDevelopApiKeyChannel1687997223199 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'migrationPreDevelopApiKeyChannel1687997223199';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`user_channel_api_key\` DROP FOREIGN KEY \`FK_adc2206f21efb67f9f6425a4ce8\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`user_channel_api_key\` DROP COLUMN \`channel_user_id\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`user_channel_api_key_id\` int NULL`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_83f345b5912388def4fa4253040\` FOREIGN KEY (\`user_channel_api_key_id\`) REFERENCES \`user_channel_api_key\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
down(queryRunner) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_83f345b5912388def4fa4253040\``);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`user_channel_api_key_id\``);
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`user_channel_api_key\` ADD \`channel_user_id\` int NULL`);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`user_channel_api_key\` ADD CONSTRAINT \`FK_adc2206f21efb67f9f6425a4ce8\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.migrationPreDevelopApiKeyChannel1687997223199 = migrationPreDevelopApiKeyChannel1687997223199;
|
|
35
|
+
//# sourceMappingURL=1687997223199-migration-pre-develop-api-key-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1687997223199-migration-pre-develop-api-key-channel.js","sourceRoot":"","sources":["../../src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6CAA6C;IAA1D;QACI,SAAI,GAAG,+CAA+C,CAAA;IAgB1D,CAAC;IAdgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,0FAA0F,CAAC,CAAC;YACpH,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;YAChG,MAAM,WAAW,CAAC,KAAK,CAAC,uEAAuE,CAAC,CAAC;YACjG,MAAM,WAAW,CAAC,KAAK,CAAC,8MAA8M,CAAC,CAAC;QAC5O,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;YAChG,MAAM,WAAW,CAAC,KAAK,CAAC,uEAAuE,CAAC,CAAC;YACjG,MAAM,WAAW,CAAC,KAAK,CAAC,sMAAsM,CAAC,CAAC;QACpO,CAAC;KAAA;CAEJ;AAjBD,sGAiBC"}
|
|
@@ -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.addTitleEndpoint1688049065964 = void 0;
|
|
13
|
+
class addTitleEndpoint1688049065964 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'addTitleEndpoint1688049065964';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_ecommerce\` ADD \`title\` varchar(255) NOT NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`endpoint_template_ecommerce\` DROP COLUMN \`title\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.addTitleEndpoint1688049065964 = addTitleEndpoint1688049065964;
|
|
29
|
+
//# sourceMappingURL=1688049065964-add-title-endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1688049065964-add-title-endpoint.js","sourceRoot":"","sources":["../../src/migrations/1688049065964-add-title-endpoint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6BAA6B;IAA1C;QACI,SAAI,GAAG,+BAA+B,CAAA;IAU1C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;QAC/G,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACjG,CAAC;KAAA;CAEJ;AAXD,sEAWC"}
|
|
@@ -2647,8 +2647,8 @@
|
|
|
2647
2647
|
"affectsGlobalScope": false
|
|
2648
2648
|
},
|
|
2649
2649
|
"../src/entity/modules/templates/endpointtemplateecommerce.ts": {
|
|
2650
|
-
"version": "
|
|
2651
|
-
"signature": "
|
|
2650
|
+
"version": "cfeefc06c867749ddde60e6bb5177a2797c450f2a2efcc8bc3c6091e93568f71",
|
|
2651
|
+
"signature": "22cbe559bce594ffd910b8d3ae6237a7d9137f68baafdd5e7759c0e26e2d1636",
|
|
2652
2652
|
"affectsGlobalScope": false
|
|
2653
2653
|
},
|
|
2654
2654
|
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": {
|
|
@@ -3341,6 +3341,16 @@
|
|
|
3341
3341
|
"signature": "baa58422d01771e5b5edeeee96b69158016ba96be10abd66c1c6ed5617d25233",
|
|
3342
3342
|
"affectsGlobalScope": false
|
|
3343
3343
|
},
|
|
3344
|
+
"../src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts": {
|
|
3345
|
+
"version": "caeed7baff55fdd193f807dc880c1696cae19d3332fed5831430e1b6d58a9de3",
|
|
3346
|
+
"signature": "7afc2151cbbaecae0e9690e1b90a00b9210ecce9b48dd187849ce68b8ed13673",
|
|
3347
|
+
"affectsGlobalScope": false
|
|
3348
|
+
},
|
|
3349
|
+
"../src/migrations/1688049065964-add-title-endpoint.ts": {
|
|
3350
|
+
"version": "59d47d888ab3c181b0cba9019fcb67081c68baf9a8624e765adb29a9990ca966",
|
|
3351
|
+
"signature": "06e95c632f07baf87755f449183c9093b760c51393e0114aea440e0d929c2823",
|
|
3352
|
+
"affectsGlobalScope": false
|
|
3353
|
+
},
|
|
3344
3354
|
"../src/migrations/execute/index.ts": {
|
|
3345
3355
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3346
3356
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6214,6 +6224,12 @@
|
|
|
6214
6224
|
"../src/migrations/1687993176652-add-info-to-auth-2.ts": [
|
|
6215
6225
|
"../node_modules/typeorm/index.d.ts"
|
|
6216
6226
|
],
|
|
6227
|
+
"../src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts": [
|
|
6228
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6229
|
+
],
|
|
6230
|
+
"../src/migrations/1688049065964-add-title-endpoint.ts": [
|
|
6231
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6232
|
+
],
|
|
6217
6233
|
"../src/migrations/execute/index.ts": [
|
|
6218
6234
|
"../src/config/connect.ts"
|
|
6219
6235
|
],
|
|
@@ -8942,6 +8958,12 @@
|
|
|
8942
8958
|
"../src/migrations/1687993176652-add-info-to-auth-2.ts": [
|
|
8943
8959
|
"../node_modules/typeorm/index.d.ts"
|
|
8944
8960
|
],
|
|
8961
|
+
"../src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts": [
|
|
8962
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8963
|
+
],
|
|
8964
|
+
"../src/migrations/1688049065964-add-title-endpoint.ts": [
|
|
8965
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8966
|
+
],
|
|
8945
8967
|
"../src/migrations/index.ts": [
|
|
8946
8968
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8947
8969
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9758,6 +9780,8 @@
|
|
|
9758
9780
|
"../src/migrations/1687909776321-migration-pre-develop-shopiffy-connection.ts",
|
|
9759
9781
|
"../src/migrations/1687981491374-add-info-to-auth.ts",
|
|
9760
9782
|
"../src/migrations/1687993176652-add-info-to-auth-2.ts",
|
|
9783
|
+
"../src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts",
|
|
9784
|
+
"../src/migrations/1688049065964-add-title-endpoint.ts",
|
|
9761
9785
|
"../src/migrations/execute/index.ts",
|
|
9762
9786
|
"../src/migrations/index.ts",
|
|
9763
9787
|
"../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.90",
|
|
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.90",
|
|
25
|
+
"@reachu/utils": "1.0.90",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -32,6 +32,9 @@ export default class EndpointTemplateEcommerce extends AuditedModel {
|
|
|
32
32
|
@Column('varchar', { length: '21844', nullable: true })
|
|
33
33
|
body: string;
|
|
34
34
|
|
|
35
|
+
@Column('varchar', { nullable: false })
|
|
36
|
+
title: string;
|
|
37
|
+
|
|
35
38
|
@ManyToOne(
|
|
36
39
|
() => UserTemplateEcommerce,
|
|
37
40
|
(userTemplateEcommerce: UserTemplateEcommerce) =>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class migrationPreDevelopApiKeyChannel1687997223199 implements MigrationInterface {
|
|
4
|
+
name = 'migrationPreDevelopApiKeyChannel1687997223199'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` DROP FOREIGN KEY \`FK_adc2206f21efb67f9f6425a4ce8\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` DROP COLUMN \`channel_user_id\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`user_channel_api_key_id\` int NULL`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_83f345b5912388def4fa4253040\` FOREIGN KEY (\`user_channel_api_key_id\`) REFERENCES \`user_channel_api_key\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_83f345b5912388def4fa4253040\``);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`user_channel_api_key_id\``);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` ADD \`channel_user_id\` int NULL`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`user_channel_api_key\` ADD CONSTRAINT \`FK_adc2206f21efb67f9f6425a4ce8\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class addTitleEndpoint1688049065964 implements MigrationInterface {
|
|
4
|
+
name = 'addTitleEndpoint1688049065964'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_ecommerce\` ADD \`title\` varchar(255) NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`endpoint_template_ecommerce\` DROP COLUMN \`title\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|