@medplum/core 0.9.2 → 0.9.5
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 +2608 -2644
- 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 +2606 -2644
- 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/cache.d.ts +12 -11
- package/dist/types/client.d.ts +713 -644
- package/dist/types/crypto.d.ts +9 -9
- package/dist/types/eventtarget.d.ts +13 -13
- package/dist/types/format.d.ts +15 -15
- package/dist/types/hl7.d.ts +43 -43
- package/dist/types/index.d.ts +10 -9
- package/dist/types/jwt.d.ts +5 -5
- package/dist/types/outcomes.d.ts +22 -22
- package/dist/types/readablepromise.d.ts +43 -0
- package/dist/types/search.d.ts +62 -62
- package/dist/types/searchparams.d.ts +35 -35
- package/dist/types/storage.d.ts +47 -47
- package/dist/types/types.d.ts +139 -139
- package/dist/types/utils.d.ts +131 -125
- package/package.json +2 -2
- package/dist/types/repo.d.ts +0 -116
package/dist/types/repo.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { Bundle, OperationOutcome, Reference, Resource } from '@medplum/fhirtypes';
|
|
2
|
-
import { Operation } from 'fast-json-patch';
|
|
3
|
-
import { MedplumClient } from './client';
|
|
4
|
-
import { SearchRequest } from './search';
|
|
5
|
-
/**
|
|
6
|
-
* The LegacyRepositoryResult type is a tuple of operation outcome and optional resource.
|
|
7
|
-
* @deprecated
|
|
8
|
-
*/
|
|
9
|
-
export declare type LegacyRepositoryResult<T extends Resource | undefined> = Promise<[OperationOutcome, T | undefined]>;
|
|
10
|
-
/**
|
|
11
|
-
* The LegacyRepositoryClient is a supplementary API client that matches the legacy "Repository" API.
|
|
12
|
-
* The "Repository" API is deprecated and will be removed in a future release.
|
|
13
|
-
* This LegacyRepositoryClient is also deprecated and will be removed in a future release.
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
export declare class LegacyRepositoryClient {
|
|
17
|
-
#private;
|
|
18
|
-
constructor(client: MedplumClient);
|
|
19
|
-
/**
|
|
20
|
-
* Creates a resource.
|
|
21
|
-
*
|
|
22
|
-
* See: https://www.hl7.org/fhir/http.html#create
|
|
23
|
-
*
|
|
24
|
-
* @param resource The resource to create.
|
|
25
|
-
* @returns Operation outcome and the new resource.
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
createResource<T extends Resource>(resource: T): LegacyRepositoryResult<T>;
|
|
29
|
-
/**
|
|
30
|
-
* Returns a resource.
|
|
31
|
-
*
|
|
32
|
-
* See: https://www.hl7.org/fhir/http.html#read
|
|
33
|
-
*
|
|
34
|
-
* @param resourceType The FHIR resource type.
|
|
35
|
-
* @param id The FHIR resource ID.
|
|
36
|
-
* @returns Operation outcome and a resource.
|
|
37
|
-
* @deprecated
|
|
38
|
-
*/
|
|
39
|
-
readResource<T extends Resource>(resourceType: string, id: string): LegacyRepositoryResult<T>;
|
|
40
|
-
/**
|
|
41
|
-
* Returns a resource by FHIR reference.
|
|
42
|
-
*
|
|
43
|
-
* See: https://www.hl7.org/fhir/http.html#read
|
|
44
|
-
*
|
|
45
|
-
* @param reference The FHIR reference.
|
|
46
|
-
* @returns Operation outcome and a resource.
|
|
47
|
-
* @deprecated
|
|
48
|
-
*/
|
|
49
|
-
readReference<T extends Resource>(reference: Reference<T>): LegacyRepositoryResult<T>;
|
|
50
|
-
/**
|
|
51
|
-
* Returns resource history.
|
|
52
|
-
*
|
|
53
|
-
* See: https://www.hl7.org/fhir/http.html#history
|
|
54
|
-
*
|
|
55
|
-
* @param resourceType The FHIR resource type.
|
|
56
|
-
* @param id The FHIR resource ID.
|
|
57
|
-
* @returns Operation outcome and a history bundle.
|
|
58
|
-
* @deprecated
|
|
59
|
-
*/
|
|
60
|
-
readHistory<T extends Resource>(resourceType: string, id: string): LegacyRepositoryResult<Bundle<T>>;
|
|
61
|
-
/**
|
|
62
|
-
* Returns a resource version.
|
|
63
|
-
*
|
|
64
|
-
* See: https://www.hl7.org/fhir/http.html#vread
|
|
65
|
-
*
|
|
66
|
-
* @param resourceType The FHIR resource type.
|
|
67
|
-
* @param id The FHIR resource ID.
|
|
68
|
-
* @param vid The version ID.
|
|
69
|
-
* @returns Operation outcome and a resource.
|
|
70
|
-
* @deprecated
|
|
71
|
-
*/
|
|
72
|
-
readVersion<T extends Resource>(resourceType: string, id: string, vid: string): LegacyRepositoryResult<T>;
|
|
73
|
-
/**
|
|
74
|
-
* Updates a resource.
|
|
75
|
-
*
|
|
76
|
-
* See: https://www.hl7.org/fhir/http.html#update
|
|
77
|
-
*
|
|
78
|
-
* @param resource The resource to update.
|
|
79
|
-
* @returns Operation outcome and the updated resource.
|
|
80
|
-
* @deprecated
|
|
81
|
-
*/
|
|
82
|
-
updateResource<T extends Resource>(resource: T): LegacyRepositoryResult<T>;
|
|
83
|
-
/**
|
|
84
|
-
* Deletes a resource.
|
|
85
|
-
*
|
|
86
|
-
* See: https://www.hl7.org/fhir/http.html#delete
|
|
87
|
-
*
|
|
88
|
-
* @param resourceType The FHIR resource type.
|
|
89
|
-
* @param id The resource ID.
|
|
90
|
-
* @returns Operation outcome.
|
|
91
|
-
* @deprecated
|
|
92
|
-
*/
|
|
93
|
-
deleteResource(resourceType: string, id: string): LegacyRepositoryResult<undefined>;
|
|
94
|
-
/**
|
|
95
|
-
* Patches a resource.
|
|
96
|
-
*
|
|
97
|
-
* See: https://www.hl7.org/fhir/http.html#patch
|
|
98
|
-
*
|
|
99
|
-
* @param resourceType The FHIR resource type.
|
|
100
|
-
* @param id The resource ID.
|
|
101
|
-
* @param patch Array of JSONPatch operations.
|
|
102
|
-
* @returns Operation outcome and the resource.
|
|
103
|
-
* @deprecated
|
|
104
|
-
*/
|
|
105
|
-
patchResource(resourceType: string, id: string, patch: Operation[]): LegacyRepositoryResult<Resource>;
|
|
106
|
-
/**
|
|
107
|
-
* Searches for resources.
|
|
108
|
-
*
|
|
109
|
-
* See: https://www.hl7.org/fhir/http.html#search
|
|
110
|
-
*
|
|
111
|
-
* @param searchRequest The search request.
|
|
112
|
-
* @returns The search result bundle.
|
|
113
|
-
* @deprecated
|
|
114
|
-
*/
|
|
115
|
-
search<T extends Resource>(query: SearchRequest | string): LegacyRepositoryResult<Bundle<T>>;
|
|
116
|
-
}
|