@bash-app/bash-common 27.3.1 → 27.3.3
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/package.json +1 -1
- package/src/definitions.ts +5 -0
- package/src/extendedSchemas.ts +13 -29
package/package.json
CHANGED
package/src/definitions.ts
CHANGED
|
@@ -103,6 +103,11 @@ export const ServiceTypes = {
|
|
|
103
103
|
'EntertainmentServices': 'entertainmentServices',
|
|
104
104
|
} satisfies {[key: string]: keyof ServiceExt}
|
|
105
105
|
|
|
106
|
+
// export const ServiceStatus = {
|
|
107
|
+
// 'Draft': 'draft',
|
|
108
|
+
// 'Created': 'created',
|
|
109
|
+
// } satisfies {[key: string]: keyof Service}
|
|
110
|
+
|
|
106
111
|
export type FilterFields = {
|
|
107
112
|
price: string[];
|
|
108
113
|
ageRequirement: string[];
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -157,6 +157,7 @@ export interface EventServiceExt extends EventService {
|
|
|
157
157
|
links: ServiceLinkExt[];
|
|
158
158
|
crowdSize?: AmountOfGuests;
|
|
159
159
|
media?: Media[];
|
|
160
|
+
serviceType: ServiceTypes;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
export interface EntertainmentServiceExt extends EntertainmentService {
|
|
@@ -166,6 +167,8 @@ export interface EntertainmentServiceExt extends EntertainmentService {
|
|
|
166
167
|
links: ServiceLinkExt[];
|
|
167
168
|
crowdSize?: AmountOfGuests;
|
|
168
169
|
media?: Media[];
|
|
170
|
+
status: ServiceStatus;
|
|
171
|
+
serviceType: ServiceTypes;
|
|
169
172
|
}
|
|
170
173
|
|
|
171
174
|
export interface ExhibitorExt extends Exhibitor {
|
|
@@ -175,6 +178,8 @@ export interface ExhibitorExt extends Exhibitor {
|
|
|
175
178
|
links: ServiceLinkExt[];
|
|
176
179
|
crowdSize?: AmountOfGuests;
|
|
177
180
|
media?: Media[];
|
|
181
|
+
status: ServiceStatus;
|
|
182
|
+
serviceType: ServiceTypes;
|
|
178
183
|
}
|
|
179
184
|
|
|
180
185
|
export interface SponsorExt extends Sponsor {
|
|
@@ -184,6 +189,8 @@ export interface SponsorExt extends Sponsor {
|
|
|
184
189
|
links: ServiceLinkExt[];
|
|
185
190
|
crowdSize?: AmountOfGuests;
|
|
186
191
|
media?: Media[];
|
|
192
|
+
status: ServiceStatus;
|
|
193
|
+
serviceType: ServiceTypes;
|
|
187
194
|
}
|
|
188
195
|
|
|
189
196
|
export interface VendorExt extends Vendor {
|
|
@@ -193,21 +200,12 @@ export interface VendorExt extends Vendor {
|
|
|
193
200
|
links: ServiceLinkExt[];
|
|
194
201
|
crowdSize?: AmountOfGuests;
|
|
195
202
|
media?: Media[];
|
|
203
|
+
status: ServiceStatus;
|
|
204
|
+
serviceType: ServiceTypes;
|
|
196
205
|
}
|
|
197
206
|
|
|
198
|
-
export const VENDOR_DATA_TO_INCLUDE = {
|
|
199
|
-
availableDateTimes: true,
|
|
200
|
-
targetAudience: true,
|
|
201
|
-
links: true,
|
|
202
|
-
crowdSize: true,
|
|
203
|
-
media: true,
|
|
204
|
-
} satisfies Prisma.VendorInclude;
|
|
205
|
-
|
|
206
|
-
export const SERVICE_LINK_DATA_TO_INCLUDE = {
|
|
207
|
-
link: true,
|
|
208
|
-
} satisfies Prisma.ServiceLinkInclude;
|
|
209
|
-
|
|
210
207
|
export interface VenueExt extends Venue {
|
|
208
|
+
owner: User;
|
|
211
209
|
service?: Service;
|
|
212
210
|
availableDateTimes?: Availability[];
|
|
213
211
|
targetAudience?: TargetAudience | null;
|
|
@@ -215,23 +213,10 @@ export interface VenueExt extends Venue {
|
|
|
215
213
|
coverPhotoUrl?: string;
|
|
216
214
|
media?: Media[];
|
|
217
215
|
amountOfGuests?: AmountOfGuests | null;
|
|
218
|
-
|
|
216
|
+
status: ServiceStatus;
|
|
217
|
+
serviceType: ServiceTypes;
|
|
219
218
|
}
|
|
220
219
|
|
|
221
|
-
|
|
222
|
-
export const VOLUNTEER_DATA_TO_INCLUDE = {
|
|
223
|
-
links: {
|
|
224
|
-
include: {
|
|
225
|
-
serviceLinks: true,
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
media: true,
|
|
229
|
-
serviceRange: true,
|
|
230
|
-
} satisfies Prisma.VolunteerServiceInclude;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
220
|
export interface OrganizationExt extends Organization {
|
|
236
221
|
service?: Service;
|
|
237
222
|
availableDateTimes: Availability[];
|
|
@@ -240,6 +225,7 @@ export interface OrganizationExt extends Organization {
|
|
|
240
225
|
crowdSize?: AmountOfGuests;
|
|
241
226
|
media?: Media[];
|
|
242
227
|
status: ServiceStatus;
|
|
228
|
+
serviceType: ServiceTypes;
|
|
243
229
|
}
|
|
244
230
|
|
|
245
231
|
export interface VolunteerServiceExt extends VolunteerService {
|
|
@@ -256,8 +242,6 @@ export interface VolunteerServiceExt extends VolunteerService {
|
|
|
256
242
|
status: VolunteerServiceStatus | null;
|
|
257
243
|
}
|
|
258
244
|
|
|
259
|
-
|
|
260
|
-
|
|
261
245
|
export interface ServiceExt extends Service {
|
|
262
246
|
owner?: PublicUser;
|
|
263
247
|
media?: Media[];
|