@reachu/database 1.0.131 → 1.0.132
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/ProductDigital.d.ts +1 -0
- package/dist/entity/ProductDigital.js +4 -0
- package/dist/entity/ProductDigital.js.map +1 -1
- package/dist/entity/modules/subscriptions/Subscription.js +1 -1
- package/dist/entity/modules/subscriptions/Subscription.js.map +1 -1
- package/dist/migrations/1700597907034-product-digital-reachu.d.ts +6 -0
- package/dist/migrations/1700597907034-product-digital-reachu.js +29 -0
- package/dist/migrations/1700597907034-product-digital-reachu.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +15 -3
- package/package.json +3 -3
- package/src/entity/ProductDigital.ts +3 -0
- package/src/entity/modules/subscriptions/Subscription.ts +9 -2
- package/src/migrations/1700597907034-product-digital-reachu.ts +14 -0
|
@@ -44,6 +44,10 @@ __decorate([
|
|
|
44
44
|
typeorm_1.Column('text', { nullable: false }),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], ProductDigital.prototype, "file_url", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
typeorm_1.Column('text', { nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ProductDigital.prototype, "file_url_reachu", void 0);
|
|
47
51
|
__decorate([
|
|
48
52
|
typeorm_1.Column('integer', { nullable: true }),
|
|
49
53
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductDigital.js","sourceRoot":"","sources":["../../src/entity/ProductDigital.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,qDAA2C;AAC3C,iDAAuC;AAEvC,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,iDAAgB,CAAA;IAChB,qCAAU,CAAA;IACV,iCAAQ,CAAA;AACV,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AAED,IAAY,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CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACrB;AAOjB;IALC,kBAAQ,CAAC,GAAG,EAAE,CAAC,gBAAc,EAAE,CAAC,cAA8B,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QACrF,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACG,cAAc;sDAAC;AAG/B;IADC,gBAAM,CAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;8BACnC,oBAAK;6CAAC;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACf;AAGvB;IADC,gBAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;uDAAC;AAMtB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;QAC1D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;+CAAC;AAGjB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4CACvB;AAhDM,cAAc;IADlC,gBAAM,EAAE;GACY,cAAc,CAiDlC;kBAjDoB,cAAc"}
|
|
@@ -53,7 +53,7 @@ __decorate([
|
|
|
53
53
|
__metadata("design:type", String)
|
|
54
54
|
], Subscription.prototype, "originId", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
typeorm_1.Column('varchar', { nullable: true }),
|
|
56
|
+
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], Subscription.prototype, "response", void 0);
|
|
59
59
|
Subscription = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../src/entity/modules/subscriptions/Subscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sEAA8C;AAC9C,sDAA8B;AAC9B,kDAA0B;AAE1B,
|
|
1
|
+
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../src/entity/modules/subscriptions/Subscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sEAA8C;AAC9C,sDAA8B;AAC9B,kDAA0B;AAE1B,qCAOiB;AAGjB,IAAqB,YAAY,GAAjC,MAAqB,YAAa,SAAQ,sBAAY;CA6BrD,CAAA;AA3BC;IADC,gCAAsB,EAAE;;wCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;+CAAC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACvE,oBAAU,EAAE;8BACP,cAAI;0CAAC;AAIX;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;0CAAC;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,CAAC;;4CACF;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACpC;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACtC;AA5BE,YAAY;IADhC,gBAAM,EAAE;GACY,YAAY,CA6BhC;kBA7BoB,YAAY"}
|
|
@@ -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.productDigitalReachu1700597907034 = void 0;
|
|
13
|
+
class productDigitalReachu1700597907034 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'productDigitalReachu1700597907034';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`file_url_reachu\` text NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`file_url_reachu\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.productDigitalReachu1700597907034 = productDigitalReachu1700597907034;
|
|
29
|
+
//# sourceMappingURL=1700597907034-product-digital-reachu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1700597907034-product-digital-reachu.js","sourceRoot":"","sources":["../../src/migrations/1700597907034-product-digital-reachu.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,iCAAiC;IAA9C;QACI,SAAI,GAAG,mCAAmC,CAAA;IAU9C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACjG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;QAC/F,CAAC;KAAA;CAEJ;AAXD,8EAWC"}
|
|
@@ -2557,7 +2557,7 @@
|
|
|
2557
2557
|
"affectsGlobalScope": false
|
|
2558
2558
|
},
|
|
2559
2559
|
"../src/entity/modules/subscriptions/subscription.ts": {
|
|
2560
|
-
"version": "
|
|
2560
|
+
"version": "d60d238299b93d15d602cdcff89a1b8ae6a922dd59e399331a6373b323b2769a",
|
|
2561
2561
|
"signature": "cdab4b6c9e16417c6f6ef01b8e0181b35913219d9fa2afafd7e7c700e083ed74",
|
|
2562
2562
|
"affectsGlobalScope": false
|
|
2563
2563
|
},
|
|
@@ -2652,8 +2652,8 @@
|
|
|
2652
2652
|
"affectsGlobalScope": false
|
|
2653
2653
|
},
|
|
2654
2654
|
"../src/entity/productdigital.ts": {
|
|
2655
|
-
"version": "
|
|
2656
|
-
"signature": "
|
|
2655
|
+
"version": "989b057359e066a2ce1c34f0aa91454059fc46e8f37175c6fe9ffaaf00e5650a",
|
|
2656
|
+
"signature": "4c22461d61097d49110c56091273e5ab123a2073f8976b99375d34b8dc015a90",
|
|
2657
2657
|
"affectsGlobalScope": false
|
|
2658
2658
|
},
|
|
2659
2659
|
"../src/entity/modules/templates/endpointtemplateecommerce.ts": {
|
|
@@ -3581,6 +3581,11 @@
|
|
|
3581
3581
|
"signature": "969360330daba1edbaacb6da183b6bf536a31d10bf2671a795e767ac32dff522",
|
|
3582
3582
|
"affectsGlobalScope": false
|
|
3583
3583
|
},
|
|
3584
|
+
"../src/migrations/1700597907034-product-digital-reachu.ts": {
|
|
3585
|
+
"version": "b4e0d8c743e7d5a744615f39bc06045ac045957a038e96430a805830f4c7c994",
|
|
3586
|
+
"signature": "5560b2a4fd66cf7c30a75d8185bc7ab7c7d7334159974c4c6fa6d9d27207bb16",
|
|
3587
|
+
"affectsGlobalScope": false
|
|
3588
|
+
},
|
|
3584
3589
|
"../src/migrations/execute/index.ts": {
|
|
3585
3590
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3586
3591
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6631,6 +6636,9 @@
|
|
|
6631
6636
|
"../src/migrations/1700574103856-subscription-response-max.ts": [
|
|
6632
6637
|
"../node_modules/typeorm/index.d.ts"
|
|
6633
6638
|
],
|
|
6639
|
+
"../src/migrations/1700597907034-product-digital-reachu.ts": [
|
|
6640
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6641
|
+
],
|
|
6634
6642
|
"../src/migrations/execute/index.ts": [
|
|
6635
6643
|
"../src/config/connect.ts"
|
|
6636
6644
|
],
|
|
@@ -9536,6 +9544,9 @@
|
|
|
9536
9544
|
"../src/migrations/1700574103856-subscription-response-max.ts": [
|
|
9537
9545
|
"../node_modules/typeorm/index.d.ts"
|
|
9538
9546
|
],
|
|
9547
|
+
"../src/migrations/1700597907034-product-digital-reachu.ts": [
|
|
9548
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9549
|
+
],
|
|
9539
9550
|
"../src/migrations/index.ts": [
|
|
9540
9551
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9541
9552
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10410,6 +10421,7 @@
|
|
|
10410
10421
|
"../src/migrations/1697858770679-user_channel.ts",
|
|
10411
10422
|
"../src/migrations/1699601410949-promote_to_production_10_11_2023.ts",
|
|
10412
10423
|
"../src/migrations/1700574103856-subscription-response-max.ts",
|
|
10424
|
+
"../src/migrations/1700597907034-product-digital-reachu.ts",
|
|
10413
10425
|
"../src/migrations/execute/index.ts",
|
|
10414
10426
|
"../src/migrations/index.ts",
|
|
10415
10427
|
"../src/repositories/discount/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.132",
|
|
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.132",
|
|
25
|
+
"@reachu/utils": "1.0.132",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -34,6 +34,9 @@ export default class ProductDigital extends AuditedModel {
|
|
|
34
34
|
@Column('text', { nullable: false })
|
|
35
35
|
file_url: string;
|
|
36
36
|
|
|
37
|
+
@Column('text', { nullable: true })
|
|
38
|
+
file_url_reachu: string;
|
|
39
|
+
|
|
37
40
|
@Column('integer', { nullable: true })
|
|
38
41
|
file_size: number;
|
|
39
42
|
|
|
@@ -2,7 +2,14 @@ import AuditedModel from '../../AuditedModel';
|
|
|
2
2
|
import User from '../../User';
|
|
3
3
|
import Plan from './Plan';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Column,
|
|
7
|
+
DeleteDateColumn,
|
|
8
|
+
Entity,
|
|
9
|
+
JoinColumn,
|
|
10
|
+
ManyToOne,
|
|
11
|
+
PrimaryGeneratedColumn,
|
|
12
|
+
} from 'typeorm';
|
|
6
13
|
|
|
7
14
|
@Entity()
|
|
8
15
|
export default class Subscription extends AuditedModel {
|
|
@@ -32,6 +39,6 @@ export default class Subscription extends AuditedModel {
|
|
|
32
39
|
@Column('varchar', { nullable: true })
|
|
33
40
|
originId: string;
|
|
34
41
|
|
|
35
|
-
@Column('varchar', { nullable: true })
|
|
42
|
+
@Column('varchar', { length: '21844', nullable: true })
|
|
36
43
|
response: string;
|
|
37
44
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class productDigitalReachu1700597907034 implements MigrationInterface {
|
|
4
|
+
name = 'productDigitalReachu1700597907034'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`file_url_reachu\` text NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`file_url_reachu\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|