@medplum/core 2.0.32 → 2.1.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/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +4 -4
- package/dist/types/access.d.ts +0 -5
- package/dist/types/client.d.ts +3 -3
- package/dist/types/jwt.d.ts +6 -0
- package/dist/types/typeschema/validation.d.ts +23 -0
- package/dist/types/utils.d.ts +11 -0
- package/package.json +1 -1
package/dist/types/access.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { AccessPolicy, AccessPolicyResource, Resource, ResourceType } from '@medplum/fhirtypes';
|
|
2
|
-
/**
|
|
3
|
-
* Public resource types are in the "public" project.
|
|
4
|
-
* They are available to all users.
|
|
5
|
-
*/
|
|
6
|
-
export declare const publicResourceTypes: string[];
|
|
7
2
|
/**
|
|
8
3
|
* Protected resource types are in the "medplum" project.
|
|
9
4
|
* Reading and writing is limited to the system account.
|
package/dist/types/client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Hl7Message } from './hl7';
|
|
|
6
6
|
import { ReadablePromise } from './readablepromise';
|
|
7
7
|
import { ClientStorage } from './storage';
|
|
8
8
|
import { IndexedStructureDefinition } from './types';
|
|
9
|
-
import { ProfileResource } from './utils';
|
|
9
|
+
import { CodeChallengeMethod, ProfileResource } from './utils';
|
|
10
10
|
export declare const MEDPLUM_VERSION: string;
|
|
11
11
|
/**
|
|
12
12
|
* The MedplumClientOptions interface defines configuration options for MedplumClient.
|
|
@@ -203,7 +203,7 @@ export interface BaseLoginRequest {
|
|
|
203
203
|
readonly scope?: string;
|
|
204
204
|
readonly nonce?: string;
|
|
205
205
|
readonly codeChallenge?: string;
|
|
206
|
-
readonly codeChallengeMethod?:
|
|
206
|
+
readonly codeChallengeMethod?: CodeChallengeMethod;
|
|
207
207
|
readonly googleClientId?: string;
|
|
208
208
|
readonly launch?: string;
|
|
209
209
|
readonly redirectUri?: string;
|
|
@@ -1543,7 +1543,7 @@ export declare class MedplumClient extends EventTarget {
|
|
|
1543
1543
|
* @returns The PKCE code challenge details.
|
|
1544
1544
|
*/
|
|
1545
1545
|
startPkce(): Promise<{
|
|
1546
|
-
codeChallengeMethod:
|
|
1546
|
+
codeChallengeMethod: CodeChallengeMethod;
|
|
1547
1547
|
codeChallenge: string;
|
|
1548
1548
|
}>;
|
|
1549
1549
|
/**
|
package/dist/types/jwt.d.ts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
1
|
import { Resource, StructureDefinition } from '@medplum/fhirtypes';
|
|
2
|
+
export declare const fhirTypeToJsType: {
|
|
3
|
+
readonly base64Binary: "string";
|
|
4
|
+
readonly boolean: "boolean";
|
|
5
|
+
readonly canonical: "string";
|
|
6
|
+
readonly code: "string";
|
|
7
|
+
readonly date: "string";
|
|
8
|
+
readonly dateTime: "string";
|
|
9
|
+
readonly decimal: "number";
|
|
10
|
+
readonly id: "string";
|
|
11
|
+
readonly instant: "string";
|
|
12
|
+
readonly integer: "number";
|
|
13
|
+
readonly markdown: "string";
|
|
14
|
+
readonly oid: "string";
|
|
15
|
+
readonly positiveInt: "number";
|
|
16
|
+
readonly string: "string";
|
|
17
|
+
readonly time: "string";
|
|
18
|
+
readonly unsignedInt: "number";
|
|
19
|
+
readonly uri: "string";
|
|
20
|
+
readonly url: "string";
|
|
21
|
+
readonly uuid: "string";
|
|
22
|
+
readonly xhtml: "string";
|
|
23
|
+
readonly 'http://hl7.org/fhirpath/System.String': "string";
|
|
24
|
+
};
|
|
2
25
|
export declare function validate(resource: Resource, profile?: StructureDefinition): void;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -3,6 +3,11 @@ import { CodeableConcept, Extension, ObservationDefinition, ObservationDefinitio
|
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export type ProfileResource = Patient | Practitioner | RelatedPerson;
|
|
6
|
+
/**
|
|
7
|
+
* Allowed values for `code_challenge_method` in a PKCE exchange.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export type CodeChallengeMethod = 'plain' | 'S256';
|
|
6
11
|
interface Code {
|
|
7
12
|
code?: CodeableConcept;
|
|
8
13
|
}
|
|
@@ -88,6 +93,12 @@ export declare function calculateAgeString(birthDateStr: string, endDateStr?: st
|
|
|
88
93
|
* @returns Questionnaire answers mapped by link ID.
|
|
89
94
|
*/
|
|
90
95
|
export declare function getQuestionnaireAnswers(response: QuestionnaireResponse): Record<string, QuestionnaireResponseItemAnswer>;
|
|
96
|
+
/**
|
|
97
|
+
* Returns an array of questionnaire answers as a map by link ID.
|
|
98
|
+
* @param response The questionnaire response resource.
|
|
99
|
+
* @returns Questionnaire answer arrays mapped by link ID.
|
|
100
|
+
*/
|
|
101
|
+
export declare function getAllQuestionnaireAnswers(response: QuestionnaireResponse): Record<string, QuestionnaireResponseItemAnswer[]>;
|
|
91
102
|
/**
|
|
92
103
|
* Returns the resource identifier for the given system.
|
|
93
104
|
*
|