@bash-app/bash-common 30.335.0 → 30.336.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/utils/guestSurface.js +6 -6
- package/package.json +1 -1
- package/prisma/schema.prisma +130 -0
- package/src/utils/guestSurface.ts +6 -6
|
@@ -63,8 +63,8 @@ export function resolveGuestSurfacePolicy(input) {
|
|
|
63
63
|
showFeatured: false,
|
|
64
64
|
showNetworkSlice: false,
|
|
65
65
|
rosterDepth: "None",
|
|
66
|
-
previewLimit:
|
|
67
|
-
apiPreviewLimit:
|
|
66
|
+
previewLimit: 5,
|
|
67
|
+
apiPreviewLimit: 12,
|
|
68
68
|
effectiveMode: eventMode,
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -75,8 +75,8 @@ export function resolveGuestSurfacePolicy(input) {
|
|
|
75
75
|
showFeatured: false,
|
|
76
76
|
showNetworkSlice: isAuthenticated,
|
|
77
77
|
rosterDepth: effectiveDepth,
|
|
78
|
-
previewLimit:
|
|
79
|
-
apiPreviewLimit:
|
|
78
|
+
previewLimit: 5,
|
|
79
|
+
apiPreviewLimit: 12,
|
|
80
80
|
effectiveMode: eventMode,
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -100,8 +100,8 @@ export function resolveGuestSurfacePolicy(input) {
|
|
|
100
100
|
showFeatured: showFeatured && eventMode !== "NetworkOnly",
|
|
101
101
|
showNetworkSlice,
|
|
102
102
|
rosterDepth: effectiveDepth,
|
|
103
|
-
previewLimit:
|
|
104
|
-
apiPreviewLimit:
|
|
103
|
+
previewLimit: 5,
|
|
104
|
+
apiPreviewLimit: 12,
|
|
105
105
|
effectiveMode: eventMode,
|
|
106
106
|
};
|
|
107
107
|
}
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -989,6 +989,8 @@ model BashEvent {
|
|
|
989
989
|
postEventMessageSentAt DateTime?
|
|
990
990
|
broadcastCount Int @default(0)
|
|
991
991
|
lastBroadcastAt DateTime?
|
|
992
|
+
/// Optional host note appended to ticket purchase confirmation emails.
|
|
993
|
+
confirmationEmailNote String? @db.Text
|
|
992
994
|
/// When true, notify opted-in CRM audience on publish (optional tag in crmPublishNotifyTag).
|
|
993
995
|
crmPublishNotifyEnabled Boolean @default(false)
|
|
994
996
|
crmPublishNotifyTag String?
|
|
@@ -1041,6 +1043,12 @@ model BashEvent {
|
|
|
1041
1043
|
eventTasks EventTask[]
|
|
1042
1044
|
potluckItems PotluckItem[]
|
|
1043
1045
|
bashEventSuggestions BashEventSuggestion[]
|
|
1046
|
+
eventBroadcasts EventBroadcast[]
|
|
1047
|
+
eventBroadcastSchedules EventBroadcastSchedule[]
|
|
1048
|
+
eventSuggestionDismissals EventSuggestionDismissal[]
|
|
1049
|
+
eventSuggestionSchedules EventSuggestionSchedule[]
|
|
1050
|
+
eventSuggestionAutomations EventSuggestionAutomation[]
|
|
1051
|
+
|
|
1044
1052
|
itemUpvotes ItemUpvote[]
|
|
1045
1053
|
exhibitorBookingRequests ExhibitorBookingRequest[] @relation("ExhibitorBookingEvent")
|
|
1046
1054
|
investments Investment[]
|
|
@@ -2828,6 +2836,123 @@ model HostCrmAutomation {
|
|
|
2828
2836
|
}
|
|
2829
2837
|
|
|
2830
2838
|
// Tracks referrals: attendee A referred person B who bought a ticket
|
|
2839
|
+
|
|
2840
|
+
/// Sent host blast history for an event (Luma-style Blasts tab).
|
|
2841
|
+
model EventBroadcast {
|
|
2842
|
+
id String @id @default(cuid())
|
|
2843
|
+
bashEventId String
|
|
2844
|
+
sentByUserId String
|
|
2845
|
+
subject String
|
|
2846
|
+
message String @db.Text
|
|
2847
|
+
recipientType String
|
|
2848
|
+
tierIds String[] @default([])
|
|
2849
|
+
sendEmail Boolean @default(true)
|
|
2850
|
+
sendPush Boolean @default(true)
|
|
2851
|
+
sendSms Boolean @default(false)
|
|
2852
|
+
sentCount Int @default(0)
|
|
2853
|
+
createdAt DateTime @default(now())
|
|
2854
|
+
|
|
2855
|
+
bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
2856
|
+
sentBy User @relation("EventBroadcastsSent", fields: [sentByUserId], references: [id], onDelete: Cascade)
|
|
2857
|
+
|
|
2858
|
+
@@index([bashEventId])
|
|
2859
|
+
@@index([bashEventId, createdAt])
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
/// Scheduled host blast (send later via cron).
|
|
2863
|
+
model EventBroadcastSchedule {
|
|
2864
|
+
id String @id @default(cuid())
|
|
2865
|
+
bashEventId String
|
|
2866
|
+
createdByUserId String
|
|
2867
|
+
runAt DateTime
|
|
2868
|
+
/// pending | ran | cancelled | failed
|
|
2869
|
+
status String @default("pending")
|
|
2870
|
+
subject String
|
|
2871
|
+
message String @db.Text
|
|
2872
|
+
recipientType String @default("going")
|
|
2873
|
+
tierIds String[] @default([])
|
|
2874
|
+
sendEmail Boolean @default(true)
|
|
2875
|
+
sendPush Boolean @default(true)
|
|
2876
|
+
sendSms Boolean @default(false)
|
|
2877
|
+
lastError String?
|
|
2878
|
+
createdAt DateTime @default(now())
|
|
2879
|
+
updatedAt DateTime @updatedAt
|
|
2880
|
+
|
|
2881
|
+
bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
2882
|
+
createdBy User @relation("EventBroadcastSchedulesCreated", fields: [createdByUserId], references: [id], onDelete: Cascade)
|
|
2883
|
+
|
|
2884
|
+
@@index([status, runAt])
|
|
2885
|
+
@@index([bashEventId])
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
/// Host dismissed or snoozed an AI sales suggestion for this event.
|
|
2889
|
+
model EventSuggestionDismissal {
|
|
2890
|
+
id String @id @default(cuid())
|
|
2891
|
+
bashEventId String
|
|
2892
|
+
userId String
|
|
2893
|
+
suggestionType String
|
|
2894
|
+
suggestionKey String
|
|
2895
|
+
snoozeUntil DateTime?
|
|
2896
|
+
dismissedAt DateTime @default(now())
|
|
2897
|
+
|
|
2898
|
+
bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
2899
|
+
user User @relation("EventSuggestionDismissals", fields: [userId], references: [id], onDelete: Cascade)
|
|
2900
|
+
|
|
2901
|
+
@@unique([bashEventId, userId, suggestionKey])
|
|
2902
|
+
@@index([bashEventId])
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
/// One-shot scheduled execution of an AI suggestion.
|
|
2906
|
+
model EventSuggestionSchedule {
|
|
2907
|
+
id String @id @default(cuid())
|
|
2908
|
+
bashEventId String
|
|
2909
|
+
createdByUserId String
|
|
2910
|
+
suggestionType String
|
|
2911
|
+
suggestionKey String
|
|
2912
|
+
payload Json @default("{}")
|
|
2913
|
+
runAt DateTime
|
|
2914
|
+
/// pending | ran | cancelled | failed
|
|
2915
|
+
status String @default("pending")
|
|
2916
|
+
lastError String?
|
|
2917
|
+
createdAt DateTime @default(now())
|
|
2918
|
+
updatedAt DateTime @updatedAt
|
|
2919
|
+
|
|
2920
|
+
bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
2921
|
+
createdBy User @relation("EventSuggestionSchedulesCreated", fields: [createdByUserId], references: [id], onDelete: Cascade)
|
|
2922
|
+
|
|
2923
|
+
@@index([status, runAt])
|
|
2924
|
+
@@index([bashEventId])
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
/// Recurring / auto-run AI suggestion rule for an event (host can pause).
|
|
2928
|
+
model EventSuggestionAutomation {
|
|
2929
|
+
id String @id @default(cuid())
|
|
2930
|
+
bashEventId String
|
|
2931
|
+
createdByUserId String
|
|
2932
|
+
suggestionType String
|
|
2933
|
+
suggestionKey String
|
|
2934
|
+
enabled Boolean @default(true)
|
|
2935
|
+
sendEmail Boolean @default(true)
|
|
2936
|
+
sendPush Boolean @default(true)
|
|
2937
|
+
sendSms Boolean @default(false)
|
|
2938
|
+
budgetCents Int?
|
|
2939
|
+
maxRuns Int @default(3)
|
|
2940
|
+
runCount Int @default(0)
|
|
2941
|
+
lastRunAt DateTime?
|
|
2942
|
+
/// active | paused | completed | failed
|
|
2943
|
+
status String @default("active")
|
|
2944
|
+
payload Json @default("{}")
|
|
2945
|
+
createdAt DateTime @default(now())
|
|
2946
|
+
updatedAt DateTime @updatedAt
|
|
2947
|
+
|
|
2948
|
+
bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
2949
|
+
createdBy User @relation("EventSuggestionAutomationsCreated", fields: [createdByUserId], references: [id], onDelete: Cascade)
|
|
2950
|
+
|
|
2951
|
+
@@unique([bashEventId, suggestionKey])
|
|
2952
|
+
@@index([enabled, status])
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
|
|
2831
2956
|
model EventReferral {
|
|
2832
2957
|
id String @id @default(cuid())
|
|
2833
2958
|
bashEventId String
|
|
@@ -4111,6 +4236,11 @@ model User {
|
|
|
4111
4236
|
eventTasks EventTask[]
|
|
4112
4237
|
potluckItemsClaimed PotluckItem[] @relation("PotluckItemsClaimedBy")
|
|
4113
4238
|
bashEventSuggestionsCreated BashEventSuggestion[] @relation("BashEventSuggestionsCreated")
|
|
4239
|
+
eventBroadcastsSent EventBroadcast[] @relation("EventBroadcastsSent")
|
|
4240
|
+
eventBroadcastSchedulesCreated EventBroadcastSchedule[] @relation("EventBroadcastSchedulesCreated")
|
|
4241
|
+
eventSuggestionDismissals EventSuggestionDismissal[] @relation("EventSuggestionDismissals")
|
|
4242
|
+
eventSuggestionSchedulesCreated EventSuggestionSchedule[] @relation("EventSuggestionSchedulesCreated")
|
|
4243
|
+
eventSuggestionAutomationsCreated EventSuggestionAutomation[] @relation("EventSuggestionAutomationsCreated")
|
|
4114
4244
|
bashSuggestionUpvotes SuggestionUpvote[] @relation("BashSuggestionUpvotes")
|
|
4115
4245
|
itemUpvotesGiven ItemUpvote[] @relation("ItemUpvotesGiven")
|
|
4116
4246
|
taskCommentsAuthored TaskComment[] @relation("TaskCommentsAuthored")
|
|
@@ -199,8 +199,8 @@ export function resolveGuestSurfacePolicy(
|
|
|
199
199
|
showFeatured: false,
|
|
200
200
|
showNetworkSlice: false,
|
|
201
201
|
rosterDepth: "None",
|
|
202
|
-
previewLimit:
|
|
203
|
-
apiPreviewLimit:
|
|
202
|
+
previewLimit: 5,
|
|
203
|
+
apiPreviewLimit: 12,
|
|
204
204
|
effectiveMode: eventMode,
|
|
205
205
|
};
|
|
206
206
|
}
|
|
@@ -212,8 +212,8 @@ export function resolveGuestSurfacePolicy(
|
|
|
212
212
|
showFeatured: false,
|
|
213
213
|
showNetworkSlice: isAuthenticated,
|
|
214
214
|
rosterDepth: effectiveDepth,
|
|
215
|
-
previewLimit:
|
|
216
|
-
apiPreviewLimit:
|
|
215
|
+
previewLimit: 5,
|
|
216
|
+
apiPreviewLimit: 12,
|
|
217
217
|
effectiveMode: eventMode,
|
|
218
218
|
};
|
|
219
219
|
}
|
|
@@ -243,8 +243,8 @@ export function resolveGuestSurfacePolicy(
|
|
|
243
243
|
showFeatured: showFeatured && eventMode !== "NetworkOnly",
|
|
244
244
|
showNetworkSlice,
|
|
245
245
|
rosterDepth: effectiveDepth,
|
|
246
|
-
previewLimit:
|
|
247
|
-
apiPreviewLimit:
|
|
246
|
+
previewLimit: 5,
|
|
247
|
+
apiPreviewLimit: 12,
|
|
248
248
|
effectiveMode: eventMode,
|
|
249
249
|
};
|
|
250
250
|
}
|