@medplum/cli 2.0.30 → 2.0.31
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 +4 -4
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +4 -4
- package/dist/types/utils.d.ts +23 -0
- package/package.json +10 -10
package/dist/types/utils.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { MedplumClient } from '@medplum/core';
|
|
3
3
|
import { Bot, Extension } from '@medplum/fhirtypes';
|
|
4
4
|
import internal from 'stream';
|
|
5
|
+
import { FileSystemStorage } from './storage';
|
|
5
6
|
interface MedplumConfig {
|
|
6
7
|
readonly baseUrl?: string;
|
|
7
8
|
readonly clientId?: string;
|
|
@@ -16,6 +17,23 @@ interface MedplumBotConfig {
|
|
|
16
17
|
readonly source: string;
|
|
17
18
|
readonly dist?: string;
|
|
18
19
|
}
|
|
20
|
+
export interface Profile {
|
|
21
|
+
readonly name?: string;
|
|
22
|
+
readonly authType?: string;
|
|
23
|
+
readonly baseUrl?: string;
|
|
24
|
+
readonly clientId?: string;
|
|
25
|
+
readonly clientSecret?: string;
|
|
26
|
+
readonly tokenUrl?: string;
|
|
27
|
+
readonly authorizeUrl?: string;
|
|
28
|
+
readonly fhirUrlPath?: string;
|
|
29
|
+
readonly scope?: string;
|
|
30
|
+
readonly accessToken?: string;
|
|
31
|
+
readonly callbackUrl?: string;
|
|
32
|
+
readonly subject?: string;
|
|
33
|
+
readonly audience?: string;
|
|
34
|
+
readonly issuer?: string;
|
|
35
|
+
readonly privateKeyPath?: string;
|
|
36
|
+
}
|
|
19
37
|
export declare function prettyPrint(input: unknown): void;
|
|
20
38
|
export declare function saveBot(medplum: MedplumClient, botConfig: MedplumBotConfig, bot: Bot): Promise<void>;
|
|
21
39
|
export declare function deployBot(medplum: MedplumClient, botConfig: MedplumBotConfig, bot: Bot): Promise<void>;
|
|
@@ -34,4 +52,9 @@ export declare function readConfig(tagName?: string): MedplumConfig | undefined;
|
|
|
34
52
|
export declare function safeTarExtractor(destinationDir: string): internal.Writable;
|
|
35
53
|
export declare function getUnsupportedExtension(): Extension;
|
|
36
54
|
export declare function getCodeContentType(filename: string): string;
|
|
55
|
+
export declare function saveProfile(profileName: string, options: Profile): void;
|
|
56
|
+
export declare function loadProfile(profileName: string): Profile;
|
|
57
|
+
export declare function profileExists(storage: FileSystemStorage, profile: string): boolean;
|
|
58
|
+
export declare function jwtBearerLogin(medplum: MedplumClient, profile: Profile): Promise<string>;
|
|
59
|
+
export declare function jwtAssertionLogin(externalClient: MedplumClient, profile: Profile): Promise<string>;
|
|
37
60
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
4
4
|
"description": "Medplum Command Line Interface",
|
|
5
5
|
"author": "Medplum <hello@medplum.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"test": "jest"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/client-acm": "3.
|
|
24
|
-
"@aws-sdk/client-cloudformation": "3.
|
|
25
|
-
"@aws-sdk/client-cloudfront": "3.
|
|
26
|
-
"@aws-sdk/client-ecs": "3.
|
|
27
|
-
"@aws-sdk/client-s3": "3.
|
|
28
|
-
"@aws-sdk/client-ssm": "3.
|
|
29
|
-
"@aws-sdk/client-sts": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/client-acm": "3.395.0",
|
|
24
|
+
"@aws-sdk/client-cloudformation": "3.395.0",
|
|
25
|
+
"@aws-sdk/client-cloudfront": "3.395.0",
|
|
26
|
+
"@aws-sdk/client-ecs": "3.395.0",
|
|
27
|
+
"@aws-sdk/client-s3": "3.395.0",
|
|
28
|
+
"@aws-sdk/client-ssm": "3.395.0",
|
|
29
|
+
"@aws-sdk/client-sts": "3.395.0",
|
|
30
|
+
"@aws-sdk/types": "3.391.0",
|
|
31
31
|
"@medplum/core": "*",
|
|
32
32
|
"aws-sdk-client-mock": "3.0.0",
|
|
33
33
|
"commander": "11.0.0",
|
|
34
34
|
"dotenv": "16.3.1",
|
|
35
35
|
"fast-glob": "3.3.1",
|
|
36
|
-
"node-fetch": "2.6.
|
|
36
|
+
"node-fetch": "2.6.13",
|
|
37
37
|
"tar": "6.1.15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|