@soigo-dev/types-soigo-app 3.0.5 → 3.0.6

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.
@@ -0,0 +1,6 @@
1
+ export interface IProvince {
2
+ readonly id: number;
3
+ readonly slug: string;
4
+ readonly name_en: string;
5
+ readonly name_th: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/venue.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { IProvince } from './provinces';
1
2
  export declare enum PriceLevel {
2
3
  None = 0,
3
4
  Low = 1,
@@ -74,7 +75,8 @@ export interface IVenue {
74
75
  readonly name_en: string;
75
76
  readonly name_th?: string;
76
77
  readonly thumbnail: string;
77
- readonly address: string;
78
+ readonly address_en: string;
79
+ readonly address_th?: string;
78
80
  readonly location: IVenueLocation;
79
81
  readonly latitude: number;
80
82
  readonly longitude: number;
@@ -95,6 +97,7 @@ export interface IVenue {
95
97
  readonly website?: string;
96
98
  readonly venueHours?: IVenueHour[];
97
99
  readonly venueImages?: IVenueImage[];
100
+ readonly province?: IProvince;
98
101
  readonly createdAt: Date;
99
102
  readonly updatedAt: Date;
100
103
  }
@@ -106,6 +109,7 @@ export interface IVenueHour {
106
109
  export interface IVenueImage {
107
110
  readonly id: number;
108
111
  readonly imageUrl: string;
112
+ readonly type: VenueImageTypes;
109
113
  }
110
114
  type VenueFlags = {
111
115
  readonly offerings: Record<keyof typeof Offerings, boolean>;
@@ -125,6 +129,12 @@ export interface IUserLocationQuery {
125
129
  readonly lat?: number;
126
130
  readonly lng?: number;
127
131
  }
132
+ export interface IGetVenuesQuery {
133
+ readonly provinceId?: number;
134
+ readonly verified?: boolean;
135
+ readonly page: number;
136
+ readonly limit: number;
137
+ }
128
138
  export interface IGetNearbyVenuesQuery extends IUserLocationQuery {
129
139
  readonly lat: number;
130
140
  readonly lng: number;
@@ -132,4 +142,8 @@ export interface IGetNearbyVenuesQuery extends IUserLocationQuery {
132
142
  readonly page: number;
133
143
  readonly limit: number;
134
144
  }
145
+ export declare enum VenueImageTypes {
146
+ Place = "place",
147
+ Menu = "menu"
148
+ }
135
149
  export {};
package/lib/venue.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DaysOfWeek = exports.EntryTypes = exports.Crowds = exports.Accessibilities = exports.ParkingLots = exports.TypeSongs = exports.Atmospheres = exports.Amenities = exports.Offerings = exports.PriceLevel = void 0;
3
+ exports.VenueImageTypes = exports.DaysOfWeek = exports.EntryTypes = exports.Crowds = exports.Accessibilities = exports.ParkingLots = exports.TypeSongs = exports.Atmospheres = exports.Amenities = exports.Offerings = exports.PriceLevel = void 0;
4
4
  var PriceLevel;
5
5
  (function (PriceLevel) {
6
6
  PriceLevel[PriceLevel["None"] = 0] = "None";
@@ -78,3 +78,8 @@ var DaysOfWeek;
78
78
  DaysOfWeek[DaysOfWeek["Friday"] = 5] = "Friday";
79
79
  DaysOfWeek[DaysOfWeek["Saturday"] = 6] = "Saturday";
80
80
  })(DaysOfWeek || (exports.DaysOfWeek = DaysOfWeek = {}));
81
+ var VenueImageTypes;
82
+ (function (VenueImageTypes) {
83
+ VenueImageTypes["Place"] = "place";
84
+ VenueImageTypes["Menu"] = "menu";
85
+ })(VenueImageTypes || (exports.VenueImageTypes = VenueImageTypes = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soigo-dev/types-soigo-app",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",