@felloh-org/lambda-wrapper 1.1.18 → 1.1.21
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/trust-payments/adjustment/index.js +23 -7
- package/dist/entity/user/user/index.js +9 -2
- package/dist/migration/trust-payments/1653911779226-trust_adjustment_bank_ref.js +15 -0
- package/dist/migration/user/1656057725099-timezoned_users.js +22 -0
- package/dist/migration/user/1656062997392-nullable_user_email.js +13 -0
- package/package.json +1 -1
|
@@ -9,7 +9,9 @@ var _typeorm = require("typeorm");
|
|
|
9
9
|
|
|
10
10
|
var _merchant = _interopRequireDefault(require("../merchant"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _batch = _interopRequireDefault(require("../batch"));
|
|
13
|
+
|
|
14
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
@@ -34,9 +36,14 @@ let Adjustment = (_dec = (0, _typeorm.Entity)({
|
|
|
34
36
|
}), _dec6 = (0, _typeorm.ManyToOne)(() => _merchant.default), _dec7 = (0, _typeorm.JoinColumn)({
|
|
35
37
|
name: 'merchant_number',
|
|
36
38
|
referencedColumnName: 'merchant_number'
|
|
37
|
-
}), _dec8 = (0, _typeorm.
|
|
39
|
+
}), _dec8 = (0, _typeorm.ManyToOne)(() => _batch.default, {
|
|
40
|
+
nullable: true
|
|
41
|
+
}), _dec9 = (0, _typeorm.JoinColumn)({
|
|
42
|
+
name: 'bank_reference',
|
|
43
|
+
referencedColumnName: 'bank_reference'
|
|
44
|
+
}), _dec10 = (0, _typeorm.CreateDateColumn)({
|
|
38
45
|
type: 'timestamp with time zone'
|
|
39
|
-
}),
|
|
46
|
+
}), _dec11 = (0, _typeorm.UpdateDateColumn)({
|
|
40
47
|
type: 'timestamp with time zone'
|
|
41
48
|
}), _dec(_class = (_class2 = class Adjustment {
|
|
42
49
|
constructor() {
|
|
@@ -50,9 +57,11 @@ let Adjustment = (_dec = (0, _typeorm.Entity)({
|
|
|
50
57
|
|
|
51
58
|
_initializerDefineProperty(this, "merchant_number", _descriptor5, this);
|
|
52
59
|
|
|
53
|
-
_initializerDefineProperty(this, "
|
|
60
|
+
_initializerDefineProperty(this, "bank_reference", _descriptor6, this);
|
|
54
61
|
|
|
55
|
-
_initializerDefineProperty(this, "
|
|
62
|
+
_initializerDefineProperty(this, "created_at", _descriptor7, this);
|
|
63
|
+
|
|
64
|
+
_initializerDefineProperty(this, "updated_at", _descriptor8, this);
|
|
56
65
|
}
|
|
57
66
|
|
|
58
67
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -84,12 +93,19 @@ let Adjustment = (_dec = (0, _typeorm.Entity)({
|
|
|
84
93
|
initializer: function () {
|
|
85
94
|
return _merchant.default;
|
|
86
95
|
}
|
|
87
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
96
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "bank_reference", [_dec8, _dec9], {
|
|
97
|
+
configurable: true,
|
|
98
|
+
enumerable: true,
|
|
99
|
+
writable: true,
|
|
100
|
+
initializer: function () {
|
|
101
|
+
return _batch.default;
|
|
102
|
+
}
|
|
103
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec10], {
|
|
88
104
|
configurable: true,
|
|
89
105
|
enumerable: true,
|
|
90
106
|
writable: true,
|
|
91
107
|
initializer: null
|
|
92
|
-
}),
|
|
108
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec11], {
|
|
93
109
|
configurable: true,
|
|
94
110
|
enumerable: true,
|
|
95
111
|
writable: true,
|
|
@@ -35,7 +35,8 @@ let User = (_dec = (0, _typeorm.Entity)({
|
|
|
35
35
|
nullable: true
|
|
36
36
|
}), _dec5 = (0, _typeorm.Column)({
|
|
37
37
|
type: "varchar",
|
|
38
|
-
length: "150"
|
|
38
|
+
length: "150",
|
|
39
|
+
nullable: true
|
|
39
40
|
}), _dec6 = (0, _typeorm.Column)({
|
|
40
41
|
type: "varchar",
|
|
41
42
|
length: "50",
|
|
@@ -49,7 +50,13 @@ let User = (_dec = (0, _typeorm.Entity)({
|
|
|
49
50
|
}), _dec9 = (0, _typeorm.Column)({
|
|
50
51
|
type: "varchar",
|
|
51
52
|
length: "50"
|
|
52
|
-
}), _dec10 = (0, _typeorm.CreateDateColumn)(
|
|
53
|
+
}), _dec10 = (0, _typeorm.CreateDateColumn)({
|
|
54
|
+
type: 'timestamp with time zone'
|
|
55
|
+
}), _dec11 = (0, _typeorm.UpdateDateColumn)({
|
|
56
|
+
type: 'timestamp with time zone'
|
|
57
|
+
}), _dec12 = (0, _typeorm.DeleteDateColumn)({
|
|
58
|
+
type: 'timestamp with time zone'
|
|
59
|
+
}), _dec13 = (0, _typeorm.ManyToMany)(() => _organisation.default, organisation => organisation.users), _dec14 = (0, _typeorm.JoinTable)({
|
|
53
60
|
name: "user_organisation",
|
|
54
61
|
schema: "user",
|
|
55
62
|
joinColumn: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class trustAdjustmentBankRef1653911779226 {
|
|
4
|
+
name = 'trustAdjustmentBankRef1653911779226'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."adjustment" ADD "bank_reference" character varying`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."adjustment" ADD CONSTRAINT "FK_f84d861eebd812c1aef29c4da6c" FOREIGN KEY ("bank_reference") REFERENCES "trust_payments"."batch"("bank_reference") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."adjustment" DROP CONSTRAINT "FK_f84d861eebd812c1aef29c4da6c"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."adjustment" DROP COLUMN "bank_reference"`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class timezonedUsers1656057725099 {
|
|
4
|
+
name = 'timezonedUsers1656057725099'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "created_at"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "updated_at"`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "deleted_at"`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ADD "deleted_at" TIMESTAMP WITH TIME ZONE`);}
|
|
13
|
+
|
|
14
|
+
async down(queryRunner) {
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "deleted_at"`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ADD "deleted_at" TIMESTAMP`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "updated_at"`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ADD "updated_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE "user"."user" DROP COLUMN "created_at"`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class nullableUserEmail1656062997392 {
|
|
4
|
+
name = 'nullableUserEmail1656062997392'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "email" DROP NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "user"."user" ALTER COLUMN "email" SET NOT NULL`);
|
|
12
|
+
}
|
|
13
|
+
}
|