@soigo-dev/types-soigo-app 1.0.1 → 2.0.0

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.
Files changed (2) hide show
  1. package/lib/venue.d.ts +17 -4
  2. package/package.json +1 -1
package/lib/venue.d.ts CHANGED
@@ -64,11 +64,17 @@ export declare enum DaysOfWeek {
64
64
  Friday = 5,
65
65
  Saturday = 6
66
66
  }
67
- export interface Venue {
67
+ export interface IVenueLocation {
68
+ readonly type: string;
69
+ readonly coordinates: [number, number];
70
+ }
71
+ export interface IVenue {
68
72
  readonly id: number;
69
- readonly name: string;
73
+ readonly name_en: string;
74
+ readonly name_th?: string;
70
75
  readonly thumbnail: string;
71
76
  readonly address: string;
77
+ readonly location: IVenueLocation;
72
78
  readonly latitude: number;
73
79
  readonly longitude: number;
74
80
  readonly priceLevel: PriceLevel;
@@ -98,7 +104,14 @@ type VenueFlags = {
98
104
  readonly crowds: Record<keyof typeof Crowds, boolean>;
99
105
  readonly entryTypes: Record<keyof typeof EntryTypes, boolean>;
100
106
  };
101
- export type VenueApiResponseDto = Venue & {
107
+ export interface IGetVenueResponse extends IVenue {
102
108
  readonly flags: VenueFlags;
103
- };
109
+ }
110
+ export interface IGetNearbyVenues {
111
+ readonly lat: number;
112
+ readonly lng: number;
113
+ readonly radius: number;
114
+ readonly page: number;
115
+ readonly limit: number;
116
+ }
104
117
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soigo-dev/types-soigo-app",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",