@dereekb/nestjs 12.6.6 → 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/CHANGELOG.md +8 -0
- package/mailgun/package.json +1 -1
- package/mailgun/src/lib/mailgun.d.ts +68 -13
- package/mailgun/src/lib/mailgun.js +90 -33
- package/mailgun/src/lib/mailgun.js.map +1 -1
- package/openai/package.json +1 -1
- package/package.json +1 -1
- package/stripe/package.json +1 -1
- package/typeform/package.json +1 -1
- package/vapiai/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
|
|
9
|
+
## [12.6.7](https://github.com/dereekb/dbx-components/compare/v12.6.6-dev...v12.6.7) (2026-01-06)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [12.6.6](https://github.com/dereekb/dbx-components/compare/v12.6.5-dev...v12.6.6) (2025-12-31)
|
|
6
14
|
|
|
7
15
|
|
package/mailgun/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ArrayOrValue, type EmailAddressDomain, type NameEmailPair, type EmailParticipantString, type Maybe } from '@dereekb/util';
|
|
1
|
+
import { type ArrayOrValue, type EmailAddress, type EmailAddressDomain, type NameEmailPair, type EmailParticipantString, type Maybe } from '@dereekb/util';
|
|
2
2
|
import { type APIResponse } from 'mailgun.js/Types/Common/ApiResponse';
|
|
3
3
|
import { type CustomFileData, type MailgunMessageData, type MessagesSendResult } from 'mailgun.js/Types/Messages/Messages';
|
|
4
4
|
export type MailgunSenderDomainString = EmailAddressDomain;
|
|
@@ -7,14 +7,22 @@ export interface MailgunRecipient extends NameEmailPair {
|
|
|
7
7
|
readonly userVariables?: Record<string, any>;
|
|
8
8
|
}
|
|
9
9
|
export interface MailgunEmailRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Mailgun template name.
|
|
12
|
+
*/
|
|
13
|
+
readonly template: MailgunTemplateKey;
|
|
14
|
+
/**
|
|
15
|
+
* Template variables. Each value is converted to a JSON string before being sent to Mailgun server.
|
|
16
|
+
*/
|
|
17
|
+
readonly templateVariables?: Maybe<Record<string, any>>;
|
|
10
18
|
/**
|
|
11
19
|
* Customzie who the email is from.
|
|
12
20
|
*/
|
|
13
|
-
readonly from?:
|
|
21
|
+
readonly from?: NameEmailPair;
|
|
14
22
|
/**
|
|
15
23
|
* Customize who to reply to.
|
|
16
24
|
*/
|
|
17
|
-
readonly replyTo?:
|
|
25
|
+
readonly replyTo?: NameEmailPair;
|
|
18
26
|
/**
|
|
19
27
|
* Recipients of the email.
|
|
20
28
|
*/
|
|
@@ -23,6 +31,31 @@ export interface MailgunEmailRequest {
|
|
|
23
31
|
* Email subject
|
|
24
32
|
*/
|
|
25
33
|
readonly subject: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to allow batch sending. Batch sending occurs when one or more "to" recipients specify their recipient variables.
|
|
36
|
+
*
|
|
37
|
+
* Typically when this value is set to false, there should only be one recipient. This is useful for cases where a BCC needs to be added. Typically when using recipient variables,
|
|
38
|
+
* any BCC'd recipient will actually recieve the email as a "to" address, as recipient variables changes the behavior to use Mailgun's Batch Sending feature.
|
|
39
|
+
*
|
|
40
|
+
* When false, all recipient's configured variables are merged into the global template variables instead.
|
|
41
|
+
*
|
|
42
|
+
* Defaults to true, unless cc or bcc is specified, in which case an error will be thrown if batchSend is not false.
|
|
43
|
+
*/
|
|
44
|
+
readonly batchSend?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Carbon copy recipients of the email. The "batchSend" value must be false.
|
|
47
|
+
*
|
|
48
|
+
* NOTE: "batchSend" must be false because the behavior of batchSend changes how Mailgun handles the cc recipients in a way that it is equivalent to adding the cc recipients to "to",
|
|
49
|
+
* but without the ability to use recipient variables for those recipients.
|
|
50
|
+
*/
|
|
51
|
+
readonly cc?: ArrayOrValue<NameEmailPair>;
|
|
52
|
+
/**
|
|
53
|
+
* Blind carbon copy recipients of the email. The "batchSend" value must be false.
|
|
54
|
+
*
|
|
55
|
+
* NOTE: "batchSend" must be false because the behavior of batchSend changes how Mailgun handles the bcc recipients in a way that it is equivalent to adding the bcc recipients to "to",
|
|
56
|
+
* but without the ability to use recipient variables for those recipients.
|
|
57
|
+
*/
|
|
58
|
+
readonly bcc?: ArrayOrValue<NameEmailPair>;
|
|
26
59
|
}
|
|
27
60
|
export interface MailgunFileAttachment {
|
|
28
61
|
/**
|
|
@@ -34,15 +67,7 @@ export interface MailgunFileAttachment {
|
|
|
34
67
|
*/
|
|
35
68
|
readonly data: CustomFileData;
|
|
36
69
|
}
|
|
37
|
-
export interface
|
|
38
|
-
/**
|
|
39
|
-
* Mailgun template name.
|
|
40
|
-
*/
|
|
41
|
-
readonly template: MailgunTemplateKey;
|
|
42
|
-
/**
|
|
43
|
-
* Template variables. Each value is converted to a JSON string before being sent to Mailgun server.
|
|
44
|
-
*/
|
|
45
|
-
readonly templateVariables?: Record<string, any>;
|
|
70
|
+
export interface MailgunTemplateEmailRequestTestingParameters {
|
|
46
71
|
/**
|
|
47
72
|
* Whether or not this is considered a test email.
|
|
48
73
|
*/
|
|
@@ -52,7 +77,7 @@ export interface MailgunTemplateEmailParameters {
|
|
|
52
77
|
*/
|
|
53
78
|
readonly sendTestEmails?: true | undefined;
|
|
54
79
|
}
|
|
55
|
-
export interface MailgunTemplateEmailRequest extends MailgunEmailRequest,
|
|
80
|
+
export interface MailgunTemplateEmailRequest extends MailgunEmailRequest, MailgunTemplateEmailRequestTestingParameters {
|
|
56
81
|
/**
|
|
57
82
|
* Attachment(s) to send with the email.
|
|
58
83
|
*/
|
|
@@ -61,7 +86,30 @@ export interface MailgunTemplateEmailRequest extends MailgunEmailRequest, Mailgu
|
|
|
61
86
|
* Apply custom parameters directly.
|
|
62
87
|
*/
|
|
63
88
|
readonly messageData?: Partial<MailgunMessageData>;
|
|
89
|
+
/**
|
|
90
|
+
* Finalize the recipient variables before they are re-encoded back to JSON and added to the Mailgun message data.
|
|
91
|
+
*/
|
|
92
|
+
readonly finalizeRecipientVariables?: Maybe<MailgunTemplateEmailRequestFinalizeRecipientVariablesFunction>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* MailgunTemplateEmailRequestFinalizeRecipientVariablesFunction input
|
|
96
|
+
*/
|
|
97
|
+
export interface MailgunTemplateEmailRequestFinalizeRecipientVariablesFunctionInput {
|
|
98
|
+
/**
|
|
99
|
+
* The current finalize configuration.
|
|
100
|
+
*/
|
|
101
|
+
readonly config: ConvertMailgunTemplateEmailRequestToMailgunMessageDataConfig;
|
|
102
|
+
/**
|
|
103
|
+
* The current message data.
|
|
104
|
+
*/
|
|
105
|
+
readonly messageData: Readonly<MailgunMessageData>;
|
|
64
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Provides an arbitrary function to modify the recipient variables values before they are re-encoded back to JSON and added to the Mailgun message data.
|
|
109
|
+
*
|
|
110
|
+
* Can directly modify the input object or return a new object to replace the recipient variables
|
|
111
|
+
*/
|
|
112
|
+
export type MailgunTemplateEmailRequestFinalizeRecipientVariablesFunction = (recipientVariables: Record<EmailAddress, Record<string, any>>, input: MailgunTemplateEmailRequestFinalizeRecipientVariablesFunctionInput) => Maybe<Record<EmailAddress, Record<string, any>>>;
|
|
65
113
|
export type MailgunEmailMessageSendResult = MessagesSendResult;
|
|
66
114
|
export type MailgunAPIResponse = APIResponse;
|
|
67
115
|
export declare const DEFAULT_RECIPIENT_VARIABLE_PREFIX = "recipient-";
|
|
@@ -75,3 +123,10 @@ export interface ConvertMailgunTemplateEmailRequestToMailgunMessageDataConfig {
|
|
|
75
123
|
export declare function convertMailgunTemplateEmailRequestToMailgunMessageData(config: ConvertMailgunTemplateEmailRequestToMailgunMessageDataConfig): MailgunMessageData;
|
|
76
124
|
export declare function convertMailgunRecipientsToStrings(recipients: MailgunRecipient[]): EmailParticipantString[];
|
|
77
125
|
export declare function convertMailgunRecipientToString(recipient: MailgunRecipient): EmailParticipantString;
|
|
126
|
+
/**
|
|
127
|
+
* Encodes a value to a string for use as a Mailgun template variable. Throws an error if the value is not supported.
|
|
128
|
+
*
|
|
129
|
+
* @param value The value to encode.
|
|
130
|
+
* @returns The encoded value, or undefined if the value is null or undefined.
|
|
131
|
+
*/
|
|
132
|
+
export declare function encodeMailgunTemplateVariableValue(value: any): Maybe<string>;
|
|
@@ -4,18 +4,35 @@ exports.MAILGUN_REPLY_TO_EMAIL_HEADER_DATA_VARIABLE_KEY = exports.DEFAULT_RECIPI
|
|
|
4
4
|
exports.convertMailgunTemplateEmailRequestToMailgunMessageData = convertMailgunTemplateEmailRequestToMailgunMessageData;
|
|
5
5
|
exports.convertMailgunRecipientsToStrings = convertMailgunRecipientsToStrings;
|
|
6
6
|
exports.convertMailgunRecipientToString = convertMailgunRecipientToString;
|
|
7
|
+
exports.encodeMailgunTemplateVariableValue = encodeMailgunTemplateVariableValue;
|
|
7
8
|
const nestjs_1 = require("@dereekb/nestjs");
|
|
8
9
|
const util_1 = require("@dereekb/util");
|
|
9
10
|
exports.DEFAULT_RECIPIENT_VARIABLE_PREFIX = 'recipient-';
|
|
10
11
|
exports.MAILGUN_REPLY_TO_EMAIL_HEADER_DATA_VARIABLE_KEY = `h:Reply-To`;
|
|
11
12
|
function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
|
|
12
13
|
const { request, defaultSender, isTestingEnvironment: testEnvironment, recipientVariablePrefix = exports.DEFAULT_RECIPIENT_VARIABLE_PREFIX } = config;
|
|
13
|
-
const
|
|
14
|
+
const finalizeRecipientVariables = request.finalizeRecipientVariables ?? util_1.MAP_IDENTITY;
|
|
15
|
+
const allowBatchSending = request.batchSend ?? true;
|
|
16
|
+
const mergeRecipientVariablesIntoGlobalVariable = !allowBatchSending;
|
|
17
|
+
function mapEmailToLowercase(x) {
|
|
18
|
+
return { ...x, email: x.email.toLowerCase() };
|
|
19
|
+
}
|
|
20
|
+
const toInput = (0, util_1.asArray)(request.to).map(mapEmailToLowercase);
|
|
21
|
+
const ccInput = request.cc ? (0, util_1.asArray)(request.cc).map(mapEmailToLowercase) : undefined;
|
|
22
|
+
const bccInput = request.bcc ? (0, util_1.asArray)(request.bcc).map(mapEmailToLowercase) : undefined;
|
|
14
23
|
const from = request.from ? convertMailgunRecipientToString(request.from) : defaultSender;
|
|
15
24
|
const to = convertMailgunRecipientsToStrings(toInput);
|
|
25
|
+
const cc = ccInput ? convertMailgunRecipientsToStrings(ccInput) : undefined;
|
|
26
|
+
const bcc = bccInput ? convertMailgunRecipientsToStrings(bccInput) : undefined;
|
|
27
|
+
// throw an error if batchSend is not defined and cc or bcc is defined
|
|
28
|
+
if (request.batchSend == null && (ccInput || bccInput)) {
|
|
29
|
+
throw new Error('convertMailgunTemplateEmailRequestToMailgunMessageData(): batchSend must be false when either "cc" or "bcc" is defined.');
|
|
30
|
+
}
|
|
16
31
|
const data = {
|
|
17
32
|
from,
|
|
18
33
|
to,
|
|
34
|
+
cc,
|
|
35
|
+
bcc,
|
|
19
36
|
subject: request.subject,
|
|
20
37
|
template: request.template,
|
|
21
38
|
...request.messageData
|
|
@@ -30,29 +47,7 @@ function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
|
|
|
30
47
|
(0, util_1.forEachKeyValue)(request.templateVariables, {
|
|
31
48
|
forEach: (x) => {
|
|
32
49
|
const [key, value] = x;
|
|
33
|
-
|
|
34
|
-
switch (typeof value) {
|
|
35
|
-
case 'object':
|
|
36
|
-
if (value) {
|
|
37
|
-
if (value instanceof Date) {
|
|
38
|
-
encodedValue = value.toISOString();
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
encodedValue = JSON.stringify(value);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
break;
|
|
45
|
-
case 'bigint':
|
|
46
|
-
case 'boolean':
|
|
47
|
-
case 'number':
|
|
48
|
-
case 'string':
|
|
49
|
-
encodedValue = String(value); // encoded as a string value
|
|
50
|
-
break;
|
|
51
|
-
default:
|
|
52
|
-
if (value) {
|
|
53
|
-
throw new Error(`Invalid value ${value} passed to templateVariables.`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
50
|
+
const encodedValue = encodeMailgunTemplateVariableValue(value);
|
|
56
51
|
if (encodedValue != null) {
|
|
57
52
|
data[`v:${key}`] = encodedValue;
|
|
58
53
|
}
|
|
@@ -61,7 +56,7 @@ function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
|
|
|
61
56
|
}
|
|
62
57
|
const hasUserVariables = Boolean(data['recipient-variables']) || toInput.findIndex((x) => x.userVariables != null) !== -1;
|
|
63
58
|
if (hasUserVariables) {
|
|
64
|
-
|
|
59
|
+
let recipientVariables = {};
|
|
65
60
|
const allRecipientVariableKeys = new Set();
|
|
66
61
|
toInput.forEach(({ email, userVariables }) => {
|
|
67
62
|
if (userVariables != null && !(0, util_1.objectIsEmpty)(userVariables)) {
|
|
@@ -85,16 +80,46 @@ function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
|
|
|
85
80
|
}
|
|
86
81
|
});
|
|
87
82
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
83
|
+
// Finalize the recipient variables before they are re-encoded back to JSON
|
|
84
|
+
recipientVariables =
|
|
85
|
+
finalizeRecipientVariables(recipientVariables, {
|
|
86
|
+
messageData: data,
|
|
87
|
+
config
|
|
88
|
+
}) ?? recipientVariables;
|
|
89
|
+
if (mergeRecipientVariablesIntoGlobalVariable) {
|
|
90
|
+
// iterate all recipient variables and merge them into the global variables
|
|
91
|
+
(0, util_1.forEachKeyValue)(recipientVariables, {
|
|
92
|
+
forEach: (x) => {
|
|
93
|
+
const [email, userVariables] = x;
|
|
94
|
+
(0, util_1.forEachKeyValue)(userVariables, {
|
|
95
|
+
forEach: (y) => {
|
|
96
|
+
const [key, value] = y;
|
|
97
|
+
const encodedValue = encodeMailgunTemplateVariableValue(value);
|
|
98
|
+
if (encodedValue != null) {
|
|
99
|
+
data[`v:${key}`] = encodedValue;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
96
104
|
});
|
|
97
105
|
}
|
|
106
|
+
else {
|
|
107
|
+
// set back on the data object
|
|
108
|
+
data['recipient-variables'] = JSON.stringify(recipientVariables);
|
|
109
|
+
// add all recipient variable to the other variables so they can be used easily/directly in templates as variables too.
|
|
110
|
+
// https://documentation.mailgun.com/en/latest/user_manual.html#attaching-data-to-messages
|
|
111
|
+
if (recipientVariablePrefix) {
|
|
112
|
+
(0, util_1.forEachInIterable)(allRecipientVariableKeys, (key) => {
|
|
113
|
+
const recipientVariableKey = `${recipientVariablePrefix}${key}`;
|
|
114
|
+
// v:recipient-id=%recipient.id%
|
|
115
|
+
data[`v:${recipientVariableKey}`] = `%recipient.${key}%`;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// double check and remove the recipient variables if we merged them into the global variables
|
|
121
|
+
if (mergeRecipientVariablesIntoGlobalVariable) {
|
|
122
|
+
delete data['recipient-variables'];
|
|
98
123
|
}
|
|
99
124
|
const inputAttachments = request.attachments;
|
|
100
125
|
if (inputAttachments) {
|
|
@@ -115,4 +140,36 @@ function convertMailgunRecipientToString(recipient) {
|
|
|
115
140
|
}
|
|
116
141
|
return address;
|
|
117
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Encodes a value to a string for use as a Mailgun template variable. Throws an error if the value is not supported.
|
|
145
|
+
*
|
|
146
|
+
* @param value The value to encode.
|
|
147
|
+
* @returns The encoded value, or undefined if the value is null or undefined.
|
|
148
|
+
*/
|
|
149
|
+
function encodeMailgunTemplateVariableValue(value) {
|
|
150
|
+
let encodedValue;
|
|
151
|
+
switch (typeof value) {
|
|
152
|
+
case 'object':
|
|
153
|
+
if (value) {
|
|
154
|
+
if (value instanceof Date) {
|
|
155
|
+
encodedValue = value.toISOString();
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
encodedValue = JSON.stringify(value);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
break;
|
|
162
|
+
case 'bigint':
|
|
163
|
+
case 'boolean':
|
|
164
|
+
case 'number':
|
|
165
|
+
case 'string':
|
|
166
|
+
encodedValue = String(value); // encoded as a string value
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
if (value) {
|
|
170
|
+
throw new Error(`Invalid value "${value}" passed to encodeMailgunTemplateVariableValue().`);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return encodedValue;
|
|
174
|
+
}
|
|
118
175
|
//# sourceMappingURL=mailgun.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailgun.js","sourceRoot":"","sources":["../../../../../../packages/nestjs/mailgun/src/lib/mailgun.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"mailgun.js","sourceRoot":"","sources":["../../../../../../packages/nestjs/mailgun/src/lib/mailgun.ts"],"names":[],"mappings":";;;AAuIA,wHAkJC;AAED,8EAEC;AAED,0EAQC;AAQD,gFA0BC;AAzUD,4CAAgD;AAChD,wCAA2R;AA4H9Q,QAAA,iCAAiC,GAAG,YAAY,CAAC;AACjD,QAAA,+CAA+C,GAAG,YAAY,CAAC;AAS5E,SAAgB,sDAAsD,CAAC,MAAoE;IACzI,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,eAAe,EAAE,uBAAuB,GAAG,yCAAiC,EAAE,GAAG,MAAM,CAAC;IAE9I,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,IAAI,mBAAY,CAAC;IACtF,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,IAAI,I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AM,IAAI,KAAK,CAAC,kBAAkB,KAAK,mDAAmD,CAAC,CAAC;YAC9F,CAAC;IACL,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
package/openai/package.json
CHANGED
package/package.json
CHANGED
package/stripe/package.json
CHANGED
package/typeform/package.json
CHANGED