@medplum/core 2.1.1 → 2.1.2
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/types/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessPolicy, Attachment, Binary, BulkDataExport, Bundle, Communication, ExtractResource, Identifier, Media, OperationOutcome, Project, ProjectMembership, ProjectMembershipAccess, ProjectSecret, Reference, Resource, ResourceType, UserConfiguration, ValueSet } from '@medplum/fhirtypes';
|
|
1
|
+
import { AccessPolicy, Agent, Attachment, Binary, BulkDataExport, Bundle, Communication, ExtractResource, Identifier, Media, OperationOutcome, Project, ProjectMembership, ProjectMembershipAccess, ProjectSecret, Reference, Resource, ResourceType, UserConfiguration, ValueSet } from '@medplum/fhirtypes';
|
|
2
2
|
/** @ts-ignore */
|
|
3
3
|
import type { CustomTableLayout, TDocumentDefinitions, TFontDictionary } from 'pdfmake/interfaces';
|
|
4
4
|
import { EventTarget } from './eventtarget';
|
|
@@ -1365,7 +1365,6 @@ export declare class MedplumClient extends EventTarget {
|
|
|
1365
1365
|
*/
|
|
1366
1366
|
graphql(query: string, operationName?: string | null, variables?: any, options?: RequestInit): Promise<any>;
|
|
1367
1367
|
/**
|
|
1368
|
-
*
|
|
1369
1368
|
* Executes the $graph operation on this resource to fetch a Bundle of resources linked to the target resource
|
|
1370
1369
|
* according to a graph definition
|
|
1371
1370
|
* @category Read
|
|
@@ -1376,6 +1375,16 @@ export declare class MedplumClient extends EventTarget {
|
|
|
1376
1375
|
* @returns A Bundle
|
|
1377
1376
|
*/
|
|
1378
1377
|
readResourceGraph<K extends ResourceType>(resourceType: K, id: string, graphName: string, options?: RequestInit): ReadablePromise<Bundle>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Pushes a message to an agent.
|
|
1380
|
+
*
|
|
1381
|
+
* @param agent The agent to push to.
|
|
1382
|
+
* @param body The message body.
|
|
1383
|
+
* @param contentType Optional message content type.
|
|
1384
|
+
* @param options Optional fetch options.
|
|
1385
|
+
* @returns Promise to the operation outcome.
|
|
1386
|
+
*/
|
|
1387
|
+
pushToAgent(agent: Agent, body: any, contentType?: string, options?: RequestInit): Promise<OperationOutcome>;
|
|
1379
1388
|
/**
|
|
1380
1389
|
* @category Authentication
|
|
1381
1390
|
* @returns The Login State
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bundle,
|
|
1
|
+
import { Bundle, Resource, StructureDefinition } from '@medplum/fhirtypes';
|
|
2
2
|
import { TypedValue } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Internal representation of a non-primitive FHIR type, suitable for use in resource validation
|