gdc-sdk-front-ts 0.4.0 → 0.5.1
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/services.d.ts +15 -0
- package/dist/services.js +23 -0
- package/dist/types.d.ts +12 -1
- package/package.json +3 -3
package/dist/services.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Frontend-only service facades.
|
|
3
|
+
*
|
|
4
|
+
* @architecture 101
|
|
5
|
+
* Keep this layer free from GW routing/crypto concerns. Product apps should call
|
|
6
|
+
* their portal/BFF here and map responses into shared DTOs.
|
|
7
|
+
*/
|
|
1
8
|
import type { DeviceAppType, DeviceUserClass } from 'gdc-common-utils-ts/constants';
|
|
9
|
+
import type { FrontRelatedProfileSearchResult } from './types.js';
|
|
2
10
|
export declare class CommonAuthService {
|
|
3
11
|
activateDevice(_licenseCode: string, _providerDid: string, _idToken: string): Promise<{
|
|
4
12
|
thid: string;
|
|
@@ -160,6 +168,13 @@ export declare class IndividualService {
|
|
|
160
168
|
}): Promise<{
|
|
161
169
|
thid: string;
|
|
162
170
|
}>;
|
|
171
|
+
/**
|
|
172
|
+
* Placeholder frontend-facing related-profile query surface.
|
|
173
|
+
*
|
|
174
|
+
* Product integrations are expected to call a portal/BFF endpoint such as
|
|
175
|
+
* `GET /api/personal/related-profiles` and map the response to this shared DTO.
|
|
176
|
+
*/
|
|
177
|
+
listRelatedProfiles(actorIdentifier: string): Promise<FrontRelatedProfileSearchResult>;
|
|
163
178
|
}
|
|
164
179
|
export declare class PhysicianService {
|
|
165
180
|
}
|
package/dist/services.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Frontend-only service facades.
|
|
4
|
+
*
|
|
5
|
+
* @architecture 101
|
|
6
|
+
* Keep this layer free from GW routing/crypto concerns. Product apps should call
|
|
7
|
+
* their portal/BFF here and map responses into shared DTOs.
|
|
8
|
+
*/
|
|
9
|
+
import { RELATED_PROFILE_SEARCH_PARAM_ACTOR_IDENTIFIER } from 'gdc-sdk-core-ts';
|
|
2
10
|
function requireNonEmptyText(value, fieldName) {
|
|
3
11
|
const normalized = String(value ?? '').trim();
|
|
4
12
|
if (!normalized) {
|
|
@@ -71,6 +79,21 @@ export class IndividualService {
|
|
|
71
79
|
async getLatestIps(_subject, _providerDid, _requiredScope, _idToken, _date) {
|
|
72
80
|
return { thid: `thid-${Date.now()}` };
|
|
73
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Placeholder frontend-facing related-profile query surface.
|
|
84
|
+
*
|
|
85
|
+
* Product integrations are expected to call a portal/BFF endpoint such as
|
|
86
|
+
* `GET /api/personal/related-profiles` and map the response to this shared DTO.
|
|
87
|
+
*/
|
|
88
|
+
async listRelatedProfiles(actorIdentifier) {
|
|
89
|
+
requireNonEmptyText(actorIdentifier, `listRelatedProfiles ${RELATED_PROFILE_SEARCH_PARAM_ACTOR_IDENTIFIER}`);
|
|
90
|
+
const data = [];
|
|
91
|
+
return {
|
|
92
|
+
actorIdentifier,
|
|
93
|
+
total: data.length,
|
|
94
|
+
data,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
74
97
|
}
|
|
75
98
|
export class PhysicianService {
|
|
76
99
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Frontend SDK shared type aliases.
|
|
3
|
+
*
|
|
4
|
+
* @architecture 101
|
|
5
|
+
* Re-export runtime-neutral contracts instead of duplicating DTO definitions.
|
|
6
|
+
*/
|
|
7
|
+
import type { IApiConfig, INetwork, BundleSearchQuery, CommunicationInput, DateRange, RelatedProfileSearchInput, RelatedProfileSearchResult, RelatedProfileRole, RelatedProfileStatus, RelatedProfileSummary } from 'gdc-sdk-core-ts';
|
|
2
8
|
export type { AppInfo, ResolvedAppInfo, InitializeSessionParams, Profile, ProfileRegistryEntry, VaultQueryCondition, VaultQuery, IVaultRepository, IApiConfig, INetwork, IVerifier } from 'gdc-sdk-core-ts';
|
|
3
9
|
export type SdkConfig = {
|
|
4
10
|
crypto?: unknown;
|
|
@@ -9,3 +15,8 @@ export type SdkConfig = {
|
|
|
9
15
|
export type FrontDateRange = DateRange;
|
|
10
16
|
export type FrontBundleSearchQuery = BundleSearchQuery;
|
|
11
17
|
export type FrontCommunicationInput = CommunicationInput;
|
|
18
|
+
export type FrontRelatedProfileStatus = RelatedProfileStatus;
|
|
19
|
+
export type FrontRelatedProfileRole = RelatedProfileRole;
|
|
20
|
+
export type FrontRelatedProfileSearchInput = RelatedProfileSearchInput;
|
|
21
|
+
export type FrontRelatedProfileSummary = RelatedProfileSummary;
|
|
22
|
+
export type FrontRelatedProfileSearchResult = RelatedProfileSearchResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdc-sdk-front-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Next-generation frontend runtime package for the GDC SDK family",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Antifraud Services Inc.",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/runtime": "^7.28.4",
|
|
20
|
-
"gdc-common-utils-ts": "^1.
|
|
21
|
-
"gdc-sdk-core-ts": "^0.
|
|
20
|
+
"gdc-common-utils-ts": "^1.10.0",
|
|
21
|
+
"gdc-sdk-core-ts": "^0.5.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.14.10",
|