-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.d.ts
44 lines (44 loc) · 1.14 KB
/
types.d.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
export type WSIBClearance_Failure = {
success: false;
errorURL?: string;
error?: Error;
} & WSIBClearance_AccountNumber;
export type WSIBClearance_Success = {
success: true;
certificateURL: string;
} & WSIBClearance_AccountNumber & WSIBClearance_Certificate;
interface WSIBClearance_AccountNumber {
accountNumber: string;
}
export interface WSIBClearance_Certificate {
contractorLegalTradeName: string;
contractorAddress: string;
contractorNAICSCodes: NAICSCode[];
clearanceCertificateNumber: string;
validityPeriodStart: Date;
validityPeriodEnd: Date;
principalLegalTradeName: string;
principalAddress: string;
}
export interface NAICSCode {
code: string;
codeDescription: string;
classKey?: string;
className?: string;
subclassName?: string;
}
export interface WSIBClass {
className: string;
naicsPrefixes?: string[];
subclasses?: Record<string, WSIBSubclass>;
}
export interface WSIBSubclass {
subclassName: string;
naicsPrefixes: string[];
}
export interface WSIBClassification {
classKey: string;
className: string;
subclassName?: string;
}
export {};