@felloh-org/lambda-wrapper 1.5.1 → 1.5.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.
@@ -33,7 +33,7 @@ var _ecommerce = _interopRequireDefault(require("../ecommerce"));
33
33
 
34
34
  var _currency = require("../../bank/currency");
35
35
 
36
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;
36
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;
37
37
 
38
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39
39
 
@@ -109,7 +109,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
109
109
  type: 'timestamp with time zone'
110
110
  }), _dec31 = (0, _typeorm.UpdateDateColumn)({
111
111
  type: 'timestamp with time zone'
112
- }), _dec32 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec(_class = (_class2 = class Transaction {
112
+ }), _dec32 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec33 = (0, _typeorm.Column)({
113
+ type: "timestamp with time zone",
114
+ nullable: true
115
+ }), _dec(_class = (_class2 = class Transaction {
113
116
  constructor() {
114
117
  _initializerDefineProperty(this, "id", _descriptor, this);
115
118
 
@@ -152,6 +155,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
152
155
  _initializerDefineProperty(this, "updated_at", _descriptor20, this);
153
156
 
154
157
  _initializerDefineProperty(this, "batch", _descriptor21, this);
158
+
159
+ _initializerDefineProperty(this, "assigned_at", _descriptor22, this);
155
160
  }
156
161
 
157
162
  getPublicData() {
@@ -170,7 +175,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
170
175
  payment_link: null,
171
176
  ecommerce: null,
172
177
  metadata: null,
173
- organisation: null
178
+ organisation: null,
179
+ assigned_at: this.assigned_at
174
180
  };
175
181
 
176
182
  if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicData === 'function') {
@@ -212,7 +218,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
212
218
  created_at: this.created_at,
213
219
  completed_at: this.completed_at,
214
220
  currency: this.currency,
215
- provider_reference: this.provider_reference
221
+ provider_reference: this.provider_reference,
222
+ assigned_at: this.assigned_at
216
223
  };
217
224
 
218
225
  if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicCompactData === 'function') {
@@ -241,7 +248,6 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
241
248
  response.organisation = this.organisation.getPublicCompactData();
242
249
  }
243
250
 
244
- console.log();
245
251
  return response;
246
252
  }
247
253
 
@@ -376,5 +382,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
376
382
  enumerable: true,
377
383
  writable: true,
378
384
  initializer: null
385
+ }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec33], {
386
+ configurable: true,
387
+ enumerable: true,
388
+ writable: true,
389
+ initializer: null
379
390
  })), _class2)) || _class);
380
391
  exports.default = Transaction;
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class transactionAssignedAt1671012060001 {
4
+ name = 'transactionAssignedAt1671012060001'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "assigned_at" TIMESTAMP WITH TIME ZONE`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "assigned_at"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {