@medipass/web-sdk 11.64.6-feature-business-kyc-pins.0 → 11.64.6-feature-business-kyc-pins.1

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.
@@ -1,4 +1,4 @@
1
- import type { MedipassRequestOpts, BusinessKycPinResponse, Kyc } from '../types';
1
+ import type { MedipassRequestOpts, BusinessKycPinResponse, Kyc, UpdateBusinessKycBody } from '../types';
2
2
  export declare const pathBusinessKyc: (businessId: string) => string;
3
3
  export declare const pathPracticeKyc: (businessId: string, practiceId: string) => string;
4
4
  export declare const pathBusinessCbo: (businessId: string) => string;
@@ -32,7 +32,7 @@ export declare const getPracticeKyc: (businessId: string, practiceId: string, op
32
32
  * @param {Object} body - Request body
33
33
  * @param {Object} opts - Additional options
34
34
  */
35
- export declare const updateBusinessKyc: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
35
+ export declare const updateBusinessKyc: (businessId: string, body: UpdateBusinessKycBody, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
36
36
  /**
37
37
  * Get business cbo
38
38
  * @param {String} businessId - Business ID
@@ -1,48 +1,104 @@
1
1
  export declare type Kyc = {
2
- supportEmail: SupportEmail;
3
- resumedComplexVerification: boolean;
4
- isVerified: boolean;
5
- selfVerified: boolean;
6
- isManual: boolean;
7
- version: Number;
8
2
  _id: string;
9
3
  businessId: string;
10
- manualVerificationRequired: boolean;
4
+ practiceId: string;
5
+ abn: string;
6
+ acn: string;
7
+ companyName: string;
8
+ companyStatus: string;
9
+ companyCreation: string;
10
+ address: string;
11
+ city: string;
12
+ postcode: string;
13
+ state: string;
11
14
  entityType: string;
15
+ hasNonBeneficiallyHeldShares: boolean;
16
+ manualVerificationRequired: boolean;
17
+ resumedComplexVerification: boolean;
12
18
  beneficialOwners: Array<BeneficialOwner>;
13
- lastOrgIdFetchDate: string;
19
+ supportEmail: SupportEmail;
20
+ files: Array<File>;
21
+ isLatest: boolean;
22
+ cboWorkspaceId: string;
23
+ cboEnquiryId: string;
24
+ isVerified: boolean;
25
+ selfVerified: boolean;
26
+ isManual: boolean;
27
+ cboFetchedByAccountId: string;
28
+ cboFetchedByAccountUsername: string;
14
29
  orgIdFetchedByAccountId: string;
15
- modified: string;
30
+ orgIdFetchedByAccountUsername: string;
31
+ resumedComplexVerificationByAccountId: string;
32
+ resumedComplexVerificationByAccountUsername: string;
33
+ verifiedByAccountId: string;
34
+ verifiedByAccountUsername: string;
35
+ unverifiedByAccountId: string;
36
+ unverifiedByAccountUsername: string;
37
+ lastCboFetchDate: string;
38
+ lastOrgIdFetchDate: string;
39
+ lastResumeComplexVerificationDate: string;
40
+ version: number;
16
41
  created: string;
17
- files: Array<File>;
42
+ modified: string;
43
+ deleted: string;
18
44
  };
19
45
  export declare type SupportEmail = {
20
46
  isSent: false;
47
+ sentByAccountId: string;
48
+ sentByAccountUsername: string;
21
49
  };
22
50
  export declare type BeneficialOwner = {
23
- verificationDocument: VerificationDocument;
51
+ firstName: string;
52
+ middleName: string;
53
+ lastName: string;
54
+ dobString: string;
55
+ companyName: string;
56
+ acn: string;
57
+ abn: string;
58
+ companyNumber: string;
59
+ addressPrefix: string;
60
+ address: string;
61
+ city: string;
62
+ postcode: string;
63
+ state: string;
64
+ country: string;
65
+ beneficiallyHeldShares: number;
66
+ nonBeneficiallyHeldShares: number;
67
+ jointHeldShares: number;
68
+ pepScreening: string;
69
+ sanctionScreening: string;
24
70
  isDirector: boolean;
25
71
  isCompany: boolean;
26
72
  isManualAddition: boolean;
27
73
  isVerified: boolean;
74
+ consent: string;
75
+ verificationDocument: VerificationDocument;
28
76
  failedAttempts: 0;
77
+ addedByAccountId: string;
78
+ addedByAccountUsername: string;
29
79
  sentSupportEmail: boolean;
30
- _id: string;
31
- abn: string;
32
- firstName: string;
33
- middleName: string;
34
- lastName: string;
80
+ idmatrixEnquiryId: string;
35
81
  idmatrixFetchedByAccountId: string;
82
+ idmatrixFetchedByAccountUsername: string;
36
83
  lastIdmatrixFetchDate: string;
84
+ _id: string;
37
85
  };
38
- export declare type VerificationDocument = {
86
+ export interface VerificationDocument {
39
87
  driversLicence: 'passed' | 'failed';
40
88
  passport: 'passed' | 'failed';
41
89
  medicare: 'passed' | 'failed';
42
- };
90
+ }
43
91
  export declare type File = {
44
92
  displayName: string;
93
+ contentType: string;
94
+ s3SignedUrlId: string;
95
+ uploadedByAccountId: string;
96
+ uploadedByAccountUsername: string;
97
+ _id: string;
45
98
  };
99
+ export interface UpdateBusinessKycBody {
100
+ files: Array<File>;
101
+ }
46
102
  export interface BusinessKycPinResponse {
47
103
  businessId: string;
48
104
  created: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.64.6-feature-business-kyc-pins.0",
3
+ "version": "11.64.6-feature-business-kyc-pins.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -58,5 +58,5 @@
58
58
  "resolutions": {
59
59
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
60
60
  },
61
- "gitHead": "77e91717b1c6a09b393e51e91645b686d9b78850"
61
+ "gitHead": "769704165caa40753dbc374efac53a394dc5fb68"
62
62
  }