@felloh-org/lambda-wrapper 1.1.67 → 1.1.68

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.
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _typeorm = require("typeorm");
9
9
 
10
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
10
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
11
11
 
12
12
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
13
13
 
@@ -30,7 +30,10 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
30
30
  }), _dec5 = (0, _typeorm.Column)({
31
31
  type: "varchar",
32
32
  length: "20"
33
- }), _dec6 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Merchant {
33
+ }), _dec6 = (0, _typeorm.Column)({
34
+ type: "boolean",
35
+ default: false
36
+ }), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Merchant {
34
37
  constructor() {
35
38
  _initializerDefineProperty(this, "merchant_number", _descriptor, this);
36
39
 
@@ -40,7 +43,9 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
40
43
 
41
44
  _initializerDefineProperty(this, "status", _descriptor4, this);
42
45
 
43
- _initializerDefineProperty(this, "created_at", _descriptor5, this);
46
+ _initializerDefineProperty(this, "in_omnipay", _descriptor5, this);
47
+
48
+ _initializerDefineProperty(this, "created_at", _descriptor6, this);
44
49
  }
45
50
 
46
51
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec2], {
@@ -71,7 +76,12 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
71
76
  initializer: function () {
72
77
  return "";
73
78
  }
74
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
79
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "in_omnipay", [_dec6], {
80
+ configurable: true,
81
+ enumerable: true,
82
+ writable: true,
83
+ initializer: null
84
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
75
85
  configurable: true,
76
86
  enumerable: true,
77
87
  writable: true,
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class trustInOmnipay1660211087722 {
4
+ name = 'trustInOmnipay1660211087722'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" ADD "in_omnipay" boolean NOT NULL DEFAULT false`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" DROP COLUMN "in_omnipay"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.1.67",
3
+ "version": "1.1.68",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {