@growsober/types 1.0.13 → 1.0.14
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/dist/generated.d.ts +285 -35
- package/dist/generated.js +1 -1
- package/package.json +1 -1
- package/src/generated.ts +285 -35
package/dist/generated.d.ts
CHANGED
|
@@ -2128,6 +2128,23 @@ export interface paths {
|
|
|
2128
2128
|
patch?: never;
|
|
2129
2129
|
trace?: never;
|
|
2130
2130
|
};
|
|
2131
|
+
"/venues/me": {
|
|
2132
|
+
parameters: {
|
|
2133
|
+
query?: never;
|
|
2134
|
+
header?: never;
|
|
2135
|
+
path?: never;
|
|
2136
|
+
cookie?: never;
|
|
2137
|
+
};
|
|
2138
|
+
/** Get venues owned/managed by current user */
|
|
2139
|
+
get: operations["VenuesController_getMyVenues"];
|
|
2140
|
+
put?: never;
|
|
2141
|
+
post?: never;
|
|
2142
|
+
delete?: never;
|
|
2143
|
+
options?: never;
|
|
2144
|
+
head?: never;
|
|
2145
|
+
patch?: never;
|
|
2146
|
+
trace?: never;
|
|
2147
|
+
};
|
|
2131
2148
|
"/venues": {
|
|
2132
2149
|
parameters: {
|
|
2133
2150
|
query?: never;
|
|
@@ -2138,39 +2155,42 @@ export interface paths {
|
|
|
2138
2155
|
/** Get all venues with pagination and filters */
|
|
2139
2156
|
get: operations["VenuesController_findAll"];
|
|
2140
2157
|
put?: never;
|
|
2141
|
-
|
|
2158
|
+
/** Create a new venue */
|
|
2159
|
+
post: operations["VenuesController_create"];
|
|
2142
2160
|
delete?: never;
|
|
2143
2161
|
options?: never;
|
|
2144
2162
|
head?: never;
|
|
2145
2163
|
patch?: never;
|
|
2146
2164
|
trace?: never;
|
|
2147
2165
|
};
|
|
2148
|
-
"/venues/
|
|
2166
|
+
"/venues/{id}": {
|
|
2149
2167
|
parameters: {
|
|
2150
2168
|
query?: never;
|
|
2151
2169
|
header?: never;
|
|
2152
2170
|
path?: never;
|
|
2153
2171
|
cookie?: never;
|
|
2154
2172
|
};
|
|
2155
|
-
/** Get
|
|
2156
|
-
get: operations["
|
|
2157
|
-
|
|
2173
|
+
/** Get venue details by ID */
|
|
2174
|
+
get: operations["VenuesController_findById"];
|
|
2175
|
+
/** Update a venue */
|
|
2176
|
+
put: operations["VenuesController_update"];
|
|
2158
2177
|
post?: never;
|
|
2159
|
-
|
|
2178
|
+
/** Delete a venue */
|
|
2179
|
+
delete: operations["VenuesController_delete"];
|
|
2160
2180
|
options?: never;
|
|
2161
2181
|
head?: never;
|
|
2162
2182
|
patch?: never;
|
|
2163
2183
|
trace?: never;
|
|
2164
2184
|
};
|
|
2165
|
-
"/venues/
|
|
2185
|
+
"/venues/featured": {
|
|
2166
2186
|
parameters: {
|
|
2167
2187
|
query?: never;
|
|
2168
2188
|
header?: never;
|
|
2169
2189
|
path?: never;
|
|
2170
2190
|
cookie?: never;
|
|
2171
2191
|
};
|
|
2172
|
-
/** Get venues
|
|
2173
|
-
get: operations["
|
|
2192
|
+
/** Get featured venues */
|
|
2193
|
+
get: operations["VenuesController_getFeatured"];
|
|
2174
2194
|
put?: never;
|
|
2175
2195
|
post?: never;
|
|
2176
2196
|
delete?: never;
|
|
@@ -2179,15 +2199,15 @@ export interface paths {
|
|
|
2179
2199
|
patch?: never;
|
|
2180
2200
|
trace?: never;
|
|
2181
2201
|
};
|
|
2182
|
-
"/venues/
|
|
2202
|
+
"/venues/nearby": {
|
|
2183
2203
|
parameters: {
|
|
2184
2204
|
query?: never;
|
|
2185
2205
|
header?: never;
|
|
2186
2206
|
path?: never;
|
|
2187
2207
|
cookie?: never;
|
|
2188
2208
|
};
|
|
2189
|
-
/** Get
|
|
2190
|
-
get: operations["
|
|
2209
|
+
/** Get venues near a location */
|
|
2210
|
+
get: operations["VenuesController_getNearby"];
|
|
2191
2211
|
put?: never;
|
|
2192
2212
|
post?: never;
|
|
2193
2213
|
delete?: never;
|
|
@@ -7103,6 +7123,120 @@ export interface components {
|
|
|
7103
7123
|
*/
|
|
7104
7124
|
updatedAt: string;
|
|
7105
7125
|
};
|
|
7126
|
+
CreateVenueDto: {
|
|
7127
|
+
/** @example The Sober Spot */
|
|
7128
|
+
name: string;
|
|
7129
|
+
/** @example the-sober-spot */
|
|
7130
|
+
slug: string;
|
|
7131
|
+
/** @example A cozy coffee shop with amazing mocktails */
|
|
7132
|
+
description?: string;
|
|
7133
|
+
/**
|
|
7134
|
+
* @example COFFEE_SHOP
|
|
7135
|
+
* @enum {string}
|
|
7136
|
+
*/
|
|
7137
|
+
type: "COFFEE_SHOP" | "RESTAURANT" | "BAR" | "WELLNESS" | "VENUE" | "ACTIVITY" | "RETAIL" | "OTHER";
|
|
7138
|
+
/** @example true */
|
|
7139
|
+
hasAfDrinks?: boolean;
|
|
7140
|
+
/** @example false */
|
|
7141
|
+
isAfVenue?: boolean;
|
|
7142
|
+
/**
|
|
7143
|
+
* @example [
|
|
7144
|
+
* "Great mocktail menu",
|
|
7145
|
+
* "Quiet atmosphere"
|
|
7146
|
+
* ]
|
|
7147
|
+
*/
|
|
7148
|
+
afHighlights?: string[];
|
|
7149
|
+
/** @example 123 Main Street, Lisbon */
|
|
7150
|
+
address?: string;
|
|
7151
|
+
/** @example city-uuid */
|
|
7152
|
+
cityId?: string;
|
|
7153
|
+
/** @example 38.7223 */
|
|
7154
|
+
locationLat?: number;
|
|
7155
|
+
/** @example -9.1393 */
|
|
7156
|
+
locationLong?: number;
|
|
7157
|
+
/** @example +351 21 123 4567 */
|
|
7158
|
+
phone?: string;
|
|
7159
|
+
/** @example hello@soberspot.com */
|
|
7160
|
+
email?: string;
|
|
7161
|
+
/** @example https://soberspot.com */
|
|
7162
|
+
website?: string;
|
|
7163
|
+
/** @example @soberspot */
|
|
7164
|
+
instagram?: string;
|
|
7165
|
+
/** @example https://example.com/logo.jpg */
|
|
7166
|
+
profileImage?: string;
|
|
7167
|
+
/** @example https://example.com/banner.jpg */
|
|
7168
|
+
bannerImage?: string;
|
|
7169
|
+
/**
|
|
7170
|
+
* @example [
|
|
7171
|
+
* "https://example.com/photo1.jpg"
|
|
7172
|
+
* ]
|
|
7173
|
+
*/
|
|
7174
|
+
photos?: string[];
|
|
7175
|
+
/**
|
|
7176
|
+
* @example {
|
|
7177
|
+
* "mon": "09:00-17:00",
|
|
7178
|
+
* "tue": "09:00-17:00"
|
|
7179
|
+
* }
|
|
7180
|
+
*/
|
|
7181
|
+
openingHours?: Record<string, never>;
|
|
7182
|
+
};
|
|
7183
|
+
UpdateVenueDto: {
|
|
7184
|
+
/** @example The Sober Spot */
|
|
7185
|
+
name?: string;
|
|
7186
|
+
/** @example the-sober-spot */
|
|
7187
|
+
slug?: string;
|
|
7188
|
+
/** @example A cozy coffee shop with amazing mocktails */
|
|
7189
|
+
description?: string;
|
|
7190
|
+
/**
|
|
7191
|
+
* @example COFFEE_SHOP
|
|
7192
|
+
* @enum {string}
|
|
7193
|
+
*/
|
|
7194
|
+
type?: "COFFEE_SHOP" | "RESTAURANT" | "BAR" | "WELLNESS" | "VENUE" | "ACTIVITY" | "RETAIL" | "OTHER";
|
|
7195
|
+
/** @example true */
|
|
7196
|
+
hasAfDrinks?: boolean;
|
|
7197
|
+
/** @example false */
|
|
7198
|
+
isAfVenue?: boolean;
|
|
7199
|
+
/**
|
|
7200
|
+
* @example [
|
|
7201
|
+
* "Great mocktail menu",
|
|
7202
|
+
* "Quiet atmosphere"
|
|
7203
|
+
* ]
|
|
7204
|
+
*/
|
|
7205
|
+
afHighlights?: string[];
|
|
7206
|
+
/** @example 123 Main Street, Lisbon */
|
|
7207
|
+
address?: string;
|
|
7208
|
+
/** @example city-uuid */
|
|
7209
|
+
cityId?: string;
|
|
7210
|
+
/** @example 38.7223 */
|
|
7211
|
+
locationLat?: number;
|
|
7212
|
+
/** @example -9.1393 */
|
|
7213
|
+
locationLong?: number;
|
|
7214
|
+
/** @example +351 21 123 4567 */
|
|
7215
|
+
phone?: string;
|
|
7216
|
+
/** @example hello@soberspot.com */
|
|
7217
|
+
email?: string;
|
|
7218
|
+
/** @example https://soberspot.com */
|
|
7219
|
+
website?: string;
|
|
7220
|
+
/** @example @soberspot */
|
|
7221
|
+
instagram?: string;
|
|
7222
|
+
/** @example https://example.com/logo.jpg */
|
|
7223
|
+
profileImage?: string;
|
|
7224
|
+
/** @example https://example.com/banner.jpg */
|
|
7225
|
+
bannerImage?: string;
|
|
7226
|
+
/**
|
|
7227
|
+
* @example [
|
|
7228
|
+
* "https://example.com/photo1.jpg"
|
|
7229
|
+
* ]
|
|
7230
|
+
*/
|
|
7231
|
+
photos?: string[];
|
|
7232
|
+
/**
|
|
7233
|
+
* @example {
|
|
7234
|
+
* "mon": "09:00-17:00",
|
|
7235
|
+
* "tue": "09:00-17:00"
|
|
7236
|
+
* }
|
|
7237
|
+
*/
|
|
7238
|
+
openingHours?: Record<string, never>;
|
|
7239
|
+
};
|
|
7106
7240
|
VenueOwnerUserDto: {
|
|
7107
7241
|
/** @example user-123 */
|
|
7108
7242
|
id: string;
|
|
@@ -9615,6 +9749,11 @@ export interface components {
|
|
|
9615
9749
|
deliveryMethod: "VIDEO_CALL" | "PHONE_CALL" | "IN_PERSON" | "HYBRID";
|
|
9616
9750
|
/** @example London, UK */
|
|
9617
9751
|
locationDetails?: string;
|
|
9752
|
+
/**
|
|
9753
|
+
* @description Venue that offers this product
|
|
9754
|
+
* @example venue-uuid
|
|
9755
|
+
*/
|
|
9756
|
+
venueId?: string;
|
|
9618
9757
|
};
|
|
9619
9758
|
UpdateProductDto: {
|
|
9620
9759
|
/** @example 1:1 Coaching Session */
|
|
@@ -9664,6 +9803,11 @@ export interface components {
|
|
|
9664
9803
|
deliveryMethod?: "VIDEO_CALL" | "PHONE_CALL" | "IN_PERSON" | "HYBRID";
|
|
9665
9804
|
/** @example London, UK */
|
|
9666
9805
|
locationDetails?: string;
|
|
9806
|
+
/**
|
|
9807
|
+
* @description Venue that offers this product
|
|
9808
|
+
* @example venue-uuid
|
|
9809
|
+
*/
|
|
9810
|
+
venueId?: string;
|
|
9667
9811
|
/** @example true */
|
|
9668
9812
|
isActive?: boolean;
|
|
9669
9813
|
/** @example false */
|
|
@@ -13780,6 +13924,26 @@ export interface operations {
|
|
|
13780
13924
|
};
|
|
13781
13925
|
};
|
|
13782
13926
|
};
|
|
13927
|
+
VenuesController_getMyVenues: {
|
|
13928
|
+
parameters: {
|
|
13929
|
+
query?: never;
|
|
13930
|
+
header?: never;
|
|
13931
|
+
path?: never;
|
|
13932
|
+
cookie?: never;
|
|
13933
|
+
};
|
|
13934
|
+
requestBody?: never;
|
|
13935
|
+
responses: {
|
|
13936
|
+
/** @description List of user venues */
|
|
13937
|
+
200: {
|
|
13938
|
+
headers: {
|
|
13939
|
+
[name: string]: unknown;
|
|
13940
|
+
};
|
|
13941
|
+
content: {
|
|
13942
|
+
"application/json": components["schemas"]["VenueResponseDto"][];
|
|
13943
|
+
};
|
|
13944
|
+
};
|
|
13945
|
+
};
|
|
13946
|
+
};
|
|
13783
13947
|
VenuesController_findAll: {
|
|
13784
13948
|
parameters: {
|
|
13785
13949
|
query?: {
|
|
@@ -13812,54 +13976,61 @@ export interface operations {
|
|
|
13812
13976
|
};
|
|
13813
13977
|
};
|
|
13814
13978
|
};
|
|
13815
|
-
|
|
13979
|
+
VenuesController_create: {
|
|
13816
13980
|
parameters: {
|
|
13817
|
-
query?:
|
|
13818
|
-
limit?: number;
|
|
13819
|
-
};
|
|
13981
|
+
query?: never;
|
|
13820
13982
|
header?: never;
|
|
13821
13983
|
path?: never;
|
|
13822
13984
|
cookie?: never;
|
|
13823
13985
|
};
|
|
13824
|
-
requestBody
|
|
13986
|
+
requestBody: {
|
|
13987
|
+
content: {
|
|
13988
|
+
"application/json": components["schemas"]["CreateVenueDto"];
|
|
13989
|
+
};
|
|
13990
|
+
};
|
|
13825
13991
|
responses: {
|
|
13826
|
-
/** @description
|
|
13827
|
-
|
|
13992
|
+
/** @description Venue created */
|
|
13993
|
+
201: {
|
|
13828
13994
|
headers: {
|
|
13829
13995
|
[name: string]: unknown;
|
|
13830
13996
|
};
|
|
13831
13997
|
content: {
|
|
13832
|
-
"application/json": components["schemas"]["VenueResponseDto"]
|
|
13998
|
+
"application/json": components["schemas"]["VenueResponseDto"];
|
|
13833
13999
|
};
|
|
13834
14000
|
};
|
|
13835
14001
|
};
|
|
13836
14002
|
};
|
|
13837
|
-
|
|
14003
|
+
VenuesController_findById: {
|
|
13838
14004
|
parameters: {
|
|
13839
|
-
query
|
|
13840
|
-
lat: number;
|
|
13841
|
-
long: number;
|
|
13842
|
-
radius?: number;
|
|
13843
|
-
limit?: number;
|
|
13844
|
-
};
|
|
14005
|
+
query?: never;
|
|
13845
14006
|
header?: never;
|
|
13846
|
-
path
|
|
14007
|
+
path: {
|
|
14008
|
+
/** @description Venue ID */
|
|
14009
|
+
id: string;
|
|
14010
|
+
};
|
|
13847
14011
|
cookie?: never;
|
|
13848
14012
|
};
|
|
13849
14013
|
requestBody?: never;
|
|
13850
14014
|
responses: {
|
|
13851
|
-
/** @description
|
|
14015
|
+
/** @description Venue details */
|
|
13852
14016
|
200: {
|
|
13853
14017
|
headers: {
|
|
13854
14018
|
[name: string]: unknown;
|
|
13855
14019
|
};
|
|
13856
14020
|
content: {
|
|
13857
|
-
"application/json": components["schemas"]["VenueResponseDto"]
|
|
14021
|
+
"application/json": components["schemas"]["VenueResponseDto"];
|
|
13858
14022
|
};
|
|
13859
14023
|
};
|
|
14024
|
+
/** @description Venue not found */
|
|
14025
|
+
404: {
|
|
14026
|
+
headers: {
|
|
14027
|
+
[name: string]: unknown;
|
|
14028
|
+
};
|
|
14029
|
+
content?: never;
|
|
14030
|
+
};
|
|
13860
14031
|
};
|
|
13861
14032
|
};
|
|
13862
|
-
|
|
14033
|
+
VenuesController_update: {
|
|
13863
14034
|
parameters: {
|
|
13864
14035
|
query?: never;
|
|
13865
14036
|
header?: never;
|
|
@@ -13869,9 +14040,13 @@ export interface operations {
|
|
|
13869
14040
|
};
|
|
13870
14041
|
cookie?: never;
|
|
13871
14042
|
};
|
|
13872
|
-
requestBody
|
|
14043
|
+
requestBody: {
|
|
14044
|
+
content: {
|
|
14045
|
+
"application/json": components["schemas"]["UpdateVenueDto"];
|
|
14046
|
+
};
|
|
14047
|
+
};
|
|
13873
14048
|
responses: {
|
|
13874
|
-
/** @description Venue
|
|
14049
|
+
/** @description Venue updated */
|
|
13875
14050
|
200: {
|
|
13876
14051
|
headers: {
|
|
13877
14052
|
[name: string]: unknown;
|
|
@@ -13880,8 +14055,8 @@ export interface operations {
|
|
|
13880
14055
|
"application/json": components["schemas"]["VenueResponseDto"];
|
|
13881
14056
|
};
|
|
13882
14057
|
};
|
|
13883
|
-
/** @description
|
|
13884
|
-
|
|
14058
|
+
/** @description Not a venue owner/manager */
|
|
14059
|
+
403: {
|
|
13885
14060
|
headers: {
|
|
13886
14061
|
[name: string]: unknown;
|
|
13887
14062
|
};
|
|
@@ -13889,6 +14064,81 @@ export interface operations {
|
|
|
13889
14064
|
};
|
|
13890
14065
|
};
|
|
13891
14066
|
};
|
|
14067
|
+
VenuesController_delete: {
|
|
14068
|
+
parameters: {
|
|
14069
|
+
query?: never;
|
|
14070
|
+
header?: never;
|
|
14071
|
+
path: {
|
|
14072
|
+
/** @description Venue ID */
|
|
14073
|
+
id: string;
|
|
14074
|
+
};
|
|
14075
|
+
cookie?: never;
|
|
14076
|
+
};
|
|
14077
|
+
requestBody?: never;
|
|
14078
|
+
responses: {
|
|
14079
|
+
/** @description Venue deleted */
|
|
14080
|
+
200: {
|
|
14081
|
+
headers: {
|
|
14082
|
+
[name: string]: unknown;
|
|
14083
|
+
};
|
|
14084
|
+
content?: never;
|
|
14085
|
+
};
|
|
14086
|
+
/** @description Only OWNER role can delete */
|
|
14087
|
+
403: {
|
|
14088
|
+
headers: {
|
|
14089
|
+
[name: string]: unknown;
|
|
14090
|
+
};
|
|
14091
|
+
content?: never;
|
|
14092
|
+
};
|
|
14093
|
+
};
|
|
14094
|
+
};
|
|
14095
|
+
VenuesController_getFeatured: {
|
|
14096
|
+
parameters: {
|
|
14097
|
+
query?: {
|
|
14098
|
+
limit?: number;
|
|
14099
|
+
};
|
|
14100
|
+
header?: never;
|
|
14101
|
+
path?: never;
|
|
14102
|
+
cookie?: never;
|
|
14103
|
+
};
|
|
14104
|
+
requestBody?: never;
|
|
14105
|
+
responses: {
|
|
14106
|
+
/** @description List of featured venues */
|
|
14107
|
+
200: {
|
|
14108
|
+
headers: {
|
|
14109
|
+
[name: string]: unknown;
|
|
14110
|
+
};
|
|
14111
|
+
content: {
|
|
14112
|
+
"application/json": components["schemas"]["VenueResponseDto"][];
|
|
14113
|
+
};
|
|
14114
|
+
};
|
|
14115
|
+
};
|
|
14116
|
+
};
|
|
14117
|
+
VenuesController_getNearby: {
|
|
14118
|
+
parameters: {
|
|
14119
|
+
query: {
|
|
14120
|
+
lat: number;
|
|
14121
|
+
long: number;
|
|
14122
|
+
radius?: number;
|
|
14123
|
+
limit?: number;
|
|
14124
|
+
};
|
|
14125
|
+
header?: never;
|
|
14126
|
+
path?: never;
|
|
14127
|
+
cookie?: never;
|
|
14128
|
+
};
|
|
14129
|
+
requestBody?: never;
|
|
14130
|
+
responses: {
|
|
14131
|
+
/** @description List of nearby venues */
|
|
14132
|
+
200: {
|
|
14133
|
+
headers: {
|
|
14134
|
+
[name: string]: unknown;
|
|
14135
|
+
};
|
|
14136
|
+
content: {
|
|
14137
|
+
"application/json": components["schemas"]["VenueResponseDto"][];
|
|
14138
|
+
};
|
|
14139
|
+
};
|
|
14140
|
+
};
|
|
14141
|
+
};
|
|
13892
14142
|
VenuesController_getOwners: {
|
|
13893
14143
|
parameters: {
|
|
13894
14144
|
query?: never;
|