@felloh-org/lambda-wrapper 1.9.2 → 1.9.3
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/saltedge/transaction/index.js +81 -28
- package/dist/migration/saltedge/1680523636126-saltedge_tx_updates.js +33 -0
- package/package.json +1 -1
- /package/dist/migration/{1679405632954-saltedge_lead.js → saltedge/1679405632954-saltedge_lead.js} +0 -0
- /package/dist/migration/{1679499976511-connection_to_lead.js → saltedge/1679499976511-connection_to_lead.js} +0 -0
- /package/dist/migration/{1679500440910-account_to_lead.js → saltedge/1679500440910-account_to_lead.js} +0 -0
- /package/dist/migration/{1679670597259-saltedge_connection_status.js → saltedge/1679670597259-saltedge_connection_status.js} +0 -0
|
@@ -13,7 +13,7 @@ var _account = _interopRequireDefault(require("../account"));
|
|
|
13
13
|
|
|
14
14
|
var _account2 = _interopRequireDefault(require("../../bank/account"));
|
|
15
15
|
|
|
16
|
-
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;
|
|
16
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
@@ -36,33 +36,47 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
36
36
|
name: 'organisation_id',
|
|
37
37
|
referencedColumnName: 'id'
|
|
38
38
|
}), _dec7 = (0, _typeorm.Column)({
|
|
39
|
+
type: "date"
|
|
40
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
41
|
+
type: "boolean",
|
|
42
|
+
default: false
|
|
43
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
44
|
+
type: "boolean",
|
|
45
|
+
default: false
|
|
46
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
39
47
|
type: "varchar",
|
|
40
48
|
length: "250",
|
|
41
49
|
nullable: true
|
|
42
|
-
}),
|
|
50
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
43
51
|
type: "varchar",
|
|
44
52
|
length: "250",
|
|
45
53
|
nullable: true
|
|
46
|
-
}),
|
|
54
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
47
55
|
type: "int"
|
|
48
|
-
}),
|
|
56
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
49
57
|
type: "varchar",
|
|
50
58
|
length: "5",
|
|
51
59
|
nullable: true
|
|
52
|
-
}),
|
|
60
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
53
61
|
type: "varchar",
|
|
54
|
-
length: "
|
|
62
|
+
length: "1024",
|
|
55
63
|
nullable: true
|
|
56
|
-
}),
|
|
64
|
+
}), _dec15 = (0, _typeorm.Column)({
|
|
57
65
|
type: "varchar",
|
|
58
66
|
length: "100"
|
|
59
|
-
}),
|
|
67
|
+
}), _dec16 = (0, _typeorm.Column)({
|
|
68
|
+
type: "varchar",
|
|
69
|
+
length: "100"
|
|
70
|
+
}), _dec17 = (0, _typeorm.Column)({
|
|
71
|
+
type: "varchar",
|
|
72
|
+
length: "50"
|
|
73
|
+
}), _dec18 = (0, _typeorm.Column)({
|
|
60
74
|
type: "varchar",
|
|
61
75
|
length: "100",
|
|
62
76
|
nullable: true
|
|
63
|
-
}),
|
|
77
|
+
}), _dec19 = (0, _typeorm.CreateDateColumn)({
|
|
64
78
|
type: 'timestamp with time zone'
|
|
65
|
-
}),
|
|
79
|
+
}), _dec20 = (0, _typeorm.UpdateDateColumn)({
|
|
66
80
|
type: 'timestamp with time zone'
|
|
67
81
|
}), _dec(_class = (_class2 = class Transaction {
|
|
68
82
|
constructor() {
|
|
@@ -72,23 +86,33 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
72
86
|
|
|
73
87
|
_initializerDefineProperty(this, "organisation", _descriptor3, this);
|
|
74
88
|
|
|
75
|
-
_initializerDefineProperty(this, "
|
|
89
|
+
_initializerDefineProperty(this, "posting_date", _descriptor4, this);
|
|
90
|
+
|
|
91
|
+
_initializerDefineProperty(this, "is_credit", _descriptor5, this);
|
|
92
|
+
|
|
93
|
+
_initializerDefineProperty(this, "is_debit", _descriptor6, this);
|
|
76
94
|
|
|
77
|
-
_initializerDefineProperty(this, "
|
|
95
|
+
_initializerDefineProperty(this, "payee", _descriptor7, this);
|
|
78
96
|
|
|
79
|
-
_initializerDefineProperty(this, "
|
|
97
|
+
_initializerDefineProperty(this, "payer", _descriptor8, this);
|
|
80
98
|
|
|
81
|
-
_initializerDefineProperty(this, "
|
|
99
|
+
_initializerDefineProperty(this, "amount", _descriptor9, this);
|
|
82
100
|
|
|
83
|
-
_initializerDefineProperty(this, "
|
|
101
|
+
_initializerDefineProperty(this, "currency", _descriptor10, this);
|
|
84
102
|
|
|
85
|
-
_initializerDefineProperty(this, "
|
|
103
|
+
_initializerDefineProperty(this, "description", _descriptor11, this);
|
|
86
104
|
|
|
87
|
-
_initializerDefineProperty(this, "
|
|
105
|
+
_initializerDefineProperty(this, "status", _descriptor12, this);
|
|
88
106
|
|
|
89
|
-
_initializerDefineProperty(this, "
|
|
107
|
+
_initializerDefineProperty(this, "type", _descriptor13, this);
|
|
90
108
|
|
|
91
|
-
_initializerDefineProperty(this, "
|
|
109
|
+
_initializerDefineProperty(this, "typeCode", _descriptor14, this);
|
|
110
|
+
|
|
111
|
+
_initializerDefineProperty(this, "category", _descriptor15, this);
|
|
112
|
+
|
|
113
|
+
_initializerDefineProperty(this, "created_at", _descriptor16, this);
|
|
114
|
+
|
|
115
|
+
_initializerDefineProperty(this, "updated_at", _descriptor17, this);
|
|
92
116
|
}
|
|
93
117
|
|
|
94
118
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -112,59 +136,88 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
112
136
|
initializer: function () {
|
|
113
137
|
return _organisation.default;
|
|
114
138
|
}
|
|
115
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
139
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "posting_date", [_dec7], {
|
|
140
|
+
configurable: true,
|
|
141
|
+
enumerable: true,
|
|
142
|
+
writable: true,
|
|
143
|
+
initializer: null
|
|
144
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "is_credit", [_dec8], {
|
|
145
|
+
configurable: true,
|
|
146
|
+
enumerable: true,
|
|
147
|
+
writable: true,
|
|
148
|
+
initializer: null
|
|
149
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "is_debit", [_dec9], {
|
|
150
|
+
configurable: true,
|
|
151
|
+
enumerable: true,
|
|
152
|
+
writable: true,
|
|
153
|
+
initializer: null
|
|
154
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "payee", [_dec10], {
|
|
116
155
|
configurable: true,
|
|
117
156
|
enumerable: true,
|
|
118
157
|
writable: true,
|
|
119
158
|
initializer: function () {
|
|
120
159
|
return "";
|
|
121
160
|
}
|
|
122
|
-
}),
|
|
161
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "payer", [_dec11], {
|
|
123
162
|
configurable: true,
|
|
124
163
|
enumerable: true,
|
|
125
164
|
writable: true,
|
|
126
165
|
initializer: function () {
|
|
127
166
|
return "";
|
|
128
167
|
}
|
|
129
|
-
}),
|
|
168
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec12], {
|
|
130
169
|
configurable: true,
|
|
131
170
|
enumerable: true,
|
|
132
171
|
writable: true,
|
|
133
172
|
initializer: null
|
|
134
|
-
}),
|
|
173
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec13], {
|
|
174
|
+
configurable: true,
|
|
175
|
+
enumerable: true,
|
|
176
|
+
writable: true,
|
|
177
|
+
initializer: function () {
|
|
178
|
+
return "";
|
|
179
|
+
}
|
|
180
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec14], {
|
|
181
|
+
configurable: true,
|
|
182
|
+
enumerable: true,
|
|
183
|
+
writable: true,
|
|
184
|
+
initializer: function () {
|
|
185
|
+
return "";
|
|
186
|
+
}
|
|
187
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec15], {
|
|
135
188
|
configurable: true,
|
|
136
189
|
enumerable: true,
|
|
137
190
|
writable: true,
|
|
138
191
|
initializer: function () {
|
|
139
192
|
return "";
|
|
140
193
|
}
|
|
141
|
-
}),
|
|
194
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec16], {
|
|
142
195
|
configurable: true,
|
|
143
196
|
enumerable: true,
|
|
144
197
|
writable: true,
|
|
145
198
|
initializer: function () {
|
|
146
199
|
return "";
|
|
147
200
|
}
|
|
148
|
-
}),
|
|
201
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "typeCode", [_dec17], {
|
|
149
202
|
configurable: true,
|
|
150
203
|
enumerable: true,
|
|
151
204
|
writable: true,
|
|
152
205
|
initializer: function () {
|
|
153
206
|
return "";
|
|
154
207
|
}
|
|
155
|
-
}),
|
|
208
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "category", [_dec18], {
|
|
156
209
|
configurable: true,
|
|
157
210
|
enumerable: true,
|
|
158
211
|
writable: true,
|
|
159
212
|
initializer: function () {
|
|
160
213
|
return "";
|
|
161
214
|
}
|
|
162
|
-
}),
|
|
215
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec19], {
|
|
163
216
|
configurable: true,
|
|
164
217
|
enumerable: true,
|
|
165
218
|
writable: true,
|
|
166
219
|
initializer: null
|
|
167
|
-
}),
|
|
220
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec20], {
|
|
168
221
|
configurable: true,
|
|
169
222
|
enumerable: true,
|
|
170
223
|
writable: true,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class saltedgeTxUpdates1680523636126 {
|
|
4
|
+
name = 'saltedgeTxUpdates1680523636126'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payee_iban"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payer_iban"`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "posting_date" date NOT NULL`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "is_credit" boolean NOT NULL DEFAULT false`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "is_debit" boolean NOT NULL DEFAULT false`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payee" character varying(250)`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payer" character varying(250)`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "type" character varying(100) NOT NULL`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "typeCode" character varying(50) NOT NULL`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "description"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "description" character varying(1024)`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async down(queryRunner) {
|
|
21
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "description"`);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "description" character varying(250)`);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "typeCode"`);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "type"`);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payer"`);
|
|
26
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "payee"`);
|
|
27
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "is_debit"`);
|
|
28
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "is_credit"`);
|
|
29
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" DROP COLUMN "posting_date"`);
|
|
30
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payer_iban" character varying(250)`);
|
|
31
|
+
await queryRunner.query(`ALTER TABLE "saltedge"."transaction" ADD "payee_iban" character varying(250)`);
|
|
32
|
+
}
|
|
33
|
+
}
|
package/package.json
CHANGED
/package/dist/migration/{1679405632954-saltedge_lead.js → saltedge/1679405632954-saltedge_lead.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|