@bash-app/bash-common 25.2.1 → 25.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 +1 -20
- package/src/definitions.ts +18 -18
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -795,6 +795,7 @@ model User {
|
|
|
795
795
|
createdOn DateTime @default(now())
|
|
796
796
|
stripeCustomerId String? @unique
|
|
797
797
|
stripeAccountId String? @unique
|
|
798
|
+
isSuperUser Boolean @default(false)
|
|
798
799
|
googleCalendarAccess String?
|
|
799
800
|
givenName String?
|
|
800
801
|
familyName String?
|
|
@@ -1426,23 +1427,3 @@ model ServiceLink {
|
|
|
1426
1427
|
|
|
1427
1428
|
@@index([businessId])
|
|
1428
1429
|
}
|
|
1429
|
-
|
|
1430
|
-
enum ServiceType {
|
|
1431
|
-
EventService
|
|
1432
|
-
EntertainmentService
|
|
1433
|
-
Vendor
|
|
1434
|
-
Exhibitor
|
|
1435
|
-
Sponsor
|
|
1436
|
-
Venue
|
|
1437
|
-
Organization
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
enum ServiceTypes {
|
|
1441
|
-
EventServices
|
|
1442
|
-
EntertainmentServices
|
|
1443
|
-
Vendors
|
|
1444
|
-
Exhibitors
|
|
1445
|
-
Sponsors
|
|
1446
|
-
Venues
|
|
1447
|
-
Organizations
|
|
1448
|
-
}
|
package/src/definitions.ts
CHANGED
|
@@ -91,16 +91,16 @@ export type ContactOrUser = Contact | PublicUser;
|
|
|
91
91
|
export type UnionFromArray<T extends ReadonlyArray<any>> = T[number];
|
|
92
92
|
export type ValueOf<T> = T[keyof T];
|
|
93
93
|
|
|
94
|
-
export type ValueOfServiceType = ValueOf<typeof
|
|
95
|
-
|
|
96
|
-
export const
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
94
|
+
export type ValueOfServiceType = ValueOf<typeof ServiceTypes>;
|
|
95
|
+
|
|
96
|
+
export const ServiceTypes = {
|
|
97
|
+
'EventServices': 'eventServices',
|
|
98
|
+
'Organizations': 'organizations',
|
|
99
|
+
'Venues': 'venues',
|
|
100
|
+
'Vendors': 'vendors',
|
|
101
|
+
'Sponsors': 'sponsors',
|
|
102
|
+
'Exhibitors': 'exhibitors',
|
|
103
|
+
'EntertainmentServices': 'entertainmentServices',
|
|
104
104
|
} satisfies {[key: string]: keyof BusinessExt}
|
|
105
105
|
|
|
106
106
|
export type FilterFields = {
|
|
@@ -316,16 +316,16 @@ export const YearsOfExperienceToString: { [key in YearsOfExperience]: string } =
|
|
|
316
316
|
};
|
|
317
317
|
|
|
318
318
|
export type ServiceTypeToStringType = {
|
|
319
|
-
[key in ValueOf<typeof
|
|
319
|
+
[key in ValueOf<typeof ServiceTypes>]: string;
|
|
320
320
|
};
|
|
321
321
|
export const ServiceTypeToString: ServiceTypeToStringType = {
|
|
322
|
-
[
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
[
|
|
328
|
-
[
|
|
322
|
+
[ServiceTypes.EventServices]: "/servicesDefault.webp",
|
|
323
|
+
[ServiceTypes.EntertainmentServices]: "/servicesDefault.webp",
|
|
324
|
+
[ServiceTypes.Vendors]: "/servicesDefault.webp",
|
|
325
|
+
[ServiceTypes.Exhibitors]: "/servicesDefault.webp",
|
|
326
|
+
[ServiceTypes.Sponsors]: "/servicesDefault.webp",
|
|
327
|
+
[ServiceTypes.Venues]: "/servicesDefault.webp",
|
|
328
|
+
[ServiceTypes.Organizations]: "/servicesDefault.webp"
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
export type BashEventTypeToStringType = {
|