@vibe-flats/booking-engine-common-external 1.0.58 → 1.0.60
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/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -20,3 +20,4 @@ __exportStar(require("./src/types/hubspot/quotes"), exports);
|
|
|
20
20
|
__exportStar(require("./src/types/hubspot/possibilities"), exports);
|
|
21
21
|
__exportStar(require("./src/types/hubspot/possibility"), exports);
|
|
22
22
|
__exportStar(require("./src/types/hubspot/config"), exports);
|
|
23
|
+
__exportStar(require("./src/types/hubspot/basic"), exports);
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { HubspotConfigResponse } from './config';
|
|
2
|
+
import { HubspotQuotesSearchResponse } from './search';
|
|
3
|
+
export interface VibeHubspotSalesInquiryTicket {
|
|
4
|
+
id: string;
|
|
5
|
+
content: string | null;
|
|
6
|
+
bookingRequest: {
|
|
7
|
+
isBookingRequest: boolean;
|
|
8
|
+
enteredAt: string | null;
|
|
9
|
+
};
|
|
10
|
+
hsPipeline: string | null;
|
|
11
|
+
data: {
|
|
12
|
+
market?: string;
|
|
13
|
+
checkin?: string;
|
|
14
|
+
checkout?: string;
|
|
15
|
+
bedrooms?: number;
|
|
16
|
+
unit?: string[];
|
|
17
|
+
building?: string[];
|
|
18
|
+
area?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface VibeHubspotSalesInquiryContact {
|
|
22
|
+
id: string;
|
|
23
|
+
firstname: string | null;
|
|
24
|
+
lastname: string | null;
|
|
25
|
+
stage: string | null;
|
|
26
|
+
kyc: {
|
|
27
|
+
date: string | null;
|
|
28
|
+
status: string | null;
|
|
29
|
+
user: string | null;
|
|
30
|
+
description: string | null;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface VibeHubspotSalesInquiryReservation {
|
|
34
|
+
id: string;
|
|
35
|
+
title?: string | null;
|
|
36
|
+
checkin: string | null;
|
|
37
|
+
checkout: string | null;
|
|
38
|
+
hsPipelineStage: string | null;
|
|
39
|
+
channel: string | null;
|
|
40
|
+
unit?: {
|
|
41
|
+
id?: string;
|
|
42
|
+
code?: number;
|
|
43
|
+
title: string | null;
|
|
44
|
+
};
|
|
45
|
+
building?: {
|
|
46
|
+
city: string | null;
|
|
47
|
+
};
|
|
48
|
+
createdAt?: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface VibeHubspotSalesInquiryReservationExtended extends VibeHubspotSalesInquiryReservation {
|
|
51
|
+
nights: number | null;
|
|
52
|
+
price: number | null;
|
|
53
|
+
bedrooms: number;
|
|
54
|
+
gap?: {
|
|
55
|
+
date: string;
|
|
56
|
+
days: number;
|
|
57
|
+
};
|
|
58
|
+
available?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface VibeHubspotSalesInquiryUnit {
|
|
61
|
+
id: string;
|
|
62
|
+
title: string | null;
|
|
63
|
+
url: string | null;
|
|
64
|
+
salesBlockWarning: string | null;
|
|
65
|
+
market: string | null;
|
|
66
|
+
bedrooms: string | null;
|
|
67
|
+
}
|
|
68
|
+
export interface VibeHubspotSalesInquiryBookingRequest {
|
|
69
|
+
id: string;
|
|
70
|
+
hsPipelineStage: string | null;
|
|
71
|
+
}
|
|
72
|
+
export interface VibeHubspotSalesInquiryBasicData {
|
|
73
|
+
ticket: VibeHubspotSalesInquiryTicket;
|
|
74
|
+
contact: VibeHubspotSalesInquiryContact;
|
|
75
|
+
reservation?: VibeHubspotSalesInquiryReservationExtended;
|
|
76
|
+
reservations?: VibeHubspotSalesInquiryReservation[];
|
|
77
|
+
unit?: VibeHubspotSalesInquiryUnit;
|
|
78
|
+
bookingRequest?: VibeHubspotSalesInquiryBookingRequest;
|
|
79
|
+
config: HubspotConfigResponse;
|
|
80
|
+
}
|
|
81
|
+
export interface VibeHubspotSalesInquiryOption {
|
|
82
|
+
id: string;
|
|
83
|
+
stay: {
|
|
84
|
+
from?: string;
|
|
85
|
+
to?: string;
|
|
86
|
+
price?: number;
|
|
87
|
+
gap?: {
|
|
88
|
+
availableFrom: string;
|
|
89
|
+
days: number;
|
|
90
|
+
isViolation?: boolean;
|
|
91
|
+
};
|
|
92
|
+
distance?: number;
|
|
93
|
+
minNights?: number;
|
|
94
|
+
};
|
|
95
|
+
unit: {
|
|
96
|
+
id: string;
|
|
97
|
+
image: string;
|
|
98
|
+
name: string;
|
|
99
|
+
bedrooms?: number;
|
|
100
|
+
elevator?: boolean;
|
|
101
|
+
laundry?: string;
|
|
102
|
+
deal?: number;
|
|
103
|
+
availableFrom?: string;
|
|
104
|
+
urls?: {
|
|
105
|
+
website: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
warnings?: 'previouslyQuoted' | 'salesBlockWarning'[];
|
|
109
|
+
indicators?: {
|
|
110
|
+
label: string;
|
|
111
|
+
value: string;
|
|
112
|
+
link?: string;
|
|
113
|
+
variant?: 'info' | 'tip' | 'success' | 'warning' | 'danger';
|
|
114
|
+
}[];
|
|
115
|
+
}
|
|
116
|
+
export interface VibeHubspotSalesInquirySearchData {
|
|
117
|
+
channel: string | null;
|
|
118
|
+
checkin: string | null;
|
|
119
|
+
checkout: string | null;
|
|
120
|
+
market: string | null;
|
|
121
|
+
area: string[] | null;
|
|
122
|
+
building: string[] | null;
|
|
123
|
+
unit: string[] | null;
|
|
124
|
+
bedrooms: number | null;
|
|
125
|
+
elevator: boolean | null;
|
|
126
|
+
laundry: boolean | null;
|
|
127
|
+
distance: number | null;
|
|
128
|
+
priceRange: number | null;
|
|
129
|
+
}
|
|
130
|
+
export interface VibeHubspotSalesInquiryQuotesArchive {
|
|
131
|
+
id: string;
|
|
132
|
+
channel: string;
|
|
133
|
+
createdAt: Date;
|
|
134
|
+
stay: {
|
|
135
|
+
from: string;
|
|
136
|
+
to: string;
|
|
137
|
+
price: number;
|
|
138
|
+
};
|
|
139
|
+
unit: {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
building: {
|
|
143
|
+
market: string;
|
|
144
|
+
};
|
|
145
|
+
stage: string;
|
|
146
|
+
}
|
|
147
|
+
export interface VibeHubspotSalesInquiryHistory {
|
|
148
|
+
date: string;
|
|
149
|
+
option: HubspotQuotesSearchResponse;
|
|
150
|
+
text: string;
|
|
151
|
+
isAvailable?: boolean;
|
|
152
|
+
}
|
package/package.json
CHANGED