@bash-app/bash-common 30.337.0 → 30.338.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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* System SMS template keys — bodies are rendered in the API (URLs, env).
|
|
3
3
|
* Consumers use these keys for type-safe `sendTemplatedSms` calls.
|
|
4
4
|
*/
|
|
5
|
-
export declare const SMS_TEMPLATE_KEYS: readonly ["EVENT_REMINDER_1WEEK", "EVENT_REMINDER_24H", "EVENT_REMINDER_3H", "EVENT_REMINDER_1H", "EVENT_VENUE_CHANGED", "EVENT_WAITLIST_APPROVED", "TICKET_CONFIRMED", "COAT_CHECK_CLAIM"];
|
|
5
|
+
export declare const SMS_TEMPLATE_KEYS: readonly ["EVENT_REMINDER_1WEEK", "EVENT_REMINDER_24H", "EVENT_REMINDER_3H", "EVENT_REMINDER_1H", "EVENT_VENUE_CHANGED", "EVENT_TIME_CHANGED", "EVENT_CANCELLED", "EVENT_DETAILS_CHANGED", "EVENT_WAITLIST_APPROVED", "TICKET_CONFIRMED", "COAT_CHECK_CLAIM"];
|
|
6
6
|
export type SmsTemplateKey = (typeof SMS_TEMPLATE_KEYS)[number];
|
|
7
7
|
/** Typed context per template (API maps these to final message strings). */
|
|
8
8
|
export type SmsTemplateContext = {
|
|
@@ -26,6 +26,20 @@ export type SmsTemplateContext = {
|
|
|
26
26
|
eventTitle: string;
|
|
27
27
|
shortUrl: string;
|
|
28
28
|
};
|
|
29
|
+
EVENT_TIME_CHANGED: {
|
|
30
|
+
eventTitle: string;
|
|
31
|
+
shortUrl: string;
|
|
32
|
+
};
|
|
33
|
+
EVENT_CANCELLED: {
|
|
34
|
+
eventTitle: string;
|
|
35
|
+
shortUrl: string;
|
|
36
|
+
};
|
|
37
|
+
/** Batched critical updates (time + venue, etc.) from the 5-min debounce path. */
|
|
38
|
+
EVENT_DETAILS_CHANGED: {
|
|
39
|
+
eventTitle: string;
|
|
40
|
+
shortUrl: string;
|
|
41
|
+
whatChanged: string;
|
|
42
|
+
};
|
|
29
43
|
EVENT_WAITLIST_APPROVED: {
|
|
30
44
|
eventTitle: string;
|
|
31
45
|
shortUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smsTemplates.d.ts","sourceRoot":"","sources":["../../src/sms/smsTemplates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"smsTemplates.d.ts","sourceRoot":"","sources":["../../src/sms/smsTemplates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,+PAYpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,4EAA4E;AAC5E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,oBAAoB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/D,kBAAkB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,iBAAiB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,iBAAiB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,mBAAmB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9D,kBAAkB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,eAAe,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,kFAAkF;IAClF,qBAAqB,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,uBAAuB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,gBAAgB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnF,gBAAgB,EAAE;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC"}
|
package/dist/sms/smsTemplates.js
CHANGED
|
@@ -8,7 +8,11 @@ export const SMS_TEMPLATE_KEYS = [
|
|
|
8
8
|
"EVENT_REMINDER_3H",
|
|
9
9
|
"EVENT_REMINDER_1H",
|
|
10
10
|
"EVENT_VENUE_CHANGED",
|
|
11
|
+
"EVENT_TIME_CHANGED",
|
|
12
|
+
"EVENT_CANCELLED",
|
|
13
|
+
"EVENT_DETAILS_CHANGED",
|
|
11
14
|
"EVENT_WAITLIST_APPROVED",
|
|
12
15
|
"TICKET_CONFIRMED",
|
|
13
16
|
"COAT_CHECK_CLAIM",
|
|
14
17
|
];
|
|
18
|
+
//# sourceMappingURL=smsTemplates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smsTemplates.js","sourceRoot":"","sources":["../../src/sms/smsTemplates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sBAAsB;IACtB,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;IACrB,yBAAyB;IACzB,kBAAkB;IAClB,kBAAkB;CACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"smsTemplates.js","sourceRoot":"","sources":["../../src/sms/smsTemplates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sBAAsB;IACtB,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;IACrB,oBAAoB;IACpB,iBAAiB;IACjB,uBAAuB;IACvB,yBAAyB;IACzB,kBAAkB;IAClB,kBAAkB;CACV,CAAC"}
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -7539,6 +7539,8 @@ enum NotificationType {
|
|
|
7539
7539
|
CommunityQuestUnlocked // Attendee: community quest goal unlocked
|
|
7540
7540
|
CommunityQuestNearGoal // Attendee: community goal ~80% of the way
|
|
7541
7541
|
SideQuestWindowOpened // Attendee: a timed Side Quest just went live
|
|
7542
|
+
/// Attendee/ticket holder: host changed significant bash details (time, place, title, …)
|
|
7543
|
+
EventDetailsUpdated
|
|
7542
7544
|
}
|
|
7543
7545
|
|
|
7544
7546
|
/// Opt-in reminder for a scheduled tier release (v1.5).
|
package/src/sms/smsTemplates.ts
CHANGED
|
@@ -8,6 +8,9 @@ export const SMS_TEMPLATE_KEYS = [
|
|
|
8
8
|
"EVENT_REMINDER_3H",
|
|
9
9
|
"EVENT_REMINDER_1H",
|
|
10
10
|
"EVENT_VENUE_CHANGED",
|
|
11
|
+
"EVENT_TIME_CHANGED",
|
|
12
|
+
"EVENT_CANCELLED",
|
|
13
|
+
"EVENT_DETAILS_CHANGED",
|
|
11
14
|
"EVENT_WAITLIST_APPROVED",
|
|
12
15
|
"TICKET_CONFIRMED",
|
|
13
16
|
"COAT_CHECK_CLAIM",
|
|
@@ -22,6 +25,14 @@ export type SmsTemplateContext = {
|
|
|
22
25
|
EVENT_REMINDER_3H: { eventTitle: string; shortUrl: string };
|
|
23
26
|
EVENT_REMINDER_1H: { eventTitle: string; shortUrl: string };
|
|
24
27
|
EVENT_VENUE_CHANGED: { eventTitle: string; shortUrl: string };
|
|
28
|
+
EVENT_TIME_CHANGED: { eventTitle: string; shortUrl: string };
|
|
29
|
+
EVENT_CANCELLED: { eventTitle: string; shortUrl: string };
|
|
30
|
+
/** Batched critical updates (time + venue, etc.) from the 5-min debounce path. */
|
|
31
|
+
EVENT_DETAILS_CHANGED: {
|
|
32
|
+
eventTitle: string;
|
|
33
|
+
shortUrl: string;
|
|
34
|
+
whatChanged: string;
|
|
35
|
+
};
|
|
25
36
|
EVENT_WAITLIST_APPROVED: { eventTitle: string; shortUrl: string };
|
|
26
37
|
TICKET_CONFIRMED: { eventTitle: string; ticketCount: number; ticketsUrl?: string };
|
|
27
38
|
COAT_CHECK_CLAIM: {
|