@soigo-dev/types-soigo-app 3.0.0 → 3.0.2
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/lib/venue.d.ts +8 -0
- package/package.json +1 -1
package/lib/venue.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export interface IVenue {
|
|
|
77
77
|
readonly location: IVenueLocation;
|
|
78
78
|
readonly latitude: number;
|
|
79
79
|
readonly longitude: number;
|
|
80
|
+
readonly distance?: number;
|
|
80
81
|
readonly priceLevel: PriceLevel;
|
|
81
82
|
readonly offerings: Offerings[];
|
|
82
83
|
readonly amenities: Amenities[];
|
|
@@ -91,9 +92,15 @@ export interface IVenue {
|
|
|
91
92
|
readonly line?: string;
|
|
92
93
|
readonly facebook?: string;
|
|
93
94
|
readonly website?: string;
|
|
95
|
+
readonly venueHours?: IVenueHour[];
|
|
94
96
|
readonly createdAt: Date;
|
|
95
97
|
readonly updatedAt: Date;
|
|
96
98
|
}
|
|
99
|
+
export interface IVenueHour {
|
|
100
|
+
readonly dayOfWeek: DaysOfWeek;
|
|
101
|
+
readonly startHour: string;
|
|
102
|
+
readonly endHour: string;
|
|
103
|
+
}
|
|
97
104
|
type VenueFlags = {
|
|
98
105
|
readonly offerings: Record<keyof typeof Offerings, boolean>;
|
|
99
106
|
readonly amenities: Record<keyof typeof Amenities, boolean>;
|
|
@@ -106,6 +113,7 @@ type VenueFlags = {
|
|
|
106
113
|
};
|
|
107
114
|
export interface IGetVenueResponse extends IVenue {
|
|
108
115
|
readonly flags: VenueFlags;
|
|
116
|
+
readonly isOpen?: boolean;
|
|
109
117
|
}
|
|
110
118
|
export interface IGetNearbyVenuesQuery {
|
|
111
119
|
readonly lat: number;
|