@bash-app/bash-common 30.399.0 → 30.403.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__/audienceImport.test.d.ts +2 -0
- package/dist/__tests__/audienceImport.test.d.ts.map +1 -0
- package/dist/__tests__/audienceImport.test.js +39 -0
- package/dist/__tests__/audienceImport.test.js.map +1 -0
- package/dist/__tests__/eventStaffRoles.test.d.ts +2 -0
- package/dist/__tests__/eventStaffRoles.test.d.ts.map +1 -0
- package/dist/__tests__/eventStaffRoles.test.js +37 -0
- package/dist/__tests__/eventStaffRoles.test.js.map +1 -0
- package/dist/audienceImport.d.ts +71 -0
- package/dist/audienceImport.d.ts.map +1 -0
- package/dist/audienceImport.js +115 -0
- package/dist/audienceImport.js.map +1 -0
- package/dist/eventStaffRoles.d.ts +39 -0
- package/dist/eventStaffRoles.d.ts.map +1 -0
- package/dist/eventStaffRoles.js +125 -0
- package/dist/eventStaffRoles.js.map +1 -0
- package/dist/extendedSchemas.d.ts +2 -0
- package/dist/extendedSchemas.d.ts.map +1 -1
- package/dist/extendedSchemas.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/utils/__tests__/locationVisibility.test.js +27 -1
- package/dist/utils/__tests__/locationVisibility.test.js.map +1 -1
- package/dist/utils/locationVisibility.d.ts +9 -0
- package/dist/utils/locationVisibility.d.ts.map +1 -1
- package/dist/utils/locationVisibility.js +13 -0
- package/dist/utils/locationVisibility.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +102 -0
- package/src/__tests__/audienceImport.test.ts +58 -0
- package/src/__tests__/eventStaffRoles.test.ts +50 -0
- package/src/audienceImport.ts +181 -0
- package/src/eventStaffRoles.ts +168 -0
- package/src/extendedSchemas.ts +2 -0
- package/src/index.ts +2 -0
- package/src/utils/__tests__/locationVisibility.test.ts +38 -0
- package/src/utils/locationVisibility.ts +16 -0
|
@@ -168,6 +168,22 @@ export function defaultLocationRevealMode(): LocationRevealMode {
|
|
|
168
168
|
return "ManualOnly";
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Guest-facing meeting pin. Show only when the label is a non-empty string
|
|
173
|
+
* and an exact address is present (already revealed / not redacted).
|
|
174
|
+
*/
|
|
175
|
+
export function resolveMeetingPointLabel(event: {
|
|
176
|
+
meetingPointLabel?: string | null;
|
|
177
|
+
location?: string | null;
|
|
178
|
+
street?: string | null;
|
|
179
|
+
}): string | null {
|
|
180
|
+
const label = event.meetingPointLabel?.trim();
|
|
181
|
+
if (!label) return null;
|
|
182
|
+
const hasExactAddress = Boolean(event.location?.trim() || event.street?.trim());
|
|
183
|
+
if (!hasExactAddress) return null;
|
|
184
|
+
return label;
|
|
185
|
+
}
|
|
186
|
+
|
|
171
187
|
/** Address string for Google geocoding on public maps when full `location` is redacted. */
|
|
172
188
|
export function geocodeQueryTextForPublicBashMap(event: {
|
|
173
189
|
location?: string | null;
|