@oystehr/sdk 4.0.0-alpha.4 → 4.0.0-alpha.6
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.map +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/fhir-ext.d.ts +1 -1
- package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +8 -0
- package/dist/cjs/resources/types/ZambdaFunction.d.ts +8 -0
- package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +8 -0
- package/dist/cjs/resources/types/fhir.d.ts +12 -12
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/fhir-ext.d.ts +1 -1
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
- package/dist/esm/resources/types/ZambdaCreateParams.d.ts +8 -0
- package/dist/esm/resources/types/ZambdaFunction.d.ts +8 -0
- package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +8 -0
- package/dist/esm/resources/types/fhir.d.ts +12 -12
- package/package.json +1 -1
- package/src/resources/classes/fhir-ext.ts +1 -1
- package/src/resources/types/ZambdaCreateParams.ts +8 -0
- package/src/resources/types/ZambdaFunction.ts +8 -0
- package/src/resources/types/ZambdaUpdateParams.ts +8 -0
- package/src/resources/types/fhir.ts +12 -12
- package/dist/esm/node_modules/tslib/package.json +0 -1
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -40
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -25,7 +25,7 @@ export interface OystehrFHIRUpdateClientRequest extends OystehrClientRequest {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare function search<T extends FhirResource>(this: SDKResource, params: FhirSearchParams, request?: OystehrClientRequest): Promise<FhirFetcherResponse<Bundle<T>>>;
|
|
27
27
|
export declare function create<T extends FhirResource>(this: SDKResource, params: FhirCreateParams<T>, request?: OystehrClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
28
|
-
export declare function get<T extends FhirResource>(this: SDKResource, { resourceType, id }: FhirGetParams
|
|
28
|
+
export declare function get<T extends FhirResource>(this: SDKResource, { resourceType, id }: FhirGetParams<T>, request?: OystehrClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
29
29
|
export declare function update<T extends FhirResource>(this: SDKResource, params: FhirUpdateParams<T>, request?: OystehrFHIRUpdateClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
30
30
|
export declare function patch<T extends FhirResource>(this: SDKResource, { resourceType, id, operations }: FhirPatchParams, request?: OystehrFHIRUpdateClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
31
31
|
declare function del<T extends FhirResource>(this: SDKResource, { resourceType, id }: FhirDeleteParams, request?: OystehrClientRequest): Promise<FhirFetcherResponse<T>>;
|
|
@@ -9,4 +9,12 @@ export interface ZambdaCreateParams {
|
|
|
9
9
|
*/
|
|
10
10
|
triggerMethod?: 'http_auth' | 'http_open' | 'subscription' | 'cron';
|
|
11
11
|
schedule?: ZambdaSchedule;
|
|
12
|
+
/**
|
|
13
|
+
* The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
|
|
14
|
+
*/
|
|
15
|
+
memorySize?: number;
|
|
16
|
+
/**
|
|
17
|
+
* The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 29 seconds due to API Gateway limitations.
|
|
18
|
+
*/
|
|
19
|
+
timeoutInSeconds?: number;
|
|
12
20
|
}
|
|
@@ -35,4 +35,12 @@ export interface ZambdaFunction {
|
|
|
35
35
|
*/
|
|
36
36
|
lastModified?: string;
|
|
37
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
|
|
40
|
+
*/
|
|
41
|
+
memorySize?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 29 seconds due to API Gateway limitations.
|
|
44
|
+
*/
|
|
45
|
+
timeoutInSeconds?: number;
|
|
38
46
|
}
|
|
@@ -13,5 +13,13 @@ export interface ZambdaUpdateParams {
|
|
|
13
13
|
* The runtime to use for the Zambda Function. This property is optional and defaults to "nodejs20.x".
|
|
14
14
|
*/
|
|
15
15
|
runtime?: 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
|
|
16
|
+
/**
|
|
17
|
+
* The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
|
|
18
|
+
*/
|
|
19
|
+
memorySize?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 29 seconds due to API Gateway limitations.
|
|
22
|
+
*/
|
|
23
|
+
timeoutInSeconds?: number;
|
|
16
24
|
id: string;
|
|
17
25
|
}
|
|
@@ -17,31 +17,31 @@ export type SearchParam = {
|
|
|
17
17
|
name: string;
|
|
18
18
|
value: string | number;
|
|
19
19
|
};
|
|
20
|
-
export interface FhirSearchParams {
|
|
21
|
-
resourceType:
|
|
20
|
+
export interface FhirSearchParams<T extends FhirResource> {
|
|
21
|
+
resourceType: T['resourceType'];
|
|
22
22
|
params?: SearchParam[];
|
|
23
23
|
}
|
|
24
|
-
export interface FhirGetParams {
|
|
25
|
-
resourceType:
|
|
24
|
+
export interface FhirGetParams<T extends FhirResource> {
|
|
25
|
+
resourceType: T['resourceType'];
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
28
|
export type FhirCreateParams<T extends FhirResource> = T;
|
|
29
29
|
export type FhirUpdateParams<T extends FhirResource> = T;
|
|
30
|
-
export interface FhirPatchParams {
|
|
31
|
-
resourceType:
|
|
30
|
+
export interface FhirPatchParams<T extends FhirResource> {
|
|
31
|
+
resourceType: T['resourceType'];
|
|
32
32
|
id: string;
|
|
33
33
|
operations: Operation[];
|
|
34
34
|
}
|
|
35
|
-
export interface FhirDeleteParams {
|
|
36
|
-
resourceType:
|
|
35
|
+
export interface FhirDeleteParams<T extends FhirResource> {
|
|
36
|
+
resourceType: T['resourceType'];
|
|
37
37
|
id: string;
|
|
38
38
|
}
|
|
39
|
-
export interface FhirHistorySearchParams {
|
|
40
|
-
resourceType:
|
|
39
|
+
export interface FhirHistorySearchParams<T extends FhirResource> {
|
|
40
|
+
resourceType: T['resourceType'];
|
|
41
41
|
id: string;
|
|
42
42
|
}
|
|
43
|
-
export interface FhirHistoryGetParams {
|
|
44
|
-
resourceType:
|
|
43
|
+
export interface FhirHistoryGetParams<T extends FhirResource> {
|
|
44
|
+
resourceType: T['resourceType'];
|
|
45
45
|
id: string;
|
|
46
46
|
versionId: string;
|
|
47
47
|
}
|