@felloh-org/lambda-wrapper 1.11.35 → 1.11.36

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.
@@ -15,7 +15,7 @@ var _user = _interopRequireDefault(require("../../user/user"));
15
15
 
16
16
  var _organisation = _interopRequireDefault(require("../../user/organisation"));
17
17
 
18
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
18
+ 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;
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
@@ -38,36 +38,42 @@ let Refund = (_dec = (0, _typeorm.Entity)({
38
38
  referencedColumnName: 'id'
39
39
  }), _dec6 = (0, _typeorm.Column)({
40
40
  type: "int"
41
- }), _dec7 = (0, _typeorm.ManyToOne)(() => _user.default), _dec8 = (0, _typeorm.JoinColumn)({
41
+ }), _dec7 = (0, _typeorm.Column)({
42
+ type: "text",
43
+ nullable: true
44
+ }), _dec8 = (0, _typeorm.ManyToOne)(() => _user.default), _dec9 = (0, _typeorm.JoinColumn)({
42
45
  name: 'requesting_user_id',
43
46
  referencedColumnName: 'id'
44
- }), _dec9 = (0, _typeorm.ManyToOne)(() => _user.default, {
47
+ }), _dec10 = (0, _typeorm.ManyToOne)(() => _user.default, {
45
48
  nullable: true
46
- }), _dec10 = (0, _typeorm.JoinColumn)({
49
+ }), _dec11 = (0, _typeorm.JoinColumn)({
47
50
  name: 'authorised_user_id',
48
51
  referencedColumnName: 'id'
49
- }), _dec11 = (0, _typeorm.Column)({
52
+ }), _dec12 = (0, _typeorm.Column)({
50
53
  type: "varchar",
51
54
  length: "36",
52
55
  nullable: true
53
- }), _dec12 = (0, _typeorm.Column)({
56
+ }), _dec13 = (0, _typeorm.Column)({
54
57
  type: "timestamp with time zone",
55
58
  nullable: true
56
- }), _dec13 = (0, _typeorm.ManyToOne)(() => _organisation.default, {
59
+ }), _dec14 = (0, _typeorm.ManyToOne)(() => _organisation.default, {
57
60
  nullable: true
58
- }), _dec14 = (0, _typeorm.JoinColumn)({
61
+ }), _dec15 = (0, _typeorm.JoinColumn)({
59
62
  name: 'organisation_id',
60
63
  referencedColumnName: 'id'
61
- }), _dec15 = (0, _typeorm.Column)({
64
+ }), _dec16 = (0, _typeorm.Column)({
62
65
  type: "timestamp with time zone",
63
66
  nullable: true
64
- }), _dec16 = (0, _typeorm.CreateDateColumn)({
67
+ }), _dec17 = (0, _typeorm.CreateDateColumn)({
65
68
  type: 'timestamp with time zone'
66
- }), _dec17 = (0, _typeorm.UpdateDateColumn)({
69
+ }), _dec18 = (0, _typeorm.UpdateDateColumn)({
67
70
  type: 'timestamp with time zone'
68
- }), _dec18 = (0, _typeorm.DeleteDateColumn)({
71
+ }), _dec19 = (0, _typeorm.DeleteDateColumn)({
69
72
  type: 'timestamp with time zone',
70
73
  nullable: true
74
+ }), _dec20 = (0, _typeorm.Column)({
75
+ type: "text",
76
+ nullable: true
71
77
  }), _dec(_class = (_class2 = class Refund {
72
78
  constructor() {
73
79
  _initializerDefineProperty(this, "transaction", _descriptor, this);
@@ -76,23 +82,27 @@ let Refund = (_dec = (0, _typeorm.Entity)({
76
82
 
77
83
  _initializerDefineProperty(this, "amount", _descriptor3, this);
78
84
 
79
- _initializerDefineProperty(this, "requesting_user", _descriptor4, this);
85
+ _initializerDefineProperty(this, "description", _descriptor4, this);
80
86
 
81
- _initializerDefineProperty(this, "authorised_user", _descriptor5, this);
87
+ _initializerDefineProperty(this, "requesting_user", _descriptor5, this);
82
88
 
83
- _initializerDefineProperty(this, "authorisation_code", _descriptor6, this);
89
+ _initializerDefineProperty(this, "authorised_user", _descriptor6, this);
84
90
 
85
- _initializerDefineProperty(this, "authorised_at", _descriptor7, this);
91
+ _initializerDefineProperty(this, "authorisation_code", _descriptor7, this);
86
92
 
87
- _initializerDefineProperty(this, "organisation", _descriptor8, this);
93
+ _initializerDefineProperty(this, "authorised_at", _descriptor8, this);
88
94
 
89
- _initializerDefineProperty(this, "completed_at", _descriptor9, this);
95
+ _initializerDefineProperty(this, "organisation", _descriptor9, this);
90
96
 
91
- _initializerDefineProperty(this, "created_at", _descriptor10, this);
97
+ _initializerDefineProperty(this, "completed_at", _descriptor10, this);
92
98
 
93
- _initializerDefineProperty(this, "updated_at", _descriptor11, this);
99
+ _initializerDefineProperty(this, "created_at", _descriptor11, this);
94
100
 
95
- _initializerDefineProperty(this, "deleted_at", _descriptor12, this);
101
+ _initializerDefineProperty(this, "updated_at", _descriptor12, this);
102
+
103
+ _initializerDefineProperty(this, "deleted_at", _descriptor13, this);
104
+
105
+ _initializerDefineProperty(this, "error", _descriptor14, this);
96
106
  }
97
107
 
98
108
  getPublicData() {
@@ -100,6 +110,7 @@ let Refund = (_dec = (0, _typeorm.Entity)({
100
110
 
101
111
  return {
102
112
  amount: this.amount,
113
+ description: this.description,
103
114
  status: this.status && typeof ((_this$status = this.status) === null || _this$status === void 0 ? void 0 : _this$status.getPublicData) === 'function' ? this.status.getPublicData() : null,
104
115
  requesting_user: this.requesting_user && typeof ((_this$requesting_user = this.requesting_user) === null || _this$requesting_user === void 0 ? void 0 : _this$requesting_user.getPublicData) === 'function' ? this.requesting_user.getPublicCompactData() : null,
105
116
  authorised_user: this.authorised_user && typeof ((_this$authorised_user = this.authorised_user) === null || _this$authorised_user === void 0 ? void 0 : _this$authorised_user.getPublicData) === 'function' ? this.authorised_user.getPublicCompactData() : null,
@@ -108,7 +119,8 @@ let Refund = (_dec = (0, _typeorm.Entity)({
108
119
  organisation: this.organisation && typeof ((_this$organisation = this.organisation) === null || _this$organisation === void 0 ? void 0 : _this$organisation.getPublicCompactData) === 'function' ? this.organisation.getPublicCompactData() : null,
109
120
  completed_at: this.completed_at,
110
121
  transaction: this.transaction && typeof ((_this$transaction = this.transaction) === null || _this$transaction === void 0 ? void 0 : _this$transaction.getPublicData) === 'function' ? this.transaction.getPublicData() : null,
111
- created_at: this.created_at
122
+ created_at: this.created_at,
123
+ error_message: this.error
112
124
  };
113
125
  }
114
126
 
@@ -131,55 +143,65 @@ let Refund = (_dec = (0, _typeorm.Entity)({
131
143
  enumerable: true,
132
144
  writable: true,
133
145
  initializer: null
134
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "requesting_user", [_dec7, _dec8], {
146
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec7], {
147
+ configurable: true,
148
+ enumerable: true,
149
+ writable: true,
150
+ initializer: null
151
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "requesting_user", [_dec8, _dec9], {
135
152
  configurable: true,
136
153
  enumerable: true,
137
154
  writable: true,
138
155
  initializer: function () {
139
156
  return _user.default;
140
157
  }
141
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "authorised_user", [_dec9, _dec10], {
158
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "authorised_user", [_dec10, _dec11], {
142
159
  configurable: true,
143
160
  enumerable: true,
144
161
  writable: true,
145
162
  initializer: function () {
146
163
  return _user.default;
147
164
  }
148
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "authorisation_code", [_dec11], {
165
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "authorisation_code", [_dec12], {
149
166
  configurable: true,
150
167
  enumerable: true,
151
168
  writable: true,
152
169
  initializer: function () {
153
170
  return "";
154
171
  }
155
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "authorised_at", [_dec12], {
172
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "authorised_at", [_dec13], {
156
173
  configurable: true,
157
174
  enumerable: true,
158
175
  writable: true,
159
176
  initializer: null
160
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec13, _dec14], {
177
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec14, _dec15], {
161
178
  configurable: true,
162
179
  enumerable: true,
163
180
  writable: true,
164
181
  initializer: function () {
165
182
  return _organisation.default;
166
183
  }
167
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec15], {
184
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec16], {
185
+ configurable: true,
186
+ enumerable: true,
187
+ writable: true,
188
+ initializer: null
189
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec17], {
168
190
  configurable: true,
169
191
  enumerable: true,
170
192
  writable: true,
171
193
  initializer: null
172
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec16], {
194
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec18], {
173
195
  configurable: true,
174
196
  enumerable: true,
175
197
  writable: true,
176
198
  initializer: null
177
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec17], {
199
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec19], {
178
200
  configurable: true,
179
201
  enumerable: true,
180
202
  writable: true,
181
203
  initializer: null
182
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec18], {
204
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "error", [_dec20], {
183
205
  configurable: true,
184
206
  enumerable: true,
185
207
  writable: true,
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class refundFailureReason1695986876527 {
4
+ name = 'refundFailureReason1695986876527'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "payment"."refund" ADD "description" text`);
8
+ await queryRunner.query(`ALTER TABLE "payment"."refund" ADD "error" text`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "payment"."refund" DROP COLUMN "error"`);
13
+ await queryRunner.query(`ALTER TABLE "payment"."refund" DROP COLUMN "description"`);
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.35",
3
+ "version": "1.11.36",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {