@health-samurai/aidbox-client 0.0.0-alpha.1 → 0.0.0-alpha.2
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/README.md +6 -13
- package/dist/src/auth-providers.d.ts +10 -0
- package/dist/src/auth-providers.d.ts.map +1 -0
- package/dist/src/auth-providers.js +313 -0
- package/dist/src/client.d.ts +30 -6
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +266 -73
- package/dist/src/fhir-http.d.ts +39 -15
- package/dist/src/fhir-http.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/types.d.ts +18 -8
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +47 -46
package/dist/src/fhir-http.d.ts
CHANGED
|
@@ -6,45 +6,69 @@ export type ReadOptions = {
|
|
|
6
6
|
export type VReadOptions = ReadOptions & {
|
|
7
7
|
vid: string;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
10
|
-
type
|
|
9
|
+
export type SearchTypeOptions = {
|
|
10
|
+
type: string;
|
|
11
|
+
query: Parameters;
|
|
12
|
+
};
|
|
13
|
+
export type SearchSystemOptions = {
|
|
11
14
|
query: Parameters;
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
};
|
|
16
|
+
export type SearchCompartmentOptions = {
|
|
17
|
+
query: Parameters;
|
|
18
|
+
type: string;
|
|
19
|
+
compartment: string;
|
|
20
|
+
compartmentId: string;
|
|
14
21
|
};
|
|
15
22
|
export type CreateOptions = {
|
|
16
23
|
type: string;
|
|
17
24
|
resource: object;
|
|
18
25
|
};
|
|
19
|
-
export type ConditionalCreateOptions =
|
|
26
|
+
export type ConditionalCreateOptions = {
|
|
27
|
+
type: string;
|
|
28
|
+
resource: object;
|
|
20
29
|
searchParameters: Parameters;
|
|
21
30
|
};
|
|
22
|
-
export type UpdateOptions =
|
|
31
|
+
export type UpdateOptions = {
|
|
32
|
+
type: string;
|
|
33
|
+
resource: object;
|
|
23
34
|
id: string;
|
|
24
35
|
};
|
|
25
|
-
export type ConditionalUpdateOptions =
|
|
36
|
+
export type ConditionalUpdateOptions = {
|
|
37
|
+
type: string;
|
|
38
|
+
resource: object;
|
|
26
39
|
searchParameters: Parameters;
|
|
27
40
|
};
|
|
28
|
-
export type PatchOptions =
|
|
41
|
+
export type PatchOptions = {
|
|
42
|
+
type: string;
|
|
43
|
+
id: string;
|
|
29
44
|
patch: object;
|
|
30
45
|
};
|
|
31
|
-
export type ConditionalPatchOptions =
|
|
46
|
+
export type ConditionalPatchOptions = {
|
|
47
|
+
type: string;
|
|
32
48
|
searchParameters: Parameters;
|
|
49
|
+
patch: object;
|
|
33
50
|
};
|
|
34
|
-
export type DeleteOptions =
|
|
51
|
+
export type DeleteOptions = {
|
|
52
|
+
type: string;
|
|
35
53
|
id: string;
|
|
36
54
|
};
|
|
37
|
-
export type ConditionalDeleteOptions =
|
|
55
|
+
export type ConditionalDeleteOptions = {
|
|
38
56
|
type?: string;
|
|
39
57
|
searchParameters: Parameters;
|
|
40
58
|
};
|
|
41
|
-
export type DeleteHistoryVersionOptions =
|
|
59
|
+
export type DeleteHistoryVersionOptions = {
|
|
60
|
+
type: string;
|
|
61
|
+
id: string;
|
|
42
62
|
vid: string;
|
|
43
63
|
};
|
|
44
|
-
export type
|
|
45
|
-
type
|
|
46
|
-
id
|
|
64
|
+
export type HistoryInstanceOptions = {
|
|
65
|
+
type: string;
|
|
66
|
+
id: string;
|
|
67
|
+
};
|
|
68
|
+
export type HistoryTypeOptions = {
|
|
69
|
+
type: string;
|
|
47
70
|
};
|
|
71
|
+
export type HistorySystemOptions = Record<string, never>;
|
|
48
72
|
export type OperationOptions = {
|
|
49
73
|
type: string;
|
|
50
74
|
id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhir-http.d.ts","sourceRoot":"","sources":["../../src/fhir-http.ts"],"names":[],"mappings":"AAAA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AC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;AAElE,MAAM,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,aAAa,CAAC;CAC3C,CAAC;AAEF,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG;QAChB,IAAI,EAAE,OAAO,CAAC;KACd,CAAC;CACF,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG;QAChB,IAAI,EAAE,aAAa,CAAC;KACpB,CAAC;CACF,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,mBAAmB,+BAA+B,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,mBAAmB,UAAU,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,mBAAmB,SAAS,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,mBAAmB,+BAA+B,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,mBAAmB,UAAU,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,mBAAmB,SAAS,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
package/dist/src/index.js
CHANGED
package/dist/src/types.d.ts
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import type { BatchOptions, CapabilitiesOptions, ConditionalCreateOptions, ConditionalDeleteOptions, ConditionalPatchOptions, ConditionalUpdateOptions, CreateOptions, DeleteHistoryVersionOptions, DeleteOptions,
|
|
1
|
+
import type { BatchOptions, CapabilitiesOptions, ConditionalCreateOptions, ConditionalDeleteOptions, ConditionalPatchOptions, ConditionalUpdateOptions, CreateOptions, DeleteHistoryVersionOptions, DeleteOptions, HistoryInstanceOptions, HistorySystemOptions, HistoryTypeOptions, OperationOptions, PatchOptions, ReadOptions, SearchCompartmentOptions, SearchSystemOptions, SearchTypeOptions, TransactionOptions, UpdateOptions, ValidateOptions, VReadOptions } from "./fhir-http";
|
|
2
2
|
import type { Bundle, OperationOutcome, Resource } from "./fhir-types/hl7-fhir-r4-core";
|
|
3
3
|
import type { Result } from "./result";
|
|
4
4
|
export type Parameters = [string, string][];
|
|
5
5
|
export type Headers = Record<string, string>;
|
|
6
|
+
export type AuthProvider = {
|
|
7
|
+
fetch: typeof fetch;
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
revokeSession: () => void;
|
|
10
|
+
establishSession: () => void;
|
|
11
|
+
};
|
|
6
12
|
export type ClientParams = {
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
authProvider: AuthProvider;
|
|
9
15
|
};
|
|
10
16
|
export type User = Resource & {
|
|
11
17
|
email?: string;
|
|
12
18
|
};
|
|
13
19
|
export type RequestParams = {
|
|
14
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
20
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
|
15
21
|
url: string;
|
|
16
22
|
headers?: Headers;
|
|
17
23
|
params?: Parameters;
|
|
@@ -37,8 +43,8 @@ export declare class ErrorResponse extends Error {
|
|
|
37
43
|
responseWithMeta: ResponseWithMeta;
|
|
38
44
|
constructor(msg: string, cause: ResponseWithMeta);
|
|
39
45
|
}
|
|
40
|
-
export type
|
|
41
|
-
|
|
46
|
+
export type AidboxClient<TBundle = Bundle, TOperationOutcome = OperationOutcome, TUser = User> = {
|
|
47
|
+
getBaseUrl: () => string;
|
|
42
48
|
/**
|
|
43
49
|
* Untyped request.
|
|
44
50
|
*
|
|
@@ -79,7 +85,9 @@ export type FhirServerClient<TBundle = Bundle, TOperationOutcome = OperationOutc
|
|
|
79
85
|
fetchUserInfo: () => Promise<TUser>;
|
|
80
86
|
read: <T>(opts: ReadOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
81
87
|
vread: <T>(opts: VReadOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
82
|
-
|
|
88
|
+
searchType: (opts: SearchTypeOptions) => Promise<Result<ResourceResponse<TBundle>, ResourceResponse<TOperationOutcome>>>;
|
|
89
|
+
searchSystem: (opts: SearchSystemOptions) => Promise<Result<ResourceResponse<TBundle>, ResourceResponse<TOperationOutcome>>>;
|
|
90
|
+
searchCompartment: (opts: SearchCompartmentOptions) => Promise<Result<ResourceResponse<TBundle>, ResourceResponse<TOperationOutcome>>>;
|
|
83
91
|
create: <T>(opts: CreateOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
84
92
|
conditionalCreate: <T>(opts: ConditionalCreateOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
85
93
|
update: <T>(opts: UpdateOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
@@ -90,7 +98,9 @@ export type FhirServerClient<TBundle = Bundle, TOperationOutcome = OperationOutc
|
|
|
90
98
|
deleteHistory: <T>(opts: DeleteOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
91
99
|
deleteHistoryVersion: <T>(opts: DeleteHistoryVersionOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
92
100
|
conditionalDelete: <T>(opts: ConditionalDeleteOptions) => Promise<Result<ResourceResponse<T>, ResourceResponse<TOperationOutcome>>>;
|
|
93
|
-
|
|
101
|
+
historyInstance: (opts: HistoryInstanceOptions) => Promise<Result<ResourceResponse<TBundle>, ResourceResponse<TOperationOutcome>>>;
|
|
102
|
+
historyType: (opts: HistoryTypeOptions) => Promise<Result<ResourceResponse<TBundle>, ResourceResponse<TOperationOutcome>>>;
|
|
103
|
+
historySystem: (opts: HistorySystemOptions) => Promise<Result<ResourceResponse<TBundle>, ResourceResponse<TOperationOutcome>>>;
|
|
94
104
|
capabilities: (opts: CapabilitiesOptions) => Promise<Result<ResourceResponse<unknown>, ResourceResponse<TOperationOutcome>>>;
|
|
95
105
|
batch: (opts: BatchOptions) => Promise<Result<ResourceResponse<unknown>, ResourceResponse<TOperationOutcome>>>;
|
|
96
106
|
transaction: (opts: TransactionOptions) => Promise<Result<ResourceResponse<unknown>, ResourceResponse<TOperationOutcome>>>;
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,aAAa,EACb,2BAA2B,EAC3B,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,YAAY,EACZ,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,aAAa,EACb,2BAA2B,EAC3B,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,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26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
2
|
+
"name": "@health-samurai/aidbox-client",
|
|
3
|
+
"version": "0.0.0-alpha.2",
|
|
4
|
+
"description": "A client library for communicating with Aidbox",
|
|
5
|
+
"author": "Health Samurai",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/src/index.js",
|
|
8
|
+
"types": "./dist/src/index.types.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/src/index.js"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"yaml": "^2.8.1"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/HealthSamurai/aidbox-ts-sdk"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@atomic-ehr/codegen": "^0.0.3",
|
|
27
|
+
"@types/node": "^24.2.0",
|
|
28
|
+
"tsx": "^4.20.4",
|
|
29
|
+
"typedoc": "^0.28.14",
|
|
30
|
+
"typescript": "~5.8.3",
|
|
31
|
+
"vitest": "^3.2.4"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "rm -rf dist && mkdir -p dist && swc src -d dist -D && tsc -b --force && echo success",
|
|
35
|
+
"format": "biome format",
|
|
36
|
+
"format:check": "biome format",
|
|
37
|
+
"format:fix": "biome format --write",
|
|
38
|
+
"lint": "biome check",
|
|
39
|
+
"lint:check": "biome check",
|
|
40
|
+
"lint:fix": "biome check --write",
|
|
41
|
+
"tsc:check": "tsc -b --noEmit",
|
|
42
|
+
"typecheck": "tsc -b --noEmit",
|
|
43
|
+
"generate-types": "tsx scripts/generate-types.ts",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:watch": "vitest watch",
|
|
46
|
+
"doc": "typedoc"
|
|
47
|
+
}
|
|
48
|
+
}
|