@bash-app/bash-common 4.2.0 → 4.4.0
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/prisma/schema.prisma +23 -1
- package/src/definitions.ts +26 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -801,7 +801,10 @@ model Service {
|
|
|
801
801
|
coverPhoto String?
|
|
802
802
|
media Media[]
|
|
803
803
|
serviceTypes ServiceType[]
|
|
804
|
-
|
|
804
|
+
subServiceTypes SubServiceType[]
|
|
805
|
+
serviceTag ServiceTag[]
|
|
806
|
+
customServiceTag String[]
|
|
807
|
+
yearsOfExperince YearsOfExperience @default(LessThanOneYear)
|
|
805
808
|
serviceLinks ServiceLink[]
|
|
806
809
|
description String?
|
|
807
810
|
canContact Boolean?
|
|
@@ -816,6 +819,25 @@ model Service {
|
|
|
816
819
|
serviceTargetAudience ServiceTargetAudience[]
|
|
817
820
|
}
|
|
818
821
|
|
|
822
|
+
enum ServiceTag {
|
|
823
|
+
Italian
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
enum SubServiceType {
|
|
827
|
+
Catering
|
|
828
|
+
DJing
|
|
829
|
+
LiveBand
|
|
830
|
+
Photography
|
|
831
|
+
Videography
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
enum YearsOfExperience {
|
|
835
|
+
LessThanOneYear
|
|
836
|
+
OneToThreeYears
|
|
837
|
+
ThreeToFiveYears
|
|
838
|
+
FivePlusYears
|
|
839
|
+
}
|
|
840
|
+
|
|
819
841
|
model ServiceRange {
|
|
820
842
|
id String @id @default(cuid())
|
|
821
843
|
min Int @default(0)
|
package/src/definitions.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {BashEventDressTags, BashEventType, BashEventVibeTags, DayOfWeek, TicketTier, User} from "@prisma/client";
|
|
1
|
+
import {BashEventDressTags, BashEventType, BashEventVibeTags, DayOfWeek, ServiceTag, SubServiceType, TicketTier, User, YearsOfExperience} from "@prisma/client";
|
|
2
|
+
import { TicketExt } from "./extendedSchemas";
|
|
2
3
|
|
|
3
4
|
export const BASH_FEE_PERCENTAGE = 0.10;
|
|
4
5
|
export const GOOGLE_CALLBACK_URL = '/auth/google/callback' as const;
|
|
@@ -81,6 +82,11 @@ export type FilterFields = {
|
|
|
81
82
|
included: string[];
|
|
82
83
|
};
|
|
83
84
|
|
|
85
|
+
export interface FirstFewAttendingBashEvent {
|
|
86
|
+
tickets: TicketExt[];
|
|
87
|
+
totalTicketCount: number;
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
export interface SignInEmailWithCode {
|
|
85
91
|
email: string;
|
|
86
92
|
code: string;
|
|
@@ -248,6 +254,25 @@ export const DayOfWeekToString: { [key in DayOfWeek]: string } = {
|
|
|
248
254
|
}
|
|
249
255
|
|
|
250
256
|
|
|
257
|
+
export const YearsOfExperienceToString: { [key in YearsOfExperience]: string } = {
|
|
258
|
+
[YearsOfExperience.LessThanOneYear]: 'Less than one year',
|
|
259
|
+
[YearsOfExperience.OneToThreeYears]: 'One to three years',
|
|
260
|
+
[YearsOfExperience.ThreeToFiveYears]: 'Three to five years',
|
|
261
|
+
[YearsOfExperience.FivePlusYears]: 'More than five years',
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export const SubServiceTypeToString: { [key in SubServiceType]: string } = {
|
|
265
|
+
[SubServiceType.Catering]: 'Catering',
|
|
266
|
+
[SubServiceType.DJing]: 'DJ',
|
|
267
|
+
[SubServiceType.LiveBand]: 'Live Band',
|
|
268
|
+
[SubServiceType.Photography]: 'Photography',
|
|
269
|
+
[SubServiceType.Videography]: 'Videography',
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export const ServiceTagToString: { [key in ServiceTag]: string } = {
|
|
273
|
+
[ServiceTag.Italian]: 'Italian',
|
|
274
|
+
};
|
|
275
|
+
|
|
251
276
|
export type BashEventTypeToStringType = {
|
|
252
277
|
[key in BashEventType]: string;
|
|
253
278
|
};
|