/
Verify.ts
54 lines (48 loc) · 1.6 KB
/
Verify.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { FormListInstance } from "./verify/v2/form";
import { ServiceListInstance } from "./verify/v2/service";
import { TemplateListInstance } from "./verify/v2/template";
import { VerificationAttemptListInstance } from "./verify/v2/verificationAttempt";
import { VerificationAttemptsSummaryListInstance } from "./verify/v2/verificationAttemptsSummary";
import VerifyBase from "./VerifyBase";
class Verify extends VerifyBase {
/**
* @deprecated - Use v2.forms instead
*/
get forms(): FormListInstance {
console.warn("forms is deprecated. Use v2.forms instead.");
return this.v2.forms;
}
/**
* @deprecated - Use v2.services instead
*/
get services(): ServiceListInstance {
console.warn("services is deprecated. Use v2.services instead.");
return this.v2.services;
}
/**
* @deprecated - Use v2.verificationAttempts instead
*/
get verificationAttempts(): VerificationAttemptListInstance {
console.warn(
"verificationAttempts is deprecated. Use v2.verificationAttempts instead."
);
return this.v2.verificationAttempts;
}
/**
* @deprecated - Use v2.verificationAttemptsSummary instead
*/
get verificationAttemptsSummary(): VerificationAttemptsSummaryListInstance {
console.warn(
"verificationAttemptsSummary is deprecated. Use v2.verificationAttemptsSummary instead."
);
return this.v2.verificationAttemptsSummary;
}
/**
* @deprecated - Use v2.templates instead
*/
get templates(): TemplateListInstance {
console.warn("templates is deprecated. Use v2.templates instead.");
return this.v2.templates;
}
}
export = Verify;