emailr 1.2.0 → 1.3.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 +17 -0
- package/dist/index.d.ts +17 -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,14 @@ 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
|
+
search?: string;
|
|
156
|
+
tags?: string;
|
|
152
157
|
}
|
|
153
158
|
interface ContactListResponse {
|
|
154
159
|
contacts: Contact[];
|
|
@@ -172,6 +177,7 @@ interface Template {
|
|
|
172
177
|
text_content: string | null;
|
|
173
178
|
preview_html: string | null;
|
|
174
179
|
variables: string[] | null;
|
|
180
|
+
tags?: string[];
|
|
175
181
|
from_email: string | null;
|
|
176
182
|
reply_to: string | null;
|
|
177
183
|
preview_text: string | null;
|
|
@@ -185,6 +191,7 @@ interface CreateTemplateRequest {
|
|
|
185
191
|
html_content?: string;
|
|
186
192
|
text_content?: string;
|
|
187
193
|
variables?: string[];
|
|
194
|
+
tags?: string[];
|
|
188
195
|
from_email?: string;
|
|
189
196
|
reply_to?: string;
|
|
190
197
|
preview_text?: string;
|
|
@@ -195,6 +202,7 @@ interface UpdateTemplateRequest {
|
|
|
195
202
|
html_content?: string;
|
|
196
203
|
text_content?: string;
|
|
197
204
|
variables?: string[];
|
|
205
|
+
tags?: string[];
|
|
198
206
|
from_email?: string;
|
|
199
207
|
reply_to?: string;
|
|
200
208
|
preview_text?: string;
|
|
@@ -202,6 +210,7 @@ interface UpdateTemplateRequest {
|
|
|
202
210
|
interface ListTemplatesParams {
|
|
203
211
|
page?: number;
|
|
204
212
|
limit?: number;
|
|
213
|
+
tags?: string;
|
|
205
214
|
}
|
|
206
215
|
interface PushPreviewResponse {
|
|
207
216
|
preview_url: string;
|
|
@@ -321,6 +330,7 @@ interface Broadcast {
|
|
|
321
330
|
scheduled_at: string | null;
|
|
322
331
|
started_at: string | null;
|
|
323
332
|
completed_at: string | null;
|
|
333
|
+
tags?: string[];
|
|
324
334
|
created_by: string | null;
|
|
325
335
|
created_at: string;
|
|
326
336
|
}
|
|
@@ -333,6 +343,7 @@ interface CreateBroadcastRequest {
|
|
|
333
343
|
html_content?: string;
|
|
334
344
|
text_content?: string;
|
|
335
345
|
scheduled_at?: string;
|
|
346
|
+
tags?: string[];
|
|
336
347
|
}
|
|
337
348
|
interface UpdateBroadcastRequest {
|
|
338
349
|
name?: string;
|
|
@@ -343,6 +354,7 @@ interface UpdateBroadcastRequest {
|
|
|
343
354
|
html_content?: string;
|
|
344
355
|
text_content?: string;
|
|
345
356
|
scheduled_at?: string;
|
|
357
|
+
tags?: string[];
|
|
346
358
|
}
|
|
347
359
|
interface SendBroadcastResponse {
|
|
348
360
|
success: boolean;
|
|
@@ -353,6 +365,7 @@ interface ListBroadcastsParams {
|
|
|
353
365
|
page?: number;
|
|
354
366
|
limit?: number;
|
|
355
367
|
status?: string;
|
|
368
|
+
tags?: string;
|
|
356
369
|
}
|
|
357
370
|
interface Segment {
|
|
358
371
|
id: string;
|
|
@@ -360,6 +373,7 @@ interface Segment {
|
|
|
360
373
|
name: string;
|
|
361
374
|
description: string | null;
|
|
362
375
|
conditions: Record<string, unknown>;
|
|
376
|
+
tags?: string[];
|
|
363
377
|
created_by: string | null;
|
|
364
378
|
created_at: string;
|
|
365
379
|
updated_at: string;
|
|
@@ -368,15 +382,18 @@ interface CreateSegmentRequest {
|
|
|
368
382
|
name: string;
|
|
369
383
|
description?: string;
|
|
370
384
|
conditions: Record<string, unknown>;
|
|
385
|
+
tags?: string[];
|
|
371
386
|
}
|
|
372
387
|
interface UpdateSegmentRequest {
|
|
373
388
|
name?: string;
|
|
374
389
|
description?: string;
|
|
375
390
|
conditions?: Record<string, unknown>;
|
|
391
|
+
tags?: string[];
|
|
376
392
|
}
|
|
377
393
|
interface ListSegmentsParams {
|
|
378
394
|
page?: number;
|
|
379
395
|
limit?: number;
|
|
396
|
+
tags?: string;
|
|
380
397
|
}
|
|
381
398
|
interface ApiKey {
|
|
382
399
|
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,14 @@ 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
|
+
search?: string;
|
|
156
|
+
tags?: string;
|
|
152
157
|
}
|
|
153
158
|
interface ContactListResponse {
|
|
154
159
|
contacts: Contact[];
|
|
@@ -172,6 +177,7 @@ interface Template {
|
|
|
172
177
|
text_content: string | null;
|
|
173
178
|
preview_html: string | null;
|
|
174
179
|
variables: string[] | null;
|
|
180
|
+
tags?: string[];
|
|
175
181
|
from_email: string | null;
|
|
176
182
|
reply_to: string | null;
|
|
177
183
|
preview_text: string | null;
|
|
@@ -185,6 +191,7 @@ interface CreateTemplateRequest {
|
|
|
185
191
|
html_content?: string;
|
|
186
192
|
text_content?: string;
|
|
187
193
|
variables?: string[];
|
|
194
|
+
tags?: string[];
|
|
188
195
|
from_email?: string;
|
|
189
196
|
reply_to?: string;
|
|
190
197
|
preview_text?: string;
|
|
@@ -195,6 +202,7 @@ interface UpdateTemplateRequest {
|
|
|
195
202
|
html_content?: string;
|
|
196
203
|
text_content?: string;
|
|
197
204
|
variables?: string[];
|
|
205
|
+
tags?: string[];
|
|
198
206
|
from_email?: string;
|
|
199
207
|
reply_to?: string;
|
|
200
208
|
preview_text?: string;
|
|
@@ -202,6 +210,7 @@ interface UpdateTemplateRequest {
|
|
|
202
210
|
interface ListTemplatesParams {
|
|
203
211
|
page?: number;
|
|
204
212
|
limit?: number;
|
|
213
|
+
tags?: string;
|
|
205
214
|
}
|
|
206
215
|
interface PushPreviewResponse {
|
|
207
216
|
preview_url: string;
|
|
@@ -321,6 +330,7 @@ interface Broadcast {
|
|
|
321
330
|
scheduled_at: string | null;
|
|
322
331
|
started_at: string | null;
|
|
323
332
|
completed_at: string | null;
|
|
333
|
+
tags?: string[];
|
|
324
334
|
created_by: string | null;
|
|
325
335
|
created_at: string;
|
|
326
336
|
}
|
|
@@ -333,6 +343,7 @@ interface CreateBroadcastRequest {
|
|
|
333
343
|
html_content?: string;
|
|
334
344
|
text_content?: string;
|
|
335
345
|
scheduled_at?: string;
|
|
346
|
+
tags?: string[];
|
|
336
347
|
}
|
|
337
348
|
interface UpdateBroadcastRequest {
|
|
338
349
|
name?: string;
|
|
@@ -343,6 +354,7 @@ interface UpdateBroadcastRequest {
|
|
|
343
354
|
html_content?: string;
|
|
344
355
|
text_content?: string;
|
|
345
356
|
scheduled_at?: string;
|
|
357
|
+
tags?: string[];
|
|
346
358
|
}
|
|
347
359
|
interface SendBroadcastResponse {
|
|
348
360
|
success: boolean;
|
|
@@ -353,6 +365,7 @@ interface ListBroadcastsParams {
|
|
|
353
365
|
page?: number;
|
|
354
366
|
limit?: number;
|
|
355
367
|
status?: string;
|
|
368
|
+
tags?: string;
|
|
356
369
|
}
|
|
357
370
|
interface Segment {
|
|
358
371
|
id: string;
|
|
@@ -360,6 +373,7 @@ interface Segment {
|
|
|
360
373
|
name: string;
|
|
361
374
|
description: string | null;
|
|
362
375
|
conditions: Record<string, unknown>;
|
|
376
|
+
tags?: string[];
|
|
363
377
|
created_by: string | null;
|
|
364
378
|
created_at: string;
|
|
365
379
|
updated_at: string;
|
|
@@ -368,15 +382,18 @@ interface CreateSegmentRequest {
|
|
|
368
382
|
name: string;
|
|
369
383
|
description?: string;
|
|
370
384
|
conditions: Record<string, unknown>;
|
|
385
|
+
tags?: string[];
|
|
371
386
|
}
|
|
372
387
|
interface UpdateSegmentRequest {
|
|
373
388
|
name?: string;
|
|
374
389
|
description?: string;
|
|
375
390
|
conditions?: Record<string, unknown>;
|
|
391
|
+
tags?: string[];
|
|
376
392
|
}
|
|
377
393
|
interface ListSegmentsParams {
|
|
378
394
|
page?: number;
|
|
379
395
|
limit?: number;
|
|
396
|
+
tags?: string;
|
|
380
397
|
}
|
|
381
398
|
interface ApiKey {
|
|
382
399
|
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;
|