@reachu/database 1.0.154 → 1.0.156

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.
@@ -17,4 +17,5 @@ export default class ImportedProduct {
17
17
  profileWooId?: string;
18
18
  channelUser: ChannelUser;
19
19
  magentoBulk: MagentoBulk[];
20
+ bulkStage?: number;
20
21
  }
@@ -79,6 +79,10 @@ __decorate([
79
79
  typeorm_1.JoinColumn(),
80
80
  __metadata("design:type", Array)
81
81
  ], ImportedProduct.prototype, "magentoBulk", void 0);
82
+ __decorate([
83
+ typeorm_1.Column('integer', { nullable: true }),
84
+ __metadata("design:type", Number)
85
+ ], ImportedProduct.prototype, "bulkStage", void 0);
82
86
  ImportedProduct = __decorate([
83
87
  typeorm_1.Entity()
84
88
  ], ImportedProduct);
@@ -1 +1 @@
1
- {"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AACxC,gEAAwC;AAGxC,IAAqB,eAAe,GAApC,MAAqB,eAAe;CA8CnC,CAAA;AA5CC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC3D,oBAAU,EAAE;8BACP,cAAI;6CAAC;AAIX;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9D,oBAAU,EAAE;8BACJ,wBAAO;gDAAC;AAGjB;IADC,gBAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAClB;AAGnB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,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;AAhDA,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAiDnC;kBAjDoB,eAAe"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class promoteToProd2612231703611484454 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,31 @@
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.promoteToProd2612231703611484454 = void 0;
13
+ class promoteToProd2612231703611484454 {
14
+ constructor() {
15
+ this.name = 'promoteToProd2612231703611484454';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE \`magento_bulk\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`uuid\` varchar(255) NULL, \`action\` varchar(255) NULL, \`imported_product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
20
+ yield queryRunner.query(`ALTER TABLE \`magento_bulk\` ADD CONSTRAINT \`FK_04a3ebffec96589609badc811e6\` FOREIGN KEY (\`imported_product_id\`) REFERENCES \`imported_product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
21
+ });
22
+ }
23
+ down(queryRunner) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ yield queryRunner.query(`ALTER TABLE \`magento_bulk\` DROP FOREIGN KEY \`FK_04a3ebffec96589609badc811e6\``);
26
+ yield queryRunner.query(`DROP TABLE \`magento_bulk\``);
27
+ });
28
+ }
29
+ }
30
+ exports.promoteToProd2612231703611484454 = promoteToProd2612231703611484454;
31
+ //# sourceMappingURL=1703611484454-promote_to_prod_26_12_23.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1703611484454-promote_to_prod_26_12_23.js","sourceRoot":"","sources":["../../src/migrations/1703611484454-promote_to_prod_26_12_23.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAY7C,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,wYAAwY,CAAC,CAAC;YACla,MAAM,WAAW,CAAC,KAAK,CAAC,sMAAsM,CAAC,CAAC;QACpO,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAC3D,CAAC;KAAA;CAEJ;AAbD,4EAaC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class promoteToProd2712231703725615747 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.promoteToProd2712231703725615747 = void 0;
13
+ class promoteToProd2712231703725615747 {
14
+ constructor() {
15
+ this.name = 'promoteToProd2712231703725615747';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`bulk_stage\` int NULL`);
20
+ });
21
+ }
22
+ down(queryRunner) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`bulk_stage\``);
25
+ });
26
+ }
27
+ }
28
+ exports.promoteToProd2712231703725615747 = promoteToProd2712231703725615747;
29
+ //# sourceMappingURL=1703725615747-promote_to_prod_27_12_23.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1703725615747-promote_to_prod_27_12_23.js","sourceRoot":"","sources":["../../src/migrations/1703725615747-promote_to_prod_27_12_23.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAU7C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QACxF,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;QACvF,CAAC;KAAA;CAEJ;AAXD,4EAWC"}
@@ -2442,8 +2442,8 @@
2442
2442
  "affectsGlobalScope": false
2443
2443
  },
2444
2444
  "../src/entity/importedproduct.ts": {
2445
- "version": "bad54721ea5016dc92d27eb3a73367d91f808504f98c6ba438a27d7219a25d39",
2446
- "signature": "0cae2a58ab03f2e6a12e3d4469d87796c5cf3ee16218523b59289600c923c49e",
2445
+ "version": "96cee15ec2028dc0cbc319897a7f0b4d91efc690c62a528a34e864565b72597c",
2446
+ "signature": "10b64e1a0e4cf163173b2d7083d14380548ece813550aa71fdeb4e95573e660f",
2447
2447
  "affectsGlobalScope": false
2448
2448
  },
2449
2449
  "../src/staticdata/currency.ts": {
@@ -3666,6 +3666,16 @@
3666
3666
  "signature": "b7ed013058ad058892c10351170d8dd95777ac0ac5239634cf0cec0ce263f1ee",
3667
3667
  "affectsGlobalScope": false
3668
3668
  },
3669
+ "../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": {
3670
+ "version": "994e40b8eb712947c12db79b70c89c800f31faee445ef86d3d6c627a35ce00d1",
3671
+ "signature": "36b65a4e33f8f4a69497891a210171c189532b9173c71074cfeffd755d74cd14",
3672
+ "affectsGlobalScope": false
3673
+ },
3674
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts": {
3675
+ "version": "6decd9105a061596e8cb44188980a55a7356471e701016ddc47c521b49773cdd",
3676
+ "signature": "6b7052b6681d2d592abe056c191e3f5ea5a294861ad8767963f2a8c5b4397e63",
3677
+ "affectsGlobalScope": false
3678
+ },
3669
3679
  "../src/migrations/execute/index.ts": {
3670
3680
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3671
3681
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -6771,6 +6781,12 @@
6771
6781
  "../src/migrations/1703602386185-magento-bulk.ts": [
6772
6782
  "../node_modules/typeorm/index.d.ts"
6773
6783
  ],
6784
+ "../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": [
6785
+ "../node_modules/typeorm/index.d.ts"
6786
+ ],
6787
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts": [
6788
+ "../node_modules/typeorm/index.d.ts"
6789
+ ],
6774
6790
  "../src/migrations/execute/index.ts": [
6775
6791
  "../src/config/connect.ts"
6776
6792
  ],
@@ -9731,6 +9747,12 @@
9731
9747
  "../src/migrations/1703602386185-magento-bulk.ts": [
9732
9748
  "../node_modules/typeorm/index.d.ts"
9733
9749
  ],
9750
+ "../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": [
9751
+ "../node_modules/typeorm/index.d.ts"
9752
+ ],
9753
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts": [
9754
+ "../node_modules/typeorm/index.d.ts"
9755
+ ],
9734
9756
  "../src/migrations/index.ts": [
9735
9757
  "../src/migrations/1628474597284-initialschema.ts",
9736
9758
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -10623,6 +10645,8 @@
10623
10645
  "../src/migrations/1702310388602-order-channel-order-name-default.ts",
10624
10646
  "../src/migrations/1702403624303-promote_to_prod_12_12_23.ts",
10625
10647
  "../src/migrations/1703602386185-magento-bulk.ts",
10648
+ "../src/migrations/1703611484454-promote_to_prod_26_12_23.ts",
10649
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts",
10626
10650
  "../src/migrations/execute/index.ts",
10627
10651
  "../src/migrations/index.ts",
10628
10652
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.154",
3
+ "version": "1.0.156",
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.154",
25
- "@reachu/utils": "1.0.154",
24
+ "@reachu/logger": "1.0.156",
25
+ "@reachu/utils": "1.0.156",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -59,4 +59,7 @@ export default class ImportedProduct {
59
59
  @OneToMany(() => MagentoBulk, (item: MagentoBulk) => item.importedProduct, { cascade: true })
60
60
  @JoinColumn()
61
61
  magentoBulk: MagentoBulk[];
62
+
63
+ @Column('integer', { nullable: true })
64
+ bulkStage?: number;
62
65
  }
@@ -0,0 +1,16 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class promoteToProd2612231703611484454 implements MigrationInterface {
4
+ name = 'promoteToProd2612231703611484454'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`CREATE TABLE \`magento_bulk\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`uuid\` varchar(255) NULL, \`action\` varchar(255) NULL, \`imported_product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
8
+ await queryRunner.query(`ALTER TABLE \`magento_bulk\` ADD CONSTRAINT \`FK_04a3ebffec96589609badc811e6\` FOREIGN KEY (\`imported_product_id\`) REFERENCES \`imported_product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
+ }
10
+
11
+ public async down(queryRunner: QueryRunner): Promise<void> {
12
+ await queryRunner.query(`ALTER TABLE \`magento_bulk\` DROP FOREIGN KEY \`FK_04a3ebffec96589609badc811e6\``);
13
+ await queryRunner.query(`DROP TABLE \`magento_bulk\``);
14
+ }
15
+
16
+ }
@@ -0,0 +1,14 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class promoteToProd2712231703725615747 implements MigrationInterface {
4
+ name = 'promoteToProd2712231703725615747'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`bulk_stage\` int NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`bulk_stage\``);
12
+ }
13
+
14
+ }