@medplum/core 0.9.30 → 0.9.31
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/client.d.ts +6 -4
- package/dist/cjs/index.js +7 -8
- 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/cjs/utils.d.ts +6 -0
- package/dist/esm/client.d.ts +6 -4
- package/dist/esm/client.js +4 -6
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/fhirpath/utils.js +3 -3
- package/dist/esm/fhirpath/utils.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/utils.d.ts +6 -0
- package/dist/esm/utils.js +1 -1
- package/dist/esm/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/client.d.ts
CHANGED
|
@@ -152,11 +152,14 @@ export interface NewUserRequest {
|
|
|
152
152
|
readonly recaptchaToken: string;
|
|
153
153
|
readonly recaptchaSiteKey?: string;
|
|
154
154
|
readonly remember?: boolean;
|
|
155
|
+
readonly projectId?: string;
|
|
155
156
|
}
|
|
156
157
|
export interface NewProjectRequest {
|
|
158
|
+
readonly login: string;
|
|
157
159
|
readonly projectName: string;
|
|
158
160
|
}
|
|
159
161
|
export interface NewPatientRequest {
|
|
162
|
+
readonly login: string;
|
|
160
163
|
readonly projectId: string;
|
|
161
164
|
}
|
|
162
165
|
export interface GoogleCredentialResponse {
|
|
@@ -170,6 +173,7 @@ export interface GoogleLoginRequest {
|
|
|
170
173
|
readonly clientId?: string;
|
|
171
174
|
readonly scope?: string;
|
|
172
175
|
readonly nonce?: string;
|
|
176
|
+
readonly createUser?: boolean;
|
|
173
177
|
}
|
|
174
178
|
export interface LoginAuthenticationResponse {
|
|
175
179
|
readonly login: string;
|
|
@@ -424,20 +428,18 @@ export declare class MedplumClient extends EventTarget {
|
|
|
424
428
|
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
425
429
|
*
|
|
426
430
|
* @param newProjectRequest Register request including email and password.
|
|
427
|
-
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
428
431
|
* @returns Promise to the authentication response.
|
|
429
432
|
*/
|
|
430
|
-
startNewProject(newProjectRequest: NewProjectRequest
|
|
433
|
+
startNewProject(newProjectRequest: NewProjectRequest): Promise<LoginAuthenticationResponse>;
|
|
431
434
|
/**
|
|
432
435
|
* Initiates a new patient flow.
|
|
433
436
|
*
|
|
434
437
|
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
435
438
|
*
|
|
436
439
|
* @param newPatientRequest Register request including email and password.
|
|
437
|
-
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
438
440
|
* @returns Promise to the authentication response.
|
|
439
441
|
*/
|
|
440
|
-
startNewPatient(newPatientRequest: NewPatientRequest
|
|
442
|
+
startNewPatient(newPatientRequest: NewPatientRequest): Promise<LoginAuthenticationResponse>;
|
|
441
443
|
/**
|
|
442
444
|
* Initiates a user login flow.
|
|
443
445
|
* @category Authentication
|
package/dist/cjs/index.js
CHANGED
|
@@ -6494,12 +6494,11 @@
|
|
|
6494
6494
|
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
6495
6495
|
*
|
|
6496
6496
|
* @param newProjectRequest Register request including email and password.
|
|
6497
|
-
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
6498
6497
|
* @returns Promise to the authentication response.
|
|
6499
6498
|
*/
|
|
6500
|
-
startNewProject(newProjectRequest
|
|
6499
|
+
startNewProject(newProjectRequest) {
|
|
6501
6500
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6502
|
-
return this.post('auth/newproject',
|
|
6501
|
+
return this.post('auth/newproject', newProjectRequest);
|
|
6503
6502
|
});
|
|
6504
6503
|
}
|
|
6505
6504
|
/**
|
|
@@ -6508,12 +6507,11 @@
|
|
|
6508
6507
|
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
6509
6508
|
*
|
|
6510
6509
|
* @param newPatientRequest Register request including email and password.
|
|
6511
|
-
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
6512
6510
|
* @returns Promise to the authentication response.
|
|
6513
6511
|
*/
|
|
6514
|
-
startNewPatient(newPatientRequest
|
|
6512
|
+
startNewPatient(newPatientRequest) {
|
|
6515
6513
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6516
|
-
return this.post('auth/newpatient',
|
|
6514
|
+
return this.post('auth/newpatient', newPatientRequest);
|
|
6517
6515
|
});
|
|
6518
6516
|
}
|
|
6519
6517
|
/**
|
|
@@ -7771,7 +7769,7 @@
|
|
|
7771
7769
|
}
|
|
7772
7770
|
}
|
|
7773
7771
|
}
|
|
7774
|
-
if (resultValue
|
|
7772
|
+
if (isEmpty(resultValue)) {
|
|
7775
7773
|
return undefined;
|
|
7776
7774
|
}
|
|
7777
7775
|
if (resultType === 'BackboneElement') {
|
|
@@ -7816,7 +7814,7 @@
|
|
|
7816
7814
|
}
|
|
7817
7815
|
}
|
|
7818
7816
|
}
|
|
7819
|
-
if (result
|
|
7817
|
+
if (isEmpty(result)) {
|
|
7820
7818
|
return undefined;
|
|
7821
7819
|
}
|
|
7822
7820
|
if (Array.isArray(result)) {
|
|
@@ -11053,6 +11051,7 @@
|
|
|
11053
11051
|
exports.indexSearchParameter = indexSearchParameter;
|
|
11054
11052
|
exports.indexStructureDefinition = indexStructureDefinition;
|
|
11055
11053
|
exports.indexStructureDefinitionBundle = indexStructureDefinitionBundle;
|
|
11054
|
+
exports.isEmpty = isEmpty;
|
|
11056
11055
|
exports.isGone = isGone;
|
|
11057
11056
|
exports.isLowerCase = isLowerCase;
|
|
11058
11057
|
exports.isNotFound = isNotFound;
|