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

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 +1 @@
1
- export * from './enums';
1
+ export * from './venue';
package/lib/index.js CHANGED
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./enums"), exports);
17
+ __exportStar(require("./venue"), exports);
package/lib/venue.d.ts ADDED
@@ -0,0 +1,104 @@
1
+ export declare enum PriceLevel {
2
+ None = 0,
3
+ Low = 1,
4
+ Medium = 2,
5
+ High = 3,
6
+ Luxurious = 4
7
+ }
8
+ export declare enum Offerings {
9
+ Undefined = 0,
10
+ Beer = 1,
11
+ Spirits = 2,
12
+ Wine = 4,
13
+ Food = 5,
14
+ Dancing = 6
15
+ }
16
+ export declare enum Amenities {
17
+ Undefined = 0,
18
+ Toilet = 1,
19
+ Wifi = 2,
20
+ FreeWifi = 4
21
+ }
22
+ export declare enum Atmospheres {
23
+ Undefined = 0,
24
+ Casual = 1,
25
+ Cozy = 2
26
+ }
27
+ export declare enum TypeSongs {
28
+ Undefined = 0,
29
+ Thai = 1,
30
+ Latino = 2,
31
+ HipHop = 3,
32
+ Jazz = 4,
33
+ Electronic = 5
34
+ }
35
+ export declare enum ParkingLots {
36
+ Undefined = 0,
37
+ Free = 1,
38
+ Paid = 2,
39
+ Difficult = 3,
40
+ Street = 4,
41
+ BigBike = 5
42
+ }
43
+ export declare enum Accessibilities {
44
+ Undefined = 0,
45
+ WheelchairEntrance = 1
46
+ }
47
+ export declare enum Crowds {
48
+ Undefined = 0,
49
+ Alone = 1,
50
+ Groups = 2,
51
+ Foreign = 3
52
+ }
53
+ export declare enum EntryTypes {
54
+ Undefined = 0,
55
+ Free = 1,
56
+ Paid = 2
57
+ }
58
+ export declare enum DaysOfWeek {
59
+ Sunday = 0,
60
+ Monday = 1,
61
+ Tuesday = 2,
62
+ Wednesday = 3,
63
+ Thursday = 4,
64
+ Friday = 5,
65
+ Saturday = 6
66
+ }
67
+ export interface Venue {
68
+ readonly id: number;
69
+ readonly name: string;
70
+ readonly thumbnail: string;
71
+ readonly address: string;
72
+ readonly latitude: number;
73
+ readonly longitude: number;
74
+ readonly priceLevel: PriceLevel;
75
+ readonly offerings: Offerings[];
76
+ readonly amenities: Amenities[];
77
+ readonly atmospheres: Atmospheres[];
78
+ readonly typeSongs: TypeSongs[];
79
+ readonly parkingLots: ParkingLots[];
80
+ readonly accessibilities: Accessibilities[];
81
+ readonly crowds: Crowds[];
82
+ readonly entryTypes: EntryTypes[];
83
+ readonly phone?: string;
84
+ readonly instagram?: string;
85
+ readonly line?: string;
86
+ readonly facebook?: string;
87
+ readonly website?: string;
88
+ readonly createdAt: Date;
89
+ readonly updatedAt: Date;
90
+ }
91
+ type VenueFlags = {
92
+ readonly offerings: Record<keyof typeof Offerings, boolean>;
93
+ readonly amenities: Record<keyof typeof Amenities, boolean>;
94
+ readonly atmospheres: Record<keyof typeof Atmospheres, boolean>;
95
+ readonly typeSongs: Record<keyof typeof TypeSongs, boolean>;
96
+ readonly parkingLots: Record<keyof typeof ParkingLots, boolean>;
97
+ readonly accessibilities: Record<keyof typeof Accessibilities, boolean>;
98
+ readonly crowds: Record<keyof typeof Crowds, boolean>;
99
+ readonly entryTypes: Record<keyof typeof EntryTypes, boolean>;
100
+ };
101
+ export type VenueApiResponseDto = Venue & {
102
+ readonly flags: VenueFlags;
103
+ };
104
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soigo-dev/types-soigo-app",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/lib/enums.d.ts DELETED
@@ -1,66 +0,0 @@
1
- export declare enum PriceLevel {
2
- None = 0,
3
- Low = 1,
4
- Medium = 2,
5
- High = 3,
6
- Luxurious = 4
7
- }
8
- export declare enum Offerings {
9
- Undefined = 0,
10
- Beer = 1,
11
- Spirits = 2,
12
- Wine = 4,
13
- Food = 5,
14
- Dancing = 6
15
- }
16
- export declare enum Amenities {
17
- Undefined = 0,
18
- Toilet = 1,
19
- Wifi = 2,
20
- FreeWifi = 4
21
- }
22
- export declare enum Atmospheres {
23
- Undefined = 0,
24
- Casual = 1,
25
- Cozy = 2
26
- }
27
- export declare enum TypeSongs {
28
- Undefined = 0,
29
- Thai = 1,
30
- Latino = 2,
31
- HipHop = 3,
32
- Jazz = 4,
33
- Electronic = 5
34
- }
35
- export declare enum ParkingLots {
36
- Undefined = 0,
37
- Free = 1,
38
- Paid = 2,
39
- Difficult = 3,
40
- Street = 4,
41
- BigBike = 5
42
- }
43
- export declare enum Accessibilities {
44
- Undefined = 0,
45
- WheelchairEntrance = 1
46
- }
47
- export declare enum Crowds {
48
- Undefined = 0,
49
- Alone = 1,
50
- Groups = 2,
51
- Foreign = 3
52
- }
53
- export declare enum EntryTypes {
54
- Undefined = 0,
55
- Free = 1,
56
- Paid = 2
57
- }
58
- export declare enum DaysOfWeek {
59
- Sunday = 0,
60
- Monday = 1,
61
- Tuesday = 2,
62
- Wednesday = 3,
63
- Thursday = 4,
64
- Friday = 5,
65
- Saturday = 6
66
- }
File without changes