proxymail-qa 0.11.2 → 0.13.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/README.md +91 -11
- package/dist/cli-main.d.ts +19 -0
- package/dist/cli-main.js +373 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +27 -0
- package/dist/cypress-methods.d.ts +9 -0
- package/dist/cypress-methods.js +71 -0
- package/dist/cypress-plugin.d.ts +4 -0
- package/dist/cypress-plugin.js +28 -0
- package/dist/cypress.d.ts +32 -0
- package/dist/cypress.js +42 -0
- package/dist/index.d.ts +667 -9
- package/dist/index.js +409 -12
- package/dist/playwright-reporter.d.ts +1 -1
- package/dist/playwright-reporter.js +4 -3
- package/package.json +19 -4
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,16 @@ export interface Address {
|
|
|
39
39
|
checked_out_until?: string;
|
|
40
40
|
site?: string;
|
|
41
41
|
environment?: string;
|
|
42
|
+
custom_answers?: CustomAnswer[];
|
|
43
|
+
}
|
|
44
|
+
export interface CustomAnswer {
|
|
45
|
+
name: string;
|
|
46
|
+
value: string | null;
|
|
47
|
+
guessed?: boolean;
|
|
48
|
+
custom_field_id?: string | null;
|
|
49
|
+
kind?: 'username' | 'first_name' | 'last_name' | null;
|
|
50
|
+
site?: string | null;
|
|
51
|
+
filled_at?: string;
|
|
42
52
|
}
|
|
43
53
|
export interface SignInAccount extends Address {
|
|
44
54
|
password: string;
|
|
@@ -69,27 +79,406 @@ export interface FormFieldInput {
|
|
|
69
79
|
pattern?: string;
|
|
70
80
|
minLength?: number;
|
|
71
81
|
maxLength?: number;
|
|
82
|
+
testId?: string;
|
|
83
|
+
htmlId?: string;
|
|
84
|
+
min?: number | string;
|
|
85
|
+
max?: number | string;
|
|
86
|
+
step?: number;
|
|
87
|
+
required?: boolean;
|
|
72
88
|
options?: Array<{
|
|
73
89
|
value: string;
|
|
74
90
|
label?: string;
|
|
91
|
+
disabled?: boolean;
|
|
75
92
|
}>;
|
|
93
|
+
multiple?: boolean;
|
|
76
94
|
}
|
|
95
|
+
export type FillUnknownFields = 'all' | 'required' | 'off';
|
|
77
96
|
export interface FormValuesOptions extends Omit<CreateAddressInput, 'password' | 'persona' | 'name'> {
|
|
78
97
|
fields: FormFieldInput[];
|
|
79
98
|
address?: string;
|
|
99
|
+
page?: string;
|
|
100
|
+
screen?: string;
|
|
101
|
+
guess?: FillUnknownFields;
|
|
102
|
+
kycSandbox?: KycVendor;
|
|
103
|
+
kycOutcome?: KycOutcome;
|
|
80
104
|
}
|
|
81
105
|
export interface FormValue {
|
|
82
106
|
id: string;
|
|
83
|
-
kind: 'email' | 'confirm_email' | 'first_name' | 'last_name' | 'full_name' | 'username' | 'password' | 'confirm_password' | 'date_of_birth' | 'birth_day' | 'birth_month' | 'birth_year' | 'country' | 'marketing_consent' | 'other';
|
|
107
|
+
kind: 'email' | 'confirm_email' | 'first_name' | 'last_name' | 'full_name' | 'last_name_reading' | 'first_name_reading' | 'full_name_reading' | 'username' | 'company' | 'password' | 'confirm_password' | 'date_of_birth' | 'birth_day' | 'birth_month' | 'birth_year' | 'country' | 'marketing_consent' | 'other' | 'custom' | 'guess' | 'sandbox';
|
|
84
108
|
value: string | null;
|
|
109
|
+
rule?: {
|
|
110
|
+
id: string;
|
|
111
|
+
name: string;
|
|
112
|
+
};
|
|
113
|
+
checked?: boolean;
|
|
114
|
+
values?: string[];
|
|
115
|
+
leave?: boolean;
|
|
116
|
+
from?: 'placeholder' | 'option' | 'pattern' | 'words' | 'type';
|
|
117
|
+
section?: string;
|
|
85
118
|
note?: string;
|
|
86
119
|
}
|
|
120
|
+
export type CustomFieldValue = {
|
|
121
|
+
kind: 'text';
|
|
122
|
+
text: string;
|
|
123
|
+
} | {
|
|
124
|
+
kind: 'template';
|
|
125
|
+
template: string;
|
|
126
|
+
} | {
|
|
127
|
+
kind: 'option';
|
|
128
|
+
option: string;
|
|
129
|
+
} | {
|
|
130
|
+
kind: 'list';
|
|
131
|
+
items: string[];
|
|
132
|
+
} | {
|
|
133
|
+
kind: 'options';
|
|
134
|
+
options: string[];
|
|
135
|
+
} | {
|
|
136
|
+
kind: 'checkbox';
|
|
137
|
+
checked: boolean;
|
|
138
|
+
} | {
|
|
139
|
+
kind: 'generate';
|
|
140
|
+
} | {
|
|
141
|
+
kind: 'leave';
|
|
142
|
+
} | ReadyMadeValue;
|
|
143
|
+
export type ReadyMadeSection = 'phone' | 'id.national' | 'id.tax' | 'id.passport' | 'business.vat' | 'business.tax' | 'gender' | 'referral_source' | 'language' | 'business.role' | 'business.team_size' | 'business.type' | 'consent.terms';
|
|
144
|
+
export type ReadyMadeIdsFrom = 'safe' | 'stripe' | 'plaid' | 'onfido' | 'veriff' | 'didit' | 'cashfree' | 'setu';
|
|
145
|
+
export interface ReadyMadeValue {
|
|
146
|
+
kind: 'ready_made';
|
|
147
|
+
section: ReadyMadeSection;
|
|
148
|
+
ids_from?: ReadyMadeIdsFrom;
|
|
149
|
+
phones?: Array<{
|
|
150
|
+
country: string;
|
|
151
|
+
number: string;
|
|
152
|
+
}>;
|
|
153
|
+
checked?: boolean;
|
|
154
|
+
}
|
|
155
|
+
export interface CustomFieldInput {
|
|
156
|
+
id?: string;
|
|
157
|
+
name: string;
|
|
158
|
+
match: {
|
|
159
|
+
on: 'words' | 'name' | 'html_id' | 'test_id' | 'kind';
|
|
160
|
+
text: string;
|
|
161
|
+
also?: string[];
|
|
162
|
+
};
|
|
163
|
+
site?: string | null;
|
|
164
|
+
path?: string | null;
|
|
165
|
+
fieldType?: 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | null;
|
|
166
|
+
value: CustomFieldValue;
|
|
167
|
+
tagAnswer?: boolean;
|
|
168
|
+
}
|
|
169
|
+
export interface CustomField {
|
|
170
|
+
id: string;
|
|
171
|
+
name: string;
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
match: CustomFieldInput['match'];
|
|
174
|
+
site: string | null;
|
|
175
|
+
path: string | null;
|
|
176
|
+
field_type: CustomFieldInput['fieldType'];
|
|
177
|
+
value: CustomFieldValue;
|
|
178
|
+
tag_answer: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface ChangeRequest {
|
|
181
|
+
id: string;
|
|
182
|
+
kind: 'save_custom_field' | 'delete_custom_field' | 'add_site' | 'remove_site' | 'set_guesses' | 'set_multi_step' | 'save_signup_screen' | 'remove_signup_screen' | 'set_custom_field_enabled' | 'set_standard_field' | 'save_signup_form';
|
|
183
|
+
target_id: string | null;
|
|
184
|
+
summary: string;
|
|
185
|
+
change: Record<string, unknown>;
|
|
186
|
+
note: string | null;
|
|
187
|
+
status: 'requested' | 'approved' | 'declined' | 'withdrawn' | 'expired' | 'unlocked';
|
|
188
|
+
reason: string | null;
|
|
189
|
+
}
|
|
190
|
+
export type StandardFieldName = 'company' | 'first_name' | 'last_name' | 'full_name';
|
|
191
|
+
export type StandardFieldSet = {
|
|
192
|
+
status: 'saved';
|
|
193
|
+
standard_fields_off: StandardFieldName[];
|
|
194
|
+
} | {
|
|
195
|
+
status: 'requested';
|
|
196
|
+
request: ChangeRequest;
|
|
197
|
+
};
|
|
198
|
+
export interface CustomFields {
|
|
199
|
+
guesses: FillUnknownFields;
|
|
200
|
+
standard_fields_off?: StandardFieldName[];
|
|
201
|
+
fill_id_fields?: boolean;
|
|
202
|
+
locked: boolean;
|
|
203
|
+
you_lead: boolean;
|
|
204
|
+
fields: CustomField[];
|
|
205
|
+
waiting: ChangeRequest[];
|
|
206
|
+
}
|
|
207
|
+
export type CustomFieldSaved = {
|
|
208
|
+
status: 'saved';
|
|
209
|
+
field: CustomField;
|
|
210
|
+
} | {
|
|
211
|
+
status: 'requested';
|
|
212
|
+
request: ChangeRequest;
|
|
213
|
+
};
|
|
214
|
+
export type CustomFieldRemoved = {
|
|
215
|
+
status: 'removed';
|
|
216
|
+
id: string;
|
|
217
|
+
} | {
|
|
218
|
+
status: 'requested';
|
|
219
|
+
request: ChangeRequest;
|
|
220
|
+
};
|
|
221
|
+
export interface SignupFormFieldInput {
|
|
222
|
+
section: string;
|
|
223
|
+
custom_field?: string;
|
|
224
|
+
required?: boolean;
|
|
225
|
+
label?: string;
|
|
226
|
+
testid?: string;
|
|
227
|
+
options?: {
|
|
228
|
+
country?: string;
|
|
229
|
+
min_length?: number;
|
|
230
|
+
max_length?: number;
|
|
231
|
+
classes?: Array<'lower' | 'upper' | 'digit' | 'symbol'>;
|
|
232
|
+
min_age?: number;
|
|
233
|
+
choices?: string[];
|
|
234
|
+
type?: 'text' | 'select' | 'checkbox';
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
export interface SignupFormSpecInput {
|
|
238
|
+
version?: 1;
|
|
239
|
+
name: string;
|
|
240
|
+
site?: string;
|
|
241
|
+
language?: string;
|
|
242
|
+
country?: string;
|
|
243
|
+
screens: Array<{
|
|
244
|
+
title?: string;
|
|
245
|
+
path?: string;
|
|
246
|
+
screen_id?: string;
|
|
247
|
+
fields: SignupFormFieldInput[];
|
|
248
|
+
}>;
|
|
249
|
+
}
|
|
250
|
+
export interface SignupFormSpec {
|
|
251
|
+
version: 1;
|
|
252
|
+
name: string;
|
|
253
|
+
site: string | null;
|
|
254
|
+
language: string;
|
|
255
|
+
country: string | null;
|
|
256
|
+
screens: Array<{
|
|
257
|
+
title: string | null;
|
|
258
|
+
path: string | null;
|
|
259
|
+
screen_id: string | null;
|
|
260
|
+
fields: Array<Required<Omit<SignupFormFieldInput, 'options' | 'custom_field'>> & {
|
|
261
|
+
custom_field?: string;
|
|
262
|
+
options: NonNullable<SignupFormFieldInput['options']>;
|
|
263
|
+
}>;
|
|
264
|
+
}>;
|
|
265
|
+
}
|
|
266
|
+
export type SignupFormStatus = 'saved' | 'requested' | 'draft';
|
|
267
|
+
export interface SignupFormSummary {
|
|
268
|
+
id: string;
|
|
269
|
+
name: string;
|
|
270
|
+
status: SignupFormStatus;
|
|
271
|
+
site: string | null;
|
|
272
|
+
screens: number;
|
|
273
|
+
fields: number;
|
|
274
|
+
created_via: 'app' | 'extension' | 'agent' | 'api';
|
|
275
|
+
agent_name: string | null;
|
|
276
|
+
created_at: string;
|
|
277
|
+
updated_at: string;
|
|
278
|
+
}
|
|
279
|
+
export interface SignupFormCustomField {
|
|
280
|
+
name: string;
|
|
281
|
+
match: {
|
|
282
|
+
on: 'test_id';
|
|
283
|
+
text: string;
|
|
284
|
+
};
|
|
285
|
+
site?: string;
|
|
286
|
+
path?: string;
|
|
287
|
+
field_type: 'select' | 'checkbox' | 'text';
|
|
288
|
+
value: CustomFieldValue;
|
|
289
|
+
}
|
|
290
|
+
export interface SignupForm extends SignupFormSummary {
|
|
291
|
+
spec: SignupFormSpec;
|
|
292
|
+
custom_fields: SignupFormCustomField[];
|
|
293
|
+
fills: Array<{
|
|
294
|
+
testid: string;
|
|
295
|
+
section: string;
|
|
296
|
+
fill: 'built_in' | 'custom_field' | 'never';
|
|
297
|
+
}>;
|
|
298
|
+
requested?: {
|
|
299
|
+
name: string;
|
|
300
|
+
spec: SignupFormSpec;
|
|
301
|
+
custom_fields: SignupFormCustomField[];
|
|
302
|
+
};
|
|
303
|
+
request?: ChangeRequest;
|
|
304
|
+
}
|
|
305
|
+
export interface SignupForms {
|
|
306
|
+
locked: boolean;
|
|
307
|
+
you_lead: boolean;
|
|
308
|
+
forms: SignupFormSummary[];
|
|
309
|
+
}
|
|
310
|
+
export interface SignupFormFillPlan {
|
|
311
|
+
fields_filled_by: Array<{
|
|
312
|
+
testid: string;
|
|
313
|
+
label: string;
|
|
314
|
+
filled_by: 'made' | 'form' | 'yours' | 'none';
|
|
315
|
+
custom_field?: {
|
|
316
|
+
id: string;
|
|
317
|
+
name: string;
|
|
318
|
+
};
|
|
319
|
+
named?: true;
|
|
320
|
+
finds?: boolean;
|
|
321
|
+
}>;
|
|
322
|
+
clashes: Array<{
|
|
323
|
+
testid: string;
|
|
324
|
+
label: string;
|
|
325
|
+
yours: {
|
|
326
|
+
id: string;
|
|
327
|
+
name: string;
|
|
328
|
+
};
|
|
329
|
+
form: {
|
|
330
|
+
id: string;
|
|
331
|
+
name: string;
|
|
332
|
+
};
|
|
333
|
+
}>;
|
|
334
|
+
leftovers: Array<{
|
|
335
|
+
custom_field: {
|
|
336
|
+
id: string;
|
|
337
|
+
name: string;
|
|
338
|
+
};
|
|
339
|
+
testid: string;
|
|
340
|
+
reason: 'gone' | 'renamed' | 'yours';
|
|
341
|
+
to?: string;
|
|
342
|
+
}>;
|
|
343
|
+
tidied?: {
|
|
344
|
+
custom_fields_removed: string[];
|
|
345
|
+
custom_fields_moved: string[];
|
|
346
|
+
custom_fields_asked: string[];
|
|
347
|
+
custom_fields_kept: string[];
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
export type SignupFormSaved = ({
|
|
351
|
+
status: 'saved';
|
|
352
|
+
form: SignupForm;
|
|
353
|
+
} | {
|
|
354
|
+
status: 'requested';
|
|
355
|
+
form: SignupForm;
|
|
356
|
+
request: ChangeRequest;
|
|
357
|
+
}) & SignupFormFillPlan;
|
|
358
|
+
export interface SaveSignupFormOptions {
|
|
359
|
+
choices?: Record<string, 'yours' | 'form'>;
|
|
360
|
+
tidy?: {
|
|
361
|
+
remove?: string[];
|
|
362
|
+
move?: Array<{
|
|
363
|
+
id: string;
|
|
364
|
+
testid: string;
|
|
365
|
+
}>;
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
export type SignupCodeFormat = 'react-hook-form' | 'react' | 'html';
|
|
369
|
+
export interface SignupFormCode {
|
|
370
|
+
form: {
|
|
371
|
+
id: string;
|
|
372
|
+
name: string;
|
|
373
|
+
status: 'saved' | 'requested' | 'draft';
|
|
374
|
+
};
|
|
375
|
+
format: SignupCodeFormat;
|
|
376
|
+
files: Array<{
|
|
377
|
+
path: string;
|
|
378
|
+
contents: string;
|
|
379
|
+
}>;
|
|
380
|
+
dependencies: string[];
|
|
381
|
+
notes: string[];
|
|
382
|
+
}
|
|
383
|
+
export type SignupStarterId = 'b2c' | 'b2b' | 'education' | 'marketplace' | 'travel' | 'fintech' | 'japan' | 'china';
|
|
384
|
+
export interface SignupStarter {
|
|
385
|
+
id: SignupStarterId;
|
|
386
|
+
item: string;
|
|
387
|
+
name: string;
|
|
388
|
+
description: string;
|
|
389
|
+
notes: string[];
|
|
390
|
+
spec: SignupFormSpec;
|
|
391
|
+
}
|
|
392
|
+
export type SignupTestFramework = 'playwright' | 'cypress';
|
|
393
|
+
export interface SignupFormTest {
|
|
394
|
+
form: SignupFormCode['form'];
|
|
395
|
+
framework: SignupTestFramework;
|
|
396
|
+
files: Array<{
|
|
397
|
+
path: string;
|
|
398
|
+
contents: string;
|
|
399
|
+
}>;
|
|
400
|
+
dependencies: string[];
|
|
401
|
+
counts: {
|
|
402
|
+
refuse: number;
|
|
403
|
+
take: number;
|
|
404
|
+
};
|
|
405
|
+
notes: string[];
|
|
406
|
+
}
|
|
407
|
+
export interface SignupScreen {
|
|
408
|
+
id: string;
|
|
409
|
+
site_id: string | null;
|
|
410
|
+
kind: 'path' | 'native';
|
|
411
|
+
value: string;
|
|
412
|
+
label: string | null;
|
|
413
|
+
status: 'kept' | 'suggested';
|
|
414
|
+
origin: 'added' | 'filled' | 'form_values';
|
|
415
|
+
step: number | null;
|
|
416
|
+
created_via: 'app' | 'extension' | 'agent' | 'api';
|
|
417
|
+
agent_name: string | null;
|
|
418
|
+
created_at: string;
|
|
419
|
+
kept_at: string | null;
|
|
420
|
+
last_seen_at: string | null;
|
|
421
|
+
}
|
|
422
|
+
export interface ProjectSite {
|
|
423
|
+
id: string;
|
|
424
|
+
pattern: string;
|
|
425
|
+
environment: string;
|
|
426
|
+
multi_step: boolean;
|
|
427
|
+
screens: SignupScreen[];
|
|
428
|
+
}
|
|
429
|
+
export interface Sites {
|
|
430
|
+
locked: boolean;
|
|
431
|
+
you_lead: boolean;
|
|
432
|
+
sites: ProjectSite[];
|
|
433
|
+
app_screens: SignupScreen[];
|
|
434
|
+
waiting: ChangeRequest[];
|
|
435
|
+
}
|
|
436
|
+
export type SiteAdded = {
|
|
437
|
+
status: 'saved' | 'listed';
|
|
438
|
+
site: ProjectSite;
|
|
439
|
+
} | {
|
|
440
|
+
status: 'requested';
|
|
441
|
+
request: ChangeRequest;
|
|
442
|
+
};
|
|
443
|
+
export type MultiStepSet = {
|
|
444
|
+
status: 'saved';
|
|
445
|
+
site: ProjectSite;
|
|
446
|
+
} | {
|
|
447
|
+
status: 'requested';
|
|
448
|
+
request: ChangeRequest;
|
|
449
|
+
};
|
|
450
|
+
export type SignupScreenSaved = {
|
|
451
|
+
status: 'kept';
|
|
452
|
+
screen: SignupScreen;
|
|
453
|
+
} | {
|
|
454
|
+
status: 'requested';
|
|
455
|
+
screen: SignupScreen;
|
|
456
|
+
request: ChangeRequest;
|
|
457
|
+
};
|
|
458
|
+
export type SignupScreenRemoved = {
|
|
459
|
+
status: 'removed';
|
|
460
|
+
id: string;
|
|
461
|
+
} | {
|
|
462
|
+
status: 'requested';
|
|
463
|
+
request: ChangeRequest;
|
|
464
|
+
};
|
|
465
|
+
export type ProjectInfo = Record<string, unknown> & {
|
|
466
|
+
addresses?: AddressAllowance;
|
|
467
|
+
fill_unknown_fields?: FillUnknownFields;
|
|
468
|
+
standard_fields_off?: StandardFieldName[];
|
|
469
|
+
fill_id_fields?: boolean;
|
|
470
|
+
locked?: boolean;
|
|
471
|
+
custom_fields?: number;
|
|
472
|
+
multi_step_sites?: string[];
|
|
473
|
+
};
|
|
87
474
|
export interface FormValues {
|
|
88
475
|
address: string;
|
|
89
476
|
created: boolean;
|
|
90
477
|
persona: Persona | null;
|
|
91
478
|
password?: string;
|
|
92
479
|
values: FormValue[];
|
|
480
|
+
screen?: SignupScreen | null;
|
|
481
|
+
kyc_sandbox?: KycSandbox;
|
|
93
482
|
}
|
|
94
483
|
export interface PreparedAccountOptions extends CheckoutOptions {
|
|
95
484
|
create?: (account: CheckedOutAccount & {
|
|
@@ -127,8 +516,48 @@ export interface Match {
|
|
|
127
516
|
expires_at: string | null;
|
|
128
517
|
email_id: string;
|
|
129
518
|
after_seconds?: number;
|
|
519
|
+
note?: string;
|
|
130
520
|
discount?: string | null;
|
|
131
521
|
valid_until?: string | null;
|
|
522
|
+
link_site?: LinkSite;
|
|
523
|
+
time_to_email?: TimeToEmail;
|
|
524
|
+
}
|
|
525
|
+
export type SubmitFlow = 'sign_up' | 'sign_in' | 'reset' | 'magic_link' | 'other';
|
|
526
|
+
export interface Submit {
|
|
527
|
+
id: string;
|
|
528
|
+
address: string;
|
|
529
|
+
flow: SubmitFlow;
|
|
530
|
+
site: string | null;
|
|
531
|
+
submitted_at: string;
|
|
532
|
+
}
|
|
533
|
+
export interface TimeToEmail {
|
|
534
|
+
submitted_at: string;
|
|
535
|
+
flow: SubmitFlow;
|
|
536
|
+
site: string | null;
|
|
537
|
+
source: 'extension' | 'agent';
|
|
538
|
+
after_seconds: number;
|
|
539
|
+
their_seconds: number | null;
|
|
540
|
+
our_seconds: number | null;
|
|
541
|
+
emails_for_submit: number;
|
|
542
|
+
position: number;
|
|
543
|
+
after_wait_gave_up: boolean;
|
|
544
|
+
usual: {
|
|
545
|
+
submits: number;
|
|
546
|
+
arrived: number;
|
|
547
|
+
nothing: number;
|
|
548
|
+
median_seconds: number | null;
|
|
549
|
+
today_median_seconds: number | null;
|
|
550
|
+
slowest_seconds: number | null;
|
|
551
|
+
slower_than_usual: boolean;
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
export type LinkSiteProblem = 'local' | 'other_site' | 'preview' | 'published' | 'http' | 'bubble_live' | 'bubble_test';
|
|
555
|
+
export interface LinkSite {
|
|
556
|
+
status: 'pass' | 'fail';
|
|
557
|
+
problem?: LinkSiteProblem;
|
|
558
|
+
site: string;
|
|
559
|
+
goes_to: string | null;
|
|
560
|
+
detail: string;
|
|
132
561
|
}
|
|
133
562
|
export interface CreateAddressInput {
|
|
134
563
|
label?: string;
|
|
@@ -140,6 +569,7 @@ export interface CreateAddressInput {
|
|
|
140
569
|
age?: AgeBand;
|
|
141
570
|
dateOfBirth?: string;
|
|
142
571
|
country?: string;
|
|
572
|
+
oneName?: boolean;
|
|
143
573
|
site?: string;
|
|
144
574
|
environment?: string;
|
|
145
575
|
}
|
|
@@ -164,6 +594,8 @@ export interface AddressPatch {
|
|
|
164
594
|
username?: string | null;
|
|
165
595
|
date_of_birth?: string | null;
|
|
166
596
|
country?: string | null;
|
|
597
|
+
site?: string | null;
|
|
598
|
+
environment?: string | null;
|
|
167
599
|
}
|
|
168
600
|
export interface Refusal {
|
|
169
601
|
reason: 'too_large' | 'address_limit' | 'daily_limit' | 'blocked_site';
|
|
@@ -182,8 +614,17 @@ export interface DeliveryStatus {
|
|
|
182
614
|
last_email_at: string | null;
|
|
183
615
|
refused: Refusal[];
|
|
184
616
|
hint: string;
|
|
617
|
+
shared_sender?: SharedSender;
|
|
185
618
|
help: string;
|
|
186
619
|
}
|
|
620
|
+
export interface SharedSender {
|
|
621
|
+
platform: 'supabase' | 'firebase' | 'bubble' | 'glide' | 'base44' | 'cognito' | 'auth0';
|
|
622
|
+
name: string;
|
|
623
|
+
cap: string | null;
|
|
624
|
+
fix: string;
|
|
625
|
+
docs: string;
|
|
626
|
+
}
|
|
627
|
+
export type NothingArrivedCase = 'nothing_arrived' | 'no_match' | 'turned_away' | 'already_used';
|
|
187
628
|
export interface Variant {
|
|
188
629
|
tests: string;
|
|
189
630
|
address: string;
|
|
@@ -199,6 +640,7 @@ export interface WaitOptions {
|
|
|
199
640
|
service?: string;
|
|
200
641
|
since?: Date | string;
|
|
201
642
|
unused?: boolean;
|
|
643
|
+
expectSite?: string;
|
|
202
644
|
}
|
|
203
645
|
export type CodeType = 'otp' | 'coupon' | 'any';
|
|
204
646
|
export type LinkType = 'verify' | 'magic_signin' | 'invite' | 'reset' | 'unsubscribe' | 'list_unsubscribe' | 'any';
|
|
@@ -235,7 +677,7 @@ export interface CountOptions {
|
|
|
235
677
|
}
|
|
236
678
|
export type EmailCategory = 'auth' | 'transactional' | 'marketing';
|
|
237
679
|
export type CountSubtype = 'otp' | 'coupon' | 'verify' | 'magic_signin' | 'invite' | 'reset' | 'other' | 'unsubscribe' | 'list_unsubscribe' | 'any';
|
|
238
|
-
export type CheckId = 'spf' | 'dkim' | 'dmarc' | 'local_links' | 'plain_http' | 'expected_host' | 'expiry' | 'coupon_expiry' | 'plain_text' | 'size' | 'images_only' | 'layout' | 'expected_text' | 'language' | 'arrival_time' | 'expected_attachment' | 'list_unsubscribe' | 'one_click_unsubscribe' | 'unsubscribe_link' | 'preheader' | 'after_unsubscribe' | 'offer_reuse' | 'coupon_result' | 'marketing_consent' | 'prechecked_consent' | 'double_opt_in' | 'unsubscribe_deadline' | 'postal_address' | 'sender_identity' | 'minor_marketing' | 'harmful_attachment' | 'spam_risk' | 'misleading_subject' | 'ad_label';
|
|
680
|
+
export type CheckId = 'spf' | 'dkim' | 'dmarc' | 'shared_sender' | 'local_links' | 'plain_http' | 'expected_host' | 'link_site' | 'expiry' | 'coupon_expiry' | 'plain_text' | 'size' | 'images_only' | 'layout' | 'expected_text' | 'language' | 'arrival_time' | 'expected_attachment' | 'list_unsubscribe' | 'one_click_unsubscribe' | 'unsubscribe_link' | 'preheader' | 'after_unsubscribe' | 'offer_reuse' | 'coupon_result' | 'marketing_consent' | 'prechecked_consent' | 'double_opt_in' | 'unsubscribe_deadline' | 'postal_address' | 'sender_identity' | 'minor_marketing' | 'harmful_attachment' | 'spam_risk' | 'misleading_subject' | 'ad_label';
|
|
239
681
|
export interface EmailCheck {
|
|
240
682
|
check: CheckId;
|
|
241
683
|
status: 'pass' | 'fail' | 'warn' | 'skip';
|
|
@@ -348,6 +790,130 @@ export interface PasswordVariants {
|
|
|
348
790
|
reject: FieldVariant[];
|
|
349
791
|
decide: FieldVariant[];
|
|
350
792
|
}
|
|
793
|
+
export type Flow = 'sign_up' | 'password_reset' | 'magic_link';
|
|
794
|
+
export interface FlowCheck {
|
|
795
|
+
id: string;
|
|
796
|
+
checks: string;
|
|
797
|
+
needs?: string;
|
|
798
|
+
steps: string[];
|
|
799
|
+
expect: string;
|
|
800
|
+
why: string;
|
|
801
|
+
}
|
|
802
|
+
export type FormSectionGroup = 'person' | 'account' | 'business' | 'documents';
|
|
803
|
+
export type FormSectionTier = 'A' | 'B' | 'rule_only' | 'not_offered';
|
|
804
|
+
export interface FormSectionSummary {
|
|
805
|
+
id: string;
|
|
806
|
+
group: FormSectionGroup;
|
|
807
|
+
name: string;
|
|
808
|
+
source: 'persona' | 'generated' | 'choice' | 'id' | 'never';
|
|
809
|
+
labels: Record<string, string[]>;
|
|
810
|
+
note: string;
|
|
811
|
+
formats?: Array<{
|
|
812
|
+
country: string;
|
|
813
|
+
name: string;
|
|
814
|
+
shape: string;
|
|
815
|
+
tier: FormSectionTier;
|
|
816
|
+
tier_name: string;
|
|
817
|
+
}>;
|
|
818
|
+
ready_made?: {
|
|
819
|
+
options: Array<'ids_from' | 'phones' | 'checked'>;
|
|
820
|
+
leads_only: boolean;
|
|
821
|
+
note: string;
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
export interface FormSection extends FormSectionSummary {
|
|
825
|
+
country: string | null;
|
|
826
|
+
format?: {
|
|
827
|
+
name: string;
|
|
828
|
+
shape: string;
|
|
829
|
+
pattern: string;
|
|
830
|
+
check: FormatCheck | null;
|
|
831
|
+
check_name: string | null;
|
|
832
|
+
tier: FormSectionTier;
|
|
833
|
+
tier_name: string;
|
|
834
|
+
note: string;
|
|
835
|
+
};
|
|
836
|
+
value?: {
|
|
837
|
+
value: string | null;
|
|
838
|
+
compact: string | null;
|
|
839
|
+
shared: boolean;
|
|
840
|
+
fails_strict_checks: boolean;
|
|
841
|
+
unique?: string;
|
|
842
|
+
source?: string;
|
|
843
|
+
url?: string;
|
|
844
|
+
specimen?: {
|
|
845
|
+
value: string;
|
|
846
|
+
source: string;
|
|
847
|
+
url?: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
passport?: {
|
|
851
|
+
issuing_state: string;
|
|
852
|
+
expiry: string;
|
|
853
|
+
holder: {
|
|
854
|
+
surname: string;
|
|
855
|
+
given_names: string;
|
|
856
|
+
date_of_birth: string;
|
|
857
|
+
from: 'address' | 'made_up';
|
|
858
|
+
};
|
|
859
|
+
mrz: [string, string];
|
|
860
|
+
};
|
|
861
|
+
variants?: {
|
|
862
|
+
accept: FieldVariant[];
|
|
863
|
+
reject: FieldVariant[];
|
|
864
|
+
};
|
|
865
|
+
says?: string;
|
|
866
|
+
kyc_sandbox?: KycSandbox;
|
|
867
|
+
}
|
|
868
|
+
export type KycVendor = 'stripe' | 'plaid' | 'onfido' | 'veriff' | 'didit' | 'cashfree' | 'setu';
|
|
869
|
+
export type KycOutcome = 'pass' | 'fail' | 'review';
|
|
870
|
+
export interface KycSandbox {
|
|
871
|
+
vendor: KycVendor;
|
|
872
|
+
name: string;
|
|
873
|
+
product: string;
|
|
874
|
+
outcome: KycOutcome;
|
|
875
|
+
label: string;
|
|
876
|
+
url: string;
|
|
877
|
+
note: string;
|
|
878
|
+
values: Array<{
|
|
879
|
+
section: string | null;
|
|
880
|
+
field: string;
|
|
881
|
+
value: string;
|
|
882
|
+
outcome: KycOutcome;
|
|
883
|
+
gives: string;
|
|
884
|
+
needs?: string;
|
|
885
|
+
country?: string;
|
|
886
|
+
url: string;
|
|
887
|
+
}>;
|
|
888
|
+
says: string;
|
|
889
|
+
}
|
|
890
|
+
export type FormatCheck = 'verhoeff' | 'cpf' | 'cnpj' | 'gb11643' | 'my_number' | 'abn' | 'gb_vat' | 'icao';
|
|
891
|
+
export interface CleanupList {
|
|
892
|
+
from: string;
|
|
893
|
+
to: string;
|
|
894
|
+
kept_from: string;
|
|
895
|
+
count: number;
|
|
896
|
+
truncated: boolean;
|
|
897
|
+
mail_domains: string[];
|
|
898
|
+
addresses: Array<{
|
|
899
|
+
address: string;
|
|
900
|
+
created_at: string;
|
|
901
|
+
status: 'live' | 'expired' | 'deleted';
|
|
902
|
+
ended_at?: string;
|
|
903
|
+
site?: string;
|
|
904
|
+
environment?: string;
|
|
905
|
+
had_email: boolean;
|
|
906
|
+
}>;
|
|
907
|
+
}
|
|
908
|
+
export interface CleanupListOptions {
|
|
909
|
+
from?: Date | string;
|
|
910
|
+
to?: Date | string;
|
|
911
|
+
site?: string;
|
|
912
|
+
}
|
|
913
|
+
export interface FlowChecks {
|
|
914
|
+
flow: Flow;
|
|
915
|
+
checks: FlowCheck[];
|
|
916
|
+
}
|
|
351
917
|
export interface AddressAllowance {
|
|
352
918
|
limited: boolean;
|
|
353
919
|
used: number;
|
|
@@ -380,6 +946,7 @@ export interface EmailChecks {
|
|
|
380
946
|
export interface CheckOptions extends CountOptions {
|
|
381
947
|
emailId?: string;
|
|
382
948
|
expectHost?: string;
|
|
949
|
+
expectSite?: string;
|
|
383
950
|
expectText?: string[];
|
|
384
951
|
expectLanguage?: string;
|
|
385
952
|
expectWithin?: number | string;
|
|
@@ -450,10 +1017,12 @@ export declare class ProxyMailQAError extends Error {
|
|
|
450
1017
|
readonly hint?: string | undefined;
|
|
451
1018
|
readonly refused?: Refusal[] | undefined;
|
|
452
1019
|
readonly help?: string | undefined;
|
|
453
|
-
|
|
1020
|
+
readonly why?: NothingArrivedCase | undefined;
|
|
1021
|
+
readonly sharedSender?: SharedSender | undefined;
|
|
1022
|
+
constructor(status: number, code: string, message: string, hint?: string | undefined, refused?: Refusal[] | undefined, help?: string | undefined, why?: NothingArrivedCase | undefined, sharedSender?: SharedSender | undefined);
|
|
454
1023
|
}
|
|
455
1024
|
export declare class ProxyMailQA {
|
|
456
|
-
private
|
|
1025
|
+
#private;
|
|
457
1026
|
private readonly baseUrl;
|
|
458
1027
|
private readonly fetcher;
|
|
459
1028
|
run: string | null;
|
|
@@ -461,18 +1030,51 @@ export declare class ProxyMailQA {
|
|
|
461
1030
|
constructor(options?: ClientOptions);
|
|
462
1031
|
forTest(name: string): ProxyMailQA;
|
|
463
1032
|
private request;
|
|
464
|
-
project(): Promise<
|
|
465
|
-
addresses?: AddressAllowance;
|
|
466
|
-
}>;
|
|
1033
|
+
project(): Promise<ProjectInfo>;
|
|
467
1034
|
updateProject(patch: {
|
|
468
1035
|
name?: string;
|
|
469
1036
|
website?: string | null;
|
|
470
1037
|
environments?: string[];
|
|
471
1038
|
emailPrefix?: string | null;
|
|
472
1039
|
mailDomain?: string;
|
|
473
|
-
|
|
474
|
-
|
|
1040
|
+
fillUnknownFields?: FillUnknownFields;
|
|
1041
|
+
fillIdFields?: boolean;
|
|
1042
|
+
}): Promise<ProjectInfo>;
|
|
1043
|
+
customFields(): Promise<CustomFields>;
|
|
1044
|
+
saveCustomField(field: CustomFieldInput): Promise<CustomFieldSaved>;
|
|
1045
|
+
deleteCustomField(id: string): Promise<CustomFieldRemoved>;
|
|
1046
|
+
setCustomFieldEnabled(id: string, on: boolean): Promise<CustomFieldSaved>;
|
|
1047
|
+
setStandardField(field: StandardFieldName, on: boolean): Promise<StandardFieldSet>;
|
|
1048
|
+
signupForms(): Promise<SignupForms>;
|
|
1049
|
+
signupForm(id: string): Promise<SignupForm>;
|
|
1050
|
+
saveSignupForm(spec: SignupFormSpecInput, id?: string, options?: SaveSignupFormOptions): Promise<SignupFormSaved>;
|
|
1051
|
+
deleteSignupForm(id: string, options?: {
|
|
1052
|
+
removeCustomFields?: boolean;
|
|
1053
|
+
}): Promise<{
|
|
1054
|
+
status: "removed";
|
|
1055
|
+
id: string;
|
|
1056
|
+
custom_fields_removed: string[];
|
|
1057
|
+
custom_fields_asked: string[];
|
|
1058
|
+
custom_fields_kept: string[];
|
|
475
1059
|
}>;
|
|
1060
|
+
signupFormCode(id: string, options?: {
|
|
1061
|
+
format?: SignupCodeFormat;
|
|
1062
|
+
requested?: boolean;
|
|
1063
|
+
}): Promise<SignupFormCode>;
|
|
1064
|
+
signupFormTest(id: string, options?: {
|
|
1065
|
+
framework?: SignupTestFramework;
|
|
1066
|
+
requested?: boolean;
|
|
1067
|
+
}): Promise<SignupFormTest>;
|
|
1068
|
+
sites(): Promise<Sites>;
|
|
1069
|
+
addSite(site: string, environment: string): Promise<SiteAdded>;
|
|
1070
|
+
setMultiStep(site: string, on: boolean): Promise<MultiStepSet>;
|
|
1071
|
+
saveSignupScreen(input: {
|
|
1072
|
+
site?: string;
|
|
1073
|
+
page?: string;
|
|
1074
|
+
screen?: string;
|
|
1075
|
+
label?: string | null;
|
|
1076
|
+
}): Promise<SignupScreenSaved>;
|
|
1077
|
+
removeSignupScreen(id: string): Promise<SignupScreenRemoved>;
|
|
476
1078
|
createAddress(input: CreateAddressInput & {
|
|
477
1079
|
password: true;
|
|
478
1080
|
}): Promise<CreatedAddressWithPassword>;
|
|
@@ -480,6 +1082,39 @@ export declare class ProxyMailQA {
|
|
|
480
1082
|
formValues(options: FormValuesOptions): Promise<FormValues>;
|
|
481
1083
|
listAddresses(options?: ListAddressesOptions): Promise<Address[]>;
|
|
482
1084
|
signInAccount(options?: SignInOptions): Promise<SignInAccount | null>;
|
|
1085
|
+
totpCode(secret: string, options?: TotpOptions): Promise<string>;
|
|
1086
|
+
signupStarters(options?: {
|
|
1087
|
+
id?: SignupStarterId;
|
|
1088
|
+
language?: string;
|
|
1089
|
+
country?: string;
|
|
1090
|
+
}): Promise<{
|
|
1091
|
+
starters: SignupStarter[];
|
|
1092
|
+
}>;
|
|
1093
|
+
listFormSections(options?: {
|
|
1094
|
+
country?: string;
|
|
1095
|
+
group?: FormSectionGroup;
|
|
1096
|
+
kycSandbox?: KycVendor;
|
|
1097
|
+
kycOutcome?: KycOutcome;
|
|
1098
|
+
}): Promise<{
|
|
1099
|
+
country: string | null;
|
|
1100
|
+
group: FormSectionGroup | null;
|
|
1101
|
+
sections: FormSectionSummary[];
|
|
1102
|
+
kyc_sandbox?: KycSandbox;
|
|
1103
|
+
}>;
|
|
1104
|
+
getFormSection(id: string, options?: {
|
|
1105
|
+
country?: string;
|
|
1106
|
+
address?: string;
|
|
1107
|
+
kycSandbox?: KycVendor;
|
|
1108
|
+
kycOutcome?: KycOutcome;
|
|
1109
|
+
}): Promise<FormSection>;
|
|
1110
|
+
followsFormat(format: {
|
|
1111
|
+
pattern: string;
|
|
1112
|
+
check: FormatCheck | null;
|
|
1113
|
+
}, value: string): {
|
|
1114
|
+
follows: boolean;
|
|
1115
|
+
problem?: string;
|
|
1116
|
+
};
|
|
1117
|
+
cleanupList(options?: CleanupListOptions): Promise<CleanupList>;
|
|
483
1118
|
markDevHost(host: string): Promise<{
|
|
484
1119
|
dev_hosts: string[];
|
|
485
1120
|
}>;
|
|
@@ -501,6 +1136,10 @@ export declare class ProxyMailQA {
|
|
|
501
1136
|
private note;
|
|
502
1137
|
updateAddress(address: string, patch: AddressPatch): Promise<Address>;
|
|
503
1138
|
deleteAddress(address: string): Promise<void>;
|
|
1139
|
+
markSubmitted(address: string, options?: {
|
|
1140
|
+
flow?: SubmitFlow;
|
|
1141
|
+
site?: string;
|
|
1142
|
+
}): Promise<Submit>;
|
|
504
1143
|
waitForCode(address: string, options?: WaitOptions & {
|
|
505
1144
|
type?: CodeType;
|
|
506
1145
|
}): Promise<Match>;
|
|
@@ -559,6 +1198,7 @@ export declare class ProxyMailQA {
|
|
|
559
1198
|
maxLength?: number;
|
|
560
1199
|
symbols?: boolean;
|
|
561
1200
|
}): Promise<PasswordVariants>;
|
|
1201
|
+
flowChecks(flow: Flow): Promise<FlowChecks>;
|
|
562
1202
|
setPassword(address: string, options: {
|
|
563
1203
|
password: string;
|
|
564
1204
|
label?: string;
|
|
@@ -592,3 +1232,21 @@ export declare class ProxyMailQA {
|
|
|
592
1232
|
private requireRun;
|
|
593
1233
|
private wait;
|
|
594
1234
|
}
|
|
1235
|
+
export type TotpAlgorithm = 'SHA-1' | 'SHA-256' | 'SHA-512';
|
|
1236
|
+
export interface TotpOptions {
|
|
1237
|
+
digits?: number;
|
|
1238
|
+
period?: number;
|
|
1239
|
+
algorithm?: TotpAlgorithm;
|
|
1240
|
+
at?: Date | number;
|
|
1241
|
+
minSecondsLeft?: number;
|
|
1242
|
+
}
|
|
1243
|
+
export declare function totpCode(secret: string, options?: TotpOptions): Promise<string>;
|
|
1244
|
+
export declare function followsFormat(format: {
|
|
1245
|
+
pattern: string;
|
|
1246
|
+
check: FormatCheck | null;
|
|
1247
|
+
name?: string;
|
|
1248
|
+
shape?: string;
|
|
1249
|
+
}, value: string): {
|
|
1250
|
+
follows: boolean;
|
|
1251
|
+
problem?: string;
|
|
1252
|
+
};
|