@bash-app/bash-common 30.423.0 → 30.425.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__/agePolicy.test.js +6 -6
- package/dist/__tests__/agePolicy.test.js.map +1 -1
- package/dist/__tests__/bashEventCancellationPolicy.test.js +2 -2
- package/dist/__tests__/bashEventCancellationPolicy.test.js.map +1 -1
- package/dist/__tests__/bashSectionTitleForBashType.test.js +3 -3
- package/dist/__tests__/definitionsHelpers.test.js +1 -1
- package/dist/__tests__/definitionsHelpers.test.js.map +1 -1
- package/dist/__tests__/entertainmentNotableVenues.test.js +1 -1
- package/dist/__tests__/entertainmentNotableVenues.test.js.map +1 -1
- package/dist/__tests__/hostCrmCrowdPulse.test.js +1 -1
- package/dist/__tests__/hostCrmSegments.test.js +2 -2
- package/dist/__tests__/hostCrmSegments.test.js.map +1 -1
- package/dist/__tests__/hostPromoter.test.js +1 -1
- package/dist/__tests__/influencerAudience.test.js +1 -1
- package/dist/__tests__/influencerAudience.test.js.map +1 -1
- package/dist/__tests__/promoterCompetitionUtils.test.js +3 -3
- package/dist/__tests__/promoterCompetitionUtils.test.js.map +1 -1
- package/dist/__tests__/scenePulse.test.js +1 -1
- package/dist/__tests__/seatMap.test.js +1 -1
- package/dist/__tests__/seatMap.test.js.map +1 -1
- package/dist/__tests__/ticketAdmission.test.d.ts +1 -1
- package/dist/__tests__/ticketAdmission.test.js +1 -1
- package/dist/accessScreening.js +1 -1
- package/dist/aiApproval.d.ts +3 -3
- package/dist/aiApproval.js +3 -3
- package/dist/appleIapProducts.d.ts +1 -1
- package/dist/appleIapProducts.d.ts.map +1 -1
- package/dist/appleIapProducts.js +1 -1
- package/dist/appleIapProducts.js.map +1 -1
- package/dist/applicationFunnel.d.ts +1 -1
- package/dist/applicationFunnel.js +1 -1
- package/dist/audienceImport.d.ts +2 -2
- package/dist/audienceImport.d.ts.map +1 -1
- package/dist/audienceImport.js +2 -2
- package/dist/audienceImport.js.map +1 -1
- package/dist/bashEventCancellationPolicy.js +3 -3
- package/dist/bashEventCancellationPolicy.js.map +1 -1
- package/dist/budgetApproval.d.ts +1 -1
- package/dist/budgetApproval.js +1 -1
- package/dist/causeTags.js +4 -4
- package/dist/causeTags.js.map +1 -1
- package/dist/competitionIdeas.js +12 -12
- package/dist/competitionIdeas.js.map +1 -1
- package/dist/competitionValidation.d.ts +1 -1
- package/dist/competitionValidation.d.ts.map +1 -1
- package/dist/competitionValidation.js +1 -1
- package/dist/competitionValidation.js.map +1 -1
- package/dist/definitions.d.ts +35 -35
- package/dist/definitions.d.ts.map +1 -1
- package/dist/definitions.js +30 -30
- package/dist/definitions.js.map +1 -1
- package/dist/discoveryScope.d.ts +2 -2
- package/dist/discoveryScope.js +2 -2
- package/dist/entertainmentNotableVenues.js +1 -1
- package/dist/entertainmentNotableVenues.js.map +1 -1
- package/dist/extendedSchemas.d.ts +150 -150
- package/dist/extendedSchemas.d.ts.map +1 -1
- package/dist/extendedSchemas.js +11 -11
- package/dist/extendedSchemas.js.map +1 -1
- package/dist/fundingMeter.d.ts +1 -1
- package/dist/fundingMeter.js +1 -1
- package/dist/giveaway.d.ts +2 -2
- package/dist/giveaway.d.ts.map +1 -1
- package/dist/giveaway.js +2 -2
- package/dist/giveaway.js.map +1 -1
- package/dist/guestPartySize.js +3 -3
- package/dist/guestPartySize.js.map +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/homepageSyntheticRows.d.ts +4 -4
- package/dist/homepageSyntheticRows.d.ts.map +1 -1
- package/dist/homepageSyntheticRows.js +3 -4
- package/dist/homepageSyntheticRows.js.map +1 -1
- package/dist/hostCrmAutomation.d.ts +11 -11
- package/dist/hostCrmAutomation.d.ts.map +1 -1
- package/dist/hostCrmAutomation.js +9 -9
- package/dist/hostCrmAutomation.js.map +1 -1
- package/dist/hostCrmConstants.d.ts +1 -1
- package/dist/hostCrmConstants.d.ts.map +1 -1
- package/dist/hostCrmConstants.js +1 -1
- package/dist/hostCrmConstants.js.map +1 -1
- package/dist/hostCrmCrowdPulse.d.ts +2 -2
- package/dist/hostCrmCrowdPulse.d.ts.map +1 -1
- package/dist/hostCrmCrowdPulse.js +1 -1
- package/dist/hostCrmInsights.d.ts +3 -3
- package/dist/hostCrmLastBashProof.d.ts +2 -2
- package/dist/hostCrmLastBashProof.d.ts.map +1 -1
- package/dist/hostCrmLastBashProof.js +1 -1
- package/dist/hostCrmSegments.d.ts +10 -10
- package/dist/hostCrmSegments.d.ts.map +1 -1
- package/dist/hostCrmSegments.js +2 -2
- package/dist/hostCrmSegments.js.map +1 -1
- package/dist/hostPromoter.d.ts +1 -1
- package/dist/hostPromoter.d.ts.map +1 -1
- package/dist/hostPromoter.js +1 -1
- package/dist/hostPromoter.js.map +1 -1
- package/dist/icebreakerPrompts.js +2 -2
- package/dist/icebreakerPrompts.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/influencerAudience.js +3 -3
- package/dist/influencerAudience.js.map +1 -1
- package/dist/liveActivity/liveActivityTypes.d.ts +10 -10
- package/dist/liveActivity/liveActivityTypes.d.ts.map +1 -1
- package/dist/liveActivity/liveActivityTypes.js +2 -2
- package/dist/liveActivity/liveActivityTypes.js.map +1 -1
- package/dist/locationShare.d.ts +2 -2
- package/dist/locationShare.d.ts.map +1 -1
- package/dist/locationShare.js +2 -2
- package/dist/locationShare.js.map +1 -1
- package/dist/membershipDefinitions.d.ts +5 -5
- package/dist/membershipDefinitions.d.ts.map +1 -1
- package/dist/membershipDefinitions.js +21 -21
- package/dist/membershipDefinitions.js.map +1 -1
- package/dist/mirroredPrismaEnums.d.ts +6 -6
- package/dist/mirroredPrismaEnums.js +6 -6
- package/dist/onSaleCapabilityRecommendations.d.ts +1 -1
- package/dist/onSaleCapabilityRecommendations.js +1 -1
- package/dist/partnerStoreTypes.d.ts +1 -1
- package/dist/partnerStoreTypes.d.ts.map +1 -1
- package/dist/productLaunch.d.ts +2 -2
- package/dist/productLaunch.d.ts.map +1 -1
- package/dist/productLaunch.js +2 -2
- package/dist/productLaunch.js.map +1 -1
- package/dist/relationshipHealth.d.ts +3 -3
- package/dist/relationshipHealth.d.ts.map +1 -1
- package/dist/relationshipHealth.js +3 -3
- package/dist/relationshipHealth.js.map +1 -1
- package/dist/scenePulse.d.ts +2 -2
- package/dist/scenePulse.js +1 -1
- package/dist/seatMap.d.ts +1 -1
- package/dist/seatMap.d.ts.map +1 -1
- package/dist/seatMap.js +2 -2
- package/dist/seatMap.js.map +1 -1
- package/dist/seatMapBestAvailable.js +2 -2
- package/dist/seatMapBestAvailable.js.map +1 -1
- package/dist/serviceTypeLabels.d.ts +3 -3
- package/dist/serviceTypeLabels.js +3 -3
- package/dist/sideQuestIdeas.js +8 -8
- package/dist/sideQuestIdeas.js.map +1 -1
- package/dist/sideQuestTypes.js +2 -2
- package/dist/sideQuestTypes.js.map +1 -1
- package/dist/sms/smsTemplates.d.ts +1 -1
- package/dist/sms/smsTemplates.js +1 -1
- package/dist/stripeListingSubscriptionMessages.d.ts +1 -1
- package/dist/stripeListingSubscriptionMessages.js +1 -1
- package/dist/targetAudienceLabels.d.ts +1 -1
- package/dist/targetAudienceLabels.js +1 -1
- package/dist/ticketBnplPaymentMethods.d.ts +3 -3
- package/dist/ticketBnplPaymentMethods.d.ts.map +1 -1
- package/dist/ticketBnplPaymentMethods.js +2 -2
- package/dist/userReportTypes.d.ts +1 -1
- package/dist/userReportTypes.d.ts.map +1 -1
- package/dist/userReportTypes.js +1 -1
- package/dist/userReportTypes.js.map +1 -1
- package/dist/userTaste.d.ts +2 -2
- package/dist/userTaste.d.ts.map +1 -1
- package/dist/userTaste.js +2 -2
- package/dist/userTaste.js.map +1 -1
- package/dist/utils/__tests__/badgeUtils.test.js +5 -5
- package/dist/utils/__tests__/badgeUtils.test.js.map +1 -1
- package/dist/utils/__tests__/bashPointsPaymentUtils.test.js +4 -4
- package/dist/utils/__tests__/bashPointsPaymentUtils.test.js.map +1 -1
- package/dist/utils/__tests__/contentFilterUtils.test.js +23 -23
- package/dist/utils/__tests__/contentFilterUtils.test.js.map +1 -1
- package/dist/utils/__tests__/dateTimeUtils.test.js +1 -1
- package/dist/utils/__tests__/displayDateUtils.test.js +1 -1
- package/dist/utils/__tests__/flyerUtils.test.js +1 -1
- package/dist/utils/__tests__/flyerUtils.test.js.map +1 -1
- package/dist/utils/__tests__/getBackendHost.test.js +8 -8
- package/dist/utils/__tests__/getBackendHost.test.js.map +1 -1
- package/dist/utils/__tests__/getFrontendHost.native.test.js +1 -1
- package/dist/utils/__tests__/getFrontendHost.native.test.js.map +1 -1
- package/dist/utils/__tests__/getFrontendHost.test.js +9 -9
- package/dist/utils/__tests__/getFrontendHost.test.js.map +1 -1
- package/dist/utils/__tests__/organizationEntitlements.test.js +1 -1
- package/dist/utils/__tests__/organizationEntitlements.test.js.map +1 -1
- package/dist/utils/__tests__/paymentUtils.test.js +7 -7
- package/dist/utils/__tests__/paymentUtils.test.js.map +1 -1
- package/dist/utils/__tests__/promoCodesUtils.test.js +2 -2
- package/dist/utils/__tests__/promoCodesUtils.test.js.map +1 -1
- package/dist/utils/__tests__/qrCodeUtils.test.js +4 -4
- package/dist/utils/__tests__/qrCodeUtils.test.js.map +1 -1
- package/dist/utils/__tests__/reviewDimensionUtils.test.js +1 -1
- package/dist/utils/__tests__/reviewDimensionUtils.test.js.map +1 -1
- package/dist/utils/__tests__/stripeAccountUtils.test.js +1 -1
- package/dist/utils/__tests__/ticketPrintPostageUtils.test.js +1 -1
- package/dist/utils/__tests__/ticketPrintPostageUtils.test.js.map +1 -1
- package/dist/utils/addressUtils.js +1 -1
- package/dist/utils/addressUtils.js.map +1 -1
- package/dist/utils/apiUtils.js +1 -1
- package/dist/utils/apiUtils.js.map +1 -1
- package/dist/utils/birthdayExperienceQuality.d.ts +1 -1
- package/dist/utils/birthdayExperienceQuality.js +4 -4
- package/dist/utils/birthdayExperienceQuality.js.map +1 -1
- package/dist/utils/blogUtils.d.ts +1 -1
- package/dist/utils/blogUtils.d.ts.map +1 -1
- package/dist/utils/blogUtils.js +2 -2
- package/dist/utils/blogUtils.js.map +1 -1
- package/dist/utils/discountEngine/discountCalculator.js +1 -1
- package/dist/utils/discountEngine/discountCalculator.js.map +1 -1
- package/dist/utils/displayDateUtils.d.ts +2 -2
- package/dist/utils/displayDateUtils.d.ts.map +1 -1
- package/dist/utils/displayDateUtils.js +2 -2
- package/dist/utils/displayDateUtils.js.map +1 -1
- package/dist/utils/entertainmentDrawFit.d.ts +1 -1
- package/dist/utils/entertainmentDrawFit.js +1 -1
- package/dist/utils/eventTimezoneIana.d.ts +1 -1
- package/dist/utils/eventTimezoneIana.js +4 -4
- package/dist/utils/eventTimezoneIana.js.map +1 -1
- package/dist/utils/flyerUtils.d.ts +2 -2
- package/dist/utils/flyerUtils.d.ts.map +1 -1
- package/dist/utils/flyerUtils.js +3 -3
- package/dist/utils/flyerUtils.js.map +1 -1
- package/dist/utils/groupTicketCartUtils.js +1 -1
- package/dist/utils/groupTicketCartUtils.js.map +1 -1
- package/dist/utils/guestSurface.d.ts +2 -2
- package/dist/utils/guestSurface.d.ts.map +1 -1
- package/dist/utils/guestSurface.js +4 -4
- package/dist/utils/guestSurface.js.map +1 -1
- package/dist/utils/lobFlyerUtils.d.ts +2 -2
- package/dist/utils/lobFlyerUtils.js +2 -2
- package/dist/utils/luxonUtils.d.ts +4 -4
- package/dist/utils/luxonUtils.js +5 -5
- package/dist/utils/luxonUtils.js.map +1 -1
- package/dist/utils/moodTrackUtils.d.ts +1 -1
- package/dist/utils/moodTrackUtils.js +1 -1
- package/dist/utils/nonprofitUtils.d.ts +3 -3
- package/dist/utils/nonprofitUtils.js +2 -2
- package/dist/utils/orgPromotionalPackageUtils.d.ts +1 -1
- package/dist/utils/orgPromotionalPackageUtils.js +1 -1
- package/dist/utils/organizationEntitlements.d.ts +4 -4
- package/dist/utils/organizationEntitlements.js +3 -3
- package/dist/utils/paymentUtils.d.ts +10 -10
- package/dist/utils/paymentUtils.js +9 -9
- package/dist/utils/promoterCompetitionUtils.d.ts +4 -4
- package/dist/utils/promoterCompetitionUtils.d.ts.map +1 -1
- package/dist/utils/promoterCompetitionUtils.js +7 -7
- package/dist/utils/promoterCompetitionUtils.js.map +1 -1
- package/dist/utils/promotionBlastUtils.d.ts +1 -1
- package/dist/utils/promotionBlastUtils.js +4 -4
- package/dist/utils/promotionBlastUtils.js.map +1 -1
- package/dist/utils/qrCodeUtils.d.ts +3 -3
- package/dist/utils/qrCodeUtils.d.ts.map +1 -1
- package/dist/utils/qrCodeUtils.js +3 -3
- package/dist/utils/qrCodeUtils.js.map +1 -1
- package/dist/utils/recurrenceUtils.d.ts +1 -1
- package/dist/utils/recurrenceUtils.js +1 -1
- package/dist/utils/reputationUtils.d.ts +2 -2
- package/dist/utils/reputationUtils.d.ts.map +1 -1
- package/dist/utils/reputationUtils.js +1 -1
- package/dist/utils/reputationUtils.js.map +1 -1
- package/dist/utils/reviewDimensionUtils.d.ts +2 -2
- package/dist/utils/reviewDimensionUtils.d.ts.map +1 -1
- package/dist/utils/reviewDimensionUtils.js +1 -1
- package/dist/utils/reviewDimensionUtils.js.map +1 -1
- package/dist/utils/service/__tests__/billingCapUtils.test.js +3 -3
- package/dist/utils/service/__tests__/billingCapUtils.test.js.map +1 -1
- package/dist/utils/service/__tests__/eventPromoterPhase3.test.js +1 -1
- package/dist/utils/service/__tests__/eventPromoterUtils.test.js +1 -1
- package/dist/utils/service/__tests__/eventPromoterUtils.test.js.map +1 -1
- package/dist/utils/service/__tests__/frontendServiceBookingUtils.test.js +2 -2
- package/dist/utils/service/__tests__/frontendServiceBookingUtils.test.js.map +1 -1
- package/dist/utils/service/__tests__/serviceBookingExposureUtils.test.js +1 -1
- package/dist/utils/service/__tests__/serviceBookingExposureUtils.test.js.map +1 -1
- package/dist/utils/service/__tests__/serviceBookingStatusUtils.test.js +2 -2
- package/dist/utils/service/__tests__/serviceBookingStatusUtils.test.js.map +1 -1
- package/dist/utils/service/__tests__/serviceRateUtils.test.js +6 -6
- package/dist/utils/service/__tests__/serviceRateUtils.test.js.map +1 -1
- package/dist/utils/service/apiServiceBookingApiUtils.js +1 -1
- package/dist/utils/service/apiServiceBookingApiUtils.js.map +1 -1
- package/dist/utils/service/billingCapUtils.d.ts +5 -5
- package/dist/utils/service/billingCapUtils.js +5 -5
- package/dist/utils/service/cancellationPolicyRefundResolver.d.ts +1 -1
- package/dist/utils/service/cancellationPolicyRefundResolver.d.ts.map +1 -1
- package/dist/utils/service/eventPromoterUtils.d.ts +17 -17
- package/dist/utils/service/eventPromoterUtils.d.ts.map +1 -1
- package/dist/utils/service/eventPromoterUtils.js +11 -11
- package/dist/utils/service/eventPromoterUtils.js.map +1 -1
- package/dist/utils/service/foodAndBeverageQuote.d.ts +8 -8
- package/dist/utils/service/foodAndBeverageQuote.js +8 -8
- package/dist/utils/service/offerAllowListUtils.d.ts +1 -1
- package/dist/utils/service/offerComparisonUtils.d.ts +6 -6
- package/dist/utils/service/offerComparisonUtils.js +2 -2
- package/dist/utils/service/offerComparisonUtils.js.map +1 -1
- package/dist/utils/service/serviceBookingExposureUtils.d.ts +7 -7
- package/dist/utils/service/serviceBookingExposureUtils.js +5 -5
- package/dist/utils/service/serviceBookingExposureUtils.js.map +1 -1
- package/dist/utils/service/serviceFeaturedSortUtils.js +2 -2
- package/dist/utils/service/serviceFeaturedSortUtils.js.map +1 -1
- package/dist/utils/service/serviceListingMediaUtils.d.ts +2 -2
- package/dist/utils/service/serviceListingMediaUtils.d.ts.map +1 -1
- package/dist/utils/service/serviceListingMediaUtils.js +2 -2
- package/dist/utils/service/serviceListingMediaUtils.js.map +1 -1
- package/dist/utils/service/serviceUtils.js +2 -2
- package/dist/utils/service/serviceUtils.js.map +1 -1
- package/dist/utils/service/unifiedPricingResolver.d.ts +5 -5
- package/dist/utils/service/unifiedPricingResolver.d.ts.map +1 -1
- package/dist/utils/service/venueSettlementUtils.d.ts +2 -2
- package/dist/utils/service/venueSettlementUtils.js +3 -3
- package/dist/utils/service/venueSettlementUtils.js.map +1 -1
- package/dist/utils/service/volunteerCompensationUtils.d.ts +2 -2
- package/dist/utils/service/volunteerCompensationUtils.js +1 -1
- package/dist/utils/service/volunteerCompensationUtils.js.map +1 -1
- package/dist/utils/slugUtils.d.ts +1 -1
- package/dist/utils/slugUtils.js +1 -1
- package/dist/utils/ticketPrintPostageUtils.d.ts +4 -4
- package/dist/utils/ticketPrintPostageUtils.js +5 -5
- package/dist/utils/ticketPrintPostageUtils.js.map +1 -1
- package/dist/utils/ticketTierSchedule.d.ts +1 -1
- package/dist/utils/ticketTierSchedule.js +4 -4
- package/dist/utils/ticketTierSchedule.js.map +1 -1
- package/dist/utils/trustScoreUtils.d.ts +1 -1
- package/dist/utils/trustScoreUtils.js +1 -1
- package/dist/utils/urlUtils.d.ts +2 -2
- package/dist/utils/urlUtils.js +2 -2
- package/dist/utils/userUtils.d.ts +4 -4
- package/dist/utils/userUtils.js +3 -3
- package/dist/utils/venueLoyalty/__tests__/eligibilityUtils.test.js +1 -1
- package/dist/utils/venueLoyalty/__tests__/redemptionCodeUtils.test.js +1 -1
- package/dist/utils/venueLoyalty/redemptionCodeUtils.d.ts +3 -3
- package/dist/utils/venueLoyalty/redemptionCodeUtils.js +3 -3
- package/dist/venueLoyaltyRedemption.d.ts +2 -2
- package/dist/venueLoyaltyRedemption.js +1 -1
- package/dist/venueMatch.d.ts +4 -4
- package/dist/venueMatch.d.ts.map +1 -1
- package/dist/venueMatch.js +1 -1
- package/dist/venueMatch.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +2 -0
- package/src/__tests__/agePolicy.test.ts +6 -6
- package/src/__tests__/bashEventCancellationPolicy.test.ts +2 -2
- package/src/__tests__/bashSectionTitleForBashType.test.ts +3 -3
- package/src/__tests__/definitionsHelpers.test.ts +1 -1
- package/src/__tests__/entertainmentNotableVenues.test.ts +1 -1
- package/src/__tests__/hostCrmCrowdPulse.test.ts +1 -1
- package/src/__tests__/hostCrmSegments.test.ts +2 -2
- package/src/__tests__/hostPromoter.test.ts +1 -1
- package/src/__tests__/influencerAudience.test.ts +1 -1
- package/src/__tests__/promoterCompetitionUtils.test.ts +3 -3
- package/src/__tests__/scenePulse.test.ts +1 -1
- package/src/__tests__/seatMap.test.ts +1 -1
- package/src/__tests__/ticketAdmission.test.ts +1 -1
- package/src/accessScreening.ts +1 -1
- package/src/aiApproval.ts +3 -3
- package/src/appleIapProducts.ts +1 -1
- package/src/applicationFunnel.ts +1 -1
- package/src/audienceImport.ts +2 -2
- package/src/bashEventCancellationPolicy.ts +3 -3
- package/src/budgetApproval.ts +1 -1
- package/src/causeTags.ts +4 -4
- package/src/competitionIdeas.ts +12 -12
- package/src/competitionValidation.ts +1 -1
- package/src/definitions.ts +42 -42
- package/src/discoveryScope.ts +2 -2
- package/src/entertainmentNotableVenues.ts +1 -1
- package/src/extendedSchemas.ts +41 -41
- package/src/fundingMeter.ts +1 -1
- package/src/giveaway.ts +2 -2
- package/src/guestPartySize.ts +3 -3
- package/src/home.ts +1 -1
- package/src/homepageSyntheticRows.ts +3 -4
- package/src/hostCrmAutomation.ts +11 -11
- package/src/hostCrmConstants.ts +1 -1
- package/src/hostCrmCrowdPulse.ts +2 -2
- package/src/hostCrmInsights.ts +3 -3
- package/src/hostCrmLastBashProof.ts +2 -2
- package/src/hostCrmSegments.ts +12 -12
- package/src/hostPromoter.ts +1 -1
- package/src/icebreakerPrompts.ts +2 -2
- package/src/index.ts +1 -1
- package/src/influencerAudience.ts +3 -3
- package/src/liveActivity/liveActivityTypes.ts +10 -10
- package/src/locationShare.ts +2 -2
- package/src/membershipDefinitions.ts +21 -21
- package/src/mirroredPrismaEnums.ts +6 -6
- package/src/onSaleCapabilityRecommendations.ts +1 -1
- package/src/partnerStoreTypes.ts +1 -1
- package/src/productLaunch.ts +2 -2
- package/src/relationshipHealth.ts +5 -5
- package/src/scenePulse.ts +2 -2
- package/src/seatMap.ts +3 -3
- package/src/seatMapBestAvailable.ts +2 -2
- package/src/serviceTypeLabels.ts +3 -3
- package/src/sideQuestIdeas.ts +8 -8
- package/src/sideQuestTypes.ts +2 -2
- package/src/sms/smsTemplates.ts +1 -1
- package/src/stripeListingSubscriptionMessages.ts +1 -1
- package/src/targetAudienceLabels.ts +1 -1
- package/src/ticketBnplPaymentMethods.ts +3 -3
- package/src/userReportTypes.ts +1 -1
- package/src/userTaste.ts +2 -2
- package/src/utils/__tests__/badgeUtils.test.ts +5 -5
- package/src/utils/__tests__/bashPointsPaymentUtils.test.ts +4 -4
- package/src/utils/__tests__/contentFilterUtils.test.ts +23 -23
- package/src/utils/__tests__/dateTimeUtils.test.ts +1 -1
- package/src/utils/__tests__/displayDateUtils.test.ts +1 -1
- package/src/utils/__tests__/flyerUtils.test.ts +1 -1
- package/src/utils/__tests__/getBackendHost.test.ts +8 -8
- package/src/utils/__tests__/getFrontendHost.native.test.ts +1 -1
- package/src/utils/__tests__/getFrontendHost.test.ts +9 -9
- package/src/utils/__tests__/organizationEntitlements.test.ts +1 -1
- package/src/utils/__tests__/paymentUtils.test.ts +7 -7
- package/src/utils/__tests__/promoCodesUtils.test.ts +2 -2
- package/src/utils/__tests__/qrCodeUtils.test.ts +4 -4
- package/src/utils/__tests__/reviewDimensionUtils.test.ts +1 -1
- package/src/utils/__tests__/stripeAccountUtils.test.ts +1 -1
- package/src/utils/__tests__/ticketPrintPostageUtils.test.ts +1 -1
- package/src/utils/addressUtils.ts +1 -1
- package/src/utils/apiUtils.ts +1 -1
- package/src/utils/birthdayExperienceQuality.ts +4 -4
- package/src/utils/blogUtils.ts +2 -2
- package/src/utils/discountEngine/discountCalculator.ts +1 -1
- package/src/utils/displayDateUtils.ts +2 -2
- package/src/utils/entertainmentDrawFit.ts +1 -1
- package/src/utils/eventTimezoneIana.ts +4 -4
- package/src/utils/flyerUtils.ts +3 -3
- package/src/utils/groupTicketCartUtils.ts +1 -1
- package/src/utils/guestSurface.ts +5 -5
- package/src/utils/lobFlyerUtils.ts +2 -2
- package/src/utils/luxonUtils.ts +5 -5
- package/src/utils/moodTrackUtils.ts +1 -1
- package/src/utils/nonprofitUtils.ts +3 -3
- package/src/utils/orgPromotionalPackageUtils.ts +1 -1
- package/src/utils/organizationEntitlements.ts +4 -4
- package/src/utils/paymentUtils.ts +10 -10
- package/src/utils/promoterCompetitionUtils.ts +8 -8
- package/src/utils/promotionBlastUtils.ts +4 -4
- package/src/utils/qrCodeUtils.ts +3 -3
- package/src/utils/recurrenceUtils.ts +1 -1
- package/src/utils/reputationUtils.ts +3 -3
- package/src/utils/reviewDimensionUtils.ts +2 -2
- package/src/utils/service/__tests__/billingCapUtils.test.ts +3 -3
- package/src/utils/service/__tests__/eventPromoterPhase3.test.ts +1 -1
- package/src/utils/service/__tests__/eventPromoterUtils.test.ts +1 -1
- package/src/utils/service/__tests__/frontendServiceBookingUtils.test.ts +2 -2
- package/src/utils/service/__tests__/serviceBookingExposureUtils.test.ts +1 -1
- package/src/utils/service/__tests__/serviceBookingStatusUtils.test.ts +2 -2
- package/src/utils/service/__tests__/serviceRateUtils.test.ts +6 -6
- package/src/utils/service/apiServiceBookingApiUtils.ts +1 -1
- package/src/utils/service/billingCapUtils.ts +5 -5
- package/src/utils/service/cancellationPolicyRefundResolver.ts +1 -1
- package/src/utils/service/eventPromoterUtils.ts +27 -27
- package/src/utils/service/foodAndBeverageQuote.ts +8 -8
- package/src/utils/service/offerAllowListUtils.ts +1 -1
- package/src/utils/service/offerComparisonUtils.ts +8 -8
- package/src/utils/service/serviceBookingExposureUtils.ts +8 -8
- package/src/utils/service/serviceBookingTypes.ts +2 -2
- package/src/utils/service/serviceFeaturedSortUtils.ts +2 -2
- package/src/utils/service/serviceListingMediaUtils.ts +2 -2
- package/src/utils/service/serviceUtils.ts +2 -2
- package/src/utils/service/unifiedPricingResolver.ts +5 -5
- package/src/utils/service/venueSettlementUtils.ts +3 -3
- package/src/utils/service/volunteerCompensationUtils.ts +3 -3
- package/src/utils/slugUtils.ts +1 -1
- package/src/utils/ticketPrintPostageUtils.ts +5 -5
- package/src/utils/ticketTierSchedule.ts +4 -4
- package/src/utils/trustScoreUtils.ts +1 -1
- package/src/utils/urlUtils.ts +2 -2
- package/src/utils/userUtils.ts +4 -4
- package/src/utils/venueLoyalty/__tests__/eligibilityUtils.test.ts +1 -1
- package/src/utils/venueLoyalty/__tests__/redemptionCodeUtils.test.ts +1 -1
- package/src/utils/venueLoyalty/redemptionCodeUtils.ts +3 -3
- package/src/venueLoyaltyRedemption.ts +2 -2
- package/src/venueMatch.ts +4 -4
package/src/competitionIdeas.ts
CHANGED
|
@@ -30,7 +30,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
30
30
|
{
|
|
31
31
|
id: "audience-favorite-dish",
|
|
32
32
|
title: "Audience favorite dish",
|
|
33
|
-
description: "Potluck or tasting event
|
|
33
|
+
description: "Potluck or tasting event. Guests vote for their favorite plate.",
|
|
34
34
|
competitionType: CompetitionType.AUDIENCE_VOTING,
|
|
35
35
|
subtype: "Best dish (potlucks)",
|
|
36
36
|
judgingType: JudgingType.AUDIENCE_VOTE,
|
|
@@ -57,7 +57,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
57
57
|
{
|
|
58
58
|
id: "best-costume",
|
|
59
59
|
title: "Best costume contest",
|
|
60
|
-
description: "Show off creative costumes
|
|
60
|
+
description: "Show off creative costumes. Judges or audience pick winners.",
|
|
61
61
|
competitionType: CompetitionType.SKILL,
|
|
62
62
|
subtype: "Costume contests",
|
|
63
63
|
judgingType: JudgingType.JUDGES,
|
|
@@ -66,7 +66,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
66
66
|
{
|
|
67
67
|
id: "best-dressed",
|
|
68
68
|
title: "Best dressed",
|
|
69
|
-
description: "Formal or themed event
|
|
69
|
+
description: "Formal or themed event. Who nailed the look?",
|
|
70
70
|
competitionType: CompetitionType.AUDIENCE_VOTING,
|
|
71
71
|
subtype: "Best dressed",
|
|
72
72
|
judgingType: JudgingType.AUDIENCE_VOTE,
|
|
@@ -75,7 +75,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
75
75
|
{
|
|
76
76
|
id: "bingo-night",
|
|
77
77
|
title: "Bingo night",
|
|
78
|
-
description: "Classic bingo rounds
|
|
78
|
+
description: "Classic bingo rounds. Host calls numbers and tracks winners.",
|
|
79
79
|
competitionType: CompetitionType.INTERACTIVE,
|
|
80
80
|
subtype: "Bingo",
|
|
81
81
|
judgingType: JudgingType.HOST_CHOOSES,
|
|
@@ -156,7 +156,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
156
156
|
{
|
|
157
157
|
id: "eating-contest",
|
|
158
158
|
title: "Eating contest",
|
|
159
|
-
description: "Timed eating challenge
|
|
159
|
+
description: "Timed eating challenge. Fastest or most completed wins.",
|
|
160
160
|
competitionType: CompetitionType.FOOD_DRINK,
|
|
161
161
|
subtype: "Eating competitions (hot wings, donuts, pie, etc.)",
|
|
162
162
|
judgingType: JudgingType.METRICS,
|
|
@@ -192,7 +192,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
192
192
|
{
|
|
193
193
|
id: "hashtag-photo-contest",
|
|
194
194
|
title: "Hashtag photo contest",
|
|
195
|
-
description: "Best photo posted with the event hashtag
|
|
195
|
+
description: "Best photo posted with the event hashtag. Host or crowd picks.",
|
|
196
196
|
competitionType: CompetitionType.SOCIAL_MEDIA,
|
|
197
197
|
subtype: "Best photo posted with event hashtag",
|
|
198
198
|
judgingType: JudgingType.AUDIENCE_VOTE,
|
|
@@ -219,7 +219,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
219
219
|
{
|
|
220
220
|
id: "minute-to-win-it",
|
|
221
221
|
title: "Minute to Win It games",
|
|
222
|
-
description: "Quick challenge stations
|
|
222
|
+
description: "Quick challenge stations. Host tracks fastest times.",
|
|
223
223
|
competitionType: CompetitionType.INTERACTIVE,
|
|
224
224
|
subtype: "Minute-to-Win-It style games",
|
|
225
225
|
judgingType: JudgingType.METRICS,
|
|
@@ -246,7 +246,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
246
246
|
{
|
|
247
247
|
id: "obstacle-course",
|
|
248
248
|
title: "Obstacle course race",
|
|
249
|
-
description: "Timed runs through obstacles
|
|
249
|
+
description: "Timed runs through obstacles. Fastest time wins.",
|
|
250
250
|
competitionType: CompetitionType.PHYSICAL,
|
|
251
251
|
subtype: "Obstacle courses",
|
|
252
252
|
judgingType: JudgingType.METRICS,
|
|
@@ -282,7 +282,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
282
282
|
{
|
|
283
283
|
id: "relay-race",
|
|
284
284
|
title: "Relay race",
|
|
285
|
-
description: "Team relay on the field
|
|
285
|
+
description: "Team relay on the field. First team across wins.",
|
|
286
286
|
competitionType: CompetitionType.PHYSICAL,
|
|
287
287
|
subtype: "Relay races",
|
|
288
288
|
judgingType: JudgingType.METRICS,
|
|
@@ -291,7 +291,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
291
291
|
{
|
|
292
292
|
id: "scavenger-hunt",
|
|
293
293
|
title: "Scavenger hunt",
|
|
294
|
-
description: "Teams find clues around the venue
|
|
294
|
+
description: "Teams find clues around the venue. First to finish wins.",
|
|
295
295
|
competitionType: CompetitionType.PHYSICAL,
|
|
296
296
|
subtype: "Scavenger hunts",
|
|
297
297
|
judgingType: JudgingType.METRICS,
|
|
@@ -336,7 +336,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
336
336
|
{
|
|
337
337
|
id: "treasure-hunt",
|
|
338
338
|
title: "Treasure hunt",
|
|
339
|
-
description: "Follow clues to a hidden prize
|
|
339
|
+
description: "Follow clues to a hidden prize. Host verifies first find.",
|
|
340
340
|
competitionType: CompetitionType.RANDOMIZED,
|
|
341
341
|
subtype: "Treasure hunts",
|
|
342
342
|
judgingType: JudgingType.METRICS,
|
|
@@ -354,7 +354,7 @@ export const COMPETITION_IDEAS: CompetitionIdea[] = [
|
|
|
354
354
|
{
|
|
355
355
|
id: "tug-of-war",
|
|
356
356
|
title: "Tug of war",
|
|
357
|
-
description: "Team bracket on the rope
|
|
357
|
+
description: "Team bracket on the rope. Last team standing wins.",
|
|
358
358
|
competitionType: CompetitionType.PHYSICAL,
|
|
359
359
|
subtype: "Tug of war",
|
|
360
360
|
judgingType: JudgingType.BRACKET_TOURNAMENT,
|
|
@@ -51,7 +51,7 @@ export function assertAllowedJudgingTypeForNew(
|
|
|
51
51
|
export const DEFAULT_COMPETITION_JUDGING_TYPE: JudgingType =
|
|
52
52
|
JudgingType.HOST_CHOOSES;
|
|
53
53
|
|
|
54
|
-
/** Single source of truth for judging-type copy
|
|
54
|
+
/** Single source of truth for judging-type copy. Shared by the host wizard and guest-facing display. */
|
|
55
55
|
export const JUDGING_TYPE_LABELS: Record<JudgingType, string> = {
|
|
56
56
|
[JudgingType.RANDOM_DRAW]: "Drawing (legacy)",
|
|
57
57
|
[JudgingType.HIGHEST_BID]: "Highest Bid (legacy)",
|
package/src/definitions.ts
CHANGED
|
@@ -43,11 +43,11 @@ import type { UtmFields } from "./utmAttribution.js";
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Prisma's `index-browser` bundle (used by Vite in bash-app) omits some enums as runtime
|
|
46
|
-
* values
|
|
46
|
+
* values. Importing them from `@prisma/client` yields `undefined` and crashes on first
|
|
47
47
|
* property access. Incomplete Jest `@prisma/client` mocks hit the same landmine.
|
|
48
48
|
* These mirrors match the Prisma schema / full client enum strings.
|
|
49
49
|
*
|
|
50
|
-
* "Also list as [complementary type]"
|
|
50
|
+
* "Also list as [complementary type]". A one-time identity-field prefill copy
|
|
51
51
|
* (see Service.complementaryOfServiceId), not an ongoing synced link. Scoped to
|
|
52
52
|
* the Vendors <-> EventServices pairing only (e.g. a food truck that vends
|
|
53
53
|
* publicly at festivals and is also paid a flat fee at private weddings).
|
|
@@ -62,7 +62,7 @@ export type ComplementaryServiceSourceType = keyof typeof COMPLEMENTARY_SERVICE_
|
|
|
62
62
|
export function isComplementaryServiceSourceType(
|
|
63
63
|
serviceType: ServiceTypes
|
|
64
64
|
): serviceType is ComplementaryServiceSourceType {
|
|
65
|
-
// String compares
|
|
65
|
+
// String compares. Avoid ServiceTypes.* enum access (undefined in Vite's
|
|
66
66
|
// @prisma/client index-browser bundle).
|
|
67
67
|
return serviceType === "Vendors" || serviceType === "EventServices";
|
|
68
68
|
}
|
|
@@ -78,7 +78,7 @@ export function complementaryServiceTypeFor(
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Human-readable label for a ServiceTypes value
|
|
81
|
+
* Human-readable label for a ServiceTypes value. The raw enum ("EventServices")
|
|
82
82
|
* is not fit for display copy. Only covers the values COMPLEMENTARY_SERVICE_TYPE
|
|
83
83
|
* can produce; extend as more callers need display labels for other types.
|
|
84
84
|
*/
|
|
@@ -108,7 +108,7 @@ export const ServiceBookingOfferStatus = {
|
|
|
108
108
|
Expired: "Expired",
|
|
109
109
|
} as const satisfies Record<ServiceBookingOfferStatusEnum, ServiceBookingOfferStatusEnum>;
|
|
110
110
|
|
|
111
|
-
/** Mirrors Prisma YearsOfExperience
|
|
111
|
+
/** Mirrors Prisma YearsOfExperience. `@prisma/client` browser/Jest bundles may omit runtime enum keys. */
|
|
112
112
|
export const YearsOfExperience = {
|
|
113
113
|
LessThanOneYear: "LessThanOneYear",
|
|
114
114
|
OneToThreeYears: "OneToThreeYears",
|
|
@@ -118,7 +118,7 @@ export const YearsOfExperience = {
|
|
|
118
118
|
|
|
119
119
|
export type YearsOfExperience = YearsOfExperienceEnum;
|
|
120
120
|
|
|
121
|
-
/** Mirrors Prisma `GovIdRetentionPolicy
|
|
121
|
+
/** Mirrors Prisma `GovIdRetentionPolicy`. `@prisma/client` browser/Jest bundles may omit runtime enum keys. */
|
|
122
122
|
export const GovIdRetentionPolicy = {
|
|
123
123
|
ThirtyDays: "ThirtyDays",
|
|
124
124
|
UntilIdExpires: "UntilIdExpires",
|
|
@@ -127,7 +127,7 @@ export const GovIdRetentionPolicy = {
|
|
|
127
127
|
|
|
128
128
|
export type GovIdRetentionPolicy = GovIdRetentionPolicyEnum;
|
|
129
129
|
|
|
130
|
-
/** Mirrors Prisma `AgePolicy
|
|
130
|
+
/** Mirrors Prisma `AgePolicy`. `@prisma/client` browser bundle omits runtime enum exports. */
|
|
131
131
|
export const AgePolicy = {
|
|
132
132
|
AllAges: "AllAges",
|
|
133
133
|
EighteenPlus: "EighteenPlus",
|
|
@@ -152,9 +152,9 @@ export function isIntroIntentId(value: string): value is IntroIntentId {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export const LOCUS_OF_CONTROL_OPTIONS = [
|
|
155
|
-
{ id: "internal", label: "Internal
|
|
156
|
-
{ id: "external", label: "External
|
|
157
|
-
{ id: "mixed", label: "Mixed
|
|
155
|
+
{ id: "internal", label: "Internal. I shape my own outcomes" },
|
|
156
|
+
{ id: "external", label: "External. Circumstances shape outcomes" },
|
|
157
|
+
{ id: "mixed", label: "Mixed. Bit of both" },
|
|
158
158
|
] as const;
|
|
159
159
|
|
|
160
160
|
export type LocusOfControlId = (typeof LOCUS_OF_CONTROL_OPTIONS)[number]["id"];
|
|
@@ -193,7 +193,7 @@ export function personalityOverlapHint(
|
|
|
193
193
|
b: string | null | undefined
|
|
194
194
|
): string | null {
|
|
195
195
|
if (!a || !b || !hasSensingIntuitionOverlap(a, b)) return null;
|
|
196
|
-
return `You both picked ${a[1].toUpperCase()}
|
|
196
|
+
return `You both picked ${a[1].toUpperCase()}. Good icebreaker.`;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
export function sharedIntroIntentHint(
|
|
@@ -228,7 +228,7 @@ export function isInterestExpressionMode(
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
export const INTROS_DISCLAIMER =
|
|
231
|
-
"Intros connects you only with people who have also explicitly opted in. Bash does not conduct background checks, verify identities beyond basic account registration, or screen users for any purpose. This feature supports platonic and professional connections only
|
|
231
|
+
"Intros connects you only with people who have also explicitly opted in. Bash does not conduct background checks, verify identities beyond basic account registration, or screen users for any purpose. This feature supports platonic and professional connections only. Romantic or sexual contact is a violation of our Community Guidelines. Always meet at the event, in public. Use the Report button if anyone makes you uncomfortable. By turning on Intros, you agree that Bash is not responsible for interactions between users.";
|
|
232
232
|
|
|
233
233
|
export const INTROS_DISCLAIMER_SHORT =
|
|
234
234
|
"Bash does not background-check users. Meet at the event, in public. Romantic or sexual contact is prohibited. Bash is not responsible for interactions between users.";
|
|
@@ -251,7 +251,7 @@ export const STRIPE_API_TIMEOUT_MS = 15000 as const; // 15 seconds for API calls
|
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* Bash Ideas: default number of *registered* interests (price willingness + email) to hit auto-publish.
|
|
254
|
-
* That is a “greenlight this concept” bar, not a forecast of door count
|
|
254
|
+
* That is a “greenlight this concept” bar, not a forecast of door count. Capacity and tickets are separate.
|
|
255
255
|
* Likes and favorites stay out of this meter (cheap signal vs. commitment); revisit weighting after data.
|
|
256
256
|
*/
|
|
257
257
|
export const DEFAULT_IDEA_INTEREST_THRESHOLD = 35 as const;
|
|
@@ -262,7 +262,7 @@ export const DEFAULT_IDEA_INTEREST_THRESHOLD = 35 as const;
|
|
|
262
262
|
*/
|
|
263
263
|
export const DEFAULT_SHOW_GOING_COUNT_AFTER = 35 as const;
|
|
264
264
|
|
|
265
|
-
/** Mirrors Prisma `BashPassTier
|
|
265
|
+
/** Mirrors Prisma `BashPassTier`. `@prisma/client` browser/Jest bundles may omit runtime enum keys. */
|
|
266
266
|
const BashPassTierValues = {
|
|
267
267
|
LITE: "LITE",
|
|
268
268
|
STANDARD: "STANDARD",
|
|
@@ -309,7 +309,7 @@ export const TICKET_PURCHASE_TYPE_BASHPOINTS = "BashPoints" as const;
|
|
|
309
309
|
export const TICKET_PURCHASE_TYPE_FREE = "Free" as const;
|
|
310
310
|
export const TICKET_PURCHASE_TYPE_COMP = "Comp" as const;
|
|
311
311
|
export const TICKET_PURCHASE_TYPE_BASHPASS = "BashPass" as const;
|
|
312
|
-
/** Unpaid reservation
|
|
312
|
+
/** Unpaid reservation. Pay at venue (Pay at Door). */
|
|
313
313
|
export const TICKET_PURCHASE_TYPE_PAY_AT_DOOR = "PayAtDoor" as const;
|
|
314
314
|
/** Cash collected at door (staff-marked). */
|
|
315
315
|
export const TICKET_PURCHASE_TYPE_CASH = "Cash" as const;
|
|
@@ -663,7 +663,7 @@ export const BASH_DETAIL_URL_PATTERN = `/bash/$bashEventIdSlug` as const;
|
|
|
663
663
|
/**
|
|
664
664
|
* Bash event wizard major/substep indices. Must match `AppWizard.Step` /
|
|
665
665
|
* `SubStep` child order in bash-app `BashEventWizard.tsx`. Deep links use
|
|
666
|
-
* these names
|
|
666
|
+
* these names. Do not hardcode `/major/sub` integers.
|
|
667
667
|
*/
|
|
668
668
|
export const BASH_EVENT_WIZARD_MAJOR = {
|
|
669
669
|
TEMPLATES: 0,
|
|
@@ -768,7 +768,7 @@ export const MAX_NUMBER_OF_TICKETS_PER_REQUEST_FOR_A_BASH_EVENT = 50 as const;
|
|
|
768
768
|
/** Bash detail: tiers shown before "Show all N ticket options". */
|
|
769
769
|
export const TICKET_TIERS_COLLAPSED_VISIBLE_COUNT = 5 as const;
|
|
770
770
|
|
|
771
|
-
/** Per-event cap
|
|
771
|
+
/** Per-event cap. Keeps checkout UX readable and limits tier spam. */
|
|
772
772
|
export const MAX_TICKET_TIERS_PER_BASH_EVENT = 15 as const;
|
|
773
773
|
|
|
774
774
|
export const MONTHS_PREVIOUS_THAT_STRIPE_ACCOUNTS_WILL_BE_SEARCHED_BY_EMAIL =
|
|
@@ -786,7 +786,7 @@ export const HTTP_CODE_GONE = 410 as const;
|
|
|
786
786
|
export const ERR_UNAUTHORIZED_REQUEST =
|
|
787
787
|
"Unauthorized to perform requested action. Have you logged in?" as const;
|
|
788
788
|
export const ERR_SESSION_EXPIRED =
|
|
789
|
-
"Your session has expired
|
|
789
|
+
"Your session has expired. Please refresh or log in again." as const;
|
|
790
790
|
|
|
791
791
|
export const DEFAULT_PRISMA_TTL_SECONDS = 60 as const;
|
|
792
792
|
export const PRISMA_MEDIA_TTL_SECONDS = 60 * 5; // 5 hours
|
|
@@ -831,7 +831,7 @@ export type FilterFields = {
|
|
|
831
831
|
/// of the selected options.
|
|
832
832
|
dietaryOptions: string[];
|
|
833
833
|
/// Income brackets the host selected on `TargetAudience` (plus secondary).
|
|
834
|
-
/// Marketing / discovery only
|
|
834
|
+
/// Marketing / discovery only. Same string values as `IncomeRange` enum.
|
|
835
835
|
incomeRange: string[];
|
|
836
836
|
hasOpenTasks: boolean; // Boolean filter for events with open volunteer tasks
|
|
837
837
|
acceptsBashPoints: boolean; // Boolean filter for events with BashPoints-priced tickets
|
|
@@ -857,7 +857,7 @@ export const EMPTY_FILTER_FIELDS: FilterFields = {
|
|
|
857
857
|
ambashadorOnly: false,
|
|
858
858
|
};
|
|
859
859
|
|
|
860
|
-
/** Fresh filter state
|
|
860
|
+
/** Fresh filter state. Use for `useState` / reset so nested arrays are not shared. */
|
|
861
861
|
export function createEmptyFilterFields(): FilterFields {
|
|
862
862
|
return {
|
|
863
863
|
price: [],
|
|
@@ -1095,7 +1095,7 @@ export interface TicketTierAvailability {
|
|
|
1095
1095
|
interestThreshold?: number; // target, UnlockWhenInterestReached
|
|
1096
1096
|
ticketsSoldCount?: number; // current count, UnlockWhenTicketsSold
|
|
1097
1097
|
ticketsSoldThreshold?: number; // target, UnlockWhenTicketsSold
|
|
1098
|
-
isViewerEngaged?: boolean; // EngagedUsersOnly
|
|
1098
|
+
isViewerEngaged?: boolean; // EngagedUsersOnly. Undefined if not logged in
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
1101
|
export interface AvailableTicketsForTicketTier {
|
|
@@ -1141,13 +1141,13 @@ export interface ApiResult<T, P extends ErrorDataType = ErrorDataType> {
|
|
|
1141
1141
|
* (e.g. guest roster `depth`, ticket `refundMode`).
|
|
1142
1142
|
*/
|
|
1143
1143
|
meta?: Record<string, unknown>;
|
|
1144
|
-
/** PATCH group member / some RSVP endpoints
|
|
1144
|
+
/** PATCH group member / some RSVP endpoints. True when BashPoints RSVP bonus was newly awarded */
|
|
1145
1145
|
rsvpBonusAwarded?: boolean;
|
|
1146
|
-
/** POST event task assign
|
|
1146
|
+
/** POST event task assign. True when volunteer guestlist invite was created */
|
|
1147
1147
|
addedToGuestlist?: boolean;
|
|
1148
|
-
/** POST event task assign
|
|
1148
|
+
/** POST event task assign. True when FirstTaskTaken BashPoints were newly awarded */
|
|
1149
1149
|
taskBonusAwarded?: boolean;
|
|
1150
|
-
/** POST /volunteer
|
|
1150
|
+
/** POST /volunteer. True when first service profile bonus was newly awarded */
|
|
1151
1151
|
bonusAwarded?: boolean;
|
|
1152
1152
|
status?: number;
|
|
1153
1153
|
token?: string;
|
|
@@ -1188,11 +1188,11 @@ export function removeDataFromResult<
|
|
|
1188
1188
|
}
|
|
1189
1189
|
|
|
1190
1190
|
/**
|
|
1191
|
-
* Ticket Saver (inventory)
|
|
1191
|
+
* Ticket Saver (inventory). Single user-facing line for sold-out / capacity during purchase flows.
|
|
1192
1192
|
* Pair with {@link ApiErrorType.NotEnoughTicketsAvailable} in API results and bash-app checkout.
|
|
1193
1193
|
*/
|
|
1194
1194
|
export const TICKET_SAVER_USER_MESSAGE_NOT_ENOUGH_TICKETS =
|
|
1195
|
-
"Could not complete purchase
|
|
1195
|
+
"Could not complete purchase. Not enough tickets left.";
|
|
1196
1196
|
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Payment succeeded in Stripe but tickets could not be issued (e.g. inventory). Refund was attempted automatically.
|
|
@@ -1220,7 +1220,7 @@ export enum ApiErrorType {
|
|
|
1220
1220
|
payment_intent_creation_failed,
|
|
1221
1221
|
/** Host requires waiver / custom terms; buyer did not attest acceptance */
|
|
1222
1222
|
EventWaiverNotAccepted,
|
|
1223
|
-
/** Bash is not Published/PreSale
|
|
1223
|
+
/** Bash is not Published/PreSale. Ticket purchase and checkout creation are blocked */
|
|
1224
1224
|
EventNotAcceptingPurchases,
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
@@ -1278,7 +1278,7 @@ export interface StripeCreateBashEventTicketsCheckoutSessionArgs extends UtmFiel
|
|
|
1278
1278
|
ticketListStr: string;
|
|
1279
1279
|
promoCode?: string;
|
|
1280
1280
|
|
|
1281
|
-
// Named ticket assignment
|
|
1281
|
+
// Named ticket assignment. Optional per-ticket attendee info
|
|
1282
1282
|
attendeeAssignments?: Array<{ fullName?: string; userId?: string; email?: string }>;
|
|
1283
1283
|
|
|
1284
1284
|
// Mixed cart support (BashPoints + USD tickets)
|
|
@@ -1291,7 +1291,7 @@ export interface StripeCreateBashEventTicketsCheckoutSessionArgs extends UtmFiel
|
|
|
1291
1291
|
// Attribution ref from URL (referral code or userId) - backend resolves to referrerId
|
|
1292
1292
|
attributionRef?: string;
|
|
1293
1293
|
|
|
1294
|
-
/** Required when the event has `waiverRequired
|
|
1294
|
+
/** Required when the event has `waiverRequired`. Buyer attested to host waiver/terms */
|
|
1295
1295
|
waiverAccepted?: boolean;
|
|
1296
1296
|
|
|
1297
1297
|
/** EventGroup id when purchasing a group package for the crew */
|
|
@@ -1318,7 +1318,7 @@ export interface StripeCreateBashEventDonationCheckoutSessionArgs extends UtmFie
|
|
|
1318
1318
|
currency: string;
|
|
1319
1319
|
paymentMethodType: string;
|
|
1320
1320
|
donationAmount: number;
|
|
1321
|
-
/** Required for guest (unauthenticated) donation checkout
|
|
1321
|
+
/** Required for guest (unauthenticated) donation checkout. Stripe collects payment; we persist receipt to this email. */
|
|
1322
1322
|
guestEmail?: string;
|
|
1323
1323
|
guestFirstName?: string;
|
|
1324
1324
|
guestLastName?: string;
|
|
@@ -1418,7 +1418,7 @@ export type StripeLinkingStatus = {
|
|
|
1418
1418
|
hasOutstandingRequirements: boolean;
|
|
1419
1419
|
paymentsEnabled: boolean;
|
|
1420
1420
|
taxMonitoringEnabled: boolean;
|
|
1421
|
-
/** Host account missing business_type or MCC
|
|
1421
|
+
/** Host account missing business_type or MCC. Blocks Cash App eligibility. */
|
|
1422
1422
|
missingBusinessProfileForCashApp?: boolean;
|
|
1423
1423
|
cardPaymentsActive?: boolean;
|
|
1424
1424
|
klarnaPaymentsActive?: boolean;
|
|
@@ -1543,7 +1543,7 @@ export { BracketType, ServiceBookingSettlementStatusLabel } from "./mirroredPris
|
|
|
1543
1543
|
// Pattern matches BracketType in mirroredPrismaEnums.ts.
|
|
1544
1544
|
|
|
1545
1545
|
/**
|
|
1546
|
-
* Mirrors Prisma `CompetitionPurpose
|
|
1546
|
+
* Mirrors Prisma `CompetitionPurpose`. Distinguishes consumer contests
|
|
1547
1547
|
* (vote/bracket/raffle) from ticket-sales promoter races.
|
|
1548
1548
|
*/
|
|
1549
1549
|
export const CompetitionPurpose = {
|
|
@@ -1553,7 +1553,7 @@ export const CompetitionPurpose = {
|
|
|
1553
1553
|
export type CompetitionPurpose = (typeof CompetitionPurpose)[keyof typeof CompetitionPurpose];
|
|
1554
1554
|
|
|
1555
1555
|
/**
|
|
1556
|
-
* Mirrors Prisma `PromoterRewardMode
|
|
1556
|
+
* Mirrors Prisma `PromoterRewardMode`. How milestone rewards are calculated
|
|
1557
1557
|
* in a PROMOTER competition.
|
|
1558
1558
|
*/
|
|
1559
1559
|
export const PromoterRewardMode = {
|
|
@@ -1563,7 +1563,7 @@ export const PromoterRewardMode = {
|
|
|
1563
1563
|
export type PromoterRewardMode = (typeof PromoterRewardMode)[keyof typeof PromoterRewardMode];
|
|
1564
1564
|
|
|
1565
1565
|
/**
|
|
1566
|
-
* Mirrors Prisma `PromoterRecruitMode
|
|
1566
|
+
* Mirrors Prisma `PromoterRecruitMode`. Who can enroll as a promoter.
|
|
1567
1567
|
*/
|
|
1568
1568
|
export const PromoterRecruitMode = {
|
|
1569
1569
|
Public: "Public",
|
|
@@ -1573,7 +1573,7 @@ export const PromoterRecruitMode = {
|
|
|
1573
1573
|
export type PromoterRecruitMode = (typeof PromoterRecruitMode)[keyof typeof PromoterRecruitMode];
|
|
1574
1574
|
|
|
1575
1575
|
/**
|
|
1576
|
-
* Mirrors Prisma `PromoterRewardType
|
|
1576
|
+
* Mirrors Prisma `PromoterRewardType`. Category of reward a promoter can earn.
|
|
1577
1577
|
*/
|
|
1578
1578
|
export const PromoterRewardType = {
|
|
1579
1579
|
CASH: "CASH",
|
|
@@ -1589,7 +1589,7 @@ export const PromoterRewardType = {
|
|
|
1589
1589
|
export type PromoterRewardType = (typeof PromoterRewardType)[keyof typeof PromoterRewardType];
|
|
1590
1590
|
|
|
1591
1591
|
/**
|
|
1592
|
-
* Mirrors Prisma `PromoterRewardStatus
|
|
1592
|
+
* Mirrors Prisma `PromoterRewardStatus`. Lifecycle state of a single earned reward.
|
|
1593
1593
|
*/
|
|
1594
1594
|
export const PromoterRewardStatus = {
|
|
1595
1595
|
PENDING: "PENDING",
|
|
@@ -1599,7 +1599,7 @@ export const PromoterRewardStatus = {
|
|
|
1599
1599
|
} as const;
|
|
1600
1600
|
export type PromoterRewardStatus = (typeof PromoterRewardStatus)[keyof typeof PromoterRewardStatus];
|
|
1601
1601
|
|
|
1602
|
-
// Re-exported for backward compatibility during migration
|
|
1602
|
+
// Re-exported for backward compatibility during migration. See serviceTypeLabels.ts/targetAudienceLabels.ts
|
|
1603
1603
|
// for the canonical, consolidated source (following the BracketType precedent above).
|
|
1604
1604
|
export { SERVICE_TYPE_LABELS } from "./serviceTypeLabels.js";
|
|
1605
1605
|
export {
|
|
@@ -1859,8 +1859,8 @@ export const BashEventTypeToString: BashEventTypeToStringType = {
|
|
|
1859
1859
|
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Positive-framed dietary accommodations a host can advertise on a bash and
|
|
1862
|
-
* guests can filter by on the homepage. Labels are intentionally upbeat
|
|
1863
|
-
* "options available" rather than "free of"
|
|
1862
|
+
* guests can filter by on the homepage. Labels are intentionally upbeat.
|
|
1863
|
+
* "options available" rather than "free of". And stay short enough for tag
|
|
1864
1864
|
* chips. See `DietaryOption` in `prisma/schema.prisma` for the canonical list.
|
|
1865
1865
|
*/
|
|
1866
1866
|
export type DietaryOptionToStringType = {
|
|
@@ -1911,7 +1911,7 @@ export const DIETARY_OPTION_VALUES: ReadonlyArray<DietaryOption> = [
|
|
|
1911
1911
|
];
|
|
1912
1912
|
|
|
1913
1913
|
/**
|
|
1914
|
-
* Guest-facing filter chips
|
|
1914
|
+
* Guest-facing filter chips. Everyday accommodations only.
|
|
1915
1915
|
* Religious, drink, and diet-trend tags stay on the host form / enum
|
|
1916
1916
|
* so existing events keep their data, but they do not crowd the filter menu.
|
|
1917
1917
|
*/
|
|
@@ -2643,7 +2643,7 @@ export const DEFAULT_TEMPORARY_BADGES: Record<string, TemporaryBadge> = {
|
|
|
2643
2643
|
firstBatchOwner: {
|
|
2644
2644
|
id: "firstBatchOwner",
|
|
2645
2645
|
name: "Bash First Batch Owner",
|
|
2646
|
-
description: "Owns a Bash PowerPack 300 Founder's Edition
|
|
2646
|
+
description: "Owns a Bash PowerPack 300 Founder's Edition. First Batch.",
|
|
2647
2647
|
imageUrl: "/badges/first-batch-owner.png",
|
|
2648
2648
|
category: BadgeCategory.Special,
|
|
2649
2649
|
isActive: true,
|
package/src/discoveryScope.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Geographic / importance scope for public discovery.
|
|
3
|
-
* Orthogonal to `BashEventType
|
|
3
|
+
* Orthogonal to `BashEventType`. A Fair can be Local or State.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export const DiscoveryScope = {
|
|
@@ -83,7 +83,7 @@ export function isNationalOrInternational(scope: DiscoveryScope): boolean {
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Known touring / destination brands that are a hard signal for National.
|
|
86
|
-
* Small allowlist
|
|
86
|
+
* Small allowlist. Not a taxonomy.
|
|
87
87
|
*/
|
|
88
88
|
export const NATIONAL_SCOPE_BRAND_PATTERN =
|
|
89
89
|
/\b(insomniac|c3 presents|aeg presents|live nation|coachella|lollapalooza|bonnaroo|ultra miami|edc las vegas|edc vegas|burning man|sxsw|comic-?con|ces\b|super bowl|final four|wrestlemania)\b/i;
|
|
@@ -132,6 +132,6 @@ export function formatNotableVenueEntryLine(
|
|
|
132
132
|
): string {
|
|
133
133
|
const reasons = formatNotableVenueReasons(entry);
|
|
134
134
|
const favorite = entry.isFavorite ? " ★" : "";
|
|
135
|
-
if (reasons) return `${entry.name}${favorite}
|
|
135
|
+
if (reasons) return `${entry.name}${favorite}. ${reasons}`;
|
|
136
136
|
return `${entry.name}${favorite}`;
|
|
137
137
|
}
|