@medplum/core 5.0.13 → 5.0.14
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 +16 -6
- package/dist/esm/index.d.ts +16 -6
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2792,9 +2792,11 @@ export declare function isDateTimeString(input: unknown): input is string;
|
|
|
2792
2792
|
* @param value - The value to refine
|
|
2793
2793
|
* @returns boolean
|
|
2794
2794
|
*
|
|
2795
|
-
*
|
|
2796
|
-
*
|
|
2797
|
-
*
|
|
2795
|
+
* @example
|
|
2796
|
+
* ```typescript
|
|
2797
|
+
* const arr: Array<number | undefined> = [1,undefined];
|
|
2798
|
+
* const refined: Array<number> = arr.filter(isDefined);
|
|
2799
|
+
* ```
|
|
2798
2800
|
*/
|
|
2799
2801
|
export declare function isDefined<T>(value: T | undefined | null): value is T;
|
|
2800
2802
|
|
|
@@ -3572,7 +3574,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3572
3574
|
* @param options - Optional fetch options.
|
|
3573
3575
|
* @returns Promise to the response content.
|
|
3574
3576
|
*/
|
|
3575
|
-
post(url: URL | string, body?: any, contentType?: string, options?: MedplumRequestOptions): Promise<
|
|
3577
|
+
post<T = any>(url: URL | string, body?: any, contentType?: string, options?: MedplumRequestOptions): Promise<T>;
|
|
3576
3578
|
/**
|
|
3577
3579
|
* Makes an HTTP PUT request to the specified URL.
|
|
3578
3580
|
*
|
|
@@ -3705,10 +3707,11 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3705
3707
|
* Exchange an external access token for a Medplum access token.
|
|
3706
3708
|
* @param token - The access token that was generated by the external identity provider.
|
|
3707
3709
|
* @param clientId - The ID of the `ClientApplication` in your Medplum project that will be making the exchange request.
|
|
3710
|
+
* @param membershipId - Optional membership ID to restrict the exchange to a specific ProjectMembership.
|
|
3708
3711
|
* @returns The user profile resource.
|
|
3709
3712
|
* @category Authentication
|
|
3710
3713
|
*/
|
|
3711
|
-
exchangeExternalAccessToken(token: string, clientId?: string): Promise<ProfileResource>;
|
|
3714
|
+
exchangeExternalAccessToken(token: string, clientId?: string, membershipId?: string): Promise<ProfileResource>;
|
|
3712
3715
|
/**
|
|
3713
3716
|
* Builds the external identity provider redirect URI.
|
|
3714
3717
|
* @param authorizeUrl - The external authorization URL.
|
|
@@ -6619,10 +6622,16 @@ export declare class ParserBuilder {
|
|
|
6619
6622
|
* @param resource - The resource to add the identifier to.
|
|
6620
6623
|
* @param system - The identifier system.
|
|
6621
6624
|
* @param value - The identifier value.
|
|
6625
|
+
* @param options - Optional attributes to set
|
|
6622
6626
|
*/
|
|
6623
6627
|
export declare function setIdentifier(resource: Resource & {
|
|
6624
6628
|
identifier?: Identifier[];
|
|
6625
|
-
}, system: string, value: string): void;
|
|
6629
|
+
}, system: string, value: string, options?: SetIdentifierOptions): void;
|
|
6630
|
+
|
|
6631
|
+
export declare interface SetIdentifierOptions {
|
|
6632
|
+
/** IdentifierUse code. See {@link https://build.fhir.org/valueset-identifier-use.html} */
|
|
6633
|
+
use?: Identifier['use'];
|
|
6634
|
+
}
|
|
6626
6635
|
|
|
6627
6636
|
export declare function singleton(collection: TypedValue[], type?: string): TypedValue | undefined;
|
|
6628
6637
|
|
|
@@ -6858,6 +6867,7 @@ export declare class ParserBuilder {
|
|
|
6858
6867
|
reconnectWebSocket(): void;
|
|
6859
6868
|
getCriteriaCount(): number;
|
|
6860
6869
|
getMasterEmitter(): SubscriptionEmitter;
|
|
6870
|
+
reconnectIfNeeded(): Promise<void>;
|
|
6861
6871
|
}
|
|
6862
6872
|
|
|
6863
6873
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2792,9 +2792,11 @@ export declare function isDateTimeString(input: unknown): input is string;
|
|
|
2792
2792
|
* @param value - The value to refine
|
|
2793
2793
|
* @returns boolean
|
|
2794
2794
|
*
|
|
2795
|
-
*
|
|
2796
|
-
*
|
|
2797
|
-
*
|
|
2795
|
+
* @example
|
|
2796
|
+
* ```typescript
|
|
2797
|
+
* const arr: Array<number | undefined> = [1,undefined];
|
|
2798
|
+
* const refined: Array<number> = arr.filter(isDefined);
|
|
2799
|
+
* ```
|
|
2798
2800
|
*/
|
|
2799
2801
|
export declare function isDefined<T>(value: T | undefined | null): value is T;
|
|
2800
2802
|
|
|
@@ -3572,7 +3574,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3572
3574
|
* @param options - Optional fetch options.
|
|
3573
3575
|
* @returns Promise to the response content.
|
|
3574
3576
|
*/
|
|
3575
|
-
post(url: URL | string, body?: any, contentType?: string, options?: MedplumRequestOptions): Promise<
|
|
3577
|
+
post<T = any>(url: URL | string, body?: any, contentType?: string, options?: MedplumRequestOptions): Promise<T>;
|
|
3576
3578
|
/**
|
|
3577
3579
|
* Makes an HTTP PUT request to the specified URL.
|
|
3578
3580
|
*
|
|
@@ -3705,10 +3707,11 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3705
3707
|
* Exchange an external access token for a Medplum access token.
|
|
3706
3708
|
* @param token - The access token that was generated by the external identity provider.
|
|
3707
3709
|
* @param clientId - The ID of the `ClientApplication` in your Medplum project that will be making the exchange request.
|
|
3710
|
+
* @param membershipId - Optional membership ID to restrict the exchange to a specific ProjectMembership.
|
|
3708
3711
|
* @returns The user profile resource.
|
|
3709
3712
|
* @category Authentication
|
|
3710
3713
|
*/
|
|
3711
|
-
exchangeExternalAccessToken(token: string, clientId?: string): Promise<ProfileResource>;
|
|
3714
|
+
exchangeExternalAccessToken(token: string, clientId?: string, membershipId?: string): Promise<ProfileResource>;
|
|
3712
3715
|
/**
|
|
3713
3716
|
* Builds the external identity provider redirect URI.
|
|
3714
3717
|
* @param authorizeUrl - The external authorization URL.
|
|
@@ -6619,10 +6622,16 @@ export declare class ParserBuilder {
|
|
|
6619
6622
|
* @param resource - The resource to add the identifier to.
|
|
6620
6623
|
* @param system - The identifier system.
|
|
6621
6624
|
* @param value - The identifier value.
|
|
6625
|
+
* @param options - Optional attributes to set
|
|
6622
6626
|
*/
|
|
6623
6627
|
export declare function setIdentifier(resource: Resource & {
|
|
6624
6628
|
identifier?: Identifier[];
|
|
6625
|
-
}, system: string, value: string): void;
|
|
6629
|
+
}, system: string, value: string, options?: SetIdentifierOptions): void;
|
|
6630
|
+
|
|
6631
|
+
export declare interface SetIdentifierOptions {
|
|
6632
|
+
/** IdentifierUse code. See {@link https://build.fhir.org/valueset-identifier-use.html} */
|
|
6633
|
+
use?: Identifier['use'];
|
|
6634
|
+
}
|
|
6626
6635
|
|
|
6627
6636
|
export declare function singleton(collection: TypedValue[], type?: string): TypedValue | undefined;
|
|
6628
6637
|
|
|
@@ -6858,6 +6867,7 @@ export declare class ParserBuilder {
|
|
|
6858
6867
|
reconnectWebSocket(): void;
|
|
6859
6868
|
getCriteriaCount(): number;
|
|
6860
6869
|
getMasterEmitter(): SubscriptionEmitter;
|
|
6870
|
+
reconnectIfNeeded(): Promise<void>;
|
|
6861
6871
|
}
|
|
6862
6872
|
|
|
6863
6873
|
/**
|