@soigo-dev/types-soigo-app 3.0.13 → 3.0.15

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 CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './venue';
2
+ export * from './venue-location';
2
3
  export * from './province';
3
4
  export * from './auth';
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,40 @@
1
+ import type { IProvince } from './province';
2
+ export interface IVenuePosition {
3
+ readonly type: string;
4
+ readonly coordinates: [number, number];
5
+ }
6
+ export interface IVenueSubdistrict {
7
+ readonly id: number;
8
+ readonly nameEn: string;
9
+ readonly nameTh: string;
10
+ readonly slug: string;
11
+ readonly provinceId: number;
12
+ readonly province?: IProvince;
13
+ readonly createdAt: Date;
14
+ readonly updatedAt: Date;
15
+ }
16
+ export interface IVenueArea {
17
+ readonly id: number;
18
+ readonly subdistrictId: number;
19
+ readonly nameEn: string;
20
+ readonly nameTh: string;
21
+ readonly slug: string;
22
+ readonly createdAt: Date;
23
+ readonly updatedAt: Date;
24
+ }
25
+ export interface IVenueLocation {
26
+ readonly id: number;
27
+ readonly venueId: number;
28
+ readonly addressEn: string;
29
+ readonly addressTh?: string;
30
+ readonly latitude: number;
31
+ readonly longitude: number;
32
+ readonly location: IVenuePosition;
33
+ readonly googleMapsUrl: string;
34
+ readonly subdistrictId: number;
35
+ readonly areaId?: number;
36
+ readonly subdistrict?: IVenueSubdistrict;
37
+ readonly area?: IVenueArea;
38
+ readonly createdAt: Date;
39
+ readonly updatedAt: Date;
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/venue.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IProvince } from './province';
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 address_en: string;
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
  }
@@ -147,6 +137,8 @@ export interface IUserLocationQuery {
147
137
  }
148
138
  export interface IGetVenuesQuery {
149
139
  readonly provinceId?: number;
140
+ readonly lat?: number;
141
+ readonly lng?: number;
150
142
  readonly page: number;
151
143
  readonly limit: number;
152
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soigo-dev/types-soigo-app",
3
- "version": "3.0.13",
3
+ "version": "3.0.15",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",