@medipass/web-sdk 11.63.8 → 11.63.10
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, MfaUser,
|
|
1
|
+
import type { MedipassRequestOpts, MfaUser, Account } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Create account secret key
|
|
4
4
|
* @param {String} accountId - Account ID
|
|
@@ -120,7 +120,7 @@ export declare const getOrganisationAccounts: (organisationId: string, query?: R
|
|
|
120
120
|
* @param {String} accountId - Account ID
|
|
121
121
|
* @param {Object} opts - Additional options
|
|
122
122
|
*/
|
|
123
|
-
export declare const getAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<
|
|
123
|
+
export declare const getAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<Account>;
|
|
124
124
|
/**
|
|
125
125
|
* Get business staff account
|
|
126
126
|
* @param {String} businessId - Business ID
|
|
@@ -224,7 +224,7 @@ export declare const enableTwoFactorAuthentication: (accountId: string, body: {
|
|
|
224
224
|
password: string;
|
|
225
225
|
mobile: string;
|
|
226
226
|
countryCode: string;
|
|
227
|
-
}, opts?: MedipassRequestOpts) => Promise<MfaUser
|
|
227
|
+
}, opts?: MedipassRequestOpts) => Promise<MfaUser>;
|
|
228
228
|
/**
|
|
229
229
|
* Disable SMS MFA
|
|
230
230
|
* @param {String} accountId - Account ID
|
|
@@ -234,7 +234,7 @@ export declare const enableTwoFactorAuthentication: (accountId: string, body: {
|
|
|
234
234
|
export declare const disableTwoFactorAuthentication: (accountId: string, body: {
|
|
235
235
|
otkCode?: string;
|
|
236
236
|
password: string;
|
|
237
|
-
}, opts?: MedipassRequestOpts) => Promise<MfaUser
|
|
237
|
+
}, opts?: MedipassRequestOpts) => Promise<MfaUser>;
|
|
238
238
|
/**
|
|
239
239
|
* Update SMS MFA AUTH
|
|
240
240
|
* @param {String} accountId - Account ID
|
|
@@ -247,4 +247,4 @@ export declare const updateTwoFactorAuthentication: (accountId: string, body: {
|
|
|
247
247
|
mobile: string;
|
|
248
248
|
countryCode: string;
|
|
249
249
|
oldOtkCode?: string;
|
|
250
|
-
}, opts?: MedipassRequestOpts) => Promise<MfaUser
|
|
250
|
+
}, opts?: MedipassRequestOpts) => Promise<MfaUser>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface Account {
|
|
2
|
+
acceptedTerms: boolean;
|
|
3
|
+
acceptedTermsDate: string;
|
|
4
|
+
acceptedTermsUrl: string;
|
|
5
|
+
accountType: string;
|
|
6
|
+
applicationId: string;
|
|
7
|
+
businessVerified: boolean;
|
|
8
|
+
created: string;
|
|
9
|
+
emailVerified: boolean;
|
|
10
|
+
firstName: string;
|
|
11
|
+
hasPasscode: boolean;
|
|
12
|
+
lastName: string;
|
|
13
|
+
mfa: MFA;
|
|
14
|
+
mobileVerified: boolean;
|
|
15
|
+
modified: string;
|
|
16
|
+
onboardingCache: {
|
|
17
|
+
firstName: string;
|
|
18
|
+
lastName: string;
|
|
19
|
+
};
|
|
20
|
+
organisationId: string;
|
|
21
|
+
providerDataVerified: boolean;
|
|
22
|
+
refSource: string;
|
|
23
|
+
status: string;
|
|
24
|
+
username: string;
|
|
25
|
+
_id: string;
|
|
26
|
+
_links: {
|
|
27
|
+
businesses: {
|
|
28
|
+
read: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
declare type MFA = {
|
|
33
|
+
sms: {
|
|
34
|
+
countryCode: 'au';
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
mobileE164: string | null;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export {};
|
package/lib/types/business.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface Business {
|
|
|
53
53
|
ndisEnabledDate: string;
|
|
54
54
|
address: string;
|
|
55
55
|
addressPrefix: string;
|
|
56
|
+
addressLine2?: string;
|
|
56
57
|
city: string;
|
|
57
58
|
country: string;
|
|
58
59
|
countryCode: string;
|
|
@@ -67,11 +68,24 @@ export interface Business {
|
|
|
67
68
|
_links: BusinessLinks;
|
|
68
69
|
}
|
|
69
70
|
export declare type ShortBusinessResponse = {
|
|
71
|
+
abn: string;
|
|
72
|
+
address: string;
|
|
73
|
+
addressPrefix: string;
|
|
74
|
+
addressLine2?: string;
|
|
75
|
+
city: string;
|
|
70
76
|
contactInfo: BusinessContactInformation;
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
country: string;
|
|
78
|
+
countryCode: string;
|
|
73
79
|
displayName: string;
|
|
74
|
-
|
|
80
|
+
fullName: string;
|
|
81
|
+
gmapsPlaceId: string;
|
|
82
|
+
lnglat: [number, number];
|
|
83
|
+
postcode: string;
|
|
84
|
+
route: string;
|
|
85
|
+
state: string;
|
|
86
|
+
streetNumber: string;
|
|
87
|
+
subpremise: string | null;
|
|
88
|
+
_id: string;
|
|
75
89
|
};
|
|
76
90
|
export declare type BusinessContactInformation = {
|
|
77
91
|
landline: string;
|
package/lib/types/documents.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PaginationMeta, PaginatedQuery, ShortPracticeResponse, HealthPointSettlementAttributes,
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery, ShortPracticeResponse, HealthPointSettlementAttributes, ShortBusinessResponse } from './index';
|
|
2
2
|
/** START: Query */
|
|
3
3
|
export declare type BusinessDocumentsQuery = PaginatedQuery & {
|
|
4
4
|
isPublished?: boolean;
|
|
@@ -153,26 +153,8 @@ export interface HealthPointProviderSetItemResponse {
|
|
|
153
153
|
isCertificationMatch?: boolean;
|
|
154
154
|
settlement?: HealthPointSettlementAttributes;
|
|
155
155
|
}
|
|
156
|
-
export interface HealthPointApplicationBusiness {
|
|
157
|
-
abn: string;
|
|
158
|
-
address: string;
|
|
159
|
-
city: string;
|
|
160
|
-
contactInfo: BusinessContactInformation;
|
|
161
|
-
country: string;
|
|
162
|
-
countryCode: string;
|
|
163
|
-
displayName: string;
|
|
164
|
-
fullName: string;
|
|
165
|
-
gmapsPlaceId: string;
|
|
166
|
-
lnglat: [number, number];
|
|
167
|
-
postcode: string;
|
|
168
|
-
route: string;
|
|
169
|
-
state: string;
|
|
170
|
-
streetNumber: string;
|
|
171
|
-
subpremise: string | null;
|
|
172
|
-
_id: string;
|
|
173
|
-
}
|
|
174
156
|
export interface HealthPointRegistrationApplicationResponse {
|
|
175
|
-
business:
|
|
157
|
+
business: ShortBusinessResponse;
|
|
176
158
|
created: string;
|
|
177
159
|
devicesRequested?: number;
|
|
178
160
|
errorMessage?: string;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './specialty';
|
|
|
23
23
|
export * from './subscriptions';
|
|
24
24
|
export * from './virus-scan';
|
|
25
25
|
export * from './settlement-export';
|
|
26
|
+
export * from './account';
|
|
26
27
|
export declare type MedipassRequestOpts = {
|
|
27
28
|
baseUrl?: string;
|
|
28
29
|
hyperMediaEndpoint?: string | null | undefined;
|
package/lib/types/practice.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface Practice {
|
|
|
20
20
|
lnglat: [number, number];
|
|
21
21
|
gmapsPlaceId: string;
|
|
22
22
|
address: string;
|
|
23
|
+
addressPrefix?: string;
|
|
23
24
|
countryCode: string;
|
|
24
25
|
country: string;
|
|
25
26
|
state: string;
|
|
@@ -48,6 +49,7 @@ export declare type ShortPracticeResponse = {
|
|
|
48
49
|
lnglat: [number, number];
|
|
49
50
|
gmapsPlaceId: string;
|
|
50
51
|
address: string;
|
|
52
|
+
addressPrefix?: string;
|
|
51
53
|
countryCode: string;
|
|
52
54
|
country: string;
|
|
53
55
|
state: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.63.
|
|
3
|
+
"version": "11.63.10",
|
|
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": "
|
|
61
|
+
"gitHead": "8d34a57e34367a52957ca33121e98d4ffc620891"
|
|
62
62
|
}
|