@medplum/core 0.9.25 → 0.9.28

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.
Files changed (80) hide show
  1. package/dist/cjs/index.js +191 -25
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/index.min.js +1 -1
  4. package/dist/cjs/index.min.js.map +1 -1
  5. package/dist/esm/base-schema.json.js +4872 -0
  6. package/dist/esm/base-schema.json.js.map +1 -0
  7. package/dist/{types → esm}/cache.d.ts +0 -0
  8. package/dist/esm/cache.js +70 -0
  9. package/dist/esm/cache.js.map +1 -0
  10. package/dist/{types → esm}/client.d.ts +21 -13
  11. package/dist/esm/client.js +1455 -0
  12. package/dist/esm/client.js.map +1 -0
  13. package/dist/{types → esm}/crypto.d.ts +0 -0
  14. package/dist/esm/crypto.js +23 -0
  15. package/dist/esm/crypto.js.map +1 -0
  16. package/dist/{types → esm}/eventtarget.d.ts +0 -0
  17. package/dist/esm/eventtarget.js +41 -0
  18. package/dist/esm/eventtarget.js.map +1 -0
  19. package/dist/{types → esm}/fhirpath/atoms.d.ts +0 -0
  20. package/dist/esm/fhirpath/atoms.js +329 -0
  21. package/dist/esm/fhirpath/atoms.js.map +1 -0
  22. package/dist/{types → esm}/fhirpath/date.d.ts +0 -0
  23. package/dist/esm/fhirpath/date.js +24 -0
  24. package/dist/esm/fhirpath/date.js.map +1 -0
  25. package/dist/{types → esm}/fhirpath/functions.d.ts +0 -0
  26. package/dist/esm/fhirpath/functions.js +1503 -0
  27. package/dist/esm/fhirpath/functions.js.map +1 -0
  28. package/dist/{types → esm}/fhirpath/index.d.ts +0 -0
  29. package/dist/{types → esm}/fhirpath/parse.d.ts +0 -0
  30. package/dist/esm/fhirpath/parse.js +258 -0
  31. package/dist/esm/fhirpath/parse.js.map +1 -0
  32. package/dist/{types → esm}/fhirpath/tokenize.d.ts +0 -0
  33. package/dist/esm/fhirpath/tokenize.js +185 -0
  34. package/dist/esm/fhirpath/tokenize.js.map +1 -0
  35. package/dist/{types → esm}/fhirpath/utils.d.ts +0 -0
  36. package/dist/esm/fhirpath/utils.js +381 -0
  37. package/dist/esm/fhirpath/utils.js.map +1 -0
  38. package/dist/esm/format.d.ts +21 -0
  39. package/dist/esm/format.js +158 -0
  40. package/dist/esm/format.js.map +1 -0
  41. package/dist/{types → esm}/hl7.d.ts +0 -0
  42. package/dist/esm/hl7.js +111 -0
  43. package/dist/esm/hl7.js.map +1 -0
  44. package/dist/{types → esm}/index.d.ts +0 -0
  45. package/dist/esm/index.js +15 -10763
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/index.min.js +1 -1
  48. package/dist/esm/index.min.js.map +1 -1
  49. package/dist/{types → esm}/jwt.d.ts +0 -0
  50. package/dist/esm/jwt.js +35 -0
  51. package/dist/esm/jwt.js.map +1 -0
  52. package/dist/esm/node_modules/tslib/package.json +1 -0
  53. package/dist/esm/node_modules/tslib/tslib.es6.js +40 -0
  54. package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
  55. package/dist/{types → esm}/outcomes.d.ts +7 -0
  56. package/dist/esm/outcomes.js +190 -0
  57. package/dist/esm/outcomes.js.map +1 -0
  58. package/dist/{types → esm}/readablepromise.d.ts +0 -0
  59. package/dist/esm/readablepromise.js +87 -0
  60. package/dist/esm/readablepromise.js.map +1 -0
  61. package/dist/{types → esm}/search.d.ts +0 -0
  62. package/dist/esm/search.js +207 -0
  63. package/dist/esm/search.js.map +1 -0
  64. package/dist/{types → esm}/searchparams.d.ts +0 -0
  65. package/dist/esm/searchparams.js +145 -0
  66. package/dist/esm/searchparams.js.map +1 -0
  67. package/dist/{types → esm}/storage.d.ts +0 -0
  68. package/dist/esm/storage.js +94 -0
  69. package/dist/esm/storage.js.map +1 -0
  70. package/dist/{types → esm}/types.d.ts +0 -0
  71. package/dist/esm/types.js +223 -0
  72. package/dist/esm/types.js.map +1 -0
  73. package/dist/{types → esm}/utils.d.ts +0 -0
  74. package/dist/esm/utils.js +590 -0
  75. package/dist/esm/utils.js.map +1 -0
  76. package/package.json +5 -5
  77. package/stats.html +4034 -0
  78. package/cody-pdf-test.js +0 -32
  79. package/dist/types/format.d.ts +0 -15
  80. package/wget-log +0 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-schema.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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';
2
+
3
+ var _LRUCache_instances, _LRUCache_max, _LRUCache_cache, _LRUCache_first;
4
+ /**
5
+ * LRU cache (least recently used)
6
+ * Source: https://stackoverflow.com/a/46432113
7
+ */
8
+ class LRUCache {
9
+ constructor(max = 10) {
10
+ _LRUCache_instances.add(this);
11
+ _LRUCache_max.set(this, void 0);
12
+ _LRUCache_cache.set(this, void 0);
13
+ __classPrivateFieldSet(this, _LRUCache_max, max, "f");
14
+ __classPrivateFieldSet(this, _LRUCache_cache, new Map(), "f");
15
+ }
16
+ /**
17
+ * Deletes all values from the cache.
18
+ */
19
+ clear() {
20
+ __classPrivateFieldGet(this, _LRUCache_cache, "f").clear();
21
+ }
22
+ /**
23
+ * Returns the value for the given key.
24
+ * @param key The key to retrieve.
25
+ * @returns The value if found; undefined otherwise.
26
+ */
27
+ get(key) {
28
+ const item = __classPrivateFieldGet(this, _LRUCache_cache, "f").get(key);
29
+ if (item) {
30
+ __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(key);
31
+ __classPrivateFieldGet(this, _LRUCache_cache, "f").set(key, item);
32
+ }
33
+ return item;
34
+ }
35
+ /**
36
+ * Sets the value for the given key.
37
+ * @param key The key to set.
38
+ * @param val The value to set.
39
+ */
40
+ set(key, val) {
41
+ if (__classPrivateFieldGet(this, _LRUCache_cache, "f").has(key)) {
42
+ __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(key);
43
+ }
44
+ else if (__classPrivateFieldGet(this, _LRUCache_cache, "f").size >= __classPrivateFieldGet(this, _LRUCache_max, "f")) {
45
+ __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(__classPrivateFieldGet(this, _LRUCache_instances, "m", _LRUCache_first).call(this));
46
+ }
47
+ __classPrivateFieldGet(this, _LRUCache_cache, "f").set(key, val);
48
+ }
49
+ /**
50
+ * Deletes the value for the given key.
51
+ * @param key The key to delete.
52
+ */
53
+ delete(key) {
54
+ __classPrivateFieldGet(this, _LRUCache_cache, "f").delete(key);
55
+ }
56
+ /**
57
+ * Returns the list of all keys in the cache.
58
+ * @returns The array of keys in the cache.
59
+ */
60
+ keys() {
61
+ return __classPrivateFieldGet(this, _LRUCache_cache, "f").keys();
62
+ }
63
+ }
64
+ _LRUCache_max = new WeakMap(), _LRUCache_cache = new WeakMap(), _LRUCache_instances = new WeakSet(), _LRUCache_first = function _LRUCache_first() {
65
+ // This works because the Map class maintains ordered keys.
66
+ return __classPrivateFieldGet(this, _LRUCache_cache, "f").keys().next().value;
67
+ };
68
+
69
+ export { LRUCache };
70
+ //# sourceMappingURL=cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.js","sources":["../../src/cache.ts"],"sourcesContent":["/**\n * LRU cache (least recently used)\n * Source: https://stackoverflow.com/a/46432113\n */\nexport class LRUCache<T> {\n readonly #max: number;\n readonly #cache: Map<string, T>;\n\n constructor(max = 10) {\n this.#max = max;\n this.#cache = new Map();\n }\n\n /**\n * Deletes all values from the cache.\n */\n clear(): void {\n this.#cache.clear();\n }\n\n /**\n * Returns the value for the given key.\n * @param key The key to retrieve.\n * @returns The value if found; undefined otherwise.\n */\n get(key: string): T | undefined {\n const item = this.#cache.get(key);\n if (item) {\n this.#cache.delete(key);\n this.#cache.set(key, item);\n }\n return item;\n }\n\n /**\n * Sets the value for the given key.\n * @param key The key to set.\n * @param val The value to set.\n */\n set(key: string, val: T): void {\n if (this.#cache.has(key)) {\n this.#cache.delete(key);\n } else if (this.#cache.size >= this.#max) {\n this.#cache.delete(this.#first());\n }\n this.#cache.set(key, val);\n }\n\n /**\n * Deletes the value for the given key.\n * @param key The key to delete.\n */\n delete(key: string): void {\n this.#cache.delete(key);\n }\n\n /**\n * Returns the list of all keys in the cache.\n * @returns The array of keys in the cache.\n */\n keys(): IterableIterator<string> {\n return this.#cache.keys();\n }\n\n #first(): string {\n // This works because the Map class maintains ordered keys.\n return this.#cache.keys().next().value;\n }\n}\n"],"names":[],"mappings":";;;AAAA;;;AAGG;MACU,QAAQ,CAAA;IAInB,WAAY,CAA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A,EAAA,GAAA,CAAK,EAAE;AACxC,YAAA,sBAAA,CAAA,IAAI,EAAA,eAAA,EAAA,GAAA,CAAO,CAAC,MAAM,CAAC,sBAAA,CAAA,IAAI,EAAA,mBAAA,EAAA,GAAA,EAAA,eAAA,CAAO,CAAX,IAAA,CAAA,IAAI,CAAS,CAAC,CAAC;AACnC,SAAA;QACD,sBAAA,CAAA,IAAI,uBAAO,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;KAC3B;AAED;;;AAGG;AACH,IAAA,MAAM,CAAC,GAAW,EAAA;AAChB,QAAA,sBAAA,CAAA,IAAI,EAAO,eAAA,EAAA,GAAA,CAAA,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;KACzB;AAED;;;AAGG;IACH,IAAI,GAAA;AACF,QAAA,OAAO,uBAAA,IAAI,EAAA,eAAA,EAAA,GAAA,CAAO,CAAC,IAAI,EAAE,CAAC;KAC3B;AAMF,CAAA;;;IAFG,OAAO,sBAAA,CAAA,IAAI,EAAA,eAAA,EAAA,GAAA,CAAO,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;AACzC,CAAC;;;;"}
@@ -144,14 +144,22 @@ export interface LoginRequest {
144
144
  readonly scope?: string;
145
145
  readonly nonce?: string;
146
146
  }
147
- export interface RegisterRequest {
148
- readonly projectName?: string;
149
- readonly firstName: string;
150
- readonly lastName: string;
147
+ export interface NewUserRequest {
151
148
  readonly email: string;
152
- readonly password?: string;
149
+ readonly password: string;
150
+ readonly recaptchaToken: string;
151
+ readonly recaptchaSiteKey?: string;
153
152
  readonly remember?: boolean;
154
- readonly recaptchaToken?: string;
153
+ }
154
+ export interface NewProjectRequest {
155
+ readonly projectName: string;
156
+ readonly firstName: string;
157
+ readonly lastName: string;
158
+ }
159
+ export interface NewPatientRequest {
160
+ readonly projectId: string;
161
+ readonly firstName: string;
162
+ readonly lastName: string;
155
163
  }
156
164
  export interface GoogleCredentialResponse {
157
165
  readonly clientId: string;
@@ -201,7 +209,7 @@ export interface BotEvent {
201
209
  * Compatible with fast-json-patch Operation.
202
210
  */
203
211
  export interface PatchOperation {
204
- readonly op: string;
212
+ readonly op: 'add' | 'remove' | 'replace' | 'copy' | 'move' | 'test';
205
213
  readonly path: string;
206
214
  readonly value?: any;
207
215
  }
@@ -407,30 +415,30 @@ export declare class MedplumClient extends EventTarget {
407
415
  * 2) New Patient registration
408
416
  *
409
417
  * @category Authentication
410
- * @param registerRequest Register request including email and password.
418
+ * @param newUserRequest Register request including email and password.
411
419
  * @returns Promise to the authentication response.
412
420
  */
413
- startNewUser(registerRequest: RegisterRequest): Promise<LoginAuthenticationResponse>;
421
+ startNewUser(newUserRequest: NewUserRequest): Promise<LoginAuthenticationResponse>;
414
422
  /**
415
423
  * Initiates a new project flow.
416
424
  *
417
425
  * This requires a partial login from `startNewUser` or `startNewGoogleUser`.
418
426
  *
419
- * @param registerRequest Register request including email and password.
427
+ * @param newProjectRequest Register request including email and password.
420
428
  * @param login The partial login to complete. This should come from the `startNewUser` method.
421
429
  * @returns Promise to the authentication response.
422
430
  */
423
- startNewProject(registerRequest: RegisterRequest, login: LoginAuthenticationResponse): Promise<LoginAuthenticationResponse>;
431
+ startNewProject(newProjectRequest: NewProjectRequest, login: LoginAuthenticationResponse): Promise<LoginAuthenticationResponse>;
424
432
  /**
425
433
  * Initiates a new patient flow.
426
434
  *
427
435
  * This requires a partial login from `startNewUser` or `startNewGoogleUser`.
428
436
  *
429
- * @param registerRequest Register request including email and password.
437
+ * @param newPatientRequest Register request including email and password.
430
438
  * @param login The partial login to complete. This should come from the `startNewUser` method.
431
439
  * @returns Promise to the authentication response.
432
440
  */
433
- startNewPatient(registerRequest: RegisterRequest, login: LoginAuthenticationResponse): Promise<LoginAuthenticationResponse>;
441
+ startNewPatient(newPatientRequest: NewPatientRequest, login: LoginAuthenticationResponse): Promise<LoginAuthenticationResponse>;
434
442
  /**
435
443
  * Initiates a user login flow.
436
444
  * @category Authentication