gdc-sdk-node-ts 0.2.1 → 0.3.0
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 +329 -145
- package/dist/gdc-session-bridge.d.ts +1 -1
- package/dist/gdc-session-bridge.js +1 -1
- package/dist/identity-bootstrap.d.ts +5 -1
- package/dist/identity-bootstrap.js +7 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle-examples.d.ts +7 -0
- package/dist/lifecycle-examples.js +8 -0
- package/dist/node-runtime-client.d.ts +21 -0
- package/dist/node-runtime-client.js +22 -1
- package/dist/orchestration/client-port.d.ts +2 -2
- package/dist/orchestration/individual-member-sdk.d.ts +1 -1
- package/dist/poll-options.d.ts +1 -1
- package/dist/poll-options.js +1 -1
- package/dist/resource-operations.d.ts +1 -1
- package/dist/runtime-contracts.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,176 +1,360 @@
|
|
|
1
1
|
# gdc-sdk-node-ts
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
- individual
|
|
77
|
-
-
|
|
3
|
+
Node runtime package for consuming the shared GDC SDK contracts against real
|
|
4
|
+
gateway backends.
|
|
5
|
+
|
|
6
|
+
Use this package when your backend needs to:
|
|
7
|
+
|
|
8
|
+
- call GW APIs
|
|
9
|
+
- submit/poll async operations
|
|
10
|
+
- orchestrate onboarding, consent, communication, and search flows
|
|
11
|
+
- consume the shared relationship invitation/acceptance contracts from
|
|
12
|
+
`gdc-sdk-core-ts`
|
|
13
|
+
|
|
14
|
+
This package is for runtime execution. It is not the place where the canonical
|
|
15
|
+
business contract is defined.
|
|
16
|
+
|
|
17
|
+
## Start Here
|
|
18
|
+
|
|
19
|
+
If you are integrating this package for the first time, open these in order:
|
|
20
|
+
|
|
21
|
+
1. [docs/SDK_END_TO_END_101.md](./docs/SDK_END_TO_END_101.md)
|
|
22
|
+
Ordered onboarding guide with end-to-end journeys, copy/paste snippets, and
|
|
23
|
+
the recommended reading path for new backend integrators.
|
|
24
|
+
2. [docs/SDK_INTEGRATION_101.md](./docs/SDK_INTEGRATION_101.md)
|
|
25
|
+
Real backend setup, imports, `initializeCommunicationIdentity(...)`,
|
|
26
|
+
`new NodeHttpClient(...)`, route context, facade selection, and live method
|
|
27
|
+
usage.
|
|
28
|
+
3. [gdc-sdk-core-ts/docs/SDK_FLOWS_101.md](https://github.com/Global-DataCare/gdc-sdk-core-ts/blob/main/docs/SDK_FLOWS_101.md)
|
|
29
|
+
Actor split and business-flow map across organization, individual,
|
|
30
|
+
permissions, invitation, import, and SMART flows.
|
|
31
|
+
4. [gdc-common-utils-ts/src/examples/](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/tree/main/src/examples)
|
|
32
|
+
Shared payload values used by the docs and tests.
|
|
33
|
+
5. [gdc-common-utils-ts/docs/LIFECYCLE_101.md](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/docs/LIFECYCLE_101.md)
|
|
34
|
+
Canonical `enable/disable/delete` semantics and copy/paste placeholders.
|
|
35
|
+
|
|
36
|
+
If you need the shortest path:
|
|
37
|
+
|
|
38
|
+
- main onboarding guide:
|
|
39
|
+
[docs/SDK_END_TO_END_101.md](./docs/SDK_END_TO_END_101.md)
|
|
40
|
+
- GW CORE app identity:
|
|
41
|
+
`appId` mandatory, `appVersion` optional with default `v1.0`
|
|
42
|
+
- backend technical identity:
|
|
43
|
+
[`initializeCommunicationIdentity(...)`](./docs/SDK_INTEGRATION_101.md)
|
|
44
|
+
- runtime client:
|
|
45
|
+
[`NodeHttpClient`](src/node-runtime-client.ts)
|
|
46
|
+
- step-by-step runtime usage:
|
|
47
|
+
[docs/SDK_INTEGRATION_101.md](./docs/SDK_INTEGRATION_101.md)
|
|
48
|
+
|
|
49
|
+
## Executable Usage Examples
|
|
50
|
+
|
|
51
|
+
Open these tests when you want to see exact method calls and exact inputs:
|
|
52
|
+
|
|
53
|
+
- [tests/host-onboarding.test.mjs](tests/host-onboarding.test.mjs)
|
|
54
|
+
Organization activation and order confirmation.
|
|
55
|
+
- [tests/individual-start.test.mjs](tests/individual-start.test.mjs)
|
|
56
|
+
Individual organization start flow.
|
|
57
|
+
- [tests/individual-onboarding.test.mjs](tests/individual-onboarding.test.mjs)
|
|
58
|
+
Individual order/offer confirmation flow.
|
|
59
|
+
- [tests/device-activation.test.mjs](tests/device-activation.test.mjs)
|
|
60
|
+
Employee activation code and activation request flows.
|
|
61
|
+
- [tests/resource-operations.test.mjs](tests/resource-operations.test.mjs)
|
|
62
|
+
Related person upsert, communication ingestion, search, and access grants.
|
|
63
|
+
- [tests/smart-token.test.mjs](tests/smart-token.test.mjs)
|
|
64
|
+
SMART token request flow.
|
|
65
|
+
- [tests/live-gw-node-runtime.e2e.test.mjs](tests/live-gw-node-runtime.e2e.test.mjs)
|
|
66
|
+
End-to-end runtime wiring against a real GW environment.
|
|
67
|
+
|
|
68
|
+
## Actor Split And Runtime Scope
|
|
69
|
+
|
|
70
|
+
This package must be understandable from the same actor split used by the
|
|
71
|
+
shared contracts:
|
|
72
|
+
|
|
73
|
+
- organization controller
|
|
74
|
+
- organization employee / professional member
|
|
75
|
+
- individual controller
|
|
76
|
+
- individual member / self
|
|
77
|
+
- related person
|
|
78
|
+
- professional with consented access
|
|
79
|
+
|
|
80
|
+
The Node runtime layer is where those shared flows are executed against GW.
|
|
81
|
+
That includes organization onboarding, employee creation, individual bootstrap,
|
|
82
|
+
permission grants, `RelatedPerson` upserts, SMART token requests, and clinical
|
|
83
|
+
data ingestion/search.
|
|
84
|
+
|
|
85
|
+
## Flow Families
|
|
86
|
+
|
|
87
|
+
- organization activation and order/offer confirmation
|
|
88
|
+
- employee creation and employee activation
|
|
89
|
+
- individual organization start and order confirmation
|
|
90
|
+
- related person upsert
|
|
91
|
+
- professional access grant
|
|
92
|
+
- invitation / OTP / relationship PIN runtime wiring
|
|
93
|
+
- permission-request `Communication`
|
|
94
|
+
- communication ingestion and search
|
|
95
|
+
- SMART token retrieval
|
|
96
|
+
|
|
97
|
+
## Main Flows
|
|
98
|
+
|
|
99
|
+
### 1. Controller invites a related person or professional
|
|
100
|
+
|
|
101
|
+
Typical backend sequence:
|
|
102
|
+
|
|
103
|
+
1. build shared invitation payload with `gdc-sdk-core-ts`
|
|
104
|
+
2. send it through the node runtime client or your backend adapter
|
|
105
|
+
3. persist or return the invitation state to portal/app
|
|
106
|
+
|
|
107
|
+
What matters here:
|
|
108
|
+
|
|
109
|
+
- this package executes the runtime call
|
|
110
|
+
- `gdc-sdk-core-ts` defines the payload shape
|
|
111
|
+
- callers should not hardcode route families in app code
|
|
112
|
+
|
|
113
|
+
### 2. Invitee accepts the relationship
|
|
114
|
+
|
|
115
|
+
Typical backend sequence:
|
|
116
|
+
|
|
117
|
+
1. start OTP challenge
|
|
118
|
+
2. confirm OTP
|
|
119
|
+
3. set relationship PIN if required
|
|
120
|
+
4. activate the relationship channel
|
|
121
|
+
|
|
122
|
+
Shared contract builders come from `gdc-sdk-core-ts`; this package is where a
|
|
123
|
+
Node backend wires them to real runtime operations.
|
|
124
|
+
|
|
125
|
+
### 3. Consent-aware communication and search
|
|
126
|
+
|
|
127
|
+
Use this package when your backend needs to:
|
|
128
|
+
|
|
129
|
+
- ingest `Communication`
|
|
130
|
+
- search clinical bundles
|
|
131
|
+
- request SMART tokens
|
|
132
|
+
- grant access
|
|
133
|
+
- create or update `RelatedPerson`
|
|
134
|
+
|
|
135
|
+
## What This Package Owns
|
|
136
|
+
|
|
137
|
+
- Node runtime client
|
|
138
|
+
- submit/poll orchestration
|
|
139
|
+
- actor-scoped node sessions
|
|
140
|
+
- backend-facing orchestration helpers
|
|
141
|
+
|
|
142
|
+
## What This Package Does Not Own
|
|
143
|
+
|
|
144
|
+
- the canonical invitation/OTP/PIN contract
|
|
145
|
+
- UNID-specific reminder runtime semantics
|
|
146
|
+
- frontend session UX
|
|
147
|
+
|
|
148
|
+
Those belong to:
|
|
149
|
+
|
|
150
|
+
- `gdc-sdk-core-ts` for shared contracts
|
|
151
|
+
- runtime extensions such as UNID/UHC for product-specific behavior
|
|
152
|
+
- `gdc-sdk-front-ts` for frontend-facing consumption
|
|
153
|
+
|
|
154
|
+
## Minimal Examples
|
|
155
|
+
|
|
156
|
+
### Use shared invitation contract from Node
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
import {
|
|
160
|
+
createRelationshipChannelInvitationInput,
|
|
161
|
+
RelationshipAccessActorKinds,
|
|
162
|
+
RelationshipEnrollmentChannels,
|
|
163
|
+
type RelationshipChannelInvitationInput,
|
|
164
|
+
} from 'gdc-sdk-core-ts';
|
|
165
|
+
import {
|
|
166
|
+
buildIndividualDidWeb,
|
|
167
|
+
HealthcareActorRoles,
|
|
168
|
+
HealthcareConsentPurposes,
|
|
169
|
+
} from 'gdc-common-utils-ts';
|
|
170
|
+
|
|
171
|
+
const tenantId = 'acme-id';
|
|
172
|
+
const jurisdiction = 'ES';
|
|
173
|
+
const sector = 'health-care';
|
|
174
|
+
const providerOrganizationDid = subjectProfile.organizationDid;
|
|
175
|
+
const subjectLocalId = subjectProfile.subjectId;
|
|
176
|
+
const subjectId = buildIndividualDidWeb({
|
|
177
|
+
organizationDidWeb: providerOrganizationDid,
|
|
178
|
+
subjectId: subjectLocalId,
|
|
179
|
+
});
|
|
180
|
+
const professionalEmail = invitedProfessional.email;
|
|
181
|
+
|
|
182
|
+
const invitationInput: RelationshipChannelInvitationInput = {
|
|
183
|
+
tenantId,
|
|
184
|
+
jurisdiction,
|
|
185
|
+
sector,
|
|
186
|
+
subjectId,
|
|
187
|
+
subjectKind: 'person',
|
|
188
|
+
actorKind: RelationshipAccessActorKinds.Professional,
|
|
189
|
+
actorIdentifier: professionalEmail,
|
|
190
|
+
actorRole: HealthcareActorRoles.Physician,
|
|
191
|
+
deliveryChannel: RelationshipEnrollmentChannels.Email,
|
|
192
|
+
deliveryTarget: professionalEmail,
|
|
193
|
+
purpose: HealthcareConsentPurposes.Treatment,
|
|
194
|
+
relationshipLabel: 'primary-physician',
|
|
195
|
+
phonePinOptional: false,
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
const invitation = createRelationshipChannelInvitationInput(invitationInput);
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
The backend should obtain those variables from:
|
|
202
|
+
|
|
203
|
+
- tenant route selection
|
|
204
|
+
- target subject identifier
|
|
205
|
+
- invited actor identity
|
|
206
|
+
- selected enrollment channel
|
|
207
|
+
- intended purpose/relationship label
|
|
208
|
+
|
|
209
|
+
### Request SMART token and search bundle
|
|
210
|
+
|
|
211
|
+
```ts
|
|
212
|
+
import { NodeHttpClient } from 'gdc-sdk-node-ts';
|
|
213
|
+
import {
|
|
214
|
+
EXAMPLE_LATEST_IPS_SEARCH_INPUT,
|
|
215
|
+
} from 'gdc-common-utils-ts/examples/individual-controller';
|
|
216
|
+
import { HealthcareBasicSections } from 'gdc-common-utils-ts/constants/healthcare';
|
|
217
|
+
import { buildSmartCompositionReadScope } from 'gdc-common-utils-ts/utils/smart-scope';
|
|
218
|
+
|
|
219
|
+
const client = new NodeHttpClient({ baseUrl: process.env.BASE_URL! });
|
|
220
|
+
|
|
221
|
+
const subjectDid = EXAMPLE_LATEST_IPS_SEARCH_INPUT.subject;
|
|
222
|
+
|
|
223
|
+
const token = await client.requestSmartToken({
|
|
224
|
+
ctx,
|
|
225
|
+
actorDid: 'did:web:doctor.example.org:employee:001',
|
|
226
|
+
subjectDid,
|
|
227
|
+
scopes: [
|
|
228
|
+
buildSmartCompositionReadScope({
|
|
229
|
+
subjectDid,
|
|
230
|
+
sections: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
231
|
+
}),
|
|
232
|
+
],
|
|
233
|
+
idToken: '...',
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
const result = await client.searchClinicalBundle(ctx, {
|
|
237
|
+
subject: subjectDid,
|
|
238
|
+
});
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Teaching rule:
|
|
242
|
+
|
|
243
|
+
- start with the composition read scope when the actor only needs subject-scoped read access
|
|
244
|
+
- add `SmartGatewayScopesFhirR4.ConsentCruds` only if the backend also needs consent management operations
|
|
245
|
+
|
|
246
|
+
## Shared Contract Sources
|
|
247
|
+
|
|
248
|
+
- [gdc-sdk-core-ts/README.md](https://github.com/Global-DataCare/gdc-sdk-core-ts/blob/main/README.md)
|
|
249
|
+
- [gdc-common-utils-ts/docs/CONSENT_ACCESS_101.md](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/docs/CONSENT_ACCESS_101.md)
|
|
250
|
+
|
|
251
|
+
Reusable payload examples:
|
|
252
|
+
|
|
253
|
+
- [gdc-common-utils-ts/src/examples/organization-controller.ts](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/src/examples/organization-controller.ts)
|
|
254
|
+
- [gdc-common-utils-ts/src/examples/individual-controller.ts](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/src/examples/individual-controller.ts)
|
|
255
|
+
- [gdc-common-utils-ts/src/examples/professional.ts](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/src/examples/professional.ts)
|
|
256
|
+
- [gdc-common-utils-ts/src/examples/shared.ts](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/src/examples/shared.ts)
|
|
257
|
+
- [gdc-common-utils-ts/src/examples/lifecycle.ts](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/src/examples/lifecycle.ts)
|
|
258
|
+
- [gdc-common-utils-ts/src/examples/api-flow-examples.ts](https://gitlab.dev.accuro.es/idi/espacio-de-datos/global-datacare/gdc-common-utils-ts/-/blob/main/src/examples/api-flow-examples.ts)
|
|
78
259
|
|
|
79
260
|
## API Index
|
|
80
261
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
- [`
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
- [`
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
- [`
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
- [`
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
- [`
|
|
120
|
-
-
|
|
121
|
-
- [`
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
- [`
|
|
125
|
-
-
|
|
126
|
-
- [`
|
|
127
|
-
-
|
|
262
|
+
## Full Public Surface
|
|
263
|
+
|
|
264
|
+
This package exports the full `gdc-sdk-core-ts` surface plus the Node runtime
|
|
265
|
+
modules below.
|
|
266
|
+
|
|
267
|
+
- [`src/runtime-contracts.ts`](src/runtime-contracts.ts)
|
|
268
|
+
- types/constants: `LegacyNodeSourcePackage`, `NodeRuntimeMode`, `NodeInteropMode`, `TenantContext`, `NodeOperatorContext`, `NodeFetchLike`, `NodeRuntimeConfig`, `NodePackageStatus`, `GDC_SDK_NODE_STATUS`
|
|
269
|
+
- [`src/identity-bootstrap.ts`](src/identity-bootstrap.ts)
|
|
270
|
+
- function: `initializeCommunicationIdentity(...)`
|
|
271
|
+
- [`src/async-polling.ts`](src/async-polling.ts)
|
|
272
|
+
- types: `AcceptedPollResponse`
|
|
273
|
+
- function: `pollUntilCompleteWithMethod(...)`
|
|
274
|
+
- [`src/poll-options.ts`](src/poll-options.ts)
|
|
275
|
+
- re-export: `resolvePollOptionsFromSeconds(...)`
|
|
276
|
+
- [`src/host-onboarding.ts`](src/host-onboarding.ts)
|
|
277
|
+
- types: `HostRouteContext`, `LegalOrganizationOrderInput`
|
|
278
|
+
- function: `confirmLegalOrganizationOrderWithDeps(...)`
|
|
279
|
+
- [`src/individual-start.ts`](src/individual-start.ts)
|
|
280
|
+
- types: `IndividualOrganizationBootstrapInput`, `OfferPreview`, `IndividualOrganizationStartResult`
|
|
281
|
+
- function: `startIndividualOrganizationWithDeps(...)`
|
|
282
|
+
- [`src/individual-onboarding.ts`](src/individual-onboarding.ts)
|
|
283
|
+
- types: `RouteContext`, `IndividualOrganizationConfirmOrderInput`
|
|
284
|
+
- function: `confirmIndividualOrganizationOrderWithDeps(...)`
|
|
285
|
+
- [`src/device-activation.ts`](src/device-activation.ts)
|
|
286
|
+
- types: `EmployeeDeviceActivationInput`, `EmployeeDeviceActivationRequestInput`, `EmployeeDeviceActivationResult`
|
|
287
|
+
- functions: `activateEmployeeDeviceWithActivationCodeWithDeps(...)`, `activateEmployeeDeviceWithActivationRequestWithDeps(...)`
|
|
288
|
+
- [`src/smart-token.ts`](src/smart-token.ts)
|
|
289
|
+
- types: `SmartTokenRequestInput`, `SmartTokenExchangeResult`
|
|
290
|
+
- function: `requestSmartTokenWithDeps(...)`
|
|
291
|
+
- [`src/resource-operations.ts`](src/resource-operations.ts)
|
|
292
|
+
- types: `OrganizationEmployeeCreationInput`, `IpsOrFhirImportInput`, `RelatedPersonUpsertInput`, `CommunicationIngestionInput`, `ClinicalDateRange`, `ClinicalBundleSearchInput`, `ConsentActorTargetInput`, `GrantProfessionalAccessInput`, `GrantProfessionalAccessResult`, `DigitalTwinGenerationInput`
|
|
293
|
+
- functions: `createOrganizationEmployeeWithDeps(...)`, `importIpsOrFhirAndUpdateIndexWithDeps(...)`, `upsertRelatedPersonAndPollWithDeps(...)`, `ingestCommunicationAndUpdateIndexWithDeps(...)`, `searchClinicalBundleWithDeps(...)`, `searchLatestIpsWithDeps(...)`, `grantProfessionalAccessWithDeps(...)`, `generateDigitalTwinFromSubjectDataWithDeps(...)`
|
|
294
|
+
- [`src/session.ts`](src/session.ts)
|
|
295
|
+
- types: `NodeCapability`, `NodeActorSessionContext`, `ActorSessionContext`
|
|
296
|
+
- classes: `ActorSession`, `NodeActorSession`
|
|
297
|
+
- [`src/node-runtime-client.ts`](src/node-runtime-client.ts)
|
|
298
|
+
- types: `HttpRuntimeClientOptions`, `NodeHttpClientOptions`
|
|
299
|
+
- classes: `HttpRuntimeClient`, `NodeHttpClient`
|
|
300
|
+
- [`src/gdc-session-bridge.ts`](src/gdc-session-bridge.ts)
|
|
301
|
+
- functions: `createNodeActorSessionsFromFacades(...)`, `createNodeActorSessionFromFacade(...)`, `createNodeActorSessionsFromDescriptor(...)`, `createNodeActorSessionFromDescriptor(...)`, `createActorSessionsFromFacades(...)`, `createActorSessionFromFacade(...)`, `createActorSessionsFromDescriptor(...)`, `createActorSessionFromDescriptor(...)`
|
|
302
|
+
- [`src/orchestration/client-port.ts`](src/orchestration/client-port.ts)
|
|
303
|
+
- types: `RuntimeClient`, `NodeRuntimeClient`
|
|
304
|
+
- functions: `requireClientMethod(...)`, `submitAndPollWithMethods(...)`, `canClientSubmitAndPoll(...)`, `submitAndPollWithClient(...)`
|
|
305
|
+
- [`src/orchestration/host-onboarding-sdk.ts`](src/orchestration/host-onboarding-sdk.ts)
|
|
306
|
+
- class: `HostOnboardingSdk`
|
|
307
|
+
- [`src/orchestration/organization-controller-sdk.ts`](src/orchestration/organization-controller-sdk.ts)
|
|
308
|
+
- class: `OrganizationControllerSdk`
|
|
309
|
+
- [`src/orchestration/organization-employee-sdk.ts`](src/orchestration/organization-employee-sdk.ts)
|
|
310
|
+
- class: `OrganizationEmployeeSdk`
|
|
311
|
+
- [`src/orchestration/individual-controller-sdk.ts`](src/orchestration/individual-controller-sdk.ts)
|
|
312
|
+
- class: `IndividualControllerSdk`
|
|
313
|
+
- [`src/orchestration/individual-member-sdk.ts`](src/orchestration/individual-member-sdk.ts)
|
|
314
|
+
- class: `IndividualMemberSdk`
|
|
315
|
+
- [`src/orchestration/personal-sdk.ts`](src/orchestration/personal-sdk.ts)
|
|
316
|
+
- class: `PersonalSdk`
|
|
317
|
+
- [`src/orchestration/professional-sdk.ts`](src/orchestration/professional-sdk.ts)
|
|
318
|
+
- class: `ProfessionalSdk`
|
|
319
|
+
- [`src/legacy-compat.ts`](src/legacy-compat.ts)
|
|
320
|
+
- compatibility aliases for simplified helpers, runtime classes, and legacy names such as `GdcNodeActorSession` and `GdcNodeHttpClient`
|
|
321
|
+
|
|
322
|
+
### Re-exported shared helpers from `gdc-sdk-core-ts`
|
|
323
|
+
|
|
324
|
+
- consent access helpers
|
|
325
|
+
- relationship invitation/acceptance builders
|
|
326
|
+
- communication/document builders
|
|
327
|
+
- draft/outbox helpers
|
|
328
|
+
- document facade helpers
|
|
329
|
+
- vital-sign helpers
|
|
128
330
|
|
|
129
331
|
### Node runtime client
|
|
130
332
|
|
|
131
333
|
- [`NodeHttpClient`](src/node-runtime-client.ts)
|
|
132
|
-
- Main runtime class for submit/poll orchestration against the GW.
|
|
133
334
|
- [`NodeHttpClient.ingestCommunicationAndUpdateIndex(...)`](src/node-runtime-client.ts)
|
|
134
|
-
- Sends a `Communication` ingestion request and polls until indexed.
|
|
135
|
-
- Main params: `ctx`, `input.communicationPayload`, `input.pathFormatSegment?`, `input.autoConvertClaimsToFhirR4?`, `input.pollOptions?`.
|
|
136
335
|
- [`NodeHttpClient.submitCommunicationAndPoll(...)`](src/node-runtime-client.ts)
|
|
137
|
-
- Alias of `ingestCommunicationAndUpdateIndex(...)`.
|
|
138
336
|
- [`NodeHttpClient.searchClinicalBundle(...)`](src/node-runtime-client.ts)
|
|
139
|
-
- Executes clinical `Bundle/_search`.
|
|
140
|
-
- Main params: `ctx`, `input.subject`, `input.section?`, `input.date?`, `input.includedTypes?`, `input.code?`, `input.category?`, `input.author?`, `input.pollOptions?`.
|
|
141
337
|
- [`NodeHttpClient.searchLatestIps(...)`](src/node-runtime-client.ts)
|
|
142
|
-
- Shortcut for latest IPS-oriented document search.
|
|
143
338
|
- [`NodeHttpClient.grantProfessionalAccess(...)`](src/node-runtime-client.ts)
|
|
144
|
-
- Sends a consent-grant flow for a professional actor.
|
|
145
339
|
- [`NodeHttpClient.requestSmartToken(...)`](src/node-runtime-client.ts)
|
|
146
|
-
- Requests SMART/OpenID token material through the GW.
|
|
147
|
-
- Main params: `input.actorDid`, `input.subjectDid`, `input.scopes`, `input.idToken`, optional `input.vpToken`, and optional route compatibility fields when the client was not initialized with a default `ctx`.
|
|
148
340
|
|
|
149
341
|
### Runtime configuration
|
|
150
342
|
|
|
151
343
|
- [`NodeRuntimeConfig`](src/runtime-contracts.ts)
|
|
152
|
-
|
|
153
|
-
- [`initializeCommunicationIdentityFromSeed(...)`](src/identity-bootstrap.ts)
|
|
154
|
-
- Node SDK wrapper for the shared technical communication identity bootstrap helper from `gdc-common-utils-ts`.
|
|
344
|
+
- [`initializeCommunicationIdentity(...)`](src/identity-bootstrap.ts)
|
|
155
345
|
|
|
156
346
|
### Low-level orchestration helpers
|
|
157
347
|
|
|
158
348
|
- [`createOrganizationEmployeeWithDeps(...)`](src/resource-operations.ts)
|
|
159
|
-
- Creates an employee/person batch payload for CORE GW using canonical `org.schema.Person.*` claims.
|
|
160
349
|
- [`importIpsOrFhirAndUpdateIndexWithDeps(...)`](src/resource-operations.ts)
|
|
161
350
|
- [`upsertRelatedPersonAndPollWithDeps(...)`](src/resource-operations.ts)
|
|
162
|
-
- Creates or updates a `RelatedPerson` for family/caregiver roles outside employee/controller flows.
|
|
163
351
|
- [`ingestCommunicationAndUpdateIndexWithDeps(...)`](src/resource-operations.ts)
|
|
164
352
|
- [`searchClinicalBundleWithDeps(...)`](src/resource-operations.ts)
|
|
165
353
|
- [`searchLatestIpsWithDeps(...)`](src/resource-operations.ts)
|
|
166
354
|
- [`grantProfessionalAccessWithDeps(...)`](src/resource-operations.ts)
|
|
167
|
-
- Builds a consent grant where actor targeting should normally be passed as canonical `Consent.actor-identifier` input: a `did:web`, email, `tel:+...`, country code, or comma-separated list of those values.
|
|
168
|
-
|
|
169
|
-
These functions are runtime-oriented building blocks. For application-level document handling, prefer the re-exported communication/document helpers from `gdc-sdk-core-ts`.
|
|
170
355
|
|
|
171
|
-
|
|
356
|
+
## Documentation Rule
|
|
172
357
|
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
- If a public payload shape is used in tests or docs, keep its reusable example in the relevant module under [`../gdc-common-utils-ts/src/examples/`](../gdc-common-utils-ts/src/examples/) and link that specific flow file from the relevant markdown section.
|
|
358
|
+
- README explains backend-facing flows first.
|
|
359
|
+
- Shared contract shapes must be documented in `gdc-sdk-core-ts`, not duplicated here.
|
|
360
|
+
- Route details and GW-specific behavior belong in runtime docs and JSDoc, not in app-facing examples.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActorKind, type ActorFacadeDescriptor, type ActorSessionDescriptor } from '
|
|
1
|
+
import { type ActorKind, type ActorFacadeDescriptor, type ActorSessionDescriptor } from 'gdc-sdk-core-ts';
|
|
2
2
|
import { ActorSession, NodeActorSession } from './session.js';
|
|
3
3
|
import type { RuntimeClient } from './orchestration/client-port.js';
|
|
4
4
|
export declare function createNodeActorSessionsFromFacades(facades: ActorFacadeDescriptor[], client?: RuntimeClient): NodeActorSession[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
import { expandActorSessionDescriptorToFacades, filterCapabilitiesForActor, } from '
|
|
2
|
+
import { expandActorSessionDescriptorToFacades, filterCapabilitiesForActor, } from 'gdc-sdk-core-ts';
|
|
3
3
|
import { ActorSession, NodeActorSession } from './session.js';
|
|
4
4
|
const capabilityMap = {
|
|
5
5
|
'organization.create_employee': 'organization.create_employee',
|
|
@@ -26,5 +26,9 @@ import { type CommunicationIdentityBootstrapOptions, type CommunicationIdentityB
|
|
|
26
26
|
* @param options Stable seed/bootstrap options. See the shared
|
|
27
27
|
* `CommunicationIdentityBootstrapOptions` JSDoc in `gdc-common-utils-ts`.
|
|
28
28
|
*/
|
|
29
|
-
export declare function
|
|
29
|
+
export declare function initializeCommunicationIdentity(options: CommunicationIdentityBootstrapOptions): Promise<CommunicationIdentityBootstrapResult>;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use `initializeCommunicationIdentity(...)`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const initializeCommunicationIdentityFromSeed: typeof initializeCommunicationIdentity;
|
|
30
34
|
export type { CommunicationIdentityBootstrapOptions as NodeSdkCommunicationIdentityBootstrapOptions, CommunicationIdentityBootstrapResult as NodeSdkCommunicationIdentityBootstrapResult, } from 'gdc-common-utils-ts/utils/communication-identity';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
import { initializeCommunicationIdentityFromSeed as
|
|
2
|
+
import { initializeCommunicationIdentityFromSeed as initializeSharedCommunicationIdentity, } from 'gdc-common-utils-ts/utils/communication-identity';
|
|
3
3
|
/**
|
|
4
4
|
* Node SDK convenience wrapper for the shared technical communication identity
|
|
5
5
|
* bootstrap helper defined in `gdc-common-utils-ts`.
|
|
@@ -27,6 +27,10 @@ import { initializeCommunicationIdentityFromSeed as initializeSharedCommunicatio
|
|
|
27
27
|
* @param options Stable seed/bootstrap options. See the shared
|
|
28
28
|
* `CommunicationIdentityBootstrapOptions` JSDoc in `gdc-common-utils-ts`.
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
31
|
-
return
|
|
30
|
+
export async function initializeCommunicationIdentity(options) {
|
|
31
|
+
return initializeSharedCommunicationIdentity(options);
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `initializeCommunicationIdentity(...)`.
|
|
35
|
+
*/
|
|
36
|
+
export const initializeCommunicationIdentityFromSeed = initializeCommunicationIdentity;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
export * from '
|
|
2
|
+
export * from 'gdc-sdk-core-ts';
|
|
3
3
|
export * from './runtime-contracts.js';
|
|
4
4
|
export * from './identity-bootstrap.js';
|
|
5
5
|
export * from './async-polling.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export canonical lifecycle examples for Node runtime consumers.
|
|
3
|
+
*
|
|
4
|
+
* The Node SDK must not hardcode its own copies of lifecycle payload examples.
|
|
5
|
+
* Import and reuse the shared `gdc-common-utils-ts` source instead.
|
|
6
|
+
*/
|
|
7
|
+
export * from 'gdc-common-utils-ts/examples/lifecycle';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Re-export canonical lifecycle examples for Node runtime consumers.
|
|
4
|
+
*
|
|
5
|
+
* The Node SDK must not hardcode its own copies of lifecycle payload examples.
|
|
6
|
+
* Import and reuse the shared `gdc-common-utils-ts` source instead.
|
|
7
|
+
*/
|
|
8
|
+
export * from 'gdc-common-utils-ts/examples/lifecycle';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ControllerBindingInput } from 'gdc-common-utils-ts/models';
|
|
2
|
+
import type { AppInfo } from 'gdc-sdk-core-ts';
|
|
3
|
+
import { type ResolvedAppInfo } from 'gdc-sdk-core-ts';
|
|
2
4
|
import { type HostRouteContext } from './host-onboarding.js';
|
|
3
5
|
import { type IndividualOrganizationConfirmOrderInput, type RouteContext } from './individual-onboarding.js';
|
|
4
6
|
import { type SmartTokenRequestInput } from './smart-token.js';
|
|
@@ -10,6 +12,14 @@ import type { NodeRuntimeClient, PollOptions, PollResult, SubmitAndPollResult, S
|
|
|
10
12
|
export type HttpRuntimeClientOptions = {
|
|
11
13
|
baseUrl: string;
|
|
12
14
|
bearerToken?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Host app identity required by GW CORE.
|
|
17
|
+
*
|
|
18
|
+
* `appId` is mandatory when you want the SDK to inject canonical `AppId` and
|
|
19
|
+
* `AppVersion` headers automatically. `appVersion` is optional and defaults
|
|
20
|
+
* to `v1.0`.
|
|
21
|
+
*/
|
|
22
|
+
appInfo?: AppInfo;
|
|
13
23
|
/**
|
|
14
24
|
* Optional default tenant route context reused by methods such as
|
|
15
25
|
* `requestSmartToken(...)` when callers do not want to repeat
|
|
@@ -34,6 +44,7 @@ export type NodeHttpClientOptions = HttpRuntimeClientOptions;
|
|
|
34
44
|
export declare class HttpRuntimeClient implements NodeRuntimeClient {
|
|
35
45
|
private readonly baseUrl;
|
|
36
46
|
private readonly bearerToken?;
|
|
47
|
+
private readonly resolvedAppInfo?;
|
|
37
48
|
private readonly ctx?;
|
|
38
49
|
private readonly defaultHeaders;
|
|
39
50
|
private readonly requestTimeoutMs;
|
|
@@ -43,11 +54,21 @@ export declare class HttpRuntimeClient implements NodeRuntimeClient {
|
|
|
43
54
|
* @param options.baseUrl Gateway base URL without trailing slash.
|
|
44
55
|
* @param options.interopMode Optional runtime interoperability mode from the SDK config layer (`demo`, `compat`, `strict`).
|
|
45
56
|
* @param options.bearerToken Optional bearer token reused for direct HTTP calls.
|
|
57
|
+
* @param options.appInfo Optional GW CORE app identity. When present, the
|
|
58
|
+
* client injects `AppId` and `AppVersion` into all outgoing requests.
|
|
46
59
|
* @param options.ctx Optional default route context.
|
|
47
60
|
* @param options.defaultHeaders Optional static headers appended to every request.
|
|
48
61
|
* @param options.requestTimeoutMs Optional per-request timeout in milliseconds.
|
|
49
62
|
*/
|
|
50
63
|
constructor(options: HttpRuntimeClientOptions);
|
|
64
|
+
/**
|
|
65
|
+
* Returns the canonical GW CORE app identity resolved by the Node client.
|
|
66
|
+
*/
|
|
67
|
+
getResolvedAppInfo(): ResolvedAppInfo | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the standard GW CORE headers currently injected by the Node client.
|
|
70
|
+
*/
|
|
71
|
+
getAppHeaders(): Record<'AppId' | 'AppVersion', string> | undefined;
|
|
51
72
|
/**
|
|
52
73
|
* Builds a canonical GDC v1 resource/action path from a route context.
|
|
53
74
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
+
import { buildAppHeaders, resolveAppInfo, } from 'gdc-sdk-core-ts';
|
|
4
5
|
import { buildConsentClaimsSimpleWithCid } from 'gdc-common-utils-ts/utils/consent';
|
|
5
6
|
import { pollUntilCompleteWithMethod } from './async-polling.js';
|
|
6
7
|
import { confirmLegalOrganizationOrderWithDeps } from './host-onboarding.js';
|
|
@@ -22,6 +23,8 @@ export class HttpRuntimeClient {
|
|
|
22
23
|
* @param options.baseUrl Gateway base URL without trailing slash.
|
|
23
24
|
* @param options.interopMode Optional runtime interoperability mode from the SDK config layer (`demo`, `compat`, `strict`).
|
|
24
25
|
* @param options.bearerToken Optional bearer token reused for direct HTTP calls.
|
|
26
|
+
* @param options.appInfo Optional GW CORE app identity. When present, the
|
|
27
|
+
* client injects `AppId` and `AppVersion` into all outgoing requests.
|
|
25
28
|
* @param options.ctx Optional default route context.
|
|
26
29
|
* @param options.defaultHeaders Optional static headers appended to every request.
|
|
27
30
|
* @param options.requestTimeoutMs Optional per-request timeout in milliseconds.
|
|
@@ -30,11 +33,29 @@ export class HttpRuntimeClient {
|
|
|
30
33
|
this.tokenCache = new Map();
|
|
31
34
|
this.baseUrl = String(options.baseUrl || '').replace(/\/+$/, '');
|
|
32
35
|
this.bearerToken = String(options.bearerToken || '').trim() || undefined;
|
|
36
|
+
this.resolvedAppInfo = options.appInfo ? resolveAppInfo(options.appInfo) : undefined;
|
|
33
37
|
this.ctx = options.ctx;
|
|
34
|
-
this.defaultHeaders =
|
|
38
|
+
this.defaultHeaders = {
|
|
39
|
+
...(this.resolvedAppInfo ? buildAppHeaders(this.resolvedAppInfo) : {}),
|
|
40
|
+
...(options.defaultHeaders || {}),
|
|
41
|
+
};
|
|
35
42
|
this.requestTimeoutMs = Math.max(1, Math.floor(options.requestTimeoutMs ?? 15000));
|
|
36
43
|
this.httpTraceFile = String(process.env.SDK_HTTP_TRACE_FILE || '').trim() || undefined;
|
|
37
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns the canonical GW CORE app identity resolved by the Node client.
|
|
47
|
+
*/
|
|
48
|
+
getResolvedAppInfo() {
|
|
49
|
+
return this.resolvedAppInfo ? { ...this.resolvedAppInfo } : undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns the standard GW CORE headers currently injected by the Node client.
|
|
53
|
+
*/
|
|
54
|
+
getAppHeaders() {
|
|
55
|
+
if (!this.resolvedAppInfo)
|
|
56
|
+
return undefined;
|
|
57
|
+
return buildAppHeaders(this.resolvedAppInfo);
|
|
58
|
+
}
|
|
38
59
|
/**
|
|
39
60
|
* Builds a canonical GDC v1 resource/action path from a route context.
|
|
40
61
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ControllerBindingInput } from 'gdc-common-utils-ts/models';
|
|
2
|
-
import type { AsyncPollRequest, PollOptions, PollResult, SubmitAndPollResult, SubmitPayload, SubmitResponse } from '
|
|
3
|
-
export type { AsyncPollRequest, PollOptions, PollResult, SubmitAndPollResult, SubmitPayload, SubmitResponse, } from '
|
|
2
|
+
import type { AsyncPollRequest, PollOptions, PollResult, SubmitAndPollResult, SubmitPayload, SubmitResponse } from 'gdc-sdk-core-ts';
|
|
3
|
+
export type { AsyncPollRequest, PollOptions, PollResult, SubmitAndPollResult, SubmitPayload, SubmitResponse, } from 'gdc-sdk-core-ts';
|
|
4
4
|
import type { EmployeeDeviceActivationResult, EmployeeDeviceActivationRequestInput } from '../device-activation.js';
|
|
5
5
|
import type { HostRouteContext, LegalOrganizationOrderInput } from '../host-onboarding.js';
|
|
6
6
|
import type { IndividualOrganizationConfirmOrderInput, RouteContext } from '../individual-onboarding.js';
|
|
@@ -8,7 +8,7 @@ export declare class IndividualMemberSdk {
|
|
|
8
8
|
/**
|
|
9
9
|
* Creates or updates the member/caregiver `RelatedPerson` relationship to the subject.
|
|
10
10
|
*/
|
|
11
|
-
upsertRelatedPersonAndPoll(ctx: RouteContext, input: RelatedPersonUpsertInput): Promise<import("
|
|
11
|
+
upsertRelatedPersonAndPoll(ctx: RouteContext, input: RelatedPersonUpsertInput): Promise<import("gdc-sdk-core-ts/dist/polling-model.js").SubmitAndPollResult>;
|
|
12
12
|
/**
|
|
13
13
|
* Requests a SMART token for a non-employee actor such as a `RelatedPerson`
|
|
14
14
|
* caregiver, guardian, or family member.
|
package/dist/poll-options.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { resolvePollOptionsFromSeconds } from '
|
|
1
|
+
export { resolvePollOptionsFromSeconds } from 'gdc-sdk-core-ts';
|
package/dist/poll-options.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
export { resolvePollOptionsFromSeconds } from '
|
|
2
|
+
export { resolvePollOptionsFromSeconds } from 'gdc-sdk-core-ts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BundleSearchQuery, CommunicationInput, DateRange } from '
|
|
1
|
+
import type { BundleSearchQuery, CommunicationInput, DateRange } from 'gdc-sdk-core-ts';
|
|
2
2
|
import type { SubmitAndPollResult } from './orchestration/client-port.js';
|
|
3
3
|
import type { RouteContext } from './individual-onboarding.js';
|
|
4
4
|
export type OrganizationEmployeeCreationInput = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NodeOperatorNetworkType } from 'gdc-common-utils-ts/constants/network';
|
|
2
|
-
import type { DataPersistencePolicy } from '
|
|
2
|
+
import type { DataPersistencePolicy } from 'gdc-sdk-core-ts';
|
|
3
3
|
export type LegacyNodeSourcePackage = never;
|
|
4
4
|
/**
|
|
5
5
|
* Deployment/runtime form factor of the Node SDK host process itself.
|
package/dist/session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActorKind, Capability } from '
|
|
1
|
+
import type { ActorKind, Capability } from 'gdc-sdk-core-ts';
|
|
2
2
|
import { HostOnboardingSdk } from './orchestration/host-onboarding-sdk.js';
|
|
3
3
|
import { IndividualControllerSdk } from './orchestration/individual-controller-sdk.js';
|
|
4
4
|
import { IndividualMemberSdk } from './orchestration/individual-member-sdk.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdc-sdk-node-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Next-generation Node runtime package for the GDC SDK family",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Antifraud Services Inc.",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"test:e2e:live-gw": "npm run build && RUN_LIVE_GW_E2E=1 node --test tests/live-gw-node-runtime.e2e.test.mjs"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"gdc-common-utils-ts": "^1.
|
|
20
|
+
"gdc-common-utils-ts": "^1.6.0",
|
|
21
|
+
"gdc-sdk-core-ts": "^0.3.0"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@types/node": "^20.14.10",
|