@reachu/database 1.0.208 → 1.0.209
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/1740405236423-vipps-in-settings.d.ts +6 -0
- package/dist/migrations/1740405236423-vipps-in-settings.js +29 -0
- package/dist/migrations/1740405236423-vipps-in-settings.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/1740405236423-vipps-in-settings.ts +15 -0
|
@@ -36,6 +36,10 @@ __decorate([
|
|
|
36
36
|
typeorm_1.Column('boolean', { default: false }),
|
|
37
37
|
__metadata("design:type", Boolean)
|
|
38
38
|
], ChannelUserSettings.prototype, "klarna", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], ChannelUserSettings.prototype, "vipps", void 0);
|
|
39
43
|
__decorate([
|
|
40
44
|
typeorm_1.Column('varchar', { length: '21844' }),
|
|
41
45
|
__metadata("design:type", String)
|
|
@@ -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;CA4B5D,CAAA;AA1BC;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;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACvB;AAIf;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;AAG5B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mEACpB;AA3BZ,mBAAmB;IADvC,gBAAM,EAAE;GACY,mBAAmB,CA4BvC;kBA5BoB,mBAAmB"}
|
|
@@ -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.vippsInSettings1740405236423 = void 0;
|
|
13
|
+
class vippsInSettings1740405236423 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'vippsInSettings1740405236423';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` ADD \`vipps\` tinyint NOT NULL DEFAULT 0`);
|
|
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 \`vipps\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.vippsInSettings1740405236423 = vippsInSettings1740405236423;
|
|
29
|
+
//# sourceMappingURL=1740405236423-vipps-in-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1740405236423-vipps-in-settings.js","sourceRoot":"","sources":["../../src/migrations/1740405236423-vipps-in-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACE,SAAI,GAAG,8BAA8B,CAAC;IAWxC,CAAC;IATc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QACzF,CAAC;KAAA;CACF;AAZD,oEAYC"}
|
|
@@ -2487,8 +2487,8 @@
|
|
|
2487
2487
|
"affectsGlobalScope": false
|
|
2488
2488
|
},
|
|
2489
2489
|
"../src/entity/channelusersettings.ts": {
|
|
2490
|
-
"version": "
|
|
2491
|
-
"signature": "
|
|
2490
|
+
"version": "b1821449b736c34d3bbc818c95ca006eef50058508d7d52ab6750d52a566f692",
|
|
2491
|
+
"signature": "53996c722f0f56cf0e9150bce2188e138eb1a6909d7f457ea5dfcad9a6c141c0",
|
|
2492
2492
|
"affectsGlobalScope": false
|
|
2493
2493
|
},
|
|
2494
2494
|
"../src/entity/channeluser.ts": {
|
|
@@ -3886,6 +3886,11 @@
|
|
|
3886
3886
|
"signature": "3c6f8f7d225c48abf495c92b7ac8d51dccccd4c5c1acf2e9ba8ffc6fab639bd2",
|
|
3887
3887
|
"affectsGlobalScope": false
|
|
3888
3888
|
},
|
|
3889
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts": {
|
|
3890
|
+
"version": "0364afdda3ec5ddd727488bad54b55fc9900902c3dc5b57de008b20f4178f24c",
|
|
3891
|
+
"signature": "6e1840b51fc802f135089280a098a54b467d898cb61368fa2ec0c961aec3986f",
|
|
3892
|
+
"affectsGlobalScope": false
|
|
3893
|
+
},
|
|
3889
3894
|
"../src/migrations/execute/index.ts": {
|
|
3890
3895
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3891
3896
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -7143,6 +7148,9 @@
|
|
|
7143
7148
|
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts": [
|
|
7144
7149
|
"../node_modules/typeorm/index.d.ts"
|
|
7145
7150
|
],
|
|
7151
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts": [
|
|
7152
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7153
|
+
],
|
|
7146
7154
|
"../src/migrations/execute/index.ts": [
|
|
7147
7155
|
"../src/config/connect.ts"
|
|
7148
7156
|
],
|
|
@@ -10257,6 +10265,9 @@
|
|
|
10257
10265
|
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts": [
|
|
10258
10266
|
"../node_modules/typeorm/index.d.ts"
|
|
10259
10267
|
],
|
|
10268
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts": [
|
|
10269
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10270
|
+
],
|
|
10260
10271
|
"../src/migrations/index.ts": [
|
|
10261
10272
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10262
10273
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -11202,6 +11213,7 @@
|
|
|
11202
11213
|
"../src/migrations/1731073175371-fix-international-phone.ts",
|
|
11203
11214
|
"../src/migrations/1732063824049-notfoundproduct.ts",
|
|
11204
11215
|
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts",
|
|
11216
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts",
|
|
11205
11217
|
"../src/migrations/execute/index.ts",
|
|
11206
11218
|
"../src/migrations/index.ts",
|
|
11207
11219
|
"../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.209",
|
|
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.209",
|
|
25
|
+
"@reachu/utils": "1.0.209",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"eventemitter2": "^6.4.9",
|
|
28
28
|
"express": "4.17.1",
|
|
@@ -18,6 +18,9 @@ export default class ChannelUserSettings extends AuditedModel {
|
|
|
18
18
|
@Column('boolean', { default: false })
|
|
19
19
|
klarna: boolean;
|
|
20
20
|
|
|
21
|
+
@Column('boolean', { default: false })
|
|
22
|
+
vipps: boolean;
|
|
23
|
+
|
|
21
24
|
//array of strings (countries code)
|
|
22
25
|
@Column('varchar', { length: '21844' })
|
|
23
26
|
markets: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class vippsInSettings1740405236423 implements MigrationInterface {
|
|
4
|
+
name = 'vippsInSettings1740405236423';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`ALTER TABLE \`channel_user_settings\` ADD \`vipps\` tinyint NOT NULL DEFAULT 0`,
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`vipps\``);
|
|
14
|
+
}
|
|
15
|
+
}
|