@movvjs/svelte-schedule-view 0.4.12 → 0.4.14
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.
|
@@ -51,7 +51,10 @@ function createBookingStore(bookingDTO) {
|
|
|
51
51
|
// 피켓이 자동인지 여부
|
|
52
52
|
const isAutoPicketFile = derived(picketFiles, $picketFiles => $picketFiles.some(file => file.auto));
|
|
53
53
|
// 경유지가 가능한 서비스인지 여부
|
|
54
|
-
const isWaypointService = derived(booking, $booking => $booking?.serviceType === BookingServiceType.oneWay ||
|
|
54
|
+
const isWaypointService = derived(booking, $booking => $booking?.serviceType === BookingServiceType.oneWay ||
|
|
55
|
+
$booking?.serviceType === BookingServiceType.day ||
|
|
56
|
+
$booking?.serviceType === BookingServiceType.charter ||
|
|
57
|
+
$booking?.serviceType === BookingServiceType.business);
|
|
55
58
|
// 자유여행에 추가된 픽업서비스 정보
|
|
56
59
|
const pickupService = derived(booking, $booking => $booking?.extraPoi?.find(poi => poi.type === ExtraPoiType.pickup) ?? null);
|
|
57
60
|
// 자유여행에 추가할 수 있는 픽업 서비스 리스트
|
|
@@ -72,7 +75,10 @@ function createBookingStore(bookingDTO) {
|
|
|
72
75
|
const isPicketServiceAvailable = derived(availableExtraServices, $availableExtraServices => $availableExtraServices.some(extra => extra.type === ExtraServiceType.picket));
|
|
73
76
|
// 의전서비스 가능 여부
|
|
74
77
|
const isAeroServiceAvailable = derived(availableExtraServices, $availableExtraServices => $availableExtraServices.some(extra => extra.type === ExtraServiceType.aero));
|
|
75
|
-
const isFlightService = derived(booking, $booking => $booking?.serviceType === BookingServiceType.pickup ||
|
|
78
|
+
const isFlightService = derived(booking, $booking => $booking?.serviceType === BookingServiceType.pickup ||
|
|
79
|
+
$booking?.serviceType === BookingServiceType.sending ||
|
|
80
|
+
$booking?.serviceType === BookingServiceType.charter ||
|
|
81
|
+
$booking?.serviceType === BookingServiceType.business);
|
|
76
82
|
// 금액 정보
|
|
77
83
|
const price = derived(booking, $booking => {
|
|
78
84
|
const beforePrice = isNumber($booking?.price) ? $booking.price : null;
|
|
@@ -28,7 +28,9 @@ export declare enum BookingServiceType {
|
|
|
28
28
|
sending = "SENDING",
|
|
29
29
|
oneWay = "ONE_WAY",
|
|
30
30
|
roundTrip = "ROUND_TRIP",
|
|
31
|
-
pointPoint = "POINT_POINT"
|
|
31
|
+
pointPoint = "POINT_POINT",
|
|
32
|
+
charter = "CHARTER",
|
|
33
|
+
business = "BUSINESS"
|
|
32
34
|
}
|
|
33
35
|
export interface BookingLocation extends BaseLocation {
|
|
34
36
|
nation: string;
|
|
@@ -32,6 +32,8 @@ export var BookingServiceType;
|
|
|
32
32
|
BookingServiceType["oneWay"] = "ONE_WAY";
|
|
33
33
|
BookingServiceType["roundTrip"] = "ROUND_TRIP";
|
|
34
34
|
BookingServiceType["pointPoint"] = "POINT_POINT";
|
|
35
|
+
BookingServiceType["charter"] = "CHARTER";
|
|
36
|
+
BookingServiceType["business"] = "BUSINESS";
|
|
35
37
|
})(BookingServiceType || (BookingServiceType = {}));
|
|
36
38
|
export var ExtraPoiType;
|
|
37
39
|
(function (ExtraPoiType) {
|