@medplum/fhirtypes 2.0.27 → 2.0.28

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.
@@ -89,7 +89,7 @@ export interface AccessPolicyIpAccessRule {
89
89
  * Access rule can perform one of the following actions: "allow" |
90
90
  * "block".
91
91
  */
92
- action?: string;
92
+ action?: 'allow' | 'block';
93
93
  }
94
94
 
95
95
  /**
@@ -44,7 +44,7 @@ export interface AsyncJob {
44
44
  /**
45
45
  * The status of the request.
46
46
  */
47
- status?: string;
47
+ status?: 'accepted' | 'active' | 'completed' | 'error';
48
48
 
49
49
  /**
50
50
  * Indicates the server's time when the query is requested.
package/dist/Bot.d.ts CHANGED
@@ -64,7 +64,7 @@ export interface Bot {
64
64
  * The identifier of the bot runtime environment (i.e., vmcontext,
65
65
  * awslambda, etc).
66
66
  */
67
- runtimeVersion?: string;
67
+ runtimeVersion?: 'awslambda' | 'vmcontext';
68
68
 
69
69
  /**
70
70
  * Image of the bot.
@@ -81,11 +81,6 @@ export interface Bot {
81
81
  */
82
82
  cronString?: string;
83
83
 
84
- /**
85
- * Bot logic script.
86
- */
87
- code?: string;
88
-
89
84
  /**
90
85
  * A code that classifies the service for searching, sorting and display
91
86
  * purposes (e.g. "Surgical Procedure").
@@ -96,4 +91,34 @@ export interface Bot {
96
91
  * Optional flag to indicate that the bot should be run as the user.
97
92
  */
98
93
  runAsUser?: boolean;
94
+
95
+ /**
96
+ * Criteria for creating an AuditEvent as a result of the bot invocation.
97
+ * Possible values are 'always', 'never', 'on-error', or 'on-output'.
98
+ * Default value is 'always'.
99
+ */
100
+ auditEventTrigger?: 'always' | 'never' | 'on-error' | 'on-output';
101
+
102
+ /**
103
+ * The destination system in which the AuditEvent is to be sent. Possible
104
+ * values are 'log' or 'resource'. Default value is 'resource'.
105
+ */
106
+ auditEventDestination?: ('log' | 'resource')[];
107
+
108
+ /**
109
+ * Bot logic in original source code form written by developers.
110
+ */
111
+ sourceCode?: Attachment;
112
+
113
+ /**
114
+ * Bot logic in executable form as a result of compiling and bundling
115
+ * source code.
116
+ */
117
+ executableCode?: Attachment;
118
+
119
+ /**
120
+ * DEPRECATED Bot logic script. Use Bot.sourceCode or Bot.executableCode
121
+ * instead.
122
+ */
123
+ code?: string;
99
124
  }
@@ -45,7 +45,7 @@ export interface BulkDataExport {
45
45
  /**
46
46
  * The status of the request.
47
47
  */
48
- status?: string;
48
+ status?: 'accepted' | 'active' | 'completed' | 'error';
49
49
 
50
50
  /**
51
51
  * Indicates the server's time when the query is requested.
@@ -169,7 +169,7 @@ export interface Composition {
169
169
  /**
170
170
  * The code specifying the level of confidentiality of the Composition.
171
171
  */
172
- confidentiality?: string;
172
+ confidentiality?: 'U' | 'L' | 'M' | 'N' | 'R' | 'V';
173
173
 
174
174
  /**
175
175
  * A participant who has attested to the accuracy of the
package/dist/Login.d.ts CHANGED
@@ -84,7 +84,7 @@ export interface Login {
84
84
  * The authentication method used to obtain the code (password or
85
85
  * google).
86
86
  */
87
- authMethod?: string;
87
+ authMethod?: 'client' | 'exchange' | 'execute' | 'external' | 'google' | 'password';
88
88
 
89
89
  /**
90
90
  * Time when the End-User authentication occurred.
@@ -118,7 +118,7 @@ export interface Login {
118
118
  * OPTIONAL, defaults to "plain" if not present in the request. Code
119
119
  * verifier transformation method is "S256" or "plain".
120
120
  */
121
- codeChallengeMethod?: string;
121
+ codeChallengeMethod?: 'plain' | 'S256';
122
122
 
123
123
  /**
124
124
  * Optional secure random string that can be used in an OAuth refresh
package/dist/Project.d.ts CHANGED
@@ -80,7 +80,7 @@ export interface Project {
80
80
  /**
81
81
  * A list of optional features that are enabled for the project.
82
82
  */
83
- features?: string[];
83
+ features?: ('bots' | 'cron' | 'email' | 'google-auth-required' | 'graphql-introspection')[];
84
84
 
85
85
  /**
86
86
  * The default access policy for patients using open registration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/fhirtypes",
3
- "version": "2.0.27",
3
+ "version": "2.0.28",
4
4
  "description": "Medplum FHIR Type Definitions",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",