@medplum/core 3.2.9 → 3.2.10
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 +2 -2
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/cjs/index.d.ts +10 -10
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +2 -2
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -668,7 +668,7 @@ export declare interface CreateMediaOptions extends CreateBinaryOptions {
|
|
|
668
668
|
export declare function createOperationOutcomeIssue(severity: IssueSeverity, code: IssueType, message: string, path: string, data?: Record<string, any>): OperationOutcomeIssue;
|
|
669
669
|
|
|
670
670
|
export declare interface CreatePdfFunction {
|
|
671
|
-
(docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout
|
|
671
|
+
(docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout>, fonts?: TFontDictionary): Promise<any>;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
/**
|
|
@@ -1379,7 +1379,7 @@ export declare function formatCoding(coding: Coding | undefined): string;
|
|
|
1379
1379
|
* @param options - Optional date format options.
|
|
1380
1380
|
* @returns The formatted date string.
|
|
1381
1381
|
*/
|
|
1382
|
-
export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1382
|
+
export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1383
1383
|
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Formats a FHIR dateTime string as a human readable string.
|
|
@@ -1389,7 +1389,7 @@ export declare function formatDate(date: string | undefined, locales?: Intl.Loca
|
|
|
1389
1389
|
* @param options - Optional dateTime format options.
|
|
1390
1390
|
* @returns The formatted dateTime string.
|
|
1391
1391
|
*/
|
|
1392
|
-
export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1392
|
+
export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1393
1393
|
|
|
1394
1394
|
/**
|
|
1395
1395
|
* Formats the family name portion of a FHIR HumanName element.
|
|
@@ -1436,7 +1436,7 @@ export declare function formatObservationValue(obs: Observation | ObservationCom
|
|
|
1436
1436
|
* @param options - Optional period format options.
|
|
1437
1437
|
* @returns The formatted period string.
|
|
1438
1438
|
*/
|
|
1439
|
-
export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1439
|
+
export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1440
1440
|
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Returns a human-readable string for a FHIR Quantity datatype, taking into account units and comparators
|
|
@@ -1471,7 +1471,7 @@ export declare function formatSearchQuery(definition: SearchRequest): string;
|
|
|
1471
1471
|
* @param options - Optional time format options.
|
|
1472
1472
|
* @returns The formatted time string.
|
|
1473
1473
|
*/
|
|
1474
|
-
export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1474
|
+
export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1475
1475
|
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Formats a FHIR Timing as a human readable string.
|
|
@@ -3749,8 +3749,8 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3749
3749
|
private addLogin;
|
|
3750
3750
|
private refreshProfile;
|
|
3751
3751
|
/**
|
|
3752
|
-
* Returns true if the client is waiting for authentication.
|
|
3753
|
-
* @returns True if the client is waiting for authentication.
|
|
3752
|
+
* Returns true if the client is waiting for initial authentication.
|
|
3753
|
+
* @returns True if the client is waiting for initial authentication.
|
|
3754
3754
|
* @category Authentication
|
|
3755
3755
|
*/
|
|
3756
3756
|
isLoading(): boolean;
|
|
@@ -5220,20 +5220,20 @@ export declare class ReadablePromise<T> implements Promise<T> {
|
|
|
5220
5220
|
* @param onrejected - The callback to execute when the Promise is rejected.
|
|
5221
5221
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
5222
5222
|
*/
|
|
5223
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) |
|
|
5223
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
5224
5224
|
/**
|
|
5225
5225
|
* Attaches a callback for only the rejection of the Promise.
|
|
5226
5226
|
* @param onrejected - The callback to execute when the Promise is rejected.
|
|
5227
5227
|
* @returns A Promise for the completion of the callback.
|
|
5228
5228
|
*/
|
|
5229
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) |
|
|
5229
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
5230
5230
|
/**
|
|
5231
5231
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
5232
5232
|
* resolved value cannot be modified from the callback.
|
|
5233
5233
|
* @param onfinally - The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
5234
5234
|
* @returns A Promise for the completion of the callback.
|
|
5235
5235
|
*/
|
|
5236
|
-
finally(onfinally?: (() => void) |
|
|
5236
|
+
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
5237
5237
|
}
|
|
5238
5238
|
|
|
5239
5239
|
export declare class ReconnectingWebSocket extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -668,7 +668,7 @@ export declare interface CreateMediaOptions extends CreateBinaryOptions {
|
|
|
668
668
|
export declare function createOperationOutcomeIssue(severity: IssueSeverity, code: IssueType, message: string, path: string, data?: Record<string, any>): OperationOutcomeIssue;
|
|
669
669
|
|
|
670
670
|
export declare interface CreatePdfFunction {
|
|
671
|
-
(docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout
|
|
671
|
+
(docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout>, fonts?: TFontDictionary): Promise<any>;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
/**
|
|
@@ -1379,7 +1379,7 @@ export declare function formatCoding(coding: Coding | undefined): string;
|
|
|
1379
1379
|
* @param options - Optional date format options.
|
|
1380
1380
|
* @returns The formatted date string.
|
|
1381
1381
|
*/
|
|
1382
|
-
export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1382
|
+
export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1383
1383
|
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Formats a FHIR dateTime string as a human readable string.
|
|
@@ -1389,7 +1389,7 @@ export declare function formatDate(date: string | undefined, locales?: Intl.Loca
|
|
|
1389
1389
|
* @param options - Optional dateTime format options.
|
|
1390
1390
|
* @returns The formatted dateTime string.
|
|
1391
1391
|
*/
|
|
1392
|
-
export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1392
|
+
export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1393
1393
|
|
|
1394
1394
|
/**
|
|
1395
1395
|
* Formats the family name portion of a FHIR HumanName element.
|
|
@@ -1436,7 +1436,7 @@ export declare function formatObservationValue(obs: Observation | ObservationCom
|
|
|
1436
1436
|
* @param options - Optional period format options.
|
|
1437
1437
|
* @returns The formatted period string.
|
|
1438
1438
|
*/
|
|
1439
|
-
export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1439
|
+
export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1440
1440
|
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Returns a human-readable string for a FHIR Quantity datatype, taking into account units and comparators
|
|
@@ -1471,7 +1471,7 @@ export declare function formatSearchQuery(definition: SearchRequest): string;
|
|
|
1471
1471
|
* @param options - Optional time format options.
|
|
1472
1472
|
* @returns The formatted time string.
|
|
1473
1473
|
*/
|
|
1474
|
-
export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions
|
|
1474
|
+
export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1475
1475
|
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Formats a FHIR Timing as a human readable string.
|
|
@@ -3749,8 +3749,8 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3749
3749
|
private addLogin;
|
|
3750
3750
|
private refreshProfile;
|
|
3751
3751
|
/**
|
|
3752
|
-
* Returns true if the client is waiting for authentication.
|
|
3753
|
-
* @returns True if the client is waiting for authentication.
|
|
3752
|
+
* Returns true if the client is waiting for initial authentication.
|
|
3753
|
+
* @returns True if the client is waiting for initial authentication.
|
|
3754
3754
|
* @category Authentication
|
|
3755
3755
|
*/
|
|
3756
3756
|
isLoading(): boolean;
|
|
@@ -5220,20 +5220,20 @@ export declare class ReadablePromise<T> implements Promise<T> {
|
|
|
5220
5220
|
* @param onrejected - The callback to execute when the Promise is rejected.
|
|
5221
5221
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
5222
5222
|
*/
|
|
5223
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) |
|
|
5223
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
5224
5224
|
/**
|
|
5225
5225
|
* Attaches a callback for only the rejection of the Promise.
|
|
5226
5226
|
* @param onrejected - The callback to execute when the Promise is rejected.
|
|
5227
5227
|
* @returns A Promise for the completion of the callback.
|
|
5228
5228
|
*/
|
|
5229
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) |
|
|
5229
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
5230
5230
|
/**
|
|
5231
5231
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
5232
5232
|
* resolved value cannot be modified from the callback.
|
|
5233
5233
|
* @param onfinally - The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
5234
5234
|
* @returns A Promise for the completion of the callback.
|
|
5235
5235
|
*/
|
|
5236
|
-
finally(onfinally?: (() => void) |
|
|
5236
|
+
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
5237
5237
|
}
|
|
5238
5238
|
|
|
5239
5239
|
export declare class ReconnectingWebSocket extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
|