emailsdone 0.1.10

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.
@@ -0,0 +1,735 @@
1
+ export interface EmailsDoneClientOptions {
2
+ apiKey: string;
3
+ apiBaseUrl?: string;
4
+ }
5
+ export interface GetRecipientStatusOptions {
6
+ limit?: number | undefined;
7
+ }
8
+ export interface SendOptions {
9
+ templateVersion?: string | undefined;
10
+ from?: string | undefined;
11
+ fromName?: string | undefined;
12
+ replyTo?: string | undefined;
13
+ idempotencyKey?: string | undefined;
14
+ }
15
+ export interface SendTemplatePayload extends SendOptions {
16
+ templateId: string;
17
+ to: string;
18
+ data: Record<string, unknown>;
19
+ }
20
+ export interface TemplateOptions extends SendOptions {
21
+ [key: string]: unknown;
22
+ }
23
+ export interface SendEmailResponse {
24
+ idempotent: boolean;
25
+ messageId: string;
26
+ ok: boolean;
27
+ status: "accepted";
28
+ }
29
+ export interface GetQuotaQuotaEnvironment {
30
+ usedThisMonth: number;
31
+ }
32
+ export interface GetQuotaQuotaMonthly {
33
+ limit: number;
34
+ remaining: number;
35
+ status: string;
36
+ used: number;
37
+ }
38
+ export interface GetQuotaQuotaPeriod {
39
+ id: string;
40
+ }
41
+ export interface GetQuotaQuota {
42
+ accessStatus: string;
43
+ environment: GetQuotaQuotaEnvironment;
44
+ environmentId: string;
45
+ monthly: GetQuotaQuotaMonthly;
46
+ period: GetQuotaQuotaPeriod;
47
+ planId: string;
48
+ projectId: string;
49
+ sendingStatus: string;
50
+ tenantId: string;
51
+ }
52
+ export interface GetQuotaResponse {
53
+ ok: boolean;
54
+ quota: GetQuotaQuota;
55
+ }
56
+ export interface GetRecipientStatusRecipientDelivery {
57
+ complainedAt?: string;
58
+ complaintCount: number;
59
+ cooldownUntil?: string;
60
+ hardBounceCount: number;
61
+ }
62
+ export interface GetRecipientStatusRecipientSubscription {
63
+ resubscribedAt?: string;
64
+ scope?: string;
65
+ status: string;
66
+ unsubscribedAt?: string;
67
+ }
68
+ export interface GetRecipientStatusRecipient {
69
+ canSendNotifications: boolean;
70
+ delivery: GetRecipientStatusRecipientDelivery;
71
+ emailMasked: string;
72
+ recipientDomain: string;
73
+ state: string;
74
+ subscription: GetRecipientStatusRecipientSubscription;
75
+ }
76
+ export interface GetRecipientStatusResponse {
77
+ messages: Array<Record<string, unknown>>;
78
+ ok: boolean;
79
+ recipient: GetRecipientStatusRecipient;
80
+ }
81
+ export interface ResubscribeRecipientResponse {
82
+ ok: boolean;
83
+ }
84
+ export interface AccountLockedOptions extends SendOptions {
85
+ actionButtonLabel?: string;
86
+ actionButtonUrl?: string;
87
+ heading?: string;
88
+ intro?: string;
89
+ lockDetails?: {
90
+ lockedAt?: string;
91
+ reason?: string;
92
+ };
93
+ notice?: string;
94
+ preheader?: string;
95
+ subject?: string;
96
+ }
97
+ export interface EmailChangedOptions extends SendOptions {
98
+ actionButtonLabel?: string;
99
+ actionButtonUrl?: string;
100
+ changeDetails?: {
101
+ changedAt?: string;
102
+ newEmail?: string;
103
+ oldEmail?: string;
104
+ };
105
+ footerNote?: string;
106
+ heading?: string;
107
+ intro?: string;
108
+ preheader?: string;
109
+ subject?: string;
110
+ }
111
+ export interface LoginCodeOptions extends SendOptions {
112
+ footerNote?: string;
113
+ heading?: string;
114
+ intro?: string;
115
+ preheader?: string;
116
+ securityNote?: string;
117
+ subject?: string;
118
+ }
119
+ export interface MagicLinkOptions extends SendOptions {
120
+ actionButtonLabel?: string;
121
+ footerNote?: string;
122
+ heading?: string;
123
+ intro?: string;
124
+ preheader?: string;
125
+ subject?: string;
126
+ }
127
+ export interface MfaDisabledOptions extends SendOptions {
128
+ actionButtonLabel?: string;
129
+ actionButtonUrl?: string;
130
+ footerNote?: string;
131
+ heading?: string;
132
+ intro?: string;
133
+ notice?: string;
134
+ preheader?: string;
135
+ securityDetails?: {
136
+ country?: string;
137
+ device?: string;
138
+ disabledAt?: string;
139
+ ip?: string;
140
+ };
141
+ subject?: string;
142
+ }
143
+ export interface MfaEnabledOptions extends SendOptions {
144
+ actionButtonLabel?: string;
145
+ actionButtonUrl?: string;
146
+ footerNote?: string;
147
+ heading?: string;
148
+ intro?: string;
149
+ notice?: string;
150
+ preheader?: string;
151
+ securityDetails?: {
152
+ device?: string;
153
+ enabledAt?: string;
154
+ method?: string;
155
+ };
156
+ subject?: string;
157
+ }
158
+ export interface NewDeviceLoginOptions extends SendOptions {
159
+ actionButtonLabel?: string;
160
+ actionButtonUrl?: string;
161
+ footerNote?: string;
162
+ heading?: string;
163
+ intro?: string;
164
+ loginDetails?: {
165
+ country?: string;
166
+ device?: string;
167
+ ip?: string;
168
+ signedInAt?: string;
169
+ };
170
+ preheader?: string;
171
+ subject?: string;
172
+ }
173
+ export interface PasswordChangedOptions extends SendOptions {
174
+ actionButtonLabel?: string;
175
+ actionButtonUrl?: string;
176
+ changeDetails?: {
177
+ changedAt?: string;
178
+ country?: string;
179
+ device?: string;
180
+ ip?: string;
181
+ };
182
+ footerNote?: string;
183
+ heading?: string;
184
+ intro?: string;
185
+ preheader?: string;
186
+ subject?: string;
187
+ }
188
+ export interface PasswordResetOptions extends SendOptions {
189
+ actionButtonLabel?: string;
190
+ footerNote?: string;
191
+ heading?: string;
192
+ intro?: string;
193
+ preheader?: string;
194
+ requestDetails?: {
195
+ country?: string;
196
+ device?: string;
197
+ ip?: string;
198
+ requestedAt?: string;
199
+ };
200
+ securityNote?: string;
201
+ subject?: string;
202
+ }
203
+ export interface SuspiciousLoginOptions extends SendOptions {
204
+ actionButtonLabel?: string;
205
+ actionButtonUrl?: string;
206
+ heading?: string;
207
+ intro?: string;
208
+ loginDetails?: {
209
+ attemptedAt?: string;
210
+ country?: string;
211
+ device?: string;
212
+ ip?: string;
213
+ };
214
+ notice?: string;
215
+ preheader?: string;
216
+ subject?: string;
217
+ }
218
+ export interface VerifyEmailOptions extends SendOptions {
219
+ actionButtonLabel?: string;
220
+ footerNote?: string;
221
+ heading?: string;
222
+ intro?: string;
223
+ preheader?: string;
224
+ securityNote?: string;
225
+ subject?: string;
226
+ }
227
+ export interface WelcomeOptions extends SendOptions {
228
+ actionButtonLabel?: string;
229
+ callToActionHeading?: string;
230
+ callToActionParagraph?: string;
231
+ heading?: string;
232
+ intro?: string;
233
+ preheader?: string;
234
+ subject?: string;
235
+ }
236
+ export interface InvoiceOptions extends SendOptions {
237
+ invoice: Record<string, unknown>;
238
+ invoiceNumber: string;
239
+ actionButtonLabel?: string;
240
+ actionButtonUrl?: string;
241
+ heading?: string;
242
+ intro?: string;
243
+ preheader?: string;
244
+ subject?: string;
245
+ }
246
+ export interface InvoiceOverdueOptions extends SendOptions {
247
+ actionButtonUrl: string;
248
+ actionButtonLabel?: string;
249
+ heading?: string;
250
+ intro?: string;
251
+ invoiceDetails?: {
252
+ amount?: string;
253
+ daysOverdue?: number;
254
+ dueDate?: string;
255
+ invoiceNumber?: string;
256
+ };
257
+ preheader?: string;
258
+ subject?: string;
259
+ }
260
+ export interface PaymentFailedOptions extends SendOptions {
261
+ actionButtonUrl: string;
262
+ actionButtonLabel?: string;
263
+ actionNote?: string;
264
+ footerNote?: string;
265
+ heading?: string;
266
+ intro?: string;
267
+ paymentDetails?: {
268
+ amount?: string;
269
+ dueDate?: string;
270
+ paymentMethod?: string;
271
+ reason?: string;
272
+ };
273
+ preheader?: string;
274
+ subject?: string;
275
+ }
276
+ export interface PaymentSucceededOptions extends SendOptions {
277
+ actionButtonLabel?: string;
278
+ actionButtonUrl?: string;
279
+ heading?: string;
280
+ intro?: string;
281
+ paymentDetails?: {
282
+ amount?: string;
283
+ paidAt?: string;
284
+ paymentMethod?: string;
285
+ reference?: string;
286
+ };
287
+ preheader?: string;
288
+ subject?: string;
289
+ }
290
+ export interface RefundIssuedOptions extends SendOptions {
291
+ footerNote?: string;
292
+ heading?: string;
293
+ intro?: string;
294
+ preheader?: string;
295
+ refundDetails?: {
296
+ amount?: string;
297
+ issuedAt?: string;
298
+ paymentMethod?: string;
299
+ reference?: string;
300
+ };
301
+ subject?: string;
302
+ }
303
+ export interface SubscriptionCancelledOptions extends SendOptions {
304
+ actionButtonLabel?: string;
305
+ actionButtonUrl?: string;
306
+ heading?: string;
307
+ intro?: string;
308
+ preheader?: string;
309
+ subject?: string;
310
+ subscriptionDetails?: {
311
+ accessEndsAt?: string;
312
+ cancelledAt?: string;
313
+ plan?: string;
314
+ };
315
+ }
316
+ export interface SubscriptionPausedOptions extends SendOptions {
317
+ actionButtonLabel?: string;
318
+ actionButtonUrl?: string;
319
+ heading?: string;
320
+ intro?: string;
321
+ preheader?: string;
322
+ subject?: string;
323
+ subscriptionDetails?: {
324
+ pausedAt?: string;
325
+ plan?: string;
326
+ resumesAt?: string;
327
+ };
328
+ }
329
+ export interface SubscriptionRenewedOptions extends SendOptions {
330
+ actionButtonLabel?: string;
331
+ actionButtonUrl?: string;
332
+ heading?: string;
333
+ intro?: string;
334
+ preheader?: string;
335
+ subject?: string;
336
+ subscriptionDetails?: {
337
+ amount?: string;
338
+ nextRenewalAt?: string;
339
+ plan?: string;
340
+ renewedAt?: string;
341
+ };
342
+ }
343
+ export interface SubscriptionStartedOptions extends SendOptions {
344
+ actionButtonLabel?: string;
345
+ actionButtonUrl?: string;
346
+ heading?: string;
347
+ intro?: string;
348
+ preheader?: string;
349
+ subject?: string;
350
+ subscriptionDetails?: {
351
+ amount?: string;
352
+ plan?: string;
353
+ renewsAt?: string;
354
+ startedAt?: string;
355
+ };
356
+ }
357
+ export interface TrialEndingOptions extends SendOptions {
358
+ actionButtonUrl: string;
359
+ trialEndDate: string;
360
+ actionButtonLabel?: string;
361
+ heading?: string;
362
+ intro?: string;
363
+ preheader?: string;
364
+ subject?: string;
365
+ upgradeNote?: string;
366
+ }
367
+ export interface TrialStartedOptions extends SendOptions {
368
+ actionButtonLabel?: string;
369
+ actionButtonUrl?: string;
370
+ heading?: string;
371
+ intro?: string;
372
+ preheader?: string;
373
+ subject?: string;
374
+ trialDetails?: {
375
+ endsAt?: string;
376
+ plan?: string;
377
+ startedAt?: string;
378
+ };
379
+ }
380
+ export interface UsageThresholdOptions extends SendOptions {
381
+ message: string;
382
+ actionButtonLabel?: string;
383
+ actionButtonUrl?: string;
384
+ heading?: string;
385
+ preheader?: string;
386
+ subject?: string;
387
+ usageDetails?: {
388
+ limit?: number;
389
+ percentage?: number;
390
+ periodEndsAt?: string;
391
+ used?: number;
392
+ };
393
+ }
394
+ export interface ApiKeyCreatedOptions extends SendOptions {
395
+ actionButtonLabel?: string;
396
+ actionButtonUrl?: string;
397
+ apiKeyDetails?: {
398
+ createdAt?: string;
399
+ createdBy?: string;
400
+ environment?: string;
401
+ name?: string;
402
+ };
403
+ heading?: string;
404
+ intro?: string;
405
+ notice?: string;
406
+ preheader?: string;
407
+ subject?: string;
408
+ }
409
+ export interface ApiKeyRotatedOptions extends SendOptions {
410
+ actionButtonLabel?: string;
411
+ actionButtonUrl?: string;
412
+ apiKeyDetails?: {
413
+ environment?: string;
414
+ name?: string;
415
+ rotatedAt?: string;
416
+ rotatedBy?: string;
417
+ };
418
+ heading?: string;
419
+ intro?: string;
420
+ preheader?: string;
421
+ subject?: string;
422
+ }
423
+ export interface CreditsExhaustedOptions extends SendOptions {
424
+ actionButtonUrl: string;
425
+ actionButtonLabel?: string;
426
+ creditDetails?: {
427
+ periodEndsAt?: string;
428
+ remaining?: number;
429
+ used?: number;
430
+ };
431
+ heading?: string;
432
+ intro?: string;
433
+ preheader?: string;
434
+ subject?: string;
435
+ }
436
+ export interface CreditsLowOptions extends SendOptions {
437
+ actionButtonLabel?: string;
438
+ actionButtonUrl?: string;
439
+ creditDetails?: {
440
+ periodEndsAt?: string;
441
+ remaining?: number;
442
+ threshold?: number;
443
+ };
444
+ heading?: string;
445
+ intro?: string;
446
+ preheader?: string;
447
+ subject?: string;
448
+ }
449
+ export interface AnnouncementOptions extends SendOptions {
450
+ message: string;
451
+ actionButtonLabel?: string;
452
+ actionButtonUrl?: string;
453
+ heading?: string;
454
+ preheader?: string;
455
+ subject?: string;
456
+ }
457
+ export interface ApprovalApprovedOptions extends SendOptions {
458
+ message: string;
459
+ actionButtonLabel?: string;
460
+ actionButtonUrl?: string;
461
+ approvalDetails?: {
462
+ approvedAt?: string;
463
+ approvedBy?: string;
464
+ item?: string;
465
+ };
466
+ heading?: string;
467
+ preheader?: string;
468
+ subject?: string;
469
+ }
470
+ export interface ApprovalNeededOptions extends SendOptions {
471
+ actionButtonUrl: string;
472
+ actionButtonLabel?: string;
473
+ approvalDetails?: {
474
+ item?: string;
475
+ requestedAt?: string;
476
+ requestedBy?: string;
477
+ };
478
+ heading?: string;
479
+ message?: string;
480
+ preheader?: string;
481
+ subject?: string;
482
+ }
483
+ export interface ApprovalRejectedOptions extends SendOptions {
484
+ message: string;
485
+ actionButtonLabel?: string;
486
+ actionButtonUrl?: string;
487
+ approvalDetails?: {
488
+ item?: string;
489
+ reason?: string;
490
+ reviewedAt?: string;
491
+ reviewedBy?: string;
492
+ };
493
+ heading?: string;
494
+ preheader?: string;
495
+ subject?: string;
496
+ }
497
+ export interface DigestOptions extends SendOptions {
498
+ actionButtonLabel?: string;
499
+ actionButtonUrl?: string;
500
+ heading?: string;
501
+ intro?: string;
502
+ message?: string;
503
+ preheader?: string;
504
+ subject?: string;
505
+ summaryAlerts?: number;
506
+ summaryNewItems?: number;
507
+ summaryUpdates?: number;
508
+ }
509
+ export interface ExportReadyOptions extends SendOptions {
510
+ actionButtonUrl: string;
511
+ actionButtonLabel?: string;
512
+ exportDetails?: {
513
+ createdAt?: string;
514
+ expiresAt?: string;
515
+ format?: string;
516
+ size?: string;
517
+ };
518
+ heading?: string;
519
+ intro?: string;
520
+ preheader?: string;
521
+ subject?: string;
522
+ }
523
+ export interface GenerationCompleteOptions extends SendOptions {
524
+ actionButtonUrl: string;
525
+ actionButtonLabel?: string;
526
+ generationDetails?: {
527
+ completedAt?: string;
528
+ reference?: string;
529
+ "type"?: string;
530
+ };
531
+ heading?: string;
532
+ intro?: string;
533
+ preheader?: string;
534
+ subject?: string;
535
+ }
536
+ export interface ImportCompleteOptions extends SendOptions {
537
+ actionButtonLabel?: string;
538
+ actionButtonUrl?: string;
539
+ heading?: string;
540
+ importDetails?: {
541
+ completedAt?: string;
542
+ fileName?: string;
543
+ recordsImported?: number;
544
+ recordsSkipped?: number;
545
+ };
546
+ message?: string;
547
+ preheader?: string;
548
+ subject?: string;
549
+ }
550
+ export interface JobCompleteOptions extends SendOptions {
551
+ actionButtonLabel?: string;
552
+ actionButtonUrl?: string;
553
+ heading?: string;
554
+ jobDetails?: {
555
+ completedAt?: string;
556
+ duration?: string;
557
+ jobName?: string;
558
+ reference?: string;
559
+ };
560
+ message?: string;
561
+ preheader?: string;
562
+ subject?: string;
563
+ }
564
+ export interface NotificationAlertOptions extends SendOptions {
565
+ message: string;
566
+ actionButtonLabel?: string;
567
+ actionButtonUrl?: string;
568
+ alertDetails?: {
569
+ severity?: string;
570
+ source?: string;
571
+ time?: string;
572
+ };
573
+ heading?: string;
574
+ preheader?: string;
575
+ subject?: string;
576
+ }
577
+ export interface NotificationInfoOptions extends SendOptions {
578
+ message: string;
579
+ actionButtonLabel?: string;
580
+ actionButtonUrl?: string;
581
+ heading?: string;
582
+ preheader?: string;
583
+ subject?: string;
584
+ }
585
+ export interface NotificationSuccessOptions extends SendOptions {
586
+ message: string;
587
+ actionButtonLabel?: string;
588
+ actionButtonUrl?: string;
589
+ heading?: string;
590
+ preheader?: string;
591
+ subject?: string;
592
+ }
593
+ export interface NotificationWarningOptions extends SendOptions {
594
+ message: string;
595
+ actionButtonLabel?: string;
596
+ actionButtonUrl?: string;
597
+ heading?: string;
598
+ preheader?: string;
599
+ subject?: string;
600
+ }
601
+ export interface ProcessingFailedOptions extends SendOptions {
602
+ actionButtonLabel?: string;
603
+ actionButtonUrl?: string;
604
+ heading?: string;
605
+ message?: string;
606
+ preheader?: string;
607
+ processingDetails?: {
608
+ failedAt?: string;
609
+ item?: string;
610
+ reason?: string;
611
+ reference?: string;
612
+ };
613
+ subject?: string;
614
+ }
615
+ export interface QueuedRequestReadyOptions extends SendOptions {
616
+ actionButtonUrl: string;
617
+ actionButtonLabel?: string;
618
+ heading?: string;
619
+ intro?: string;
620
+ preheader?: string;
621
+ requestDetails?: {
622
+ completedAt?: string;
623
+ reference?: string;
624
+ requestedAt?: string;
625
+ };
626
+ subject?: string;
627
+ }
628
+ export interface ReminderOptions extends SendOptions {
629
+ message: string;
630
+ actionButtonLabel?: string;
631
+ actionButtonUrl?: string;
632
+ heading?: string;
633
+ preheader?: string;
634
+ reminderDetails?: {
635
+ dueAt?: string;
636
+ reference?: string;
637
+ };
638
+ subject?: string;
639
+ }
640
+ export interface ReportReadyOptions extends SendOptions {
641
+ actionButtonUrl: string;
642
+ actionButtonLabel?: string;
643
+ heading?: string;
644
+ intro?: string;
645
+ preheader?: string;
646
+ reportDetails?: {
647
+ createdAt?: string;
648
+ name?: string;
649
+ period?: string;
650
+ };
651
+ subject?: string;
652
+ }
653
+ export interface UploadCompleteOptions extends SendOptions {
654
+ actionButtonLabel?: string;
655
+ actionButtonUrl?: string;
656
+ heading?: string;
657
+ message?: string;
658
+ preheader?: string;
659
+ subject?: string;
660
+ uploadDetails?: {
661
+ fileName?: string;
662
+ size?: string;
663
+ uploadedAt?: string;
664
+ };
665
+ }
666
+ export interface InvitationAcceptedOptions extends SendOptions {
667
+ actionButtonLabel?: string;
668
+ actionButtonUrl?: string;
669
+ heading?: string;
670
+ intro?: string;
671
+ inviteDetails?: {
672
+ acceptedAt?: string;
673
+ acceptedBy?: string;
674
+ role?: string;
675
+ workspace?: string;
676
+ };
677
+ preheader?: string;
678
+ subject?: string;
679
+ }
680
+ export interface InvitedToWorkspaceOptions extends SendOptions {
681
+ actionButtonUrl: string;
682
+ actionButtonLabel?: string;
683
+ heading?: string;
684
+ intro?: string;
685
+ inviteDetails?: {
686
+ expiresAt?: string;
687
+ invitedBy?: string;
688
+ role?: string;
689
+ workspace?: string;
690
+ };
691
+ preheader?: string;
692
+ subject?: string;
693
+ }
694
+ export interface RoleChangedOptions extends SendOptions {
695
+ actionButtonLabel?: string;
696
+ actionButtonUrl?: string;
697
+ heading?: string;
698
+ intro?: string;
699
+ preheader?: string;
700
+ roleDetails?: {
701
+ changedAt?: string;
702
+ member?: string;
703
+ newRole?: string;
704
+ previousRole?: string;
705
+ };
706
+ subject?: string;
707
+ }
708
+ export interface TeamMemberAddedOptions extends SendOptions {
709
+ actionButtonLabel?: string;
710
+ actionButtonUrl?: string;
711
+ heading?: string;
712
+ intro?: string;
713
+ memberDetails?: {
714
+ addedAt?: string;
715
+ email?: string;
716
+ name?: string;
717
+ role?: string;
718
+ };
719
+ preheader?: string;
720
+ subject?: string;
721
+ }
722
+ export interface TeamMemberRemovedOptions extends SendOptions {
723
+ actionButtonLabel?: string;
724
+ actionButtonUrl?: string;
725
+ heading?: string;
726
+ intro?: string;
727
+ memberDetails?: {
728
+ email?: string;
729
+ name?: string;
730
+ removedAt?: string;
731
+ };
732
+ preheader?: string;
733
+ subject?: string;
734
+ }
735
+ //# sourceMappingURL=types.d.ts.map