@felloh-org/lambda-wrapper 1.11.1 → 1.11.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 _paymentProvider = _interopRequireDefault(require("../../payment/payment-pro
11
11
 
12
12
  var _organisation = _interopRequireDefault(require("../../user/organisation"));
13
13
 
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;
14
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -39,12 +39,9 @@ let Batch = (_dec = (0, _typeorm.Entity)({
39
39
  }), _dec7 = (0, _typeorm.ManyToOne)(() => _paymentProvider.default), _dec8 = (0, _typeorm.JoinColumn)({
40
40
  name: 'payment_provider_id',
41
41
  referencedColumnName: 'id'
42
- }), _dec9 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec10 = (0, _typeorm.JoinColumn)({
43
- name: 'organisation_id',
44
- referencedColumnName: 'id'
45
- }), _dec11 = (0, _typeorm.CreateDateColumn)({
42
+ }), _dec9 = (0, _typeorm.CreateDateColumn)({
46
43
  type: 'timestamp with time zone'
47
- }), _dec12 = (0, _typeorm.UpdateDateColumn)({
44
+ }), _dec10 = (0, _typeorm.UpdateDateColumn)({
48
45
  type: 'timestamp with time zone'
49
46
  }), _dec(_class = (_class2 = class Batch {
50
47
  constructor() {
@@ -60,11 +57,9 @@ let Batch = (_dec = (0, _typeorm.Entity)({
60
57
 
61
58
  _initializerDefineProperty(this, "payment_provider", _descriptor6, this);
62
59
 
63
- _initializerDefineProperty(this, "organisation", _descriptor7, this);
64
-
65
- _initializerDefineProperty(this, "created_at", _descriptor8, this);
60
+ _initializerDefineProperty(this, "created_at", _descriptor7, this);
66
61
 
67
- _initializerDefineProperty(this, "updated_at", _descriptor9, this);
62
+ _initializerDefineProperty(this, "updated_at", _descriptor8, this);
68
63
  }
69
64
 
70
65
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -101,19 +96,12 @@ let Batch = (_dec = (0, _typeorm.Entity)({
101
96
  initializer: function () {
102
97
  return _paymentProvider.default;
103
98
  }
104
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec9, _dec10], {
105
- configurable: true,
106
- enumerable: true,
107
- writable: true,
108
- initializer: function () {
109
- return _organisation.default;
110
- }
111
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec11], {
99
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec9], {
112
100
  configurable: true,
113
101
  enumerable: true,
114
102
  writable: true,
115
103
  initializer: null
116
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec12], {
104
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec10], {
117
105
  configurable: true,
118
106
  enumerable: true,
119
107
  writable: true,
@@ -0,0 +1,14 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class acquirerBatchRemoveOrganisation1686834512382 {
4
+ name = 'acquirerBatchRemoveOrganisation1686834512382'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "acquirer"."batch" DROP CONSTRAINT "FK_be6ea19f24fb878c24f04043da0"`);
8
+ await queryRunner.query(`ALTER TABLE "acquirer"."batch" DROP COLUMN "organisation_id"`);}
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "acquirer"."batch" ADD "organisation_id" character varying(150)`);
12
+ await queryRunner.query(`ALTER TABLE "acquirer"."batch" ADD CONSTRAINT "FK_be6ea19f24fb878c24f04043da0" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
13
+ }
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {