@medplum/core 3.1.11 → 3.2.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 +5 -5
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +13 -2
- package/dist/esm/index.d.ts +13 -2
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1201,6 +1201,7 @@ export declare const fhirTypeToJsType: {
|
|
|
1201
1201
|
readonly id: "string";
|
|
1202
1202
|
readonly instant: "string";
|
|
1203
1203
|
readonly integer: "number";
|
|
1204
|
+
readonly integer64: "string";
|
|
1204
1205
|
readonly markdown: "string";
|
|
1205
1206
|
readonly oid: "string";
|
|
1206
1207
|
readonly positiveInt: "number";
|
|
@@ -3958,8 +3959,8 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3958
3959
|
* @param versionId - The `versionId` of the `anchor context` of the given event. Used for `DiagnosticReport-update` event.
|
|
3959
3960
|
* @returns A `Promise` that resolves once the request completes, or rejects if it fails.
|
|
3960
3961
|
*/
|
|
3961
|
-
fhircastPublish<EventName extends FhircastEventVersionOptional>(topic: string, event: EventName, context: FhircastEventContext<EventName> | FhircastEventContext<EventName>[], versionId?: never): Promise<
|
|
3962
|
-
fhircastPublish<RequiredVersionEvent extends FhircastEventVersionRequired>(topic: string, event: RequiredVersionEvent, context: FhircastEventContext<RequiredVersionEvent> | FhircastEventContext<RequiredVersionEvent>[], versionId: string): Promise<
|
|
3962
|
+
fhircastPublish<EventName extends FhircastEventVersionOptional>(topic: string, event: EventName, context: FhircastEventContext<EventName> | FhircastEventContext<EventName>[], versionId?: never): Promise<Record<string, any>>;
|
|
3963
|
+
fhircastPublish<RequiredVersionEvent extends FhircastEventVersionRequired>(topic: string, event: RequiredVersionEvent, context: FhircastEventContext<RequiredVersionEvent> | FhircastEventContext<RequiredVersionEvent>[], versionId: string): Promise<Record<string, any>>;
|
|
3963
3964
|
/**
|
|
3964
3965
|
* Gets the current context of the given FHIRcast `topic`.
|
|
3965
3966
|
*
|
|
@@ -4082,6 +4083,12 @@ export declare type MedplumClientEventMap = {
|
|
|
4082
4083
|
storageInitialized: {
|
|
4083
4084
|
type: 'storageInitialized';
|
|
4084
4085
|
};
|
|
4086
|
+
storageInitFailed: {
|
|
4087
|
+
type: 'storageInitFailed';
|
|
4088
|
+
payload: {
|
|
4089
|
+
error: Error;
|
|
4090
|
+
};
|
|
4091
|
+
};
|
|
4085
4092
|
};
|
|
4086
4093
|
|
|
4087
4094
|
/**
|
|
@@ -4318,6 +4325,7 @@ export declare interface MedplumInfraConfig {
|
|
|
4318
4325
|
[key: string]: string;
|
|
4319
4326
|
};
|
|
4320
4327
|
}[];
|
|
4328
|
+
containerInsights?: boolean;
|
|
4321
4329
|
cloudTrailAlarms?: {
|
|
4322
4330
|
logGroupName: string;
|
|
4323
4331
|
logGroupCreate?: boolean;
|
|
@@ -4436,6 +4444,7 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
4436
4444
|
[key: string]: ValueOrExternalSecret<string>;
|
|
4437
4445
|
};
|
|
4438
4446
|
}[];
|
|
4447
|
+
containerInsights?: ValueOrExternalSecret<boolean>;
|
|
4439
4448
|
cloudTrailAlarms?: {
|
|
4440
4449
|
logGroupName: ValueOrExternalSecret<string>;
|
|
4441
4450
|
logGroupCreate?: ValueOrExternalSecret<boolean>;
|
|
@@ -5702,6 +5711,8 @@ export declare function validateResource(resource: Resource, options?: Validator
|
|
|
5702
5711
|
*/
|
|
5703
5712
|
export declare function validateResourceType(resourceType: string): void;
|
|
5704
5713
|
|
|
5714
|
+
export declare function validateTypedValue(typedValue: TypedValue, options?: ValidatorOptions): OperationOutcomeIssue[];
|
|
5715
|
+
|
|
5705
5716
|
export declare function validationError(details: string): OperationOutcome;
|
|
5706
5717
|
|
|
5707
5718
|
export declare const validationRegexes: Record<string, RegExp>;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1201,6 +1201,7 @@ export declare const fhirTypeToJsType: {
|
|
|
1201
1201
|
readonly id: "string";
|
|
1202
1202
|
readonly instant: "string";
|
|
1203
1203
|
readonly integer: "number";
|
|
1204
|
+
readonly integer64: "string";
|
|
1204
1205
|
readonly markdown: "string";
|
|
1205
1206
|
readonly oid: "string";
|
|
1206
1207
|
readonly positiveInt: "number";
|
|
@@ -3958,8 +3959,8 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3958
3959
|
* @param versionId - The `versionId` of the `anchor context` of the given event. Used for `DiagnosticReport-update` event.
|
|
3959
3960
|
* @returns A `Promise` that resolves once the request completes, or rejects if it fails.
|
|
3960
3961
|
*/
|
|
3961
|
-
fhircastPublish<EventName extends FhircastEventVersionOptional>(topic: string, event: EventName, context: FhircastEventContext<EventName> | FhircastEventContext<EventName>[], versionId?: never): Promise<
|
|
3962
|
-
fhircastPublish<RequiredVersionEvent extends FhircastEventVersionRequired>(topic: string, event: RequiredVersionEvent, context: FhircastEventContext<RequiredVersionEvent> | FhircastEventContext<RequiredVersionEvent>[], versionId: string): Promise<
|
|
3962
|
+
fhircastPublish<EventName extends FhircastEventVersionOptional>(topic: string, event: EventName, context: FhircastEventContext<EventName> | FhircastEventContext<EventName>[], versionId?: never): Promise<Record<string, any>>;
|
|
3963
|
+
fhircastPublish<RequiredVersionEvent extends FhircastEventVersionRequired>(topic: string, event: RequiredVersionEvent, context: FhircastEventContext<RequiredVersionEvent> | FhircastEventContext<RequiredVersionEvent>[], versionId: string): Promise<Record<string, any>>;
|
|
3963
3964
|
/**
|
|
3964
3965
|
* Gets the current context of the given FHIRcast `topic`.
|
|
3965
3966
|
*
|
|
@@ -4082,6 +4083,12 @@ export declare type MedplumClientEventMap = {
|
|
|
4082
4083
|
storageInitialized: {
|
|
4083
4084
|
type: 'storageInitialized';
|
|
4084
4085
|
};
|
|
4086
|
+
storageInitFailed: {
|
|
4087
|
+
type: 'storageInitFailed';
|
|
4088
|
+
payload: {
|
|
4089
|
+
error: Error;
|
|
4090
|
+
};
|
|
4091
|
+
};
|
|
4085
4092
|
};
|
|
4086
4093
|
|
|
4087
4094
|
/**
|
|
@@ -4318,6 +4325,7 @@ export declare interface MedplumInfraConfig {
|
|
|
4318
4325
|
[key: string]: string;
|
|
4319
4326
|
};
|
|
4320
4327
|
}[];
|
|
4328
|
+
containerInsights?: boolean;
|
|
4321
4329
|
cloudTrailAlarms?: {
|
|
4322
4330
|
logGroupName: string;
|
|
4323
4331
|
logGroupCreate?: boolean;
|
|
@@ -4436,6 +4444,7 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
4436
4444
|
[key: string]: ValueOrExternalSecret<string>;
|
|
4437
4445
|
};
|
|
4438
4446
|
}[];
|
|
4447
|
+
containerInsights?: ValueOrExternalSecret<boolean>;
|
|
4439
4448
|
cloudTrailAlarms?: {
|
|
4440
4449
|
logGroupName: ValueOrExternalSecret<string>;
|
|
4441
4450
|
logGroupCreate?: ValueOrExternalSecret<boolean>;
|
|
@@ -5702,6 +5711,8 @@ export declare function validateResource(resource: Resource, options?: Validator
|
|
|
5702
5711
|
*/
|
|
5703
5712
|
export declare function validateResourceType(resourceType: string): void;
|
|
5704
5713
|
|
|
5714
|
+
export declare function validateTypedValue(typedValue: TypedValue, options?: ValidatorOptions): OperationOutcomeIssue[];
|
|
5715
|
+
|
|
5705
5716
|
export declare function validationError(details: string): OperationOutcome;
|
|
5706
5717
|
|
|
5707
5718
|
export declare const validationRegexes: Record<string, RegExp>;
|