proxymail-qa 0.12.0 → 0.14.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 +41 -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 +72 -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 +580 -6
- package/dist/index.js +333 -6
- package/package.json +19 -4
package/dist/index.d.ts
CHANGED
|
@@ -99,10 +99,12 @@ export interface FormValuesOptions extends Omit<CreateAddressInput, 'password' |
|
|
|
99
99
|
page?: string;
|
|
100
100
|
screen?: string;
|
|
101
101
|
guess?: FillUnknownFields;
|
|
102
|
+
kycSandbox?: KycVendor;
|
|
103
|
+
kycOutcome?: KycOutcome;
|
|
102
104
|
}
|
|
103
105
|
export interface FormValue {
|
|
104
106
|
id: string;
|
|
105
|
-
kind: 'email' | 'confirm_email' | 'first_name' | 'last_name' | 'full_name' | 'username' | 'company' | 'password' | 'confirm_password' | 'date_of_birth' | 'birth_day' | 'birth_month' | 'birth_year' | 'country' | 'marketing_consent' | 'other' | 'custom' | 'guess';
|
|
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';
|
|
106
108
|
value: string | null;
|
|
107
109
|
rule?: {
|
|
108
110
|
id: string;
|
|
@@ -112,6 +114,7 @@ export interface FormValue {
|
|
|
112
114
|
values?: string[];
|
|
113
115
|
leave?: boolean;
|
|
114
116
|
from?: 'placeholder' | 'option' | 'pattern' | 'words' | 'type';
|
|
117
|
+
section?: string;
|
|
115
118
|
note?: string;
|
|
116
119
|
}
|
|
117
120
|
export type CustomFieldValue = {
|
|
@@ -136,12 +139,24 @@ export type CustomFieldValue = {
|
|
|
136
139
|
kind: 'generate';
|
|
137
140
|
} | {
|
|
138
141
|
kind: 'leave';
|
|
139
|
-
};
|
|
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
|
+
}
|
|
140
155
|
export interface CustomFieldInput {
|
|
141
156
|
id?: string;
|
|
142
157
|
name: string;
|
|
143
158
|
match: {
|
|
144
|
-
on: 'words' | 'name' | 'html_id' | 'test_id';
|
|
159
|
+
on: 'words' | 'name' | 'html_id' | 'test_id' | 'kind';
|
|
145
160
|
text: string;
|
|
146
161
|
also?: string[];
|
|
147
162
|
};
|
|
@@ -164,7 +179,7 @@ export interface CustomField {
|
|
|
164
179
|
}
|
|
165
180
|
export interface ChangeRequest {
|
|
166
181
|
id: string;
|
|
167
|
-
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';
|
|
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';
|
|
168
183
|
target_id: string | null;
|
|
169
184
|
summary: string;
|
|
170
185
|
change: Record<string, unknown>;
|
|
@@ -183,6 +198,7 @@ export type StandardFieldSet = {
|
|
|
183
198
|
export interface CustomFields {
|
|
184
199
|
guesses: FillUnknownFields;
|
|
185
200
|
standard_fields_off?: StandardFieldName[];
|
|
201
|
+
fill_id_fields?: boolean;
|
|
186
202
|
locked: boolean;
|
|
187
203
|
you_lead: boolean;
|
|
188
204
|
fields: CustomField[];
|
|
@@ -202,6 +218,192 @@ export type CustomFieldRemoved = {
|
|
|
202
218
|
status: 'requested';
|
|
203
219
|
request: ChangeRequest;
|
|
204
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
|
+
}
|
|
205
407
|
export interface SignupScreen {
|
|
206
408
|
id: string;
|
|
207
409
|
site_id: string | null;
|
|
@@ -264,6 +466,7 @@ export type ProjectInfo = Record<string, unknown> & {
|
|
|
264
466
|
addresses?: AddressAllowance;
|
|
265
467
|
fill_unknown_fields?: FillUnknownFields;
|
|
266
468
|
standard_fields_off?: StandardFieldName[];
|
|
469
|
+
fill_id_fields?: boolean;
|
|
267
470
|
locked?: boolean;
|
|
268
471
|
custom_fields?: number;
|
|
269
472
|
multi_step_sites?: string[];
|
|
@@ -275,6 +478,7 @@ export interface FormValues {
|
|
|
275
478
|
password?: string;
|
|
276
479
|
values: FormValue[];
|
|
277
480
|
screen?: SignupScreen | null;
|
|
481
|
+
kyc_sandbox?: KycSandbox;
|
|
278
482
|
}
|
|
279
483
|
export interface PreparedAccountOptions extends CheckoutOptions {
|
|
280
484
|
create?: (account: CheckedOutAccount & {
|
|
@@ -315,6 +519,45 @@ export interface Match {
|
|
|
315
519
|
note?: string;
|
|
316
520
|
discount?: string | null;
|
|
317
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;
|
|
318
561
|
}
|
|
319
562
|
export interface CreateAddressInput {
|
|
320
563
|
label?: string;
|
|
@@ -326,6 +569,7 @@ export interface CreateAddressInput {
|
|
|
326
569
|
age?: AgeBand;
|
|
327
570
|
dateOfBirth?: string;
|
|
328
571
|
country?: string;
|
|
572
|
+
oneName?: boolean;
|
|
329
573
|
site?: string;
|
|
330
574
|
environment?: string;
|
|
331
575
|
}
|
|
@@ -370,8 +614,17 @@ export interface DeliveryStatus {
|
|
|
370
614
|
last_email_at: string | null;
|
|
371
615
|
refused: Refusal[];
|
|
372
616
|
hint: string;
|
|
617
|
+
shared_sender?: SharedSender;
|
|
373
618
|
help: string;
|
|
374
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' | 'arrived_before_since';
|
|
375
628
|
export interface Variant {
|
|
376
629
|
tests: string;
|
|
377
630
|
address: string;
|
|
@@ -387,6 +640,7 @@ export interface WaitOptions {
|
|
|
387
640
|
service?: string;
|
|
388
641
|
since?: Date | string;
|
|
389
642
|
unused?: boolean;
|
|
643
|
+
expectSite?: string;
|
|
390
644
|
}
|
|
391
645
|
export type CodeType = 'otp' | 'coupon' | 'any';
|
|
392
646
|
export type LinkType = 'verify' | 'magic_signin' | 'invite' | 'reset' | 'unsubscribe' | 'list_unsubscribe' | 'any';
|
|
@@ -423,7 +677,7 @@ export interface CountOptions {
|
|
|
423
677
|
}
|
|
424
678
|
export type EmailCategory = 'auth' | 'transactional' | 'marketing';
|
|
425
679
|
export type CountSubtype = 'otp' | 'coupon' | 'verify' | 'magic_signin' | 'invite' | 'reset' | 'other' | 'unsubscribe' | 'list_unsubscribe' | 'any';
|
|
426
|
-
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' | 'code_length' | 'link_length' | 'auth_length' | 'subject_length' | 'one_action';
|
|
427
681
|
export interface EmailCheck {
|
|
428
682
|
check: CheckId;
|
|
429
683
|
status: 'pass' | 'fail' | 'warn' | 'skip';
|
|
@@ -536,6 +790,245 @@ export interface PasswordVariants {
|
|
|
536
790
|
reject: FieldVariant[];
|
|
537
791
|
decide: FieldVariant[];
|
|
538
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
|
+
}
|
|
917
|
+
export type JourneyPhase = 'after_signup' | 'signing_in' | 'password_reset' | 'invites' | 'ongoing';
|
|
918
|
+
export type JourneyAgeBand = 'under-18' | '18-24' | '25-34' | '35-44' | '45-54' | '55-plus';
|
|
919
|
+
export interface JourneyOptions {
|
|
920
|
+
site?: string;
|
|
921
|
+
phase?: JourneyPhase;
|
|
922
|
+
country?: string[];
|
|
923
|
+
countryUnknown?: boolean;
|
|
924
|
+
age?: JourneyAgeBand[];
|
|
925
|
+
ageUnknown?: boolean;
|
|
926
|
+
anyTags?: string[];
|
|
927
|
+
address?: string;
|
|
928
|
+
gotStep?: string[];
|
|
929
|
+
notGotStep?: string[];
|
|
930
|
+
}
|
|
931
|
+
export interface JourneyStepOut {
|
|
932
|
+
type: 'step';
|
|
933
|
+
key: string;
|
|
934
|
+
kind: string;
|
|
935
|
+
kind_name: string;
|
|
936
|
+
sender: string;
|
|
937
|
+
got: number;
|
|
938
|
+
of: number | null;
|
|
939
|
+
wait: {
|
|
940
|
+
ms: number;
|
|
941
|
+
kind: 'one' | 'two' | 'usual' | null;
|
|
942
|
+
all_ms: number[];
|
|
943
|
+
range_ms?: [number, number];
|
|
944
|
+
from: string;
|
|
945
|
+
} | null;
|
|
946
|
+
countries: Record<string, number>;
|
|
947
|
+
age_bands: Record<string, number>;
|
|
948
|
+
still_due: {
|
|
949
|
+
addresses: string[];
|
|
950
|
+
left_out: number;
|
|
951
|
+
usually_after_ms: number | null;
|
|
952
|
+
};
|
|
953
|
+
did_not_get: {
|
|
954
|
+
addresses: string[];
|
|
955
|
+
left_out: number;
|
|
956
|
+
} | null;
|
|
957
|
+
warnings: Array<{
|
|
958
|
+
id: string;
|
|
959
|
+
text: string;
|
|
960
|
+
}>;
|
|
961
|
+
emails: Array<{
|
|
962
|
+
id: string;
|
|
963
|
+
address: string;
|
|
964
|
+
received_at: string;
|
|
965
|
+
}>;
|
|
966
|
+
emails_left_out?: number;
|
|
967
|
+
}
|
|
968
|
+
export interface JourneyPathFilter {
|
|
969
|
+
site: string;
|
|
970
|
+
country?: string[];
|
|
971
|
+
country_unknown?: boolean;
|
|
972
|
+
age?: JourneyAgeBand[];
|
|
973
|
+
age_unknown?: boolean;
|
|
974
|
+
any_tags?: string[];
|
|
975
|
+
address?: string;
|
|
976
|
+
got_step?: string[];
|
|
977
|
+
not_got_step?: string[];
|
|
978
|
+
}
|
|
979
|
+
export interface JourneySplit {
|
|
980
|
+
type: 'split';
|
|
981
|
+
by: 'country' | 'age band' | 'tag';
|
|
982
|
+
paths: Array<{
|
|
983
|
+
label: string;
|
|
984
|
+
accounts: number;
|
|
985
|
+
filter: JourneyPathFilter;
|
|
986
|
+
query: string;
|
|
987
|
+
steps: JourneyStepOut[];
|
|
988
|
+
}>;
|
|
989
|
+
}
|
|
990
|
+
export interface Journey {
|
|
991
|
+
showing: string;
|
|
992
|
+
notes: string[];
|
|
993
|
+
link: string;
|
|
994
|
+
journey: string;
|
|
995
|
+
name: string;
|
|
996
|
+
by: 'site' | 'sender';
|
|
997
|
+
journeys: Array<{
|
|
998
|
+
journey: string;
|
|
999
|
+
name: string;
|
|
1000
|
+
by: 'site' | 'sender';
|
|
1001
|
+
accounts: number;
|
|
1002
|
+
}>;
|
|
1003
|
+
accounts: {
|
|
1004
|
+
shown: number;
|
|
1005
|
+
total: number;
|
|
1006
|
+
with_no_email: number;
|
|
1007
|
+
};
|
|
1008
|
+
emails: number;
|
|
1009
|
+
truncated: boolean;
|
|
1010
|
+
filters_left_off: number;
|
|
1011
|
+
filter_values: Record<'country' | 'age' | 'tags', Array<{
|
|
1012
|
+
value: string;
|
|
1013
|
+
accounts: number;
|
|
1014
|
+
chosen?: boolean;
|
|
1015
|
+
}>> & Partial<Record<'country_unknown' | 'age_unknown', {
|
|
1016
|
+
accounts: number;
|
|
1017
|
+
chosen?: boolean;
|
|
1018
|
+
}>>;
|
|
1019
|
+
phases: Array<{
|
|
1020
|
+
phase: JourneyPhase;
|
|
1021
|
+
name: string;
|
|
1022
|
+
started_by: string;
|
|
1023
|
+
steps: Array<JourneyStepOut | JourneySplit>;
|
|
1024
|
+
}>;
|
|
1025
|
+
good_practice: Array<{
|
|
1026
|
+
rule: string;
|
|
1027
|
+
name: string;
|
|
1028
|
+
checked: number;
|
|
1029
|
+
warned: number;
|
|
1030
|
+
}>;
|
|
1031
|
+
}
|
|
539
1032
|
export interface AddressAllowance {
|
|
540
1033
|
limited: boolean;
|
|
541
1034
|
used: number;
|
|
@@ -568,6 +1061,7 @@ export interface EmailChecks {
|
|
|
568
1061
|
export interface CheckOptions extends CountOptions {
|
|
569
1062
|
emailId?: string;
|
|
570
1063
|
expectHost?: string;
|
|
1064
|
+
expectSite?: string;
|
|
571
1065
|
expectText?: string[];
|
|
572
1066
|
expectLanguage?: string;
|
|
573
1067
|
expectWithin?: number | string;
|
|
@@ -638,7 +1132,9 @@ export declare class ProxyMailQAError extends Error {
|
|
|
638
1132
|
readonly hint?: string | undefined;
|
|
639
1133
|
readonly refused?: Refusal[] | undefined;
|
|
640
1134
|
readonly help?: string | undefined;
|
|
641
|
-
|
|
1135
|
+
readonly why?: NothingArrivedCase | undefined;
|
|
1136
|
+
readonly sharedSender?: SharedSender | undefined;
|
|
1137
|
+
constructor(status: number, code: string, message: string, hint?: string | undefined, refused?: Refusal[] | undefined, help?: string | undefined, why?: NothingArrivedCase | undefined, sharedSender?: SharedSender | undefined);
|
|
642
1138
|
}
|
|
643
1139
|
export declare class ProxyMailQA {
|
|
644
1140
|
#private;
|
|
@@ -657,12 +1153,33 @@ export declare class ProxyMailQA {
|
|
|
657
1153
|
emailPrefix?: string | null;
|
|
658
1154
|
mailDomain?: string;
|
|
659
1155
|
fillUnknownFields?: FillUnknownFields;
|
|
1156
|
+
fillIdFields?: boolean;
|
|
660
1157
|
}): Promise<ProjectInfo>;
|
|
661
1158
|
customFields(): Promise<CustomFields>;
|
|
662
1159
|
saveCustomField(field: CustomFieldInput): Promise<CustomFieldSaved>;
|
|
663
1160
|
deleteCustomField(id: string): Promise<CustomFieldRemoved>;
|
|
664
1161
|
setCustomFieldEnabled(id: string, on: boolean): Promise<CustomFieldSaved>;
|
|
665
1162
|
setStandardField(field: StandardFieldName, on: boolean): Promise<StandardFieldSet>;
|
|
1163
|
+
signupForms(): Promise<SignupForms>;
|
|
1164
|
+
signupForm(id: string): Promise<SignupForm>;
|
|
1165
|
+
saveSignupForm(spec: SignupFormSpecInput, id?: string, options?: SaveSignupFormOptions): Promise<SignupFormSaved>;
|
|
1166
|
+
deleteSignupForm(id: string, options?: {
|
|
1167
|
+
removeCustomFields?: boolean;
|
|
1168
|
+
}): Promise<{
|
|
1169
|
+
status: "removed";
|
|
1170
|
+
id: string;
|
|
1171
|
+
custom_fields_removed: string[];
|
|
1172
|
+
custom_fields_asked: string[];
|
|
1173
|
+
custom_fields_kept: string[];
|
|
1174
|
+
}>;
|
|
1175
|
+
signupFormCode(id: string, options?: {
|
|
1176
|
+
format?: SignupCodeFormat;
|
|
1177
|
+
requested?: boolean;
|
|
1178
|
+
}): Promise<SignupFormCode>;
|
|
1179
|
+
signupFormTest(id: string, options?: {
|
|
1180
|
+
framework?: SignupTestFramework;
|
|
1181
|
+
requested?: boolean;
|
|
1182
|
+
}): Promise<SignupFormTest>;
|
|
666
1183
|
sites(): Promise<Sites>;
|
|
667
1184
|
addSite(site: string, environment: string): Promise<SiteAdded>;
|
|
668
1185
|
setMultiStep(site: string, on: boolean): Promise<MultiStepSet>;
|
|
@@ -680,6 +1197,40 @@ export declare class ProxyMailQA {
|
|
|
680
1197
|
formValues(options: FormValuesOptions): Promise<FormValues>;
|
|
681
1198
|
listAddresses(options?: ListAddressesOptions): Promise<Address[]>;
|
|
682
1199
|
signInAccount(options?: SignInOptions): Promise<SignInAccount | null>;
|
|
1200
|
+
totpCode(secret: string, options?: TotpOptions): Promise<string>;
|
|
1201
|
+
signupStarters(options?: {
|
|
1202
|
+
id?: SignupStarterId;
|
|
1203
|
+
language?: string;
|
|
1204
|
+
country?: string;
|
|
1205
|
+
}): Promise<{
|
|
1206
|
+
starters: SignupStarter[];
|
|
1207
|
+
}>;
|
|
1208
|
+
listFormSections(options?: {
|
|
1209
|
+
country?: string;
|
|
1210
|
+
group?: FormSectionGroup;
|
|
1211
|
+
kycSandbox?: KycVendor;
|
|
1212
|
+
kycOutcome?: KycOutcome;
|
|
1213
|
+
}): Promise<{
|
|
1214
|
+
country: string | null;
|
|
1215
|
+
group: FormSectionGroup | null;
|
|
1216
|
+
sections: FormSectionSummary[];
|
|
1217
|
+
kyc_sandbox?: KycSandbox;
|
|
1218
|
+
}>;
|
|
1219
|
+
getFormSection(id: string, options?: {
|
|
1220
|
+
country?: string;
|
|
1221
|
+
address?: string;
|
|
1222
|
+
kycSandbox?: KycVendor;
|
|
1223
|
+
kycOutcome?: KycOutcome;
|
|
1224
|
+
}): Promise<FormSection>;
|
|
1225
|
+
followsFormat(format: {
|
|
1226
|
+
pattern: string;
|
|
1227
|
+
check: FormatCheck | null;
|
|
1228
|
+
}, value: string): {
|
|
1229
|
+
follows: boolean;
|
|
1230
|
+
problem?: string;
|
|
1231
|
+
};
|
|
1232
|
+
cleanupList(options?: CleanupListOptions): Promise<CleanupList>;
|
|
1233
|
+
journey(options?: JourneyOptions | JourneyPathFilter): Promise<Journey>;
|
|
683
1234
|
markDevHost(host: string): Promise<{
|
|
684
1235
|
dev_hosts: string[];
|
|
685
1236
|
}>;
|
|
@@ -701,6 +1252,10 @@ export declare class ProxyMailQA {
|
|
|
701
1252
|
private note;
|
|
702
1253
|
updateAddress(address: string, patch: AddressPatch): Promise<Address>;
|
|
703
1254
|
deleteAddress(address: string): Promise<void>;
|
|
1255
|
+
markSubmitted(address: string, options?: {
|
|
1256
|
+
flow?: SubmitFlow;
|
|
1257
|
+
site?: string;
|
|
1258
|
+
}): Promise<Submit>;
|
|
704
1259
|
waitForCode(address: string, options?: WaitOptions & {
|
|
705
1260
|
type?: CodeType;
|
|
706
1261
|
}): Promise<Match>;
|
|
@@ -759,6 +1314,7 @@ export declare class ProxyMailQA {
|
|
|
759
1314
|
maxLength?: number;
|
|
760
1315
|
symbols?: boolean;
|
|
761
1316
|
}): Promise<PasswordVariants>;
|
|
1317
|
+
flowChecks(flow: Flow): Promise<FlowChecks>;
|
|
762
1318
|
setPassword(address: string, options: {
|
|
763
1319
|
password: string;
|
|
764
1320
|
label?: string;
|
|
@@ -792,3 +1348,21 @@ export declare class ProxyMailQA {
|
|
|
792
1348
|
private requireRun;
|
|
793
1349
|
private wait;
|
|
794
1350
|
}
|
|
1351
|
+
export type TotpAlgorithm = 'SHA-1' | 'SHA-256' | 'SHA-512';
|
|
1352
|
+
export interface TotpOptions {
|
|
1353
|
+
digits?: number;
|
|
1354
|
+
period?: number;
|
|
1355
|
+
algorithm?: TotpAlgorithm;
|
|
1356
|
+
at?: Date | number;
|
|
1357
|
+
minSecondsLeft?: number;
|
|
1358
|
+
}
|
|
1359
|
+
export declare function totpCode(secret: string, options?: TotpOptions): Promise<string>;
|
|
1360
|
+
export declare function followsFormat(format: {
|
|
1361
|
+
pattern: string;
|
|
1362
|
+
check: FormatCheck | null;
|
|
1363
|
+
name?: string;
|
|
1364
|
+
shape?: string;
|
|
1365
|
+
}, value: string): {
|
|
1366
|
+
follows: boolean;
|
|
1367
|
+
problem?: string;
|
|
1368
|
+
};
|