@felloh-org/lambda-wrapper 1.1.33 → 1.1.34

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.
@@ -29,7 +29,7 @@ var _transactionBatch = _interopRequireDefault(require("../../bank/transaction-b
29
29
 
30
30
  var _transactionSource = _interopRequireDefault(require("../transaction-source"));
31
31
 
32
- 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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;
32
+ 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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
33
33
 
34
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
35
 
@@ -84,16 +84,19 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
84
84
  length: "250",
85
85
  nullable: true
86
86
  }), _dec24 = (0, _typeorm.Column)({
87
- type: "timestamp with time zone",
87
+ type: "json",
88
88
  nullable: true
89
89
  }), _dec25 = (0, _typeorm.Column)({
90
+ type: "timestamp with time zone",
91
+ nullable: true
92
+ }), _dec26 = (0, _typeorm.Column)({
90
93
  type: "text",
91
94
  nullable: true
92
- }), _dec26 = (0, _typeorm.CreateDateColumn)({
95
+ }), _dec27 = (0, _typeorm.CreateDateColumn)({
93
96
  type: 'timestamp with time zone'
94
- }), _dec27 = (0, _typeorm.UpdateDateColumn)({
97
+ }), _dec28 = (0, _typeorm.UpdateDateColumn)({
95
98
  type: 'timestamp with time zone'
96
- }), _dec28 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec(_class = (_class2 = class Transaction {
99
+ }), _dec29 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec(_class = (_class2 = class Transaction {
97
100
  constructor() {
98
101
  _initializerDefineProperty(this, "id", _descriptor, this);
99
102
 
@@ -121,15 +124,17 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
121
124
 
122
125
  _initializerDefineProperty(this, "provider_reference", _descriptor13, this);
123
126
 
124
- _initializerDefineProperty(this, "completed_at", _descriptor14, this);
127
+ _initializerDefineProperty(this, "provider_metadata", _descriptor14, this);
128
+
129
+ _initializerDefineProperty(this, "completed_at", _descriptor15, this);
125
130
 
126
- _initializerDefineProperty(this, "message", _descriptor15, this);
131
+ _initializerDefineProperty(this, "message", _descriptor16, this);
127
132
 
128
- _initializerDefineProperty(this, "created_at", _descriptor16, this);
133
+ _initializerDefineProperty(this, "created_at", _descriptor17, this);
129
134
 
130
- _initializerDefineProperty(this, "updated_at", _descriptor17, this);
135
+ _initializerDefineProperty(this, "updated_at", _descriptor18, this);
131
136
 
132
- _initializerDefineProperty(this, "batch", _descriptor18, this);
137
+ _initializerDefineProperty(this, "batch", _descriptor19, this);
133
138
  }
134
139
 
135
140
  getPublicData() {
@@ -267,27 +272,32 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
267
272
  initializer: function () {
268
273
  return "";
269
274
  }
270
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec24], {
275
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "provider_metadata", [_dec24], {
276
+ configurable: true,
277
+ enumerable: true,
278
+ writable: true,
279
+ initializer: null
280
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec25], {
271
281
  configurable: true,
272
282
  enumerable: true,
273
283
  writable: true,
274
284
  initializer: null
275
- }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec25], {
285
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec26], {
276
286
  configurable: true,
277
287
  enumerable: true,
278
288
  writable: true,
279
289
  initializer: null
280
- }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec26], {
290
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec27], {
281
291
  configurable: true,
282
292
  enumerable: true,
283
293
  writable: true,
284
294
  initializer: null
285
- }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec27], {
295
+ }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec28], {
286
296
  configurable: true,
287
297
  enumerable: true,
288
298
  writable: true,
289
299
  initializer: null
290
- }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec28], {
300
+ }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec29], {
291
301
  configurable: true,
292
302
  enumerable: true,
293
303
  writable: true,
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class transactionProviderMetadata1657637492675 {
4
+ name = 'transactionProviderMetadata1657637492675'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "provider_metadata" json`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "provider_metadata"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {