@reachu/database 1.0.176 → 1.0.178
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/ImportedProduct.d.ts +2 -0
- package/dist/entity/ImportedProduct.js +8 -0
- package/dist/entity/ImportedProduct.js.map +1 -1
- package/dist/migrations/1714738807306-product_scraping_v1.d.ts +6 -0
- package/dist/migrations/1714738807306-product_scraping_v1.js +33 -0
- package/dist/migrations/1714738807306-product_scraping_v1.js.map +1 -0
- package/dist/migrations/1714750466062-product_scraping_v2.d.ts +6 -0
- package/dist/migrations/1714750466062-product_scraping_v2.js +29 -0
- package/dist/migrations/1714750466062-product_scraping_v2.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +26 -2
- package/package.json +3 -3
- package/src/entity/ImportedProduct.ts +6 -0
- package/src/migrations/1714738807306-product_scraping_v1.ts +18 -0
- package/src/migrations/1714750466062-product_scraping_v2.ts +14 -0
|
@@ -53,6 +53,14 @@ __decorate([
|
|
|
53
53
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], ImportedProduct.prototype, "profileMagentoId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ImportedProduct.prototype, "scrapingId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ImportedProduct.prototype, "scrapingUrl", void 0);
|
|
56
64
|
__decorate([
|
|
57
65
|
typeorm_1.Column('bigint', { nullable: true }),
|
|
58
66
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,qDAA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AM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACtB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACf;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAChB;AAItB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,qBAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,oBAAU,EAAE;8BACA,qBAAW;oDAAC;AAIzB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,qBAAW,EAAE,CAAC,IAAiB,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC5F,oBAAU,EAAE;;oDACc;AAG3B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACN;AAzDb,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CA0DnC;kBA1DoB,eAAe"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.productScrapingV11714738807306 = void 0;
|
|
13
|
+
class productScrapingV11714738807306 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'productScrapingV11714738807306';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`url\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`urls\` varchar(255) NOT NULL`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`scraper\` varchar(21844) NULL`);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
down(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`scraper\``);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`urls\``);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`url\` varchar(255) NOT NULL`);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.productScrapingV11714738807306 = productScrapingV11714738807306;
|
|
33
|
+
//# sourceMappingURL=1714738807306-product_scraping_v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1714738807306-product_scraping_v1.js","sourceRoot":"","sources":["../../src/migrations/1714738807306-product_scraping_v1.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACI,SAAI,GAAG,gCAAgC,CAAA;IAc3C,CAAC;IAZgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;YAChF,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;QACpG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;YACpF,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;QAClG,CAAC;KAAA;CAEJ;AAfD,wEAeC"}
|
|
@@ -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.productScrapingV21714750466062 = void 0;
|
|
13
|
+
class productScrapingV21714750466062 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'productScrapingV21714750466062';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_id\` varchar(255) NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_id\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.productScrapingV21714750466062 = productScrapingV21714750466062;
|
|
29
|
+
//# sourceMappingURL=1714750466062-product_scraping_v2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1714750466062-product_scraping_v2.js","sourceRoot":"","sources":["../../src/migrations/1714750466062-product_scraping_v2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACI,SAAI,GAAG,gCAAgC,CAAA;IAU3C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,wEAAwE,CAAC,CAAC;QACtG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAC5F,CAAC;KAAA;CAEJ;AAXD,wEAWC"}
|
|
@@ -2442,8 +2442,8 @@
|
|
|
2442
2442
|
"affectsGlobalScope": false
|
|
2443
2443
|
},
|
|
2444
2444
|
"../src/entity/importedproduct.ts": {
|
|
2445
|
-
"version": "
|
|
2446
|
-
"signature": "
|
|
2445
|
+
"version": "b5c22ca0cbe741a4da47a5a634e36d05af351cfb253fbb2220c7654aec53b260",
|
|
2446
|
+
"signature": "4475d00d18bdfb389078f4f3b6378a980a2d95d0391e91e3683faef3e7503ffb",
|
|
2447
2447
|
"affectsGlobalScope": false
|
|
2448
2448
|
},
|
|
2449
2449
|
"../src/staticdata/currency.ts": {
|
|
@@ -3781,6 +3781,16 @@
|
|
|
3781
3781
|
"signature": "1e846637f4ec9fefa58c3206b0469c64235194c563e3feb852cc49f2499ce9e5",
|
|
3782
3782
|
"affectsGlobalScope": false
|
|
3783
3783
|
},
|
|
3784
|
+
"../src/migrations/1714738807306-product_scraping_v1.ts": {
|
|
3785
|
+
"version": "5486326009923173cf08a70ba4963eb9b9eeebffc29131bd37598a57c92ea1b3",
|
|
3786
|
+
"signature": "53f75ea1ef2173cdfac34107fa023846615e40a96da15070575b9538e764e71f",
|
|
3787
|
+
"affectsGlobalScope": false
|
|
3788
|
+
},
|
|
3789
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts": {
|
|
3790
|
+
"version": "b70b85704085bab7140ae5fcdf8528a74f1d50d8edd83c0e416e1cf293352d4d",
|
|
3791
|
+
"signature": "9e2944ebc04eb849a1b424ba5638b9721b405bd1dfd0607272d493cb410e288d",
|
|
3792
|
+
"affectsGlobalScope": false
|
|
3793
|
+
},
|
|
3784
3794
|
"../src/migrations/execute/index.ts": {
|
|
3785
3795
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3786
3796
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6971,6 +6981,12 @@
|
|
|
6971
6981
|
"../src/migrations/1714443774788-product_scraping.ts": [
|
|
6972
6982
|
"../node_modules/typeorm/index.d.ts"
|
|
6973
6983
|
],
|
|
6984
|
+
"../src/migrations/1714738807306-product_scraping_v1.ts": [
|
|
6985
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6986
|
+
],
|
|
6987
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts": [
|
|
6988
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6989
|
+
],
|
|
6974
6990
|
"../src/migrations/execute/index.ts": [
|
|
6975
6991
|
"../src/config/connect.ts"
|
|
6976
6992
|
],
|
|
@@ -10013,6 +10029,12 @@
|
|
|
10013
10029
|
"../src/migrations/1714443774788-product_scraping.ts": [
|
|
10014
10030
|
"../node_modules/typeorm/index.d.ts"
|
|
10015
10031
|
],
|
|
10032
|
+
"../src/migrations/1714738807306-product_scraping_v1.ts": [
|
|
10033
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10034
|
+
],
|
|
10035
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts": [
|
|
10036
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10037
|
+
],
|
|
10016
10038
|
"../src/migrations/index.ts": [
|
|
10017
10039
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10018
10040
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10932,6 +10954,8 @@
|
|
|
10932
10954
|
"../src/migrations/1714142019591-order-confirmation-email.ts",
|
|
10933
10955
|
"../src/migrations/1714169905823-cart-channel-user.ts",
|
|
10934
10956
|
"../src/migrations/1714443774788-product_scraping.ts",
|
|
10957
|
+
"../src/migrations/1714738807306-product_scraping_v1.ts",
|
|
10958
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts",
|
|
10935
10959
|
"../src/migrations/execute/index.ts",
|
|
10936
10960
|
"../src/migrations/index.ts",
|
|
10937
10961
|
"../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.178",
|
|
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.178",
|
|
25
|
+
"@reachu/utils": "1.0.178",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -40,6 +40,12 @@ export default class ImportedProduct {
|
|
|
40
40
|
@Column('varchar', { nullable: true })
|
|
41
41
|
profileMagentoId?: string;
|
|
42
42
|
|
|
43
|
+
@Column('varchar', { nullable: true })
|
|
44
|
+
scrapingId?: string;
|
|
45
|
+
|
|
46
|
+
@Column('varchar', { nullable: true })
|
|
47
|
+
scrapingUrl?: string;
|
|
48
|
+
|
|
43
49
|
@Column('bigint', { nullable: true })
|
|
44
50
|
wooId?: number;
|
|
45
51
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class productScrapingV11714738807306 implements MigrationInterface {
|
|
4
|
+
name = 'productScrapingV11714738807306'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`url\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`urls\` varchar(255) NOT NULL`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`scraper\` varchar(21844) NULL`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`scraper\``);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`urls\``);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`url\` varchar(255) NOT NULL`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class productScrapingV21714750466062 implements MigrationInterface {
|
|
4
|
+
name = 'productScrapingV21714750466062'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_id\` varchar(255) NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_id\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|