emailr 1.2.0 → 1.3.0
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 +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -128,6 +128,7 @@ interface Contact {
|
|
|
128
128
|
metadata: Record<string, unknown> | null;
|
|
129
129
|
subscribed: boolean;
|
|
130
130
|
unsubscribed_at: string | null;
|
|
131
|
+
tags?: string[];
|
|
131
132
|
created_at: string;
|
|
132
133
|
updated_at: string;
|
|
133
134
|
}
|
|
@@ -137,6 +138,7 @@ interface CreateContactRequest {
|
|
|
137
138
|
last_name?: string;
|
|
138
139
|
subscribed?: boolean;
|
|
139
140
|
metadata?: Record<string, unknown>;
|
|
141
|
+
tags?: string[];
|
|
140
142
|
}
|
|
141
143
|
interface UpdateContactRequest {
|
|
142
144
|
email?: string;
|
|
@@ -144,11 +146,13 @@ interface UpdateContactRequest {
|
|
|
144
146
|
last_name?: string;
|
|
145
147
|
subscribed?: boolean;
|
|
146
148
|
metadata?: Record<string, unknown>;
|
|
149
|
+
tags?: string[];
|
|
147
150
|
}
|
|
148
151
|
interface ListContactsParams {
|
|
149
152
|
limit?: number;
|
|
150
153
|
offset?: number;
|
|
151
154
|
subscribed?: boolean;
|
|
155
|
+
tags?: string;
|
|
152
156
|
}
|
|
153
157
|
interface ContactListResponse {
|
|
154
158
|
contacts: Contact[];
|
|
@@ -172,6 +176,7 @@ interface Template {
|
|
|
172
176
|
text_content: string | null;
|
|
173
177
|
preview_html: string | null;
|
|
174
178
|
variables: string[] | null;
|
|
179
|
+
tags?: string[];
|
|
175
180
|
from_email: string | null;
|
|
176
181
|
reply_to: string | null;
|
|
177
182
|
preview_text: string | null;
|
|
@@ -185,6 +190,7 @@ interface CreateTemplateRequest {
|
|
|
185
190
|
html_content?: string;
|
|
186
191
|
text_content?: string;
|
|
187
192
|
variables?: string[];
|
|
193
|
+
tags?: string[];
|
|
188
194
|
from_email?: string;
|
|
189
195
|
reply_to?: string;
|
|
190
196
|
preview_text?: string;
|
|
@@ -195,6 +201,7 @@ interface UpdateTemplateRequest {
|
|
|
195
201
|
html_content?: string;
|
|
196
202
|
text_content?: string;
|
|
197
203
|
variables?: string[];
|
|
204
|
+
tags?: string[];
|
|
198
205
|
from_email?: string;
|
|
199
206
|
reply_to?: string;
|
|
200
207
|
preview_text?: string;
|
|
@@ -202,6 +209,7 @@ interface UpdateTemplateRequest {
|
|
|
202
209
|
interface ListTemplatesParams {
|
|
203
210
|
page?: number;
|
|
204
211
|
limit?: number;
|
|
212
|
+
tags?: string;
|
|
205
213
|
}
|
|
206
214
|
interface PushPreviewResponse {
|
|
207
215
|
preview_url: string;
|
|
@@ -321,6 +329,7 @@ interface Broadcast {
|
|
|
321
329
|
scheduled_at: string | null;
|
|
322
330
|
started_at: string | null;
|
|
323
331
|
completed_at: string | null;
|
|
332
|
+
tags?: string[];
|
|
324
333
|
created_by: string | null;
|
|
325
334
|
created_at: string;
|
|
326
335
|
}
|
|
@@ -333,6 +342,7 @@ interface CreateBroadcastRequest {
|
|
|
333
342
|
html_content?: string;
|
|
334
343
|
text_content?: string;
|
|
335
344
|
scheduled_at?: string;
|
|
345
|
+
tags?: string[];
|
|
336
346
|
}
|
|
337
347
|
interface UpdateBroadcastRequest {
|
|
338
348
|
name?: string;
|
|
@@ -343,6 +353,7 @@ interface UpdateBroadcastRequest {
|
|
|
343
353
|
html_content?: string;
|
|
344
354
|
text_content?: string;
|
|
345
355
|
scheduled_at?: string;
|
|
356
|
+
tags?: string[];
|
|
346
357
|
}
|
|
347
358
|
interface SendBroadcastResponse {
|
|
348
359
|
success: boolean;
|
|
@@ -353,6 +364,7 @@ interface ListBroadcastsParams {
|
|
|
353
364
|
page?: number;
|
|
354
365
|
limit?: number;
|
|
355
366
|
status?: string;
|
|
367
|
+
tags?: string;
|
|
356
368
|
}
|
|
357
369
|
interface Segment {
|
|
358
370
|
id: string;
|
|
@@ -360,6 +372,7 @@ interface Segment {
|
|
|
360
372
|
name: string;
|
|
361
373
|
description: string | null;
|
|
362
374
|
conditions: Record<string, unknown>;
|
|
375
|
+
tags?: string[];
|
|
363
376
|
created_by: string | null;
|
|
364
377
|
created_at: string;
|
|
365
378
|
updated_at: string;
|
|
@@ -368,15 +381,18 @@ interface CreateSegmentRequest {
|
|
|
368
381
|
name: string;
|
|
369
382
|
description?: string;
|
|
370
383
|
conditions: Record<string, unknown>;
|
|
384
|
+
tags?: string[];
|
|
371
385
|
}
|
|
372
386
|
interface UpdateSegmentRequest {
|
|
373
387
|
name?: string;
|
|
374
388
|
description?: string;
|
|
375
389
|
conditions?: Record<string, unknown>;
|
|
390
|
+
tags?: string[];
|
|
376
391
|
}
|
|
377
392
|
interface ListSegmentsParams {
|
|
378
393
|
page?: number;
|
|
379
394
|
limit?: number;
|
|
395
|
+
tags?: string;
|
|
380
396
|
}
|
|
381
397
|
interface ApiKey {
|
|
382
398
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ interface Contact {
|
|
|
128
128
|
metadata: Record<string, unknown> | null;
|
|
129
129
|
subscribed: boolean;
|
|
130
130
|
unsubscribed_at: string | null;
|
|
131
|
+
tags?: string[];
|
|
131
132
|
created_at: string;
|
|
132
133
|
updated_at: string;
|
|
133
134
|
}
|
|
@@ -137,6 +138,7 @@ interface CreateContactRequest {
|
|
|
137
138
|
last_name?: string;
|
|
138
139
|
subscribed?: boolean;
|
|
139
140
|
metadata?: Record<string, unknown>;
|
|
141
|
+
tags?: string[];
|
|
140
142
|
}
|
|
141
143
|
interface UpdateContactRequest {
|
|
142
144
|
email?: string;
|
|
@@ -144,11 +146,13 @@ interface UpdateContactRequest {
|
|
|
144
146
|
last_name?: string;
|
|
145
147
|
subscribed?: boolean;
|
|
146
148
|
metadata?: Record<string, unknown>;
|
|
149
|
+
tags?: string[];
|
|
147
150
|
}
|
|
148
151
|
interface ListContactsParams {
|
|
149
152
|
limit?: number;
|
|
150
153
|
offset?: number;
|
|
151
154
|
subscribed?: boolean;
|
|
155
|
+
tags?: string;
|
|
152
156
|
}
|
|
153
157
|
interface ContactListResponse {
|
|
154
158
|
contacts: Contact[];
|
|
@@ -172,6 +176,7 @@ interface Template {
|
|
|
172
176
|
text_content: string | null;
|
|
173
177
|
preview_html: string | null;
|
|
174
178
|
variables: string[] | null;
|
|
179
|
+
tags?: string[];
|
|
175
180
|
from_email: string | null;
|
|
176
181
|
reply_to: string | null;
|
|
177
182
|
preview_text: string | null;
|
|
@@ -185,6 +190,7 @@ interface CreateTemplateRequest {
|
|
|
185
190
|
html_content?: string;
|
|
186
191
|
text_content?: string;
|
|
187
192
|
variables?: string[];
|
|
193
|
+
tags?: string[];
|
|
188
194
|
from_email?: string;
|
|
189
195
|
reply_to?: string;
|
|
190
196
|
preview_text?: string;
|
|
@@ -195,6 +201,7 @@ interface UpdateTemplateRequest {
|
|
|
195
201
|
html_content?: string;
|
|
196
202
|
text_content?: string;
|
|
197
203
|
variables?: string[];
|
|
204
|
+
tags?: string[];
|
|
198
205
|
from_email?: string;
|
|
199
206
|
reply_to?: string;
|
|
200
207
|
preview_text?: string;
|
|
@@ -202,6 +209,7 @@ interface UpdateTemplateRequest {
|
|
|
202
209
|
interface ListTemplatesParams {
|
|
203
210
|
page?: number;
|
|
204
211
|
limit?: number;
|
|
212
|
+
tags?: string;
|
|
205
213
|
}
|
|
206
214
|
interface PushPreviewResponse {
|
|
207
215
|
preview_url: string;
|
|
@@ -321,6 +329,7 @@ interface Broadcast {
|
|
|
321
329
|
scheduled_at: string | null;
|
|
322
330
|
started_at: string | null;
|
|
323
331
|
completed_at: string | null;
|
|
332
|
+
tags?: string[];
|
|
324
333
|
created_by: string | null;
|
|
325
334
|
created_at: string;
|
|
326
335
|
}
|
|
@@ -333,6 +342,7 @@ interface CreateBroadcastRequest {
|
|
|
333
342
|
html_content?: string;
|
|
334
343
|
text_content?: string;
|
|
335
344
|
scheduled_at?: string;
|
|
345
|
+
tags?: string[];
|
|
336
346
|
}
|
|
337
347
|
interface UpdateBroadcastRequest {
|
|
338
348
|
name?: string;
|
|
@@ -343,6 +353,7 @@ interface UpdateBroadcastRequest {
|
|
|
343
353
|
html_content?: string;
|
|
344
354
|
text_content?: string;
|
|
345
355
|
scheduled_at?: string;
|
|
356
|
+
tags?: string[];
|
|
346
357
|
}
|
|
347
358
|
interface SendBroadcastResponse {
|
|
348
359
|
success: boolean;
|
|
@@ -353,6 +364,7 @@ interface ListBroadcastsParams {
|
|
|
353
364
|
page?: number;
|
|
354
365
|
limit?: number;
|
|
355
366
|
status?: string;
|
|
367
|
+
tags?: string;
|
|
356
368
|
}
|
|
357
369
|
interface Segment {
|
|
358
370
|
id: string;
|
|
@@ -360,6 +372,7 @@ interface Segment {
|
|
|
360
372
|
name: string;
|
|
361
373
|
description: string | null;
|
|
362
374
|
conditions: Record<string, unknown>;
|
|
375
|
+
tags?: string[];
|
|
363
376
|
created_by: string | null;
|
|
364
377
|
created_at: string;
|
|
365
378
|
updated_at: string;
|
|
@@ -368,15 +381,18 @@ interface CreateSegmentRequest {
|
|
|
368
381
|
name: string;
|
|
369
382
|
description?: string;
|
|
370
383
|
conditions: Record<string, unknown>;
|
|
384
|
+
tags?: string[];
|
|
371
385
|
}
|
|
372
386
|
interface UpdateSegmentRequest {
|
|
373
387
|
name?: string;
|
|
374
388
|
description?: string;
|
|
375
389
|
conditions?: Record<string, unknown>;
|
|
390
|
+
tags?: string[];
|
|
376
391
|
}
|
|
377
392
|
interface ListSegmentsParams {
|
|
378
393
|
page?: number;
|
|
379
394
|
limit?: number;
|
|
395
|
+
tags?: string;
|
|
380
396
|
}
|
|
381
397
|
interface ApiKey {
|
|
382
398
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -485,6 +485,7 @@ var BroadcastsResource = class {
|
|
|
485
485
|
if (params?.page) queryParams.page = String(params.page);
|
|
486
486
|
if (params?.limit) queryParams.limit = String(params.limit);
|
|
487
487
|
if (params?.status) queryParams.status = params.status;
|
|
488
|
+
if (params?.tags) queryParams.tags = params.tags;
|
|
488
489
|
const data = await this.http.get("/v1/broadcasts", queryParams);
|
|
489
490
|
if (Array.isArray(data)) {
|
|
490
491
|
return data;
|
package/dist/index.mjs
CHANGED
|
@@ -452,6 +452,7 @@ var BroadcastsResource = class {
|
|
|
452
452
|
if (params?.page) queryParams.page = String(params.page);
|
|
453
453
|
if (params?.limit) queryParams.limit = String(params.limit);
|
|
454
454
|
if (params?.status) queryParams.status = params.status;
|
|
455
|
+
if (params?.tags) queryParams.tags = params.tags;
|
|
455
456
|
const data = await this.http.get("/v1/broadcasts", queryParams);
|
|
456
457
|
if (Array.isArray(data)) {
|
|
457
458
|
return data;
|