@soigo-dev/types-soigo-app 1.0.2 → 3.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 +15 -3
  2. package/package.json +1 -1
package/lib/venue.d.ts CHANGED
@@ -64,12 +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
73
  readonly name_en: string;
70
74
  readonly name_th?: string;
71
75
  readonly thumbnail: string;
72
76
  readonly address: string;
77
+ readonly location: IVenueLocation;
73
78
  readonly latitude: number;
74
79
  readonly longitude: number;
75
80
  readonly priceLevel: PriceLevel;
@@ -99,7 +104,14 @@ type VenueFlags = {
99
104
  readonly crowds: Record<keyof typeof Crowds, boolean>;
100
105
  readonly entryTypes: Record<keyof typeof EntryTypes, boolean>;
101
106
  };
102
- export type VenueApiResponseDto = Venue & {
107
+ export interface IGetVenueResponse extends IVenue {
103
108
  readonly flags: VenueFlags;
104
- };
109
+ }
110
+ export interface IGetNearbyVenuesQuery {
111
+ readonly lat: number;
112
+ readonly lng: number;
113
+ readonly radius: number;
114
+ readonly page: number;
115
+ readonly limit: number;
116
+ }
105
117
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soigo-dev/types-soigo-app",
3
- "version": "1.0.2",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",