@soigo-dev/types-soigo-app 3.0.13 → 3.0.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.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/venue-location.d.ts +38 -0
- package/lib/venue-location.js +2 -0
- package/lib/venue.d.ts +2 -12
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./venue"), exports);
|
|
18
|
+
__exportStar(require("./venue-location"), exports);
|
|
18
19
|
__exportStar(require("./province"), exports);
|
|
19
20
|
__exportStar(require("./auth"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface IVenuePosition {
|
|
2
|
+
readonly type: string;
|
|
3
|
+
readonly coordinates: [number, number];
|
|
4
|
+
}
|
|
5
|
+
export interface IVenueSubdistrict {
|
|
6
|
+
readonly id: number;
|
|
7
|
+
readonly nameEn: string;
|
|
8
|
+
readonly nameTh: string;
|
|
9
|
+
readonly slug: string;
|
|
10
|
+
readonly provinceId: number;
|
|
11
|
+
readonly createdAt: Date;
|
|
12
|
+
readonly updatedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
export interface IVenueArea {
|
|
15
|
+
readonly id: number;
|
|
16
|
+
readonly subdistrictId: number;
|
|
17
|
+
readonly nameEn: string;
|
|
18
|
+
readonly nameTh: string;
|
|
19
|
+
readonly slug: string;
|
|
20
|
+
readonly createdAt: Date;
|
|
21
|
+
readonly updatedAt: Date;
|
|
22
|
+
}
|
|
23
|
+
export interface IVenueLocation {
|
|
24
|
+
readonly id: number;
|
|
25
|
+
readonly venueId: number;
|
|
26
|
+
readonly addressEn: string;
|
|
27
|
+
readonly addressTh?: string;
|
|
28
|
+
readonly latitude: number;
|
|
29
|
+
readonly longitude: number;
|
|
30
|
+
readonly location: IVenuePosition;
|
|
31
|
+
readonly googleMapsUrl: string;
|
|
32
|
+
readonly subdistrictId: number;
|
|
33
|
+
readonly areaId?: number;
|
|
34
|
+
readonly subdistrict?: IVenueSubdistrict;
|
|
35
|
+
readonly area?: IVenueArea;
|
|
36
|
+
readonly createdAt: Date;
|
|
37
|
+
readonly updatedAt: Date;
|
|
38
|
+
}
|
package/lib/venue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IVenueLocation } from './venue-location';
|
|
2
2
|
export declare enum PriceLevel {
|
|
3
3
|
None = 0,
|
|
4
4
|
Low = 1,
|
|
@@ -78,22 +78,13 @@ export declare enum DaysOfWeek {
|
|
|
78
78
|
Friday = 5,
|
|
79
79
|
Saturday = 6
|
|
80
80
|
}
|
|
81
|
-
export interface IVenueLocation {
|
|
82
|
-
readonly type: string;
|
|
83
|
-
readonly coordinates: [number, number];
|
|
84
|
-
}
|
|
85
81
|
export interface IVenue {
|
|
86
82
|
readonly id: number;
|
|
87
83
|
readonly name_en: string;
|
|
88
84
|
readonly name_th?: string;
|
|
89
85
|
readonly thumbnail: string;
|
|
90
|
-
readonly
|
|
91
|
-
readonly address_th?: string;
|
|
92
|
-
readonly location: IVenueLocation;
|
|
93
|
-
readonly latitude: number;
|
|
94
|
-
readonly longitude: number;
|
|
86
|
+
readonly venueLocation?: IVenueLocation;
|
|
95
87
|
readonly distance?: number;
|
|
96
|
-
readonly googleMapsUrl: string;
|
|
97
88
|
readonly venueType: VenueType;
|
|
98
89
|
readonly priceLevel: PriceLevel;
|
|
99
90
|
readonly offerings: Offerings[];
|
|
@@ -112,7 +103,6 @@ export interface IVenue {
|
|
|
112
103
|
readonly website?: string;
|
|
113
104
|
readonly venueHours?: IVenueHour[];
|
|
114
105
|
readonly venueImages?: IVenueImage[];
|
|
115
|
-
readonly province?: IProvince;
|
|
116
106
|
readonly createdAt: Date;
|
|
117
107
|
readonly updatedAt: Date;
|
|
118
108
|
}
|