proxymail-qa 0.11.0 → 0.11.2
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.ts +27 -2
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -166,11 +166,12 @@ export interface AddressPatch {
|
|
|
166
166
|
country?: string | null;
|
|
167
167
|
}
|
|
168
168
|
export interface Refusal {
|
|
169
|
-
reason: 'too_large' | 'address_limit' | 'daily_limit';
|
|
169
|
+
reason: 'too_large' | 'address_limit' | 'daily_limit' | 'blocked_site';
|
|
170
170
|
first_at: string;
|
|
171
171
|
last_at: string;
|
|
172
172
|
count: number;
|
|
173
173
|
size_bytes: number | null;
|
|
174
|
+
site?: string | null;
|
|
174
175
|
}
|
|
175
176
|
export interface DeliveryStatus {
|
|
176
177
|
address: string;
|
|
@@ -369,6 +370,7 @@ export interface EmailChecks {
|
|
|
369
370
|
service_domain: string | null;
|
|
370
371
|
type: 'code' | 'link' | null;
|
|
371
372
|
subtype: string | null;
|
|
373
|
+
category?: 'auth' | 'transactional' | 'marketing' | null;
|
|
372
374
|
};
|
|
373
375
|
passed: boolean;
|
|
374
376
|
failed: CheckId[];
|
|
@@ -403,11 +405,16 @@ export interface RunInput {
|
|
|
403
405
|
}
|
|
404
406
|
export interface RunEvent {
|
|
405
407
|
at: string;
|
|
406
|
-
kind: 'address' | 'email' | 'missing' | 'none' | 'count' | 'checks' | 'note';
|
|
408
|
+
kind: 'address' | 'checkout' | 'email' | 'missing' | 'none' | 'count' | 'checks' | 'note' | 'test' | 'unsubscribe' | 'offers' | 'coupon';
|
|
407
409
|
address: string | null;
|
|
408
410
|
failed: boolean;
|
|
409
411
|
detail: Record<string, unknown>;
|
|
410
412
|
}
|
|
413
|
+
export type RunTextPart = string | {
|
|
414
|
+
code: string;
|
|
415
|
+
} | {
|
|
416
|
+
quote: string;
|
|
417
|
+
};
|
|
411
418
|
export interface Run {
|
|
412
419
|
id: string;
|
|
413
420
|
name: string;
|
|
@@ -417,7 +424,25 @@ export interface Run {
|
|
|
417
424
|
started_at: string;
|
|
418
425
|
finished_at: string | null;
|
|
419
426
|
url: string;
|
|
427
|
+
project?: {
|
|
428
|
+
id: string;
|
|
429
|
+
name: string;
|
|
430
|
+
};
|
|
420
431
|
events?: RunEvent[];
|
|
432
|
+
deliverability?: {
|
|
433
|
+
checked: number;
|
|
434
|
+
likely_spam: number;
|
|
435
|
+
may_spam: number;
|
|
436
|
+
harmful_attachments: number;
|
|
437
|
+
highest_spam_score: number | null;
|
|
438
|
+
};
|
|
439
|
+
comparison?: {
|
|
440
|
+
runs: number;
|
|
441
|
+
changes: Array<{
|
|
442
|
+
kind: string;
|
|
443
|
+
text: RunTextPart[];
|
|
444
|
+
}>;
|
|
445
|
+
} | null;
|
|
421
446
|
}
|
|
422
447
|
export declare class ProxyMailQAError extends Error {
|
|
423
448
|
readonly status: number;
|
package/dist/index.js
CHANGED
|
@@ -99,7 +99,8 @@ export class ProxyMailQA {
|
|
|
99
99
|
// environments, email prefix or default mail domain (one of project()'s
|
|
100
100
|
// mail_domains). Only the fields given change; null clears website or
|
|
101
101
|
// emailPrefix. Needs the project's lead (or an organisation owner or
|
|
102
|
-
// admin), and is in the project's activity log.
|
|
102
|
+
// admin), and is in the project's activity log. A website on a site Proxy
|
|
103
|
+
// Mail QA doesn't work with is refused, as for createAddress's site.
|
|
103
104
|
updateProject(patch) {
|
|
104
105
|
const { emailPrefix, mailDomain, ...rest } = patch;
|
|
105
106
|
return this.request('PATCH', '/project', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proxymail-qa",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Test every email your app sends from Playwright, Cypress, Jest, Vitest or any Node script: disposable inboxes, sign-up codes, links and coupons, email checks, unsubscribe tests and run reports.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Proxy Mail QA <hello@proxymail.qa> (https://proxymail.qa)",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@playwright/test": "^1.64.1",
|
|
79
|
-
"typescript": "^
|
|
80
|
-
"vitest": "^5.0.
|
|
79
|
+
"typescript": "^6.0.3",
|
|
80
|
+
"vitest": "^5.0.5"
|
|
81
81
|
}
|
|
82
82
|
}
|