@reachu/database 1.0.155 → 1.0.157

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.
Files changed (26) hide show
  1. package/dist/entity/ChannelUser.d.ts +0 -1
  2. package/dist/entity/ChannelUser.js +0 -4
  3. package/dist/entity/ChannelUser.js.map +1 -1
  4. package/dist/entity/ImportedProduct.d.ts +2 -0
  5. package/dist/entity/ImportedProduct.js +8 -0
  6. package/dist/entity/ImportedProduct.js.map +1 -1
  7. package/dist/migrations/1703725615747-promote_to_prod_27_12_23.d.ts +6 -0
  8. package/dist/migrations/1703725615747-promote_to_prod_27_12_23.js +29 -0
  9. package/dist/migrations/1703725615747-promote_to_prod_27_12_23.js.map +1 -0
  10. package/dist/migrations/1703726009902-promote_to_prod_27_12_23__01.d.ts +6 -0
  11. package/dist/migrations/1703726009902-promote_to_prod_27_12_23__01.js +31 -0
  12. package/dist/migrations/1703726009902-promote_to_prod_27_12_23__01.js.map +1 -0
  13. package/dist/migrations/1703783765081-promote_to_qa_28_12_23__01.d.ts +6 -0
  14. package/dist/migrations/1703783765081-promote_to_qa_28_12_23__01.js +29 -0
  15. package/dist/migrations/1703783765081-promote_to_qa_28_12_23__01.js.map +1 -0
  16. package/dist/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.d.ts +6 -0
  17. package/dist/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.js +29 -0
  18. package/dist/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.js.map +1 -0
  19. package/dist/tsconfig.tsbuildinfo +52 -4
  20. package/package.json +3 -3
  21. package/src/entity/ChannelUser.ts +0 -3
  22. package/src/entity/ImportedProduct.ts +6 -0
  23. package/src/migrations/1703725615747-promote_to_prod_27_12_23.ts +14 -0
  24. package/src/migrations/1703726009902-promote_to_prod_27_12_23__01.ts +16 -0
  25. package/src/migrations/1703783765081-promote_to_qa_28_12_23__01.ts +14 -0
  26. package/src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts +14 -0
@@ -23,5 +23,4 @@ export default class ChannelUser extends AuditedModel {
23
23
  magentoConnection: MagentoConnection;
24
24
  userChannelApiKey: UserChannelApiKey;
25
25
  testOrigen: boolean;
26
- bulkStage?: number;
27
26
  }
@@ -104,10 +104,6 @@ __decorate([
104
104
  typeorm_1.Column('boolean', { default: false }),
105
105
  __metadata("design:type", Boolean)
106
106
  ], ChannelUser.prototype, "testOrigen", void 0);
107
- __decorate([
108
- typeorm_1.Column('integer', { nullable: true }),
109
- __metadata("design:type", Number)
110
- ], ChannelUser.prototype, "bulkStage", void 0);
111
107
  ChannelUser = __decorate([
112
108
  typeorm_1.Entity()
113
109
  ], ChannelUser);
@@ -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;CAwEpD,CAAA;AAtEC;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;;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E,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;AAGrC;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CAClB;AApED,WAAW;IAD/B,gBAAM,EAAE;GACY,WAAW,CAqE/B;kBArEoB,WAAW"}
@@ -17,4 +17,6 @@ export default class ImportedProduct {
17
17
  profileWooId?: string;
18
18
  channelUser: ChannelUser;
19
19
  magentoBulk: MagentoBulk[];
20
+ bulkStage?: number;
21
+ bulkStageStatusMessage?: string;
20
22
  }
@@ -79,6 +79,14 @@ __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);
86
+ __decorate([
87
+ typeorm_1.Column('varchar', { nullable: true }),
88
+ __metadata("design:type", String)
89
+ ], ImportedProduct.prototype, "bulkStageStatusMessage", void 0);
82
90
  ImportedProduct = __decorate([
83
91
  typeorm_1.Entity()
84
92
  ], 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,e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AAE,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;AAnDb,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAoDnC;kBApDoB,eAAe"}
@@ -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"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class promoteToProd271223_011703726009902 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.promoteToProd271223_011703726009902 = void 0;
13
+ class promoteToProd271223_011703726009902 {
14
+ constructor() {
15
+ this.name = 'promoteToProd271223_011703726009902';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`bulk_stage\``);
20
+ yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`bulk_stage\` int NULL`);
21
+ });
22
+ }
23
+ down(queryRunner) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`bulk_stage\``);
26
+ yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`bulk_stage\` int NULL`);
27
+ });
28
+ }
29
+ }
30
+ exports.promoteToProd271223_011703726009902 = promoteToProd271223_011703726009902;
31
+ //# sourceMappingURL=1703726009902-promote_to_prod_27_12_23__01.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1703726009902-promote_to_prod_27_12_23__01.js","sourceRoot":"","sources":["../../src/migrations/1703726009902-promote_to_prod_27_12_23__01.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,mCAAmC;IAAhD;QACI,SAAI,GAAG,qCAAqC,CAAA;IAYhD,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;YACnF,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAC5F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;YACvF,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QACxF,CAAC;KAAA;CAEJ;AAbD,kFAaC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class promoteToQa281223_011703783765081 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.promoteToQa281223_011703783765081 = void 0;
13
+ class promoteToQa281223_011703783765081 {
14
+ constructor() {
15
+ this.name = 'promoteToQa281223_011703783765081';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`imported_product\` 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 \`imported_product\` DROP COLUMN \`bulk_stage\``);
25
+ });
26
+ }
27
+ }
28
+ exports.promoteToQa281223_011703783765081 = promoteToQa281223_011703783765081;
29
+ //# sourceMappingURL=1703783765081-promote_to_qa_28_12_23__01.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1703783765081-promote_to_qa_28_12_23__01.js","sourceRoot":"","sources":["../../src/migrations/1703783765081-promote_to_qa_28_12_23__01.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,iCAAiC;IAA9C;QACI,SAAI,GAAG,mCAAmC,CAAA;IAU9C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAC5F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QAC3F,CAAC;KAAA;CAEJ;AAXD,8EAWC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class promoteToPreDevelop281223_011703784009454 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.promoteToPreDevelop281223_011703784009454 = void 0;
13
+ class promoteToPreDevelop281223_011703784009454 {
14
+ constructor() {
15
+ this.name = 'promoteToPreDevelop281223_011703784009454';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`imported_product\` 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 \`imported_product\` DROP COLUMN \`bulk_stage\``);
25
+ });
26
+ }
27
+ }
28
+ exports.promoteToPreDevelop281223_011703784009454 = promoteToPreDevelop281223_011703784009454;
29
+ //# sourceMappingURL=1703784009454-promote_to_pre_develop_28_12_23__01.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1703784009454-promote_to_pre_develop_28_12_23__01.js","sourceRoot":"","sources":["../../src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,yCAAyC;IAAtD;QACI,SAAI,GAAG,2CAA2C,CAAA;IAUtD,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAC5F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QAC3F,CAAC;KAAA;CAEJ;AAXD,8FAWC"}
@@ -2442,8 +2442,8 @@
2442
2442
  "affectsGlobalScope": false
2443
2443
  },
2444
2444
  "../src/entity/importedproduct.ts": {
2445
- "version": "bad54721ea5016dc92d27eb3a73367d91f808504f98c6ba438a27d7219a25d39",
2446
- "signature": "0cae2a58ab03f2e6a12e3d4469d87796c5cf3ee16218523b59289600c923c49e",
2445
+ "version": "2cc0c6a10dfa04726490f4932d0cac4ac252c4cc6e397a7e660510aaa3ae94bd",
2446
+ "signature": "aa4b2bafe5700d07adfd2181c518bdd228fd6801bcdae56e03a6e1cd76dba76c",
2447
2447
  "affectsGlobalScope": false
2448
2448
  },
2449
2449
  "../src/staticdata/currency.ts": {
@@ -2497,8 +2497,8 @@
2497
2497
  "affectsGlobalScope": false
2498
2498
  },
2499
2499
  "../src/entity/channeluser.ts": {
2500
- "version": "3be0efe5b0d7112eb3dfd06c033d043f90d53294a2dc24d393173f8330888790",
2501
- "signature": "141e251aed4af5fb7514b8a4011efc34787561ec2512f58e3a1183da09b99a77",
2500
+ "version": "0f0a3ddb35d9a2b23b837d2a80ef5f8ea4ba3edca6eee8f7ef259ba9badddfcd",
2501
+ "signature": "15bf7f2a0966a7c95d9bb01bc6cbf5f5f207b30f69bf3938bc519a207ca9211d",
2502
2502
  "affectsGlobalScope": false
2503
2503
  },
2504
2504
  "../src/entity/channel.ts": {
@@ -3671,6 +3671,26 @@
3671
3671
  "signature": "36b65a4e33f8f4a69497891a210171c189532b9173c71074cfeffd755d74cd14",
3672
3672
  "affectsGlobalScope": false
3673
3673
  },
3674
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts": {
3675
+ "version": "6decd9105a061596e8cb44188980a55a7356471e701016ddc47c521b49773cdd",
3676
+ "signature": "6b7052b6681d2d592abe056c191e3f5ea5a294861ad8767963f2a8c5b4397e63",
3677
+ "affectsGlobalScope": false
3678
+ },
3679
+ "../src/migrations/1703726009902-promote_to_prod_27_12_23__01.ts": {
3680
+ "version": "045e598767e2f1952cce2961fb2317be58431b58c3358cdffb5de1607a5256a1",
3681
+ "signature": "3c9255c304a5ae9653f1ad1d61998794a7b7bcc29fa8f18460ca52f54690cc19",
3682
+ "affectsGlobalScope": false
3683
+ },
3684
+ "../src/migrations/1703783765081-promote_to_qa_28_12_23__01.ts": {
3685
+ "version": "7cb139e9331da647176a30518ce90bd12ab5f0dda810aa25b6fe4462928057f6",
3686
+ "signature": "ca2d706a0dc67a2dfc22726eacabdf0ffa32e84c23e73b69b69e3d59b5682ce1",
3687
+ "affectsGlobalScope": false
3688
+ },
3689
+ "../src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts": {
3690
+ "version": "26dba2c97f7be610986b002a4932a41db298f113e8935e91cdef920c82781e9b",
3691
+ "signature": "b40b983cf8053cc7721f6fe4fc2d04d67ec29de796715678898c217d462e0e6d",
3692
+ "affectsGlobalScope": false
3693
+ },
3674
3694
  "../src/migrations/execute/index.ts": {
3675
3695
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3676
3696
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -6779,6 +6799,18 @@
6779
6799
  "../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": [
6780
6800
  "../node_modules/typeorm/index.d.ts"
6781
6801
  ],
6802
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts": [
6803
+ "../node_modules/typeorm/index.d.ts"
6804
+ ],
6805
+ "../src/migrations/1703726009902-promote_to_prod_27_12_23__01.ts": [
6806
+ "../node_modules/typeorm/index.d.ts"
6807
+ ],
6808
+ "../src/migrations/1703783765081-promote_to_qa_28_12_23__01.ts": [
6809
+ "../node_modules/typeorm/index.d.ts"
6810
+ ],
6811
+ "../src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts": [
6812
+ "../node_modules/typeorm/index.d.ts"
6813
+ ],
6782
6814
  "../src/migrations/execute/index.ts": [
6783
6815
  "../src/config/connect.ts"
6784
6816
  ],
@@ -9742,6 +9774,18 @@
9742
9774
  "../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": [
9743
9775
  "../node_modules/typeorm/index.d.ts"
9744
9776
  ],
9777
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts": [
9778
+ "../node_modules/typeorm/index.d.ts"
9779
+ ],
9780
+ "../src/migrations/1703726009902-promote_to_prod_27_12_23__01.ts": [
9781
+ "../node_modules/typeorm/index.d.ts"
9782
+ ],
9783
+ "../src/migrations/1703783765081-promote_to_qa_28_12_23__01.ts": [
9784
+ "../node_modules/typeorm/index.d.ts"
9785
+ ],
9786
+ "../src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts": [
9787
+ "../node_modules/typeorm/index.d.ts"
9788
+ ],
9745
9789
  "../src/migrations/index.ts": [
9746
9790
  "../src/migrations/1628474597284-initialschema.ts",
9747
9791
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -10635,6 +10679,10 @@
10635
10679
  "../src/migrations/1702403624303-promote_to_prod_12_12_23.ts",
10636
10680
  "../src/migrations/1703602386185-magento-bulk.ts",
10637
10681
  "../src/migrations/1703611484454-promote_to_prod_26_12_23.ts",
10682
+ "../src/migrations/1703725615747-promote_to_prod_27_12_23.ts",
10683
+ "../src/migrations/1703726009902-promote_to_prod_27_12_23__01.ts",
10684
+ "../src/migrations/1703783765081-promote_to_qa_28_12_23__01.ts",
10685
+ "../src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts",
10638
10686
  "../src/migrations/execute/index.ts",
10639
10687
  "../src/migrations/index.ts",
10640
10688
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.155",
3
+ "version": "1.0.157",
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.155",
25
- "@reachu/utils": "1.0.155",
24
+ "@reachu/logger": "1.0.157",
25
+ "@reachu/utils": "1.0.157",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -88,7 +88,4 @@ export default class ChannelUser extends AuditedModel {
88
88
 
89
89
  @Column('boolean', { default: false })
90
90
  testOrigen: boolean;
91
-
92
- @Column('integer', { nullable: true })
93
- bulkStage?: number;
94
91
  }
@@ -59,4 +59,10 @@ 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;
65
+
66
+ @Column('varchar', { nullable: true })
67
+ bulkStageStatusMessage?: string;
62
68
  }
@@ -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
+ }
@@ -0,0 +1,16 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class promoteToProd271223_011703726009902 implements MigrationInterface {
4
+ name = 'promoteToProd271223_011703726009902'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`bulk_stage\``);
8
+ await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`bulk_stage\` int NULL`);
9
+ }
10
+
11
+ public async down(queryRunner: QueryRunner): Promise<void> {
12
+ await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`bulk_stage\``);
13
+ await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`bulk_stage\` int NULL`);
14
+ }
15
+
16
+ }
@@ -0,0 +1,14 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class promoteToQa281223_011703783765081 implements MigrationInterface {
4
+ name = 'promoteToQa281223_011703783765081'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`bulk_stage\` int NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`bulk_stage\``);
12
+ }
13
+
14
+ }
@@ -0,0 +1,14 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class promoteToPreDevelop281223_011703784009454 implements MigrationInterface {
4
+ name = 'promoteToPreDevelop281223_011703784009454'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`bulk_stage\` int NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`bulk_stage\``);
12
+ }
13
+
14
+ }