@felloh-org/lambda-wrapper 1.9.2 → 1.9.4

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, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
16
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -36,33 +36,49 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
36
36
  name: 'organisation_id',
37
37
  referencedColumnName: 'id'
38
38
  }), _dec7 = (0, _typeorm.Column)({
39
+ type: "date"
40
+ }), _dec8 = (0, _typeorm.Column)({
41
+ type: "boolean",
42
+ default: false
43
+ }), _dec9 = (0, _typeorm.Column)({
44
+ type: "boolean",
45
+ default: false
46
+ }), _dec10 = (0, _typeorm.Column)({
39
47
  type: "varchar",
40
48
  length: "250",
41
49
  nullable: true
42
- }), _dec8 = (0, _typeorm.Column)({
50
+ }), _dec11 = (0, _typeorm.Column)({
43
51
  type: "varchar",
44
52
  length: "250",
45
53
  nullable: true
46
- }), _dec9 = (0, _typeorm.Column)({
54
+ }), _dec12 = (0, _typeorm.Column)({
47
55
  type: "int"
48
- }), _dec10 = (0, _typeorm.Column)({
56
+ }), _dec13 = (0, _typeorm.Column)({
49
57
  type: "varchar",
50
58
  length: "5",
51
59
  nullable: true
52
- }), _dec11 = (0, _typeorm.Column)({
60
+ }), _dec14 = (0, _typeorm.Column)({
53
61
  type: "varchar",
54
- length: "250",
62
+ length: "1024",
55
63
  nullable: true
56
- }), _dec12 = (0, _typeorm.Column)({
64
+ }), _dec15 = (0, _typeorm.Column)({
57
65
  type: "varchar",
58
66
  length: "100"
59
- }), _dec13 = (0, _typeorm.Column)({
67
+ }), _dec16 = (0, _typeorm.Column)({
68
+ type: "varchar",
69
+ length: "100",
70
+ nullable: true
71
+ }), _dec17 = (0, _typeorm.Column)({
72
+ type: "varchar",
73
+ length: "50",
74
+ nullable: true
75
+ }), _dec18 = (0, _typeorm.Column)({
60
76
  type: "varchar",
61
77
  length: "100",
62
78
  nullable: true
63
- }), _dec14 = (0, _typeorm.CreateDateColumn)({
79
+ }), _dec19 = (0, _typeorm.CreateDateColumn)({
64
80
  type: 'timestamp with time zone'
65
- }), _dec15 = (0, _typeorm.UpdateDateColumn)({
81
+ }), _dec20 = (0, _typeorm.UpdateDateColumn)({
66
82
  type: 'timestamp with time zone'
67
83
  }), _dec(_class = (_class2 = class Transaction {
68
84
  constructor() {
@@ -72,23 +88,33 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
72
88
 
73
89
  _initializerDefineProperty(this, "organisation", _descriptor3, this);
74
90
 
75
- _initializerDefineProperty(this, "payee_iban", _descriptor4, this);
91
+ _initializerDefineProperty(this, "posting_date", _descriptor4, this);
76
92
 
77
- _initializerDefineProperty(this, "payer_iban", _descriptor5, this);
93
+ _initializerDefineProperty(this, "is_credit", _descriptor5, this);
78
94
 
79
- _initializerDefineProperty(this, "amount", _descriptor6, this);
95
+ _initializerDefineProperty(this, "is_debit", _descriptor6, this);
80
96
 
81
- _initializerDefineProperty(this, "currency", _descriptor7, this);
97
+ _initializerDefineProperty(this, "payee", _descriptor7, this);
82
98
 
83
- _initializerDefineProperty(this, "description", _descriptor8, this);
99
+ _initializerDefineProperty(this, "payer", _descriptor8, this);
84
100
 
85
- _initializerDefineProperty(this, "status", _descriptor9, this);
101
+ _initializerDefineProperty(this, "amount", _descriptor9, this);
86
102
 
87
- _initializerDefineProperty(this, "category", _descriptor10, this);
103
+ _initializerDefineProperty(this, "currency", _descriptor10, this);
88
104
 
89
- _initializerDefineProperty(this, "created_at", _descriptor11, this);
105
+ _initializerDefineProperty(this, "description", _descriptor11, this);
90
106
 
91
- _initializerDefineProperty(this, "updated_at", _descriptor12, this);
107
+ _initializerDefineProperty(this, "status", _descriptor12, this);
108
+
109
+ _initializerDefineProperty(this, "type", _descriptor13, this);
110
+
111
+ _initializerDefineProperty(this, "typeCode", _descriptor14, this);
112
+
113
+ _initializerDefineProperty(this, "category", _descriptor15, this);
114
+
115
+ _initializerDefineProperty(this, "created_at", _descriptor16, this);
116
+
117
+ _initializerDefineProperty(this, "updated_at", _descriptor17, this);
92
118
  }
93
119
 
94
120
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -112,59 +138,88 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
112
138
  initializer: function () {
113
139
  return _organisation.default;
114
140
  }
115
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "payee_iban", [_dec7], {
141
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "posting_date", [_dec7], {
142
+ configurable: true,
143
+ enumerable: true,
144
+ writable: true,
145
+ initializer: null
146
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "is_credit", [_dec8], {
147
+ configurable: true,
148
+ enumerable: true,
149
+ writable: true,
150
+ initializer: null
151
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "is_debit", [_dec9], {
152
+ configurable: true,
153
+ enumerable: true,
154
+ writable: true,
155
+ initializer: null
156
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "payee", [_dec10], {
116
157
  configurable: true,
117
158
  enumerable: true,
118
159
  writable: true,
119
160
  initializer: function () {
120
161
  return "";
121
162
  }
122
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "payer_iban", [_dec8], {
163
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "payer", [_dec11], {
123
164
  configurable: true,
124
165
  enumerable: true,
125
166
  writable: true,
126
167
  initializer: function () {
127
168
  return "";
128
169
  }
129
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec9], {
170
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec12], {
130
171
  configurable: true,
131
172
  enumerable: true,
132
173
  writable: true,
133
174
  initializer: null
134
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec10], {
175
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec13], {
176
+ configurable: true,
177
+ enumerable: true,
178
+ writable: true,
179
+ initializer: function () {
180
+ return "";
181
+ }
182
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec14], {
183
+ configurable: true,
184
+ enumerable: true,
185
+ writable: true,
186
+ initializer: function () {
187
+ return "";
188
+ }
189
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec15], {
135
190
  configurable: true,
136
191
  enumerable: true,
137
192
  writable: true,
138
193
  initializer: function () {
139
194
  return "";
140
195
  }
141
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec11], {
196
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec16], {
142
197
  configurable: true,
143
198
  enumerable: true,
144
199
  writable: true,
145
200
  initializer: function () {
146
201
  return "";
147
202
  }
148
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec12], {
203
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "typeCode", [_dec17], {
149
204
  configurable: true,
150
205
  enumerable: true,
151
206
  writable: true,
152
207
  initializer: function () {
153
208
  return "";
154
209
  }
155
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "category", [_dec13], {
210
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "category", [_dec18], {
156
211
  configurable: true,
157
212
  enumerable: true,
158
213
  writable: true,
159
214
  initializer: function () {
160
215
  return "";
161
216
  }
162
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec14], {
217
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec19], {
163
218
  configurable: true,
164
219
  enumerable: true,
165
220
  writable: true,
166
221
  initializer: null
167
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec15], {
222
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec20], {
168
223
  configurable: true,
169
224
  enumerable: true,
170
225
  writable: true,
@@ -0,0 +1,33 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class saltedgeTxUpdates1680523636126 {
4
+ name = 'saltedgeTxUpdates1680523636126'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payee_iban"`);
8
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payer_iban"`);
9
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "posting_date" date NOT NULL`);
10
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "is_credit" boolean NOT NULL DEFAULT false`);
11
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "is_debit" boolean NOT NULL DEFAULT false`);
12
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payee" character varying(250)`);
13
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payer" character varying(250)`);
14
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "type" character varying(100) NOT NULL`);
15
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "typeCode" character varying(50) NOT NULL`);
16
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "description"`);
17
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "description" character varying(1024)`);
18
+ }
19
+
20
+ async down(queryRunner) {
21
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "description"`);
22
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "description" character varying(250)`);
23
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "typeCode"`);
24
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "type"`);
25
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payer"`);
26
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payee"`);
27
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "is_debit"`);
28
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "is_credit"`);
29
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "posting_date"`);
30
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payer_iban" character varying(250)`);
31
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payee_iban" character varying(250)`);
32
+ }
33
+ }
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class saltedgeTxTypeNullable1680526517354 {
4
+ name = 'saltedgeTxTypeNullable1680526517354'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ALTER COLUMN "type" DROP NOT NULL`);
8
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ALTER COLUMN "typeCode" DROP NOT NULL`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ALTER COLUMN "typeCode" SET NOT NULL`);
13
+ await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ALTER COLUMN "type" SET NOT NULL`);
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {