@felloh-org/lambda-wrapper 1.1.3 → 1.1.6
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/.concourse/private.yml +0 -0
- package/cli/seed/create-schema.js +1 -0
- package/dist/entity/agent-data/booking/index.js +13 -2
- package/dist/entity/index.js +3 -1
- package/dist/entity/payment/chargeback/index.js +17 -0
- package/dist/entity/payment/payment-link/index.js +13 -2
- package/dist/entity/payment/transaction/index.js +10 -6
- package/dist/entity/payment/transaction-event/index.js +13 -2
- package/dist/entity/payment/transaction-event-type/index.js +13 -2
- package/dist/entity/payment/transaction-metadata/index.js +13 -2
- package/dist/entity/scratch/abta-members/index.js +158 -0
- package/dist/entity/scratch/index.js +14 -0
- package/dist/index.js +8 -0
- package/dist/migration/payment/1650974827938-update_to_with_timezones.js +49 -0
- package/dist/migration/payment/1651050178971-update_to_with_timestamp.js +59 -0
- package/dist/migration/scratch/1651181353263-scratch_abta_members.js +13 -0
- package/ormconfig.js +1 -1
- package/package.json +1 -2
package/.concourse/private.yml
CHANGED
|
Binary file
|
|
@@ -15,7 +15,7 @@ var _transaction = _interopRequireDefault(require("../../payment/transaction"));
|
|
|
15
15
|
|
|
16
16
|
var _uuid = require("uuid");
|
|
17
17
|
|
|
18
|
-
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, _descriptor10;
|
|
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;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -49,7 +49,11 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
49
49
|
}), _dec12 = (0, _typeorm.Column)({
|
|
50
50
|
type: "date",
|
|
51
51
|
nullable: true
|
|
52
|
-
}), _dec13 = (0, _typeorm.CreateDateColumn)(
|
|
52
|
+
}), _dec13 = (0, _typeorm.CreateDateColumn)({
|
|
53
|
+
type: 'timestamp with time zone'
|
|
54
|
+
}), _dec14 = (0, _typeorm.UpdateDateColumn)({
|
|
55
|
+
type: 'timestamp with time zone'
|
|
56
|
+
}), _dec(_class = (_class2 = class Booking {
|
|
53
57
|
constructor() {
|
|
54
58
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
55
59
|
|
|
@@ -70,6 +74,8 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
70
74
|
_initializerDefineProperty(this, "return_date", _descriptor9, this);
|
|
71
75
|
|
|
72
76
|
_initializerDefineProperty(this, "created_at", _descriptor10, this);
|
|
77
|
+
|
|
78
|
+
_initializerDefineProperty(this, "updated_at", _descriptor11, this);
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
/**
|
|
@@ -160,5 +166,10 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
160
166
|
enumerable: true,
|
|
161
167
|
writable: true,
|
|
162
168
|
initializer: null
|
|
169
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec14], {
|
|
170
|
+
configurable: true,
|
|
171
|
+
enumerable: true,
|
|
172
|
+
writable: true,
|
|
173
|
+
initializer: null
|
|
163
174
|
})), _class2)) || _class);
|
|
164
175
|
exports.default = Booking;
|
package/dist/entity/index.js
CHANGED
|
@@ -21,8 +21,10 @@ var _totalProcessing = _interopRequireDefault(require("./total-processing"));
|
|
|
21
21
|
|
|
22
22
|
var _token = _interopRequireDefault(require("./token"));
|
|
23
23
|
|
|
24
|
+
var _scratch = _interopRequireDefault(require("./scratch"));
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
27
|
|
|
26
|
-
const ENTITIES = [..._agentData.default, ..._bank.default, ..._nuapay.default, ..._payment.default, ..._token.default, ..._totalProcessing.default, ..._trustPayments.default, ..._user.default];
|
|
28
|
+
const ENTITIES = [..._scratch.default, ..._agentData.default, ..._bank.default, ..._nuapay.default, ..._payment.default, ..._token.default, ..._totalProcessing.default, ..._trustPayments.default, ..._user.default];
|
|
27
29
|
var _default = ENTITIES;
|
|
28
30
|
exports.default = _default;
|
|
@@ -63,6 +63,23 @@ let Chargeback = (_dec = (0, _typeorm.Entity)({
|
|
|
63
63
|
_initializerDefineProperty(this, "created_at", _descriptor8, this);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Get public data
|
|
68
|
+
* @returns {{received_date: string, departure_date: *, created_at: Date, customer_name: *, transaction: *, email: *, status: string, return_date: *}}
|
|
69
|
+
*/
|
|
70
|
+
getPublicData() {
|
|
71
|
+
return {
|
|
72
|
+
transaction: this.transaction.getPublicCompactData(),
|
|
73
|
+
received_date: this.received_date,
|
|
74
|
+
status: this.status,
|
|
75
|
+
reason: this.reason,
|
|
76
|
+
amount: this.amount,
|
|
77
|
+
due_date: this.due_date,
|
|
78
|
+
posting_date: this.posting_date,
|
|
79
|
+
created_at: this.created_at
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
66
83
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
|
|
67
84
|
configurable: true,
|
|
68
85
|
enumerable: true,
|
|
@@ -15,7 +15,7 @@ var _booking = _interopRequireDefault(require("../../agent-data/booking"));
|
|
|
15
15
|
|
|
16
16
|
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
17
17
|
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -72,7 +72,11 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
72
72
|
type: "varchar",
|
|
73
73
|
length: "50",
|
|
74
74
|
default: 'active'
|
|
75
|
-
}), _dec21 = (0, _typeorm.CreateDateColumn)(
|
|
75
|
+
}), _dec21 = (0, _typeorm.CreateDateColumn)({
|
|
76
|
+
type: 'timestamp with time zone'
|
|
77
|
+
}), _dec22 = (0, _typeorm.UpdateDateColumn)({
|
|
78
|
+
type: 'timestamp with time zone'
|
|
79
|
+
}), _dec(_class = (_class2 = class PaymentLink {
|
|
76
80
|
constructor() {
|
|
77
81
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
78
82
|
|
|
@@ -107,6 +111,8 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
107
111
|
_initializerDefineProperty(this, "status", _descriptor16, this);
|
|
108
112
|
|
|
109
113
|
_initializerDefineProperty(this, "created_at", _descriptor17, this);
|
|
114
|
+
|
|
115
|
+
_initializerDefineProperty(this, "updated_at", _descriptor18, this);
|
|
110
116
|
}
|
|
111
117
|
|
|
112
118
|
generateExpiryDate() {
|
|
@@ -268,5 +274,10 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
268
274
|
enumerable: true,
|
|
269
275
|
writable: true,
|
|
270
276
|
initializer: null
|
|
277
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec22], {
|
|
278
|
+
configurable: true,
|
|
279
|
+
enumerable: true,
|
|
280
|
+
writable: true,
|
|
281
|
+
initializer: null
|
|
271
282
|
})), _class2)) || _class);
|
|
272
283
|
exports.default = PaymentLink;
|
|
@@ -77,10 +77,14 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
77
77
|
}), _dec22 = (0, _typeorm.Column)({
|
|
78
78
|
type: "timestamp with time zone",
|
|
79
79
|
nullable: true
|
|
80
|
-
}), _dec23 = (0, _typeorm.
|
|
80
|
+
}), _dec23 = (0, _typeorm.Column)({
|
|
81
81
|
type: "text",
|
|
82
82
|
nullable: true
|
|
83
|
-
}),
|
|
83
|
+
}), _dec24 = (0, _typeorm.CreateDateColumn)({
|
|
84
|
+
type: 'timestamp with time zone'
|
|
85
|
+
}), _dec25 = (0, _typeorm.UpdateDateColumn)({
|
|
86
|
+
type: 'timestamp with time zone'
|
|
87
|
+
}), _dec(_class = (_class2 = class Transaction {
|
|
84
88
|
constructor() {
|
|
85
89
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
86
90
|
|
|
@@ -108,9 +112,9 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
108
112
|
|
|
109
113
|
_initializerDefineProperty(this, "completed_at", _descriptor13, this);
|
|
110
114
|
|
|
111
|
-
_initializerDefineProperty(this, "
|
|
115
|
+
_initializerDefineProperty(this, "message", _descriptor14, this);
|
|
112
116
|
|
|
113
|
-
_initializerDefineProperty(this, "
|
|
117
|
+
_initializerDefineProperty(this, "created_at", _descriptor15, this);
|
|
114
118
|
|
|
115
119
|
_initializerDefineProperty(this, "updated_at", _descriptor16, this);
|
|
116
120
|
}
|
|
@@ -230,12 +234,12 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
230
234
|
enumerable: true,
|
|
231
235
|
writable: true,
|
|
232
236
|
initializer: null
|
|
233
|
-
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
237
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec23], {
|
|
234
238
|
configurable: true,
|
|
235
239
|
enumerable: true,
|
|
236
240
|
writable: true,
|
|
237
241
|
initializer: null
|
|
238
|
-
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
242
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec24], {
|
|
239
243
|
configurable: true,
|
|
240
244
|
enumerable: true,
|
|
241
245
|
writable: true,
|
|
@@ -11,7 +11,7 @@ var _transactionEventType = _interopRequireDefault(require("../transaction-event
|
|
|
11
11
|
|
|
12
12
|
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
13
13
|
|
|
14
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
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
|
|
|
@@ -30,7 +30,11 @@ let TransactionEvent = (_dec = (0, _typeorm.Entity)({
|
|
|
30
30
|
}), _dec5 = (0, _typeorm.ManyToOne)(() => _transactionEventType.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
31
31
|
name: 'event_type_id',
|
|
32
32
|
referencedColumnName: 'id'
|
|
33
|
-
}), _dec7 = (0, _typeorm.CreateDateColumn)(
|
|
33
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)({
|
|
34
|
+
type: 'timestamp with time zone'
|
|
35
|
+
}), _dec8 = (0, _typeorm.UpdateDateColumn)({
|
|
36
|
+
type: 'timestamp with time zone'
|
|
37
|
+
}), _dec(_class = (_class2 = class TransactionEvent {
|
|
34
38
|
constructor() {
|
|
35
39
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
36
40
|
|
|
@@ -39,6 +43,8 @@ let TransactionEvent = (_dec = (0, _typeorm.Entity)({
|
|
|
39
43
|
_initializerDefineProperty(this, "event_type", _descriptor3, this);
|
|
40
44
|
|
|
41
45
|
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
46
|
+
|
|
47
|
+
_initializerDefineProperty(this, "updated_at", _descriptor5, this);
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -67,5 +73,10 @@ let TransactionEvent = (_dec = (0, _typeorm.Entity)({
|
|
|
67
73
|
enumerable: true,
|
|
68
74
|
writable: true,
|
|
69
75
|
initializer: null
|
|
76
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
|
|
77
|
+
configurable: true,
|
|
78
|
+
enumerable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
initializer: null
|
|
70
81
|
})), _class2)) || _class);
|
|
71
82
|
exports.default = TransactionEvent;
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
11
11
|
|
|
12
12
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
13
|
|
|
@@ -18,11 +18,17 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
|
|
|
18
18
|
let TransactionEventType = (_dec = (0, _typeorm.Entity)({
|
|
19
19
|
name: 'transaction_event_type',
|
|
20
20
|
schema: 'payment'
|
|
21
|
-
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)({
|
|
22
|
+
type: 'timestamp with time zone'
|
|
23
|
+
}), _dec4 = (0, _typeorm.UpdateDateColumn)({
|
|
24
|
+
type: 'timestamp with time zone'
|
|
25
|
+
}), _dec(_class = (_class2 = class TransactionEventType {
|
|
22
26
|
constructor() {
|
|
23
27
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
24
28
|
|
|
25
29
|
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
30
|
+
|
|
31
|
+
_initializerDefineProperty(this, "updated_at", _descriptor3, this);
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -35,5 +41,10 @@ let TransactionEventType = (_dec = (0, _typeorm.Entity)({
|
|
|
35
41
|
enumerable: true,
|
|
36
42
|
writable: true,
|
|
37
43
|
initializer: null
|
|
44
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec4], {
|
|
45
|
+
configurable: true,
|
|
46
|
+
enumerable: true,
|
|
47
|
+
writable: true,
|
|
48
|
+
initializer: null
|
|
38
49
|
})), _class2)) || _class);
|
|
39
50
|
exports.default = TransactionEventType;
|
|
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
|
|
|
9
9
|
|
|
10
10
|
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
11
11
|
|
|
12
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
12
|
+
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, _descriptor10, _descriptor11;
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
@@ -59,7 +59,11 @@ let TransactionMetadata = (_dec = (0, _typeorm.Entity)({
|
|
|
59
59
|
type: "varchar",
|
|
60
60
|
nullable: true,
|
|
61
61
|
length: 150
|
|
62
|
-
}), _dec12 = (0, _typeorm.CreateDateColumn)(
|
|
62
|
+
}), _dec12 = (0, _typeorm.CreateDateColumn)({
|
|
63
|
+
type: 'timestamp with time zone'
|
|
64
|
+
}), _dec13 = (0, _typeorm.UpdateDateColumn)({
|
|
65
|
+
type: 'timestamp with time zone'
|
|
66
|
+
}), _dec(_class = (_class2 = class TransactionMetadata {
|
|
63
67
|
constructor() {
|
|
64
68
|
_initializerDefineProperty(this, "transaction", _descriptor, this);
|
|
65
69
|
|
|
@@ -80,6 +84,8 @@ let TransactionMetadata = (_dec = (0, _typeorm.Entity)({
|
|
|
80
84
|
_initializerDefineProperty(this, "cardholder_name", _descriptor9, this);
|
|
81
85
|
|
|
82
86
|
_initializerDefineProperty(this, "created_at", _descriptor10, this);
|
|
87
|
+
|
|
88
|
+
_initializerDefineProperty(this, "updated_at", _descriptor11, this);
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
|
|
@@ -134,5 +140,10 @@ let TransactionMetadata = (_dec = (0, _typeorm.Entity)({
|
|
|
134
140
|
enumerable: true,
|
|
135
141
|
writable: true,
|
|
136
142
|
initializer: null
|
|
143
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec13], {
|
|
144
|
+
configurable: true,
|
|
145
|
+
enumerable: true,
|
|
146
|
+
writable: true,
|
|
147
|
+
initializer: null
|
|
137
148
|
})), _class2)) || _class);
|
|
138
149
|
exports.default = TransactionMetadata;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
11
|
+
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let ABTAMembers = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'abta_members',
|
|
20
|
+
schema: 'scratch'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
|
|
22
|
+
type: "varchar",
|
|
23
|
+
length: "250",
|
|
24
|
+
nullable: true
|
|
25
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
26
|
+
type: "varchar",
|
|
27
|
+
length: "250",
|
|
28
|
+
nullable: true
|
|
29
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
30
|
+
type: "varchar",
|
|
31
|
+
length: "250",
|
|
32
|
+
nullable: true
|
|
33
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
34
|
+
type: "varchar",
|
|
35
|
+
length: "250",
|
|
36
|
+
nullable: true
|
|
37
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
38
|
+
type: "varchar",
|
|
39
|
+
length: "250",
|
|
40
|
+
nullable: true
|
|
41
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
42
|
+
type: "varchar",
|
|
43
|
+
length: "20",
|
|
44
|
+
nullable: true
|
|
45
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
46
|
+
type: "varchar",
|
|
47
|
+
length: "20",
|
|
48
|
+
nullable: true
|
|
49
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
50
|
+
type: "varchar",
|
|
51
|
+
length: "20",
|
|
52
|
+
nullable: true
|
|
53
|
+
}), _dec11 = (0, _typeorm.Column)("text", {
|
|
54
|
+
array: true,
|
|
55
|
+
nullable: true
|
|
56
|
+
}), _dec12 = (0, _typeorm.Column)("text", {
|
|
57
|
+
array: true,
|
|
58
|
+
nullable: true
|
|
59
|
+
}), _dec(_class = (_class2 = class ABTAMembers {
|
|
60
|
+
constructor() {
|
|
61
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
62
|
+
|
|
63
|
+
_initializerDefineProperty(this, "company_name", _descriptor2, this);
|
|
64
|
+
|
|
65
|
+
_initializerDefineProperty(this, "address_1", _descriptor3, this);
|
|
66
|
+
|
|
67
|
+
_initializerDefineProperty(this, "address_2", _descriptor4, this);
|
|
68
|
+
|
|
69
|
+
_initializerDefineProperty(this, "address_3", _descriptor5, this);
|
|
70
|
+
|
|
71
|
+
_initializerDefineProperty(this, "city", _descriptor6, this);
|
|
72
|
+
|
|
73
|
+
_initializerDefineProperty(this, "postcode", _descriptor7, this);
|
|
74
|
+
|
|
75
|
+
_initializerDefineProperty(this, "website", _descriptor8, this);
|
|
76
|
+
|
|
77
|
+
_initializerDefineProperty(this, "telephone", _descriptor9, this);
|
|
78
|
+
|
|
79
|
+
_initializerDefineProperty(this, "abta_number", _descriptor10, this);
|
|
80
|
+
|
|
81
|
+
_initializerDefineProperty(this, "brands", _descriptor11, this);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
85
|
+
configurable: true,
|
|
86
|
+
enumerable: true,
|
|
87
|
+
writable: true,
|
|
88
|
+
initializer: function () {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "company_name", [_dec3], {
|
|
92
|
+
configurable: true,
|
|
93
|
+
enumerable: true,
|
|
94
|
+
writable: true,
|
|
95
|
+
initializer: function () {
|
|
96
|
+
return "";
|
|
97
|
+
}
|
|
98
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "address_1", [_dec4], {
|
|
99
|
+
configurable: true,
|
|
100
|
+
enumerable: true,
|
|
101
|
+
writable: true,
|
|
102
|
+
initializer: function () {
|
|
103
|
+
return "";
|
|
104
|
+
}
|
|
105
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "address_2", [_dec5], {
|
|
106
|
+
configurable: true,
|
|
107
|
+
enumerable: true,
|
|
108
|
+
writable: true,
|
|
109
|
+
initializer: function () {
|
|
110
|
+
return "";
|
|
111
|
+
}
|
|
112
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "address_3", [_dec6], {
|
|
113
|
+
configurable: true,
|
|
114
|
+
enumerable: true,
|
|
115
|
+
writable: true,
|
|
116
|
+
initializer: function () {
|
|
117
|
+
return "";
|
|
118
|
+
}
|
|
119
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "city", [_dec7], {
|
|
120
|
+
configurable: true,
|
|
121
|
+
enumerable: true,
|
|
122
|
+
writable: true,
|
|
123
|
+
initializer: function () {
|
|
124
|
+
return "";
|
|
125
|
+
}
|
|
126
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "postcode", [_dec8], {
|
|
127
|
+
configurable: true,
|
|
128
|
+
enumerable: true,
|
|
129
|
+
writable: true,
|
|
130
|
+
initializer: function () {
|
|
131
|
+
return "";
|
|
132
|
+
}
|
|
133
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "website", [_dec9], {
|
|
134
|
+
configurable: true,
|
|
135
|
+
enumerable: true,
|
|
136
|
+
writable: true,
|
|
137
|
+
initializer: function () {
|
|
138
|
+
return "";
|
|
139
|
+
}
|
|
140
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "telephone", [_dec10], {
|
|
141
|
+
configurable: true,
|
|
142
|
+
enumerable: true,
|
|
143
|
+
writable: true,
|
|
144
|
+
initializer: function () {
|
|
145
|
+
return "";
|
|
146
|
+
}
|
|
147
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "abta_number", [_dec11], {
|
|
148
|
+
configurable: true,
|
|
149
|
+
enumerable: true,
|
|
150
|
+
writable: true,
|
|
151
|
+
initializer: null
|
|
152
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "brands", [_dec12], {
|
|
153
|
+
configurable: true,
|
|
154
|
+
enumerable: true,
|
|
155
|
+
writable: true,
|
|
156
|
+
initializer: null
|
|
157
|
+
})), _class2)) || _class);
|
|
158
|
+
exports.default = ABTAMembers;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _abtaMembers = _interopRequireDefault(require("./abta-members"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
const ENTITIES = [_abtaMembers.default];
|
|
13
|
+
var _default = ENTITIES;
|
|
14
|
+
exports.default = _default;
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "ABTAMembersEntity", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _abtaMembers.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "AccountEntity", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function () {
|
|
@@ -374,6 +380,8 @@ var _dependencyInjection = _interopRequireDefault(require("./dependency-injectio
|
|
|
374
380
|
|
|
375
381
|
var _entity = _interopRequireDefault(require("./entity"));
|
|
376
382
|
|
|
383
|
+
var _abtaMembers = _interopRequireDefault(require("./entity/scratch/abta-members"));
|
|
384
|
+
|
|
377
385
|
var _booking = _interopRequireDefault(require("./entity/agent-data/booking"));
|
|
378
386
|
|
|
379
387
|
var _bookingComponent = _interopRequireDefault(require("./entity/agent-data/booking-component"));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class updateToWithTimezones1650974827938 {
|
|
4
|
+
name = 'updateToWithTimezones1650974827938'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "created_at"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" DROP COLUMN "created_at"`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "created_at"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "updated_at"`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "created_at"`);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" DROP COLUMN "created_at"`);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" DROP COLUMN "created_at"`);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async down(queryRunner) {
|
|
29
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" DROP COLUMN "created_at"`);
|
|
30
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
31
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" DROP COLUMN "created_at"`);
|
|
32
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
33
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "created_at"`);
|
|
34
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
35
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "updated_at"`);
|
|
36
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "updated_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
37
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "created_at"`);
|
|
38
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
39
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" DROP COLUMN "created_at"`);
|
|
40
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
41
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "created_at"`);
|
|
42
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
43
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" DROP COLUMN "updated_at"`);
|
|
44
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" DROP COLUMN "updated_at"`);
|
|
45
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "updated_at"`);
|
|
46
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" DROP COLUMN "updated_at"`);
|
|
47
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "updated_at"`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class updateToWithTimestamp1651050178971 {
|
|
4
|
+
name = 'updateToWithTimestamp1651050178971'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "created_at"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "updated_at"`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" DROP COLUMN "created_at"`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" DROP COLUMN "updated_at"`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "created_at"`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "updated_at"`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "created_at"`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "updated_at"`);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" DROP COLUMN "created_at"`);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" DROP COLUMN "updated_at"`);
|
|
26
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
27
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" DROP COLUMN "created_at"`);
|
|
28
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
29
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" DROP COLUMN "updated_at"`);
|
|
30
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async down(queryRunner) {
|
|
34
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" DROP COLUMN "updated_at"`);
|
|
35
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
36
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" DROP COLUMN "created_at"`);
|
|
37
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
38
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" DROP COLUMN "updated_at"`);
|
|
39
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
40
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" DROP COLUMN "created_at"`);
|
|
41
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_event_type" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
42
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "updated_at"`);
|
|
43
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
44
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "created_at"`);
|
|
45
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
46
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "updated_at"`);
|
|
47
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
48
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" DROP COLUMN "created_at"`);
|
|
49
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
50
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" DROP COLUMN "updated_at"`);
|
|
51
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
52
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" DROP COLUMN "created_at"`);
|
|
53
|
+
await queryRunner.query(`ALTER TABLE "payment"."transaction_metadata" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
54
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "updated_at"`);
|
|
55
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "updated_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
56
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "created_at"`);
|
|
57
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "created_at" TIME WITH TIME ZONE NOT NULL DEFAULT now()`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembers1651181353263 {
|
|
4
|
+
name = 'scratchAbtaMembers1651181353263'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "scratch"."abta_members" ("id" character varying NOT NULL, "company_name" character varying(250), "address_1" character varying(250), "address_2" character varying(250), "address_3" character varying(250), "city" character varying(250), "postcode" character varying(20), "website" character varying(20), "telephone" character varying(20), "abta_number" text array, "brands" text array, CONSTRAINT "PK_ae0535efeb66d199afbb74d48d3" PRIMARY KEY ("id"))`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`DROP TABLE "scratch"."abta_members"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
package/ormconfig.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@felloh-org/lambda-wrapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Lambda wrapper for all Felloh Serverless Projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"orm:migration:run": "rm -rf dist && yarn build:orm && ./node_modules/.bin/typeorm migration:run",
|
|
15
15
|
"orm:schema:create": "babel-node ./cli/seed/create-schema.js",
|
|
16
16
|
"orm:revert": "rm -rf dist && yarn build:orm && ./node_modules/.bin/typeorm migration:revert",
|
|
17
|
-
"orm:seed": "babel-node ./cli/seed/index.js",
|
|
18
17
|
"start": "yarn build -w",
|
|
19
18
|
"test": "jest --coverage"
|
|
20
19
|
},
|