@felloh-org/lambda-wrapper 1.1.22 → 1.1.25
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/agent-data/booking/index.js +42 -31
- package/dist/entity/payment/payment-link/index.js +48 -32
- package/dist/entity/token/token/index.js +20 -4
- package/dist/entity/user/user/index.js +6 -3
- package/dist/migration/1656410109048-booking_gross.js +13 -0
- package/dist/migration/payment/1656341396697-payment_link_descriptions.js +17 -0
- package/dist/migration/payment/1656341762925-description_not_null.js +13 -0
- package/dist/migration/token/1656064704919-token_entity_timezones.js +21 -0
- package/dist/migration/{1656063685417-nullable_user_names.js → user/1656063685417-nullable_user_names.js} +0 -0
- package/package.json +1 -1
|
@@ -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, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
18
|
+
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;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -29,53 +29,58 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
29
29
|
name: 'booking',
|
|
30
30
|
schema: 'agent_data'
|
|
31
31
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
|
|
32
|
+
type: "int",
|
|
33
|
+
nullable: true
|
|
34
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
32
35
|
type: "varchar",
|
|
33
|
-
length: "
|
|
34
|
-
}),
|
|
36
|
+
length: "250"
|
|
37
|
+
}), _dec5 = (0, _typeorm.ManyToOne)(() => _user.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
35
38
|
name: 'user_id',
|
|
36
39
|
referencedColumnName: 'id'
|
|
37
|
-
}),
|
|
40
|
+
}), _dec7 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.booking), _dec8 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec9 = (0, _typeorm.JoinColumn)({
|
|
38
41
|
name: 'organisation_id',
|
|
39
42
|
referencedColumnName: 'id'
|
|
40
|
-
}), _dec9 = (0, _typeorm.Column)({
|
|
41
|
-
type: "varchar",
|
|
42
|
-
length: "150"
|
|
43
43
|
}), _dec10 = (0, _typeorm.Column)({
|
|
44
44
|
type: "varchar",
|
|
45
45
|
length: "150"
|
|
46
46
|
}), _dec11 = (0, _typeorm.Column)({
|
|
47
|
+
type: "varchar",
|
|
48
|
+
length: "150"
|
|
49
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
47
50
|
type: "date",
|
|
48
51
|
nullable: true
|
|
49
|
-
}),
|
|
52
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
50
53
|
type: "date",
|
|
51
54
|
nullable: true
|
|
52
|
-
}),
|
|
55
|
+
}), _dec14 = (0, _typeorm.CreateDateColumn)({
|
|
53
56
|
type: 'timestamp with time zone'
|
|
54
|
-
}),
|
|
57
|
+
}), _dec15 = (0, _typeorm.UpdateDateColumn)({
|
|
55
58
|
type: 'timestamp with time zone'
|
|
56
59
|
}), _dec(_class = (_class2 = class Booking {
|
|
57
60
|
constructor() {
|
|
58
61
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
59
62
|
|
|
60
|
-
_initializerDefineProperty(this, "
|
|
63
|
+
_initializerDefineProperty(this, "gross_amount", _descriptor2, this);
|
|
64
|
+
|
|
65
|
+
_initializerDefineProperty(this, "email", _descriptor3, this);
|
|
61
66
|
|
|
62
|
-
_initializerDefineProperty(this, "user",
|
|
67
|
+
_initializerDefineProperty(this, "user", _descriptor4, this);
|
|
63
68
|
|
|
64
|
-
_initializerDefineProperty(this, "transactions",
|
|
69
|
+
_initializerDefineProperty(this, "transactions", _descriptor5, this);
|
|
65
70
|
|
|
66
|
-
_initializerDefineProperty(this, "organisation",
|
|
71
|
+
_initializerDefineProperty(this, "organisation", _descriptor6, this);
|
|
67
72
|
|
|
68
|
-
_initializerDefineProperty(this, "customer_name",
|
|
73
|
+
_initializerDefineProperty(this, "customer_name", _descriptor7, this);
|
|
69
74
|
|
|
70
|
-
_initializerDefineProperty(this, "booking_reference",
|
|
75
|
+
_initializerDefineProperty(this, "booking_reference", _descriptor8, this);
|
|
71
76
|
|
|
72
|
-
_initializerDefineProperty(this, "departure_date",
|
|
77
|
+
_initializerDefineProperty(this, "departure_date", _descriptor9, this);
|
|
73
78
|
|
|
74
|
-
_initializerDefineProperty(this, "return_date",
|
|
79
|
+
_initializerDefineProperty(this, "return_date", _descriptor10, this);
|
|
75
80
|
|
|
76
|
-
_initializerDefineProperty(this, "created_at",
|
|
81
|
+
_initializerDefineProperty(this, "created_at", _descriptor11, this);
|
|
77
82
|
|
|
78
|
-
_initializerDefineProperty(this, "updated_at",
|
|
83
|
+
_initializerDefineProperty(this, "updated_at", _descriptor12, this);
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
/**
|
|
@@ -90,7 +95,8 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
90
95
|
customer_name: this.customer_name,
|
|
91
96
|
departure_date: this.departure_date,
|
|
92
97
|
return_date: this.return_date,
|
|
93
|
-
email: this.email
|
|
98
|
+
email: this.email,
|
|
99
|
+
gross_amount: this.gross_amount
|
|
94
100
|
};
|
|
95
101
|
|
|
96
102
|
if (typeof this.transactions !== 'undefined') {
|
|
@@ -115,62 +121,67 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
115
121
|
initializer: function () {
|
|
116
122
|
return (0, _uuid.v4)();
|
|
117
123
|
}
|
|
118
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
124
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "gross_amount", [_dec3], {
|
|
125
|
+
configurable: true,
|
|
126
|
+
enumerable: true,
|
|
127
|
+
writable: true,
|
|
128
|
+
initializer: null
|
|
129
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec4], {
|
|
119
130
|
configurable: true,
|
|
120
131
|
enumerable: true,
|
|
121
132
|
writable: true,
|
|
122
133
|
initializer: function () {
|
|
123
134
|
return "";
|
|
124
135
|
}
|
|
125
|
-
}),
|
|
136
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "user", [_dec5, _dec6], {
|
|
126
137
|
configurable: true,
|
|
127
138
|
enumerable: true,
|
|
128
139
|
writable: true,
|
|
129
140
|
initializer: function () {
|
|
130
141
|
return _user.default;
|
|
131
142
|
}
|
|
132
|
-
}),
|
|
143
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec7], {
|
|
133
144
|
configurable: true,
|
|
134
145
|
enumerable: true,
|
|
135
146
|
writable: true,
|
|
136
147
|
initializer: null
|
|
137
|
-
}),
|
|
148
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec8, _dec9], {
|
|
138
149
|
configurable: true,
|
|
139
150
|
enumerable: true,
|
|
140
151
|
writable: true,
|
|
141
152
|
initializer: function () {
|
|
142
153
|
return _organisation.default;
|
|
143
154
|
}
|
|
144
|
-
}),
|
|
155
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "customer_name", [_dec10], {
|
|
145
156
|
configurable: true,
|
|
146
157
|
enumerable: true,
|
|
147
158
|
writable: true,
|
|
148
159
|
initializer: function () {
|
|
149
160
|
return "";
|
|
150
161
|
}
|
|
151
|
-
}),
|
|
162
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "booking_reference", [_dec11], {
|
|
152
163
|
configurable: true,
|
|
153
164
|
enumerable: true,
|
|
154
165
|
writable: true,
|
|
155
166
|
initializer: function () {
|
|
156
167
|
return "";
|
|
157
168
|
}
|
|
158
|
-
}),
|
|
169
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "departure_date", [_dec12], {
|
|
159
170
|
configurable: true,
|
|
160
171
|
enumerable: true,
|
|
161
172
|
writable: true,
|
|
162
173
|
initializer: null
|
|
163
|
-
}),
|
|
174
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "return_date", [_dec13], {
|
|
164
175
|
configurable: true,
|
|
165
176
|
enumerable: true,
|
|
166
177
|
writable: true,
|
|
167
178
|
initializer: null
|
|
168
|
-
}),
|
|
179
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec14], {
|
|
169
180
|
configurable: true,
|
|
170
181
|
enumerable: true,
|
|
171
182
|
writable: true,
|
|
172
183
|
initializer: null
|
|
173
|
-
}),
|
|
184
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec15], {
|
|
174
185
|
configurable: true,
|
|
175
186
|
enumerable: true,
|
|
176
187
|
writable: 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, _dec22, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -47,34 +47,39 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
47
47
|
nullable: true
|
|
48
48
|
}), _dec11 = (0, _typeorm.Column)({
|
|
49
49
|
type: "varchar",
|
|
50
|
-
length: "
|
|
50
|
+
length: "2048",
|
|
51
|
+
nullable: true
|
|
51
52
|
}), _dec12 = (0, _typeorm.Column)({
|
|
52
53
|
type: "varchar",
|
|
53
|
-
length: "
|
|
54
|
+
length: "250",
|
|
55
|
+
nullable: true
|
|
54
56
|
}), _dec13 = (0, _typeorm.Column)({
|
|
55
57
|
type: "varchar",
|
|
56
58
|
length: "200"
|
|
57
59
|
}), _dec14 = (0, _typeorm.Column)({
|
|
58
60
|
type: "varchar",
|
|
59
61
|
length: "200"
|
|
60
|
-
}), _dec15 = (0, _typeorm.
|
|
62
|
+
}), _dec15 = (0, _typeorm.Column)({
|
|
63
|
+
type: "varchar",
|
|
64
|
+
length: "200"
|
|
65
|
+
}), _dec16 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.payment_link), _dec17 = (0, _typeorm.Column)({
|
|
61
66
|
type: "boolean",
|
|
62
67
|
default: true
|
|
63
|
-
}),
|
|
68
|
+
}), _dec18 = (0, _typeorm.Column)({
|
|
64
69
|
type: "boolean",
|
|
65
70
|
default: true
|
|
66
|
-
}),
|
|
71
|
+
}), _dec19 = (0, _typeorm.Column)({
|
|
67
72
|
type: "boolean",
|
|
68
73
|
default: false
|
|
69
|
-
}), _dec19 = (0, _typeorm.Column)({
|
|
70
|
-
type: "timestamp with time zone"
|
|
71
74
|
}), _dec20 = (0, _typeorm.Column)({
|
|
75
|
+
type: "timestamp with time zone"
|
|
76
|
+
}), _dec21 = (0, _typeorm.Column)({
|
|
72
77
|
type: "varchar",
|
|
73
78
|
length: "50",
|
|
74
79
|
default: 'active'
|
|
75
|
-
}),
|
|
80
|
+
}), _dec22 = (0, _typeorm.CreateDateColumn)({
|
|
76
81
|
type: 'timestamp with time zone'
|
|
77
|
-
}),
|
|
82
|
+
}), _dec23 = (0, _typeorm.UpdateDateColumn)({
|
|
78
83
|
type: 'timestamp with time zone'
|
|
79
84
|
}), _dec(_class = (_class2 = class PaymentLink {
|
|
80
85
|
constructor() {
|
|
@@ -92,27 +97,29 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
92
97
|
|
|
93
98
|
_initializerDefineProperty(this, "description", _descriptor7, this);
|
|
94
99
|
|
|
95
|
-
_initializerDefineProperty(this, "
|
|
100
|
+
_initializerDefineProperty(this, "email", _descriptor8, this);
|
|
101
|
+
|
|
102
|
+
_initializerDefineProperty(this, "success_url", _descriptor9, this);
|
|
96
103
|
|
|
97
|
-
_initializerDefineProperty(this, "failure_url",
|
|
104
|
+
_initializerDefineProperty(this, "failure_url", _descriptor10, this);
|
|
98
105
|
|
|
99
|
-
_initializerDefineProperty(this, "cancel_url",
|
|
106
|
+
_initializerDefineProperty(this, "cancel_url", _descriptor11, this);
|
|
100
107
|
|
|
101
|
-
_initializerDefineProperty(this, "transactions",
|
|
108
|
+
_initializerDefineProperty(this, "transactions", _descriptor12, this);
|
|
102
109
|
|
|
103
|
-
_initializerDefineProperty(this, "open_banking_enabled",
|
|
110
|
+
_initializerDefineProperty(this, "open_banking_enabled", _descriptor13, this);
|
|
104
111
|
|
|
105
|
-
_initializerDefineProperty(this, "card_enabled",
|
|
112
|
+
_initializerDefineProperty(this, "card_enabled", _descriptor14, this);
|
|
106
113
|
|
|
107
|
-
_initializerDefineProperty(this, "moto",
|
|
114
|
+
_initializerDefineProperty(this, "moto", _descriptor15, this);
|
|
108
115
|
|
|
109
|
-
_initializerDefineProperty(this, "expires_at",
|
|
116
|
+
_initializerDefineProperty(this, "expires_at", _descriptor16, this);
|
|
110
117
|
|
|
111
|
-
_initializerDefineProperty(this, "status",
|
|
118
|
+
_initializerDefineProperty(this, "status", _descriptor17, this);
|
|
112
119
|
|
|
113
|
-
_initializerDefineProperty(this, "created_at",
|
|
120
|
+
_initializerDefineProperty(this, "created_at", _descriptor18, this);
|
|
114
121
|
|
|
115
|
-
_initializerDefineProperty(this, "updated_at",
|
|
122
|
+
_initializerDefineProperty(this, "updated_at", _descriptor19, this);
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
generateExpiryDate() {
|
|
@@ -132,6 +139,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
132
139
|
customer_name: this.customer_name,
|
|
133
140
|
expires_at: this.expires_at,
|
|
134
141
|
created_at: this.created_at,
|
|
142
|
+
email: this.email,
|
|
135
143
|
methods: {
|
|
136
144
|
open_banking: this.open_banking_enabled,
|
|
137
145
|
card: this.card_enabled
|
|
@@ -164,6 +172,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
164
172
|
description: this.description,
|
|
165
173
|
expires_at: this.expires_at,
|
|
166
174
|
created_at: this.created_at,
|
|
175
|
+
email: this.email,
|
|
167
176
|
methods: {
|
|
168
177
|
open_banking: this.open_banking_enabled,
|
|
169
178
|
card: this.card_enabled
|
|
@@ -218,67 +227,74 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
218
227
|
initializer: function () {
|
|
219
228
|
return "";
|
|
220
229
|
}
|
|
221
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
230
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec12], {
|
|
231
|
+
configurable: true,
|
|
232
|
+
enumerable: true,
|
|
233
|
+
writable: true,
|
|
234
|
+
initializer: function () {
|
|
235
|
+
return "";
|
|
236
|
+
}
|
|
237
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "success_url", [_dec13], {
|
|
222
238
|
configurable: true,
|
|
223
239
|
enumerable: true,
|
|
224
240
|
writable: true,
|
|
225
241
|
initializer: function () {
|
|
226
242
|
return "";
|
|
227
243
|
}
|
|
228
|
-
}),
|
|
244
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "failure_url", [_dec14], {
|
|
229
245
|
configurable: true,
|
|
230
246
|
enumerable: true,
|
|
231
247
|
writable: true,
|
|
232
248
|
initializer: function () {
|
|
233
249
|
return "";
|
|
234
250
|
}
|
|
235
|
-
}),
|
|
251
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "cancel_url", [_dec15], {
|
|
236
252
|
configurable: true,
|
|
237
253
|
enumerable: true,
|
|
238
254
|
writable: true,
|
|
239
255
|
initializer: function () {
|
|
240
256
|
return "";
|
|
241
257
|
}
|
|
242
|
-
}),
|
|
258
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec16], {
|
|
243
259
|
configurable: true,
|
|
244
260
|
enumerable: true,
|
|
245
261
|
writable: true,
|
|
246
262
|
initializer: null
|
|
247
|
-
}),
|
|
263
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "open_banking_enabled", [_dec17], {
|
|
248
264
|
configurable: true,
|
|
249
265
|
enumerable: true,
|
|
250
266
|
writable: true,
|
|
251
267
|
initializer: null
|
|
252
|
-
}),
|
|
268
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "card_enabled", [_dec18], {
|
|
253
269
|
configurable: true,
|
|
254
270
|
enumerable: true,
|
|
255
271
|
writable: true,
|
|
256
272
|
initializer: null
|
|
257
|
-
}),
|
|
273
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "moto", [_dec19], {
|
|
258
274
|
configurable: true,
|
|
259
275
|
enumerable: true,
|
|
260
276
|
writable: true,
|
|
261
277
|
initializer: null
|
|
262
|
-
}),
|
|
278
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "expires_at", [_dec20], {
|
|
263
279
|
configurable: true,
|
|
264
280
|
enumerable: true,
|
|
265
281
|
writable: true,
|
|
266
282
|
initializer: function () {
|
|
267
283
|
return this.generateExpiryDate();
|
|
268
284
|
}
|
|
269
|
-
}),
|
|
285
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec21], {
|
|
270
286
|
configurable: true,
|
|
271
287
|
enumerable: true,
|
|
272
288
|
writable: true,
|
|
273
289
|
initializer: function () {
|
|
274
290
|
return "";
|
|
275
291
|
}
|
|
276
|
-
}),
|
|
292
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec22], {
|
|
277
293
|
configurable: true,
|
|
278
294
|
enumerable: true,
|
|
279
295
|
writable: true,
|
|
280
296
|
initializer: null
|
|
281
|
-
}),
|
|
297
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec23], {
|
|
282
298
|
configurable: true,
|
|
283
299
|
enumerable: true,
|
|
284
300
|
writable: true,
|
|
@@ -13,7 +13,7 @@ var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
|
13
13
|
|
|
14
14
|
var _user = _interopRequireDefault(require("../../user/user"));
|
|
15
15
|
|
|
16
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
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, _descriptor10;
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
@@ -44,7 +44,16 @@ let Token = (_dec = (0, _typeorm.Entity)({
|
|
|
44
44
|
}), _dec9 = (0, _typeorm.ManyToOne)(() => _user.default), _dec10 = (0, _typeorm.JoinColumn)({
|
|
45
45
|
name: 'user_id',
|
|
46
46
|
referencedColumnName: 'id'
|
|
47
|
-
}), _dec11 = (0, _typeorm.CreateDateColumn)(
|
|
47
|
+
}), _dec11 = (0, _typeorm.CreateDateColumn)({
|
|
48
|
+
type: 'timestamp with time zone',
|
|
49
|
+
default: () => 'NOW()'
|
|
50
|
+
}), _dec12 = (0, _typeorm.UpdateDateColumn)({
|
|
51
|
+
type: 'timestamp with time zone',
|
|
52
|
+
default: () => 'NOW()'
|
|
53
|
+
}), _dec13 = (0, _typeorm.DeleteDateColumn)({
|
|
54
|
+
type: 'timestamp with time zone',
|
|
55
|
+
nullable: true
|
|
56
|
+
}), _dec(_class = (_class2 = class Token {
|
|
48
57
|
constructor() {
|
|
49
58
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
50
59
|
|
|
@@ -62,7 +71,9 @@ let Token = (_dec = (0, _typeorm.Entity)({
|
|
|
62
71
|
|
|
63
72
|
_initializerDefineProperty(this, "created_at", _descriptor8, this);
|
|
64
73
|
|
|
65
|
-
_initializerDefineProperty(this, "
|
|
74
|
+
_initializerDefineProperty(this, "updated_at", _descriptor9, this);
|
|
75
|
+
|
|
76
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor10, this);
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -119,7 +130,12 @@ let Token = (_dec = (0, _typeorm.Entity)({
|
|
|
119
130
|
enumerable: true,
|
|
120
131
|
writable: true,
|
|
121
132
|
initializer: null
|
|
122
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
133
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec12], {
|
|
134
|
+
configurable: true,
|
|
135
|
+
enumerable: true,
|
|
136
|
+
writable: true,
|
|
137
|
+
initializer: null
|
|
138
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec13], {
|
|
123
139
|
configurable: true,
|
|
124
140
|
enumerable: true,
|
|
125
141
|
writable: true,
|
|
@@ -53,11 +53,14 @@ let User = (_dec = (0, _typeorm.Entity)({
|
|
|
53
53
|
length: "50",
|
|
54
54
|
nullable: true
|
|
55
55
|
}), _dec10 = (0, _typeorm.CreateDateColumn)({
|
|
56
|
-
type: 'timestamp with time zone'
|
|
56
|
+
type: 'timestamp with time zone',
|
|
57
|
+
default: () => 'NOW()'
|
|
57
58
|
}), _dec11 = (0, _typeorm.UpdateDateColumn)({
|
|
58
|
-
type: 'timestamp with time zone'
|
|
59
|
+
type: 'timestamp with time zone',
|
|
60
|
+
default: () => 'NOW()'
|
|
59
61
|
}), _dec12 = (0, _typeorm.DeleteDateColumn)({
|
|
60
|
-
type: 'timestamp with time zone'
|
|
62
|
+
type: 'timestamp with time zone',
|
|
63
|
+
nullable: true
|
|
61
64
|
}), _dec13 = (0, _typeorm.ManyToMany)(() => _organisation.default, organisation => organisation.users), _dec14 = (0, _typeorm.JoinTable)({
|
|
62
65
|
name: "user_organisation",
|
|
63
66
|
schema: "user",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class bookingGross1656410109048 {
|
|
4
|
+
name = 'bookingGross1656410109048'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "gross_amount" integer`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "gross_amount"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class paymentLinkDescriptions1656341396697 {
|
|
4
|
+
name = 'paymentLinkDescriptions1656341396697'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "email" character varying(250)`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" TYPE varchar(2048)`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ALTER COLUMN "email" TYPE varchar(250)`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async down(queryRunner) {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" TYPE varchar(250)`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ALTER COLUMN "email" TYPE varchar(150)`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "email"`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class test1656341762925 {
|
|
4
|
+
name = 'test1656341762925'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" DROP NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" SET NOT NULL`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class tokenEntityTimezones1656064704919 {
|
|
4
|
+
name = 'tokenEntityTimezones1656064704919'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "token"."token" ADD "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "token"."token" DROP COLUMN "created_at"`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "token"."token" ADD "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "token"."token" DROP COLUMN "deleted_at"`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "token"."token" ADD "deleted_at" TIMESTAMP WITH TIME ZONE`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async down(queryRunner) {
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "token"."token" DROP COLUMN "deleted_at"`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "token"."token" ADD "deleted_at" TIMESTAMP`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "token"."token" DROP COLUMN "created_at"`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE "token"."token" ADD "created_at" TIMESTAMP NOT NULL DEFAULT now()`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE "token"."token" DROP COLUMN "updated_at"`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
File without changes
|