@bash-app/bash-common 30.338.0 → 30.345.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.
Files changed (49) hide show
  1. package/dist/__tests__/hostCrmCrowdPulse.test.d.ts +2 -0
  2. package/dist/__tests__/hostCrmCrowdPulse.test.d.ts.map +1 -0
  3. package/dist/__tests__/hostCrmCrowdPulse.test.js +40 -0
  4. package/dist/__tests__/hostCrmCrowdPulse.test.js.map +1 -0
  5. package/dist/__tests__/hostPromoter.test.js +6 -1
  6. package/dist/__tests__/hostPromoter.test.js.map +1 -1
  7. package/dist/extendedSchemas.d.ts +3 -1
  8. package/dist/extendedSchemas.d.ts.map +1 -1
  9. package/dist/extendedSchemas.js.map +1 -1
  10. package/dist/hostCrmCrowdPulse.d.ts +62 -0
  11. package/dist/hostCrmCrowdPulse.d.ts.map +1 -0
  12. package/dist/hostCrmCrowdPulse.js +44 -0
  13. package/dist/hostCrmCrowdPulse.js.map +1 -0
  14. package/dist/hostCrmLastBashProof.d.ts +25 -0
  15. package/dist/hostCrmLastBashProof.d.ts.map +1 -0
  16. package/dist/hostCrmLastBashProof.js +6 -0
  17. package/dist/hostCrmLastBashProof.js.map +1 -0
  18. package/dist/hostPromoter.d.ts +5 -0
  19. package/dist/hostPromoter.d.ts.map +1 -1
  20. package/dist/hostPromoter.js +8 -0
  21. package/dist/hostPromoter.js.map +1 -1
  22. package/dist/index.d.ts +2 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +2 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/serviceTypeLabels.d.ts +4 -1
  27. package/dist/serviceTypeLabels.d.ts.map +1 -1
  28. package/dist/serviceTypeLabels.js +12 -9
  29. package/dist/serviceTypeLabels.js.map +1 -1
  30. package/dist/targetAudienceLabels.d.ts +1 -1
  31. package/dist/targetAudienceLabels.d.ts.map +1 -1
  32. package/dist/targetAudienceLabels.js +1 -0
  33. package/dist/utils/discountEngine/bestPriceResolver.js +1 -0
  34. package/dist/utils/eventCitySlug.js +1 -0
  35. package/dist/utils/guestSurface.d.ts.map +1 -1
  36. package/dist/utils/guestSurface.js +6 -3
  37. package/dist/utils/guestSurface.js.map +1 -1
  38. package/package.json +1 -1
  39. package/prisma/schema.prisma +42 -0
  40. package/src/__tests__/hostCrmCrowdPulse.test.ts +67 -0
  41. package/src/__tests__/hostPromoter.test.ts +9 -0
  42. package/src/extendedSchemas.ts +3 -0
  43. package/src/hostCrmCrowdPulse.ts +104 -0
  44. package/src/hostCrmLastBashProof.ts +26 -0
  45. package/src/hostPromoter.ts +10 -0
  46. package/src/index.ts +2 -0
  47. package/src/serviceTypeLabels.ts +12 -9
  48. package/src/targetAudienceLabels.ts +1 -1
  49. package/src/utils/guestSurface.ts +6 -3
@@ -1,4 +1,4 @@
1
- import { ServiceTypes } from "@prisma/client";
1
+ import type { ServiceTypes } from "@prisma/client";
2
2
 
3
3
  /**
4
4
  * Human-readable label for every `ServiceTypes` value — the raw enum ("EventServices",
@@ -11,14 +11,17 @@ import { ServiceTypes } from "@prisma/client";
11
11
  * Note: this is distinct from `SERVICE_TYPE_DISPLAY_LABEL` in `definitions.ts`, which only
12
12
  * covers the two values `COMPLEMENTARY_SERVICE_TYPE` can produce (Vendors/EventServices) for
13
13
  * "also list as" copy — that narrower map stays as-is.
14
+ *
15
+ * Keys are string literals (not `ServiceTypes.*`) so this module can load even when Jest
16
+ * briefly has a partial `@prisma/client` mock — runtime enum objects are not required here.
14
17
  */
15
18
  export const SERVICE_TYPE_LABELS: Record<ServiceTypes, string> = {
16
- [ServiceTypes.EntertainmentServices]: "Entertainment",
17
- [ServiceTypes.EventServices]: "Event Services",
18
- [ServiceTypes.Vendors]: "Vendors",
19
- [ServiceTypes.Exhibitors]: "Exhibitors",
20
- [ServiceTypes.Sponsors]: "Sponsors",
21
- [ServiceTypes.Venues]: "Venues",
22
- [ServiceTypes.Organizations]: "Organizations",
23
- [ServiceTypes.Volunteers]: "Volunteers",
19
+ EntertainmentServices: "Entertainment",
20
+ EventServices: "Event Services",
21
+ Vendors: "Vendors",
22
+ Exhibitors: "Exhibitors",
23
+ Sponsors: "Sponsors",
24
+ Venues: "Venues",
25
+ Organizations: "Organizations",
26
+ Volunteers: "Volunteers",
24
27
  };
@@ -1,4 +1,4 @@
1
- import { AgeRange, Education, Gender, Occupation } from "@prisma/client";
1
+ import type { AgeRange, Education, Gender, Occupation } from "@prisma/client";
2
2
 
3
3
  /**
4
4
  * Display labels for `BashEvent`/`Service` target-audience demographics — consolidated from
@@ -200,7 +200,8 @@ export function resolveGuestSurfacePolicy(
200
200
  showNetworkSlice: false,
201
201
  rosterDepth: "None",
202
202
  previewLimit: 5,
203
- apiPreviewLimit: 12,
203
+ /** Named faces for avatar stack + overflow (+N) tooltip — not only the 5 visible bubbles. */
204
+ apiPreviewLimit: 60,
204
205
  effectiveMode: eventMode,
205
206
  };
206
207
  }
@@ -213,7 +214,8 @@ export function resolveGuestSurfacePolicy(
213
214
  showNetworkSlice: isAuthenticated,
214
215
  rosterDepth: effectiveDepth,
215
216
  previewLimit: 5,
216
- apiPreviewLimit: 12,
217
+ /** Named faces for avatar stack + overflow (+N) tooltip — not only the 5 visible bubbles. */
218
+ apiPreviewLimit: 60,
217
219
  effectiveMode: eventMode,
218
220
  };
219
221
  }
@@ -244,7 +246,8 @@ export function resolveGuestSurfacePolicy(
244
246
  showNetworkSlice,
245
247
  rosterDepth: effectiveDepth,
246
248
  previewLimit: 5,
247
- apiPreviewLimit: 12,
249
+ /** Named faces for avatar stack + overflow (+N) tooltip — not only the 5 visible bubbles. */
250
+ apiPreviewLimit: 60,
248
251
  effectiveMode: eventMode,
249
252
  };
250
253
  }