@medplum/cli 2.2.3 → 2.2.5

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.
Files changed (43) hide show
  1. package/package.json +2 -2
  2. package/dist/types/auth.d.ts +0 -3
  3. package/dist/types/auth.d.ts.map +0 -1
  4. package/dist/types/aws/describe.d.ts +0 -6
  5. package/dist/types/aws/describe.d.ts.map +0 -1
  6. package/dist/types/aws/index.d.ts +0 -3
  7. package/dist/types/aws/index.d.ts.map +0 -1
  8. package/dist/types/aws/init.d.ts +0 -2
  9. package/dist/types/aws/init.d.ts.map +0 -1
  10. package/dist/types/aws/list.d.ts +0 -5
  11. package/dist/types/aws/list.d.ts.map +0 -1
  12. package/dist/types/aws/update-app.d.ts +0 -10
  13. package/dist/types/aws/update-app.d.ts.map +0 -1
  14. package/dist/types/aws/update-bucket-policies.d.ts +0 -15
  15. package/dist/types/aws/update-bucket-policies.d.ts.map +0 -1
  16. package/dist/types/aws/update-server.d.ts +0 -6
  17. package/dist/types/aws/update-server.d.ts.map +0 -1
  18. package/dist/types/aws/utils.d.ts +0 -61
  19. package/dist/types/aws/utils.d.ts.map +0 -1
  20. package/dist/types/bots.d.ts +0 -8
  21. package/dist/types/bots.d.ts.map +0 -1
  22. package/dist/types/bulk.d.ts +0 -3
  23. package/dist/types/bulk.d.ts.map +0 -1
  24. package/dist/types/hl7.d.ts +0 -4
  25. package/dist/types/hl7.d.ts.map +0 -1
  26. package/dist/types/index.d.ts +0 -3
  27. package/dist/types/index.d.ts.map +0 -1
  28. package/dist/types/profiles.d.ts +0 -3
  29. package/dist/types/profiles.d.ts.map +0 -1
  30. package/dist/types/project.d.ts +0 -3
  31. package/dist/types/project.d.ts.map +0 -1
  32. package/dist/types/rest.d.ts +0 -8
  33. package/dist/types/rest.d.ts.map +0 -1
  34. package/dist/types/storage.d.ts +0 -14
  35. package/dist/types/storage.d.ts.map +0 -1
  36. package/dist/types/test.setup.d.ts +0 -1
  37. package/dist/types/test.setup.d.ts.map +0 -1
  38. package/dist/types/util/client.d.ts +0 -6
  39. package/dist/types/util/client.d.ts.map +0 -1
  40. package/dist/types/util/command.d.ts +0 -3
  41. package/dist/types/util/command.d.ts.map +0 -1
  42. package/dist/types/utils.d.ts +0 -61
  43. package/dist/types/utils.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/cli",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "Medplum Command Line Interface",
5
5
  "keywords": [
6
6
  "medplum",
@@ -35,7 +35,7 @@
35
35
  "dist"
36
36
  ],
37
37
  "scripts": {
38
- "build": "npm run clean && tsc --project tsconfig.build.json && node esbuild.mjs",
38
+ "build": "npm run clean && tsc && node esbuild.mjs",
39
39
  "clean": "rimraf dist",
40
40
  "medplum": "ts-node src/index.ts",
41
41
  "test": "jest"
@@ -1,3 +0,0 @@
1
- export declare const login: import("commander").Command;
2
- export declare const whoami: import("commander").Command;
3
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,KAAK,6BAAgC,CAAC;AACnD,eAAO,MAAM,MAAM,6BAAiC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * The AWS "describe" command prints details about a Medplum CloudFormation stack.
3
- * @param tag - The Medplum stack tag.
4
- */
5
- export declare function describeStacksCommand(tag: string): Promise<void>;
6
- //# sourceMappingURL=describe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/aws/describe.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOtE"}
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare const aws: Command;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/aws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,eAAO,MAAM,GAAG,SAAqE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function initStackCommand(): Promise<void>;
2
- //# sourceMappingURL=init.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/aws/init.ts"],"names":[],"mappings":"AAyBA,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CA+QtD"}
@@ -1,5 +0,0 @@
1
- /**
2
- * The AWS "list" command prints summary details about all Medplum CloudFormation stacks.
3
- */
4
- export declare function listStacksCommand(): Promise<void>;
5
- //# sourceMappingURL=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/aws/list.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAWvD"}
@@ -1,10 +0,0 @@
1
- export interface UpdateAppOptions {
2
- dryrun?: boolean;
3
- }
4
- /**
5
- * The AWS "update-app" command updates the Medplum app in a Medplum CloudFormation stack to the latest version.
6
- * @param tag - The Medplum stack tag.
7
- * @param options - The update options.
8
- */
9
- export declare function updateAppCommand(tag: string, options: UpdateAppOptions): Promise<void>;
10
- //# sourceMappingURL=update-app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-app.d.ts","sourceRoot":"","sources":["../../../src/aws/update-app.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqC5F"}
@@ -1,15 +0,0 @@
1
- import { StackResource } from '@aws-sdk/client-cloudformation';
2
- export interface UpdateBucketPoliciesOptions {
3
- dryrun?: boolean;
4
- }
5
- /**
6
- * The AWS "update-bucket-policies" command adds necessary policy statements to S3 bucket policy documents.
7
- *
8
- * This is necessary for Medplum deployments outside of the us-east-1 region.
9
- *
10
- * @param tag - The Medplum stack tag.
11
- * @param options - The update options.
12
- */
13
- export declare function updateBucketPoliciesCommand(tag: string, options: UpdateBucketPoliciesOptions): Promise<void>;
14
- export declare function updateBucketPolicy(friendlyName: string, bucketResource: StackResource | undefined, distributionResource: StackResource | undefined, oaiResource: StackResource | undefined, options: UpdateBucketPoliciesOptions): Promise<void>;
15
- //# sourceMappingURL=update-bucket-policies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-bucket-policies.d.ts","sourceRoot":"","sources":["../../../src/aws/update-bucket-policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAK/D,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAcD;;;;;;;GAOG;AACH,wBAAsB,2BAA2B,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBlH;AAED,wBAAsB,kBAAkB,CACtC,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,aAAa,GAAG,SAAS,EACzC,oBAAoB,EAAE,aAAa,GAAG,SAAS,EAC/C,WAAW,EAAE,aAAa,GAAG,SAAS,EACtC,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,IAAI,CAAC,CA2Cf"}
@@ -1,6 +0,0 @@
1
- /**
2
- * The AWS "update-server" command updates the Medplum server in a Medplum CloudFormation stack.
3
- * @param tag - The Medplum stack tag.
4
- */
5
- export declare function updateServerCommand(tag: string): Promise<void>;
6
- //# sourceMappingURL=update-server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-server.d.ts","sourceRoot":"","sources":["../../../src/aws/update-server.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBpE"}
@@ -1,61 +0,0 @@
1
- import { CloudFormationClient, Stack, StackResource, StackSummary } from '@aws-sdk/client-cloudformation';
2
- import { CloudFrontClient } from '@aws-sdk/client-cloudfront';
3
- import { ECSClient } from '@aws-sdk/client-ecs';
4
- import { S3Client } from '@aws-sdk/client-s3';
5
- export interface MedplumStackDetails {
6
- stack: Stack;
7
- tag: string;
8
- ecsCluster?: StackResource;
9
- ecsService?: StackResource;
10
- appBucket?: StackResource;
11
- appDistribution?: StackResource;
12
- appOriginAccessIdentity?: StackResource;
13
- storageBucket?: StackResource;
14
- storageDistribution?: StackResource;
15
- storageOriginAccessIdentity?: StackResource;
16
- }
17
- export declare const cloudFormationClient: CloudFormationClient;
18
- export declare const cloudFrontClient: CloudFrontClient;
19
- export declare const ecsClient: ECSClient;
20
- export declare const s3Client: S3Client;
21
- export declare const tagKey = "medplum:environment";
22
- /**
23
- * Returns a list of all AWS CloudFormation stacks (both Medplum and non-Medplum).
24
- * @returns List of AWS CloudFormation stacks.
25
- */
26
- export declare function getAllStacks(): Promise<(StackSummary & {
27
- StackName: string;
28
- })[]>;
29
- /**
30
- * Returns Medplum stack details for the given tag.
31
- * @param tag - The Medplum stack tag.
32
- * @returns The Medplum stack details.
33
- */
34
- export declare function getStackByTag(tag: string): Promise<MedplumStackDetails | undefined>;
35
- /**
36
- * Returns Medplum stack details for the given stack name.
37
- * @param stackName - The CloudFormation stack name.
38
- * @returns The Medplum stack details.
39
- */
40
- export declare function getStackDetails(stackName: string): Promise<MedplumStackDetails | undefined>;
41
- /**
42
- * Prints the given Medplum stack details to stdout.
43
- * @param details - The Medplum stack details.
44
- */
45
- export declare function printStackDetails(details: MedplumStackDetails): void;
46
- /**
47
- * Parses the ECS service name from the given AWS ECS service resource.
48
- * @param resource - The AWS ECS service resource.
49
- * @returns The ECS service name.
50
- */
51
- export declare function getEcsServiceName(resource: StackResource | undefined): string | undefined;
52
- /**
53
- * Creates a CloudFront invalidation to clear the cache for all files.
54
- * This is not strictly necessary, but it helps to ensure that the latest version of the app is served.
55
- * In a perfect world, every deploy is clean, and hashed resources should be cached forever.
56
- * However, we do not recalculate hashes after variable replacements.
57
- * So if variables change, we need to invalidate the cache.
58
- * @param distributionId - The CloudFront distribution ID.
59
- */
60
- export declare function createInvalidation(distributionId: string): Promise<void>;
61
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/aws/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAIpB,KAAK,EACL,aAAa,EACb,YAAY,EACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAA6B,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,uBAAuB,CAAC,EAAE,aAAa,CAAC;IACxC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC,2BAA2B,CAAC,EAAE,aAAa,CAAC;CAC7C;AAED,eAAO,MAAM,oBAAoB,sBAA+B,CAAC;AACjE,eAAO,MAAM,gBAAgB,kBAAgD,CAAC;AAC9E,eAAO,MAAM,SAAS,WAAoB,CAAC;AAC3C,eAAO,MAAM,QAAQ,UAAmB,CAAC;AACzC,eAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C;;;GAGG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,CAAC,YAAY,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAAC,CAOtF;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAUzF;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAOjG;AA0ED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAapE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEzF;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAc9E"}
@@ -1,8 +0,0 @@
1
- import { MedplumClient } from '@medplum/core';
2
- import { Command } from 'commander';
3
- export declare const bot: Command;
4
- export declare const saveBotDeprecate: Command;
5
- export declare const deployBotDeprecate: Command;
6
- export declare const createBotDeprecate: Command;
7
- export declare function botWrapper(medplum: MedplumClient, botName: string, deploy?: boolean): Promise<void>;
8
- //# sourceMappingURL=bots.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bots.d.ts","sourceRoot":"","sources":["../../src/bots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,eAAO,MAAM,GAAG,SAGe,CAAC;AAGhC,eAAO,MAAM,gBAAgB,SAAmC,CAAC;AACjE,eAAO,MAAM,kBAAkB,SAAqC,CAAC;AACrE,eAAO,MAAM,kBAAkB,SAAqC,CAAC;AA+BrE,wBAAsB,UAAU,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAUvG"}
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare const bulk: Command;
3
- //# sourceMappingURL=bulk.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../src/bulk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,IAAI,SAAkF,CAAC"}
@@ -1,4 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare const hl7: Command;
3
- export declare function generateSampleHl7Message(): string;
4
- //# sourceMappingURL=hl7.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hl7.d.ts","sourceRoot":"","sources":["../../src/hl7.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkDpC,eAAO,MAAM,GAAG,SAAyD,CAAC;AAE1E,wBAAgB,wBAAwB,IAAI,MAAM,CAOjD"}
@@ -1,3 +0,0 @@
1
- export declare function main(argv: string[]): Promise<void>;
2
- export declare function run(): Promise<void>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAYA,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA2CxD;AAED,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAGzC"}
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare const profile: Command;
3
- //# sourceMappingURL=profiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,eAAO,MAAM,OAAO,SAIU,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare const project: Command;
3
- //# sourceMappingURL=project.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/project.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAS5C,eAAO,MAAM,OAAO,SAIe,CAAC"}
@@ -1,8 +0,0 @@
1
- import { MedplumClient } from '@medplum/core';
2
- export declare const deleteObject: import("commander").Command;
3
- export declare const get: import("commander").Command;
4
- export declare const patch: import("commander").Command;
5
- export declare const post: import("commander").Command;
6
- export declare const put: import("commander").Command;
7
- export declare function cleanUrl(medplum: MedplumClient, input: string): string;
8
- //# sourceMappingURL=rest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../src/rest.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,aAAa,EAAE,MAAM,eAAe,CAAC;AAK1E,eAAO,MAAM,YAAY,6BAAiC,CAAC;AAC3D,eAAO,MAAM,GAAG,6BAA8B,CAAC;AAC/C,eAAO,MAAM,KAAK,6BAAgC,CAAC;AACnD,eAAO,MAAM,IAAI,6BAA+B,CAAC;AACjD,eAAO,MAAM,GAAG,6BAA8B,CAAC;AAiD/C,wBAAgB,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAStE"}
@@ -1,14 +0,0 @@
1
- import { ClientStorage } from '@medplum/core';
2
- export declare class FileSystemStorage extends ClientStorage {
3
- private readonly dirName;
4
- private readonly fileName;
5
- constructor(profile: string);
6
- clear(): void;
7
- getString(key: string): string | undefined;
8
- setString(key: string, value: string | undefined): void;
9
- getObject<T>(key: string): T | undefined;
10
- setObject<T>(key: string, value: T): void;
11
- private readFile;
12
- private writeFile;
13
- }
14
- //# sourceMappingURL=storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAK9C,qBAAa,iBAAkB,SAAQ,aAAa;IAClD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,OAAO,EAAE,MAAM;IAM3B,KAAK,IAAI,IAAI;IAIb,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI1C,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAUvD,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAKxC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAIzC,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,SAAS;CAMlB"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=test.setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.setup.d.ts","sourceRoot":"","sources":["../../src/test.setup.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { MedplumClient, MedplumClientOptions } from '@medplum/core';
2
- export declare function createMedplumClient(options: MedplumClientOptions & {
3
- profile?: string;
4
- }, setupCredentials?: boolean): Promise<MedplumClient>;
5
- export declare function onUnauthenticated(): void;
6
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/util/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAIpE,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,oBAAoB,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,EACpD,gBAAgB,UAAO,GACtB,OAAO,CAAC,aAAa,CAAC,CA2CxB;AAiBD,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare function createMedplumCommand(name: string): Command;
3
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/util/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAE5C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA4B1D"}
@@ -1,61 +0,0 @@
1
- /// <reference types="node" />
2
- import { MedplumClient } from '@medplum/core';
3
- import { Bot, Extension } from '@medplum/fhirtypes';
4
- import internal from 'stream';
5
- import { FileSystemStorage } from './storage';
6
- interface MedplumConfig {
7
- baseUrl?: string;
8
- clientId?: string;
9
- googleClientId?: string;
10
- recaptchaSiteKey?: string;
11
- registerEnabled?: boolean;
12
- bots?: MedplumBotConfig[];
13
- }
14
- interface MedplumBotConfig {
15
- readonly name: string;
16
- readonly id: string;
17
- readonly source: string;
18
- readonly dist?: string;
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
- }
37
- export declare function prettyPrint(input: unknown): void;
38
- export declare function saveBot(medplum: MedplumClient, botConfig: MedplumBotConfig, bot: Bot): Promise<void>;
39
- export declare function deployBot(medplum: MedplumClient, botConfig: MedplumBotConfig, bot: Bot): Promise<void>;
40
- export declare function createBot(medplum: MedplumClient, botName: string, projectId: string, sourceFile: string, distFile: string, runtimeVersion?: string, writeConfig?: boolean): Promise<void>;
41
- export declare function readBotConfigs(botName: string): MedplumBotConfig[];
42
- export declare function readConfig(tagName?: string): MedplumConfig | undefined;
43
- /**
44
- * Creates a safe tar extractor that limits the number of files and total size.
45
- *
46
- * Expanding archive files without controlling resource consumption is security-sensitive
47
- *
48
- * See: https://sonarcloud.io/organizations/medplum/rules?open=typescript%3AS5042&rule_key=typescript%3AS5042
49
- * @param destinationDir - The destination directory where all files will be extracted.
50
- * @returns A tar file extractor.
51
- */
52
- export declare function safeTarExtractor(destinationDir: string): internal.Writable;
53
- export declare function getUnsupportedExtension(): Extension;
54
- export declare function getCodeContentType(filename: string): string;
55
- export declare function saveProfile(profileName: string, options: Profile): Profile;
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<void>;
59
- export declare function jwtAssertionLogin(medplum: MedplumClient, profile: Profile): Promise<void>;
60
- export {};
61
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAA6B,aAAa,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAoB,MAAM,oBAAoB,CAAC;AAKtE,OAAO,QAAQ,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACx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