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