@medplum/core 0.9.28 → 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/README.md +1 -1
- package/dist/cjs/cache.d.ts +34 -0
- package/dist/cjs/client.d.ts +1095 -0
- package/dist/cjs/crypto.d.ts +9 -0
- package/dist/cjs/eventtarget.d.ts +13 -0
- package/dist/cjs/fhirpath/atoms.d.ts +150 -0
- package/dist/cjs/fhirpath/date.d.ts +1 -0
- package/dist/cjs/fhirpath/functions.d.ts +5 -0
- package/dist/cjs/fhirpath/index.d.ts +4 -0
- package/dist/cjs/fhirpath/parse.d.ts +24 -0
- package/dist/cjs/fhirpath/tokenize.d.ts +5 -0
- package/dist/cjs/fhirpath/utils.d.ts +95 -0
- package/dist/cjs/format.d.ts +21 -0
- package/dist/cjs/hl7.d.ts +43 -0
- package/dist/cjs/index.d.ts +12 -0
- package/dist/cjs/index.js +89 -47
- 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/jwt.d.ts +5 -0
- package/dist/cjs/outcomes.d.ts +30 -0
- package/dist/cjs/readablepromise.d.ts +48 -0
- package/dist/cjs/search.d.ts +64 -0
- package/dist/cjs/searchparams.d.ts +35 -0
- package/dist/cjs/storage.d.ts +47 -0
- package/dist/cjs/types.d.ts +148 -0
- package/dist/cjs/utils.d.ts +245 -0
- package/dist/esm/client.d.ts +17 -15
- package/dist/esm/client.js +40 -35
- 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 +2 -2
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/outcomes.d.ts +2 -1
- package/dist/esm/outcomes.js +27 -10
- package/dist/esm/outcomes.js.map +1 -1
- package/dist/esm/utils.d.ts +21 -0
- package/dist/esm/utils.js +18 -1
- package/dist/esm/utils.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ const medplum = new MedplumClient({
|
|
|
43
43
|
|
|
44
44
|
```ts
|
|
45
45
|
const medplum = new MedplumClient();
|
|
46
|
-
medplum.
|
|
46
|
+
await medplum.startClientLogin(MY_CLIENT_ID, MY_CLIENT_SECRET);
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## Authenticating with Medplum
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LRU cache (least recently used)
|
|
3
|
+
* Source: https://stackoverflow.com/a/46432113
|
|
4
|
+
*/
|
|
5
|
+
export declare class LRUCache<T> {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(max?: number);
|
|
8
|
+
/**
|
|
9
|
+
* Deletes all values from the cache.
|
|
10
|
+
*/
|
|
11
|
+
clear(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the value for the given key.
|
|
14
|
+
* @param key The key to retrieve.
|
|
15
|
+
* @returns The value if found; undefined otherwise.
|
|
16
|
+
*/
|
|
17
|
+
get(key: string): T | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the value for the given key.
|
|
20
|
+
* @param key The key to set.
|
|
21
|
+
* @param val The value to set.
|
|
22
|
+
*/
|
|
23
|
+
set(key: string, val: T): void;
|
|
24
|
+
/**
|
|
25
|
+
* Deletes the value for the given key.
|
|
26
|
+
* @param key The key to delete.
|
|
27
|
+
*/
|
|
28
|
+
delete(key: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the list of all keys in the cache.
|
|
31
|
+
* @returns The array of keys in the cache.
|
|
32
|
+
*/
|
|
33
|
+
keys(): IterableIterator<string>;
|
|
34
|
+
}
|