@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/cjs/index.js
CHANGED
|
@@ -6342,15 +6342,48 @@
|
|
|
6342
6342
|
return __classPrivateFieldGet(this, _MedplumClient_instances, "m", _MedplumClient_request).call(this, 'DELETE', url, options);
|
|
6343
6343
|
}
|
|
6344
6344
|
/**
|
|
6345
|
-
*
|
|
6345
|
+
* Initiates a new user flow.
|
|
6346
|
+
*
|
|
6347
|
+
* This method is part of the two different user registration flows:
|
|
6348
|
+
* 1) New Practitioner and new Project
|
|
6349
|
+
* 2) New Patient registration
|
|
6350
|
+
*
|
|
6346
6351
|
* @category Authentication
|
|
6347
|
-
* @param request
|
|
6352
|
+
* @param registerRequest Register request including email and password.
|
|
6353
|
+
* @returns Promise to the authentication response.
|
|
6354
|
+
*/
|
|
6355
|
+
startNewUser(registerRequest) {
|
|
6356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6357
|
+
yield __classPrivateFieldGet(this, _MedplumClient_instances, "m", _MedplumClient_startPkce).call(this);
|
|
6358
|
+
return this.post('auth/newuser', Object.assign(Object.assign({}, registerRequest), { codeChallengeMethod: 'S256', codeChallenge: __classPrivateFieldGet(this, _MedplumClient_storage, "f").getString('codeChallenge') }));
|
|
6359
|
+
});
|
|
6360
|
+
}
|
|
6361
|
+
/**
|
|
6362
|
+
* Initiates a new project flow.
|
|
6363
|
+
*
|
|
6364
|
+
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
6365
|
+
*
|
|
6366
|
+
* @param registerRequest Register request including email and password.
|
|
6367
|
+
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
6368
|
+
* @returns Promise to the authentication response.
|
|
6369
|
+
*/
|
|
6370
|
+
startNewProject(registerRequest, login) {
|
|
6371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6372
|
+
return this.post('auth/newproject', Object.assign(Object.assign({}, registerRequest), login));
|
|
6373
|
+
});
|
|
6374
|
+
}
|
|
6375
|
+
/**
|
|
6376
|
+
* Initiates a new patient flow.
|
|
6377
|
+
*
|
|
6378
|
+
* This requires a partial login from `startNewUser` or `startNewGoogleUser`.
|
|
6379
|
+
*
|
|
6380
|
+
* @param registerRequest Register request including email and password.
|
|
6381
|
+
* @param login The partial login to complete. This should come from the `startNewUser` method.
|
|
6348
6382
|
* @returns Promise to the authentication response.
|
|
6349
6383
|
*/
|
|
6350
|
-
|
|
6384
|
+
startNewPatient(registerRequest, login) {
|
|
6351
6385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6352
|
-
|
|
6353
|
-
yield this.setActiveLogin(response);
|
|
6386
|
+
return this.post('auth/newpatient', Object.assign(Object.assign({}, registerRequest), login));
|
|
6354
6387
|
});
|
|
6355
6388
|
}
|
|
6356
6389
|
/**
|
|
@@ -10818,6 +10851,7 @@
|
|
|
10818
10851
|
exports.notFound = notFound;
|
|
10819
10852
|
exports.notModified = notModified;
|
|
10820
10853
|
exports.parseFhirPath = parseFhirPath;
|
|
10854
|
+
exports.parseJWTPayload = parseJWTPayload;
|
|
10821
10855
|
exports.parseSearchDefinition = parseSearchDefinition;
|
|
10822
10856
|
exports.preciseEquals = preciseEquals;
|
|
10823
10857
|
exports.preciseGreaterThan = preciseGreaterThan;
|