@masters-union/outbound-sdk 0.1.6 → 0.2.1

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
@@ -66,6 +66,11 @@ interface BulkEmailRecipient {
66
66
  interface BulkEmailResponse {
67
67
  message: string;
68
68
  jobId: string;
69
+ /**
70
+ * Count of sendable recipients (after suppression + dedup).
71
+ * Suppressed addresses are recorded as `dropped` recipient rows on the job
72
+ * and can be inspected via the job-status endpoint.
73
+ */
69
74
  recipientCount: number;
70
75
  suppressedCount: number;
71
76
  /**
@@ -102,7 +107,7 @@ interface EmailRecipientStatus {
102
107
  error_message?: string;
103
108
  created_at: string;
104
109
  }
105
- type EmailStatus = 'queued' | 'processing' | 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'failed' | 'cancelled';
110
+ type EmailStatus = 'queued' | 'processing' | 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'failed' | 'cancelled' | 'dropped';
106
111
  interface CancelEmailParams {
107
112
  /** Cancel all jobs belonging to this campaign. */
108
113
  campaignId?: string;
@@ -209,6 +214,11 @@ interface TemplateBulkRecipient {
209
214
  interface TemplateBulkSendResponse {
210
215
  message: string;
211
216
  jobId: string;
217
+ /**
218
+ * Count of sendable recipients (after suppression + dedup).
219
+ * Suppressed addresses are recorded as `dropped` recipient rows on the job
220
+ * and can be inspected via the job-status endpoint.
221
+ */
212
222
  recipientCount: number;
213
223
  suppressedCount: number;
214
224
  /**
package/dist/index.d.ts CHANGED
@@ -66,6 +66,11 @@ interface BulkEmailRecipient {
66
66
  interface BulkEmailResponse {
67
67
  message: string;
68
68
  jobId: string;
69
+ /**
70
+ * Count of sendable recipients (after suppression + dedup).
71
+ * Suppressed addresses are recorded as `dropped` recipient rows on the job
72
+ * and can be inspected via the job-status endpoint.
73
+ */
69
74
  recipientCount: number;
70
75
  suppressedCount: number;
71
76
  /**
@@ -102,7 +107,7 @@ interface EmailRecipientStatus {
102
107
  error_message?: string;
103
108
  created_at: string;
104
109
  }
105
- type EmailStatus = 'queued' | 'processing' | 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'failed' | 'cancelled';
110
+ type EmailStatus = 'queued' | 'processing' | 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'failed' | 'cancelled' | 'dropped';
106
111
  interface CancelEmailParams {
107
112
  /** Cancel all jobs belonging to this campaign. */
108
113
  campaignId?: string;
@@ -209,6 +214,11 @@ interface TemplateBulkRecipient {
209
214
  interface TemplateBulkSendResponse {
210
215
  message: string;
211
216
  jobId: string;
217
+ /**
218
+ * Count of sendable recipients (after suppression + dedup).
219
+ * Suppressed addresses are recorded as `dropped` recipient rows on the job
220
+ * and can be inspected via the job-status endpoint.
221
+ */
212
222
  recipientCount: number;
213
223
  suppressedCount: number;
214
224
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masters-union/outbound-sdk",
3
- "version": "0.1.6",
3
+ "version": "0.2.1",
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",
@@ -25,7 +25,7 @@
25
25
  "docs:build": "vitepress build docs",
26
26
  "docs:preview": "vitepress preview docs",
27
27
  "prepublishOnly": "npm run build",
28
- "release": "npm version patch && git push && git push --tags",
28
+ "release": "node -e \"const v=process.env.npm_config_minor==='true'?'minor':'patch';require('child_process').execSync('npm version '+v,{stdio:'inherit'})\" && git push && git push --tags",
29
29
  "deploy": "git push && npm run release"
30
30
  },
31
31
  "keywords": [