@medplum/core 0.9.22 → 0.9.23
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/dist/cjs/index.js +39 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/index.js +39 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/types/client.d.ts +31 -6
- package/dist/types/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/types/client.d.ts
CHANGED
|
@@ -145,13 +145,13 @@ export interface LoginRequest {
|
|
|
145
145
|
readonly nonce?: string;
|
|
146
146
|
}
|
|
147
147
|
export interface RegisterRequest {
|
|
148
|
+
readonly projectName?: string;
|
|
148
149
|
readonly firstName: string;
|
|
149
150
|
readonly lastName: string;
|
|
150
|
-
readonly projectName: string;
|
|
151
151
|
readonly email: string;
|
|
152
|
-
readonly password
|
|
152
|
+
readonly password?: string;
|
|
153
153
|
readonly remember?: boolean;
|
|
154
|
-
readonly recaptchaToken
|
|
154
|
+
readonly recaptchaToken?: string;
|
|
155
155
|
}
|
|
156
156
|
export interface GoogleCredentialResponse {
|
|
157
157
|
readonly clientId: string;
|
|
@@ -400,12 +400,37 @@ export declare class MedplumClient extends EventTarget {
|
|
|
400
400
|
*/
|
|
401
401
|
delete(url: URL | string, options?: RequestInit): Promise<any>;
|
|
402
402
|
/**
|
|
403
|
-
*
|
|
403
|
+
* Initiates a new user flow.
|
|
404
|
+
*
|
|
405
|
+
* This method is part of the two different user registration flows:
|
|
406
|
+
* 1) New Practitioner and new Project
|
|
407
|
+
* 2) New Patient registration
|
|
408
|
+
*
|
|
404
409
|
* @category Authentication
|
|
405
|
-
* @param request
|
|
410
|
+
* @param registerRequest Register request including email and password.
|
|
411
|
+
* @returns Promise to the authentication response.
|
|
412
|
+
*/
|
|
413
|
+
startNewUser(registerRequest: RegisterRequest): Promise<LoginAuthenticationResponse>;
|
|
414
|
+
/**
|
|
415
|
+
* Initiates a new project flow.
|
|
416
|
+
*
|
|
417
|
+
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
418
|
+
*
|
|
419
|
+
* @param registerRequest Register request including email and password.
|
|
420
|
+
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
421
|
+
* @returns Promise to the authentication response.
|
|
422
|
+
*/
|
|
423
|
+
startNewProject(registerRequest: RegisterRequest, login: LoginAuthenticationResponse): Promise<LoginAuthenticationResponse>;
|
|
424
|
+
/**
|
|
425
|
+
* Initiates a new patient flow.
|
|
426
|
+
*
|
|
427
|
+
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
428
|
+
*
|
|
429
|
+
* @param registerRequest Register request including email and password.
|
|
430
|
+
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
406
431
|
* @returns Promise to the authentication response.
|
|
407
432
|
*/
|
|
408
|
-
|
|
433
|
+
startNewPatient(registerRequest: RegisterRequest, login: LoginAuthenticationResponse): Promise<LoginAuthenticationResponse>;
|
|
409
434
|
/**
|
|
410
435
|
* Initiates a user login flow.
|
|
411
436
|
* @category Authentication
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.23",
|
|
4
4
|
"description": "Medplum TS/JS Library",
|
|
5
5
|
"author": "Medplum <hello@medplum.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"test": "jest"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@medplum/definitions": "0.9.
|
|
21
|
-
"@medplum/fhirtypes": "0.9.
|
|
20
|
+
"@medplum/definitions": "0.9.23",
|
|
21
|
+
"@medplum/fhirtypes": "0.9.23"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"pdfmake": "0.2.5"
|