@felloh-org/lambda-wrapper 1.5.0 → 1.5.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.
|
@@ -15,7 +15,7 @@ var _transactionBatch = _interopRequireDefault(require("../transaction-batch"));
|
|
|
15
15
|
|
|
16
16
|
var _currency = require("../currency");
|
|
17
17
|
|
|
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, _descriptor10, _descriptor11;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -55,6 +55,9 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
|
|
|
55
55
|
}), _dec14 = (0, _typeorm.Column)({
|
|
56
56
|
type: "boolean",
|
|
57
57
|
default: false
|
|
58
|
+
}), _dec15 = (0, _typeorm.Column)({
|
|
59
|
+
type: "boolean",
|
|
60
|
+
default: false
|
|
58
61
|
}), _dec(_class = (_class2 = class Disbursal {
|
|
59
62
|
constructor() {
|
|
60
63
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
@@ -78,6 +81,8 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
|
|
|
78
81
|
_initializerDefineProperty(this, "is_ledgered", _descriptor10, this);
|
|
79
82
|
|
|
80
83
|
_initializerDefineProperty(this, "is_manual_review", _descriptor11, this);
|
|
84
|
+
|
|
85
|
+
_initializerDefineProperty(this, "updated_legacy_system", _descriptor12, this);
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
getPublicData() {
|
|
@@ -161,5 +166,12 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
|
|
|
161
166
|
initializer: function () {
|
|
162
167
|
return false;
|
|
163
168
|
}
|
|
169
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "updated_legacy_system", [_dec15], {
|
|
170
|
+
configurable: true,
|
|
171
|
+
enumerable: true,
|
|
172
|
+
writable: true,
|
|
173
|
+
initializer: function () {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
164
176
|
})), _class2)) || _class);
|
|
165
177
|
exports.default = Disbursal;
|
|
@@ -33,7 +33,7 @@ var _ecommerce = _interopRequireDefault(require("../ecommerce"));
|
|
|
33
33
|
|
|
34
34
|
var _currency = require("../../bank/currency");
|
|
35
35
|
|
|
36
|
-
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, _dec30, _dec31, _dec32, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;
|
|
36
|
+
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, _dec30, _dec31, _dec32, _dec33, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;
|
|
37
37
|
|
|
38
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
39
|
|
|
@@ -109,7 +109,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
109
109
|
type: 'timestamp with time zone'
|
|
110
110
|
}), _dec31 = (0, _typeorm.UpdateDateColumn)({
|
|
111
111
|
type: 'timestamp with time zone'
|
|
112
|
-
}), _dec32 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction),
|
|
112
|
+
}), _dec32 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec33 = (0, _typeorm.Column)({
|
|
113
|
+
type: "timestamp with time zone",
|
|
114
|
+
nullable: true
|
|
115
|
+
}), _dec(_class = (_class2 = class Transaction {
|
|
113
116
|
constructor() {
|
|
114
117
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
115
118
|
|
|
@@ -152,6 +155,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
152
155
|
_initializerDefineProperty(this, "updated_at", _descriptor20, this);
|
|
153
156
|
|
|
154
157
|
_initializerDefineProperty(this, "batch", _descriptor21, this);
|
|
158
|
+
|
|
159
|
+
_initializerDefineProperty(this, "assigned_at", _descriptor22, this);
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
getPublicData() {
|
|
@@ -170,7 +175,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
170
175
|
payment_link: null,
|
|
171
176
|
ecommerce: null,
|
|
172
177
|
metadata: null,
|
|
173
|
-
organisation: null
|
|
178
|
+
organisation: null,
|
|
179
|
+
assigned_at: this.assigned_at
|
|
174
180
|
};
|
|
175
181
|
|
|
176
182
|
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicData === 'function') {
|
|
@@ -212,7 +218,8 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
212
218
|
created_at: this.created_at,
|
|
213
219
|
completed_at: this.completed_at,
|
|
214
220
|
currency: this.currency,
|
|
215
|
-
provider_reference: this.provider_reference
|
|
221
|
+
provider_reference: this.provider_reference,
|
|
222
|
+
assigned_at: this.assigned_at
|
|
216
223
|
};
|
|
217
224
|
|
|
218
225
|
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicCompactData === 'function') {
|
|
@@ -241,7 +248,6 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
241
248
|
response.organisation = this.organisation.getPublicCompactData();
|
|
242
249
|
}
|
|
243
250
|
|
|
244
|
-
console.log();
|
|
245
251
|
return response;
|
|
246
252
|
}
|
|
247
253
|
|
|
@@ -376,5 +382,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
376
382
|
enumerable: true,
|
|
377
383
|
writable: true,
|
|
378
384
|
initializer: null
|
|
385
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec33], {
|
|
386
|
+
configurable: true,
|
|
387
|
+
enumerable: true,
|
|
388
|
+
writable: true,
|
|
389
|
+
initializer: null
|
|
379
390
|
})), _class2)) || _class);
|
|
380
391
|
exports.default = Transaction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class disbursalUpdatedLegacySystem1670929960647 {
|
|
4
|
+
name = 'disbursalUpdatedLegacySystem1670929960647'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "bank"."disbursal" ADD "updated_legacy_system" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "bank"."disbursal" DROP COLUMN "updated_legacy_system"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class transactionAssignedAt1671012060001 {
|
|
4
|
+
name = 'transactionAssignedAt1671012060001'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "assigned_at" TIMESTAMP WITH TIME ZONE`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "assigned_at"`);
|
|
12
|
+
}
|
|
13
|
+
}
|