@felloh-org/lambda-wrapper 1.11.22 → 1.11.24
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.
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
11
11
|
|
|
12
12
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
13
|
|
|
@@ -24,7 +24,14 @@ let Feature = (_dec = (0, _typeorm.Entity)({
|
|
|
24
24
|
}), _dec4 = (0, _typeorm.Column)({
|
|
25
25
|
type: "varchar",
|
|
26
26
|
length: "150"
|
|
27
|
-
}), _dec5 = (0, _typeorm.
|
|
27
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
28
|
+
type: "varchar",
|
|
29
|
+
length: "1024",
|
|
30
|
+
nullable: true
|
|
31
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
32
|
+
type: "boolean",
|
|
33
|
+
default: false
|
|
34
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Feature {
|
|
28
35
|
constructor() {
|
|
29
36
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
30
37
|
|
|
@@ -32,7 +39,11 @@ let Feature = (_dec = (0, _typeorm.Entity)({
|
|
|
32
39
|
|
|
33
40
|
_initializerDefineProperty(this, "name", _descriptor3, this);
|
|
34
41
|
|
|
35
|
-
_initializerDefineProperty(this, "
|
|
42
|
+
_initializerDefineProperty(this, "description", _descriptor4, this);
|
|
43
|
+
|
|
44
|
+
_initializerDefineProperty(this, "is_beta", _descriptor5, this);
|
|
45
|
+
|
|
46
|
+
_initializerDefineProperty(this, "created_at", _descriptor6, this);
|
|
36
47
|
}
|
|
37
48
|
|
|
38
49
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -54,7 +65,21 @@ let Feature = (_dec = (0, _typeorm.Entity)({
|
|
|
54
65
|
initializer: function () {
|
|
55
66
|
return "";
|
|
56
67
|
}
|
|
57
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
68
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec5], {
|
|
69
|
+
configurable: true,
|
|
70
|
+
enumerable: true,
|
|
71
|
+
writable: true,
|
|
72
|
+
initializer: function () {
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "is_beta", [_dec6], {
|
|
76
|
+
configurable: true,
|
|
77
|
+
enumerable: true,
|
|
78
|
+
writable: true,
|
|
79
|
+
initializer: function () {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
|
|
58
83
|
configurable: true,
|
|
59
84
|
enumerable: true,
|
|
60
85
|
writable: true,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class featureDescriptions1694768586499 {
|
|
4
|
+
name = 'featureDescriptions1694768586499'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "user"."feature" ADD "description" character varying(1024)`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "user"."feature" DROP COLUMN "description"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class featureIsBeta1694771670423 {
|
|
4
|
+
name = 'featureIsBeta1694771670423'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "user"."feature" ADD "is_beta" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "user"."feature" DROP COLUMN "is_beta"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class initial1641774481300 {
|
|
4
|
+
name = 'plecom1693832604329'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`
|
|
8
|
+
CREATE OR REPLACE VIEW plecom_union AS
|
|
9
|
+
select
|
|
10
|
+
amount,
|
|
11
|
+
description,
|
|
12
|
+
expires_at,
|
|
13
|
+
user_id,
|
|
14
|
+
organisation_id,
|
|
15
|
+
id,
|
|
16
|
+
booking_id,
|
|
17
|
+
customer_name,
|
|
18
|
+
open_banking_enabled,
|
|
19
|
+
card_enabled,
|
|
20
|
+
moto,
|
|
21
|
+
status,
|
|
22
|
+
created_at,
|
|
23
|
+
updated_at,
|
|
24
|
+
email,
|
|
25
|
+
currency,
|
|
26
|
+
deleted_at,
|
|
27
|
+
pre_authorized,
|
|
28
|
+
customer_id,
|
|
29
|
+
cast(coalesce(metadata, '{}') as jsonb) as metadata
|
|
30
|
+
from "payment"."payment_Link"
|
|
31
|
+
union
|
|
32
|
+
select
|
|
33
|
+
amount,
|
|
34
|
+
'' as description,
|
|
35
|
+
expires_at,
|
|
36
|
+
user_id,
|
|
37
|
+
organisation_id,
|
|
38
|
+
id,
|
|
39
|
+
booking_id,
|
|
40
|
+
customer_name,
|
|
41
|
+
open_banking_enabled,
|
|
42
|
+
card_enabled,
|
|
43
|
+
moto,
|
|
44
|
+
status,
|
|
45
|
+
created_at,
|
|
46
|
+
updated_at,
|
|
47
|
+
email,
|
|
48
|
+
currency,
|
|
49
|
+
deleted_at,
|
|
50
|
+
pre_authorized,
|
|
51
|
+
customer_id,
|
|
52
|
+
cast('{}' as jsonb) as metadata
|
|
53
|
+
from "payment".ecommerce
|
|
54
|
+
`);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async down(queryRunner) {
|
|
58
|
+
await queryRunner.query(`
|
|
59
|
+
CREATE OR REPLACE VIEW plecom_union AS
|
|
60
|
+
select
|
|
61
|
+
amount,
|
|
62
|
+
description,
|
|
63
|
+
expires_at,
|
|
64
|
+
user_id,
|
|
65
|
+
organisation_id,
|
|
66
|
+
id,
|
|
67
|
+
booking_id,
|
|
68
|
+
customer_name,
|
|
69
|
+
open_banking_enabled,
|
|
70
|
+
card_enabled,
|
|
71
|
+
moto,
|
|
72
|
+
status,
|
|
73
|
+
created_at,
|
|
74
|
+
updated_at,
|
|
75
|
+
email,
|
|
76
|
+
currency,
|
|
77
|
+
deleted_at,
|
|
78
|
+
pre_authorized,
|
|
79
|
+
customer_id
|
|
80
|
+
from "payment"."payment_Link"
|
|
81
|
+
union
|
|
82
|
+
select
|
|
83
|
+
amount,
|
|
84
|
+
'' as description,
|
|
85
|
+
expires_at,
|
|
86
|
+
user_id,
|
|
87
|
+
organisation_id,
|
|
88
|
+
id,
|
|
89
|
+
booking_id,
|
|
90
|
+
customer_name,
|
|
91
|
+
open_banking_enabled,
|
|
92
|
+
card_enabled,
|
|
93
|
+
moto,
|
|
94
|
+
status,
|
|
95
|
+
created_at,
|
|
96
|
+
updated_at,
|
|
97
|
+
email,
|
|
98
|
+
currency,
|
|
99
|
+
deleted_at,
|
|
100
|
+
pre_authorized,
|
|
101
|
+
customer_id
|
|
102
|
+
from "payment".ecommerce
|
|
103
|
+
`);
|
|
104
|
+
}
|
|
105
|
+
}
|