@explorins/pers-shared 2.1.172 → 2.1.174
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/cjs/shared-lib/dto/booking/booking.dto.d.ts +27 -11
- package/dist/cjs/shared-lib/dto/booking/booking.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/booking/booking.dto.js +164 -36
- package/dist/cjs/shared-lib/dto/booking/booking.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/booking/booking.dto.d.ts +27 -11
- package/dist/esm/shared-lib/dto/booking/booking.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/booking/booking.dto.js +148 -41
- package/dist/esm/shared-lib/dto/booking/booking.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { BookingStatus, LocationType } from '../../types/booking.type';
|
|
2
2
|
import type { DataSource } from '../../types/data-source.type';
|
|
3
|
+
import { DataSourceDTO } from '../data-source.dto';
|
|
3
4
|
export { DataSourceDTO } from '../data-source.dto';
|
|
4
5
|
/**
|
|
5
6
|
* Booking DTO for API responses.
|
|
6
|
-
* Contains all fields including computed/system fields.
|
|
7
7
|
*/
|
|
8
8
|
export declare class BookingDTO {
|
|
9
9
|
id: string;
|
|
10
|
-
userId
|
|
10
|
+
userId: string;
|
|
11
11
|
locationName: string;
|
|
12
12
|
locationType: LocationType;
|
|
13
13
|
businessId?: string | null;
|
|
14
|
-
checkInDate: string
|
|
15
|
-
checkOutDate: string
|
|
14
|
+
checkInDate: string;
|
|
15
|
+
checkOutDate: string;
|
|
16
16
|
confirmationNumber?: string | null;
|
|
17
17
|
externalRef?: string | null;
|
|
18
18
|
guests?: number;
|
|
@@ -22,20 +22,36 @@ export declare class BookingDTO {
|
|
|
22
22
|
createdAt: Date;
|
|
23
23
|
updatedAt: Date;
|
|
24
24
|
}
|
|
25
|
-
declare const CreateBookingDTO_base: import("@nestjs/common").Type<Omit<BookingDTO, "id" | "createdAt" | "updatedAt" | "status">>;
|
|
26
25
|
/**
|
|
27
26
|
* DTO for creating a new booking.
|
|
28
|
-
* Omits system-managed fields (id, status, timestamps).
|
|
29
|
-
* userId is optional (can be inferred from route param).
|
|
30
27
|
*/
|
|
31
|
-
export declare class CreateBookingDTO
|
|
28
|
+
export declare class CreateBookingDTO {
|
|
29
|
+
userId?: string;
|
|
30
|
+
locationName: string;
|
|
31
|
+
locationType?: LocationType;
|
|
32
|
+
businessId?: string | null;
|
|
33
|
+
checkInDate: string;
|
|
34
|
+
checkOutDate: string;
|
|
35
|
+
confirmationNumber?: string | null;
|
|
36
|
+
externalRef?: string | null;
|
|
37
|
+
guests?: number;
|
|
38
|
+
dataSource?: DataSourceDTO;
|
|
39
|
+
notes?: string | null;
|
|
32
40
|
}
|
|
33
|
-
declare const UpdateBookingDTO_base: import("@nestjs/common").Type<Partial<Omit<BookingDTO, "userId" | "id" | "createdAt" | "updatedAt" | "status">>>;
|
|
34
41
|
/**
|
|
35
42
|
* DTO for updating an existing booking.
|
|
36
|
-
* All fields optional. userId cannot be changed after creation.
|
|
37
43
|
*/
|
|
38
|
-
export declare class UpdateBookingDTO
|
|
44
|
+
export declare class UpdateBookingDTO {
|
|
45
|
+
locationName?: string;
|
|
46
|
+
locationType?: LocationType;
|
|
47
|
+
businessId?: string | null;
|
|
48
|
+
checkInDate?: string;
|
|
49
|
+
checkOutDate?: string;
|
|
50
|
+
confirmationNumber?: string | null;
|
|
51
|
+
externalRef?: string | null;
|
|
52
|
+
guests?: number;
|
|
53
|
+
dataSource?: DataSourceDTO;
|
|
54
|
+
notes?: string | null;
|
|
39
55
|
}
|
|
40
56
|
/**
|
|
41
57
|
* Filter options for querying bookings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/booking/booking.dto.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EA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;IAIzB,YAAY,EAAE,MAAM,CAAM;IAK1B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,UAAU,CAAC,EAAE,aAAa,CAAC;IAK3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,qBAAa,gBAAgB;IAI3B,YAAY,CAAC,EAAE,MAAM,CAAC;IAQtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAK5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAK3B,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,UAAU,CAAC,EAAE,aAAa,CAAC;IAK3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,MAAM,CAAC,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IACzC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB"}
|
|
@@ -19,11 +19,10 @@ var data_source_dto_2 = require("../data-source.dto");
|
|
|
19
19
|
Object.defineProperty(exports, "DataSourceDTO", { enumerable: true, get: function () { return data_source_dto_2.DataSourceDTO; } });
|
|
20
20
|
/**
|
|
21
21
|
* Booking DTO for API responses.
|
|
22
|
-
* Contains all fields including computed/system fields.
|
|
23
22
|
*/
|
|
24
23
|
class BookingDTO {
|
|
25
24
|
id = '';
|
|
26
|
-
userId;
|
|
25
|
+
userId = '';
|
|
27
26
|
locationName = '';
|
|
28
27
|
locationType = 'property';
|
|
29
28
|
businessId;
|
|
@@ -44,14 +43,11 @@ __decorate([
|
|
|
44
43
|
__metadata("design:type", String)
|
|
45
44
|
], BookingDTO.prototype, "id", void 0);
|
|
46
45
|
__decorate([
|
|
47
|
-
(0, swagger_1.
|
|
48
|
-
(0, class_validator_1.IsUUID)(),
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, swagger_1.ApiProperty)({ description: 'User ID who owns this booking' }),
|
|
50
47
|
__metadata("design:type", String)
|
|
51
48
|
], BookingDTO.prototype, "userId", void 0);
|
|
52
49
|
__decorate([
|
|
53
50
|
(0, swagger_1.ApiProperty)({ description: 'Location/venue name' }),
|
|
54
|
-
(0, class_validator_1.IsString)(),
|
|
55
51
|
__metadata("design:type", String)
|
|
56
52
|
], BookingDTO.prototype, "locationName", void 0);
|
|
57
53
|
__decorate([
|
|
@@ -60,56 +56,38 @@ __decorate([
|
|
|
60
56
|
enum: ['property', 'service', 'event', 'experience', 'destination'],
|
|
61
57
|
default: 'property'
|
|
62
58
|
}),
|
|
63
|
-
(0, class_validator_1.IsEnum)(['property', 'service', 'event', 'experience', 'destination']),
|
|
64
59
|
__metadata("design:type", String)
|
|
65
60
|
], BookingDTO.prototype, "locationType", void 0);
|
|
66
61
|
__decorate([
|
|
67
62
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Optional link to business entity' }),
|
|
68
|
-
(0, class_validator_1.IsUUID)(),
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
63
|
__metadata("design:type", Object)
|
|
71
64
|
], BookingDTO.prototype, "businessId", void 0);
|
|
72
65
|
__decorate([
|
|
73
66
|
(0, swagger_1.ApiProperty)({ description: 'Check-in/start date (YYYY-MM-DD)', type: String, example: '2026-06-01' }),
|
|
74
|
-
(
|
|
75
|
-
__metadata("design:type", Object)
|
|
67
|
+
__metadata("design:type", String)
|
|
76
68
|
], BookingDTO.prototype, "checkInDate", void 0);
|
|
77
69
|
__decorate([
|
|
78
70
|
(0, swagger_1.ApiProperty)({ description: 'Check-out/end date (YYYY-MM-DD)', type: String, example: '2026-06-05' }),
|
|
79
|
-
(
|
|
80
|
-
__metadata("design:type", Object)
|
|
71
|
+
__metadata("design:type", String)
|
|
81
72
|
], BookingDTO.prototype, "checkOutDate", void 0);
|
|
82
73
|
__decorate([
|
|
83
74
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Confirmation or booking reference number' }),
|
|
84
|
-
(0, class_validator_1.IsString)(),
|
|
85
|
-
(0, class_validator_1.IsOptional)(),
|
|
86
75
|
__metadata("design:type", Object)
|
|
87
76
|
], BookingDTO.prototype, "confirmationNumber", void 0);
|
|
88
77
|
__decorate([
|
|
89
78
|
(0, swagger_1.ApiPropertyOptional)({ description: 'External reference ID (PMS, OTA)' }),
|
|
90
|
-
(0, class_validator_1.IsString)(),
|
|
91
|
-
(0, class_validator_1.IsOptional)(),
|
|
92
79
|
__metadata("design:type", Object)
|
|
93
80
|
], BookingDTO.prototype, "externalRef", void 0);
|
|
94
81
|
__decorate([
|
|
95
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Number of guests', default: 1
|
|
96
|
-
(0, class_validator_1.IsInt)(),
|
|
97
|
-
(0, class_validator_1.Min)(1),
|
|
98
|
-
(0, class_validator_1.Max)(100),
|
|
99
|
-
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Number of guests', default: 1 }),
|
|
100
83
|
__metadata("design:type", Number)
|
|
101
84
|
], BookingDTO.prototype, "guests", void 0);
|
|
102
85
|
__decorate([
|
|
103
86
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Data source tracking', type: data_source_dto_1.DataSourceDTO }),
|
|
104
|
-
(0, class_validator_1.ValidateNested)(),
|
|
105
|
-
(0, class_transformer_1.Type)(() => data_source_dto_1.DataSourceDTO),
|
|
106
|
-
(0, class_validator_1.IsOptional)(),
|
|
107
87
|
__metadata("design:type", Object)
|
|
108
88
|
], BookingDTO.prototype, "dataSource", void 0);
|
|
109
89
|
__decorate([
|
|
110
90
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Additional notes' }),
|
|
111
|
-
(0, class_validator_1.IsString)(),
|
|
112
|
-
(0, class_validator_1.IsOptional)(),
|
|
113
91
|
__metadata("design:type", Object)
|
|
114
92
|
], BookingDTO.prototype, "notes", void 0);
|
|
115
93
|
__decorate([
|
|
@@ -124,23 +102,173 @@ __decorate([
|
|
|
124
102
|
(0, swagger_1.ApiProperty)({ description: 'Updated timestamp' }),
|
|
125
103
|
__metadata("design:type", Date)
|
|
126
104
|
], BookingDTO.prototype, "updatedAt", void 0);
|
|
127
|
-
/**
|
|
128
|
-
* Fields that are system-managed and not user-provided.
|
|
129
|
-
*/
|
|
130
|
-
const BOOKING_SYSTEM_FIELDS = ['id', 'status', 'createdAt', 'updatedAt'];
|
|
131
105
|
/**
|
|
132
106
|
* DTO for creating a new booking.
|
|
133
|
-
* Omits system-managed fields (id, status, timestamps).
|
|
134
|
-
* userId is optional (can be inferred from route param).
|
|
135
107
|
*/
|
|
136
|
-
class CreateBookingDTO
|
|
108
|
+
class CreateBookingDTO {
|
|
109
|
+
userId;
|
|
110
|
+
locationName = '';
|
|
111
|
+
locationType;
|
|
112
|
+
businessId;
|
|
113
|
+
checkInDate = '';
|
|
114
|
+
checkOutDate = '';
|
|
115
|
+
confirmationNumber;
|
|
116
|
+
externalRef;
|
|
117
|
+
guests;
|
|
118
|
+
dataSource;
|
|
119
|
+
notes;
|
|
137
120
|
}
|
|
138
121
|
exports.CreateBookingDTO = CreateBookingDTO;
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'User ID (required when not using /users/:userId endpoint)' }),
|
|
124
|
+
(0, class_validator_1.IsUUID)(),
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], CreateBookingDTO.prototype, "userId", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiProperty)({ description: 'Location/venue name' }),
|
|
130
|
+
(0, class_validator_1.IsString)(),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], CreateBookingDTO.prototype, "locationName", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
135
|
+
description: 'Location type',
|
|
136
|
+
enum: ['property', 'service', 'event', 'experience', 'destination'],
|
|
137
|
+
default: 'property'
|
|
138
|
+
}),
|
|
139
|
+
(0, class_validator_1.IsEnum)(['property', 'service', 'event', 'experience', 'destination']),
|
|
140
|
+
(0, class_validator_1.IsOptional)(),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], CreateBookingDTO.prototype, "locationType", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Optional link to business entity' }),
|
|
145
|
+
(0, class_validator_1.IsUUID)(),
|
|
146
|
+
(0, class_validator_1.IsOptional)(),
|
|
147
|
+
__metadata("design:type", Object)
|
|
148
|
+
], CreateBookingDTO.prototype, "businessId", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, swagger_1.ApiProperty)({ description: 'Check-in/start date (YYYY-MM-DD)', example: '2026-06-01' }),
|
|
151
|
+
(0, class_validator_1.IsDateString)(),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], CreateBookingDTO.prototype, "checkInDate", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, swagger_1.ApiProperty)({ description: 'Check-out/end date (YYYY-MM-DD)', example: '2026-06-05' }),
|
|
156
|
+
(0, class_validator_1.IsDateString)(),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], CreateBookingDTO.prototype, "checkOutDate", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Confirmation or booking reference number' }),
|
|
161
|
+
(0, class_validator_1.IsString)(),
|
|
162
|
+
(0, class_validator_1.IsOptional)(),
|
|
163
|
+
__metadata("design:type", Object)
|
|
164
|
+
], CreateBookingDTO.prototype, "confirmationNumber", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'External reference ID (PMS, OTA)' }),
|
|
167
|
+
(0, class_validator_1.IsString)(),
|
|
168
|
+
(0, class_validator_1.IsOptional)(),
|
|
169
|
+
__metadata("design:type", Object)
|
|
170
|
+
], CreateBookingDTO.prototype, "externalRef", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Number of guests', default: 1, minimum: 1, maximum: 100 }),
|
|
173
|
+
(0, class_validator_1.IsInt)(),
|
|
174
|
+
(0, class_validator_1.Min)(1),
|
|
175
|
+
(0, class_validator_1.Max)(100),
|
|
176
|
+
(0, class_validator_1.IsOptional)(),
|
|
177
|
+
__metadata("design:type", Number)
|
|
178
|
+
], CreateBookingDTO.prototype, "guests", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Data source tracking', type: data_source_dto_1.DataSourceDTO }),
|
|
181
|
+
(0, class_validator_1.ValidateNested)(),
|
|
182
|
+
(0, class_transformer_1.Type)(() => data_source_dto_1.DataSourceDTO),
|
|
183
|
+
(0, class_validator_1.IsOptional)(),
|
|
184
|
+
__metadata("design:type", data_source_dto_1.DataSourceDTO)
|
|
185
|
+
], CreateBookingDTO.prototype, "dataSource", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Additional notes' }),
|
|
188
|
+
(0, class_validator_1.IsString)(),
|
|
189
|
+
(0, class_validator_1.IsOptional)(),
|
|
190
|
+
__metadata("design:type", Object)
|
|
191
|
+
], CreateBookingDTO.prototype, "notes", void 0);
|
|
139
192
|
/**
|
|
140
193
|
* DTO for updating an existing booking.
|
|
141
|
-
* All fields optional. userId cannot be changed after creation.
|
|
142
194
|
*/
|
|
143
|
-
class UpdateBookingDTO
|
|
195
|
+
class UpdateBookingDTO {
|
|
196
|
+
locationName;
|
|
197
|
+
locationType;
|
|
198
|
+
businessId;
|
|
199
|
+
checkInDate;
|
|
200
|
+
checkOutDate;
|
|
201
|
+
confirmationNumber;
|
|
202
|
+
externalRef;
|
|
203
|
+
guests;
|
|
204
|
+
dataSource;
|
|
205
|
+
notes;
|
|
144
206
|
}
|
|
145
207
|
exports.UpdateBookingDTO = UpdateBookingDTO;
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Location/venue name' }),
|
|
210
|
+
(0, class_validator_1.IsString)(),
|
|
211
|
+
(0, class_validator_1.IsOptional)(),
|
|
212
|
+
__metadata("design:type", String)
|
|
213
|
+
], UpdateBookingDTO.prototype, "locationName", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
216
|
+
description: 'Location type',
|
|
217
|
+
enum: ['property', 'service', 'event', 'experience', 'destination']
|
|
218
|
+
}),
|
|
219
|
+
(0, class_validator_1.IsEnum)(['property', 'service', 'event', 'experience', 'destination']),
|
|
220
|
+
(0, class_validator_1.IsOptional)(),
|
|
221
|
+
__metadata("design:type", String)
|
|
222
|
+
], UpdateBookingDTO.prototype, "locationType", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Optional link to business entity' }),
|
|
225
|
+
(0, class_validator_1.IsUUID)(),
|
|
226
|
+
(0, class_validator_1.IsOptional)(),
|
|
227
|
+
__metadata("design:type", Object)
|
|
228
|
+
], UpdateBookingDTO.prototype, "businessId", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Check-in/start date (YYYY-MM-DD)' }),
|
|
231
|
+
(0, class_validator_1.IsDateString)(),
|
|
232
|
+
(0, class_validator_1.IsOptional)(),
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], UpdateBookingDTO.prototype, "checkInDate", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Check-out/end date (YYYY-MM-DD)' }),
|
|
237
|
+
(0, class_validator_1.IsDateString)(),
|
|
238
|
+
(0, class_validator_1.IsOptional)(),
|
|
239
|
+
__metadata("design:type", String)
|
|
240
|
+
], UpdateBookingDTO.prototype, "checkOutDate", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Confirmation or booking reference number' }),
|
|
243
|
+
(0, class_validator_1.IsString)(),
|
|
244
|
+
(0, class_validator_1.IsOptional)(),
|
|
245
|
+
__metadata("design:type", Object)
|
|
246
|
+
], UpdateBookingDTO.prototype, "confirmationNumber", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'External reference ID (PMS, OTA)' }),
|
|
249
|
+
(0, class_validator_1.IsString)(),
|
|
250
|
+
(0, class_validator_1.IsOptional)(),
|
|
251
|
+
__metadata("design:type", Object)
|
|
252
|
+
], UpdateBookingDTO.prototype, "externalRef", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Number of guests', minimum: 1, maximum: 100 }),
|
|
255
|
+
(0, class_validator_1.IsInt)(),
|
|
256
|
+
(0, class_validator_1.Min)(1),
|
|
257
|
+
(0, class_validator_1.Max)(100),
|
|
258
|
+
(0, class_validator_1.IsOptional)(),
|
|
259
|
+
__metadata("design:type", Number)
|
|
260
|
+
], UpdateBookingDTO.prototype, "guests", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Data source tracking', type: data_source_dto_1.DataSourceDTO }),
|
|
263
|
+
(0, class_validator_1.ValidateNested)(),
|
|
264
|
+
(0, class_transformer_1.Type)(() => data_source_dto_1.DataSourceDTO),
|
|
265
|
+
(0, class_validator_1.IsOptional)(),
|
|
266
|
+
__metadata("design:type", data_source_dto_1.DataSourceDTO)
|
|
267
|
+
], UpdateBookingDTO.prototype, "dataSource", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Additional notes' }),
|
|
270
|
+
(0, class_validator_1.IsString)(),
|
|
271
|
+
(0, class_validator_1.IsOptional)(),
|
|
272
|
+
__metadata("design:type", Object)
|
|
273
|
+
], UpdateBookingDTO.prototype, "notes", void 0);
|
|
146
274
|
//# sourceMappingURL=booking.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/booking/booking.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"booking.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/booking/booking.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAsH;AACtH,yDAAyC;AAGzC,wDAAmD;AAEnD,uCAAuC;AACvC,sDAAmD;AAA1C,gHAAA,aAAa,OAAA;AAEtB;;GAEG;AACH,MAAa,UAAU;IAErB,EAAE,GAAW,EAAE,CAAC;IAGhB,MAAM,GAAW,EAAE,CAAC;IAGpB,YAAY,GAAW,EAAE,CAAC;IAO1B,YAAY,GAAiB,UAAU,CAAC;IAGxC,UAAU,CAAiB;IAG3B,WAAW,GAAW,EAAE,CAAC;IAGzB,YAAY,GAAW,EAAE,CAAC;IAG1B,kBAAkB,CAAiB;IAGnC,WAAW,CAAiB;IAG5B,MAAM,CAAU;IAGhB,UAAU,CAAc;IAGxB,KAAK,CAAiB;IAGtB,M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GAAE;IACV,IAAA,4BAAU,GAAE;;4DACsB;AAKnC;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IACxE,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACe;AAO5B;IALC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;IAClF,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;IACR,IAAA,4BAAU,GAAE;;gDACG;AAMhB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,EAAE,+BAAa,EAAE,CAAC;IACjF,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+BAAa,CAAC;IACzB,IAAA,4BAAU,GAAE;8BACA,+BAAa;oDAAC;AAK3B;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACS"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { BookingStatus, LocationType } from '../../types/booking.type';
|
|
2
2
|
import type { DataSource } from '../../types/data-source.type';
|
|
3
|
+
import { DataSourceDTO } from '../data-source.dto';
|
|
3
4
|
export { DataSourceDTO } from '../data-source.dto';
|
|
4
5
|
/**
|
|
5
6
|
* Booking DTO for API responses.
|
|
6
|
-
* Contains all fields including computed/system fields.
|
|
7
7
|
*/
|
|
8
8
|
export declare class BookingDTO {
|
|
9
9
|
id: string;
|
|
10
|
-
userId
|
|
10
|
+
userId: string;
|
|
11
11
|
locationName: string;
|
|
12
12
|
locationType: LocationType;
|
|
13
13
|
businessId?: string | null;
|
|
14
|
-
checkInDate: string
|
|
15
|
-
checkOutDate: string
|
|
14
|
+
checkInDate: string;
|
|
15
|
+
checkOutDate: string;
|
|
16
16
|
confirmationNumber?: string | null;
|
|
17
17
|
externalRef?: string | null;
|
|
18
18
|
guests?: number;
|
|
@@ -22,20 +22,36 @@ export declare class BookingDTO {
|
|
|
22
22
|
createdAt: Date;
|
|
23
23
|
updatedAt: Date;
|
|
24
24
|
}
|
|
25
|
-
declare const CreateBookingDTO_base: import("@nestjs/common").Type<Omit<BookingDTO, "id" | "createdAt" | "updatedAt" | "status">>;
|
|
26
25
|
/**
|
|
27
26
|
* DTO for creating a new booking.
|
|
28
|
-
* Omits system-managed fields (id, status, timestamps).
|
|
29
|
-
* userId is optional (can be inferred from route param).
|
|
30
27
|
*/
|
|
31
|
-
export declare class CreateBookingDTO
|
|
28
|
+
export declare class CreateBookingDTO {
|
|
29
|
+
userId?: string;
|
|
30
|
+
locationName: string;
|
|
31
|
+
locationType?: LocationType;
|
|
32
|
+
businessId?: string | null;
|
|
33
|
+
checkInDate: string;
|
|
34
|
+
checkOutDate: string;
|
|
35
|
+
confirmationNumber?: string | null;
|
|
36
|
+
externalRef?: string | null;
|
|
37
|
+
guests?: number;
|
|
38
|
+
dataSource?: DataSourceDTO;
|
|
39
|
+
notes?: string | null;
|
|
32
40
|
}
|
|
33
|
-
declare const UpdateBookingDTO_base: import("@nestjs/common").Type<Partial<Omit<BookingDTO, "userId" | "id" | "createdAt" | "updatedAt" | "status">>>;
|
|
34
41
|
/**
|
|
35
42
|
* DTO for updating an existing booking.
|
|
36
|
-
* All fields optional. userId cannot be changed after creation.
|
|
37
43
|
*/
|
|
38
|
-
export declare class UpdateBookingDTO
|
|
44
|
+
export declare class UpdateBookingDTO {
|
|
45
|
+
locationName?: string;
|
|
46
|
+
locationType?: LocationType;
|
|
47
|
+
businessId?: string | null;
|
|
48
|
+
checkInDate?: string;
|
|
49
|
+
checkOutDate?: string;
|
|
50
|
+
confirmationNumber?: string | null;
|
|
51
|
+
externalRef?: string | null;
|
|
52
|
+
guests?: number;
|
|
53
|
+
dataSource?: DataSourceDTO;
|
|
54
|
+
notes?: string | null;
|
|
39
55
|
}
|
|
40
56
|
/**
|
|
41
57
|
* Filter options for querying bookings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/booking/booking.dto.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"booking.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/booking/booking.dto.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,qBAAa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAM;IAGhB,MAAM,EAAE,MAAM,CAAM;IAGpB,YAAY,EAAE,MAAM,CAAM;IAO1B,YAAY,EAAE,YAAY,CAAc;IAGxC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,WAAW,EAAE,MAAM,CAAM;IAGzB,YAAY,EAAE,MAAM,CAAM;IAG1B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,MAAM,CAAC,EAAE,aAAa,C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AAC,EAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB"}
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { ApiProperty, ApiPropertyOptional
|
|
7
|
+
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsString, IsUUID, IsDateString, IsOptional, IsInt, IsEnum, Min, Max, ValidateNested } from 'class-validator';
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
10
|
import { DataSourceDTO } from '../data-source.dto.js';
|
|
@@ -12,11 +12,10 @@ import { DataSourceDTO } from '../data-source.dto.js';
|
|
|
12
12
|
export { DataSourceDTO } from '../data-source.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* Booking DTO for API responses.
|
|
15
|
-
* Contains all fields including computed/system fields.
|
|
16
15
|
*/
|
|
17
16
|
export class BookingDTO {
|
|
18
17
|
id = '';
|
|
19
|
-
userId;
|
|
18
|
+
userId = '';
|
|
20
19
|
locationName = '';
|
|
21
20
|
locationType = 'property';
|
|
22
21
|
businessId;
|
|
@@ -35,87 +34,195 @@ __decorate([
|
|
|
35
34
|
ApiProperty({ description: 'Booking ID' })
|
|
36
35
|
], BookingDTO.prototype, "id", void 0);
|
|
37
36
|
__decorate([
|
|
38
|
-
|
|
37
|
+
ApiProperty({ description: 'User ID who owns this booking' })
|
|
38
|
+
], BookingDTO.prototype, "userId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ApiProperty({ description: 'Location/venue name' })
|
|
41
|
+
], BookingDTO.prototype, "locationName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
ApiProperty({
|
|
44
|
+
description: 'Location type',
|
|
45
|
+
enum: ['property', 'service', 'event', 'experience', 'destination'],
|
|
46
|
+
default: 'property'
|
|
47
|
+
})
|
|
48
|
+
], BookingDTO.prototype, "locationType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
ApiPropertyOptional({ description: 'Optional link to business entity' })
|
|
51
|
+
], BookingDTO.prototype, "businessId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
ApiProperty({ description: 'Check-in/start date (YYYY-MM-DD)', type: String, example: '2026-06-01' })
|
|
54
|
+
], BookingDTO.prototype, "checkInDate", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
ApiProperty({ description: 'Check-out/end date (YYYY-MM-DD)', type: String, example: '2026-06-05' })
|
|
57
|
+
], BookingDTO.prototype, "checkOutDate", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
ApiPropertyOptional({ description: 'Confirmation or booking reference number' })
|
|
60
|
+
], BookingDTO.prototype, "confirmationNumber", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
ApiPropertyOptional({ description: 'External reference ID (PMS, OTA)' })
|
|
63
|
+
], BookingDTO.prototype, "externalRef", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
ApiPropertyOptional({ description: 'Number of guests', default: 1 })
|
|
66
|
+
], BookingDTO.prototype, "guests", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
ApiPropertyOptional({ description: 'Data source tracking', type: DataSourceDTO })
|
|
69
|
+
], BookingDTO.prototype, "dataSource", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
ApiPropertyOptional({ description: 'Additional notes' })
|
|
72
|
+
], BookingDTO.prototype, "notes", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
ApiPropertyOptional({ description: 'Computed booking status', enum: ['past', 'active', 'future'] })
|
|
75
|
+
], BookingDTO.prototype, "status", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
ApiProperty({ description: 'Created timestamp' })
|
|
78
|
+
], BookingDTO.prototype, "createdAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
ApiProperty({ description: 'Updated timestamp' })
|
|
81
|
+
], BookingDTO.prototype, "updatedAt", void 0);
|
|
82
|
+
/**
|
|
83
|
+
* DTO for creating a new booking.
|
|
84
|
+
*/
|
|
85
|
+
export class CreateBookingDTO {
|
|
86
|
+
userId;
|
|
87
|
+
locationName = '';
|
|
88
|
+
locationType;
|
|
89
|
+
businessId;
|
|
90
|
+
checkInDate = '';
|
|
91
|
+
checkOutDate = '';
|
|
92
|
+
confirmationNumber;
|
|
93
|
+
externalRef;
|
|
94
|
+
guests;
|
|
95
|
+
dataSource;
|
|
96
|
+
notes;
|
|
97
|
+
}
|
|
98
|
+
__decorate([
|
|
99
|
+
ApiPropertyOptional({ description: 'User ID (required when not using /users/:userId endpoint)' }),
|
|
39
100
|
IsUUID(),
|
|
40
101
|
IsOptional()
|
|
41
|
-
],
|
|
102
|
+
], CreateBookingDTO.prototype, "userId", void 0);
|
|
42
103
|
__decorate([
|
|
43
104
|
ApiProperty({ description: 'Location/venue name' }),
|
|
44
105
|
IsString()
|
|
45
|
-
],
|
|
106
|
+
], CreateBookingDTO.prototype, "locationName", void 0);
|
|
46
107
|
__decorate([
|
|
47
|
-
|
|
108
|
+
ApiPropertyOptional({
|
|
48
109
|
description: 'Location type',
|
|
49
110
|
enum: ['property', 'service', 'event', 'experience', 'destination'],
|
|
50
111
|
default: 'property'
|
|
51
112
|
}),
|
|
52
|
-
IsEnum(['property', 'service', 'event', 'experience', 'destination'])
|
|
53
|
-
|
|
113
|
+
IsEnum(['property', 'service', 'event', 'experience', 'destination']),
|
|
114
|
+
IsOptional()
|
|
115
|
+
], CreateBookingDTO.prototype, "locationType", void 0);
|
|
54
116
|
__decorate([
|
|
55
117
|
ApiPropertyOptional({ description: 'Optional link to business entity' }),
|
|
56
118
|
IsUUID(),
|
|
57
119
|
IsOptional()
|
|
58
|
-
],
|
|
120
|
+
], CreateBookingDTO.prototype, "businessId", void 0);
|
|
59
121
|
__decorate([
|
|
60
|
-
ApiProperty({ description: 'Check-in/start date (YYYY-MM-DD)',
|
|
122
|
+
ApiProperty({ description: 'Check-in/start date (YYYY-MM-DD)', example: '2026-06-01' }),
|
|
61
123
|
IsDateString()
|
|
62
|
-
],
|
|
124
|
+
], CreateBookingDTO.prototype, "checkInDate", void 0);
|
|
63
125
|
__decorate([
|
|
64
|
-
ApiProperty({ description: 'Check-out/end date (YYYY-MM-DD)',
|
|
126
|
+
ApiProperty({ description: 'Check-out/end date (YYYY-MM-DD)', example: '2026-06-05' }),
|
|
65
127
|
IsDateString()
|
|
66
|
-
],
|
|
128
|
+
], CreateBookingDTO.prototype, "checkOutDate", void 0);
|
|
67
129
|
__decorate([
|
|
68
130
|
ApiPropertyOptional({ description: 'Confirmation or booking reference number' }),
|
|
69
131
|
IsString(),
|
|
70
132
|
IsOptional()
|
|
71
|
-
],
|
|
133
|
+
], CreateBookingDTO.prototype, "confirmationNumber", void 0);
|
|
72
134
|
__decorate([
|
|
73
135
|
ApiPropertyOptional({ description: 'External reference ID (PMS, OTA)' }),
|
|
74
136
|
IsString(),
|
|
75
137
|
IsOptional()
|
|
76
|
-
],
|
|
138
|
+
], CreateBookingDTO.prototype, "externalRef", void 0);
|
|
77
139
|
__decorate([
|
|
78
140
|
ApiPropertyOptional({ description: 'Number of guests', default: 1, minimum: 1, maximum: 100 }),
|
|
79
141
|
IsInt(),
|
|
80
142
|
Min(1),
|
|
81
143
|
Max(100),
|
|
82
144
|
IsOptional()
|
|
83
|
-
],
|
|
145
|
+
], CreateBookingDTO.prototype, "guests", void 0);
|
|
84
146
|
__decorate([
|
|
85
147
|
ApiPropertyOptional({ description: 'Data source tracking', type: DataSourceDTO }),
|
|
86
148
|
ValidateNested(),
|
|
87
149
|
Type(() => DataSourceDTO),
|
|
88
150
|
IsOptional()
|
|
89
|
-
],
|
|
151
|
+
], CreateBookingDTO.prototype, "dataSource", void 0);
|
|
90
152
|
__decorate([
|
|
91
153
|
ApiPropertyOptional({ description: 'Additional notes' }),
|
|
92
154
|
IsString(),
|
|
93
155
|
IsOptional()
|
|
94
|
-
],
|
|
95
|
-
__decorate([
|
|
96
|
-
ApiPropertyOptional({ description: 'Computed booking status', enum: ['past', 'active', 'future'] })
|
|
97
|
-
], BookingDTO.prototype, "status", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
ApiProperty({ description: 'Created timestamp' })
|
|
100
|
-
], BookingDTO.prototype, "createdAt", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
ApiProperty({ description: 'Updated timestamp' })
|
|
103
|
-
], BookingDTO.prototype, "updatedAt", void 0);
|
|
104
|
-
/**
|
|
105
|
-
* Fields that are system-managed and not user-provided.
|
|
106
|
-
*/
|
|
107
|
-
const BOOKING_SYSTEM_FIELDS = ['id', 'status', 'createdAt', 'updatedAt'];
|
|
108
|
-
/**
|
|
109
|
-
* DTO for creating a new booking.
|
|
110
|
-
* Omits system-managed fields (id, status, timestamps).
|
|
111
|
-
* userId is optional (can be inferred from route param).
|
|
112
|
-
*/
|
|
113
|
-
export class CreateBookingDTO extends OmitType(BookingDTO, BOOKING_SYSTEM_FIELDS) {
|
|
114
|
-
}
|
|
156
|
+
], CreateBookingDTO.prototype, "notes", void 0);
|
|
115
157
|
/**
|
|
116
158
|
* DTO for updating an existing booking.
|
|
117
|
-
* All fields optional. userId cannot be changed after creation.
|
|
118
159
|
*/
|
|
119
|
-
export class UpdateBookingDTO
|
|
160
|
+
export class UpdateBookingDTO {
|
|
161
|
+
locationName;
|
|
162
|
+
locationType;
|
|
163
|
+
businessId;
|
|
164
|
+
checkInDate;
|
|
165
|
+
checkOutDate;
|
|
166
|
+
confirmationNumber;
|
|
167
|
+
externalRef;
|
|
168
|
+
guests;
|
|
169
|
+
dataSource;
|
|
170
|
+
notes;
|
|
120
171
|
}
|
|
172
|
+
__decorate([
|
|
173
|
+
ApiPropertyOptional({ description: 'Location/venue name' }),
|
|
174
|
+
IsString(),
|
|
175
|
+
IsOptional()
|
|
176
|
+
], UpdateBookingDTO.prototype, "locationName", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
ApiPropertyOptional({
|
|
179
|
+
description: 'Location type',
|
|
180
|
+
enum: ['property', 'service', 'event', 'experience', 'destination']
|
|
181
|
+
}),
|
|
182
|
+
IsEnum(['property', 'service', 'event', 'experience', 'destination']),
|
|
183
|
+
IsOptional()
|
|
184
|
+
], UpdateBookingDTO.prototype, "locationType", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
ApiPropertyOptional({ description: 'Optional link to business entity' }),
|
|
187
|
+
IsUUID(),
|
|
188
|
+
IsOptional()
|
|
189
|
+
], UpdateBookingDTO.prototype, "businessId", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
ApiPropertyOptional({ description: 'Check-in/start date (YYYY-MM-DD)' }),
|
|
192
|
+
IsDateString(),
|
|
193
|
+
IsOptional()
|
|
194
|
+
], UpdateBookingDTO.prototype, "checkInDate", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
ApiPropertyOptional({ description: 'Check-out/end date (YYYY-MM-DD)' }),
|
|
197
|
+
IsDateString(),
|
|
198
|
+
IsOptional()
|
|
199
|
+
], UpdateBookingDTO.prototype, "checkOutDate", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
ApiPropertyOptional({ description: 'Confirmation or booking reference number' }),
|
|
202
|
+
IsString(),
|
|
203
|
+
IsOptional()
|
|
204
|
+
], UpdateBookingDTO.prototype, "confirmationNumber", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
ApiPropertyOptional({ description: 'External reference ID (PMS, OTA)' }),
|
|
207
|
+
IsString(),
|
|
208
|
+
IsOptional()
|
|
209
|
+
], UpdateBookingDTO.prototype, "externalRef", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
ApiPropertyOptional({ description: 'Number of guests', minimum: 1, maximum: 100 }),
|
|
212
|
+
IsInt(),
|
|
213
|
+
Min(1),
|
|
214
|
+
Max(100),
|
|
215
|
+
IsOptional()
|
|
216
|
+
], UpdateBookingDTO.prototype, "guests", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
ApiPropertyOptional({ description: 'Data source tracking', type: DataSourceDTO }),
|
|
219
|
+
ValidateNested(),
|
|
220
|
+
Type(() => DataSourceDTO),
|
|
221
|
+
IsOptional()
|
|
222
|
+
], UpdateBookingDTO.prototype, "dataSource", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
ApiPropertyOptional({ description: 'Additional notes' }),
|
|
225
|
+
IsString(),
|
|
226
|
+
IsOptional()
|
|
227
|
+
], UpdateBookingDTO.prototype, "notes", void 0);
|
|
121
228
|
//# sourceMappingURL=booking.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/booking/booking.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"booking.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/booking/booking.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGzC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,uCAAuC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,MAAM,OAAO,UAAU;IAErB,EAAE,GAAW,EAAE,CAAC;IAGhB,MAAM,GAAW,EAAE,CAAC;I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