@medplum/core 5.1.23 → 5.1.26
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 +7 -7
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +33 -0
- package/dist/esm/index.d.ts +33 -0
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -213,12 +213,26 @@ export declare interface AgentHeartbeatResponse extends BaseAgentMessage {
|
|
|
213
213
|
export declare interface AgentLogsRequest extends BaseAgentRequestMessage {
|
|
214
214
|
type: 'agent:logs:request';
|
|
215
215
|
limit?: number;
|
|
216
|
+
/**
|
|
217
|
+
* Opaque pagination cursor. Pass the `nextBefore` value from a previous
|
|
218
|
+
* response to fetch the next (older) page; treat it as an opaque token rather
|
|
219
|
+
* than parsing it. Logs are read across all rotated log files, not just the
|
|
220
|
+
* most recent one.
|
|
221
|
+
*/
|
|
222
|
+
before?: string;
|
|
216
223
|
}
|
|
217
224
|
|
|
218
225
|
export declare interface AgentLogsResponse extends BaseAgentMessage {
|
|
219
226
|
type: 'agent:logs:response';
|
|
220
227
|
statusCode: number;
|
|
221
228
|
logs: LogMessage[];
|
|
229
|
+
/** Whether more (older) log entries exist beyond the ones returned in this page. */
|
|
230
|
+
hasMore: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Opaque cursor to pass as `before` in a subsequent request to fetch the next
|
|
233
|
+
* older page. Only present when `hasMore` is true.
|
|
234
|
+
*/
|
|
235
|
+
nextBefore?: string;
|
|
222
236
|
}
|
|
223
237
|
|
|
224
238
|
export declare type AgentMessage = AgentRequestMessage | AgentResponseMessage;
|
|
@@ -2854,6 +2868,18 @@ export declare class Hl7Message {
|
|
|
2854
2868
|
* @returns The HL7 message as a string.
|
|
2855
2869
|
*/
|
|
2856
2870
|
toString(): string;
|
|
2871
|
+
/**
|
|
2872
|
+
* Returns this message's acknowledgment code (MSA-1), if it is a recognized
|
|
2873
|
+
* HL7 ACK code.
|
|
2874
|
+
*
|
|
2875
|
+
* Useful on an ACK message to decide the outcome of the acknowledged message —
|
|
2876
|
+
* e.g. AA/CA (accepted) vs AR/CR (rejected) vs AE/CE (error). The value is
|
|
2877
|
+
* upper-cased before matching. Returns undefined when there is no MSA segment,
|
|
2878
|
+
* MSA-1 is empty, or the value is not a known `AckCode`.
|
|
2879
|
+
*
|
|
2880
|
+
* @returns The `AckCode`, or undefined.
|
|
2881
|
+
*/
|
|
2882
|
+
getAckType(): AckCode | undefined;
|
|
2857
2883
|
/**
|
|
2858
2884
|
* Returns an HL7 "ACK" (acknowledgement) message for this message.
|
|
2859
2885
|
* @param options - The optional options to configure the "ACK" message.
|
|
@@ -3260,6 +3286,13 @@ export declare interface IReconnectingWebSocketCtor {
|
|
|
3260
3286
|
|
|
3261
3287
|
export declare function isAccepted(outcome: OperationOutcome): boolean;
|
|
3262
3288
|
|
|
3289
|
+
/**
|
|
3290
|
+
* Type guard for a valid HL7 acknowledgment code (MSA-1).
|
|
3291
|
+
* @param value - The candidate code (already upper-cased, if applicable).
|
|
3292
|
+
* @returns True if `value` is one of the recognized `AckCode` values.
|
|
3293
|
+
*/
|
|
3294
|
+
export declare function isAckCode(value: string | undefined): value is AckCode;
|
|
3295
|
+
|
|
3263
3296
|
/**
|
|
3264
3297
|
* Type guard to validate an add pharmacy bot response.
|
|
3265
3298
|
* @param value - The value to check.
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -213,12 +213,26 @@ export declare interface AgentHeartbeatResponse extends BaseAgentMessage {
|
|
|
213
213
|
export declare interface AgentLogsRequest extends BaseAgentRequestMessage {
|
|
214
214
|
type: 'agent:logs:request';
|
|
215
215
|
limit?: number;
|
|
216
|
+
/**
|
|
217
|
+
* Opaque pagination cursor. Pass the `nextBefore` value from a previous
|
|
218
|
+
* response to fetch the next (older) page; treat it as an opaque token rather
|
|
219
|
+
* than parsing it. Logs are read across all rotated log files, not just the
|
|
220
|
+
* most recent one.
|
|
221
|
+
*/
|
|
222
|
+
before?: string;
|
|
216
223
|
}
|
|
217
224
|
|
|
218
225
|
export declare interface AgentLogsResponse extends BaseAgentMessage {
|
|
219
226
|
type: 'agent:logs:response';
|
|
220
227
|
statusCode: number;
|
|
221
228
|
logs: LogMessage[];
|
|
229
|
+
/** Whether more (older) log entries exist beyond the ones returned in this page. */
|
|
230
|
+
hasMore: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Opaque cursor to pass as `before` in a subsequent request to fetch the next
|
|
233
|
+
* older page. Only present when `hasMore` is true.
|
|
234
|
+
*/
|
|
235
|
+
nextBefore?: string;
|
|
222
236
|
}
|
|
223
237
|
|
|
224
238
|
export declare type AgentMessage = AgentRequestMessage | AgentResponseMessage;
|
|
@@ -2854,6 +2868,18 @@ export declare class Hl7Message {
|
|
|
2854
2868
|
* @returns The HL7 message as a string.
|
|
2855
2869
|
*/
|
|
2856
2870
|
toString(): string;
|
|
2871
|
+
/**
|
|
2872
|
+
* Returns this message's acknowledgment code (MSA-1), if it is a recognized
|
|
2873
|
+
* HL7 ACK code.
|
|
2874
|
+
*
|
|
2875
|
+
* Useful on an ACK message to decide the outcome of the acknowledged message —
|
|
2876
|
+
* e.g. AA/CA (accepted) vs AR/CR (rejected) vs AE/CE (error). The value is
|
|
2877
|
+
* upper-cased before matching. Returns undefined when there is no MSA segment,
|
|
2878
|
+
* MSA-1 is empty, or the value is not a known `AckCode`.
|
|
2879
|
+
*
|
|
2880
|
+
* @returns The `AckCode`, or undefined.
|
|
2881
|
+
*/
|
|
2882
|
+
getAckType(): AckCode | undefined;
|
|
2857
2883
|
/**
|
|
2858
2884
|
* Returns an HL7 "ACK" (acknowledgement) message for this message.
|
|
2859
2885
|
* @param options - The optional options to configure the "ACK" message.
|
|
@@ -3260,6 +3286,13 @@ export declare interface IReconnectingWebSocketCtor {
|
|
|
3260
3286
|
|
|
3261
3287
|
export declare function isAccepted(outcome: OperationOutcome): boolean;
|
|
3262
3288
|
|
|
3289
|
+
/**
|
|
3290
|
+
* Type guard for a valid HL7 acknowledgment code (MSA-1).
|
|
3291
|
+
* @param value - The candidate code (already upper-cased, if applicable).
|
|
3292
|
+
* @returns True if `value` is one of the recognized `AckCode` values.
|
|
3293
|
+
*/
|
|
3294
|
+
export declare function isAckCode(value: string | undefined): value is AckCode;
|
|
3295
|
+
|
|
3263
3296
|
/**
|
|
3264
3297
|
* Type guard to validate an add pharmacy bot response.
|
|
3265
3298
|
* @param value - The value to check.
|