@felloh-org/lambda-wrapper 1.1.8 → 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,7 @@ var _transaction = _interopRequireDefault(require("../../payment/transaction"));
|
|
|
11
11
|
|
|
12
12
|
var _disbursal = _interopRequireDefault(require("../disbursal"));
|
|
13
13
|
|
|
14
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8,
|
|
14
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
@@ -24,65 +24,58 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
24
24
|
let TransactionBatch = (_dec = (0, _typeorm.Entity)({
|
|
25
25
|
name: 'transaction_batch',
|
|
26
26
|
schema: 'bank'
|
|
27
|
-
}), _dec2 = (0, _typeorm.
|
|
27
|
+
}), _dec2 = (0, _typeorm.ManyToOne)(() => _transaction.default, {
|
|
28
|
+
primary: true
|
|
29
|
+
}), _dec3 = (0, _typeorm.JoinColumn)({
|
|
28
30
|
name: 'transaction_id',
|
|
29
31
|
referencedColumnName: 'id'
|
|
30
|
-
}),
|
|
32
|
+
}), _dec4 = (0, _typeorm.ManyToOne)(() => _disbursal.default), _dec5 = (0, _typeorm.JoinColumn)({
|
|
31
33
|
name: 'disbursal_id',
|
|
32
34
|
referencedColumnName: 'id'
|
|
33
|
-
}),
|
|
35
|
+
}), _dec6 = (0, _typeorm.CreateDateColumn)({
|
|
34
36
|
type: 'timestamp with time zone'
|
|
35
|
-
}),
|
|
37
|
+
}), _dec7 = (0, _typeorm.UpdateDateColumn)({
|
|
36
38
|
type: 'timestamp with time zone'
|
|
37
|
-
}),
|
|
39
|
+
}), _dec8 = (0, _typeorm.DeleteDateColumn)({
|
|
38
40
|
type: 'timestamp with time zone'
|
|
39
41
|
}), _dec(_class = (_class2 = class TransactionBatch {
|
|
40
42
|
constructor() {
|
|
41
|
-
_initializerDefineProperty(this, "
|
|
43
|
+
_initializerDefineProperty(this, "transaction", _descriptor, this);
|
|
42
44
|
|
|
43
|
-
_initializerDefineProperty(this, "
|
|
45
|
+
_initializerDefineProperty(this, "disbursal", _descriptor2, this);
|
|
44
46
|
|
|
45
|
-
_initializerDefineProperty(this, "
|
|
47
|
+
_initializerDefineProperty(this, "created_at", _descriptor3, this);
|
|
46
48
|
|
|
47
|
-
_initializerDefineProperty(this, "
|
|
49
|
+
_initializerDefineProperty(this, "updated_at", _descriptor4, this);
|
|
48
50
|
|
|
49
|
-
_initializerDefineProperty(this, "
|
|
50
|
-
|
|
51
|
-
_initializerDefineProperty(this, "deleted_at", _descriptor6, this);
|
|
51
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor5, this);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "
|
|
55
|
-
configurable: true,
|
|
56
|
-
enumerable: true,
|
|
57
|
-
writable: true,
|
|
58
|
-
initializer: function () {
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|
|
61
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec3, _dec4], {
|
|
54
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
|
|
62
55
|
configurable: true,
|
|
63
56
|
enumerable: true,
|
|
64
57
|
writable: true,
|
|
65
58
|
initializer: function () {
|
|
66
59
|
return _transaction.default;
|
|
67
60
|
}
|
|
68
|
-
}),
|
|
61
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "disbursal", [_dec4, _dec5], {
|
|
69
62
|
configurable: true,
|
|
70
63
|
enumerable: true,
|
|
71
64
|
writable: true,
|
|
72
65
|
initializer: function () {
|
|
73
66
|
return _disbursal.default;
|
|
74
67
|
}
|
|
75
|
-
}),
|
|
68
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
|
|
76
69
|
configurable: true,
|
|
77
70
|
enumerable: true,
|
|
78
71
|
writable: true,
|
|
79
72
|
initializer: null
|
|
80
|
-
}),
|
|
73
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec7], {
|
|
81
74
|
configurable: true,
|
|
82
75
|
enumerable: true,
|
|
83
76
|
writable: true,
|
|
84
77
|
initializer: null
|
|
85
|
-
}),
|
|
78
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec8], {
|
|
86
79
|
configurable: true,
|
|
87
80
|
enumerable: true,
|
|
88
81
|
writable: true,
|
|
@@ -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
|
+
}
|