@medplum/core 3.0.10 → 3.0.11
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 +4 -4
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +19 -2
- package/dist/esm/index.d.ts +19 -2
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -677,6 +677,7 @@ declare class EventTarget_2 {
|
|
|
677
677
|
addEventListener(type: string, callback: EventListener_2): void;
|
|
678
678
|
removeEventListener(type: string, callback: EventListener_2): void;
|
|
679
679
|
dispatchEvent(event: Event_2): boolean;
|
|
680
|
+
removeAllListeners(): void;
|
|
680
681
|
}
|
|
681
682
|
export { EventTarget_2 as EventTarget }
|
|
682
683
|
|
|
@@ -1869,6 +1870,16 @@ export declare interface InviteRequest {
|
|
|
1869
1870
|
admin?: boolean;
|
|
1870
1871
|
}
|
|
1871
1872
|
|
|
1873
|
+
export declare interface IRobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> {
|
|
1874
|
+
readyState: number;
|
|
1875
|
+
close(): void;
|
|
1876
|
+
send(message: string): void;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export declare interface IRobustWebSocketCtor {
|
|
1880
|
+
new (url: string): IRobustWebSocket;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1872
1883
|
export declare function isAccepted(outcome: OperationOutcome): boolean;
|
|
1873
1884
|
|
|
1874
1885
|
export declare class IsAtom extends BooleanInfixOperatorAtom {
|
|
@@ -4790,7 +4801,7 @@ export declare interface ResourceVisitor {
|
|
|
4790
4801
|
|
|
4791
4802
|
export declare type ResourceWithCode = Resource & Code;
|
|
4792
4803
|
|
|
4793
|
-
export declare class RobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> {
|
|
4804
|
+
export declare class RobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> implements IRobustWebSocket {
|
|
4794
4805
|
private ws;
|
|
4795
4806
|
private messageBuffer;
|
|
4796
4807
|
bufferedAmount: number;
|
|
@@ -4991,6 +5002,10 @@ export declare type StringMap = {
|
|
|
4991
5002
|
*/
|
|
4992
5003
|
export declare function structureMapTransform(structureMap: StructureMap, input: TypedValue[], loader?: (url: string) => StructureMap[]): TypedValue[];
|
|
4993
5004
|
|
|
5005
|
+
export declare interface SubManagerOptions {
|
|
5006
|
+
RobustWebSocket: IRobustWebSocketCtor;
|
|
5007
|
+
}
|
|
5008
|
+
|
|
4994
5009
|
/**
|
|
4995
5010
|
* An `EventTarget` that emits events when new subscription notifications come in over WebSockets.
|
|
4996
5011
|
*
|
|
@@ -5058,7 +5073,7 @@ export declare class SubscriptionManager {
|
|
|
5058
5073
|
private criteriaEntries;
|
|
5059
5074
|
private criteriaEntriesBySubscriptionId;
|
|
5060
5075
|
private wsClosed;
|
|
5061
|
-
constructor(medplum: MedplumClient, wsUrl: URL | string);
|
|
5076
|
+
constructor(medplum: MedplumClient, wsUrl: URL | string, options?: SubManagerOptions);
|
|
5062
5077
|
private setupWebSocketListeners;
|
|
5063
5078
|
private emitConnect;
|
|
5064
5079
|
private emitError;
|
|
@@ -5097,6 +5112,7 @@ export declare class SymbolAtom implements Atom {
|
|
|
5097
5112
|
readonly name: string;
|
|
5098
5113
|
constructor(name: string);
|
|
5099
5114
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
5115
|
+
private getVariable;
|
|
5100
5116
|
private evalValue;
|
|
5101
5117
|
toString(): string;
|
|
5102
5118
|
}
|
|
@@ -5195,6 +5211,7 @@ export declare class TypedEventTarget<TEvents extends Record<string, Event_2>> {
|
|
|
5195
5211
|
dispatchEvent<TEventType extends keyof TEvents & string>(event: TEvents[TEventType]): void;
|
|
5196
5212
|
addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
5197
5213
|
removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
5214
|
+
removeAllListeners(): void;
|
|
5198
5215
|
}
|
|
5199
5216
|
|
|
5200
5217
|
export declare interface TypedValue {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -677,6 +677,7 @@ declare class EventTarget_2 {
|
|
|
677
677
|
addEventListener(type: string, callback: EventListener_2): void;
|
|
678
678
|
removeEventListener(type: string, callback: EventListener_2): void;
|
|
679
679
|
dispatchEvent(event: Event_2): boolean;
|
|
680
|
+
removeAllListeners(): void;
|
|
680
681
|
}
|
|
681
682
|
export { EventTarget_2 as EventTarget }
|
|
682
683
|
|
|
@@ -1869,6 +1870,16 @@ export declare interface InviteRequest {
|
|
|
1869
1870
|
admin?: boolean;
|
|
1870
1871
|
}
|
|
1871
1872
|
|
|
1873
|
+
export declare interface IRobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> {
|
|
1874
|
+
readyState: number;
|
|
1875
|
+
close(): void;
|
|
1876
|
+
send(message: string): void;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export declare interface IRobustWebSocketCtor {
|
|
1880
|
+
new (url: string): IRobustWebSocket;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1872
1883
|
export declare function isAccepted(outcome: OperationOutcome): boolean;
|
|
1873
1884
|
|
|
1874
1885
|
export declare class IsAtom extends BooleanInfixOperatorAtom {
|
|
@@ -4790,7 +4801,7 @@ export declare interface ResourceVisitor {
|
|
|
4790
4801
|
|
|
4791
4802
|
export declare type ResourceWithCode = Resource & Code;
|
|
4792
4803
|
|
|
4793
|
-
export declare class RobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> {
|
|
4804
|
+
export declare class RobustWebSocket extends TypedEventTarget<RobustWebSocketEventMap> implements IRobustWebSocket {
|
|
4794
4805
|
private ws;
|
|
4795
4806
|
private messageBuffer;
|
|
4796
4807
|
bufferedAmount: number;
|
|
@@ -4991,6 +5002,10 @@ export declare type StringMap = {
|
|
|
4991
5002
|
*/
|
|
4992
5003
|
export declare function structureMapTransform(structureMap: StructureMap, input: TypedValue[], loader?: (url: string) => StructureMap[]): TypedValue[];
|
|
4993
5004
|
|
|
5005
|
+
export declare interface SubManagerOptions {
|
|
5006
|
+
RobustWebSocket: IRobustWebSocketCtor;
|
|
5007
|
+
}
|
|
5008
|
+
|
|
4994
5009
|
/**
|
|
4995
5010
|
* An `EventTarget` that emits events when new subscription notifications come in over WebSockets.
|
|
4996
5011
|
*
|
|
@@ -5058,7 +5073,7 @@ export declare class SubscriptionManager {
|
|
|
5058
5073
|
private criteriaEntries;
|
|
5059
5074
|
private criteriaEntriesBySubscriptionId;
|
|
5060
5075
|
private wsClosed;
|
|
5061
|
-
constructor(medplum: MedplumClient, wsUrl: URL | string);
|
|
5076
|
+
constructor(medplum: MedplumClient, wsUrl: URL | string, options?: SubManagerOptions);
|
|
5062
5077
|
private setupWebSocketListeners;
|
|
5063
5078
|
private emitConnect;
|
|
5064
5079
|
private emitError;
|
|
@@ -5097,6 +5112,7 @@ export declare class SymbolAtom implements Atom {
|
|
|
5097
5112
|
readonly name: string;
|
|
5098
5113
|
constructor(name: string);
|
|
5099
5114
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
5115
|
+
private getVariable;
|
|
5100
5116
|
private evalValue;
|
|
5101
5117
|
toString(): string;
|
|
5102
5118
|
}
|
|
@@ -5195,6 +5211,7 @@ export declare class TypedEventTarget<TEvents extends Record<string, Event_2>> {
|
|
|
5195
5211
|
dispatchEvent<TEventType extends keyof TEvents & string>(event: TEvents[TEventType]): void;
|
|
5196
5212
|
addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
5197
5213
|
removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
5214
|
+
removeAllListeners(): void;
|
|
5198
5215
|
}
|
|
5199
5216
|
|
|
5200
5217
|
export declare interface TypedValue {
|