@reachu/database 1.0.183 → 1.0.184
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/WooConnection.d.ts +1 -0
- package/dist/entity/WooConnection.js +4 -0
- package/dist/entity/WooConnection.js.map +1 -1
- package/dist/migrations/1719530172075-wooPricesIncludeTax.d.ts +6 -0
- package/dist/migrations/1719530172075-wooPricesIncludeTax.js +29 -0
- package/dist/migrations/1719530172075-wooPricesIncludeTax.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +25 -7
- package/package.json +3 -3
- package/src/entity/WooConnection.ts +3 -0
- package/src/migrations/1719530172075-wooPricesIncludeTax.ts +14 -0
|
@@ -40,6 +40,10 @@ __decorate([
|
|
|
40
40
|
typeorm_1.Column('boolean', { nullable: true, default: false }),
|
|
41
41
|
__metadata("design:type", Boolean)
|
|
42
42
|
], WooConnection.prototype, "issuplier", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
typeorm_1.Column('boolean', { nullable: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], WooConnection.prototype, "pricesIncludeTax", void 0);
|
|
43
47
|
__decorate([
|
|
44
48
|
typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { onDelete: 'CASCADE' }),
|
|
45
49
|
typeorm_1.JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WooConnection.js","sourceRoot":"","sources":["../../src/entity/WooConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAwF;AACxF,kDAA0B;AAG1B,IAAqB,aAAa,GAAlC,MAAqB,aAAa;
|
|
1
|
+
{"version":3,"file":"WooConnection.js","sourceRoot":"","sources":["../../src/entity/WooConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAwF;AACxF,kDAA0B;AAG1B,IAAqB,aAAa,GAAlC,MAAqB,aAAa;CAyBjC,CAAA;AAvBC;IADC,gCAAsB,EAAE;;yCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;2CACL;AAGb;IADC,gBAAM,CAAC,SAAS,CAAC;;kDACE;AAGpB;IADC,gBAAM,CAAC,SAAS,CAAC;;qDACK;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDAClC;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACX;AAI3B;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,oBAAU,EAAE;8BACP,cAAI;2CAAC;AAxBQ,aAAa;IADjC,gBAAM,EAAE;GACY,aAAa,CAyBjC;kBAzBoB,aAAa"}
|
|
@@ -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.wooPricesIncludeTax1719530172075 = void 0;
|
|
13
|
+
class wooPricesIncludeTax1719530172075 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'wooPricesIncludeTax1719530172075';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`woo_connection\` ADD \`prices_include_tax\` tinyint NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`woo_connection\` DROP COLUMN \`prices_include_tax\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.wooPricesIncludeTax1719530172075 = wooPricesIncludeTax1719530172075;
|
|
29
|
+
//# sourceMappingURL=1719530172075-wooPricesIncludeTax.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1719530172075-wooPricesIncludeTax.js","sourceRoot":"","sources":["../../src/migrations/1719530172075-wooPricesIncludeTax.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAU7C,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,mEAAmE,CAAC,CAAC;QACjG,CAAC;KAAA;CAEJ;AAXD,4EAWC"}
|
|
@@ -1962,8 +1962,8 @@
|
|
|
1962
1962
|
"affectsGlobalScope": false
|
|
1963
1963
|
},
|
|
1964
1964
|
"../src/entity/wooconnection.ts": {
|
|
1965
|
-
"version": "
|
|
1966
|
-
"signature": "
|
|
1965
|
+
"version": "2a6c76c1d38b190973fb6938ec85a4c751c4e08544b8e387db3b478c7beb1599",
|
|
1966
|
+
"signature": "53a187e81c2dad2afbd671ccdec854aad3620b4eb7a5affdd47e2ba5ef5a0956",
|
|
1967
1967
|
"affectsGlobalScope": false
|
|
1968
1968
|
},
|
|
1969
1969
|
"../src/entity/businessproducts.ts": {
|
|
@@ -2236,7 +2236,7 @@
|
|
|
2236
2236
|
"signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86",
|
|
2237
2237
|
"affectsGlobalScope": false
|
|
2238
2238
|
},
|
|
2239
|
-
"../node_modules/@types/mime/index.d.ts": {
|
|
2239
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts": {
|
|
2240
2240
|
"version": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
2241
2241
|
"signature": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
2242
2242
|
"affectsGlobalScope": false
|
|
@@ -3801,6 +3801,11 @@
|
|
|
3801
3801
|
"signature": "2e9bb08a17d91094c67ae0a34ec47f350e37ed74c0675786b39628243356f57c",
|
|
3802
3802
|
"affectsGlobalScope": false
|
|
3803
3803
|
},
|
|
3804
|
+
"../src/migrations/1719530172075-woopricesincludetax.ts": {
|
|
3805
|
+
"version": "efa7d64bf0de938b4d3d829dcb69bb13b8641d4edb87f789251eec03ec8f574e",
|
|
3806
|
+
"signature": "f5fe6ee17fc6ea9d9995bc636270b81422723124144b38567707638caf5768e0",
|
|
3807
|
+
"affectsGlobalScope": false
|
|
3808
|
+
},
|
|
3804
3809
|
"../src/migrations/execute/index.ts": {
|
|
3805
3810
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3806
3811
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -3901,6 +3906,11 @@
|
|
|
3901
3906
|
"signature": "f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1",
|
|
3902
3907
|
"affectsGlobalScope": false
|
|
3903
3908
|
},
|
|
3909
|
+
"../node_modules/@types/mime/index.d.ts": {
|
|
3910
|
+
"version": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
3911
|
+
"signature": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
3912
|
+
"affectsGlobalScope": false
|
|
3913
|
+
},
|
|
3904
3914
|
"../node_modules/@types/prettier/index.d.ts": {
|
|
3905
3915
|
"version": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
|
|
3906
3916
|
"signature": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
|
|
@@ -4223,10 +4233,10 @@
|
|
|
4223
4233
|
"../node_modules/@types/node/stream.d.ts"
|
|
4224
4234
|
],
|
|
4225
4235
|
"../node_modules/@types/send/index.d.ts": [
|
|
4226
|
-
"../node_modules/@types/mime/index.d.ts",
|
|
4227
4236
|
"../node_modules/@types/node/fs.d.ts",
|
|
4228
4237
|
"../node_modules/@types/node/index.d.ts",
|
|
4229
|
-
"../node_modules/@types/node/stream.d.ts"
|
|
4238
|
+
"../node_modules/@types/node/stream.d.ts",
|
|
4239
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
4230
4240
|
],
|
|
4231
4241
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
4232
4242
|
"../node_modules/@types/http-errors/index.d.ts",
|
|
@@ -7004,6 +7014,9 @@
|
|
|
7004
7014
|
"../src/migrations/1718892353107-add_channel_user_discount.ts": [
|
|
7005
7015
|
"../node_modules/typeorm/index.d.ts"
|
|
7006
7016
|
],
|
|
7017
|
+
"../src/migrations/1719530172075-woopricesincludetax.ts": [
|
|
7018
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7019
|
+
],
|
|
7007
7020
|
"../src/migrations/execute/index.ts": [
|
|
7008
7021
|
"../src/config/connect.ts"
|
|
7009
7022
|
],
|
|
@@ -7452,10 +7465,10 @@
|
|
|
7452
7465
|
"../node_modules/@types/node/stream.d.ts"
|
|
7453
7466
|
],
|
|
7454
7467
|
"../node_modules/@types/send/index.d.ts": [
|
|
7455
|
-
"../node_modules/@types/mime/index.d.ts",
|
|
7456
7468
|
"../node_modules/@types/node/fs.d.ts",
|
|
7457
7469
|
"../node_modules/@types/node/index.d.ts",
|
|
7458
|
-
"../node_modules/@types/node/stream.d.ts"
|
|
7470
|
+
"../node_modules/@types/node/stream.d.ts",
|
|
7471
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
7459
7472
|
],
|
|
7460
7473
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
7461
7474
|
"../node_modules/@types/http-errors/index.d.ts",
|
|
@@ -10059,6 +10072,9 @@
|
|
|
10059
10072
|
"../src/migrations/1718892353107-add_channel_user_discount.ts": [
|
|
10060
10073
|
"../node_modules/typeorm/index.d.ts"
|
|
10061
10074
|
],
|
|
10075
|
+
"../src/migrations/1719530172075-woopricesincludetax.ts": [
|
|
10076
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10077
|
+
],
|
|
10062
10078
|
"../src/migrations/index.ts": [
|
|
10063
10079
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10064
10080
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10311,6 +10327,7 @@
|
|
|
10311
10327
|
"../node_modules/@types/qs/index.d.ts",
|
|
10312
10328
|
"../node_modules/@types/range-parser/index.d.ts",
|
|
10313
10329
|
"../node_modules/@types/send/index.d.ts",
|
|
10330
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts",
|
|
10314
10331
|
"../node_modules/@types/serve-static/index.d.ts",
|
|
10315
10332
|
"../node_modules/@types/stack-utils/index.d.ts",
|
|
10316
10333
|
"../node_modules/@types/yargs-parser/index.d.ts",
|
|
@@ -10982,6 +10999,7 @@
|
|
|
10982
10999
|
"../src/migrations/1714754554111-product_scraping_v4.ts",
|
|
10983
11000
|
"../src/migrations/1717708447469-production_01.ts",
|
|
10984
11001
|
"../src/migrations/1718892353107-add_channel_user_discount.ts",
|
|
11002
|
+
"../src/migrations/1719530172075-woopricesincludetax.ts",
|
|
10985
11003
|
"../src/migrations/execute/index.ts",
|
|
10986
11004
|
"../src/migrations/index.ts",
|
|
10987
11005
|
"../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.184",
|
|
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.184",
|
|
25
|
+
"@reachu/utils": "1.0.184",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -21,6 +21,9 @@ export default class WooConnection {
|
|
|
21
21
|
@Column('boolean', { nullable: true, default: false })
|
|
22
22
|
issuplier?: boolean;
|
|
23
23
|
|
|
24
|
+
@Column('boolean', { nullable: true })
|
|
25
|
+
pricesIncludeTax?: boolean;
|
|
26
|
+
|
|
24
27
|
@ManyToOne(() => User, (user) => user.id, { onDelete: 'CASCADE' })
|
|
25
28
|
@JoinColumn()
|
|
26
29
|
user: User;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class wooPricesIncludeTax1719530172075 implements MigrationInterface {
|
|
4
|
+
name = 'wooPricesIncludeTax1719530172075'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`woo_connection\` ADD \`prices_include_tax\` tinyint NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`woo_connection\` DROP COLUMN \`prices_include_tax\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|