@bash-app/bash-common 30.368.0 → 30.371.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/accessScreening.js +1 -0
- package/dist/aiApproval.js +1 -0
- package/dist/aiEventPlan.js +1 -0
- package/dist/bashFeedTypes.js +1 -0
- package/dist/bookingIntent.js +1 -0
- package/dist/causeTags.js +1 -0
- package/dist/entertainmentNotableVenues.js +1 -0
- package/dist/groupTicketUtils.js +1 -0
- package/dist/guestPartySize.js +1 -0
- package/dist/hostCrmAutomation.js +1 -0
- package/dist/hostCrmConstants.js +1 -0
- package/dist/hostCrmInsights.js +1 -0
- package/dist/hostCrmSegments.js +1 -0
- package/dist/icebreakerPrompts.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/influencerAudience.js +1 -0
- package/dist/legalTemplates.js +1 -0
- package/dist/liveActivity/liveActivityTypes.d.ts +59 -0
- package/dist/liveActivity/liveActivityTypes.d.ts.map +1 -0
- package/dist/liveActivity/liveActivityTypes.js +27 -0
- package/dist/liveActivity/liveActivityTypes.js.map +1 -0
- package/dist/membershipDefinitions.js +1 -0
- package/dist/mirroredPrismaEnums.js +1 -0
- package/dist/onSaleCapabilityRecommendations.js +1 -0
- package/dist/partnerStoreTypes.js +1 -0
- package/dist/productLaunch.js +1 -0
- package/dist/relationshipHealth.js +1 -0
- package/dist/requestAuthUser.js +1 -0
- package/dist/sideQuestIdeas.js +1 -0
- package/dist/storePrintArtworkUtils.js +1 -0
- package/dist/storeTypes.js +1 -0
- package/dist/stripeListingSubscriptionMessages.js +1 -0
- package/dist/templates/eventTemplates.js +1 -0
- package/dist/ticketBnplPaymentMethods.js +1 -0
- package/dist/userReportTypes.js +1 -0
- package/dist/utils/__tests__/organizationEntitlements.test.js +42 -9
- package/dist/utils/__tests__/organizationEntitlements.test.js.map +1 -1
- package/dist/utils/agencyBookingCheckoutCopy.js +1 -0
- package/dist/utils/arrayUtils.js +1 -0
- package/dist/utils/bashPointsPaymentUtils.js +1 -0
- package/dist/utils/birthdayExperienceQuality.js +1 -0
- package/dist/utils/contentFilterUtils.js +1 -0
- package/dist/utils/discountEngine/eligibilityValidator.js +1 -0
- package/dist/utils/displayDateUtils.js +1 -0
- package/dist/utils/entertainmentDrawFit.js +1 -0
- package/dist/utils/entityUtils.js +1 -0
- package/dist/utils/featuredDiscoveryGeo.js +1 -0
- package/dist/utils/flyerUtils.js +1 -0
- package/dist/utils/generalDateTimeUtils.js +1 -0
- package/dist/utils/lobFlyerUtils.js +1 -0
- package/dist/utils/localPartnerHours.js +1 -0
- package/dist/utils/luxonUtils.js +1 -0
- package/dist/utils/mathUtils.js +1 -0
- package/dist/utils/mediaClientDefaults.js +1 -0
- package/dist/utils/nonprofitUtils.js +1 -0
- package/dist/utils/objUtils.js +1 -0
- package/dist/utils/orgPromotionalPackageUtils.js +1 -0
- package/dist/utils/organizationEntitlements.d.ts +27 -7
- package/dist/utils/organizationEntitlements.d.ts.map +1 -1
- package/dist/utils/organizationEntitlements.js +28 -11
- package/dist/utils/organizationEntitlements.js.map +1 -1
- package/dist/utils/promotionBlastUtils.js +1 -0
- package/dist/utils/reputationUtils.js +1 -0
- package/dist/utils/reviewDimensionUtils.js +1 -0
- package/dist/utils/service/attendeeOptionUtils.js +1 -0
- package/dist/utils/service/billingCapUtils.js +1 -0
- package/dist/utils/service/eventPromoterUtils.js +1 -0
- package/dist/utils/service/offerAllowListUtils.js +1 -0
- package/dist/utils/service/offerComparisonUtils.js +1 -0
- package/dist/utils/service/regexUtils.js +1 -0
- package/dist/utils/service/serviceBookingExposureUtils.js +1 -0
- package/dist/utils/service/serviceFeaturedSortUtils.js +1 -0
- package/dist/utils/service/unifiedPricingResolver.js +1 -0
- package/dist/utils/service/venueSettlementUtils.js +1 -0
- package/dist/utils/service/volunteerCompensationUtils.js +1 -0
- package/dist/utils/serviceAvailabilityDisplay.js +1 -0
- package/dist/utils/sortUtils.js +1 -0
- package/dist/utils/stringUtils.js +1 -0
- package/dist/utils/ticketCheckInDisplay.js +1 -0
- package/dist/utils/trustScoreUtils.js +1 -0
- package/dist/utils/typeUtils.js +1 -0
- package/dist/utils/userPromoCodeUtils.js +1 -0
- package/dist/utils/userUtils.js +1 -0
- package/dist/utils/venueLoyalty/redemptionCodeUtils.js +1 -0
- package/dist/utils/venueTypeFormatter.js +1 -0
- package/dist/utmAttribution.js +1 -0
- package/dist/venueMatch.js +1 -0
- package/package.json +1 -1
- package/prisma/schema.prisma +377 -0
- package/src/index.ts +1 -0
- package/src/liveActivity/liveActivityTypes.ts +75 -0
- package/src/utils/__tests__/organizationEntitlements.test.ts +47 -8
- package/src/utils/organizationEntitlements.ts +42 -11
|
@@ -10,20 +10,29 @@ export declare const ACTIVE_ORG_SUBSCRIPTION_STATUSES: readonly ["Active", "Tria
|
|
|
10
10
|
export interface OrganizationEntitlementInput {
|
|
11
11
|
subscriptionTier?: string | null;
|
|
12
12
|
subscriptionStatus?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* True only when ops provisioned Enterprise via a signed deal (admin
|
|
15
|
+
* enterprise-provisioning endpoint). Self-serve Stripe checkout can also set
|
|
16
|
+
* subscriptionTier="Enterprise" but never sets this. Optional/undefined is
|
|
17
|
+
* treated as false so legacy call sites that don't select this field fail
|
|
18
|
+
* closed on the sales-gated surface rather than open.
|
|
19
|
+
*/
|
|
20
|
+
enterpriseSalesProvisioned?: boolean | null;
|
|
13
21
|
}
|
|
14
22
|
/**
|
|
15
|
-
* Vanity subdomains ({slug}.bash.community)
|
|
16
|
-
*
|
|
17
|
-
*
|
|
23
|
+
* Vanity subdomains ({slug}.bash.community) and custom domains (white-label)
|
|
24
|
+
* are self-serve-eligible Enterprise perks — available whether Enterprise was
|
|
25
|
+
* bought via self-serve Stripe checkout or a sales-negotiated deal.
|
|
18
26
|
*/
|
|
19
27
|
export declare function organizationHasVanitySubdomain(org: OrganizationEntitlementInput | null | undefined): boolean;
|
|
20
28
|
/**
|
|
21
29
|
* Shared gate for the enterprise platform surface: org-scoped audit logs,
|
|
22
30
|
* SSO/identity setup, procurement approval policy, API keys, webhooks, and
|
|
23
|
-
* third-party integrations (Mailchimp/Salesforce).
|
|
24
|
-
* perks
|
|
25
|
-
*
|
|
26
|
-
*
|
|
31
|
+
* third-party integrations (Mailchimp/Salesforce). Unlike the white-label
|
|
32
|
+
* perks above, this surface requires a sales-negotiated deal
|
|
33
|
+
* (`enterpriseSalesProvisioned`) — self-serve $495/mo checkout alone does not
|
|
34
|
+
* unlock SSO, compliance, procurement, or API access, since those typically
|
|
35
|
+
* involve a security review or contract terms sales owns.
|
|
27
36
|
*/
|
|
28
37
|
export declare function organizationHasEnterprisePlatformAccess(org: OrganizationEntitlementInput | null | undefined): boolean;
|
|
29
38
|
/** Org-admin audit log viewer + CSV export. */
|
|
@@ -36,4 +45,15 @@ export declare function organizationHasProcurementAccess(org: OrganizationEntitl
|
|
|
36
45
|
export declare function organizationHasApiAccess(org: OrganizationEntitlementInput | null | undefined): boolean;
|
|
37
46
|
/** Compliance docs (W-9 tax collection, certificate-of-insurance tracking). */
|
|
38
47
|
export declare function organizationHasComplianceAccess(org: OrganizationEntitlementInput | null | undefined): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Custom domains (white-label tier): real DNS (e.g. members.acme.com) provisioned
|
|
50
|
+
* via AWS CloudFront SaaS Manager Distribution Tenants, plus the "Powered by Bash"
|
|
51
|
+
* removal toggle. Same Enterprise + active/trialing gate as
|
|
52
|
+
* {@link organizationHasVanitySubdomain} for MVP — reuse the existing tier rather
|
|
53
|
+
* than invent a new pricing tier now. A dedicated "White-label" tier is a
|
|
54
|
+
* fast-follow if sales needs separate pricing. Self-serve-eligible: does NOT
|
|
55
|
+
* require {@link organizationHasEnterprisePlatformAccess}'s
|
|
56
|
+
* `enterpriseSalesProvisioned` flag.
|
|
57
|
+
*/
|
|
58
|
+
export declare function organizationHasCustomDomainAccess(org: OrganizationEntitlementInput | null | undefined): boolean;
|
|
39
59
|
//# sourceMappingURL=organizationEntitlements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationEntitlements.d.ts","sourceRoot":"","sources":["../../src/utils/organizationEntitlements.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,2EAA2E;AAC3E,eAAO,MAAM,gCAAgC,iCAGnC,CAAC;AAEX,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"organizationEntitlements.d.ts","sourceRoot":"","sources":["../../src/utils/organizationEntitlements.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,2EAA2E;AAC3E,eAAO,MAAM,gCAAgC,iCAGnC,CAAC;AAEX,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;;;;;OAMG;IACH,0BAA0B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC7C;AAgBD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET;AAED;;;;;;;;GAQG;AACH,wBAAgB,uCAAuC,CACrD,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET;AAED,+CAA+C;AAC/C,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET;AAED,0BAA0B;AAC1B,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET;AAED,+DAA+D;AAC/D,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET;AAED,iEAAiE;AACjE,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET;AAED,+EAA+E;AAC/E,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET"}
|
|
@@ -10,12 +10,7 @@ export const ACTIVE_ORG_SUBSCRIPTION_STATUSES = [
|
|
|
10
10
|
"Active",
|
|
11
11
|
"Trialing",
|
|
12
12
|
];
|
|
13
|
-
|
|
14
|
-
* Vanity subdomains ({slug}.bash.community) are an Enterprise-only perk. All other
|
|
15
|
-
* orgs use the canonical path URL (bash.community/org/{slug}). Requires an active
|
|
16
|
-
* (or trialing) subscription so a lapsed Enterprise org falls back to the path.
|
|
17
|
-
*/
|
|
18
|
-
export function organizationHasVanitySubdomain(org) {
|
|
13
|
+
function hasActiveEnterpriseTier(org) {
|
|
19
14
|
if (!org)
|
|
20
15
|
return false;
|
|
21
16
|
if (org.subscriptionTier !== "Enterprise")
|
|
@@ -27,16 +22,25 @@ export function organizationHasVanitySubdomain(org) {
|
|
|
27
22
|
return true;
|
|
28
23
|
return ACTIVE_ORG_SUBSCRIPTION_STATUSES.includes(org.subscriptionStatus);
|
|
29
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Vanity subdomains ({slug}.bash.community) and custom domains (white-label)
|
|
27
|
+
* are self-serve-eligible Enterprise perks — available whether Enterprise was
|
|
28
|
+
* bought via self-serve Stripe checkout or a sales-negotiated deal.
|
|
29
|
+
*/
|
|
30
|
+
export function organizationHasVanitySubdomain(org) {
|
|
31
|
+
return hasActiveEnterpriseTier(org);
|
|
32
|
+
}
|
|
30
33
|
/**
|
|
31
34
|
* Shared gate for the enterprise platform surface: org-scoped audit logs,
|
|
32
35
|
* SSO/identity setup, procurement approval policy, API keys, webhooks, and
|
|
33
|
-
* third-party integrations (Mailchimp/Salesforce).
|
|
34
|
-
* perks
|
|
35
|
-
*
|
|
36
|
-
*
|
|
36
|
+
* third-party integrations (Mailchimp/Salesforce). Unlike the white-label
|
|
37
|
+
* perks above, this surface requires a sales-negotiated deal
|
|
38
|
+
* (`enterpriseSalesProvisioned`) — self-serve $495/mo checkout alone does not
|
|
39
|
+
* unlock SSO, compliance, procurement, or API access, since those typically
|
|
40
|
+
* involve a security review or contract terms sales owns.
|
|
37
41
|
*/
|
|
38
42
|
export function organizationHasEnterprisePlatformAccess(org) {
|
|
39
|
-
return
|
|
43
|
+
return hasActiveEnterpriseTier(org) && org?.enterpriseSalesProvisioned === true;
|
|
40
44
|
}
|
|
41
45
|
/** Org-admin audit log viewer + CSV export. */
|
|
42
46
|
export function organizationHasAuditLogAccess(org) {
|
|
@@ -58,4 +62,17 @@ export function organizationHasApiAccess(org) {
|
|
|
58
62
|
export function organizationHasComplianceAccess(org) {
|
|
59
63
|
return organizationHasEnterprisePlatformAccess(org);
|
|
60
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Custom domains (white-label tier): real DNS (e.g. members.acme.com) provisioned
|
|
67
|
+
* via AWS CloudFront SaaS Manager Distribution Tenants, plus the "Powered by Bash"
|
|
68
|
+
* removal toggle. Same Enterprise + active/trialing gate as
|
|
69
|
+
* {@link organizationHasVanitySubdomain} for MVP — reuse the existing tier rather
|
|
70
|
+
* than invent a new pricing tier now. A dedicated "White-label" tier is a
|
|
71
|
+
* fast-follow if sales needs separate pricing. Self-serve-eligible: does NOT
|
|
72
|
+
* require {@link organizationHasEnterprisePlatformAccess}'s
|
|
73
|
+
* `enterpriseSalesProvisioned` flag.
|
|
74
|
+
*/
|
|
75
|
+
export function organizationHasCustomDomainAccess(org) {
|
|
76
|
+
return organizationHasVanitySubdomain(org);
|
|
77
|
+
}
|
|
61
78
|
//# sourceMappingURL=organizationEntitlements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationEntitlements.js","sourceRoot":"","sources":["../../src/utils/organizationEntitlements.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ;IACR,UAAU;CACF,CAAC;
|
|
1
|
+
{"version":3,"file":"organizationEntitlements.js","sourceRoot":"","sources":["../../src/utils/organizationEntitlements.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ;IACR,UAAU;CACF,CAAC;AAeX,SAAS,uBAAuB,CAC9B,GAAoD;IAEpD,IAAI,CAAC,GAAG;QAAE,OAAO,KAAK,CAAC;IACvB,IAAI,GAAG,CAAC,gBAAgB,KAAK,YAAY;QAAE,OAAO,KAAK,CAAC;IACxD,+EAA+E;IAC/E,4EAA4E;IAC5E,4BAA4B;IAC5B,IAAI,GAAG,CAAC,kBAAkB,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC;IAChD,OAAQ,gCAAsD,CAAC,QAAQ,CACrE,GAAG,CAAC,kBAAkB,CACvB,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,8BAA8B,CAC5C,GAAoD;IAEpD,OAAO,uBAAuB,CAAC,GAAG,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uCAAuC,CACrD,GAAoD;IAEpD,OAAO,uBAAuB,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,0BAA0B,KAAK,IAAI,CAAC;AAClF,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,6BAA6B,CAC3C,GAAoD;IAEpD,OAAO,uCAAuC,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,0BAA0B;AAC1B,MAAM,UAAU,wBAAwB,CACtC,GAAoD;IAEpD,OAAO,uCAAuC,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,gCAAgC,CAC9C,GAAoD;IAEpD,OAAO,uCAAuC,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,wBAAwB,CACtC,GAAoD;IAEpD,OAAO,uCAAuC,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,+BAA+B,CAC7C,GAAoD;IAEpD,OAAO,uCAAuC,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,iCAAiC,CAC/C,GAAoD;IAEpD,OAAO,8BAA8B,CAAC,GAAG,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -85,3 +85,4 @@ export function generatePromotionBlastConfirmationCode() {
|
|
|
85
85
|
export function promotionBlastDeepLinkPath(bashEventId, blastId) {
|
|
86
86
|
return `/bash/${encodeURIComponent(bashEventId)}?tab=promotions&blast=${encodeURIComponent(blastId)}`;
|
|
87
87
|
}
|
|
88
|
+
//# sourceMappingURL=promotionBlastUtils.js.map
|
|
@@ -62,3 +62,4 @@ export function compareFeaturedServices(now = new Date()) {
|
|
|
62
62
|
}
|
|
63
63
|
/** Minimum number of active featured services required for the homepage / browse "Featured Services" carousel to render. Below this floor the section feels sparse. */
|
|
64
64
|
export const MIN_FEATURED_SERVICES_FOR_SECTION = 3;
|
|
65
|
+
//# sourceMappingURL=serviceFeaturedSortUtils.js.map
|
|
@@ -85,3 +85,4 @@ export function volunteerCompensationSummary(args) {
|
|
|
85
85
|
* detail. Kept here so wizard, api, and docs cite the exact same wording.
|
|
86
86
|
*/
|
|
87
87
|
export const VOLUNTEER_COMPENSATION_DISCLAIMER = "Volunteers are not employees or contractors. BashPoints stipends are platform credit redeemable on Bash, not wages, and don't count toward employment or 1099 reporting.";
|
|
88
|
+
//# sourceMappingURL=volunteerCompensationUtils.js.map
|
package/dist/utils/sortUtils.js
CHANGED
package/dist/utils/typeUtils.js
CHANGED
package/dist/utils/userUtils.js
CHANGED
package/dist/utmAttribution.js
CHANGED
package/dist/venueMatch.js
CHANGED