@medplum/core 4.1.7 → 4.1.9
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 +7 -7
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +43 -1
- package/dist/esm/index.d.ts +43 -1
- 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
|
@@ -91,6 +91,23 @@ export declare const AccessPolicyInteraction: {
|
|
|
91
91
|
|
|
92
92
|
export declare type AccessPolicyInteraction = (typeof AccessPolicyInteraction)[keyof typeof AccessPolicyInteraction];
|
|
93
93
|
|
|
94
|
+
export declare const AckCode: {
|
|
95
|
+
/** AA - Application Accept */
|
|
96
|
+
readonly AA: "AA";
|
|
97
|
+
/** AE - Application Error */
|
|
98
|
+
readonly AE: "AE";
|
|
99
|
+
/** AR - Application Reject */
|
|
100
|
+
readonly AR: "AR";
|
|
101
|
+
/** CA - Commit Accept */
|
|
102
|
+
readonly CA: "CA";
|
|
103
|
+
/** CE - Commit Error */
|
|
104
|
+
readonly CE: "CE";
|
|
105
|
+
/** CR - Commit Reject */
|
|
106
|
+
readonly CR: "CR";
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export declare type AckCode = keyof typeof AckCode;
|
|
110
|
+
|
|
94
111
|
/**
|
|
95
112
|
* Adds the supplied profileUrl to the resource.meta.profile if it is not already
|
|
96
113
|
* specified
|
|
@@ -746,6 +763,13 @@ export declare type DataTypesMap = {
|
|
|
746
763
|
*/
|
|
747
764
|
export declare function decodeBase64(data: string): string;
|
|
748
765
|
|
|
766
|
+
/**
|
|
767
|
+
* Decodes a string from Base64URL format.
|
|
768
|
+
* @param data - The Base64URL encoded input string.
|
|
769
|
+
* @returns The decoded string.
|
|
770
|
+
*/
|
|
771
|
+
export declare function decodeBase64Url(data: string): string;
|
|
772
|
+
|
|
749
773
|
/**
|
|
750
774
|
* Creates a deep clone of the input value.
|
|
751
775
|
*
|
|
@@ -862,6 +886,14 @@ export declare class EmptySetAtom implements Atom {
|
|
|
862
886
|
*/
|
|
863
887
|
export declare function encodeBase64(data: string): string;
|
|
864
888
|
|
|
889
|
+
/**
|
|
890
|
+
* Encodes a string into Base64URL format.
|
|
891
|
+
* This is the encoding required for JWT parts.
|
|
892
|
+
* @param data - The unencoded input string.
|
|
893
|
+
* @returns The Base64URL encoded string.
|
|
894
|
+
*/
|
|
895
|
+
export declare function encodeBase64Url(data: string): string;
|
|
896
|
+
|
|
865
897
|
/**
|
|
866
898
|
* Encrypts a string with SHA256 encryption.
|
|
867
899
|
* @param str - The unencrypted input string.
|
|
@@ -1916,6 +1948,11 @@ export declare interface GoogleLoginRequest extends BaseLoginRequest {
|
|
|
1916
1948
|
readonly createUser?: boolean;
|
|
1917
1949
|
}
|
|
1918
1950
|
|
|
1951
|
+
export declare interface Hl7AckOptions {
|
|
1952
|
+
ackCode: AckCode;
|
|
1953
|
+
errSegment?: Hl7Segment;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1919
1956
|
/**
|
|
1920
1957
|
* The Hl7Context class represents the parsing context for an HL7 message.
|
|
1921
1958
|
*
|
|
@@ -2068,9 +2105,10 @@ export declare class Hl7Message {
|
|
|
2068
2105
|
toString(): string;
|
|
2069
2106
|
/**
|
|
2070
2107
|
* Returns an HL7 "ACK" (acknowledgement) message for this message.
|
|
2108
|
+
* @param options - The optional options to configure the "ACK" message.
|
|
2071
2109
|
* @returns The HL7 "ACK" message.
|
|
2072
2110
|
*/
|
|
2073
|
-
buildAck(): Hl7Message;
|
|
2111
|
+
buildAck(options?: Hl7AckOptions): Hl7Message;
|
|
2074
2112
|
private buildAckMessageType;
|
|
2075
2113
|
/**
|
|
2076
2114
|
* Parses an HL7 message string into an Hl7Message object.
|
|
@@ -4839,6 +4877,8 @@ export declare interface MedplumInfraConfig {
|
|
|
4839
4877
|
clamscanLoggingPrefix: string;
|
|
4840
4878
|
skipDns?: boolean;
|
|
4841
4879
|
hostedZoneName?: string;
|
|
4880
|
+
wafLogGroupName?: string;
|
|
4881
|
+
wafLogGroupCreate?: boolean;
|
|
4842
4882
|
additionalContainers?: {
|
|
4843
4883
|
name: string;
|
|
4844
4884
|
image: string;
|
|
@@ -4973,6 +5013,8 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
4973
5013
|
clamscanLoggingPrefix: ValueOrExternalSecret<string>;
|
|
4974
5014
|
skipDns?: ValueOrExternalSecret<boolean>;
|
|
4975
5015
|
hostedZoneName?: ValueOrExternalSecret<string>;
|
|
5016
|
+
wafLogGroupName?: ValueOrExternalSecret<string>;
|
|
5017
|
+
wafLogGroupCreate?: ValueOrExternalSecret<boolean>;
|
|
4976
5018
|
additionalContainers?: {
|
|
4977
5019
|
name: ValueOrExternalSecret<string>;
|
|
4978
5020
|
image: ValueOrExternalSecret<string>;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -91,6 +91,23 @@ export declare const AccessPolicyInteraction: {
|
|
|
91
91
|
|
|
92
92
|
export declare type AccessPolicyInteraction = (typeof AccessPolicyInteraction)[keyof typeof AccessPolicyInteraction];
|
|
93
93
|
|
|
94
|
+
export declare const AckCode: {
|
|
95
|
+
/** AA - Application Accept */
|
|
96
|
+
readonly AA: "AA";
|
|
97
|
+
/** AE - Application Error */
|
|
98
|
+
readonly AE: "AE";
|
|
99
|
+
/** AR - Application Reject */
|
|
100
|
+
readonly AR: "AR";
|
|
101
|
+
/** CA - Commit Accept */
|
|
102
|
+
readonly CA: "CA";
|
|
103
|
+
/** CE - Commit Error */
|
|
104
|
+
readonly CE: "CE";
|
|
105
|
+
/** CR - Commit Reject */
|
|
106
|
+
readonly CR: "CR";
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export declare type AckCode = keyof typeof AckCode;
|
|
110
|
+
|
|
94
111
|
/**
|
|
95
112
|
* Adds the supplied profileUrl to the resource.meta.profile if it is not already
|
|
96
113
|
* specified
|
|
@@ -746,6 +763,13 @@ export declare type DataTypesMap = {
|
|
|
746
763
|
*/
|
|
747
764
|
export declare function decodeBase64(data: string): string;
|
|
748
765
|
|
|
766
|
+
/**
|
|
767
|
+
* Decodes a string from Base64URL format.
|
|
768
|
+
* @param data - The Base64URL encoded input string.
|
|
769
|
+
* @returns The decoded string.
|
|
770
|
+
*/
|
|
771
|
+
export declare function decodeBase64Url(data: string): string;
|
|
772
|
+
|
|
749
773
|
/**
|
|
750
774
|
* Creates a deep clone of the input value.
|
|
751
775
|
*
|
|
@@ -862,6 +886,14 @@ export declare class EmptySetAtom implements Atom {
|
|
|
862
886
|
*/
|
|
863
887
|
export declare function encodeBase64(data: string): string;
|
|
864
888
|
|
|
889
|
+
/**
|
|
890
|
+
* Encodes a string into Base64URL format.
|
|
891
|
+
* This is the encoding required for JWT parts.
|
|
892
|
+
* @param data - The unencoded input string.
|
|
893
|
+
* @returns The Base64URL encoded string.
|
|
894
|
+
*/
|
|
895
|
+
export declare function encodeBase64Url(data: string): string;
|
|
896
|
+
|
|
865
897
|
/**
|
|
866
898
|
* Encrypts a string with SHA256 encryption.
|
|
867
899
|
* @param str - The unencrypted input string.
|
|
@@ -1916,6 +1948,11 @@ export declare interface GoogleLoginRequest extends BaseLoginRequest {
|
|
|
1916
1948
|
readonly createUser?: boolean;
|
|
1917
1949
|
}
|
|
1918
1950
|
|
|
1951
|
+
export declare interface Hl7AckOptions {
|
|
1952
|
+
ackCode: AckCode;
|
|
1953
|
+
errSegment?: Hl7Segment;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1919
1956
|
/**
|
|
1920
1957
|
* The Hl7Context class represents the parsing context for an HL7 message.
|
|
1921
1958
|
*
|
|
@@ -2068,9 +2105,10 @@ export declare class Hl7Message {
|
|
|
2068
2105
|
toString(): string;
|
|
2069
2106
|
/**
|
|
2070
2107
|
* Returns an HL7 "ACK" (acknowledgement) message for this message.
|
|
2108
|
+
* @param options - The optional options to configure the "ACK" message.
|
|
2071
2109
|
* @returns The HL7 "ACK" message.
|
|
2072
2110
|
*/
|
|
2073
|
-
buildAck(): Hl7Message;
|
|
2111
|
+
buildAck(options?: Hl7AckOptions): Hl7Message;
|
|
2074
2112
|
private buildAckMessageType;
|
|
2075
2113
|
/**
|
|
2076
2114
|
* Parses an HL7 message string into an Hl7Message object.
|
|
@@ -4839,6 +4877,8 @@ export declare interface MedplumInfraConfig {
|
|
|
4839
4877
|
clamscanLoggingPrefix: string;
|
|
4840
4878
|
skipDns?: boolean;
|
|
4841
4879
|
hostedZoneName?: string;
|
|
4880
|
+
wafLogGroupName?: string;
|
|
4881
|
+
wafLogGroupCreate?: boolean;
|
|
4842
4882
|
additionalContainers?: {
|
|
4843
4883
|
name: string;
|
|
4844
4884
|
image: string;
|
|
@@ -4973,6 +5013,8 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
4973
5013
|
clamscanLoggingPrefix: ValueOrExternalSecret<string>;
|
|
4974
5014
|
skipDns?: ValueOrExternalSecret<boolean>;
|
|
4975
5015
|
hostedZoneName?: ValueOrExternalSecret<string>;
|
|
5016
|
+
wafLogGroupName?: ValueOrExternalSecret<string>;
|
|
5017
|
+
wafLogGroupCreate?: ValueOrExternalSecret<boolean>;
|
|
4976
5018
|
additionalContainers?: {
|
|
4977
5019
|
name: ValueOrExternalSecret<string>;
|
|
4978
5020
|
image: ValueOrExternalSecret<string>;
|