@reachu/database 1.0.218 → 1.0.219
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 +1 -0
- package/dist/entity/ImportedProduct.js +4 -0
- package/dist/entity/ImportedProduct.js.map +1 -1
- package/dist/migrations/1760110412811-bigcommerce-importedproduct.d.ts +6 -0
- package/dist/migrations/1760110412811-bigcommerce-importedproduct.js +29 -0
- package/dist/migrations/1760110412811-bigcommerce-importedproduct.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/ImportedProduct.ts +3 -0
- package/src/migrations/1760110412811-bigcommerce-importedproduct.ts +15 -0
|
@@ -41,6 +41,10 @@ __decorate([
|
|
|
41
41
|
typeorm_1.Column('bigint', { nullable: true }),
|
|
42
42
|
__metadata("design:type", Number)
|
|
43
43
|
], ImportedProduct.prototype, "shopifyId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], ImportedProduct.prototype, "bigcommerceId", void 0);
|
|
44
48
|
__decorate([
|
|
45
49
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
46
50
|
__metadata("design:type", Object)
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AACxC,gEAAwC;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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;AA5Db,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CA6DnC;kBA7DoB,eAAe"}
|
|
@@ -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.bigcommerceImportedproduct1760110412811 = void 0;
|
|
13
|
+
class bigcommerceImportedproduct1760110412811 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'bigcommerceImportedproduct1760110412811';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`bigcommerce_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 \`bigcommerce_id\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.bigcommerceImportedproduct1760110412811 = bigcommerceImportedproduct1760110412811;
|
|
29
|
+
//# sourceMappingURL=1760110412811-bigcommerce-importedproduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1760110412811-bigcommerce-importedproduct.js","sourceRoot":"","sources":["../../src/migrations/1760110412811-bigcommerce-importedproduct.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,uCAAuC;IAApD;QACE,SAAI,GAAG,yCAAyC,CAAC;IAWnD,CAAC;IATc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,2EAA2E,CAC5E,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;QAC7F,CAAC;KAAA;CACF;AAZD,0FAYC"}
|
|
@@ -2432,8 +2432,8 @@
|
|
|
2432
2432
|
"affectsGlobalScope": false
|
|
2433
2433
|
},
|
|
2434
2434
|
"../src/entity/importedproduct.ts": {
|
|
2435
|
-
"version": "
|
|
2436
|
-
"signature": "
|
|
2435
|
+
"version": "e73604694f6a1192a09f4fdfe30d8b1349878356ef33ca3abe9dbbe2d6da31cd",
|
|
2436
|
+
"signature": "e29b370f4f645c10ba2f290ec2628caddc709b57f81e2f6857b2fd49794693dd",
|
|
2437
2437
|
"affectsGlobalScope": false
|
|
2438
2438
|
},
|
|
2439
2439
|
"../src/staticdata/currency.ts": {
|
|
@@ -3956,6 +3956,11 @@
|
|
|
3956
3956
|
"signature": "2313670db5624a62c2e192823612fae34cae5f5c2096c6cf2d2efa3087eabf8e",
|
|
3957
3957
|
"affectsGlobalScope": false
|
|
3958
3958
|
},
|
|
3959
|
+
"../src/migrations/1760110412811-bigcommerce-importedproduct.ts": {
|
|
3960
|
+
"version": "911d1e8cbd5f0ba04b5e9bd2850a013310330655036655858323ebcbf0d6ab8d",
|
|
3961
|
+
"signature": "fae3c30319932761b9014d472ddca7b9183bb5bd38ea466f733405624e578b54",
|
|
3962
|
+
"affectsGlobalScope": false
|
|
3963
|
+
},
|
|
3959
3964
|
"../src/migrations/execute/index.ts": {
|
|
3960
3965
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3961
3966
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -7262,6 +7267,9 @@
|
|
|
7262
7267
|
"../src/migrations/1759863524877-bigcommerce2.ts": [
|
|
7263
7268
|
"../node_modules/typeorm/index.d.ts"
|
|
7264
7269
|
],
|
|
7270
|
+
"../src/migrations/1760110412811-bigcommerce-importedproduct.ts": [
|
|
7271
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7272
|
+
],
|
|
7265
7273
|
"../src/migrations/execute/index.ts": [
|
|
7266
7274
|
"../src/config/connect.ts"
|
|
7267
7275
|
],
|
|
@@ -10429,6 +10437,9 @@
|
|
|
10429
10437
|
"../src/migrations/1759863524877-bigcommerce2.ts": [
|
|
10430
10438
|
"../node_modules/typeorm/index.d.ts"
|
|
10431
10439
|
],
|
|
10440
|
+
"../src/migrations/1760110412811-bigcommerce-importedproduct.ts": [
|
|
10441
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10442
|
+
],
|
|
10432
10443
|
"../src/migrations/index.ts": [
|
|
10433
10444
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10434
10445
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -11394,6 +11405,7 @@
|
|
|
11394
11405
|
"../src/migrations/1759180701543-components.ts",
|
|
11395
11406
|
"../src/migrations/1759861820422-bigcommerce.ts",
|
|
11396
11407
|
"../src/migrations/1759863524877-bigcommerce2.ts",
|
|
11408
|
+
"../src/migrations/1760110412811-bigcommerce-importedproduct.ts",
|
|
11397
11409
|
"../src/migrations/execute/index.ts",
|
|
11398
11410
|
"../src/migrations/index.ts",
|
|
11399
11411
|
"../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.219",
|
|
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.219",
|
|
25
|
+
"@reachu/utils": "1.0.219",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"eventemitter2": "^6.4.9",
|
|
28
28
|
"express": "4.17.1",
|
|
@@ -31,6 +31,9 @@ export default class ImportedProduct {
|
|
|
31
31
|
@Column('bigint', { nullable: true })
|
|
32
32
|
shopifyId?: number;
|
|
33
33
|
|
|
34
|
+
@Column('varchar', { nullable: true })
|
|
35
|
+
bigcommerceId?: string | number;
|
|
36
|
+
|
|
34
37
|
@Column('varchar', { nullable: true })
|
|
35
38
|
magentoId?: string | number;
|
|
36
39
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class bigcommerceImportedproduct1760110412811 implements MigrationInterface {
|
|
4
|
+
name = 'bigcommerceImportedproduct1760110412811';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`ALTER TABLE \`imported_product\` ADD \`bigcommerce_id\` varchar(255) NULL`,
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`bigcommerce_id\``);
|
|
14
|
+
}
|
|
15
|
+
}
|