@felloh-org/lambda-wrapper 1.6.6 → 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.
@@ -11,7 +11,7 @@ var _organisation = _interopRequireDefault(require("../../user/organisation"));
11
11
 
12
12
  var _customer = _interopRequireDefault(require("../customer"));
13
13
 
14
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
14
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -45,6 +45,9 @@ let Connection = (_dec = (0, _typeorm.Entity)({
45
45
  type: 'timestamp with time zone'
46
46
  }), _dec10 = (0, _typeorm.UpdateDateColumn)({
47
47
  type: 'timestamp with time zone'
48
+ }), _dec11 = (0, _typeorm.Column)({
49
+ type: 'timestamp with time zone',
50
+ nullable: true
48
51
  }), _dec(_class = (_class2 = class Connection {
49
52
  constructor() {
50
53
  _initializerDefineProperty(this, "id", _descriptor, this);
@@ -60,6 +63,8 @@ let Connection = (_dec = (0, _typeorm.Entity)({
60
63
  _initializerDefineProperty(this, "created_at", _descriptor6, this);
61
64
 
62
65
  _initializerDefineProperty(this, "updated_at", _descriptor7, this);
66
+
67
+ _initializerDefineProperty(this, "last_success_at", _descriptor8, this);
63
68
  }
64
69
 
65
70
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -107,5 +112,10 @@ let Connection = (_dec = (0, _typeorm.Entity)({
107
112
  enumerable: true,
108
113
  writable: true,
109
114
  initializer: null
115
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "last_success_at", [_dec11], {
116
+ configurable: true,
117
+ enumerable: true,
118
+ writable: true,
119
+ initializer: null
110
120
  })), _class2)) || _class);
111
121
  exports.default = Connection;
@@ -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, _dec16, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
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.ManyToOne)(() => _account2.default), _dec8 = (0, _typeorm.JoinColumn)({
39
- name: 'payee',
40
- referencedColumnName: 'iban'
41
- }), _dec9 = (0, _typeorm.ManyToOne)(() => _account2.default), _dec10 = (0, _typeorm.JoinColumn)({
42
- name: 'payer',
43
- referencedColumnName: 'iban'
44
- }), _dec11 = (0, _typeorm.Column)({
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
- }), _dec12 = (0, _typeorm.Column)({
48
+ }), _dec10 = (0, _typeorm.Column)({
47
49
  type: "varchar",
48
50
  length: "250",
49
51
  nullable: true
50
- }), _dec13 = (0, _typeorm.Column)({
52
+ }), _dec11 = (0, _typeorm.Column)({
51
53
  type: "varchar",
52
54
  length: "100"
53
- }), _dec14 = (0, _typeorm.Column)({
55
+ }), _dec12 = (0, _typeorm.Column)({
54
56
  type: "varchar",
55
57
  length: "100",
56
58
  nullable: true
57
- }), _dec15 = (0, _typeorm.CreateDateColumn)({
59
+ }), _dec13 = (0, _typeorm.CreateDateColumn)({
58
60
  type: 'timestamp with time zone'
59
- }), _dec16 = (0, _typeorm.UpdateDateColumn)({
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, "payee", _descriptor4, this);
71
+ _initializerDefineProperty(this, "payee_iban", _descriptor4, this);
70
72
 
71
- _initializerDefineProperty(this, "payer", _descriptor5, 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, "payee", [_dec7, _dec8], {
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 _account2.default;
114
+ return "";
113
115
  }
114
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "payer", [_dec9, _dec10], {
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 _account2.default;
121
+ return "";
120
122
  }
121
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec11], {
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", [_dec12], {
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", [_dec13], {
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", [_dec14], {
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", [_dec15], {
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", [_dec16], {
154
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec14], {
153
155
  configurable: true,
154
156
  enumerable: true,
155
157
  writable: true,
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class saltedgeLastUpdatedAt1674569837946 {
4
+ name = 'saltedgeLastUpdatedAt1674569837946'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "saltedge"."connection" ADD "last_success_at" TIMESTAMP WITH TIME ZONE`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "saltedge"."connection" DROP COLUMN "last_success_at"`);
12
+ }
13
+ }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {