@felloh-org/lambda-wrapper 1.9.1 → 1.9.2

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,
@@ -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
+ }
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.2",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {