@masters-union/outbound-sdk 0.2.4 → 0.2.6

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/index.d.mts CHANGED
@@ -25,7 +25,7 @@ interface SendEmailParams {
25
25
  senderName?: string;
26
26
  replyTo?: string;
27
27
  textBody?: string;
28
- priority?: 'low' | 'normal' | 'high';
28
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
29
29
  idempotencyKey?: string;
30
30
  campaignId?: string;
31
31
  metadata?: Record<string, unknown>;
@@ -63,6 +63,12 @@ interface BulkEmailParams {
63
63
  emails: BulkEmailRecipient[];
64
64
  senderName?: string;
65
65
  replyTo?: string;
66
+ /**
67
+ * Queue priority for the whole batch, highest-urgency first:
68
+ * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
69
+ * transactional / time-sensitive sends jump ahead.
70
+ */
71
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
66
72
  idempotencyKey?: string;
67
73
  campaignId?: string;
68
74
  /**
@@ -232,7 +238,7 @@ interface TemplateSendParams {
232
238
  ccEmail?: string;
233
239
  bccEmail?: string;
234
240
  variables?: Record<string, string>;
235
- priority?: 'low' | 'normal' | 'high';
241
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
236
242
  idempotencyKey?: string;
237
243
  campaignId?: string;
238
244
  metadata?: Record<string, unknown>;
@@ -244,6 +250,12 @@ interface TemplateBulkSendParams {
244
250
  fromEmail: string;
245
251
  senderName?: string;
246
252
  replyTo?: string;
253
+ /**
254
+ * Queue priority for the whole batch, highest-urgency first:
255
+ * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
256
+ * transactional / time-sensitive sends jump ahead.
257
+ */
258
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
247
259
  idempotencyKey?: string;
248
260
  campaignId?: string;
249
261
  recipients: TemplateBulkRecipient[];
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ interface SendEmailParams {
25
25
  senderName?: string;
26
26
  replyTo?: string;
27
27
  textBody?: string;
28
- priority?: 'low' | 'normal' | 'high';
28
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
29
29
  idempotencyKey?: string;
30
30
  campaignId?: string;
31
31
  metadata?: Record<string, unknown>;
@@ -63,6 +63,12 @@ interface BulkEmailParams {
63
63
  emails: BulkEmailRecipient[];
64
64
  senderName?: string;
65
65
  replyTo?: string;
66
+ /**
67
+ * Queue priority for the whole batch, highest-urgency first:
68
+ * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
69
+ * transactional / time-sensitive sends jump ahead.
70
+ */
71
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
66
72
  idempotencyKey?: string;
67
73
  campaignId?: string;
68
74
  /**
@@ -232,7 +238,7 @@ interface TemplateSendParams {
232
238
  ccEmail?: string;
233
239
  bccEmail?: string;
234
240
  variables?: Record<string, string>;
235
- priority?: 'low' | 'normal' | 'high';
241
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
236
242
  idempotencyKey?: string;
237
243
  campaignId?: string;
238
244
  metadata?: Record<string, unknown>;
@@ -244,6 +250,12 @@ interface TemplateBulkSendParams {
244
250
  fromEmail: string;
245
251
  senderName?: string;
246
252
  replyTo?: string;
253
+ /**
254
+ * Queue priority for the whole batch, highest-urgency first:
255
+ * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
256
+ * transactional / time-sensitive sends jump ahead.
257
+ */
258
+ priority?: 'urgent' | 'high' | 'normal' | 'low';
247
259
  idempotencyKey?: string;
248
260
  campaignId?: string;
249
261
  recipients: TemplateBulkRecipient[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masters-union/outbound-sdk",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Official Node.js SDK for the Outbound Email SaaS platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",