@medipass/web-sdk 11.63.8 → 11.63.9
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/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.63.
|
|
3
|
+
"version": "11.63.9",
|
|
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": "e799c798f93fab511768abb01f3a369287dd38d3"
|
|
62
62
|
}
|