@bash-app/bash-common 25.0.1 → 25.1.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.0.1",
3
+ "version": "25.1.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",
@@ -1433,3 +1433,13 @@ enum ServiceType {
1433
1433
  Venue
1434
1434
  Organization
1435
1435
  }
1436
+
1437
+ enum ServiceTypes {
1438
+ EventServices
1439
+ EntertainmentServices
1440
+ Vendors
1441
+ Exhibitors
1442
+ Sponsors
1443
+ Venues
1444
+ Organizations
1445
+ }
@@ -9,7 +9,7 @@ import {
9
9
  User,
10
10
  YearsOfExperience
11
11
  } from "@prisma/client";
12
- import {BusinessExt, CheckoutExt, PublicUser} from "./extendedSchemas";
12
+ import {BusinessExt, CheckoutExt, PublicUser, VolunteerServiceExt} from "./extendedSchemas";
13
13
 
14
14
  export const PASSWORD_MIN_LENGTH = 10 as const;
15
15
  export const PASSWORD_REQUIREMENTS_REGEX = new RegExp(String.raw`^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{${PASSWORD_MIN_LENGTH},}$`);
@@ -94,7 +94,6 @@ export type ValueOf<T> = T[keyof T];
94
94
  export type ValueOfServiceType = ValueOf<typeof ServiceType>;
95
95
 
96
96
  export const ServiceType = {
97
- 'Volunteer': 'volunteerService',
98
97
  'EventService': 'eventServices',
99
98
  'Organization': 'organizations',
100
99
  'Venue': 'venues',
@@ -314,7 +313,6 @@ export type ServiceTypeToStringType = {
314
313
  [key in ValueOf<typeof ServiceType>]: string;
315
314
  };
316
315
  export const ServiceTypeToString: ServiceTypeToStringType = {
317
- [ServiceType.Volunteer]: "/servicesDefault.webp",
318
316
  [ServiceType.EventService]: "/servicesDefault.webp",
319
317
  [ServiceType.EntertainmentService]: "/servicesDefault.webp",
320
318
  [ServiceType.Vendor]: "/servicesDefault.webp",