@reachu/database 1.0.88 → 1.0.89

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.
@@ -8,5 +8,6 @@ export default class EndpointTemplateEcommerce extends AuditedModel {
8
8
  response: string;
9
9
  type: string;
10
10
  body: string;
11
+ title: string;
11
12
  userTemplateEcommerce: UserTemplateEcommerce;
12
13
  }
@@ -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;CA8BlE,CAAA;AA5BC;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;AASb;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;AA7B1B,yBAAyB;IAD7C,gBAAM,EAAE;GACY,yBAAyB,CA8B7C;kBA9BoB,yBAAyB"}
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 addTitleEndpoint1688049065964 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -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": "f10213512c185dde5308b04068b60c1423ef6d26692885e122dc18c945a9f70a",
2651
- "signature": "1e238ca80896de3b9d7f5eef5af5db26c89cbd90714d6db58685b1a3cb7e96c9",
2650
+ "version": "cfeefc06c867749ddde60e6bb5177a2797c450f2a2efcc8bc3c6091e93568f71",
2651
+ "signature": "22cbe559bce594ffd910b8d3ae6237a7d9137f68baafdd5e7759c0e26e2d1636",
2652
2652
  "affectsGlobalScope": false
2653
2653
  },
2654
2654
  "../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": {
@@ -3341,6 +3341,11 @@
3341
3341
  "signature": "baa58422d01771e5b5edeeee96b69158016ba96be10abd66c1c6ed5617d25233",
3342
3342
  "affectsGlobalScope": false
3343
3343
  },
3344
+ "../src/migrations/1688049065964-add-title-endpoint.ts": {
3345
+ "version": "59d47d888ab3c181b0cba9019fcb67081c68baf9a8624e765adb29a9990ca966",
3346
+ "signature": "06e95c632f07baf87755f449183c9093b760c51393e0114aea440e0d929c2823",
3347
+ "affectsGlobalScope": false
3348
+ },
3344
3349
  "../src/migrations/execute/index.ts": {
3345
3350
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3346
3351
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -6214,6 +6219,9 @@
6214
6219
  "../src/migrations/1687993176652-add-info-to-auth-2.ts": [
6215
6220
  "../node_modules/typeorm/index.d.ts"
6216
6221
  ],
6222
+ "../src/migrations/1688049065964-add-title-endpoint.ts": [
6223
+ "../node_modules/typeorm/index.d.ts"
6224
+ ],
6217
6225
  "../src/migrations/execute/index.ts": [
6218
6226
  "../src/config/connect.ts"
6219
6227
  ],
@@ -8942,6 +8950,9 @@
8942
8950
  "../src/migrations/1687993176652-add-info-to-auth-2.ts": [
8943
8951
  "../node_modules/typeorm/index.d.ts"
8944
8952
  ],
8953
+ "../src/migrations/1688049065964-add-title-endpoint.ts": [
8954
+ "../node_modules/typeorm/index.d.ts"
8955
+ ],
8945
8956
  "../src/migrations/index.ts": [
8946
8957
  "../src/migrations/1628474597284-initialschema.ts",
8947
8958
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -9758,6 +9769,7 @@
9758
9769
  "../src/migrations/1687909776321-migration-pre-develop-shopiffy-connection.ts",
9759
9770
  "../src/migrations/1687981491374-add-info-to-auth.ts",
9760
9771
  "../src/migrations/1687993176652-add-info-to-auth-2.ts",
9772
+ "../src/migrations/1688049065964-add-title-endpoint.ts",
9761
9773
  "../src/migrations/execute/index.ts",
9762
9774
  "../src/migrations/index.ts",
9763
9775
  "../src/repositories/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
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.88",
25
- "@reachu/utils": "1.0.88",
24
+ "@reachu/logger": "1.0.89",
25
+ "@reachu/utils": "1.0.89",
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,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
+ }