@dereekb/nestjs 13.4.1 → 13.4.2

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.
@@ -68,7 +68,6 @@ var discordInteractionHandlerFactory = util.handlerFactory(function(x) {
68
68
  });
69
69
  var discordInteractionHandlerConfigurerFactory = util.handlerConfigurerFactory({
70
70
  configurerForAccessor: function configurerForAccessor(accessor) {
71
- // eslint-disable-next-line
72
71
  var fnWithKey = util.handlerMappedSetFunctionFactory(accessor, discordWebhookInteraction);
73
72
  var configurer = _object_spread_props$1(_object_spread$2({}, accessor), {
74
73
  handleApplicationCommand: fnWithKey(discord_js.InteractionType.ApplicationCommand),
@@ -66,7 +66,6 @@ var discordInteractionHandlerFactory = handlerFactory(function(x) {
66
66
  });
67
67
  var discordInteractionHandlerConfigurerFactory = handlerConfigurerFactory({
68
68
  configurerForAccessor: function configurerForAccessor(accessor) {
69
- // eslint-disable-next-line
70
69
  var fnWithKey = handlerMappedSetFunctionFactory(accessor, discordWebhookInteraction);
71
70
  var configurer = _object_spread_props$1(_object_spread$2({}, accessor), {
72
71
  handleApplicationCommand: fnWithKey(InteractionType.ApplicationCommand),
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/discord",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
- "@dereekb/nestjs": "13.4.1",
6
- "@dereekb/util": "13.4.1",
5
+ "@dereekb/nestjs": "13.4.2",
6
+ "@dereekb/util": "13.4.2",
7
7
  "@nestjs/common": "^11.1.16",
8
8
  "@nestjs/config": "^4.0.3",
9
9
  "discord.js": "^14.25.1",
@@ -117,12 +117,12 @@ var MAILGUN_REPLY_TO_EMAIL_HEADER_DATA_VARIABLE_KEY = "h:Reply-To";
117
117
  * The maximum number of recipients allowed in a single batch send request.
118
118
  */ var MAX_BATCH_SEND_RECIPIENTS = 1000;
119
119
  /**
120
- * Converts a MailgunTemplateEmailRequest to a MailgunMessageData.
120
+ * Converts a {@link MailgunTemplateEmailRequest} into Mailgun-compatible {@link MailgunMessageData},
121
+ * applying sender defaults, recipient variable prefixing, and test environment overrides.
121
122
  *
122
- * @param config
123
- * @returns
124
- */ // eslint-disable-next-line sonarjs/cognitive-complexity
125
- function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
123
+ * @param config - The conversion configuration containing the email request, default sender, and recipient variable settings.
124
+ * @returns The constructed {@link MailgunMessageData} ready to be sent via the Mailgun API.
125
+ */ function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
126
126
  var _ref, _ref1, _ref2, _ref3, _request_finalizeRecipientVariables, _request_batchSend;
127
127
  var request = config.request, defaultSender = config.defaultSender, testEnvironment = config.isTestingEnvironment, tmp = config.recipientVariablePrefix, inputRecipientVariablePrefix = tmp === void 0 ? DEFAULT_RECIPIENT_VARIABLE_PREFIX : tmp, tmp1 = config.addRecipientVariablePrefixToAllMergedGlobalVariables, inputAddRecipientVariablePrefixToAllMergedGlobalVariables = tmp1 === void 0 ? true : tmp1, tmp2 = config.addCopyOfMergedRecipientVariablesWithoutPrefixToGlobalVariables, inputAddCopyOfMergedRecipientVariablesWithoutPrefixToGlobalVariables = tmp2 === void 0 ? false : tmp2, tmp3 = config.addCopyOfTemplateVariablesWithRecipientVariablePrefix, inputAddCopyOfTemplateVariablesWithRecipientVariablePrefix = tmp3 === void 0 ? false : tmp3;
128
128
  var recipientVariablesConfig = request.recipientVariablesConfig;
@@ -1044,7 +1044,6 @@ function _unsupported_iterable_to_array(o, minLen) {
1044
1044
  var batchSendRequestRecipients = [];
1045
1045
  recipients.forEach(function(recipient) {
1046
1046
  var _recipient_cc, _recipient_bcc;
1047
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- intentional: need || so empty cc array (length 0) falls through to check bcc
1048
1047
  var recipientHasCarbonCopy = Boolean(((_recipient_cc = recipient.cc) === null || _recipient_cc === void 0 ? void 0 : _recipient_cc.length) || ((_recipient_bcc = recipient.bcc) === null || _recipient_bcc === void 0 ? void 0 : _recipient_bcc.length));
1049
1048
  if (allowBatchSend && !recipientHasCarbonCopy) {
1050
1049
  // add to batch send recipients
@@ -115,12 +115,12 @@ var MAILGUN_REPLY_TO_EMAIL_HEADER_DATA_VARIABLE_KEY = "h:Reply-To";
115
115
  * The maximum number of recipients allowed in a single batch send request.
116
116
  */ var MAX_BATCH_SEND_RECIPIENTS = 1000;
117
117
  /**
118
- * Converts a MailgunTemplateEmailRequest to a MailgunMessageData.
118
+ * Converts a {@link MailgunTemplateEmailRequest} into Mailgun-compatible {@link MailgunMessageData},
119
+ * applying sender defaults, recipient variable prefixing, and test environment overrides.
119
120
  *
120
- * @param config
121
- * @returns
122
- */ // eslint-disable-next-line sonarjs/cognitive-complexity
123
- function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
121
+ * @param config - The conversion configuration containing the email request, default sender, and recipient variable settings.
122
+ * @returns The constructed {@link MailgunMessageData} ready to be sent via the Mailgun API.
123
+ */ function convertMailgunTemplateEmailRequestToMailgunMessageData(config) {
124
124
  var _ref, _ref1, _ref2, _ref3, _request_finalizeRecipientVariables, _request_batchSend;
125
125
  var request = config.request, defaultSender = config.defaultSender, testEnvironment = config.isTestingEnvironment, tmp = config.recipientVariablePrefix, inputRecipientVariablePrefix = tmp === void 0 ? DEFAULT_RECIPIENT_VARIABLE_PREFIX : tmp, tmp1 = config.addRecipientVariablePrefixToAllMergedGlobalVariables, inputAddRecipientVariablePrefixToAllMergedGlobalVariables = tmp1 === void 0 ? true : tmp1, tmp2 = config.addCopyOfMergedRecipientVariablesWithoutPrefixToGlobalVariables, inputAddCopyOfMergedRecipientVariablesWithoutPrefixToGlobalVariables = tmp2 === void 0 ? false : tmp2, tmp3 = config.addCopyOfTemplateVariablesWithRecipientVariablePrefix, inputAddCopyOfTemplateVariablesWithRecipientVariablePrefix = tmp3 === void 0 ? false : tmp3;
126
126
  var recipientVariablesConfig = request.recipientVariablesConfig;
@@ -1042,7 +1042,6 @@ function _unsupported_iterable_to_array(o, minLen) {
1042
1042
  var batchSendRequestRecipients = [];
1043
1043
  recipients.forEach(function(recipient) {
1044
1044
  var _recipient_cc, _recipient_bcc;
1045
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- intentional: need || so empty cc array (length 0) falls through to check bcc
1046
1045
  var recipientHasCarbonCopy = Boolean(((_recipient_cc = recipient.cc) === null || _recipient_cc === void 0 ? void 0 : _recipient_cc.length) || ((_recipient_bcc = recipient.bcc) === null || _recipient_bcc === void 0 ? void 0 : _recipient_bcc.length));
1047
1046
  if (allowBatchSend && !recipientHasCarbonCopy) {
1048
1047
  // add to batch send recipients
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/mailgun",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.4.1",
6
- "@dereekb/model": "13.4.1",
7
- "@dereekb/nestjs": "13.4.1",
8
- "@dereekb/rxjs": "13.4.1",
9
- "@dereekb/util": "13.4.1",
5
+ "@dereekb/date": "13.4.2",
6
+ "@dereekb/model": "13.4.2",
7
+ "@dereekb/nestjs": "13.4.2",
8
+ "@dereekb/rxjs": "13.4.2",
9
+ "@dereekb/util": "13.4.2",
10
10
  "@nestjs/common": "^11.1.16",
11
11
  "@nestjs/config": "^4.0.3",
12
12
  "form-data": "^4.0.0",
@@ -167,10 +167,11 @@ export interface ConvertMailgunTemplateEmailRequestToMailgunMessageDataConfig ex
167
167
  */
168
168
  export declare const MAX_BATCH_SEND_RECIPIENTS = 1000;
169
169
  /**
170
- * Converts a MailgunTemplateEmailRequest to a MailgunMessageData.
170
+ * Converts a {@link MailgunTemplateEmailRequest} into Mailgun-compatible {@link MailgunMessageData},
171
+ * applying sender defaults, recipient variable prefixing, and test environment overrides.
171
172
  *
172
- * @param config
173
- * @returns
173
+ * @param config - The conversion configuration containing the email request, default sender, and recipient variable settings.
174
+ * @returns The constructed {@link MailgunMessageData} ready to be sent via the Mailgun API.
174
175
  */
175
176
  export declare function convertMailgunTemplateEmailRequestToMailgunMessageData(config: ConvertMailgunTemplateEmailRequestToMailgunMessageDataConfig): MailgunMessageData;
176
177
  /**
@@ -66,7 +66,6 @@ var openaiEventHandlerFactory = util.handlerFactory(function(x) {
66
66
  });
67
67
  var openaiEventHandlerConfigurerFactory = util.handlerConfigurerFactory({
68
68
  configurerForAccessor: function configurerForAccessor(accessor) {
69
- // eslint-disable-next-line
70
69
  var fnWithKey = util.handlerMappedSetFunctionFactory(accessor, openAIWebhookEvent);
71
70
  var configurer = _object_spread_props(_object_spread({}, accessor), {
72
71
  handleBatchCancelled: fnWithKey('batch.cancelled'),
@@ -64,7 +64,6 @@ var openaiEventHandlerFactory = handlerFactory(function(x) {
64
64
  });
65
65
  var openaiEventHandlerConfigurerFactory = handlerConfigurerFactory({
66
66
  configurerForAccessor: function configurerForAccessor(accessor) {
67
- // eslint-disable-next-line
68
67
  var fnWithKey = handlerMappedSetFunctionFactory(accessor, openAIWebhookEvent);
69
68
  var configurer = _object_spread_props(_object_spread({}, accessor), {
70
69
  handleBatchCancelled: fnWithKey('batch.cancelled'),
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/openai",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.4.1",
6
- "@dereekb/model": "13.4.1",
7
- "@dereekb/nestjs": "13.4.1",
8
- "@dereekb/rxjs": "13.4.1",
9
- "@dereekb/util": "13.4.1",
5
+ "@dereekb/date": "13.4.2",
6
+ "@dereekb/model": "13.4.2",
7
+ "@dereekb/nestjs": "13.4.2",
8
+ "@dereekb/rxjs": "13.4.2",
9
+ "@dereekb/util": "13.4.2",
10
10
  "@nestjs/common": "^11.1.16",
11
11
  "@nestjs/config": "^4.0.3",
12
12
  "express": "^5.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "types": "./src/index.d.ts",
5
5
  "module": "./index.esm.js",
6
6
  "main": "./index.cjs.js",
@@ -50,7 +50,7 @@
50
50
  }
51
51
  },
52
52
  "peerDependencies": {
53
- "@dereekb/util": "13.4.1",
53
+ "@dereekb/util": "13.4.2",
54
54
  "discord.js": "^14.25.1",
55
55
  "@nestjs/common": "^11.1.16",
56
56
  "@nestjs/config": "^4.0.3",
@@ -101,7 +101,6 @@ var stripeEventHandlerFactory = util.handlerFactory(function(x) {
101
101
  });
102
102
  var stripeEventHandlerConfigurerFactory = util.handlerConfigurerFactory({
103
103
  configurerForAccessor: function configurerForAccessor(accessor) {
104
- // eslint-disable-next-line
105
104
  var fnWithKey = util.handlerMappedSetFunctionFactory(accessor, stripeWebhookEvent);
106
105
  var configurer = _object_spread_props(_object_spread({}, accessor), {
107
106
  handleCheckoutSessionComplete: fnWithKey(exports.StripeWebhookEventType.CHECKOUT_SESSION_COMPLETED),
@@ -99,7 +99,6 @@ var stripeEventHandlerFactory = handlerFactory(function(x) {
99
99
  });
100
100
  var stripeEventHandlerConfigurerFactory = handlerConfigurerFactory({
101
101
  configurerForAccessor: function configurerForAccessor(accessor) {
102
- // eslint-disable-next-line
103
102
  var fnWithKey = handlerMappedSetFunctionFactory(accessor, stripeWebhookEvent);
104
103
  var configurer = _object_spread_props(_object_spread({}, accessor), {
105
104
  handleCheckoutSessionComplete: fnWithKey(StripeWebhookEventType.CHECKOUT_SESSION_COMPLETED),
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/stripe",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.4.1",
6
- "@dereekb/model": "13.4.1",
7
- "@dereekb/nestjs": "13.4.1",
8
- "@dereekb/rxjs": "13.4.1",
9
- "@dereekb/util": "13.4.1",
5
+ "@dereekb/date": "13.4.2",
6
+ "@dereekb/model": "13.4.2",
7
+ "@dereekb/nestjs": "13.4.2",
8
+ "@dereekb/rxjs": "13.4.2",
9
+ "@dereekb/util": "13.4.2",
10
10
  "@nestjs/common": "^11.1.16",
11
11
  "@nestjs/config": "^4.0.3",
12
12
  "express": "^5.0.0",
@@ -67,7 +67,6 @@ var typeformEventHandlerFactory = util.handlerFactory(function(x) {
67
67
  });
68
68
  var typeformEventHandlerConfigurerFactory = util.handlerConfigurerFactory({
69
69
  configurerForAccessor: function configurerForAccessor(accessor) {
70
- // eslint-disable-next-line
71
70
  var fnWithKey = util.handlerMappedSetFunctionFactory(accessor, typeFormWebhookEvent);
72
71
  var configurer = _object_spread_props$1(_object_spread$1({}, accessor), {
73
72
  handleFormResponse: fnWithKey('form_response')
@@ -65,7 +65,6 @@ var typeformEventHandlerFactory = handlerFactory(function(x) {
65
65
  });
66
66
  var typeformEventHandlerConfigurerFactory = handlerConfigurerFactory({
67
67
  configurerForAccessor: function configurerForAccessor(accessor) {
68
- // eslint-disable-next-line
69
68
  var fnWithKey = handlerMappedSetFunctionFactory(accessor, typeFormWebhookEvent);
70
69
  var configurer = _object_spread_props$1(_object_spread$1({}, accessor), {
71
70
  handleFormResponse: fnWithKey('form_response')
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/typeform",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.4.1",
6
- "@dereekb/model": "13.4.1",
7
- "@dereekb/nestjs": "13.4.1",
8
- "@dereekb/rxjs": "13.4.1",
9
- "@dereekb/util": "13.4.1",
5
+ "@dereekb/date": "13.4.2",
6
+ "@dereekb/model": "13.4.2",
7
+ "@dereekb/nestjs": "13.4.2",
8
+ "@dereekb/rxjs": "13.4.2",
9
+ "@dereekb/util": "13.4.2",
10
10
  "@nestjs/common": "^11.1.16",
11
11
  "@nestjs/config": "^4.0.3",
12
12
  "@typeform/api-client": "^2.5.1",
@@ -41,7 +41,7 @@ export type TypeformFormResponseToken = string;
41
41
  *
42
42
  * The type has utm fields added for convenience.
43
43
  */
44
- export interface TypeformFormHiddenMetadata extends Partial<Record<string, unknown>> {
44
+ export interface TypeformFormHiddenMetadata extends Partial<Record<string, any>> {
45
45
  readonly utm_campaign?: string;
46
46
  readonly utm_medium?: string;
47
47
  readonly utm_source?: string;
@@ -76,7 +76,6 @@ var vapiaiEventHandlerFactory = util.handlerFactory(function(x) {
76
76
  });
77
77
  var vapiaiEventHandlerConfigurerFactory = util.handlerConfigurerFactory({
78
78
  configurerForAccessor: function configurerForAccessor(accessor) {
79
- // eslint-disable-next-line
80
79
  var fnWithKey = util.handlerMappedSetFunctionFactory(accessor, vapiAiWebhookEvent);
81
80
  var configurer = _object_spread_props(_object_spread$1({}, accessor), {
82
81
  handleAssistantRequest: fnWithKey('assistant-request'),
@@ -74,7 +74,6 @@ var vapiaiEventHandlerFactory = handlerFactory(function(x) {
74
74
  });
75
75
  var vapiaiEventHandlerConfigurerFactory = handlerConfigurerFactory({
76
76
  configurerForAccessor: function configurerForAccessor(accessor) {
77
- // eslint-disable-next-line
78
77
  var fnWithKey = handlerMappedSetFunctionFactory(accessor, vapiAiWebhookEvent);
79
78
  var configurer = _object_spread_props(_object_spread$1({}, accessor), {
80
79
  handleAssistantRequest: fnWithKey('assistant-request'),
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/vapiai",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.4.1",
6
- "@dereekb/model": "13.4.1",
7
- "@dereekb/nestjs": "13.4.1",
8
- "@dereekb/rxjs": "13.4.1",
9
- "@dereekb/util": "13.4.1",
5
+ "@dereekb/date": "13.4.2",
6
+ "@dereekb/model": "13.4.2",
7
+ "@dereekb/nestjs": "13.4.2",
8
+ "@dereekb/rxjs": "13.4.2",
9
+ "@dereekb/util": "13.4.2",
10
10
  "@nestjs/common": "^11.1.16",
11
11
  "@nestjs/config": "^4.0.3",
12
12
  "@vapi-ai/server-sdk": "^0.11.0",