@reachu/database 1.0.178 → 1.0.179

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.
@@ -7,5 +7,6 @@ export default class ProductScraping extends AuditedModel {
7
7
  status: string;
8
8
  properties: string;
9
9
  scraper: string;
10
+ productIds: string;
10
11
  user: User;
11
12
  }
@@ -41,6 +41,10 @@ __decorate([
41
41
  typeorm_1.Column('varchar', { length: '21844', nullable: true }),
42
42
  __metadata("design:type", String)
43
43
  ], ProductScraping.prototype, "scraper", void 0);
44
+ __decorate([
45
+ typeorm_1.Column('varchar', { length: '21844', nullable: true }),
46
+ __metadata("design:type", String)
47
+ ], ProductScraping.prototype, "productIds", void 0);
44
48
  __decorate([
45
49
  typeorm_1.ManyToOne(() => User_1.default, { eager: true }),
46
50
  typeorm_1.JoinColumn(),
@@ -1 +1 @@
1
- {"version":3,"file":"ProductScraping.js","sourceRoot":"","sources":["../../src/entity/ProductScraping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,kDAA0B;AAC1B,kEAA0C;AAG1C,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAsBxD,CAAA;AApBC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,CAAC;;6CACL;AAGb;IADC,gBAAM,CAAC,SAAS,CAAC;;+CACH;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpC;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACvC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtC,oBAAU,EAAE;8BACP,cAAI;6CAAC;AArBQ,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAsBnC;kBAtBoB,eAAe"}
1
+ {"version":3,"file":"ProductScraping.js","sourceRoot":"","sources":["../../src/entity/ProductScraping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,kDAA0B;AAC1B,kEAA0C;AAG1C,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAyBxD,CAAA;AAvBC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,CAAC;;6CACL;AAGb;IADC,gBAAM,CAAC,SAAS,CAAC;;+CACH;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpC;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACvC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpC;AAInB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtC,oBAAU,EAAE;8BACP,cAAI;6CAAC;AAxBQ,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAyBnC;kBAzBoB,eAAe"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class productScrapingV31714751423591 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.productScrapingV31714751423591 = void 0;
13
+ class productScrapingV31714751423591 {
14
+ constructor() {
15
+ this.name = 'productScrapingV31714751423591';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_url\` 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_url\``);
25
+ });
26
+ }
27
+ }
28
+ exports.productScrapingV31714751423591 = productScrapingV31714751423591;
29
+ //# sourceMappingURL=1714751423591-product_scraping_v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1714751423591-product_scraping_v3.js","sourceRoot":"","sources":["../../src/migrations/1714751423591-product_scraping_v3.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACI,SAAI,GAAG,gCAAgC,CAAA;IAU3C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAC;QACvG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;QAC7F,CAAC;KAAA;CAEJ;AAXD,wEAWC"}
@@ -2797,8 +2797,8 @@
2797
2797
  "affectsGlobalScope": false
2798
2798
  },
2799
2799
  "../src/entity/productscraping.ts": {
2800
- "version": "99f4a1ac5703af82798097d2bbe5fc8e48ef86795d20eb89a8bf74e6413b972d",
2801
- "signature": "a74ca82c5eda95c66ac02acdfde265581be12d96723d167e315518d8c76df6ac",
2800
+ "version": "9a6b59f8a73069dd7df5d74a79011f9f2129a6440486162a44970118d0830f53",
2801
+ "signature": "b0338550762d5825a86366aa80b317e1f418648a94ae33e04edeaec409a1ebfc",
2802
2802
  "affectsGlobalScope": false
2803
2803
  },
2804
2804
  "../src/entity/index.ts": {
@@ -3791,6 +3791,11 @@
3791
3791
  "signature": "9e2944ebc04eb849a1b424ba5638b9721b405bd1dfd0607272d493cb410e288d",
3792
3792
  "affectsGlobalScope": false
3793
3793
  },
3794
+ "../src/migrations/1714751423591-product_scraping_v3.ts": {
3795
+ "version": "b4df9f69c2f023f81478ddc200abe8abc38867e50cd3115bd990262b470d2034",
3796
+ "signature": "97a8de36b3df968d7d6e6df67e79c75c5b66eb61a0e9d5aa7c3e50af18200280",
3797
+ "affectsGlobalScope": false
3798
+ },
3794
3799
  "../src/migrations/execute/index.ts": {
3795
3800
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3796
3801
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -6987,6 +6992,9 @@
6987
6992
  "../src/migrations/1714750466062-product_scraping_v2.ts": [
6988
6993
  "../node_modules/typeorm/index.d.ts"
6989
6994
  ],
6995
+ "../src/migrations/1714751423591-product_scraping_v3.ts": [
6996
+ "../node_modules/typeorm/index.d.ts"
6997
+ ],
6990
6998
  "../src/migrations/execute/index.ts": [
6991
6999
  "../src/config/connect.ts"
6992
7000
  ],
@@ -10035,6 +10043,9 @@
10035
10043
  "../src/migrations/1714750466062-product_scraping_v2.ts": [
10036
10044
  "../node_modules/typeorm/index.d.ts"
10037
10045
  ],
10046
+ "../src/migrations/1714751423591-product_scraping_v3.ts": [
10047
+ "../node_modules/typeorm/index.d.ts"
10048
+ ],
10038
10049
  "../src/migrations/index.ts": [
10039
10050
  "../src/migrations/1628474597284-initialschema.ts",
10040
10051
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -10956,6 +10967,7 @@
10956
10967
  "../src/migrations/1714443774788-product_scraping.ts",
10957
10968
  "../src/migrations/1714738807306-product_scraping_v1.ts",
10958
10969
  "../src/migrations/1714750466062-product_scraping_v2.ts",
10970
+ "../src/migrations/1714751423591-product_scraping_v3.ts",
10959
10971
  "../src/migrations/execute/index.ts",
10960
10972
  "../src/migrations/index.ts",
10961
10973
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
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.178",
25
- "@reachu/utils": "1.0.178",
24
+ "@reachu/logger": "1.0.179",
25
+ "@reachu/utils": "1.0.179",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -29,6 +29,9 @@ export default class ProductScraping extends AuditedModel {
29
29
  @Column('varchar', { length: '21844', nullable: true })
30
30
  scraper: string;
31
31
 
32
+ @Column('varchar', { length: '21844', nullable: true })
33
+ productIds: string;
34
+
32
35
  @ManyToOne(() => User, { eager: true })
33
36
  @JoinColumn()
34
37
  user: User;
@@ -0,0 +1,14 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class productScrapingV31714751423591 implements MigrationInterface {
4
+ name = 'productScrapingV31714751423591'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_url\` varchar(255) NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_url\``);
12
+ }
13
+
14
+ }