@reachu/database 1.0.138 → 1.0.139
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/ChannelUser.d.ts +1 -0
- package/dist/entity/ChannelUser.js +5 -1
- package/dist/entity/ChannelUser.js.map +1 -1
- package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.d.ts +6 -0
- package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.js +29 -0
- package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.js.map +1 -0
- package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.d.ts +6 -0
- package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.js +39 -0
- package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +107 -49
- package/package.json +3 -3
- package/src/entity/ChannelUser.ts +4 -1
- package/src/migrations/1701763179365-promote_to_qa_05_12_2023.ts +14 -0
- package/src/migrations/1701763272354-promote_to_prod_05_12_2023.ts +24 -0
|
@@ -41,9 +41,13 @@ __decorate([
|
|
|
41
41
|
__metadata("design:type", Boolean)
|
|
42
42
|
], ChannelUser.prototype, "active", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
typeorm_1.Column('boolean', { nullable: true, default:
|
|
44
|
+
typeorm_1.Column('boolean', { nullable: true, default: false }),
|
|
45
45
|
__metadata("design:type", Boolean)
|
|
46
46
|
], ChannelUser.prototype, "useMessagingQueue", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
typeorm_1.Column('boolean', { nullable: true, default: true }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], ChannelUser.prototype, "useStorageForDigitalProduct", void 0);
|
|
47
51
|
__decorate([
|
|
48
52
|
typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { onDelete: 'CASCADE' }),
|
|
49
53
|
typeorm_1.JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUser.js","sourceRoot":"","sources":["../../src/entity/ChannelUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,wDAAgC;AAChC,kEAA0C;AAC1C,sFAA8D;AAC9D,kDAA0B;AAC1B,4EAAoD;AACpD,oEAA4C;AAE5C,4EAAoD;AACpD,yEAA+D;AAG/D,IAAqB,WAAW,GAAhC,MAAqB,WAAY,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"ChannelUser.js","sourceRoot":"","sources":["../../src/entity/ChannelUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,wDAAgC;AAChC,kEAA0C;AAC1C,sFAA8D;AAC9D,kDAA0B;AAC1B,4EAAoD;AACpD,oEAA4C;AAE5C,4EAAoD;AACpD,yEAA+D;AAG/D,IAAqB,WAAW,GAAhC,MAAqB,WAAY,SAAQ,sBAAY;CAkEpD,CAAA;AAhEC;IADC,0BAAgB,EAAE;8BACR,IAAI;8CAAC;AAGhB;IADC,gCAAsB,EAAE;;uCACd;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACrC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sDAC1B;AAG5B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gEACf;AAItC;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,oBAAU,EAAE;8BACP,cAAI;yCAAC;AAIX;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACnF,oBAAU,EAAE;8BACJ,iBAAO;4CAAC;AAMjB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,sBAAY,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE;QACvF,OAAO,EAAE,IAAI;KACd,CAAC;IACD,oBAAU,EAAE;;iDACgB;AAU7B;IARC,mBAAS,CACR,GAAG,EAAE,CAAC,gCAAsB,EAC5B,CAAC,sBAA8C,EAAE,EAAE,CAAC,sBAAsB,CAAC,WAAW,EACtF;QACE,OAAO,EAAE,IAAI;KACd,CACF;IACA,oBAAU,EAAE;;2DACoC;AAMjD;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,2BAAiB,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;QAC/E,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACM,2BAAiB;sDAAC;AAMrC;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,uBAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QACnE,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACE,uBAAa;kDAAC;AAM7B;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,4CAAiB,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;QAC/E,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACM,4CAAiB;sDAAC;AAMrC;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,2BAAiB,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;QAC/E,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACM,2BAAiB;sDAAC;AAjElB,WAAW;IAD/B,gBAAM,EAAE;GACY,WAAW,CAkE/B;kBAlEoB,WAAW"}
|
|
@@ -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.promoteToQa051220231701763179365 = void 0;
|
|
13
|
+
class promoteToQa051220231701763179365 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'promoteToQa051220231701763179365';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`order_item\` CHANGE \`variant_title\` \`variant_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 \`order_item\` CHANGE \`variant_title\` \`variant_title\` varchar(255) NOT NULL DEFAULT ''`);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.promoteToQa051220231701763179365 = promoteToQa051220231701763179365;
|
|
29
|
+
//# sourceMappingURL=1701763179365-promote_to_qa_05_12_2023.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1701763179365-promote_to_qa_05_12_2023.js","sourceRoot":"","sources":["../../src/migrations/1701763179365-promote_to_qa_05_12_2023.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAU7C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,6FAA6F,CAAC,CAAC;QAC3H,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAC;QACtI,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.promoteToProd051220231701763272354 = void 0;
|
|
13
|
+
class promoteToProd051220231701763272354 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'promoteToProd051220231701763272354';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`wolt_id\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`oda_id\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`file_url_reachu\` text NULL`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`order_item\` CHANGE \`variant_title\` \`variant_title\` varchar(255) NOT NULL`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`subscription\` DROP COLUMN \`response\``);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`subscription\` 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 \`subscription\` DROP COLUMN \`response\``);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`subscription\` ADD \`response\` varchar(255) NULL`);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`order_item\` CHANGE \`variant_title\` \`variant_title\` varchar(255) NOT NULL DEFAULT ''`);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`file_url_reachu\``);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`user\` ADD \`oda_id\` varchar(255) NULL`);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`wolt_id\` varchar(255) NULL`);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.promoteToProd051220231701763272354 = promoteToProd051220231701763272354;
|
|
39
|
+
//# sourceMappingURL=1701763272354-promote_to_prod_05_12_2023.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1701763272354-promote_to_prod_05_12_2023.js","sourceRoot":"","sources":["../../src/migrations/1701763272354-promote_to_prod_05_12_2023.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,kCAAkC;IAA/C;QACI,SAAI,GAAG,oCAAoC,CAAA;IAoB/C,CAAC;IAlBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;YACpF,MAAM,WAAW,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;YACvE,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CAAC,6FAA6F,CAAC,CAAC;YACvH,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACjG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAC;YAClI,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;QAClG,CAAC;KAAA;CAEJ;AArBD,gFAqBC"}
|
|
@@ -2236,44 +2236,59 @@
|
|
|
2236
2236
|
"signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86",
|
|
2237
2237
|
"affectsGlobalScope": false
|
|
2238
2238
|
},
|
|
2239
|
-
"../node_modules/@types/
|
|
2240
|
-
"version": "
|
|
2241
|
-
"signature": "
|
|
2239
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts": {
|
|
2240
|
+
"version": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
2241
|
+
"signature": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
2242
|
+
"affectsGlobalScope": false
|
|
2243
|
+
},
|
|
2244
|
+
"../node_modules/@types/send/index.d.ts": {
|
|
2245
|
+
"version": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
|
|
2246
|
+
"signature": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
|
|
2242
2247
|
"affectsGlobalScope": false
|
|
2243
2248
|
},
|
|
2244
2249
|
"../node_modules/@types/qs/index.d.ts": {
|
|
2245
|
-
"version": "
|
|
2246
|
-
"signature": "
|
|
2250
|
+
"version": "fedd311d427fdafac411b4e0edc0d1014668853679e021e04717a6de45ff5c0c",
|
|
2251
|
+
"signature": "fedd311d427fdafac411b4e0edc0d1014668853679e021e04717a6de45ff5c0c",
|
|
2252
|
+
"affectsGlobalScope": false
|
|
2253
|
+
},
|
|
2254
|
+
"../node_modules/@types/range-parser/index.d.ts": {
|
|
2255
|
+
"version": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
|
|
2256
|
+
"signature": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
|
|
2247
2257
|
"affectsGlobalScope": false
|
|
2248
2258
|
},
|
|
2249
2259
|
"../node_modules/@types/express-serve-static-core/index.d.ts": {
|
|
2250
|
-
"version": "
|
|
2251
|
-
"signature": "
|
|
2260
|
+
"version": "50072f976cfa86af1a3044f55cd729d992abe39222d2f6cdf929266c77a42b0b",
|
|
2261
|
+
"signature": "50072f976cfa86af1a3044f55cd729d992abe39222d2f6cdf929266c77a42b0b",
|
|
2252
2262
|
"affectsGlobalScope": true
|
|
2253
2263
|
},
|
|
2264
|
+
"../node_modules/@types/http-errors/index.d.ts": {
|
|
2265
|
+
"version": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
|
|
2266
|
+
"signature": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
|
|
2267
|
+
"affectsGlobalScope": false
|
|
2268
|
+
},
|
|
2254
2269
|
"../node_modules/@types/mime/mime.d.ts": {
|
|
2255
|
-
"version": "
|
|
2256
|
-
"signature": "
|
|
2270
|
+
"version": "d2a38ad7bb4676e7fd5d058a08105d81ac232c363ee56be0b401fc277d50dbb1",
|
|
2271
|
+
"signature": "d2a38ad7bb4676e7fd5d058a08105d81ac232c363ee56be0b401fc277d50dbb1",
|
|
2257
2272
|
"affectsGlobalScope": false
|
|
2258
2273
|
},
|
|
2259
2274
|
"../node_modules/@types/mime/index.d.ts": {
|
|
2260
|
-
"version": "
|
|
2261
|
-
"signature": "
|
|
2275
|
+
"version": "2ac2e08e0d0ed266849cb9da521c3be170a8bc111d25eeeb668c7dbf0ac4171a",
|
|
2276
|
+
"signature": "2ac2e08e0d0ed266849cb9da521c3be170a8bc111d25eeeb668c7dbf0ac4171a",
|
|
2262
2277
|
"affectsGlobalScope": false
|
|
2263
2278
|
},
|
|
2264
2279
|
"../node_modules/@types/serve-static/index.d.ts": {
|
|
2265
|
-
"version": "
|
|
2266
|
-
"signature": "
|
|
2280
|
+
"version": "34118be360cdd3381bbebbfd4b093c394460c8fc5df40688d58f45d86ab1448b",
|
|
2281
|
+
"signature": "34118be360cdd3381bbebbfd4b093c394460c8fc5df40688d58f45d86ab1448b",
|
|
2267
2282
|
"affectsGlobalScope": false
|
|
2268
2283
|
},
|
|
2269
2284
|
"../node_modules/@types/connect/index.d.ts": {
|
|
2270
|
-
"version": "
|
|
2271
|
-
"signature": "
|
|
2285
|
+
"version": "104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e",
|
|
2286
|
+
"signature": "104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e",
|
|
2272
2287
|
"affectsGlobalScope": false
|
|
2273
2288
|
},
|
|
2274
2289
|
"../node_modules/@types/body-parser/index.d.ts": {
|
|
2275
|
-
"version": "
|
|
2276
|
-
"signature": "
|
|
2290
|
+
"version": "cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c",
|
|
2291
|
+
"signature": "cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c",
|
|
2277
2292
|
"affectsGlobalScope": false
|
|
2278
2293
|
},
|
|
2279
2294
|
"../node_modules/@types/express/index.d.ts": {
|
|
@@ -2472,8 +2487,8 @@
|
|
|
2472
2487
|
"affectsGlobalScope": false
|
|
2473
2488
|
},
|
|
2474
2489
|
"../src/entity/channeluser.ts": {
|
|
2475
|
-
"version": "
|
|
2476
|
-
"signature": "
|
|
2490
|
+
"version": "95f909f8822a7cacdc7aae6edf51566d841bb08f3fbe68deeb855db5ac839bf4",
|
|
2491
|
+
"signature": "14e1df87dc0c5b75e4199fbbb040514668cc5cf9a2a289bfbe120e3fae26057e",
|
|
2477
2492
|
"affectsGlobalScope": false
|
|
2478
2493
|
},
|
|
2479
2494
|
"../src/entity/channel.ts": {
|
|
@@ -3591,29 +3606,39 @@
|
|
|
3591
3606
|
"signature": "c146b487aa2b1193f44ede624f867c79ac4c062846ac31e72cc6cd887483a4c1",
|
|
3592
3607
|
"affectsGlobalScope": false
|
|
3593
3608
|
},
|
|
3609
|
+
"../src/migrations/1701763179365-promote_to_qa_05_12_2023.ts": {
|
|
3610
|
+
"version": "f0cb078102059e6e1742ad6680aaedfafcb095d0847cc78083f3a803de19322d",
|
|
3611
|
+
"signature": "abd088990ecf38afd42936b053cecc5afcb925dbaed4ff3726e1c2fe45a499e9",
|
|
3612
|
+
"affectsGlobalScope": false
|
|
3613
|
+
},
|
|
3614
|
+
"../src/migrations/1701763272354-promote_to_prod_05_12_2023.ts": {
|
|
3615
|
+
"version": "ff854b9adeda9923d7d86da883ebe68f4ec059424bcf416b2df8d83bb674d82f",
|
|
3616
|
+
"signature": "b4e6789a3c5e5c6b10023c71c017115219de911cd28ede2047dcc614a8e4fc41",
|
|
3617
|
+
"affectsGlobalScope": false
|
|
3618
|
+
},
|
|
3594
3619
|
"../src/migrations/execute/index.ts": {
|
|
3595
3620
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3596
3621
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3597
3622
|
"affectsGlobalScope": false
|
|
3598
3623
|
},
|
|
3599
3624
|
"../node_modules/@babel/types/lib/index.d.ts": {
|
|
3600
|
-
"version": "
|
|
3601
|
-
"signature": "
|
|
3625
|
+
"version": "f713064ca751dc588bc13832137c418cb70cf0446de92ade60ad631071558fca",
|
|
3626
|
+
"signature": "f713064ca751dc588bc13832137c418cb70cf0446de92ade60ad631071558fca",
|
|
3602
3627
|
"affectsGlobalScope": false
|
|
3603
3628
|
},
|
|
3604
3629
|
"../node_modules/@types/babel__generator/index.d.ts": {
|
|
3605
|
-
"version": "
|
|
3606
|
-
"signature": "
|
|
3630
|
+
"version": "7a1f3d0b8dd0e869c58b44848d9f0be3592c3ff6dc77091e7130306f6d2907ed",
|
|
3631
|
+
"signature": "7a1f3d0b8dd0e869c58b44848d9f0be3592c3ff6dc77091e7130306f6d2907ed",
|
|
3607
3632
|
"affectsGlobalScope": false
|
|
3608
3633
|
},
|
|
3609
3634
|
"../node_modules/@babel/parser/typings/babel-parser.d.ts": {
|
|
3610
|
-
"version": "
|
|
3611
|
-
"signature": "
|
|
3635
|
+
"version": "96c23535f4f9dd15beb767e070559ea672f6a35f103152836a67100605136a96",
|
|
3636
|
+
"signature": "96c23535f4f9dd15beb767e070559ea672f6a35f103152836a67100605136a96",
|
|
3612
3637
|
"affectsGlobalScope": false
|
|
3613
3638
|
},
|
|
3614
3639
|
"../node_modules/@types/babel__template/index.d.ts": {
|
|
3615
|
-
"version": "
|
|
3616
|
-
"signature": "
|
|
3640
|
+
"version": "670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed",
|
|
3641
|
+
"signature": "670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed",
|
|
3617
3642
|
"affectsGlobalScope": false
|
|
3618
3643
|
},
|
|
3619
3644
|
"../node_modules/@types/babel__traverse/index.d.ts": {
|
|
@@ -3622,28 +3647,28 @@
|
|
|
3622
3647
|
"affectsGlobalScope": false
|
|
3623
3648
|
},
|
|
3624
3649
|
"../node_modules/@types/babel__core/index.d.ts": {
|
|
3625
|
-
"version": "
|
|
3626
|
-
"signature": "
|
|
3650
|
+
"version": "3df59a50b6fdd703016b81e254633080b3fa1e9035a462e730235876470d0012",
|
|
3651
|
+
"signature": "3df59a50b6fdd703016b81e254633080b3fa1e9035a462e730235876470d0012",
|
|
3627
3652
|
"affectsGlobalScope": false
|
|
3628
3653
|
},
|
|
3629
3654
|
"../node_modules/@types/graceful-fs/index.d.ts": {
|
|
3630
|
-
"version": "
|
|
3631
|
-
"signature": "
|
|
3655
|
+
"version": "afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5",
|
|
3656
|
+
"signature": "afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5",
|
|
3632
3657
|
"affectsGlobalScope": false
|
|
3633
3658
|
},
|
|
3634
3659
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts": {
|
|
3635
|
-
"version": "
|
|
3636
|
-
"signature": "
|
|
3660
|
+
"version": "035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245",
|
|
3661
|
+
"signature": "035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245",
|
|
3637
3662
|
"affectsGlobalScope": false
|
|
3638
3663
|
},
|
|
3639
3664
|
"../node_modules/@types/istanbul-lib-report/index.d.ts": {
|
|
3640
|
-
"version": "
|
|
3641
|
-
"signature": "
|
|
3665
|
+
"version": "a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54",
|
|
3666
|
+
"signature": "a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54",
|
|
3642
3667
|
"affectsGlobalScope": false
|
|
3643
3668
|
},
|
|
3644
3669
|
"../node_modules/@types/istanbul-reports/index.d.ts": {
|
|
3645
|
-
"version": "
|
|
3646
|
-
"signature": "
|
|
3670
|
+
"version": "5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434",
|
|
3671
|
+
"signature": "5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434",
|
|
3647
3672
|
"affectsGlobalScope": false
|
|
3648
3673
|
},
|
|
3649
3674
|
"../node_modules/jest-diff/build/cleanupsemantic.d.ts": {
|
|
@@ -3687,28 +3712,28 @@
|
|
|
3687
3712
|
"affectsGlobalScope": true
|
|
3688
3713
|
},
|
|
3689
3714
|
"../node_modules/@types/json-schema/index.d.ts": {
|
|
3690
|
-
"version": "
|
|
3691
|
-
"signature": "
|
|
3715
|
+
"version": "f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1",
|
|
3716
|
+
"signature": "f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1",
|
|
3692
3717
|
"affectsGlobalScope": false
|
|
3693
3718
|
},
|
|
3694
3719
|
"../node_modules/@types/prettier/index.d.ts": {
|
|
3695
|
-
"version": "
|
|
3696
|
-
"signature": "
|
|
3720
|
+
"version": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
|
|
3721
|
+
"signature": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
|
|
3697
3722
|
"affectsGlobalScope": false
|
|
3698
3723
|
},
|
|
3699
3724
|
"../node_modules/@types/stack-utils/index.d.ts": {
|
|
3700
|
-
"version": "
|
|
3701
|
-
"signature": "
|
|
3725
|
+
"version": "ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66",
|
|
3726
|
+
"signature": "ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66",
|
|
3702
3727
|
"affectsGlobalScope": false
|
|
3703
3728
|
},
|
|
3704
3729
|
"../node_modules/@types/yargs-parser/index.d.ts": {
|
|
3705
|
-
"version": "
|
|
3706
|
-
"signature": "
|
|
3730
|
+
"version": "bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960",
|
|
3731
|
+
"signature": "bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960",
|
|
3707
3732
|
"affectsGlobalScope": false
|
|
3708
3733
|
},
|
|
3709
3734
|
"../node_modules/@types/yargs/index.d.ts": {
|
|
3710
|
-
"version": "
|
|
3711
|
-
"signature": "
|
|
3735
|
+
"version": "4759c76b46ffcc82dab09654ae64aac3ed5ef1155807df34c3d9708243a53f9f",
|
|
3736
|
+
"signature": "4759c76b46ffcc82dab09654ae64aac3ed5ef1155807df34c3d9708243a53f9f",
|
|
3712
3737
|
"affectsGlobalScope": false
|
|
3713
3738
|
},
|
|
3714
3739
|
"../node_modules/@types/zen-observable/index.d.ts": {
|
|
@@ -3819,7 +3844,8 @@
|
|
|
3819
3844
|
"../node_modules/@types/node/http.d.ts",
|
|
3820
3845
|
"../node_modules/@types/node/index.d.ts",
|
|
3821
3846
|
"../node_modules/@types/qs/index.d.ts",
|
|
3822
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
3847
|
+
"../node_modules/@types/range-parser/index.d.ts",
|
|
3848
|
+
"../node_modules/@types/send/index.d.ts"
|
|
3823
3849
|
],
|
|
3824
3850
|
"../node_modules/@types/express/index.d.ts": [
|
|
3825
3851
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -4017,7 +4043,14 @@
|
|
|
4017
4043
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
4018
4044
|
"../node_modules/@types/node/stream.d.ts"
|
|
4019
4045
|
],
|
|
4046
|
+
"../node_modules/@types/send/index.d.ts": [
|
|
4047
|
+
"../node_modules/@types/node/fs.d.ts",
|
|
4048
|
+
"../node_modules/@types/node/index.d.ts",
|
|
4049
|
+
"../node_modules/@types/node/stream.d.ts",
|
|
4050
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
4051
|
+
],
|
|
4020
4052
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
4053
|
+
"../node_modules/@types/http-errors/index.d.ts",
|
|
4021
4054
|
"../node_modules/@types/mime/index.d.ts",
|
|
4022
4055
|
"../node_modules/@types/node/http.d.ts",
|
|
4023
4056
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -6644,6 +6677,12 @@
|
|
|
6644
6677
|
"../src/migrations/1701109844785-oda-and-wolt-deleted.ts": [
|
|
6645
6678
|
"../node_modules/typeorm/index.d.ts"
|
|
6646
6679
|
],
|
|
6680
|
+
"../src/migrations/1701763179365-promote_to_qa_05_12_2023.ts": [
|
|
6681
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6682
|
+
],
|
|
6683
|
+
"../src/migrations/1701763272354-promote_to_prod_05_12_2023.ts": [
|
|
6684
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6685
|
+
],
|
|
6647
6686
|
"../src/migrations/execute/index.ts": [
|
|
6648
6687
|
"../src/config/connect.ts"
|
|
6649
6688
|
],
|
|
@@ -6892,7 +6931,8 @@
|
|
|
6892
6931
|
"../node_modules/@types/node/http.d.ts",
|
|
6893
6932
|
"../node_modules/@types/node/index.d.ts",
|
|
6894
6933
|
"../node_modules/@types/qs/index.d.ts",
|
|
6895
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
6934
|
+
"../node_modules/@types/range-parser/index.d.ts",
|
|
6935
|
+
"../node_modules/@types/send/index.d.ts"
|
|
6896
6936
|
],
|
|
6897
6937
|
"../node_modules/@types/express/index.d.ts": [
|
|
6898
6938
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -7090,7 +7130,14 @@
|
|
|
7090
7130
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
7091
7131
|
"../node_modules/@types/node/stream.d.ts"
|
|
7092
7132
|
],
|
|
7133
|
+
"../node_modules/@types/send/index.d.ts": [
|
|
7134
|
+
"../node_modules/@types/node/fs.d.ts",
|
|
7135
|
+
"../node_modules/@types/node/index.d.ts",
|
|
7136
|
+
"../node_modules/@types/node/stream.d.ts",
|
|
7137
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
7138
|
+
],
|
|
7093
7139
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
7140
|
+
"../node_modules/@types/http-errors/index.d.ts",
|
|
7094
7141
|
"../node_modules/@types/mime/index.d.ts",
|
|
7095
7142
|
"../node_modules/@types/node/http.d.ts",
|
|
7096
7143
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -9552,6 +9599,12 @@
|
|
|
9552
9599
|
"../src/migrations/1701109844785-oda-and-wolt-deleted.ts": [
|
|
9553
9600
|
"../node_modules/typeorm/index.d.ts"
|
|
9554
9601
|
],
|
|
9602
|
+
"../src/migrations/1701763179365-promote_to_qa_05_12_2023.ts": [
|
|
9603
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9604
|
+
],
|
|
9605
|
+
"../src/migrations/1701763272354-promote_to_prod_05_12_2023.ts": [
|
|
9606
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9607
|
+
],
|
|
9555
9608
|
"../src/migrations/index.ts": [
|
|
9556
9609
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9557
9610
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9740,6 +9793,7 @@
|
|
|
9740
9793
|
"../node_modules/@types/express-serve-static-core/index.d.ts",
|
|
9741
9794
|
"../node_modules/@types/express/index.d.ts",
|
|
9742
9795
|
"../node_modules/@types/graceful-fs/index.d.ts",
|
|
9796
|
+
"../node_modules/@types/http-errors/index.d.ts",
|
|
9743
9797
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts",
|
|
9744
9798
|
"../node_modules/@types/istanbul-lib-report/index.d.ts",
|
|
9745
9799
|
"../node_modules/@types/istanbul-reports/index.d.ts",
|
|
@@ -9797,6 +9851,8 @@
|
|
|
9797
9851
|
"../node_modules/@types/prettier/index.d.ts",
|
|
9798
9852
|
"../node_modules/@types/qs/index.d.ts",
|
|
9799
9853
|
"../node_modules/@types/range-parser/index.d.ts",
|
|
9854
|
+
"../node_modules/@types/send/index.d.ts",
|
|
9855
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts",
|
|
9800
9856
|
"../node_modules/@types/serve-static/index.d.ts",
|
|
9801
9857
|
"../node_modules/@types/stack-utils/index.d.ts",
|
|
9802
9858
|
"../node_modules/@types/yargs-parser/index.d.ts",
|
|
@@ -10427,6 +10483,8 @@
|
|
|
10427
10483
|
"../src/migrations/1700574103856-subscription-response-max.ts",
|
|
10428
10484
|
"../src/migrations/1700597907034-product-digital-reachu.ts",
|
|
10429
10485
|
"../src/migrations/1701109844785-oda-and-wolt-deleted.ts",
|
|
10486
|
+
"../src/migrations/1701763179365-promote_to_qa_05_12_2023.ts",
|
|
10487
|
+
"../src/migrations/1701763272354-promote_to_prod_05_12_2023.ts",
|
|
10430
10488
|
"../src/migrations/execute/index.ts",
|
|
10431
10489
|
"../src/migrations/index.ts",
|
|
10432
10490
|
"../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.139",
|
|
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.139",
|
|
25
|
+
"@reachu/utils": "1.0.139",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -32,9 +32,12 @@ export default class ChannelUser extends AuditedModel {
|
|
|
32
32
|
@Column('boolean', { nullable: true, default: true })
|
|
33
33
|
active: boolean;
|
|
34
34
|
|
|
35
|
-
@Column('boolean', { nullable: true, default:
|
|
35
|
+
@Column('boolean', { nullable: true, default: false })
|
|
36
36
|
useMessagingQueue?: boolean;
|
|
37
37
|
|
|
38
|
+
@Column('boolean', { nullable: true, default: true })
|
|
39
|
+
useStorageForDigitalProduct?: boolean;
|
|
40
|
+
|
|
38
41
|
@ManyToOne(() => User, (user) => user.id, { onDelete: 'CASCADE' })
|
|
39
42
|
@JoinColumn()
|
|
40
43
|
user: User;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class promoteToQa051220231701763179365 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToQa051220231701763179365'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`order_item\` CHANGE \`variant_title\` \`variant_title\` varchar(255) NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`order_item\` CHANGE \`variant_title\` \`variant_title\` varchar(255) NOT NULL DEFAULT ''`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class promoteToProd051220231701763272354 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToProd051220231701763272354'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`wolt_id\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`oda_id\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`file_url_reachu\` text NULL`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`order_item\` CHANGE \`variant_title\` \`variant_title\` varchar(255) NOT NULL`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`subscription\` DROP COLUMN \`response\``);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`subscription\` ADD \`response\` varchar(21844) NULL`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`subscription\` DROP COLUMN \`response\``);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`subscription\` ADD \`response\` varchar(255) NULL`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`order_item\` CHANGE \`variant_title\` \`variant_title\` varchar(255) NOT NULL DEFAULT ''`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`file_url_reachu\``);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`user\` ADD \`oda_id\` varchar(255) NULL`);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`wolt_id\` varchar(255) NULL`);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|