@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.
- package/dist/__tests__/hostCrmCrowdPulse.test.d.ts +2 -0
- package/dist/__tests__/hostCrmCrowdPulse.test.d.ts.map +1 -0
- package/dist/__tests__/hostCrmCrowdPulse.test.js +40 -0
- package/dist/__tests__/hostCrmCrowdPulse.test.js.map +1 -0
- package/dist/__tests__/hostPromoter.test.js +6 -1
- package/dist/__tests__/hostPromoter.test.js.map +1 -1
- package/dist/extendedSchemas.d.ts +3 -1
- package/dist/extendedSchemas.d.ts.map +1 -1
- package/dist/extendedSchemas.js.map +1 -1
- package/dist/hostCrmCrowdPulse.d.ts +62 -0
- package/dist/hostCrmCrowdPulse.d.ts.map +1 -0
- package/dist/hostCrmCrowdPulse.js +44 -0
- package/dist/hostCrmCrowdPulse.js.map +1 -0
- package/dist/hostCrmLastBashProof.d.ts +25 -0
- package/dist/hostCrmLastBashProof.d.ts.map +1 -0
- package/dist/hostCrmLastBashProof.js +6 -0
- package/dist/hostCrmLastBashProof.js.map +1 -0
- package/dist/hostPromoter.d.ts +5 -0
- package/dist/hostPromoter.d.ts.map +1 -1
- package/dist/hostPromoter.js +8 -0
- package/dist/hostPromoter.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/serviceTypeLabels.d.ts +4 -1
- package/dist/serviceTypeLabels.d.ts.map +1 -1
- package/dist/serviceTypeLabels.js +12 -9
- package/dist/serviceTypeLabels.js.map +1 -1
- package/dist/targetAudienceLabels.d.ts +1 -1
- package/dist/targetAudienceLabels.d.ts.map +1 -1
- package/dist/targetAudienceLabels.js +1 -0
- package/dist/utils/discountEngine/bestPriceResolver.js +1 -0
- package/dist/utils/eventCitySlug.js +1 -0
- package/dist/utils/guestSurface.d.ts.map +1 -1
- package/dist/utils/guestSurface.js +6 -3
- package/dist/utils/guestSurface.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +42 -0
- package/src/__tests__/hostCrmCrowdPulse.test.ts +67 -0
- package/src/__tests__/hostPromoter.test.ts +9 -0
- package/src/extendedSchemas.ts +3 -0
- package/src/hostCrmCrowdPulse.ts +104 -0
- package/src/hostCrmLastBashProof.ts +26 -0
- package/src/hostPromoter.ts +10 -0
- package/src/index.ts +2 -0
- package/src/serviceTypeLabels.ts +12 -9
- package/src/targetAudienceLabels.ts +1 -1
- package/src/utils/guestSurface.ts +6 -3
package/src/serviceTypeLabels.ts
CHANGED
|
@@ -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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
};
|
|
@@ -200,7 +200,8 @@ export function resolveGuestSurfacePolicy(
|
|
|
200
200
|
showNetworkSlice: false,
|
|
201
201
|
rosterDepth: "None",
|
|
202
202
|
previewLimit: 5,
|
|
203
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|