@felloh-org/lambda-wrapper 1.9.1 → 1.9.3

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