@felloh-org/lambda-wrapper 1.1.31 → 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.
- package/dist/entity/bank/amendment/index.js +106 -0
- package/dist/entity/bank/index.js +3 -1
- package/dist/entity/bank/ledger/index.js +28 -7
- package/dist/entity/payment/organisation-payment-provider/index.js +19 -9
- package/dist/entity/payment/transaction/index.js +25 -15
- package/dist/index.js +8 -0
- package/dist/migration/1657625543494-amendment.js +19 -0
- package/dist/migration/1657637492675-transaction-provider-metadata.js +13 -0
- package/dist/migration/payment/1657616863683-payment-provider-public-creds.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,106 @@
|
|
|
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 _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
11
|
+
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
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 }); }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
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.'); }
|
|
21
|
+
|
|
22
|
+
let Amendment = (_dec = (0, _typeorm.Entity)({
|
|
23
|
+
name: 'amendment',
|
|
24
|
+
schema: 'bank'
|
|
25
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
|
|
26
|
+
type: "int"
|
|
27
|
+
}), _dec4 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec5 = (0, _typeorm.JoinColumn)({
|
|
28
|
+
name: 'organisation_id',
|
|
29
|
+
referencedColumnName: 'id'
|
|
30
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
31
|
+
type: "varchar",
|
|
32
|
+
length: "1024",
|
|
33
|
+
nullable: true
|
|
34
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)({
|
|
35
|
+
type: 'timestamp with time zone'
|
|
36
|
+
}), _dec8 = (0, _typeorm.UpdateDateColumn)({
|
|
37
|
+
type: 'timestamp with time zone'
|
|
38
|
+
}), _dec(_class = (_class2 = class Amendment {
|
|
39
|
+
constructor() {
|
|
40
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
41
|
+
|
|
42
|
+
_initializerDefineProperty(this, "amount", _descriptor2, this);
|
|
43
|
+
|
|
44
|
+
_initializerDefineProperty(this, "organisation", _descriptor3, this);
|
|
45
|
+
|
|
46
|
+
_initializerDefineProperty(this, "description", _descriptor4, this);
|
|
47
|
+
|
|
48
|
+
_initializerDefineProperty(this, "created_at", _descriptor5, this);
|
|
49
|
+
|
|
50
|
+
_initializerDefineProperty(this, "updated_at", _descriptor6, this);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
getPublicData() {
|
|
54
|
+
const response = {
|
|
55
|
+
id: this.id,
|
|
56
|
+
amount: this.amount,
|
|
57
|
+
description: this.description,
|
|
58
|
+
created_at: this.created_at,
|
|
59
|
+
updated_at: this.updated_at
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
if (typeof this.organisation !== 'undefined' && this.organisation !== null) {
|
|
63
|
+
response.organisation = this.organisation.getPublicCompactData();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return response;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
70
|
+
configurable: true,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
writable: true,
|
|
73
|
+
initializer: function () {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec3], {
|
|
77
|
+
configurable: true,
|
|
78
|
+
enumerable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
initializer: null
|
|
81
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec4, _dec5], {
|
|
82
|
+
configurable: true,
|
|
83
|
+
enumerable: true,
|
|
84
|
+
writable: true,
|
|
85
|
+
initializer: function () {
|
|
86
|
+
return _organisation.default;
|
|
87
|
+
}
|
|
88
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec6], {
|
|
89
|
+
configurable: true,
|
|
90
|
+
enumerable: true,
|
|
91
|
+
writable: true,
|
|
92
|
+
initializer: function () {
|
|
93
|
+
return "";
|
|
94
|
+
}
|
|
95
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
|
|
96
|
+
configurable: true,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
writable: true,
|
|
99
|
+
initializer: null
|
|
100
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
|
|
101
|
+
configurable: true,
|
|
102
|
+
enumerable: true,
|
|
103
|
+
writable: true,
|
|
104
|
+
initializer: null
|
|
105
|
+
})), _class2)) || _class);
|
|
106
|
+
exports.default = Amendment;
|
|
@@ -17,8 +17,10 @@ var _transactionBatch = _interopRequireDefault(require("./transaction-batch"));
|
|
|
17
17
|
|
|
18
18
|
var _beneficiary = _interopRequireDefault(require("./beneficiary"));
|
|
19
19
|
|
|
20
|
+
var _amendment = _interopRequireDefault(require("./amendment"));
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
|
-
const ENTITIES = [_account.default, _disbursal.default, _ledger.default, _settledTransaction.default, _transactionBatch.default, _beneficiary.default];
|
|
24
|
+
const ENTITIES = [_account.default, _amendment.default, _disbursal.default, _ledger.default, _settledTransaction.default, _transactionBatch.default, _beneficiary.default];
|
|
23
25
|
var _default = ENTITIES;
|
|
24
26
|
exports.default = _default;
|
|
@@ -11,9 +11,11 @@ var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
|
11
11
|
|
|
12
12
|
var _disbursal = _interopRequireDefault(require("../disbursal"));
|
|
13
13
|
|
|
14
|
+
var _amendment = _interopRequireDefault(require("../amendment"));
|
|
15
|
+
|
|
14
16
|
var _transaction = _interopRequireDefault(require("../../payment/transaction"));
|
|
15
17
|
|
|
16
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
@@ -48,9 +50,14 @@ let Ledger = (_dec = (0, _typeorm.Entity)({
|
|
|
48
50
|
}), _dec10 = (0, _typeorm.JoinColumn)({
|
|
49
51
|
name: 'disbursal_id',
|
|
50
52
|
referencedColumnName: 'id'
|
|
51
|
-
}), _dec11 = (0, _typeorm.
|
|
53
|
+
}), _dec11 = (0, _typeorm.ManyToOne)(() => _amendment.default, {
|
|
54
|
+
nullable: true
|
|
55
|
+
}), _dec12 = (0, _typeorm.JoinColumn)({
|
|
56
|
+
name: 'amendment_id',
|
|
57
|
+
referencedColumnName: 'id'
|
|
58
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
52
59
|
type: "int"
|
|
53
|
-
}),
|
|
60
|
+
}), _dec14 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Ledger {
|
|
54
61
|
constructor() {
|
|
55
62
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
56
63
|
|
|
@@ -64,14 +71,17 @@ let Ledger = (_dec = (0, _typeorm.Entity)({
|
|
|
64
71
|
|
|
65
72
|
_initializerDefineProperty(this, "disbursal", _descriptor6, this);
|
|
66
73
|
|
|
67
|
-
_initializerDefineProperty(this, "
|
|
74
|
+
_initializerDefineProperty(this, "amendment", _descriptor7, this);
|
|
68
75
|
|
|
69
|
-
_initializerDefineProperty(this, "
|
|
76
|
+
_initializerDefineProperty(this, "amount", _descriptor8, this);
|
|
77
|
+
|
|
78
|
+
_initializerDefineProperty(this, "created_at", _descriptor9, this);
|
|
70
79
|
}
|
|
71
80
|
|
|
72
81
|
getSource() {
|
|
73
82
|
if (this.disbursal !== null) return 'disbursal';
|
|
74
83
|
if (this.transaction !== null) return 'settled transaction';
|
|
84
|
+
if (this.amendment !== null) return 'amendment';
|
|
75
85
|
return 'Unknown';
|
|
76
86
|
}
|
|
77
87
|
|
|
@@ -88,6 +98,10 @@ let Ledger = (_dec = (0, _typeorm.Entity)({
|
|
|
88
98
|
response.disbursal = this.disbursal.getPublicData();
|
|
89
99
|
}
|
|
90
100
|
|
|
101
|
+
if (typeof this.amendment !== 'undefined' && this.amendment !== null) {
|
|
102
|
+
response.amendment = this.amendment.getPublicData();
|
|
103
|
+
}
|
|
104
|
+
|
|
91
105
|
if (typeof this.transaction !== 'undefined' && this.transaction !== null) {
|
|
92
106
|
response.transaction = this.transaction.getPublicCompactData();
|
|
93
107
|
}
|
|
@@ -137,12 +151,19 @@ let Ledger = (_dec = (0, _typeorm.Entity)({
|
|
|
137
151
|
initializer: function () {
|
|
138
152
|
return _disbursal.default;
|
|
139
153
|
}
|
|
140
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
154
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "amendment", [_dec11, _dec12], {
|
|
155
|
+
configurable: true,
|
|
156
|
+
enumerable: true,
|
|
157
|
+
writable: true,
|
|
158
|
+
initializer: function () {
|
|
159
|
+
return _amendment.default;
|
|
160
|
+
}
|
|
161
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec13], {
|
|
141
162
|
configurable: true,
|
|
142
163
|
enumerable: true,
|
|
143
164
|
writable: true,
|
|
144
165
|
initializer: null
|
|
145
|
-
}),
|
|
166
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec14], {
|
|
146
167
|
configurable: true,
|
|
147
168
|
enumerable: true,
|
|
148
169
|
writable: true,
|
|
@@ -15,7 +15,7 @@ var _paymentProvider = _interopRequireDefault(require("../payment-provider"));
|
|
|
15
15
|
|
|
16
16
|
var _transactionMethod = _interopRequireDefault(require("../transaction-method"));
|
|
17
17
|
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
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
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -51,12 +51,15 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
51
51
|
type: "varchar",
|
|
52
52
|
length: "150"
|
|
53
53
|
}), _dec10 = (0, _typeorm.Column)({
|
|
54
|
+
type: "json",
|
|
55
|
+
nullable: true
|
|
56
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
54
57
|
type: "varchar",
|
|
55
58
|
length: "512"
|
|
56
|
-
}),
|
|
59
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
57
60
|
type: "varchar",
|
|
58
61
|
length: "4"
|
|
59
|
-
}),
|
|
62
|
+
}), _dec13 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class OrganisationPaymentProvider {
|
|
60
63
|
constructor() {
|
|
61
64
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
62
65
|
|
|
@@ -68,11 +71,13 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
68
71
|
|
|
69
72
|
_initializerDefineProperty(this, "public_key", _descriptor5, this);
|
|
70
73
|
|
|
71
|
-
_initializerDefineProperty(this, "
|
|
74
|
+
_initializerDefineProperty(this, "public_creds", _descriptor6, this);
|
|
72
75
|
|
|
73
|
-
_initializerDefineProperty(this, "
|
|
76
|
+
_initializerDefineProperty(this, "secret_key", _descriptor7, this);
|
|
74
77
|
|
|
75
|
-
_initializerDefineProperty(this, "
|
|
78
|
+
_initializerDefineProperty(this, "secret_key_last_four", _descriptor8, this);
|
|
79
|
+
|
|
80
|
+
_initializerDefineProperty(this, "created_at", _descriptor9, this);
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -108,21 +113,26 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
108
113
|
initializer: function () {
|
|
109
114
|
return "";
|
|
110
115
|
}
|
|
111
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
116
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "public_creds", [_dec10], {
|
|
117
|
+
configurable: true,
|
|
118
|
+
enumerable: true,
|
|
119
|
+
writable: true,
|
|
120
|
+
initializer: null
|
|
121
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "secret_key", [_dec11], {
|
|
112
122
|
configurable: true,
|
|
113
123
|
enumerable: true,
|
|
114
124
|
writable: true,
|
|
115
125
|
initializer: function () {
|
|
116
126
|
return "";
|
|
117
127
|
}
|
|
118
|
-
}),
|
|
128
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "secret_key_last_four", [_dec12], {
|
|
119
129
|
configurable: true,
|
|
120
130
|
enumerable: true,
|
|
121
131
|
writable: true,
|
|
122
132
|
initializer: function () {
|
|
123
133
|
return "";
|
|
124
134
|
}
|
|
125
|
-
}),
|
|
135
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec13], {
|
|
126
136
|
configurable: true,
|
|
127
137
|
enumerable: true,
|
|
128
138
|
writable: true,
|
|
@@ -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: "
|
|
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
|
-
}),
|
|
95
|
+
}), _dec27 = (0, _typeorm.CreateDateColumn)({
|
|
93
96
|
type: 'timestamp with time zone'
|
|
94
|
-
}),
|
|
97
|
+
}), _dec28 = (0, _typeorm.UpdateDateColumn)({
|
|
95
98
|
type: 'timestamp with time zone'
|
|
96
|
-
}),
|
|
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, "
|
|
127
|
+
_initializerDefineProperty(this, "provider_metadata", _descriptor14, this);
|
|
128
|
+
|
|
129
|
+
_initializerDefineProperty(this, "completed_at", _descriptor15, this);
|
|
125
130
|
|
|
126
|
-
_initializerDefineProperty(this, "message",
|
|
131
|
+
_initializerDefineProperty(this, "message", _descriptor16, this);
|
|
127
132
|
|
|
128
|
-
_initializerDefineProperty(this, "created_at",
|
|
133
|
+
_initializerDefineProperty(this, "created_at", _descriptor17, this);
|
|
129
134
|
|
|
130
|
-
_initializerDefineProperty(this, "updated_at",
|
|
135
|
+
_initializerDefineProperty(this, "updated_at", _descriptor18, this);
|
|
131
136
|
|
|
132
|
-
_initializerDefineProperty(this, "batch",
|
|
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, "
|
|
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
|
-
}),
|
|
285
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec26], {
|
|
276
286
|
configurable: true,
|
|
277
287
|
enumerable: true,
|
|
278
288
|
writable: true,
|
|
279
289
|
initializer: null
|
|
280
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
300
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec29], {
|
|
291
301
|
configurable: true,
|
|
292
302
|
enumerable: true,
|
|
293
303
|
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, "AmendmentEntity", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _amendment.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "BenficiaryEntity", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function () {
|
|
@@ -418,6 +424,8 @@ var _supplierType = _interopRequireDefault(require("./entity/agent-data/supplier
|
|
|
418
424
|
|
|
419
425
|
var _account = _interopRequireDefault(require("./entity/bank/account"));
|
|
420
426
|
|
|
427
|
+
var _amendment = _interopRequireDefault(require("./entity/bank/amendment"));
|
|
428
|
+
|
|
421
429
|
var _disbursal = _interopRequireDefault(require("./entity/bank/disbursal"));
|
|
422
430
|
|
|
423
431
|
var _ledger = _interopRequireDefault(require("./entity/bank/ledger"));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class amendment1657625543494 {
|
|
4
|
+
name = 'amendment1657625543494'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "bank"."amendment" ("id" character varying NOT NULL, "amount" integer NOT NULL, "description" character varying(1024), "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "organisation_id" character varying(150), CONSTRAINT "PK_20ea5f7928736a012e29a76cb02" PRIMARY KEY ("id"))`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "bank"."ledger" ADD "amendment_id" character varying`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "bank"."amendment" ADD CONSTRAINT "FK_2518588cf4133f2c832342fdd9f" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "bank"."ledger" ADD CONSTRAINT "FK_7f07705e3a9624d30202dddf7b5" FOREIGN KEY ("amendment_id") REFERENCES "bank"."amendment"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async down(queryRunner) {
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "bank"."ledger" DROP CONSTRAINT "FK_7f07705e3a9624d30202dddf7b5"`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "bank"."amendment" DROP CONSTRAINT "FK_2518588cf4133f2c832342fdd9f"`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "bank"."ledger" DROP COLUMN "amendment_id"`);
|
|
17
|
+
await queryRunner.query(`DROP TABLE "bank"."amendment"`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class paymentProviderPublicCreds1657616863683 {
|
|
4
|
+
name = 'paymentProviderPublicCreds1657616863683'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD "public_creds" json`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "user"."user_organisation" DROP CONSTRAINT "FK_81c4608739c8cf71fa1f96e11ae"`);
|
|
12
|
+
}
|
|
13
|
+
}
|