@medipass/web-sdk 11.63.7 → 11.63.8-chore-add-types-get-account.0

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, ErrorResponse } from '../types';
1
+ import type { MedipassRequestOpts, MfaUser, ErrorResponse, 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<Record<string, any>>;
123
+ export declare const getAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<Account | ErrorResponse>;
124
124
  /**
125
125
  * Get business staff account
126
126
  * @param {String} businessId - Business ID
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -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.7",
3
+ "version": "11.63.8-chore-add-types-get-account.0",
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": "3d03b9b25e71246e0fbe81900aa2712beba1f31c"
61
+ "gitHead": "46c7d6311aa7024ad16c89b73ed87444dedde996"
62
62
  }