@reachu/database 1.0.169 → 1.0.170
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/ChannelUserSettings.d.ts +1 -0
- package/dist/entity/ChannelUserSettings.js +4 -0
- package/dist/entity/ChannelUserSettings.js.map +1 -1
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.d.ts +6 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.js +29 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/ChannelUserSettings.ts +3 -0
- package/src/migrations/1713542026036-channelusersettings-purchaseconditions.ts +14 -0
|
@@ -40,6 +40,10 @@ __decorate([
|
|
|
40
40
|
typeorm_1.Column('varchar', { length: '21844' }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], ChannelUserSettings.prototype, "markets", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
typeorm_1.Column('boolean', { default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], ChannelUserSettings.prototype, "purchaseConditions", void 0);
|
|
43
47
|
ChannelUserSettings = __decorate([
|
|
44
48
|
typeorm_1.Entity()
|
|
45
49
|
], ChannelUserSettings);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUserSettings.js","sourceRoot":"","sources":["../../src/entity/ChannelUserSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"ChannelUserSettings.js","sourceRoot":"","sources":["../../src/entity/ChannelUserSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,sBAAY;CAsB5D,CAAA;AApBC;IADC,0BAAgB,EAAE;8BACR,IAAI;sDAAC;AAGhB;IADC,gCAAsB,EAAE;;+CACd;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACX;AAG3B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gEACT;AAG7B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;mDACtB;AAIhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;oDACvB;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;+DACT;AArBT,mBAAmB;IADvC,gBAAM,EAAE;GACY,mBAAmB,CAsBvC;kBAtBoB,mBAAmB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
2
|
+
export declare class channelusersettingsPurchaseconditions1713542026036 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.channelusersettingsPurchaseconditions1713542026036 = void 0;
|
|
13
|
+
class channelusersettingsPurchaseconditions1713542026036 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'channelusersettingsPurchaseconditions1713542026036';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` ADD \`purchase_conditions\` tinyint NOT NULL DEFAULT 1`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`purchase_conditions\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.channelusersettingsPurchaseconditions1713542026036 = channelusersettingsPurchaseconditions1713542026036;
|
|
29
|
+
//# sourceMappingURL=1713542026036-channelusersettings-purchaseconditions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1713542026036-channelusersettings-purchaseconditions.js","sourceRoot":"","sources":["../../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,kDAAkD;IAA/D;QACI,SAAI,GAAG,oDAAoD,CAAA;IAU/D,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,8FAA8F,CAAC,CAAC;QAC5H,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAC;QACzG,CAAC;KAAA;CAEJ;AAXD,gHAWC"}
|
|
@@ -2497,8 +2497,8 @@
|
|
|
2497
2497
|
"affectsGlobalScope": false
|
|
2498
2498
|
},
|
|
2499
2499
|
"../src/entity/channelusersettings.ts": {
|
|
2500
|
-
"version": "
|
|
2501
|
-
"signature": "
|
|
2500
|
+
"version": "53934f41cff7a591a218b0e9ce7dafe72d9e429c5504fbbc2e0a9a344ac5187b",
|
|
2501
|
+
"signature": "3bac16436261ac5712c045a8cc54ab5b4d8b19329e04cef250dc367c8ee48243",
|
|
2502
2502
|
"affectsGlobalScope": false
|
|
2503
2503
|
},
|
|
2504
2504
|
"../src/entity/channeluser.ts": {
|
|
@@ -3746,6 +3746,11 @@
|
|
|
3746
3746
|
"signature": "5212e41f95951efd7d0e7afd34932147dd88ef57daf9e85c03a7ef7da77f1d88",
|
|
3747
3747
|
"affectsGlobalScope": false
|
|
3748
3748
|
},
|
|
3749
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts": {
|
|
3750
|
+
"version": "fdc0ecc35eb1be654373a680594aecb77767e57e3efd1666059f2922defbfedb",
|
|
3751
|
+
"signature": "92d587aec0241377cecd8befdaa5c21ac5400bbdd067afc4830b33a2de1579a9",
|
|
3752
|
+
"affectsGlobalScope": false
|
|
3753
|
+
},
|
|
3749
3754
|
"../src/migrations/execute/index.ts": {
|
|
3750
3755
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3751
3756
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6910,6 +6915,9 @@
|
|
|
6910
6915
|
"../src/migrations/1712581513735-currency-symbol.ts": [
|
|
6911
6916
|
"../node_modules/typeorm/index.d.ts"
|
|
6912
6917
|
],
|
|
6918
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts": [
|
|
6919
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6920
|
+
],
|
|
6913
6921
|
"../src/migrations/execute/index.ts": [
|
|
6914
6922
|
"../src/config/connect.ts"
|
|
6915
6923
|
],
|
|
@@ -9928,6 +9936,9 @@
|
|
|
9928
9936
|
"../src/migrations/1712581513735-currency-symbol.ts": [
|
|
9929
9937
|
"../node_modules/typeorm/index.d.ts"
|
|
9930
9938
|
],
|
|
9939
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts": [
|
|
9940
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9941
|
+
],
|
|
9931
9942
|
"../src/migrations/index.ts": [
|
|
9932
9943
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9933
9944
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10838,6 +10849,7 @@
|
|
|
10838
10849
|
"../src/migrations/1711640105019-product-brand.ts",
|
|
10839
10850
|
"../src/migrations/1712152339832-checkout-decimal.ts",
|
|
10840
10851
|
"../src/migrations/1712581513735-currency-symbol.ts",
|
|
10852
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts",
|
|
10841
10853
|
"../src/migrations/execute/index.ts",
|
|
10842
10854
|
"../src/migrations/index.ts",
|
|
10843
10855
|
"../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.170",
|
|
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.170",
|
|
25
|
+
"@reachu/utils": "1.0.170",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class channelusersettingsPurchaseconditions1713542026036 implements MigrationInterface {
|
|
4
|
+
name = 'channelusersettingsPurchaseconditions1713542026036'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`channel_user_settings\` ADD \`purchase_conditions\` tinyint NOT NULL DEFAULT 1`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`purchase_conditions\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|