@masters-union/outbound-sdk 0.2.13 → 0.2.15

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?: 'urgent' | 'high' | 'normal' | 'low';
28
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
29
29
  idempotencyKey?: string;
30
30
  campaignId?: string;
31
31
  metadata?: Record<string, unknown>;
@@ -67,10 +67,12 @@ interface BulkEmailParams {
67
67
  replyTo?: string;
68
68
  /**
69
69
  * Queue priority for the whole batch, highest-urgency first:
70
- * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
70
+ * `'critical'` → `'urgent'` → `'high'` → `'normal'` (default) → `'low'` `'deferred'` `'backlog'`.
71
+ * Unrecognized values are treated as `'normal'`. `'critical'`/`'urgent'`/`'high'` bypass send pacing;
72
+ * `'normal'` and below are paced. Use `'backlog'`/`'deferred'` for large backfill campaigns so
71
73
  * transactional / time-sensitive sends jump ahead.
72
74
  */
73
- priority?: 'urgent' | 'high' | 'normal' | 'low';
75
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
74
76
  idempotencyKey?: string;
75
77
  campaignId?: string;
76
78
  /**
@@ -270,7 +272,7 @@ interface TemplateSendParams {
270
272
  ccEmail?: string;
271
273
  bccEmail?: string;
272
274
  variables?: Record<string, string>;
273
- priority?: 'urgent' | 'high' | 'normal' | 'low';
275
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
274
276
  idempotencyKey?: string;
275
277
  campaignId?: string;
276
278
  metadata?: Record<string, unknown>;
@@ -284,10 +286,12 @@ interface TemplateBulkSendParams {
284
286
  replyTo?: string;
285
287
  /**
286
288
  * Queue priority for the whole batch, highest-urgency first:
287
- * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
289
+ * `'critical'` → `'urgent'` → `'high'` → `'normal'` (default) → `'low'` `'deferred'` `'backlog'`.
290
+ * Unrecognized values are treated as `'normal'`. `'critical'`/`'urgent'`/`'high'` bypass send pacing;
291
+ * `'normal'` and below are paced. Use `'backlog'`/`'deferred'` for large backfill campaigns so
288
292
  * transactional / time-sensitive sends jump ahead.
289
293
  */
290
- priority?: 'urgent' | 'high' | 'normal' | 'low';
294
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
291
295
  idempotencyKey?: string;
292
296
  campaignId?: string;
293
297
  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?: 'urgent' | 'high' | 'normal' | 'low';
28
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
29
29
  idempotencyKey?: string;
30
30
  campaignId?: string;
31
31
  metadata?: Record<string, unknown>;
@@ -67,10 +67,12 @@ interface BulkEmailParams {
67
67
  replyTo?: string;
68
68
  /**
69
69
  * Queue priority for the whole batch, highest-urgency first:
70
- * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
70
+ * `'critical'` → `'urgent'` → `'high'` → `'normal'` (default) → `'low'` `'deferred'` `'backlog'`.
71
+ * Unrecognized values are treated as `'normal'`. `'critical'`/`'urgent'`/`'high'` bypass send pacing;
72
+ * `'normal'` and below are paced. Use `'backlog'`/`'deferred'` for large backfill campaigns so
71
73
  * transactional / time-sensitive sends jump ahead.
72
74
  */
73
- priority?: 'urgent' | 'high' | 'normal' | 'low';
75
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
74
76
  idempotencyKey?: string;
75
77
  campaignId?: string;
76
78
  /**
@@ -270,7 +272,7 @@ interface TemplateSendParams {
270
272
  ccEmail?: string;
271
273
  bccEmail?: string;
272
274
  variables?: Record<string, string>;
273
- priority?: 'urgent' | 'high' | 'normal' | 'low';
275
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
274
276
  idempotencyKey?: string;
275
277
  campaignId?: string;
276
278
  metadata?: Record<string, unknown>;
@@ -284,10 +286,12 @@ interface TemplateBulkSendParams {
284
286
  replyTo?: string;
285
287
  /**
286
288
  * Queue priority for the whole batch, highest-urgency first:
287
- * `'urgent'` → `'high'` → `'normal'` (default) → `'low'`. Unrecognized values are treated as `'normal'`. Use `'low'` for large backfill campaigns so
289
+ * `'critical'` → `'urgent'` → `'high'` → `'normal'` (default) → `'low'` `'deferred'` `'backlog'`.
290
+ * Unrecognized values are treated as `'normal'`. `'critical'`/`'urgent'`/`'high'` bypass send pacing;
291
+ * `'normal'` and below are paced. Use `'backlog'`/`'deferred'` for large backfill campaigns so
288
292
  * transactional / time-sensitive sends jump ahead.
289
293
  */
290
- priority?: 'urgent' | 'high' | 'normal' | 'low';
294
+ priority?: 'critical' | 'urgent' | 'high' | 'normal' | 'low' | 'deferred' | 'backlog';
291
295
  idempotencyKey?: string;
292
296
  campaignId?: string;
293
297
  recipients: TemplateBulkRecipient[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masters-union/outbound-sdk",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
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",