@felloh-org/lambda-wrapper 1.1.6 → 1.1.9

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,9 @@ var _organisation = _interopRequireDefault(require("../../user/organisation"));
11
11
 
12
12
  var _account = _interopRequireDefault(require("../account"));
13
13
 
14
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
14
+ var _transactionBatch = _interopRequireDefault(require("../transaction-batch"));
15
+
16
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
@@ -37,7 +39,7 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
37
39
  }), _dec8 = (0, _typeorm.Column)({
38
40
  type: "varchar",
39
41
  length: "50"
40
- }), _dec9 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Disbursal {
42
+ }), _dec9 = (0, _typeorm.CreateDateColumn)(), _dec10 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.disbursal), _dec(_class = (_class2 = class Disbursal {
41
43
  constructor() {
42
44
  _initializerDefineProperty(this, "id", _descriptor, this);
43
45
 
@@ -50,6 +52,8 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
50
52
  _initializerDefineProperty(this, "bank_reference", _descriptor5, this);
51
53
 
52
54
  _initializerDefineProperty(this, "created_at", _descriptor6, this);
55
+
56
+ _initializerDefineProperty(this, "batch", _descriptor7, this);
53
57
  }
54
58
 
55
59
  getPublicData() {
@@ -98,5 +102,10 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
98
102
  enumerable: true,
99
103
  writable: true,
100
104
  initializer: null
105
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec10], {
106
+ configurable: true,
107
+ enumerable: true,
108
+ writable: true,
109
+ initializer: null
101
110
  })), _class2)) || _class);
102
111
  exports.default = Disbursal;
@@ -13,8 +13,10 @@ var _ledger = _interopRequireDefault(require("./ledger"));
13
13
 
14
14
  var _settledTransaction = _interopRequireDefault(require("./settled-transaction"));
15
15
 
16
+ var _transactionBatch = _interopRequireDefault(require("./transaction-batch"));
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
- const ENTITIES = [_account.default, _disbursal.default, _ledger.default, _settledTransaction.default];
20
+ const ENTITIES = [_account.default, _disbursal.default, _ledger.default, _settledTransaction.default, _transactionBatch.default];
19
21
  var _default = ENTITIES;
20
22
  exports.default = _default;
@@ -0,0 +1,84 @@
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 _disbursal = _interopRequireDefault(require("../disbursal"));
13
+
14
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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 }); }
19
+
20
+ 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; }
21
+
22
+ 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.'); }
23
+
24
+ let TransactionBatch = (_dec = (0, _typeorm.Entity)({
25
+ name: 'transaction_batch',
26
+ schema: 'bank'
27
+ }), _dec2 = (0, _typeorm.ManyToOne)(() => _transaction.default, {
28
+ primary: true
29
+ }), _dec3 = (0, _typeorm.JoinColumn)({
30
+ name: 'transaction_id',
31
+ referencedColumnName: 'id'
32
+ }), _dec4 = (0, _typeorm.ManyToOne)(() => _disbursal.default), _dec5 = (0, _typeorm.JoinColumn)({
33
+ name: 'disbursal_id',
34
+ referencedColumnName: 'id'
35
+ }), _dec6 = (0, _typeorm.CreateDateColumn)({
36
+ type: 'timestamp with time zone'
37
+ }), _dec7 = (0, _typeorm.UpdateDateColumn)({
38
+ type: 'timestamp with time zone'
39
+ }), _dec8 = (0, _typeorm.DeleteDateColumn)({
40
+ type: 'timestamp with time zone'
41
+ }), _dec(_class = (_class2 = class TransactionBatch {
42
+ constructor() {
43
+ _initializerDefineProperty(this, "transaction", _descriptor, this);
44
+
45
+ _initializerDefineProperty(this, "disbursal", _descriptor2, this);
46
+
47
+ _initializerDefineProperty(this, "created_at", _descriptor3, this);
48
+
49
+ _initializerDefineProperty(this, "updated_at", _descriptor4, this);
50
+
51
+ _initializerDefineProperty(this, "deleted_at", _descriptor5, this);
52
+ }
53
+
54
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
55
+ configurable: true,
56
+ enumerable: true,
57
+ writable: true,
58
+ initializer: function () {
59
+ return _transaction.default;
60
+ }
61
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "disbursal", [_dec4, _dec5], {
62
+ configurable: true,
63
+ enumerable: true,
64
+ writable: true,
65
+ initializer: function () {
66
+ return _disbursal.default;
67
+ }
68
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
69
+ configurable: true,
70
+ enumerable: true,
71
+ writable: true,
72
+ initializer: null
73
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec7], {
74
+ configurable: true,
75
+ enumerable: true,
76
+ writable: true,
77
+ initializer: null
78
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec8], {
79
+ configurable: true,
80
+ enumerable: true,
81
+ writable: true,
82
+ initializer: null
83
+ })), _class2)) || _class);
84
+ exports.default = TransactionBatch;
@@ -25,7 +25,9 @@ var _paymentProvider = _interopRequireDefault(require("../payment-provider"));
25
25
 
26
26
  var _organisationPaymentProvider = _interopRequireDefault(require("../organisation-payment-provider"));
27
27
 
28
- 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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;
28
+ var _transactionBatch = _interopRequireDefault(require("../../bank/transaction-batch"));
29
+
30
+ 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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;
29
31
 
30
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
33
 
@@ -84,7 +86,7 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
84
86
  type: 'timestamp with time zone'
85
87
  }), _dec25 = (0, _typeorm.UpdateDateColumn)({
86
88
  type: 'timestamp with time zone'
87
- }), _dec(_class = (_class2 = class Transaction {
89
+ }), _dec26 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec(_class = (_class2 = class Transaction {
88
90
  constructor() {
89
91
  _initializerDefineProperty(this, "id", _descriptor, this);
90
92
 
@@ -117,6 +119,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
117
119
  _initializerDefineProperty(this, "created_at", _descriptor15, this);
118
120
 
119
121
  _initializerDefineProperty(this, "updated_at", _descriptor16, this);
122
+
123
+ _initializerDefineProperty(this, "batch", _descriptor17, this);
120
124
  }
121
125
 
122
126
  getPublicData() {
@@ -249,5 +253,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
249
253
  enumerable: true,
250
254
  writable: true,
251
255
  initializer: null
256
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec26], {
257
+ configurable: true,
258
+ enumerable: true,
259
+ writable: true,
260
+ initializer: null
252
261
  })), _class2)) || _class);
253
262
  exports.default = Transaction;
@@ -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, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
10
+ 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, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;
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
 
@@ -40,7 +40,7 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
40
40
  nullable: true
41
41
  }), _dec8 = (0, _typeorm.Column)({
42
42
  type: "varchar",
43
- length: "20",
43
+ length: "250",
44
44
  nullable: true
45
45
  }), _dec9 = (0, _typeorm.Column)({
46
46
  type: "varchar",
@@ -48,13 +48,52 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
48
48
  nullable: true
49
49
  }), _dec10 = (0, _typeorm.Column)({
50
50
  type: "varchar",
51
- length: "20",
51
+ length: "100",
52
+ nullable: true
53
+ }), _dec11 = (0, _typeorm.Column)({
54
+ type: "varchar",
55
+ length: "50",
56
+ nullable: true
57
+ }), _dec12 = (0, _typeorm.Column)('json', {
58
+ nullable: true
59
+ }), _dec13 = (0, _typeorm.Column)({
60
+ type: "varchar",
61
+ length: "150",
62
+ nullable: true
63
+ }), _dec14 = (0, _typeorm.Column)({
64
+ type: "varchar",
65
+ length: "150",
66
+ nullable: true
67
+ }), _dec15 = (0, _typeorm.Column)({
68
+ type: "varchar",
69
+ length: "50",
70
+ nullable: true
71
+ }), _dec16 = (0, _typeorm.Column)({
72
+ type: "varchar",
73
+ length: "250",
74
+ nullable: true
75
+ }), _dec17 = (0, _typeorm.Column)({
76
+ type: "int",
77
+ nullable: true
78
+ }), _dec18 = (0, _typeorm.Column)('json', {
79
+ nullable: true
80
+ }), _dec19 = (0, _typeorm.Column)({
81
+ type: "int",
82
+ nullable: true
83
+ }), _dec20 = (0, _typeorm.Column)({
84
+ type: "int",
85
+ nullable: true
86
+ }), _dec21 = (0, _typeorm.Column)({
87
+ type: "int",
88
+ nullable: true
89
+ }), _dec22 = (0, _typeorm.Column)({
90
+ type: "int",
52
91
  nullable: true
53
- }), _dec11 = (0, _typeorm.Column)("text", {
54
- array: true,
92
+ }), _dec23 = (0, _typeorm.Column)({
93
+ type: "int",
55
94
  nullable: true
56
- }), _dec12 = (0, _typeorm.Column)("text", {
57
- array: true,
95
+ }), _dec24 = (0, _typeorm.Column)({
96
+ type: "int",
58
97
  nullable: true
59
98
  }), _dec(_class = (_class2 = class ABTAMembers {
60
99
  constructor() {
@@ -62,23 +101,47 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
62
101
 
63
102
  _initializerDefineProperty(this, "company_name", _descriptor2, this);
64
103
 
65
- _initializerDefineProperty(this, "address_1", _descriptor3, this);
104
+ _initializerDefineProperty(this, "company_number", _descriptor3, this);
66
105
 
67
- _initializerDefineProperty(this, "address_2", _descriptor4, this);
106
+ _initializerDefineProperty(this, "address_1", _descriptor4, this);
68
107
 
69
- _initializerDefineProperty(this, "address_3", _descriptor5, this);
108
+ _initializerDefineProperty(this, "address_2", _descriptor5, this);
70
109
 
71
- _initializerDefineProperty(this, "city", _descriptor6, this);
110
+ _initializerDefineProperty(this, "address_3", _descriptor6, this);
72
111
 
73
- _initializerDefineProperty(this, "postcode", _descriptor7, this);
112
+ _initializerDefineProperty(this, "city", _descriptor7, this);
74
113
 
75
- _initializerDefineProperty(this, "website", _descriptor8, this);
114
+ _initializerDefineProperty(this, "postcode", _descriptor8, this);
76
115
 
77
- _initializerDefineProperty(this, "telephone", _descriptor9, this);
116
+ _initializerDefineProperty(this, "website", _descriptor9, this);
78
117
 
79
- _initializerDefineProperty(this, "abta_number", _descriptor10, this);
118
+ _initializerDefineProperty(this, "telephone", _descriptor10, this);
80
119
 
81
- _initializerDefineProperty(this, "brands", _descriptor11, this);
120
+ _initializerDefineProperty(this, "abta_number", _descriptor11, this);
121
+
122
+ _initializerDefineProperty(this, "atol_number", _descriptor12, this);
123
+
124
+ _initializerDefineProperty(this, "group", _descriptor13, this);
125
+
126
+ _initializerDefineProperty(this, "tta_id", _descriptor14, this);
127
+
128
+ _initializerDefineProperty(this, "email", _descriptor15, this);
129
+
130
+ _initializerDefineProperty(this, "atol_volume", _descriptor16, this);
131
+
132
+ _initializerDefineProperty(this, "brands", _descriptor17, this);
133
+
134
+ _initializerDefineProperty(this, "totalAssets", _descriptor18, this);
135
+
136
+ _initializerDefineProperty(this, "netWorth", _descriptor19, this);
137
+
138
+ _initializerDefineProperty(this, "totalLiabilities", _descriptor20, this);
139
+
140
+ _initializerDefineProperty(this, "turnover", _descriptor21, this);
141
+
142
+ _initializerDefineProperty(this, "grossProfit", _descriptor22, this);
143
+
144
+ _initializerDefineProperty(this, "numberOfEmployees", _descriptor23, this);
82
145
  }
83
146
 
84
147
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
@@ -95,61 +158,123 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
95
158
  initializer: function () {
96
159
  return "";
97
160
  }
98
- }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "address_1", [_dec4], {
161
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "company_number", [_dec4], {
162
+ configurable: true,
163
+ enumerable: true,
164
+ writable: true,
165
+ initializer: function () {
166
+ return "";
167
+ }
168
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "address_1", [_dec5], {
99
169
  configurable: true,
100
170
  enumerable: true,
101
171
  writable: true,
102
172
  initializer: function () {
103
173
  return "";
104
174
  }
105
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "address_2", [_dec5], {
175
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "address_2", [_dec6], {
106
176
  configurable: true,
107
177
  enumerable: true,
108
178
  writable: true,
109
179
  initializer: function () {
110
180
  return "";
111
181
  }
112
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "address_3", [_dec6], {
182
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "address_3", [_dec7], {
113
183
  configurable: true,
114
184
  enumerable: true,
115
185
  writable: true,
116
186
  initializer: function () {
117
187
  return "";
118
188
  }
119
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "city", [_dec7], {
189
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "city", [_dec8], {
120
190
  configurable: true,
121
191
  enumerable: true,
122
192
  writable: true,
123
193
  initializer: function () {
124
194
  return "";
125
195
  }
126
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "postcode", [_dec8], {
196
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "postcode", [_dec9], {
127
197
  configurable: true,
128
198
  enumerable: true,
129
199
  writable: true,
130
200
  initializer: function () {
131
201
  return "";
132
202
  }
133
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "website", [_dec9], {
203
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "website", [_dec10], {
134
204
  configurable: true,
135
205
  enumerable: true,
136
206
  writable: true,
137
207
  initializer: function () {
138
208
  return "";
139
209
  }
140
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "telephone", [_dec10], {
210
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "telephone", [_dec11], {
141
211
  configurable: true,
142
212
  enumerable: true,
143
213
  writable: true,
144
214
  initializer: function () {
145
215
  return "";
146
216
  }
147
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "abta_number", [_dec11], {
217
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "abta_number", [_dec12], {
218
+ configurable: true,
219
+ enumerable: true,
220
+ writable: true,
221
+ initializer: null
222
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "atol_number", [_dec13], {
223
+ configurable: true,
224
+ enumerable: true,
225
+ writable: true,
226
+ initializer: null
227
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "group", [_dec14], {
228
+ configurable: true,
229
+ enumerable: true,
230
+ writable: true,
231
+ initializer: null
232
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "tta_id", [_dec15], {
233
+ configurable: true,
234
+ enumerable: true,
235
+ writable: true,
236
+ initializer: null
237
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec16], {
238
+ configurable: true,
239
+ enumerable: true,
240
+ writable: true,
241
+ initializer: null
242
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "atol_volume", [_dec17], {
243
+ configurable: true,
244
+ enumerable: true,
245
+ writable: true,
246
+ initializer: null
247
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "brands", [_dec18], {
248
+ configurable: true,
249
+ enumerable: true,
250
+ writable: true,
251
+ initializer: null
252
+ }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "totalAssets", [_dec19], {
253
+ configurable: true,
254
+ enumerable: true,
255
+ writable: true,
256
+ initializer: null
257
+ }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "netWorth", [_dec20], {
258
+ configurable: true,
259
+ enumerable: true,
260
+ writable: true,
261
+ initializer: null
262
+ }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "totalLiabilities", [_dec21], {
263
+ configurable: true,
264
+ enumerable: true,
265
+ writable: true,
266
+ initializer: null
267
+ }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "turnover", [_dec22], {
268
+ configurable: true,
269
+ enumerable: true,
270
+ writable: true,
271
+ initializer: null
272
+ }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "grossProfit", [_dec23], {
148
273
  configurable: true,
149
274
  enumerable: true,
150
275
  writable: true,
151
276
  initializer: null
152
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "brands", [_dec12], {
277
+ }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "numberOfEmployees", [_dec24], {
153
278
  configurable: true,
154
279
  enumerable: true,
155
280
  writable: true,
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
9
9
 
10
10
  var _user = _interopRequireDefault(require("../user"));
11
11
 
12
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
12
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -28,7 +28,11 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
28
28
  }), _dec4 = (0, _typeorm.Column)({
29
29
  type: "varchar",
30
30
  length: "150"
31
- }), _dec5 = (0, _typeorm.CreateDateColumn)(), _dec6 = (0, _typeorm.UpdateDateColumn)(), _dec7 = (0, _typeorm.DeleteDateColumn)(), _dec8 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec9 = (0, _typeorm.JoinTable)({
31
+ }), _dec5 = (0, _typeorm.Column)({
32
+ type: "varchar",
33
+ length: "250",
34
+ nullable: true
35
+ }), _dec6 = (0, _typeorm.CreateDateColumn)(), _dec7 = (0, _typeorm.UpdateDateColumn)(), _dec8 = (0, _typeorm.DeleteDateColumn)(), _dec9 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec10 = (0, _typeorm.JoinTable)({
32
36
  name: "user_organisation",
33
37
  schema: "user",
34
38
  joinColumn: {
@@ -39,23 +43,25 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
39
43
  name: "user_id",
40
44
  referencedColumnName: "id"
41
45
  }
42
- }), _dec10 = (0, _typeorm.TreeParent)(), _dec11 = (0, _typeorm.TreeChildren)(), _dec(_class = _dec2(_class = (_class2 = class Organisation {
46
+ }), _dec11 = (0, _typeorm.TreeParent)(), _dec12 = (0, _typeorm.TreeChildren)(), _dec(_class = _dec2(_class = (_class2 = class Organisation {
43
47
  constructor() {
44
48
  _initializerDefineProperty(this, "id", _descriptor, this);
45
49
 
46
50
  _initializerDefineProperty(this, "name", _descriptor2, this);
47
51
 
48
- _initializerDefineProperty(this, "created_at", _descriptor3, this);
52
+ _initializerDefineProperty(this, "image", _descriptor3, this);
53
+
54
+ _initializerDefineProperty(this, "created_at", _descriptor4, this);
49
55
 
50
- _initializerDefineProperty(this, "updated_at", _descriptor4, this);
56
+ _initializerDefineProperty(this, "updated_at", _descriptor5, this);
51
57
 
52
- _initializerDefineProperty(this, "deleted_at", _descriptor5, this);
58
+ _initializerDefineProperty(this, "deleted_at", _descriptor6, this);
53
59
 
54
- _initializerDefineProperty(this, "users", _descriptor6, this);
60
+ _initializerDefineProperty(this, "users", _descriptor7, this);
55
61
 
56
- _initializerDefineProperty(this, "parent", _descriptor7, this);
62
+ _initializerDefineProperty(this, "parent", _descriptor8, this);
57
63
 
58
- _initializerDefineProperty(this, "children", _descriptor8, this);
64
+ _initializerDefineProperty(this, "children", _descriptor9, this);
59
65
  }
60
66
 
61
67
  propgate(id, name) {
@@ -66,7 +72,8 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
66
72
  getPublicCompactData() {
67
73
  return {
68
74
  id: this.id,
69
- name: this.name
75
+ name: this.name,
76
+ image: this.image
70
77
  };
71
78
  }
72
79
 
@@ -80,32 +87,37 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
80
87
  enumerable: true,
81
88
  writable: true,
82
89
  initializer: null
83
- }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
90
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "image", [_dec5], {
91
+ configurable: true,
92
+ enumerable: true,
93
+ writable: true,
94
+ initializer: null
95
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
84
96
  configurable: true,
85
97
  enumerable: true,
86
98
  writable: true,
87
99
  initializer: null
88
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec6], {
100
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec7], {
89
101
  configurable: true,
90
102
  enumerable: true,
91
103
  writable: true,
92
104
  initializer: null
93
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec7], {
105
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec8], {
94
106
  configurable: true,
95
107
  enumerable: true,
96
108
  writable: true,
97
109
  initializer: null
98
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec8, _dec9], {
110
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec9, _dec10], {
99
111
  configurable: true,
100
112
  enumerable: true,
101
113
  writable: true,
102
114
  initializer: null
103
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec10], {
115
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec11], {
104
116
  configurable: true,
105
117
  enumerable: true,
106
118
  writable: true,
107
119
  initializer: null
108
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec11], {
120
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec12], {
109
121
  configurable: true,
110
122
  enumerable: true,
111
123
  writable: true,
package/dist/index.js CHANGED
@@ -285,6 +285,12 @@ Object.defineProperty(exports, "TokenEntity", {
285
285
  return _token.default;
286
286
  }
287
287
  });
288
+ Object.defineProperty(exports, "TransactionBatchEntity", {
289
+ enumerable: true,
290
+ get: function () {
291
+ return _transactionBatch.default;
292
+ }
293
+ });
288
294
  Object.defineProperty(exports, "TransactionEntity", {
289
295
  enumerable: true,
290
296
  get: function () {
@@ -400,6 +406,8 @@ var _ledger = _interopRequireDefault(require("./entity/bank/ledger"));
400
406
 
401
407
  var _settledTransaction = _interopRequireDefault(require("./entity/bank/settled-transaction"));
402
408
 
409
+ var _transactionBatch = _interopRequireDefault(require("./entity/bank/transaction-batch"));
410
+
403
411
  var _account2 = _interopRequireDefault(require("./entity/nuapay/account"));
404
412
 
405
413
  var _balance = _interopRequireDefault(require("./entity/nuapay/balance"));
@@ -0,0 +1,17 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class batches1651658976210 {
4
+ name = 'batches1651658976210'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`CREATE TABLE "bank"."transaction_batch" ("id" character varying NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "deleted_at" TIMESTAMP WITH TIME ZONE, "transaction_id" character varying, "disbursal_id" character varying, CONSTRAINT "PK_28b5ba6c2707e3c245748be801d" PRIMARY KEY ("id"))`);
8
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ADD CONSTRAINT "FK_e37fb3179be38490e78f27319ea" FOREIGN KEY ("transaction_id") REFERENCES "payment"."transaction"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ADD CONSTRAINT "FK_88458491934d1cdc2f34a0834dc" FOREIGN KEY ("disbursal_id") REFERENCES "bank"."disbursal"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
10
+ }
11
+
12
+ async down(queryRunner) {
13
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" DROP CONSTRAINT "FK_88458491934d1cdc2f34a0834dc"`);
14
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" DROP CONSTRAINT "FK_e37fb3179be38490e78f27319ea"`);
15
+ await queryRunner.query(`DROP TABLE "bank"."transaction_batch"`);
16
+ }
17
+ }
@@ -0,0 +1,25 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class batchesIdChage1651659772400 {
4
+ name = 'batchesIdChage1651659772400'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."user_organisation" DROP CONSTRAINT "FK_81c4608739c8cf71fa1f96e11ae"`);
8
+ await queryRunner.query(`ALTER TABLE "user"."user_organisation" DROP CONSTRAINT "FK_d9628e009b6d71bf677c04f8494"`);
9
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" DROP CONSTRAINT "PK_28b5ba6c2707e3c245748be801d"`);
10
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" DROP COLUMN "id"`);
11
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" DROP CONSTRAINT "FK_e37fb3179be38490e78f27319ea"`);
12
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ALTER COLUMN "transaction_id" SET NOT NULL`);
13
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ADD CONSTRAINT "PK_e37fb3179be38490e78f27319ea" PRIMARY KEY ("transaction_id")`);
14
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ADD CONSTRAINT "FK_e37fb3179be38490e78f27319ea" FOREIGN KEY ("transaction_id") REFERENCES "payment"."transaction"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
15
+ }
16
+
17
+ async down(queryRunner) {
18
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" DROP CONSTRAINT "FK_e37fb3179be38490e78f27319ea"`);
19
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" DROP CONSTRAINT "PK_e37fb3179be38490e78f27319ea"`);
20
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ALTER COLUMN "transaction_id" DROP NOT NULL`);
21
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ADD CONSTRAINT "FK_e37fb3179be38490e78f27319ea" FOREIGN KEY ("transaction_id") REFERENCES "bank"."transaction"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
22
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ADD "id" character varying NOT NULL`);
23
+ await queryRunner.query(`ALTER TABLE "bank"."transaction_batch" ADD CONSTRAINT "PK_28b5ba6c2707e3c245748be801d" PRIMARY KEY ("id")`);
24
+ }
25
+ }
@@ -0,0 +1,19 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersFix1651183064044 {
4
+ name = 'scratchAbtaMembersFix1651183064044'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "abta_number"`);
8
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "abta_number" json`);
9
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "brands"`);
10
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "brands" json`);
11
+ }
12
+
13
+ async down(queryRunner) {
14
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "brands"`);
15
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "brands" text array`);
16
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "abta_number"`);
17
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "abta_number" text array`);
18
+ }
19
+ }
@@ -0,0 +1,19 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersLengthFix1651183188924 {
4
+ name = 'scratchAbtaMembersLengthFix1651183188924'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "website"`);
8
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "website" character varying(100)`);
9
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "telephone"`);
10
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "telephone" character varying(50)`);
11
+ }
12
+
13
+ async down(queryRunner) {
14
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "telephone"`);
15
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "telephone" character varying(20)`);
16
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "website"`);
17
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "website" character varying(20)`);
18
+ }
19
+ }
@@ -0,0 +1,23 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersFinancials1651187490208 {
4
+ name = 'scratchAbtaMembersFinancials1651187490208'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "totalAssets" integer`);
8
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "netWorth" integer`);
9
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "totalLiabilities" integer`);
10
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "turnover" integer`);
11
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "grossProfit" integer`);
12
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "numberOfEmployees" integer`);
13
+ }
14
+
15
+ async down(queryRunner) {
16
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "numberOfEmployees"`);
17
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "grossProfit"`);
18
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "turnover"`);
19
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "totalLiabilities"`);
20
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "netWorth"`);
21
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "totalAssets"`);
22
+ }
23
+ }
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersCompanyNumber1651223911459 {
4
+ name = 'scratchAbtaMembersCompanyNumber1651223911459'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "company_number" character varying(250)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "company_number"`);
12
+ }
13
+ }
@@ -0,0 +1,14 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersAtol1651225059114 {
4
+ name = 'scratchAbtaMembersAtol1651225059114'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_number" integer`);
8
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_volume" integer`);}
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_volume"`);
12
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_number"`);
13
+ }
14
+ }
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersAtolFix1651225316981 {
4
+ name = 'scratchAbtaMembersAtolFix1651225316981'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_number"`);
8
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_number" character varying(150)`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_number"`);
13
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_number" integer`);
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersAtolGroup1651241112556 {
4
+ name = 'scratchAbtaMembersAtolGroup1651241112556'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "group" character varying(150)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "group"`);
12
+ }
13
+ }
@@ -0,0 +1,15 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class scratchAbtaMembersAtolTtaId1651241351537 {
4
+ name = 'scratchAbtaMembersAtolTtaId1651241351537'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "tta_id" character varying(50)`);
8
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "email" character varying(250)`);
9
+ }
10
+
11
+ async down(queryRunner) {
12
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "email"`);
13
+ await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "tta_id"`);
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class organisationImage1651582800086 {
4
+ name = 'organisationImage1651582800086'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "image" character varying(250)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "image"`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {