@dereekb/firebase 12.6.7 → 12.6.8
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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PromiseOrValue, type Maybe, type WebsiteUrl } from '@dereekb/util';
|
|
1
|
+
import { type PromiseOrValue, type Maybe, type WebsiteUrl, type NameEmailPair } from '@dereekb/util';
|
|
2
2
|
import { type NotificationRecipient, type NotificationRecipientWithConfig } from './notification.config';
|
|
3
3
|
import { type NotificationSendFlags, type Notification, type NotificationBox } from './notification';
|
|
4
4
|
import { type NotificationItem, type NotificationItemMetadata } from './notification.item';
|
|
@@ -13,6 +13,12 @@ export interface NotificationMessageInputContext {
|
|
|
13
13
|
*/
|
|
14
14
|
readonly recipient: NotificationRecipient;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Arbitrary key used by the sending configuration service for choosing a pre-configured entity.
|
|
18
|
+
*
|
|
19
|
+
* Typically used for customizing the "from" or "replyTo" addresses while maintaining a separation of concerns.
|
|
20
|
+
*/
|
|
21
|
+
export type NotificationMessageEntityKey = string;
|
|
16
22
|
/**
|
|
17
23
|
* Arbitrary template name/key that is used to configure which template to use by the sending service.
|
|
18
24
|
*/
|
|
@@ -27,6 +33,10 @@ export interface NotificationMessageContent {
|
|
|
27
33
|
* The sending service determines how this template is used.
|
|
28
34
|
*/
|
|
29
35
|
readonly sendTemplateName?: Maybe<NotificationSendMessageTemplateName>;
|
|
36
|
+
/**
|
|
37
|
+
* The key used to determine who to send it from.
|
|
38
|
+
*/
|
|
39
|
+
readonly from?: Maybe<NotificationMessageEntityKey>;
|
|
30
40
|
/**
|
|
31
41
|
* The title/subject of the message for the recipient
|
|
32
42
|
*/
|
|
@@ -61,6 +71,20 @@ export interface NotificationMessageEmailContent extends NotificationMessageCont
|
|
|
61
71
|
* Email action prompt. If not defined, defaults to the title.
|
|
62
72
|
*/
|
|
63
73
|
readonly prompt?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Entity key to send the email from.
|
|
76
|
+
*/
|
|
77
|
+
readonly from?: Maybe<NotificationMessageEntityKey>;
|
|
78
|
+
/**
|
|
79
|
+
* Entity key to reply to.
|
|
80
|
+
*/
|
|
81
|
+
readonly replyTo?: Maybe<NotificationMessageEntityKey>;
|
|
82
|
+
/**
|
|
83
|
+
* A name/email pair to reply to.
|
|
84
|
+
*
|
|
85
|
+
* If the "replyTo" is present, this value acts as a fallback if the entity key returns no match.
|
|
86
|
+
*/
|
|
87
|
+
readonly replyToEmail?: Maybe<NameEmailPair>;
|
|
64
88
|
}
|
|
65
89
|
export interface NotificationMessageNotificationSummaryContent {
|
|
66
90
|
}
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [12.6.8](https://github.com/dereekb/dbx-components/compare/v12.6.7-dev...v12.6.8) (2026-01-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [12.6.7](https://github.com/dereekb/dbx-components/compare/v12.6.6-dev...v12.6.7) (2026-01-06)
|
|
6
10
|
|
|
7
11
|
|