@medipass/web-sdk 12.6.2-fix-object-pollution.0 → 12.6.2

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, StaffMember } from '../types';
1
+ import type { MedipassRequestOpts, StaffMember, UpdateStaffMemberEmailResponse } from '../types';
2
2
  /**
3
3
  * Create business staff member
4
4
  * @param {String} businessId - Organisation ID
@@ -174,7 +174,7 @@ export declare const updateBusinessStaffMember: (businessId: string, staffId: st
174
174
  * @param {Object} body - Request body
175
175
  * @param {Object} opts - Additional options
176
176
  */
177
- export declare const updateBusinessStaffMemberEmail: (businessId: string, staffId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
177
+ export declare const updateBusinessStaffMemberEmail: (businessId: string, staffId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<UpdateStaffMemberEmailResponse>;
178
178
  /**
179
179
  * Update organisation staff member
180
180
  * @param {String} organisationId - Organisation ID
@@ -70,4 +70,26 @@ declare type Links = {
70
70
  deleteEmail?: string;
71
71
  changeEmail?: string;
72
72
  };
73
+ export interface UpdateStaffMemberEmailResponse {
74
+ mfa: {
75
+ sms: {
76
+ enabled: boolean;
77
+ };
78
+ };
79
+ _id: string;
80
+ organisationId: string;
81
+ applicationId: string;
82
+ accountType: string;
83
+ username: string;
84
+ emailVerified: boolean;
85
+ mobileVerified: boolean;
86
+ businessVerified: boolean;
87
+ providerDataVerified: boolean;
88
+ status: string;
89
+ hasPasscode: boolean;
90
+ isFirstTimeLogin: boolean;
91
+ created: string;
92
+ modified: string;
93
+ acceptedTerms: boolean;
94
+ }
73
95
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "12.6.2-fix-object-pollution.0",
3
+ "version": "12.6.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/plugin-transform-runtime": "7.8.3",
47
- "@medipass/utils": "^11.88.1-fix-object-pollution.0",
47
+ "@medipass/utils": "^11.88.0",
48
48
  "@types/applepayjs": "14.0.8",
49
49
  "@types/googlepay": "0.7.6",
50
50
  "@types/jest": "28.1.6",
@@ -59,5 +59,5 @@
59
59
  "resolutions": {
60
60
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
61
61
  },
62
- "gitHead": "72269493c1e9a4bf37eeb1e2722a6d861ade316a"
62
+ "gitHead": "b5d817989cf503d26aab876ea212ecfbfbb1140e"
63
63
  }