@reachu/database 1.0.166 → 1.0.169

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.
@@ -4,4 +4,5 @@ export default class Currency extends AuditedModel {
4
4
  id: number;
5
5
  code: string;
6
6
  enabled: boolean;
7
+ symbol: string;
7
8
  }
@@ -32,6 +32,10 @@ __decorate([
32
32
  typeorm_1.Column('boolean', { default: false }),
33
33
  __metadata("design:type", Boolean)
34
34
  ], Currency.prototype, "enabled", void 0);
35
+ __decorate([
36
+ typeorm_1.Column('varchar'),
37
+ __metadata("design:type", String)
38
+ ], Currency.prototype, "symbol", void 0);
35
39
  Currency = __decorate([
36
40
  typeorm_1.Entity()
37
41
  ], Currency);
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/entity/Currency.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CAYjD,CAAA;AAVC;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gCAAsB,EAAE;;oCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;sCACL;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACrB;AAXE,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CAY5B;kBAZoB,QAAQ"}
1
+ {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/entity/Currency.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CAejD,CAAA;AAbC;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gCAAsB,EAAE;;oCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;sCACL;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,CAAC;;wCACH;AAdI,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CAe5B;kBAfoB,QAAQ"}
@@ -93,7 +93,7 @@ __decorate([
93
93
  __metadata("design:type", Number)
94
94
  ], Checkout.prototype, "total_tax", void 0);
95
95
  __decorate([
96
- typeorm_1.Column('integer', { default: 0 }),
96
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, default: 0 }),
97
97
  __metadata("design:type", Number)
98
98
  ], Checkout.prototype, "total_line_items_price", void 0);
99
99
  Checkout = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"Checkout.js","sourceRoot":"","sources":["../../../../src/entity/modules/shopcart/Checkout.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,kDAA0B;AAC1B,qEAAkE;AAClE,uEAAoE;AACpE,wDAAgC;AAGhC,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CA2DjD,CAAA;AAzDC;IADC,gCAAsB,CAAC,MAAM,CAAC;;oCACpB;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACjB;AAGrB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAClB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACd;AAGxB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACvB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACtB;AAIhB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Q"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class checkoutDecimal1712152339832 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.checkoutDecimal1712152339832 = void 0;
13
+ class checkoutDecimal1712152339832 {
14
+ constructor() {
15
+ this.name = 'checkoutDecimal1712152339832';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` decimal(10,2) NOT NULL DEFAULT '0.00'`);
20
+ });
21
+ }
22
+ down(queryRunner) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield queryRunner.query(`ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` int NOT NULL DEFAULT '0'`);
25
+ });
26
+ }
27
+ }
28
+ exports.checkoutDecimal1712152339832 = checkoutDecimal1712152339832;
29
+ //# sourceMappingURL=1712152339832-checkout-decimal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1712152339832-checkout-decimal.js","sourceRoot":"","sources":["../../src/migrations/1712152339832-checkout-decimal.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACE,SAAI,GAAG,8BAA8B,CAAC;IAaxC,CAAC;IAXc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,yGAAyG,CAC1G,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,4FAA4F,CAC7F,CAAC;QACJ,CAAC;KAAA;CACF;AAdD,oEAcC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class currencySymbol1712581513735 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.currencySymbol1712581513735 = void 0;
13
+ class currencySymbol1712581513735 {
14
+ constructor() {
15
+ this.name = 'currencySymbol1712581513735';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`currency\` ADD \`symbol\` varchar(255) NOT NULL`);
20
+ });
21
+ }
22
+ down(queryRunner) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield queryRunner.query(`ALTER TABLE \`currency\` DROP COLUMN \`symbol\``);
25
+ });
26
+ }
27
+ }
28
+ exports.currencySymbol1712581513735 = currencySymbol1712581513735;
29
+ //# sourceMappingURL=1712581513735-currency-symbol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1712581513735-currency-symbol.js","sourceRoot":"","sources":["../../src/migrations/1712581513735-currency-symbol.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,2BAA2B;IAAxC;QACI,SAAI,GAAG,6BAA6B,CAAA;IAUxC,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;QAC7F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;QAC/E,CAAC;KAAA;CAEJ;AAXD,kEAWC"}
@@ -2382,8 +2382,8 @@
2382
2382
  "affectsGlobalScope": false
2383
2383
  },
2384
2384
  "../src/entity/currency.ts": {
2385
- "version": "2078b55c4a823c406401c71c6cbb0b3f921e162160d636f344dc67cb3e916f2d",
2386
- "signature": "d9f3186560ee35918337703693bdd6bab67977a74425a039ce41e8e02c6f8f8e",
2385
+ "version": "0f4f500055ed5cd7fb75502e9010b72c0ecaed2801e46e1174e6e5a42e03a289",
2386
+ "signature": "fdfbc05bce163d8e4aee0c494da1a9b90bab8b0f634bca68e68e5a6e41dc9462",
2387
2387
  "affectsGlobalScope": false
2388
2388
  },
2389
2389
  "../src/entity/envtype.ts": {
@@ -2562,7 +2562,7 @@
2562
2562
  "affectsGlobalScope": false
2563
2563
  },
2564
2564
  "../src/entity/modules/shopcart/checkout.ts": {
2565
- "version": "cc4d16bd72cdfd1949973d2b38065009ca2e989ac8e8a4f87e6dfac05213f3d8",
2565
+ "version": "4f5b57c5b62e601b9fc23de43b57a2c446417ffea0952e960c5c9eb339a362eb",
2566
2566
  "signature": "a9961ffc9ff83ef589fa12959732e6ce745076fc496e11980b69ed7595cdd267",
2567
2567
  "affectsGlobalScope": false
2568
2568
  },
@@ -3736,6 +3736,16 @@
3736
3736
  "signature": "a425f51ebe38ae70a413ff58cff0e43efa21ca0485060f63c634255eb175fea6",
3737
3737
  "affectsGlobalScope": false
3738
3738
  },
3739
+ "../src/migrations/1712152339832-checkout-decimal.ts": {
3740
+ "version": "ca10f80445095afeae35c323000b34f110bf4c23c5fcadcaca7f1ec9ca56d2ce",
3741
+ "signature": "c3afe52c69b952dbcc2b4f36c431626edb7d5f7849090717e89167eac52b396f",
3742
+ "affectsGlobalScope": false
3743
+ },
3744
+ "../src/migrations/1712581513735-currency-symbol.ts": {
3745
+ "version": "8c8a0a151597f46253da402195fed0449c4469c860e4336378ffc4b1c59c006d",
3746
+ "signature": "5212e41f95951efd7d0e7afd34932147dd88ef57daf9e85c03a7ef7da77f1d88",
3747
+ "affectsGlobalScope": false
3748
+ },
3739
3749
  "../src/migrations/execute/index.ts": {
3740
3750
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3741
3751
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -6894,6 +6904,12 @@
6894
6904
  "../src/migrations/1711640105019-product-brand.ts": [
6895
6905
  "../node_modules/typeorm/index.d.ts"
6896
6906
  ],
6907
+ "../src/migrations/1712152339832-checkout-decimal.ts": [
6908
+ "../node_modules/typeorm/index.d.ts"
6909
+ ],
6910
+ "../src/migrations/1712581513735-currency-symbol.ts": [
6911
+ "../node_modules/typeorm/index.d.ts"
6912
+ ],
6897
6913
  "../src/migrations/execute/index.ts": [
6898
6914
  "../src/config/connect.ts"
6899
6915
  ],
@@ -9906,6 +9922,12 @@
9906
9922
  "../src/migrations/1711640105019-product-brand.ts": [
9907
9923
  "../node_modules/typeorm/index.d.ts"
9908
9924
  ],
9925
+ "../src/migrations/1712152339832-checkout-decimal.ts": [
9926
+ "../node_modules/typeorm/index.d.ts"
9927
+ ],
9928
+ "../src/migrations/1712581513735-currency-symbol.ts": [
9929
+ "../node_modules/typeorm/index.d.ts"
9930
+ ],
9909
9931
  "../src/migrations/index.ts": [
9910
9932
  "../src/migrations/1628474597284-initialschema.ts",
9911
9933
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -10814,6 +10836,8 @@
10814
10836
  "../src/migrations/1708039535580-order-channel-user.ts",
10815
10837
  "../src/migrations/1711562145337-user-channel-settings.ts",
10816
10838
  "../src/migrations/1711640105019-product-brand.ts",
10839
+ "../src/migrations/1712152339832-checkout-decimal.ts",
10840
+ "../src/migrations/1712581513735-currency-symbol.ts",
10817
10841
  "../src/migrations/execute/index.ts",
10818
10842
  "../src/migrations/index.ts",
10819
10843
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.166",
3
+ "version": "1.0.169",
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.166",
25
- "@reachu/utils": "1.0.166",
24
+ "@reachu/logger": "1.0.169",
25
+ "@reachu/utils": "1.0.169",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -14,4 +14,7 @@ export default class Currency extends AuditedModel {
14
14
 
15
15
  @Column('boolean', { default: false })
16
16
  enabled: boolean;
17
+
18
+ @Column('varchar')
19
+ symbol: string;
17
20
  }
@@ -71,6 +71,6 @@ export default class Checkout extends AuditedModel {
71
71
  @Column('decimal', { precision: 10, scale: 2, default: 0 })
72
72
  total_tax?: number;
73
73
 
74
- @Column('integer', { default: 0 })
74
+ @Column('decimal', { precision: 10, scale: 2, default: 0 })
75
75
  total_line_items_price?: number;
76
76
  }
@@ -0,0 +1,17 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+
3
+ export class checkoutDecimal1712152339832 implements MigrationInterface {
4
+ name = 'checkoutDecimal1712152339832';
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(
8
+ `ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` decimal(10,2) NOT NULL DEFAULT '0.00'`,
9
+ );
10
+ }
11
+
12
+ public async down(queryRunner: QueryRunner): Promise<void> {
13
+ await queryRunner.query(
14
+ `ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` int NOT NULL DEFAULT '0'`,
15
+ );
16
+ }
17
+ }
@@ -0,0 +1,14 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class currencySymbol1712581513735 implements MigrationInterface {
4
+ name = 'currencySymbol1712581513735'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`currency\` ADD \`symbol\` varchar(255) NOT NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`currency\` DROP COLUMN \`symbol\``);
12
+ }
13
+
14
+ }