@felloh-org/lambda-wrapper 1.6.7 → 1.6.8
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.
|
@@ -13,7 +13,7 @@ var _account = _interopRequireDefault(require("../account"));
|
|
|
13
13
|
|
|
14
14
|
var _account2 = _interopRequireDefault(require("../../bank/account"));
|
|
15
15
|
|
|
16
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14,
|
|
16
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
@@ -35,28 +35,30 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
35
35
|
}), _dec5 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
36
36
|
name: 'organisation_id',
|
|
37
37
|
referencedColumnName: 'id'
|
|
38
|
-
}), _dec7 = (0, _typeorm.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: "250",
|
|
41
|
+
nullable: true
|
|
42
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
43
|
+
type: "varchar",
|
|
44
|
+
length: "250",
|
|
45
|
+
nullable: true
|
|
46
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
45
47
|
type: "int"
|
|
46
|
-
}),
|
|
48
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
47
49
|
type: "varchar",
|
|
48
50
|
length: "250",
|
|
49
51
|
nullable: true
|
|
50
|
-
}),
|
|
52
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
51
53
|
type: "varchar",
|
|
52
54
|
length: "100"
|
|
53
|
-
}),
|
|
55
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
54
56
|
type: "varchar",
|
|
55
57
|
length: "100",
|
|
56
58
|
nullable: true
|
|
57
|
-
}),
|
|
59
|
+
}), _dec13 = (0, _typeorm.CreateDateColumn)({
|
|
58
60
|
type: 'timestamp with time zone'
|
|
59
|
-
}),
|
|
61
|
+
}), _dec14 = (0, _typeorm.UpdateDateColumn)({
|
|
60
62
|
type: 'timestamp with time zone'
|
|
61
63
|
}), _dec(_class = (_class2 = class Transaction {
|
|
62
64
|
constructor() {
|
|
@@ -66,9 +68,9 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
66
68
|
|
|
67
69
|
_initializerDefineProperty(this, "organisation", _descriptor3, this);
|
|
68
70
|
|
|
69
|
-
_initializerDefineProperty(this, "
|
|
71
|
+
_initializerDefineProperty(this, "payee_iban", _descriptor4, this);
|
|
70
72
|
|
|
71
|
-
_initializerDefineProperty(this, "
|
|
73
|
+
_initializerDefineProperty(this, "payer_iban", _descriptor5, this);
|
|
72
74
|
|
|
73
75
|
_initializerDefineProperty(this, "amount", _descriptor6, this);
|
|
74
76
|
|
|
@@ -104,52 +106,52 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
104
106
|
initializer: function () {
|
|
105
107
|
return _organisation.default;
|
|
106
108
|
}
|
|
107
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
109
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "payee_iban", [_dec7], {
|
|
108
110
|
configurable: true,
|
|
109
111
|
enumerable: true,
|
|
110
112
|
writable: true,
|
|
111
113
|
initializer: function () {
|
|
112
|
-
return
|
|
114
|
+
return "";
|
|
113
115
|
}
|
|
114
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
116
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "payer_iban", [_dec8], {
|
|
115
117
|
configurable: true,
|
|
116
118
|
enumerable: true,
|
|
117
119
|
writable: true,
|
|
118
120
|
initializer: function () {
|
|
119
|
-
return
|
|
121
|
+
return "";
|
|
120
122
|
}
|
|
121
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "amount", [
|
|
123
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec9], {
|
|
122
124
|
configurable: true,
|
|
123
125
|
enumerable: true,
|
|
124
126
|
writable: true,
|
|
125
127
|
initializer: null
|
|
126
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "description", [
|
|
128
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec10], {
|
|
127
129
|
configurable: true,
|
|
128
130
|
enumerable: true,
|
|
129
131
|
writable: true,
|
|
130
132
|
initializer: function () {
|
|
131
133
|
return "";
|
|
132
134
|
}
|
|
133
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "status", [
|
|
135
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec11], {
|
|
134
136
|
configurable: true,
|
|
135
137
|
enumerable: true,
|
|
136
138
|
writable: true,
|
|
137
139
|
initializer: function () {
|
|
138
140
|
return "";
|
|
139
141
|
}
|
|
140
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "category", [
|
|
142
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "category", [_dec12], {
|
|
141
143
|
configurable: true,
|
|
142
144
|
enumerable: true,
|
|
143
145
|
writable: true,
|
|
144
146
|
initializer: function () {
|
|
145
147
|
return "";
|
|
146
148
|
}
|
|
147
|
-
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [
|
|
149
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec13], {
|
|
148
150
|
configurable: true,
|
|
149
151
|
enumerable: true,
|
|
150
152
|
writable: true,
|
|
151
153
|
initializer: null
|
|
152
|
-
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [
|
|
154
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec14], {
|
|
153
155
|
configurable: true,
|
|
154
156
|
enumerable: true,
|
|
155
157
|
writable: true,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class saltedgeUpdateTransactionIbans1674572364647 {
|
|
4
|
+
name = 'saltedgeUpdateTransactionIbans1674572364647'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP CONSTRAINT "FK_ecee96a00ea6281651be2c47dc8"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP CONSTRAINT "FK_e99a9052bd2e8cba7b0253add7e"`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payee"`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payer"`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payee_iban" character varying(250)`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payer_iban" character varying(250)`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async down(queryRunner) {
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payer_iban"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payee_iban"`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payer" character varying(22)`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payee" character varying(22)`);
|
|
20
|
+
}
|
|
21
|
+
}
|