@felloh-org/lambda-wrapper 1.1.24 → 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.
|
@@ -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
36
|
length: "250"
|
|
34
|
-
}),
|
|
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,
|
|
@@ -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
|
+
}
|