@felloh-org/lambda-wrapper 1.1.68 → 1.1.69
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.
|
@@ -17,7 +17,9 @@ var _uuid = require("uuid");
|
|
|
17
17
|
|
|
18
18
|
var _bookingComponent = _interopRequireDefault(require("../booking-component"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _paymentLink = _interopRequireDefault(require("../../payment/payment-link"));
|
|
21
|
+
|
|
22
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
@@ -64,7 +66,7 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
64
66
|
}), _dec18 = (0, _typeorm.DeleteDateColumn)({
|
|
65
67
|
type: 'timestamp with time zone',
|
|
66
68
|
nullable: true
|
|
67
|
-
}), _dec(_class = (_class2 = class Booking {
|
|
69
|
+
}), _dec19 = (0, _typeorm.OneToMany)(() => _paymentLink.default, paymentLink => paymentLink.booking), _dec(_class = (_class2 = class Booking {
|
|
68
70
|
constructor() {
|
|
69
71
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
70
72
|
|
|
@@ -93,6 +95,8 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
93
95
|
_initializerDefineProperty(this, "updated_at", _descriptor13, this);
|
|
94
96
|
|
|
95
97
|
_initializerDefineProperty(this, "deleted_at", _descriptor14, this);
|
|
98
|
+
|
|
99
|
+
_initializerDefineProperty(this, "payment_links", _descriptor15, this);
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
/**
|
|
@@ -119,6 +123,10 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
119
123
|
response.components = this.components.map(component => component.getPublicCompactData());
|
|
120
124
|
}
|
|
121
125
|
|
|
126
|
+
if (typeof this.payment_links !== 'undefined') {
|
|
127
|
+
response.payment_links = this.payment_links.map(paymentLink => paymentLink.getPublicCompactData());
|
|
128
|
+
}
|
|
129
|
+
|
|
122
130
|
if (this.user !== null && typeof this.user.id !== 'undefined') {
|
|
123
131
|
response.user = this.user.getPublicCompactData();
|
|
124
132
|
}
|
|
@@ -212,5 +220,10 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
212
220
|
enumerable: true,
|
|
213
221
|
writable: true,
|
|
214
222
|
initializer: null
|
|
223
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "payment_links", [_dec19], {
|
|
224
|
+
configurable: true,
|
|
225
|
+
enumerable: true,
|
|
226
|
+
writable: true,
|
|
227
|
+
initializer: null
|
|
215
228
|
})), _class2)) || _class);
|
|
216
229
|
exports.default = Booking;
|