@healthcloudai/hc-login-connector 0.3.0 → 0.4.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.
package/README.md CHANGED
@@ -260,12 +260,7 @@ await loginClient.register(
260
260
  {
261
261
  isOTP: true,
262
262
  attributes: {
263
- Specialty: "Cardiology",
264
- NPINumber: "1234567890",
265
- FullName: "John Doe",
266
- PracticeLegalName: "Acme Medical Group",
267
- CurrentTreatments: "Physical Therapy,Blood Pressure Monitoring,Insulin Therapy",
268
- // CurrentTreatments: "Physical Therapy | Blood Pressure Monitoring | Insulin Therapy"
263
+ "ReferralSource": "Friend"
269
264
  }
270
265
  }
271
266
  );
@@ -287,12 +282,8 @@ Request sent for the OTP example above:
287
282
  "LastName": "Smith",
288
283
  "Email": "john.smith@example.com",
289
284
  "Attributes": {
290
- "Specialty": "Cardiology",
291
- "NPINumber": "1234567890",
292
- "FullName": "John Doe",
293
- "PracticeLegalName": "Acme Medical Group",
294
- "CurrentTreatments": "Physical Therapy,Blood Pressure Monitoring,Insulin Therapy",
295
- "VERIFY_EMAIL_CODE": "true"
285
+ "VERIFY_EMAIL_CODE": "true",
286
+ "ReferralSource": "Friend"
296
287
  }
297
288
  }
298
289
  }
package/dist/index.d.cts CHANGED
@@ -33,7 +33,6 @@ interface IdentityAuthorization {
33
33
  IDToken?: string | null;
34
34
  Expiration?: string | null;
35
35
  EHR?: string | null;
36
- ErrorMessage?: string | null;
37
36
  HasInsurance?: boolean;
38
37
  HasIDCard?: boolean;
39
38
  HasSelfie?: boolean;
@@ -97,22 +96,9 @@ interface OnboardInput {
97
96
  Status?: number;
98
97
  Sex?: string;
99
98
  }
100
- interface OnboardUser {
101
- Email: string;
99
+ type OnboardUser = OnboardInput & {
102
100
  TenantID: string;
103
- Phone?: string;
104
- FirstName?: string;
105
- LastName?: string;
106
- MiddleName?: string;
107
- BirthDate?: string;
108
- Gender?: string;
109
- Race?: string;
110
- Ethnicity?: string;
111
- Address?: Address;
112
- Attributes?: Record<string, string>;
113
- Status?: number;
114
- Sex?: string;
115
- }
101
+ };
116
102
  interface HealthProfile {
117
103
  Email: string;
118
104
  Phone?: string;
package/dist/index.d.ts CHANGED
@@ -33,7 +33,6 @@ interface IdentityAuthorization {
33
33
  IDToken?: string | null;
34
34
  Expiration?: string | null;
35
35
  EHR?: string | null;
36
- ErrorMessage?: string | null;
37
36
  HasInsurance?: boolean;
38
37
  HasIDCard?: boolean;
39
38
  HasSelfie?: boolean;
@@ -97,22 +96,9 @@ interface OnboardInput {
97
96
  Status?: number;
98
97
  Sex?: string;
99
98
  }
100
- interface OnboardUser {
101
- Email: string;
99
+ type OnboardUser = OnboardInput & {
102
100
  TenantID: string;
103
- Phone?: string;
104
- FirstName?: string;
105
- LastName?: string;
106
- MiddleName?: string;
107
- BirthDate?: string;
108
- Gender?: string;
109
- Race?: string;
110
- Ethnicity?: string;
111
- Address?: Address;
112
- Attributes?: Record<string, string>;
113
- Status?: number;
114
- Sex?: string;
115
- }
101
+ };
116
102
  interface HealthProfile {
117
103
  Email: string;
118
104
  Phone?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-login-connector",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Healthcheck Login authentication SDK with TypeScrip and token refresh",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "prepublishOnly": "npm run build"
38
38
  },
39
39
  "dependencies": {
40
- "@healthcloudai/hc-http": "^0.2.0",
40
+ "@healthcloudai/hc-http": "^0.2.1",
41
41
  "axios": "^1.13.4"
42
42
  },
43
43
  "peerDependencies": {