@felloh-org/lambda-wrapper 1.11.83 → 1.11.84
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 _account = _interopRequireDefault(require("../../bank/account"));
|
|
|
11
11
|
|
|
12
12
|
var _gocardlessRequisition = _interopRequireDefault(require("../gocardless-requisition"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
15
|
+
|
|
16
|
+
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;
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
@@ -30,40 +32,45 @@ let GoCardlessAccount = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
30
32
|
}), _dec3 = (0, _typeorm.ManyToOne)(() => _account.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
31
33
|
name: 'iban',
|
|
32
34
|
referencedColumnName: 'iban'
|
|
33
|
-
}), _dec5 = (0, _typeorm.ManyToOne)(() =>
|
|
35
|
+
}), _dec5 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
36
|
+
name: 'organisation_id',
|
|
37
|
+
referencedColumnName: 'id'
|
|
38
|
+
}), _dec7 = (0, _typeorm.ManyToOne)(() => _gocardlessRequisition.default), _dec8 = (0, _typeorm.JoinColumn)({
|
|
34
39
|
name: 'requistion_id',
|
|
35
40
|
referencedColumnName: 'id'
|
|
36
|
-
}),
|
|
41
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
37
42
|
type: "varchar",
|
|
38
43
|
nullable: true,
|
|
39
44
|
length: 50
|
|
40
|
-
}),
|
|
45
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
41
46
|
type: "timestamp with time zone",
|
|
42
47
|
nullable: true
|
|
43
|
-
}),
|
|
48
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
44
49
|
type: "int",
|
|
45
50
|
nullable: true
|
|
46
|
-
}),
|
|
51
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
47
52
|
type: "varchar",
|
|
48
53
|
length: "5",
|
|
49
54
|
nullable: true
|
|
50
|
-
}),
|
|
55
|
+
}), _dec13 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class GoCardlessAccount {
|
|
51
56
|
constructor() {
|
|
52
57
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
53
58
|
|
|
54
59
|
_initializerDefineProperty(this, "account", _descriptor2, this);
|
|
55
60
|
|
|
56
|
-
_initializerDefineProperty(this, "
|
|
61
|
+
_initializerDefineProperty(this, "organisation", _descriptor3, this);
|
|
57
62
|
|
|
58
|
-
_initializerDefineProperty(this, "
|
|
63
|
+
_initializerDefineProperty(this, "requistion", _descriptor4, this);
|
|
59
64
|
|
|
60
|
-
_initializerDefineProperty(this, "
|
|
65
|
+
_initializerDefineProperty(this, "status", _descriptor5, this);
|
|
61
66
|
|
|
62
|
-
_initializerDefineProperty(this, "
|
|
67
|
+
_initializerDefineProperty(this, "last_sync", _descriptor6, this);
|
|
63
68
|
|
|
64
|
-
_initializerDefineProperty(this, "
|
|
69
|
+
_initializerDefineProperty(this, "balance", _descriptor7, this);
|
|
65
70
|
|
|
66
|
-
_initializerDefineProperty(this, "
|
|
71
|
+
_initializerDefineProperty(this, "currency", _descriptor8, this);
|
|
72
|
+
|
|
73
|
+
_initializerDefineProperty(this, "created_at", _descriptor9, this);
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -80,36 +87,43 @@ let GoCardlessAccount = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
|
80
87
|
initializer: function () {
|
|
81
88
|
return _account.default;
|
|
82
89
|
}
|
|
83
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
90
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec5, _dec6], {
|
|
91
|
+
configurable: true,
|
|
92
|
+
enumerable: true,
|
|
93
|
+
writable: true,
|
|
94
|
+
initializer: function () {
|
|
95
|
+
return _organisation.default;
|
|
96
|
+
}
|
|
97
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "requistion", [_dec7, _dec8], {
|
|
84
98
|
configurable: true,
|
|
85
99
|
enumerable: true,
|
|
86
100
|
writable: true,
|
|
87
101
|
initializer: function () {
|
|
88
102
|
return _gocardlessRequisition.default;
|
|
89
103
|
}
|
|
90
|
-
}),
|
|
104
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec9], {
|
|
91
105
|
configurable: true,
|
|
92
106
|
enumerable: true,
|
|
93
107
|
writable: true,
|
|
94
108
|
initializer: null
|
|
95
|
-
}),
|
|
109
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "last_sync", [_dec10], {
|
|
96
110
|
configurable: true,
|
|
97
111
|
enumerable: true,
|
|
98
112
|
writable: true,
|
|
99
113
|
initializer: null
|
|
100
|
-
}),
|
|
114
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "balance", [_dec11], {
|
|
101
115
|
configurable: true,
|
|
102
116
|
enumerable: true,
|
|
103
117
|
writable: true,
|
|
104
118
|
initializer: null
|
|
105
|
-
}),
|
|
119
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec12], {
|
|
106
120
|
configurable: true,
|
|
107
121
|
enumerable: true,
|
|
108
122
|
writable: true,
|
|
109
123
|
initializer: function () {
|
|
110
124
|
return "";
|
|
111
125
|
}
|
|
112
|
-
}),
|
|
126
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec13], {
|
|
113
127
|
configurable: true,
|
|
114
128
|
enumerable: true,
|
|
115
129
|
writable: true,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class accountOrganisation1710370387188 {
|
|
4
|
+
name = 'accountOrganisation1710370387188'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" ADD "organisation_id" character varying(150)`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" ADD CONSTRAINT "FK_f0dd9037f63aea76e72ddc38100" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" DROP CONSTRAINT "FK_f0dd9037f63aea76e72ddc38100"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "aisp"."gocardless_account" DROP COLUMN "organisation_id"`);
|
|
14
|
+
}
|
|
15
|
+
}
|