@felloh-org/lambda-wrapper 1.11.14 → 1.11.16

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.
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _typeorm = require("typeorm");
9
+
10
+ var _transaction = _interopRequireDefault(require("../../payment/transaction"));
11
+
12
+ var _paymentProvider = _interopRequireDefault(require("../../payment/payment-provider"));
13
+
14
+ var _batch = _interopRequireDefault(require("../batch"));
15
+
16
+ var _organisation = _interopRequireDefault(require("../../user/organisation"));
17
+
18
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ 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 }); }
23
+
24
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
25
+
26
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
27
+
28
+ let Adjustment = (_dec = (0, _typeorm.Entity)({
29
+ name: 'adjustment',
30
+ schema: 'acquirer'
31
+ }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _batch.default), _dec4 = (0, _typeorm.JoinColumn)({
32
+ name: 'batch_id',
33
+ referencedColumnName: 'id'
34
+ }), _dec5 = (0, _typeorm.Column)({
35
+ type: "int",
36
+ nullable: true
37
+ }), _dec6 = (0, _typeorm.Column)({
38
+ type: "varchar",
39
+ length: "5",
40
+ nullable: true
41
+ }), _dec7 = (0, _typeorm.Column)({
42
+ type: "varchar",
43
+ length: "250"
44
+ }), _dec8 = (0, _typeorm.ManyToOne)(() => _paymentProvider.default), _dec9 = (0, _typeorm.JoinColumn)({
45
+ name: 'payment_provider_id',
46
+ referencedColumnName: 'id'
47
+ }), _dec10 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec11 = (0, _typeorm.JoinColumn)({
48
+ name: 'organisation_id',
49
+ referencedColumnName: 'id'
50
+ }), _dec12 = (0, _typeorm.CreateDateColumn)({
51
+ type: 'timestamp with time zone'
52
+ }), _dec13 = (0, _typeorm.UpdateDateColumn)({
53
+ type: 'timestamp with time zone'
54
+ }), _dec(_class = (_class2 = class Adjustment {
55
+ constructor() {
56
+ _initializerDefineProperty(this, "id", _descriptor, this);
57
+
58
+ _initializerDefineProperty(this, "batch", _descriptor2, this);
59
+
60
+ _initializerDefineProperty(this, "amount", _descriptor3, this);
61
+
62
+ _initializerDefineProperty(this, "currency", _descriptor4, this);
63
+
64
+ _initializerDefineProperty(this, "description", _descriptor5, this);
65
+
66
+ _initializerDefineProperty(this, "payment_provider", _descriptor6, this);
67
+
68
+ _initializerDefineProperty(this, "organisation", _descriptor7, this);
69
+
70
+ _initializerDefineProperty(this, "created_at", _descriptor8, this);
71
+
72
+ _initializerDefineProperty(this, "updated_at", _descriptor9, this);
73
+ }
74
+
75
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
76
+ configurable: true,
77
+ enumerable: true,
78
+ writable: true,
79
+ initializer: function () {
80
+ return undefined;
81
+ }
82
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec3, _dec4], {
83
+ configurable: true,
84
+ enumerable: true,
85
+ writable: true,
86
+ initializer: function () {
87
+ return _batch.default;
88
+ }
89
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec5], {
90
+ configurable: true,
91
+ enumerable: true,
92
+ writable: true,
93
+ initializer: null
94
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec6], {
95
+ configurable: true,
96
+ enumerable: true,
97
+ writable: true,
98
+ initializer: null
99
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec7], {
100
+ configurable: true,
101
+ enumerable: true,
102
+ writable: true,
103
+ initializer: null
104
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "payment_provider", [_dec8, _dec9], {
105
+ configurable: true,
106
+ enumerable: true,
107
+ writable: true,
108
+ initializer: function () {
109
+ return _paymentProvider.default;
110
+ }
111
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec10, _dec11], {
112
+ configurable: true,
113
+ enumerable: true,
114
+ writable: true,
115
+ initializer: function () {
116
+ return _organisation.default;
117
+ }
118
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
119
+ configurable: true,
120
+ enumerable: true,
121
+ writable: true,
122
+ initializer: null
123
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec13], {
124
+ configurable: true,
125
+ enumerable: true,
126
+ writable: true,
127
+ initializer: null
128
+ })), _class2)) || _class);
129
+ exports.default = Adjustment;
@@ -13,7 +13,9 @@ var _organisation = _interopRequireDefault(require("../../user/organisation"));
13
13
 
14
14
  var _transactionSettlement = _interopRequireDefault(require("../transaction-settlement"));
15
15
 
16
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
16
+ var _adjustment = _interopRequireDefault(require("../adjustment"));
17
+
18
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
@@ -41,12 +43,12 @@ let Batch = (_dec = (0, _typeorm.Entity)({
41
43
  }), _dec7 = (0, _typeorm.ManyToOne)(() => _paymentProvider.default), _dec8 = (0, _typeorm.JoinColumn)({
42
44
  name: 'payment_provider_id',
43
45
  referencedColumnName: 'id'
44
- }), _dec9 = (0, _typeorm.OneToMany)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.batch), _dec10 = (0, _typeorm.Column)({
46
+ }), _dec9 = (0, _typeorm.OneToMany)(() => _adjustment.default, adjustment => adjustment.batch), _dec10 = (0, _typeorm.OneToMany)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.batch), _dec11 = (0, _typeorm.Column)({
45
47
  type: "boolean",
46
48
  default: false
47
- }), _dec11 = (0, _typeorm.CreateDateColumn)({
49
+ }), _dec12 = (0, _typeorm.CreateDateColumn)({
48
50
  type: 'timestamp with time zone'
49
- }), _dec12 = (0, _typeorm.UpdateDateColumn)({
51
+ }), _dec13 = (0, _typeorm.UpdateDateColumn)({
50
52
  type: 'timestamp with time zone'
51
53
  }), _dec(_class = (_class2 = class Batch {
52
54
  constructor() {
@@ -62,13 +64,15 @@ let Batch = (_dec = (0, _typeorm.Entity)({
62
64
 
63
65
  _initializerDefineProperty(this, "payment_provider", _descriptor6, this);
64
66
 
65
- _initializerDefineProperty(this, "transaction_settlements", _descriptor7, this);
67
+ _initializerDefineProperty(this, "adjustments", _descriptor7, this);
68
+
69
+ _initializerDefineProperty(this, "transaction_settlements", _descriptor8, this);
66
70
 
67
- _initializerDefineProperty(this, "found_in_felloh_managed_trust", _descriptor8, this);
71
+ _initializerDefineProperty(this, "found_in_felloh_managed_trust", _descriptor9, this);
68
72
 
69
- _initializerDefineProperty(this, "created_at", _descriptor9, this);
73
+ _initializerDefineProperty(this, "created_at", _descriptor10, this);
70
74
 
71
- _initializerDefineProperty(this, "updated_at", _descriptor10, this);
75
+ _initializerDefineProperty(this, "updated_at", _descriptor11, this);
72
76
  }
73
77
 
74
78
  getPublicData() {
@@ -121,24 +125,29 @@ let Batch = (_dec = (0, _typeorm.Entity)({
121
125
  initializer: function () {
122
126
  return _paymentProvider.default;
123
127
  }
124
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "transaction_settlements", [_dec9], {
128
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "adjustments", [_dec9], {
129
+ configurable: true,
130
+ enumerable: true,
131
+ writable: true,
132
+ initializer: null
133
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "transaction_settlements", [_dec10], {
125
134
  configurable: true,
126
135
  enumerable: true,
127
136
  writable: true,
128
137
  initializer: null
129
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "found_in_felloh_managed_trust", [_dec10], {
138
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "found_in_felloh_managed_trust", [_dec11], {
130
139
  configurable: true,
131
140
  enumerable: true,
132
141
  writable: true,
133
142
  initializer: function () {
134
143
  return false;
135
144
  }
136
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec11], {
145
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
137
146
  configurable: true,
138
147
  enumerable: true,
139
148
  writable: true,
140
149
  initializer: null
141
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec12], {
150
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec13], {
142
151
  configurable: true,
143
152
  enumerable: true,
144
153
  writable: true,
@@ -9,8 +9,10 @@ var _batch = _interopRequireDefault(require("./batch"));
9
9
 
10
10
  var _transactionSettlement = _interopRequireDefault(require("./transaction-settlement"));
11
11
 
12
+ var _adjustment = _interopRequireDefault(require("./adjustment"));
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
14
- const ENTITIES = [_batch.default, _transactionSettlement.default];
16
+ const ENTITIES = [_adjustment.default, _batch.default, _transactionSettlement.default];
15
17
  var _default = ENTITIES;
16
18
  exports.default = _default;
@@ -13,7 +13,7 @@ var _organisationFeature = _interopRequireDefault(require("../organisation-featu
13
13
 
14
14
  var _organisationType = _interopRequireDefault(require("../organisation-type"));
15
15
 
16
- 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, _descriptor13, _descriptor14;
16
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -40,7 +40,10 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
40
40
  type: "varchar",
41
41
  length: "150",
42
42
  nullable: true
43
- }), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec8 = (0, _typeorm.UpdateDateColumn)(), _dec9 = (0, _typeorm.DeleteDateColumn)(), _dec10 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec11 = (0, _typeorm.JoinTable)({
43
+ }), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec8 = (0, _typeorm.UpdateDateColumn)(), _dec9 = (0, _typeorm.Column)({
44
+ type: 'timestamptz',
45
+ nullable: true
46
+ }), _dec10 = (0, _typeorm.DeleteDateColumn)(), _dec11 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec12 = (0, _typeorm.JoinTable)({
44
47
  name: "user_organisation",
45
48
  schema: "user",
46
49
  joinColumn: {
@@ -51,13 +54,13 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
51
54
  name: "user_id",
52
55
  referencedColumnName: "id"
53
56
  }
54
- }), _dec12 = (0, _typeorm.TreeParent)(), _dec13 = (0, _typeorm.TreeChildren)(), _dec14 = (0, _typeorm.OneToMany)(() => _organisationFeature.default, organisationFeature => organisationFeature.organisation), _dec15 = (0, _typeorm.ManyToOne)(() => _organisationType.default), _dec16 = (0, _typeorm.JoinColumn)({
57
+ }), _dec13 = (0, _typeorm.TreeParent)(), _dec14 = (0, _typeorm.TreeChildren)(), _dec15 = (0, _typeorm.OneToMany)(() => _organisationFeature.default, organisationFeature => organisationFeature.organisation), _dec16 = (0, _typeorm.ManyToOne)(() => _organisationType.default), _dec17 = (0, _typeorm.JoinColumn)({
55
58
  name: 'type_id',
56
59
  referencedColumnName: 'id'
57
- }), _dec17 = (0, _typeorm.Column)({
60
+ }), _dec18 = (0, _typeorm.Column)({
58
61
  type: "boolean",
59
62
  default: false
60
- }), _dec18 = (0, _typeorm.Column)({
63
+ }), _dec19 = (0, _typeorm.Column)({
61
64
  type: "boolean",
62
65
  default: false
63
66
  }), _dec(_class = _dec2(_class = (_class2 = class Organisation {
@@ -74,21 +77,23 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
74
77
 
75
78
  _initializerDefineProperty(this, "updated_at", _descriptor6, this);
76
79
 
77
- _initializerDefineProperty(this, "deleted_at", _descriptor7, this);
80
+ _initializerDefineProperty(this, "archived_at", _descriptor7, this);
81
+
82
+ _initializerDefineProperty(this, "deleted_at", _descriptor8, this);
78
83
 
79
- _initializerDefineProperty(this, "users", _descriptor8, this);
84
+ _initializerDefineProperty(this, "users", _descriptor9, this);
80
85
 
81
- _initializerDefineProperty(this, "parent", _descriptor9, this);
86
+ _initializerDefineProperty(this, "parent", _descriptor10, this);
82
87
 
83
- _initializerDefineProperty(this, "children", _descriptor10, this);
88
+ _initializerDefineProperty(this, "children", _descriptor11, this);
84
89
 
85
- _initializerDefineProperty(this, "organisation_feature", _descriptor11, this);
90
+ _initializerDefineProperty(this, "organisation_feature", _descriptor12, this);
86
91
 
87
- _initializerDefineProperty(this, "organisation_type", _descriptor12, this);
92
+ _initializerDefineProperty(this, "organisation_type", _descriptor13, this);
88
93
 
89
- _initializerDefineProperty(this, "unpaid_invoice", _descriptor13, this);
94
+ _initializerDefineProperty(this, "unpaid_invoice", _descriptor14, this);
90
95
 
91
- _initializerDefineProperty(this, "billing_enabled", _descriptor14, this);
96
+ _initializerDefineProperty(this, "billing_enabled", _descriptor15, this);
92
97
  }
93
98
 
94
99
  propgate(id, name) {
@@ -170,46 +175,51 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
170
175
  enumerable: true,
171
176
  writable: true,
172
177
  initializer: null
173
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec9], {
178
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "archived_at", [_dec9], {
179
+ configurable: true,
180
+ enumerable: true,
181
+ writable: true,
182
+ initializer: null
183
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec10], {
174
184
  configurable: true,
175
185
  enumerable: true,
176
186
  writable: true,
177
187
  initializer: null
178
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec10, _dec11], {
188
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec11, _dec12], {
179
189
  configurable: true,
180
190
  enumerable: true,
181
191
  writable: true,
182
192
  initializer: null
183
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec12], {
193
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec13], {
184
194
  configurable: true,
185
195
  enumerable: true,
186
196
  writable: true,
187
197
  initializer: null
188
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec13], {
198
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec14], {
189
199
  configurable: true,
190
200
  enumerable: true,
191
201
  writable: true,
192
202
  initializer: null
193
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "organisation_feature", [_dec14], {
203
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "organisation_feature", [_dec15], {
194
204
  configurable: true,
195
205
  enumerable: true,
196
206
  writable: true,
197
207
  initializer: null
198
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "organisation_type", [_dec15, _dec16], {
208
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "organisation_type", [_dec16, _dec17], {
199
209
  configurable: true,
200
210
  enumerable: true,
201
211
  writable: true,
202
212
  initializer: function () {
203
213
  return _organisationType.default;
204
214
  }
205
- }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "unpaid_invoice", [_dec17], {
215
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "unpaid_invoice", [_dec18], {
206
216
  configurable: true,
207
217
  enumerable: true,
208
218
  writable: true,
209
219
  initializer: function () {
210
220
  return false;
211
221
  }
212
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "billing_enabled", [_dec18], {
222
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "billing_enabled", [_dec19], {
213
223
  configurable: true,
214
224
  enumerable: true,
215
225
  writable: true,
package/dist/index.js CHANGED
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "AccountEntity", {
15
15
  return _account.default;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "AcquirerAdjustment", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _adjustment.default;
22
+ }
23
+ });
18
24
  Object.defineProperty(exports, "AcquirerBatch", {
19
25
  enumerable: true,
20
26
  get: function () {
@@ -30,7 +36,7 @@ Object.defineProperty(exports, "AcquirerTransactionSettlement", {
30
36
  Object.defineProperty(exports, "AdjustmentEntity", {
31
37
  enumerable: true,
32
38
  get: function () {
33
- return _adjustment.default;
39
+ return _adjustment2.default;
34
40
  }
35
41
  });
36
42
  Object.defineProperty(exports, "AmendmentEntity", {
@@ -432,7 +438,7 @@ Object.defineProperty(exports, "TPAccountFees", {
432
438
  Object.defineProperty(exports, "TPAdjustment", {
433
439
  enumerable: true,
434
440
  get: function () {
435
- return _adjustment2.default;
441
+ return _adjustment3.default;
436
442
  }
437
443
  });
438
444
  Object.defineProperty(exports, "TPBatchEntity", {
@@ -640,6 +646,8 @@ var _entity = _interopRequireDefault(require("./entity"));
640
646
 
641
647
  var _abtaMembers = _interopRequireDefault(require("./entity/scratch/abta-members"));
642
648
 
649
+ var _adjustment = _interopRequireDefault(require("./entity/acquirer/adjustment"));
650
+
643
651
  var _batch = _interopRequireDefault(require("./entity/acquirer/batch"));
644
652
 
645
653
  var _transactionSettlement = _interopRequireDefault(require("./entity/acquirer/transaction-settlement"));
@@ -660,7 +668,7 @@ var _bookingBankTransaction = _interopRequireDefault(require("./entity/agent-dat
660
668
 
661
669
  var _account = _interopRequireDefault(require("./entity/bank/account"));
662
670
 
663
- var _adjustment = _interopRequireDefault(require("./entity/bank/adjustment"));
671
+ var _adjustment2 = _interopRequireDefault(require("./entity/bank/adjustment"));
664
672
 
665
673
  var _amendment = _interopRequireDefault(require("./entity/bank/amendment"));
666
674
 
@@ -742,7 +750,7 @@ var _transactionCharges = _interopRequireDefault(require("./entity/trust-payment
742
750
 
743
751
  var _accountFees = _interopRequireDefault(require("./entity/trust-payments/account-fees"));
744
752
 
745
- var _adjustment2 = _interopRequireDefault(require("./entity/trust-payments/adjustment"));
753
+ var _adjustment3 = _interopRequireDefault(require("./entity/trust-payments/adjustment"));
746
754
 
747
755
  var _organisation = _interopRequireDefault(require("./entity/user/organisation"));
748
756
 
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class organisationArchive1692182636537 {
4
+ name = 'organisationArchive1692182636537'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "archived_at" TIMESTAMP WITH TIME ZONE`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "archived_at"`);
12
+ }
13
+ }
@@ -0,0 +1,19 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class acquirerAdjustment1692102029462 {
4
+ name = 'acquirerAdjustment1692102029462'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE TABLE "acquirer"."adjustment" ("id" character varying NOT NULL, "amount" integer, "currency" character varying(5), "description" character varying(250) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "batch_id" character varying, "payment_provider_id" character varying, "organisation_id" character varying(150), CONSTRAINT "PK_f84d8d269b59850fb017ee1630b" PRIMARY KEY ("id"))`);
8
+ await queryRunner.query(`ALTER TABLE "acquirer"."adjustment" ADD CONSTRAINT "FK_b5bd6a240c5b121448713251f5d" FOREIGN KEY ("batch_id") REFERENCES "acquirer"."batch"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
+ await queryRunner.query(`ALTER TABLE "acquirer"."adjustment" ADD CONSTRAINT "FK_ec01a590fe84f04a5e6d15dce1f" FOREIGN KEY ("payment_provider_id") REFERENCES "payment"."payment_provider"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
10
+ await queryRunner.query(`ALTER TABLE "acquirer"."adjustment" ADD CONSTRAINT "FK_d684ed3fd01c94b5fa2a010ab27" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
11
+ }
12
+
13
+ async down(queryRunner) {
14
+ await queryRunner.query(`ALTER TABLE "acquirer"."adjustment" DROP CONSTRAINT "FK_d684ed3fd01c94b5fa2a010ab27"`);
15
+ await queryRunner.query(`ALTER TABLE "acquirer"."adjustment" DROP CONSTRAINT "FK_ec01a590fe84f04a5e6d15dce1f"`);
16
+ await queryRunner.query(`ALTER TABLE "acquirer"."adjustment" DROP CONSTRAINT "FK_b5bd6a240c5b121448713251f5d"`);
17
+ await queryRunner.query(`DROP TABLE "acquirer"."adjustment"`);
18
+ }
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.14",
3
+ "version": "1.11.16",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {