@bash-app/bash-common 25.3.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "25.3.0",
3
+ "version": "25.4.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1427,23 +1427,3 @@ model ServiceLink {
1427
1427
 
1428
1428
  @@index([businessId])
1429
1429
  }
1430
-
1431
- enum ServiceType {
1432
- EventService
1433
- EntertainmentService
1434
- Vendor
1435
- Exhibitor
1436
- Sponsor
1437
- Venue
1438
- Organization
1439
- }
1440
-
1441
- enum ServiceTypes {
1442
- EventServices
1443
- EntertainmentServices
1444
- Vendors
1445
- Exhibitors
1446
- Sponsors
1447
- Venues
1448
- Organizations
1449
- }
@@ -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 ServiceType>;
95
-
96
- export const ServiceType = {
97
- 'EventService': 'eventServices',
98
- 'Organization': 'organizations',
99
- 'Venue': 'venues',
100
- 'Vendor': 'vendors',
101
- 'Sponsor': 'sponsors',
102
- 'Exhibitor': 'exhibitors',
103
- 'EntertainmentService': 'entertainmentServices',
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 ServiceType>]: string;
319
+ [key in ValueOf<typeof ServiceTypes>]: string;
320
320
  };
321
321
  export const ServiceTypeToString: ServiceTypeToStringType = {
322
- [ServiceType.EventService]: "/servicesDefault.webp",
323
- [ServiceType.EntertainmentService]: "/servicesDefault.webp",
324
- [ServiceType.Vendor]: "/servicesDefault.webp",
325
- [ServiceType.Exhibitor]: "/servicesDefault.webp",
326
- [ServiceType.Sponsor]: "/servicesDefault.webp",
327
- [ServiceType.Venue]: "/servicesDefault.webp",
328
- [ServiceType.Organization]: "/servicesDefault.webp"
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 = {