@icanbwell/bwell-sdk-ts 1.35.0 → 1.36.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/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/api-provider-factory.d.ts +1 -1
- package/dist/api/api-provider-factory.js +2 -1
- package/dist/api/base/api-provider.d.ts +8 -14
- package/dist/api/base/connection/connection-manager.d.ts +0 -2
- package/dist/api/base/health-data/health-manager.d.ts +4 -227
- package/dist/api/base/health-data/index.d.ts +1 -1
- package/dist/api/base/index.d.ts +0 -4
- package/dist/api/base/index.js +4 -4
- package/dist/api/base/user/index.d.ts +1 -2
- package/dist/api/base/user/index.js +4 -1
- package/dist/api/base/user/user-manager.d.ts +1 -7
- package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +1 -3
- package/dist/api/graphql-api/connection/graphql-connection-manager.js +23 -21
- package/dist/api/graphql-api/connection/index.d.ts +0 -1
- package/dist/api/graphql-api/connection/index.js +1 -1
- package/dist/api/graphql-api/graphql-api-provider.d.ts +4 -13
- package/dist/api/graphql-api/graphql-api-provider.js +10 -9
- package/dist/api/graphql-api/graphql-sdk/graphql-sdk.js +1 -1
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +3 -27
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +26 -328
- package/dist/api/graphql-api/healthdata/health-data-request-factory.d.ts +12 -0
- package/dist/api/graphql-api/healthdata/health-data-request-factory.js +12 -0
- package/dist/api/graphql-api/user/graphql-user-manager.d.ts +3 -6
- package/dist/api/graphql-api/user/graphql-user-manager.js +68 -46
- package/dist/bwell-sdk/bwell-sdk.d.ts +2 -13
- package/dist/bwell-sdk/bwell-sdk.js +27 -27
- package/dist/config/sdk-config.js +3 -3
- package/dist/graphql/operations/index.d.ts +11 -282
- package/dist/graphql/operations/index.js +227 -2410
- package/dist/graphql/operations/types.d.ts +2349 -15206
- package/dist/graphql/schema.d.ts +68178 -4822
- package/dist/graphql/schema.js +7 -63
- package/package.json +4 -2
- package/dist/api/base/activity/activity-manager.d.ts +0 -35
- package/dist/api/base/activity/activity-manager.js +0 -1
- package/dist/api/base/activity/get-tasks-request.d.ts +0 -49
- package/dist/api/base/activity/get-tasks-request.js +0 -35
- package/dist/api/base/activity/index.d.ts +0 -4
- package/dist/api/base/activity/index.js +0 -2
- package/dist/api/base/activity/types.d.ts +0 -3
- package/dist/api/base/activity/types.js +0 -5
- package/dist/api/base/activity/update-task-status-request.d.ts +0 -18
- package/dist/api/base/activity/update-task-status-request.js +0 -15
- package/dist/api/base/device/device-manager.d.ts +0 -22
- package/dist/api/base/device/device-manager.js +0 -5
- package/dist/api/base/device/device-request.d.ts +0 -62
- package/dist/api/base/device/device-request.js +0 -71
- package/dist/api/base/device/index.d.ts +0 -2
- package/dist/api/base/device/index.js +0 -2
- package/dist/api/base/event/event-manager.d.ts +0 -16
- package/dist/api/base/event/event-manager.js +0 -1
- package/dist/api/base/event/event-request.d.ts +0 -35
- package/dist/api/base/event/event-request.js +0 -64
- package/dist/api/base/event/index.d.ts +0 -2
- package/dist/api/base/event/index.js +0 -1
- package/dist/api/base/search/index.d.ts +0 -4
- package/dist/api/base/search/index.js +0 -3
- package/dist/api/base/search/request-connection-request.d.ts +0 -24
- package/dist/api/base/search/request-connection-request.js +0 -3
- package/dist/api/base/search/search-health-resources-request.d.ts +0 -87
- package/dist/api/base/search/search-health-resources-request.js +0 -20
- package/dist/api/base/search/search-manager.d.ts +0 -58
- package/dist/api/base/search/search-manager.js +0 -1
- package/dist/api/base/search/search-request.d.ts +0 -84
- package/dist/api/base/search/search-request.js +0 -78
- package/dist/api/base/user/create-data-export-direct-download-url-request.d.ts +0 -14
- package/dist/api/base/user/create-data-export-direct-download-url-request.js +0 -21
- package/dist/api/graphql-api/activity/activity-request-factories.d.ts +0 -13
- package/dist/api/graphql-api/activity/activity-request-factories.js +0 -66
- package/dist/api/graphql-api/activity/graphql-activity-manager.d.ts +0 -14
- package/dist/api/graphql-api/activity/graphql-activity-manager.js +0 -72
- package/dist/api/graphql-api/activity/index.d.ts +0 -1
- package/dist/api/graphql-api/activity/index.js +0 -1
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.d.ts +0 -18
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.js +0 -40
- package/dist/api/graphql-api/device/device-request-factory.d.ts +0 -9
- package/dist/api/graphql-api/device/device-request-factory.js +0 -15
- package/dist/api/graphql-api/device/graphql-device-manager.d.ts +0 -13
- package/dist/api/graphql-api/device/graphql-device-manager.js +0 -73
- package/dist/api/graphql-api/device/index.d.ts +0 -1
- package/dist/api/graphql-api/device/index.js +0 -1
- package/dist/api/graphql-api/event/event-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/event/event-request-factory.js +0 -11
- package/dist/api/graphql-api/event/graphql-event-manager.d.ts +0 -15
- package/dist/api/graphql-api/event/graphql-event-manager.js +0 -65
- package/dist/api/graphql-api/event/index.d.ts +0 -1
- package/dist/api/graphql-api/event/index.js +0 -1
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.d.ts +0 -10
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js +0 -35
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.d.ts +0 -10
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js +0 -35
- package/dist/api/graphql-api/search/connection-search-request-factory.d.ts +0 -7
- package/dist/api/graphql-api/search/connection-search-request-factory.js +0 -21
- package/dist/api/graphql-api/search/graphql-search-manager.d.ts +0 -17
- package/dist/api/graphql-api/search/graphql-search-manager.js +0 -133
- package/dist/api/graphql-api/search/index.d.ts +0 -1
- package/dist/api/graphql-api/search/index.js +0 -1
- package/dist/api/graphql-api/search/provider-search-request-factory.d.ts +0 -7
- package/dist/api/graphql-api/search/provider-search-request-factory.js +0 -21
- package/dist/api/graphql-api/search/request-connection-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/search/request-connection-request-factory.js +0 -12
- package/dist/api/graphql-api/search/search-health-resources-request-factory.d.ts +0 -14
- package/dist/api/graphql-api/search/search-health-resources-request-factory.js +0 -28
- package/dist/api/graphql-api/search/search-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/search/search-request-factory.js +0 -44
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.js +0 -9
- package/dist/api/graphql-api/user/get-consent-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/user/get-consent-request-factory.js +0 -8
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -3,5 +3,5 @@ import { LoggerProvider } from "../logger/index.js";
|
|
|
3
3
|
import { TokenManager } from "../tokens/index.js";
|
|
4
4
|
import { ApiProvider } from "./base/api-provider.js";
|
|
5
5
|
export declare class ApiProviderFactory {
|
|
6
|
-
createApiProvider(config: SdkConfig,
|
|
6
|
+
createApiProvider(config: SdkConfig, loggerProvider: LoggerProvider, tokenManager?: TokenManager): ApiProvider;
|
|
7
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { graphQLSDKFactory } from "./graphql-api/graphql-sdk/index.js";
|
|
2
2
|
import { GraphQLApiProvider } from "./graphql-api/index.js";
|
|
3
3
|
export class ApiProviderFactory {
|
|
4
|
-
createApiProvider(config,
|
|
4
|
+
createApiProvider(config, loggerProvider, tokenManager) {
|
|
5
|
+
// TODO: PHR-1137 - Handle optional params better
|
|
5
6
|
const { sdk, client } = graphQLSDKFactory(config.graphQL.apiUrl, tokenManager, config.bwellConfig.language);
|
|
6
7
|
return new GraphQLApiProvider(sdk, loggerProvider, client);
|
|
7
8
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import type { LanguageManager } from "../../language/language-manager.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import type { QuestionnaireManager } from "./questionnaire/questionnaire-manager.js";
|
|
9
|
-
import type { SearchManager } from "./search/search-manager.js";
|
|
10
|
-
import type { UserManager } from "./user/user-manager.js";
|
|
2
|
+
import { ConnectionManager } from "./connection/index.js";
|
|
3
|
+
import { HealthManager } from "./health-data/index.js";
|
|
4
|
+
import { HealthSpaceManager } from "./health-space/index.js";
|
|
5
|
+
import { IdentityManager } from "./identity/identity-manager.js";
|
|
6
|
+
import { QuestionnaireManager } from "./questionnaire/index.js";
|
|
7
|
+
import { UserManager } from "./user/index.js";
|
|
11
8
|
export interface ApiProvider {
|
|
12
9
|
readonly health: HealthManager;
|
|
13
10
|
readonly healthSpace: HealthSpaceManager;
|
|
14
11
|
readonly user: UserManager;
|
|
15
|
-
readonly device: DeviceManager;
|
|
16
12
|
readonly connection: ConnectionManager;
|
|
17
|
-
readonly activity: ActivityManager;
|
|
18
|
-
readonly event: EventManager;
|
|
19
|
-
readonly search: SearchManager;
|
|
20
|
-
readonly language: LanguageManager;
|
|
21
13
|
readonly questionnaire: QuestionnaireManager;
|
|
14
|
+
readonly language: LanguageManager;
|
|
15
|
+
readonly identity: IdentityManager;
|
|
22
16
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CreateConnectionMutationResults, DeleteConnectionMutationResults, DisconnectConnectionMutationResults, GetDataSourceQueryResults, GetOauthUrlQueryResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import type { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
|
-
import { MemberConnectionResults } from "../../graphql-api/connection/index.js";
|
|
4
3
|
import type { BaseManagerError } from "../errors.js";
|
|
5
4
|
import { ConnectionRequest, DataSourceRequest } from "./connection-request.js";
|
|
6
5
|
export declare const MEMBER_CONNECTION_SUBSCRIPTION_STATUS_EXTENSION_ID = "data-connection-status";
|
|
@@ -29,7 +28,6 @@ export interface ConnectionManager {
|
|
|
29
28
|
*
|
|
30
29
|
* @returns {Promise<BWellQueryResult<MemberConnectionResults>>} A promise resolving to an object representing the list of MemberConnections resources retrieved, along with potential validation or GraphQL errors.
|
|
31
30
|
*/
|
|
32
|
-
getMemberConnections(): Promise<BWellQueryResult<MemberConnectionResults, BaseManagerError>>;
|
|
33
31
|
/**
|
|
34
32
|
* Retrieves a DataSource by id.
|
|
35
33
|
*
|
|
@@ -1,116 +1,43 @@
|
|
|
1
|
-
import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults,
|
|
1
|
+
import type { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetCarePlanGroupsQueryResults, GetConditionGroupsQueryResults, GetDiagnosticReportLabGroupsQueryResults, GetEncountersGroupQueryResults, GetImmunizationGroupsQueryResults, GetLabGroupsQueryResults, GetMedicationGroupsQueryResults, GetProcedureGroupsQueryResults, GetVitalSignGroupsQueryResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import type { BWellQueryResult } from "../../../results/index.js";
|
|
3
|
-
import { MedicationDispenseResultsType } from "../../graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js";
|
|
4
|
-
import { MedicationRequestResultsType } from "../../graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js";
|
|
5
3
|
import type { BaseManagerError } from "../errors.js";
|
|
6
|
-
import { AllergyIntoleranceGroupsRequest,
|
|
7
|
-
|
|
8
|
-
import { MedicationKnowledgeRequest } from "./medication-knowledge-request.js";
|
|
9
|
-
import { MedicationPricingRequest } from "./medication-pricing-request.js";
|
|
10
|
-
type HealthSummaryResultsType = GetHealthSummaryQueryResults["getHealthSummary"];
|
|
11
|
-
export interface HealthSummaryResults extends HealthSummaryResultsType {
|
|
12
|
-
}
|
|
13
|
-
type AllergyIntolerancesResultsType = GetAllergyIntolerancesQueryResults["getAllergyIntolerances"];
|
|
14
|
-
export interface AllergyIntolerancesResults extends AllergyIntolerancesResultsType {
|
|
15
|
-
}
|
|
16
|
-
type DiagnosticReportsResultsType = GetDiagnosticReportsQueryResults["diagnosticReports"];
|
|
17
|
-
export type DiagnosticReportsResults = DiagnosticReportsResultsType;
|
|
18
|
-
type DocumentReferencesResultsType = GetDocumentReferencesQueryResults["getDocumentReferences"];
|
|
19
|
-
export interface DocumentReferencesResults extends DocumentReferencesResultsType {
|
|
20
|
-
}
|
|
21
|
-
type BinaryResultsType = GetBinaryQueryResults["getBinary"];
|
|
22
|
-
export interface BinaryResults extends BinaryResultsType {
|
|
23
|
-
}
|
|
4
|
+
import type { AllergyIntoleranceGroupsRequest, CarePlanGroupsRequest, ConditionGroupsRequest, DiagnosticReportLabGroupsRequest, EncounterGroupsRequest, HealthDataRequest, ImmunizationGroupsRequest, LabGroupsRequest, MedicationGroupsRequest, ProcedureGroupsRequest, VitalSignGroupsRequest } from "./health-data-request.js";
|
|
5
|
+
export type AllergyIntolerancesResults = GetAllergyIntolerancesQueryResults["allergyIntolerances"];
|
|
24
6
|
type AllergyIntolerancesGroupsResultsType = GetAllergyIntoleranceGroupsQueryResults["getAllergyIntoleranceGroups"];
|
|
25
7
|
export interface AllergyIntolerancesGroupsResults extends AllergyIntolerancesGroupsResultsType {
|
|
26
8
|
}
|
|
27
|
-
type ConditionsResultsType = GetConditionsQueryResults["getConditions"];
|
|
28
|
-
export interface ConditionsResults extends ConditionsResultsType {
|
|
29
|
-
}
|
|
30
9
|
type ConditionGroupsResultsType = GetConditionGroupsQueryResults["getConditionGroups"];
|
|
31
10
|
export interface ConditionGroupsResults extends ConditionGroupsResultsType {
|
|
32
11
|
}
|
|
33
|
-
type LabsResultsType = GetLabsQueryResults["getLabs"];
|
|
34
|
-
export interface LabsResults extends LabsResultsType {
|
|
35
|
-
}
|
|
36
12
|
type LabGroupsResultsType = GetLabGroupsQueryResults["getLabGroups"];
|
|
37
13
|
export interface LabGroupsResults extends LabGroupsResultsType {
|
|
38
14
|
}
|
|
39
|
-
type CarePlansResultsType = GetCarePlansQueryResults["getCarePlans"];
|
|
40
|
-
export interface CarePlansResults extends CarePlansResultsType {
|
|
41
|
-
}
|
|
42
15
|
type CarePlanGroupsResultsType = GetCarePlanGroupsQueryResults["getCarePlanGroups"];
|
|
43
16
|
export interface CarePlanGroupsResults extends CarePlanGroupsResultsType {
|
|
44
17
|
}
|
|
45
|
-
type CareTeamsResultsType = GetCareTeamsQueryResults["getCareTeams"];
|
|
46
|
-
export interface CareTeamsResults extends CareTeamsResultsType {
|
|
47
|
-
}
|
|
48
|
-
type EncountersResultsType = GetEncounterQueryResults["getEncounters"];
|
|
49
|
-
export interface EncountersResults extends EncountersResultsType {
|
|
50
|
-
}
|
|
51
18
|
type EncounterGroupsResultsType = GetEncountersGroupQueryResults["getEncounterGroups"];
|
|
52
19
|
export interface EncounterGroupsResults extends EncounterGroupsResultsType {
|
|
53
20
|
}
|
|
54
|
-
type ImmunizationsResultsType = GetImmunizationsQueryResults["getImmunizations"];
|
|
55
|
-
export interface ImmunizationsResults extends ImmunizationsResultsType {
|
|
56
|
-
}
|
|
57
21
|
type ImmunizationGroupsResultsType = GetImmunizationGroupsQueryResults["getImmunizationGroups"];
|
|
58
22
|
export interface ImmunizationGroupsResults extends ImmunizationGroupsResultsType {
|
|
59
23
|
}
|
|
60
|
-
type ProceduresResultsType = GetProceduresQueryResults["getProcedures"];
|
|
61
|
-
export interface ProceduresResults extends ProceduresResultsType {
|
|
62
|
-
}
|
|
63
24
|
type ProcedureGroupsResultsType = GetProcedureGroupsQueryResults["getProcedureGroups"];
|
|
64
25
|
export interface ProcedureGroupsResults extends ProcedureGroupsResultsType {
|
|
65
26
|
}
|
|
66
|
-
type VitalSignsResultsType = GetVitalSignsQueryResults["getVitalSigns"];
|
|
67
|
-
export interface VitalSignsResults extends VitalSignsResultsType {
|
|
68
|
-
}
|
|
69
27
|
type VitalSignGroupsResultsType = GetVitalSignGroupsQueryResults["getVitalSignGroups"];
|
|
70
28
|
export interface VitalSignGroupsResults extends VitalSignGroupsResultsType {
|
|
71
29
|
}
|
|
72
30
|
type DiagnosticReportLabGroupsResultsType = GetDiagnosticReportLabGroupsQueryResults["getDiagnosticReportLabGroups"];
|
|
73
31
|
export interface DiagnosticReportLabGroupsResults extends DiagnosticReportLabGroupsResultsType {
|
|
74
32
|
}
|
|
75
|
-
export interface MedicationDispenseResults extends MedicationDispenseResultsType {
|
|
76
|
-
}
|
|
77
|
-
export interface MedicationRequestResults extends MedicationRequestResultsType {
|
|
78
|
-
}
|
|
79
|
-
type MedicationStatementsResultsType = GetMedicationStatementsQueryResults["getMedicationStatements"];
|
|
80
|
-
export interface MedicationStatementsResults extends MedicationStatementsResultsType {
|
|
81
|
-
}
|
|
82
|
-
type MedicationKnowledgeResultsType = GetMedicationKnowledgeQueryResults["getMedicationKnowledge"];
|
|
83
|
-
export interface MedicationKnowledgeResults extends MedicationKnowledgeResultsType {
|
|
84
|
-
}
|
|
85
|
-
type MedicationPricingResultsType = GetMedicationPricingQueryResults["getMedicationPricing"];
|
|
86
|
-
export interface MedicationPricingResults extends MedicationPricingResultsType {
|
|
87
|
-
}
|
|
88
33
|
type MedicationGroupsResultsType = GetMedicationGroupsQueryResults["getMedicationGroups"];
|
|
89
34
|
export interface MedicationGroupsResults extends MedicationGroupsResultsType {
|
|
90
35
|
}
|
|
91
|
-
type LabKnowledgeResultsType = GetLabKnowledgeQueryResults["getLabKnowledge"];
|
|
92
|
-
export interface LabKnowledgeResults extends LabKnowledgeResultsType {
|
|
93
|
-
}
|
|
94
36
|
/**
|
|
95
37
|
* The HealthManager interface provides methods for retrieving health care records.
|
|
96
38
|
*/
|
|
97
39
|
export interface HealthManager {
|
|
98
|
-
|
|
99
|
-
* Retrieve a summary view of current health care records by category. This view includes counts for AllergyIntolerance, CarePlan, Condition, Encounter, Immunization, Procedure, Vital Sign, Medication Statement, and Lab resources.
|
|
100
|
-
*
|
|
101
|
-
* @returns {Promise<BWellQueryResult<HealthSummaryResults>>} A promise resolving to An object which based off of generated ResourceGroups representing an aggregation of AllergyIntolerance, CarePlan, Condition, Encounter, Immunization, Procedure, MedicationStatement, Observation (Vital Sign and Lab) resources.
|
|
102
|
-
*/
|
|
103
|
-
getHealthSummary(): Promise<BWellQueryResult<HealthSummaryResults, BaseManagerError>>;
|
|
104
|
-
/**
|
|
105
|
-
* Retrieves a list of AllergyIntolerance resources from a FHIR server.
|
|
106
|
-
* The method accepts a AllergyIntolerancesRequest object to specify the search criteria.
|
|
107
|
-
* See also https://build.fhir.org/allergyintolerance.html
|
|
108
|
-
*
|
|
109
|
-
* @param {AllergyIntolerancesRequest} request An object specifying the search criteria for retrieving the AllergyIntolerance resources.
|
|
110
|
-
*
|
|
111
|
-
* @returns {Promise<BWellQueryResult<AllergyIntolerancesResults>>} A promise resolving to an object representing the list of Allergy Intolerance resources retrieved, along with potential validation or GraphQL errors.
|
|
112
|
-
*/
|
|
113
|
-
getAllergyIntolerances(request?: AllergyIntolerancesRequest): Promise<BWellQueryResult<AllergyIntolerancesResults, BaseManagerError>>;
|
|
40
|
+
getAllergyIntolerances(request?: HealthDataRequest): Promise<BWellQueryResult<AllergyIntolerancesResults, BaseManagerError>>;
|
|
114
41
|
/**
|
|
115
42
|
* Retrieves a list of AllergyIntoleranceGroup resources.
|
|
116
43
|
* The method accepts a AllergyIntoleranceGroupsRequest object to specify the search criteria.
|
|
@@ -120,17 +47,6 @@ export interface HealthManager {
|
|
|
120
47
|
* @returns {Promise<BWellQueryResult<AllergyIntolerancesGroupsResults>>} A promise resolving to an object representing the list of Allergy Intolerance Groups retrieved, along with potential validation or GraphQL errors.
|
|
121
48
|
*/
|
|
122
49
|
getAllergyIntoleranceGroups(request?: AllergyIntoleranceGroupsRequest): Promise<BWellQueryResult<AllergyIntolerancesGroupsResults, BaseManagerError>>;
|
|
123
|
-
/**
|
|
124
|
-
* Retrieves a list of medical conditions and diagnoses using the FHIR (Fast Healthcare Interoperability Resources) standard.
|
|
125
|
-
* Medical conditions represent various health issues, ailments, or diseases that patients may experience.
|
|
126
|
-
* This method provides access to this type of clinical data.
|
|
127
|
-
* See also https://build.fhir.org/condition.html
|
|
128
|
-
*
|
|
129
|
-
* @param {ConditionsRequest} request An optional request class for specifying the search criteria, for the retrieval of conditions resources.
|
|
130
|
-
*
|
|
131
|
-
* @returns {Promise<BWellQueryResult<ConditionsResults>>} A promise resolving to an object representing the list of medical conditions retrieved from the FHIR server.
|
|
132
|
-
*/
|
|
133
|
-
getConditions(request?: ConditionsRequest): Promise<BWellQueryResult<ConditionsResults>>;
|
|
134
50
|
/**
|
|
135
51
|
* Retrieves a list of condition groups resources.
|
|
136
52
|
*
|
|
@@ -139,37 +55,6 @@ export interface HealthManager {
|
|
|
139
55
|
* @returns {Promise<BWellQueryResult<ConditionGroupsResults>>} A promise resolving to an object representing he list of condition groups retrieved.
|
|
140
56
|
*/
|
|
141
57
|
getConditionGroups(request?: ConditionGroupsRequest): Promise<BWellQueryResult<ConditionGroupsResults>>;
|
|
142
|
-
/**
|
|
143
|
-
* Retrieves a list of document references using the FHIR (Fast Healthcare Interoperability Resources) standard.
|
|
144
|
-
* A reference to a document of any kind for any purpose.
|
|
145
|
-
* This method provides access to this type of clinical data.
|
|
146
|
-
* See also https://build.fhir.org/documentreference.html
|
|
147
|
-
*
|
|
148
|
-
* @param {DocumentReferencesRequest} request An optional request class for specifying the search criteria, for the retrieval of document reference resources.
|
|
149
|
-
*
|
|
150
|
-
* @returns {Promise<BWellQueryResult<DocumentReferencesResults>>} A promise resolving to an object representing the list of document references retrieved from the FHIR server.
|
|
151
|
-
*/
|
|
152
|
-
getDocumentReferences(request?: DocumentReferencesRequest): Promise<BWellQueryResult<DocumentReferencesResults>>;
|
|
153
|
-
/**
|
|
154
|
-
* Retrieves a list of Binary resources.
|
|
155
|
-
* See also https://hl7.org/fhir/r4b/binary.html
|
|
156
|
-
*
|
|
157
|
-
* @param {BinaryRequest} request An optional request class for specifying the search criteria, for the retrieval of binary resources.
|
|
158
|
-
*
|
|
159
|
-
* @returns {Promise<BWellQueryResult<BinaryResults>>} A promise resolving to an object representing the list of binary retrieved.
|
|
160
|
-
*/
|
|
161
|
-
getBinary(request: BinaryRequest): Promise<BWellQueryResult<BinaryResults>>;
|
|
162
|
-
/**
|
|
163
|
-
* Retrieve a summary of laboratory test results.
|
|
164
|
-
* It returns a list of unique laboratory measurements for the patient sorted by most recent first.
|
|
165
|
-
* It simplifies the process by calling the GetObservations method with the category parameter set to 'laboratory'.
|
|
166
|
-
* See also https://build.fhir.org/ig/HL7/fhir-order-catalog/exlabservices.html
|
|
167
|
-
*
|
|
168
|
-
* @param {LabsRequest} request A simplified request class for access laboratory observations resources.
|
|
169
|
-
*
|
|
170
|
-
* @returns {Promise<BWellQueryResult<LabsResults>>} A promise resolving to an object representing a list of labratory results, along with potential errors.
|
|
171
|
-
*/
|
|
172
|
-
getLabs(request?: LabsRequest): Promise<BWellQueryResult<LabsResults, BaseManagerError>>;
|
|
173
58
|
/**
|
|
174
59
|
* Retrieves a list of labratory groups results.
|
|
175
60
|
*
|
|
@@ -178,24 +63,6 @@ export interface HealthManager {
|
|
|
178
63
|
* @returns {Promise<BWellQueryResult<LabGroupsResults>>} A promise resolving to an object representing a list of labratory groups, along with potential errors.
|
|
179
64
|
*/
|
|
180
65
|
getLabGroups(request?: LabGroupsRequest): Promise<BWellQueryResult<LabGroupsResults, BaseManagerError>>;
|
|
181
|
-
/**
|
|
182
|
-
* Retrieves a list of care plans resources.
|
|
183
|
-
* See also https://build.fhir.org/careplan.html
|
|
184
|
-
*
|
|
185
|
-
* @param {CarePlansRequest} request An optional request class for specifying the search criteria, for the retrieval of care plans resources.
|
|
186
|
-
*
|
|
187
|
-
* @returns {Promise<BWellQueryResult<CarePlansResults>>} A promise resolving to an object representing the list of care plans retrieved.
|
|
188
|
-
*/
|
|
189
|
-
getCarePlans(request?: CarePlansRequest): Promise<BWellQueryResult<CarePlansResults>>;
|
|
190
|
-
/**
|
|
191
|
-
* Retrieves a list of care teams.
|
|
192
|
-
* See also https://build.fhir.org/careteam.html
|
|
193
|
-
*
|
|
194
|
-
* @param {CareTeamsRequest} request An optional request class for specifying the search criteria, for the retrieval of care teams resources.
|
|
195
|
-
*
|
|
196
|
-
* @returns {Promise<BWellQueryResult<CarePlansResults>>} A promise resolving to an object representing the list of care teams retrieved.
|
|
197
|
-
*/
|
|
198
|
-
getCareTeams(request?: CareTeamsRequest): Promise<BWellQueryResult<CareTeamsResults>>;
|
|
199
66
|
/**
|
|
200
67
|
* Retrieves a list of care plan groups resources.
|
|
201
68
|
*
|
|
@@ -204,15 +71,6 @@ export interface HealthManager {
|
|
|
204
71
|
* @returns {Promise<BWellQueryResult<CarePlanGroupsResults>>} A promise resolving to an object representing the list of care plan groups retrieved.
|
|
205
72
|
*/
|
|
206
73
|
getCarePlanGroups(request?: CarePlanGroupsRequest): Promise<BWellQueryResult<CarePlanGroupsResults>>;
|
|
207
|
-
/**
|
|
208
|
-
* Retrieves a list of encounters resources.
|
|
209
|
-
* See also https://build.fhir.org/encounter.html
|
|
210
|
-
*
|
|
211
|
-
* @param {EncountersRequest} request An optional request class for specifying the search criteria, for the retrieval of encounters resources.
|
|
212
|
-
*
|
|
213
|
-
* @returns {Promise<BWellQueryResult<EncountersResults>>} A promise resolving to an object representing the list of encounters retrieved.
|
|
214
|
-
*/
|
|
215
|
-
getEncounters(request?: EncountersRequest): Promise<BWellQueryResult<EncountersResults>>;
|
|
216
74
|
/**
|
|
217
75
|
* Retrieves a list of encounter groups resources.
|
|
218
76
|
*
|
|
@@ -221,15 +79,6 @@ export interface HealthManager {
|
|
|
221
79
|
* @returns {Promise<BWellQueryResult<EncounterGroupsResults>>} A promise resolving to an object representing the list of encounter groups retrieved.
|
|
222
80
|
*/
|
|
223
81
|
getEncounterGroups(request?: EncounterGroupsRequest): Promise<BWellQueryResult<EncounterGroupsResults>>;
|
|
224
|
-
/**
|
|
225
|
-
* Retrieves a list of immunizations resources.
|
|
226
|
-
* See also https://build.fhir.org/immunization.html
|
|
227
|
-
*
|
|
228
|
-
* @param {ImmunizationsRequest} request An optional request class for specifying the search criteria, for the retrieval of immunizations resources.
|
|
229
|
-
*
|
|
230
|
-
* @returns {Promise<BWellQueryResult<ImmunizationsResults>>} A promise resolving to an object representing the list of immunizations retrieved.
|
|
231
|
-
*/
|
|
232
|
-
getImmunizations(request?: ImmunizationsRequest): Promise<BWellQueryResult<ImmunizationsResults>>;
|
|
233
82
|
/**
|
|
234
83
|
* Retrieves a list of immunization groups resources.
|
|
235
84
|
*
|
|
@@ -238,15 +87,6 @@ export interface HealthManager {
|
|
|
238
87
|
* @returns {Promise<BWellQueryResult<ImmunizationGroupsResults>>} A promise resolving to an object representing the list of immunization groups retrieved.
|
|
239
88
|
*/
|
|
240
89
|
getImmunizationGroups(request?: ImmunizationGroupsRequest): Promise<BWellQueryResult<ImmunizationGroupsResults>>;
|
|
241
|
-
/**
|
|
242
|
-
* Retrieves a list of procedures resources.
|
|
243
|
-
* See also https://build.fhir.org/procedure.html
|
|
244
|
-
*
|
|
245
|
-
* @param {ProcedureRequest} request An optional request class for specifying the search criteria, for the retrieval of procedures resources.
|
|
246
|
-
*
|
|
247
|
-
* @returns {Promise<BWellQueryResult<ProceduresResults>>} A promise resolving to an object representing the list of procedures retrieved.
|
|
248
|
-
*/
|
|
249
|
-
getProcedures(request?: ProceduresRequest): Promise<BWellQueryResult<ProceduresResults>>;
|
|
250
90
|
/**
|
|
251
91
|
* Retrieves a list of procedure groups resources.
|
|
252
92
|
*
|
|
@@ -255,15 +95,6 @@ export interface HealthManager {
|
|
|
255
95
|
* @returns {Promise<BWellQueryResult<ProcedureGroupsResults>>} A promise resolving to an object representing the list of procedure groups retrieved.
|
|
256
96
|
*/
|
|
257
97
|
getProcedureGroups(request?: ProcedureGroupsRequest): Promise<BWellQueryResult<ProcedureGroupsResults>>;
|
|
258
|
-
/**
|
|
259
|
-
* Retrieves a list of vital signs resources.
|
|
260
|
-
* See also https://build.fhir.org/observation-vitalsigns.html
|
|
261
|
-
*
|
|
262
|
-
* @param {VitalSignsRequest} request An optional request class for specifying the search criteria, for the retrieval of vital signs resources.
|
|
263
|
-
*
|
|
264
|
-
* @returns {Promise<BWellQueryResult<VitalSignsResults>>} A promise resolving to an object representing the list of vital signs retrieved.
|
|
265
|
-
*/
|
|
266
|
-
getVitalSigns(request?: VitalSignsRequest): Promise<BWellQueryResult<VitalSignsResults>>;
|
|
267
98
|
/**
|
|
268
99
|
* Retrieves a list of vital sign groups resources.
|
|
269
100
|
*
|
|
@@ -272,33 +103,6 @@ export interface HealthManager {
|
|
|
272
103
|
* @returns {Promise<BWellQueryResult<VitalSignGroupsResults>>} A promise resolving to an object representing the list of vital sign groups retrieved.
|
|
273
104
|
*/
|
|
274
105
|
getVitalSignGroups(request?: VitalSignGroupsRequest): Promise<BWellQueryResult<VitalSignGroupsResults>>;
|
|
275
|
-
/**
|
|
276
|
-
* Retrieves a list of medication dispense resources.
|
|
277
|
-
* See also https://build.fhir.org/medicationdispense.html
|
|
278
|
-
*
|
|
279
|
-
* @param {MedicationDispenseRequest} request An optional request class for specifying the search criteria, for the retrieval of medication dispense resources.
|
|
280
|
-
*
|
|
281
|
-
* @returns {Promise<BWellQueryResult<MedicationDispenseResults>>} A promise resolving to an object representing the list of medication dispense retrieved.
|
|
282
|
-
*/
|
|
283
|
-
getMedicationDispense(request?: MedicationDispenseRequest): Promise<BWellQueryResult<MedicationDispenseResults>>;
|
|
284
|
-
/**
|
|
285
|
-
* Retrieves a list of medication request resources.
|
|
286
|
-
* See also https://build.fhir.org/medicationrequest.html
|
|
287
|
-
*
|
|
288
|
-
* @param {MedicationRequestRequest} request An optional request class for specifying the search criteria, for the retrieval of medication request resources.
|
|
289
|
-
*
|
|
290
|
-
* @returns {Promise<BWellQueryResult<MedicationRequestResults>>} A promise resolving to an object representing the list of medication request retrieved.
|
|
291
|
-
*/
|
|
292
|
-
getMedicationRequest(request?: MedicationRequestRequest): Promise<BWellQueryResult<MedicationRequestResults>>;
|
|
293
|
-
/**
|
|
294
|
-
* Retrieves a list of medication statements resources.
|
|
295
|
-
* See also https://build.fhir.org/medicationstatement.html
|
|
296
|
-
*
|
|
297
|
-
* @param {MedicationStatementsRequest} request An optional request class for specifying the search criteria, for the retrieval of medication statements resources.
|
|
298
|
-
*
|
|
299
|
-
* @returns {Promise<BWellQueryResult<MedicationStatementsResults>>} A promise resolving to an object representing the list of medication statements retrieved.
|
|
300
|
-
*/
|
|
301
|
-
getMedicationStatements(request?: MedicationStatementsRequest): Promise<BWellQueryResult<MedicationStatementsResults>>;
|
|
302
106
|
/**
|
|
303
107
|
* Retrieves a list of medication groups resources.
|
|
304
108
|
*
|
|
@@ -307,33 +111,6 @@ export interface HealthManager {
|
|
|
307
111
|
* @returns {Promise<BWellQueryResult<MedicationGroupsResults>>} A promise resolving to an object representing the list of medication groups retrieved.
|
|
308
112
|
*/
|
|
309
113
|
getMedicationGroups(request: MedicationGroupsRequest): Promise<BWellQueryResult<MedicationGroupsResults>>;
|
|
310
|
-
/**
|
|
311
|
-
* Retrieves a list of medication knowledge resources.
|
|
312
|
-
* See also https://build.fhir.org/medicationknowledge.html
|
|
313
|
-
*
|
|
314
|
-
* @param {MedicationKnowledgeRequest} request A non-optional request class for specifying the search criteria, for the retrieval of medication knowledge resources.
|
|
315
|
-
*
|
|
316
|
-
* @returns {Promise<BWellQueryResult<MedicationKnowledgeResults>>} A promise resolving to an object representing the list of medication knowledge retrieved.
|
|
317
|
-
*/
|
|
318
|
-
getMedicationKnowledge(request: MedicationKnowledgeRequest): Promise<BWellQueryResult<MedicationKnowledgeResults>>;
|
|
319
|
-
/**
|
|
320
|
-
* Retrieves a list of lab knowledge resources.
|
|
321
|
-
* See also https://build.fhir.org/ig/HL7/fhir-order-catalog/exlabservices.html
|
|
322
|
-
*
|
|
323
|
-
* @param {LabKnowledgeRequest} request A non-optional request class for specifying the search criteria, for the retrieval of medication knowledge resources.
|
|
324
|
-
*
|
|
325
|
-
* @returns {Promise<BWellQueryResult<LabKnowledgeResults>>} A promise resolving to an object representing the list of medication knowledge retrieved.
|
|
326
|
-
*/
|
|
327
|
-
getLabKnowledge(request?: LabKnowledgeRequest): Promise<BWellQueryResult<LabKnowledgeResults>>;
|
|
328
|
-
getMedicationPricing(request: MedicationPricingRequest): Promise<BWellQueryResult<MedicationPricingResults>>;
|
|
329
|
-
/**
|
|
330
|
-
* Retrieves a list of diagnostic report resources.
|
|
331
|
-
*
|
|
332
|
-
* @param {DiagnosticReportsRequest} request An optional request class for specifying the search criteria, for the retrieval of diagnostic report resources.
|
|
333
|
-
*
|
|
334
|
-
* @returns {Promise<BWellQueryResult<DiagnosticReportsResults>>} A promise resolving to an object representing the list of diagnostic reports retrieved.
|
|
335
|
-
*/
|
|
336
|
-
getDiagnosticReports(request?: DiagnosticReportsRequest): Promise<BWellQueryResult<DiagnosticReportsResults>>;
|
|
337
114
|
/**
|
|
338
115
|
* Retrieves a list of diagnostic report lab groups resources.
|
|
339
116
|
*
|
|
@@ -2,4 +2,4 @@ export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceG
|
|
|
2
2
|
export { MedicationPricingRequest, MedicationPricingRequestInput, } from "./medication-pricing-request.js";
|
|
3
3
|
export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
|
|
4
4
|
export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
|
|
5
|
-
export {
|
|
5
|
+
export { AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, ConditionGroupsResults, LabGroupsResults, CarePlanGroupsResults, EncounterGroupsResults, ImmunizationGroupsResults, ProcedureGroupsResults, VitalSignGroupsResults, MedicationGroupsResults, HealthManager, DiagnosticReportLabGroupsResults, } from "./health-manager.js";
|
package/dist/api/base/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
-
export * from "./activity/index.js";
|
|
5
|
-
export * from "./search/index.js";
|
|
6
4
|
export * from "./connection/index.js";
|
|
7
|
-
export * from "./device/index.js";
|
|
8
|
-
export * from "./event/index.js";
|
|
9
5
|
export * from "./health-space/index.js";
|
|
10
6
|
export * from "./questionnaire/index.js";
|
package/dist/api/base/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
-
export * from "./activity/index.js";
|
|
5
|
-
export * from "./search/index.js";
|
|
4
|
+
// export * from "./activity/index.js";
|
|
5
|
+
// export * from "./search/index.js";
|
|
6
6
|
export * from "./connection/index.js";
|
|
7
|
-
export * from "./device/index.js";
|
|
8
|
-
export * from "./event/index.js";
|
|
7
|
+
// export * from "./device/index.js";
|
|
8
|
+
// export * from "./event/index.js";
|
|
9
9
|
export * from "./health-space/index.js";
|
|
10
10
|
export * from "./questionnaire/index.js";
|
|
@@ -2,6 +2,5 @@ export { UpdateProfileRequest, UpdateProfileRequestInput, } from "./update-profi
|
|
|
2
2
|
export { GetConsentsRequestInput, GetConsentsRequest, } from "./get-consents-request.js";
|
|
3
3
|
export { CreateConsentRequest, CreateConsentRequestInput, } from "./create-consent-request.js";
|
|
4
4
|
export type { CategoryCode, ConsentProvisionType, ConsentStatus, PersonGender, } from "./types.js";
|
|
5
|
-
export { ProfileResults, DeleteUserResults, UpdateProfileResults,
|
|
6
|
-
export { CreateDataExportDirectDownloadUrlRequest, CreateDataExportDirectDownloadUrlRequestInput, } from "./create-data-export-direct-download-url-request.js";
|
|
5
|
+
export { ProfileResults, DeleteUserResults, UpdateProfileResults, CreateConsentResults, UserManager, } from "./user-manager.js";
|
|
7
6
|
export { CreateVerificationUrlRequest, CreateVerificationUrlRequestInput, } from "./create-verification-url-request.js";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { UpdateProfileRequest, } from "./update-profile-request.js";
|
|
2
2
|
export { GetConsentsRequest, } from "./get-consents-request.js";
|
|
3
3
|
export { CreateConsentRequest, } from "./create-consent-request.js";
|
|
4
|
-
export {
|
|
4
|
+
// export {
|
|
5
|
+
// CreateDataExportDirectDownloadUrlRequest,
|
|
6
|
+
// CreateDataExportDirectDownloadUrlRequestInput,
|
|
7
|
+
// } from "./create-data-export-direct-download-url-request.js";
|
|
5
8
|
export { CreateVerificationUrlRequest, } from "./create-verification-url-request.js";
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { ValidationError } from "../../../errors/validation-error.js";
|
|
2
|
-
import { CreateConsentMutationResults,
|
|
2
|
+
import { CreateConsentMutationResults, CreateVerificationUrlMutationResults, DeleteMutationResults, GetProfileQueryResults, UpdateUserProfileMutationResults, VerificationStatusQueryResults } from "../../../graphql/operations/types.js";
|
|
3
3
|
import type { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
4
4
|
import { BaseManagerError } from "../errors.js";
|
|
5
5
|
import { CreateConsentRequest } from "./create-consent-request.js";
|
|
6
|
-
import { CreateDataExportDirectDownloadUrlRequest } from "./create-data-export-direct-download-url-request.js";
|
|
7
6
|
import { CreateVerificationUrlRequest } from "./create-verification-url-request.js";
|
|
8
|
-
import { GetConsentsRequest } from "./get-consents-request.js";
|
|
9
7
|
import { UpdateProfileRequest } from "./update-profile-request.js";
|
|
10
8
|
export type ProfileResults = GetProfileQueryResults["userProfile"];
|
|
11
9
|
export type DeleteUserResultsType = DeleteMutationResults["updateUserAccountStatus"];
|
|
12
10
|
export interface DeleteUserResults extends DeleteUserResultsType {
|
|
13
11
|
}
|
|
14
12
|
export type UpdateProfileResults = UpdateUserProfileMutationResults["updateUserProfile"];
|
|
15
|
-
export type GetConsentsResults = SearchConsentQueryResults["search"];
|
|
16
13
|
export type CreateConsentResults = CreateConsentMutationResults["createConsent"];
|
|
17
|
-
export type CreateDataExportDirectDownloadUrlResults = CreateDataExportDirectDownloadUrlMutationResults["createDataExportDirectDownloadUrl"];
|
|
18
14
|
export type CreateVerificationUrlResults = CreateVerificationUrlMutationResults["createVerificationUrl"];
|
|
19
15
|
export type GetVerificationStatusResults = VerificationStatusQueryResults["verificationStatus"];
|
|
20
16
|
/**
|
|
@@ -45,7 +41,6 @@ export interface UserManager {
|
|
|
45
41
|
* @param {GetConsentsRequest} request - Request object containing the consent category to search by
|
|
46
42
|
* @return {Promise<BWellQueryResult<GetConsentsResults, BaseManagerError>>} An object representing the consent data from the user
|
|
47
43
|
*/
|
|
48
|
-
getConsents(request?: GetConsentsRequest): Promise<BWellQueryResult<GetConsentsResults, BaseManagerError | ValidationError>>;
|
|
49
44
|
/**
|
|
50
45
|
* Creates a user's Consent
|
|
51
46
|
*
|
|
@@ -59,7 +54,6 @@ export interface UserManager {
|
|
|
59
54
|
* @param {CreateDataExportDirectDownloadUrlRequest} request - Request object containing the data export ID and password
|
|
60
55
|
* @returns {Promise<BWellTransactionResult<CreateDataExportDirectDownloadUrlResults, BaseManagerError>>} A promise resolving to an object representing the direct download URL for the user's data export.
|
|
61
56
|
*/
|
|
62
|
-
createDataExportDirectDownloadUrl(request: CreateDataExportDirectDownloadUrlRequest): Promise<BWellTransactionResult<CreateDataExportDirectDownloadUrlResults, BaseManagerError>>;
|
|
63
57
|
/**
|
|
64
58
|
* Creates a verification URL which can be used to initiate the IAL2 verification flow.
|
|
65
59
|
*
|
|
@@ -5,11 +5,9 @@ import { ConnectionRequest, CreateConnectionResults, DataSourceRequest, DataSour
|
|
|
5
5
|
import { BaseManagerError } from "../../base/errors.js";
|
|
6
6
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
7
7
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
8
|
-
import { GraphQLGetMemberConnectionsBWellResponseFactory, MemberConnectionResults } from "./index.js";
|
|
9
8
|
export declare class GraphQLConnectionManager extends GraphQLManager implements ConnectionManager {
|
|
10
9
|
#private;
|
|
11
|
-
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider
|
|
12
|
-
getMemberConnections(): Promise<BWellQueryResult<MemberConnectionResults, BaseManagerError>>;
|
|
10
|
+
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider);
|
|
13
11
|
getDataSource(request: DataSourceRequest): Promise<BWellQueryResult<DataSourceResults, BaseManagerError>>;
|
|
14
12
|
createConnection(request: ConnectionRequest): Promise<BWellTransactionResult<CreateConnectionResults, BaseManagerError>>;
|
|
15
13
|
disconnectConnection(request: DataSourceRequest): Promise<BWellTransactionResult<DisconnectConnectionResults, BaseManagerError>>;
|
|
@@ -18,36 +18,38 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
18
18
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
19
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
20
|
};
|
|
21
|
-
var _GraphQLConnectionManager_sdk, _GraphQLConnectionManager_logger
|
|
21
|
+
var _GraphQLConnectionManager_sdk, _GraphQLConnectionManager_logger;
|
|
22
22
|
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
23
|
import { BWellQueryResult, BWellTransactionResult, } from "../../../results/index.js";
|
|
24
24
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
|
-
import { GraphQLGetMemberConnectionsBWellResponseFactory, } from "./index.js";
|
|
26
25
|
export class GraphQLConnectionManager extends GraphQLManager {
|
|
27
|
-
|
|
26
|
+
// #memberConnectionsResponseFactory: BWellQueryResultFactory<
|
|
27
|
+
// BWellQueryResult<GetMemberConnectionsQueryResults>,
|
|
28
|
+
// BWellQueryResult<MemberConnectionResults>
|
|
29
|
+
// >;
|
|
30
|
+
constructor(sdk, loggerProvider = new ConsoleLoggerProvider()) {
|
|
28
31
|
super();
|
|
29
32
|
_GraphQLConnectionManager_sdk.set(this, void 0);
|
|
30
33
|
_GraphQLConnectionManager_logger.set(this, void 0);
|
|
31
|
-
_GraphQLConnectionManager_memberConnectionsResponseFactory.set(this, void 0);
|
|
32
34
|
__classPrivateFieldSet(this, _GraphQLConnectionManager_sdk, sdk, "f");
|
|
33
35
|
__classPrivateFieldSet(this, _GraphQLConnectionManager_logger, loggerProvider.getLogger("GraphQLConnectionManager"), "f");
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
getMemberConnections() {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
__classPrivateFieldGet(this, _GraphQLConnectionManager_logger, "f").verbose("calling getMemberConnections...");
|
|
39
|
-
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLConnectionManager_sdk, "f").getMemberConnections());
|
|
40
|
-
__classPrivateFieldGet(this, _GraphQLConnectionManager_logger, "f").verbose("getMemberConnections complete");
|
|
41
|
-
if (result.hasError()) {
|
|
42
|
-
__classPrivateFieldGet(this, _GraphQLConnectionManager_logger, "f").error("getMemberConnections failed", result.error);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
__classPrivateFieldGet(this, _GraphQLConnectionManager_logger, "f").info("successfully called getMemberConnections");
|
|
46
|
-
}
|
|
47
|
-
// map the objects returned by graphql to the shape we want to return
|
|
48
|
-
return __classPrivateFieldGet(this, _GraphQLConnectionManager_memberConnectionsResponseFactory, "f").create(result);
|
|
49
|
-
});
|
|
36
|
+
// this.#memberConnectionsResponseFactory = memberConnectionsResponseFactory;
|
|
50
37
|
}
|
|
38
|
+
// TODO: Sort out subscription_subscription
|
|
39
|
+
// public async getMemberConnections(): Promise<
|
|
40
|
+
// BWellQueryResult<MemberConnectionResults, BaseManagerError>
|
|
41
|
+
// > {
|
|
42
|
+
// this.#logger.verbose("calling getMemberConnections...");
|
|
43
|
+
// const result = await this.handleQuery(this.#sdk.getMemberConnections());
|
|
44
|
+
// this.#logger.verbose("getMemberConnections complete");
|
|
45
|
+
// if (result.hasError()) {
|
|
46
|
+
// this.#logger.error("getMemberConnections failed", result.error);
|
|
47
|
+
// } else {
|
|
48
|
+
// this.#logger.info("successfully called getMemberConnections");
|
|
49
|
+
// }
|
|
50
|
+
// // map the objects returned by graphql to the shape we want to return
|
|
51
|
+
// return this.#memberConnectionsResponseFactory.create(result);
|
|
52
|
+
// }
|
|
51
53
|
getDataSource(request) {
|
|
52
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
55
|
var _a;
|
|
@@ -138,4 +140,4 @@ export class GraphQLConnectionManager extends GraphQLManager {
|
|
|
138
140
|
});
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
|
-
_GraphQLConnectionManager_sdk = new WeakMap(), _GraphQLConnectionManager_logger = new WeakMap()
|
|
143
|
+
_GraphQLConnectionManager_sdk = new WeakMap(), _GraphQLConnectionManager_logger = new WeakMap();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./graphql-connection-manager.js";
|
|
2
|
-
export * from "./graphql-get-member-connections-bwell-response-factory.js";
|
|
2
|
+
// export * from "./graphql-get-member-connections-bwell-response-factory.js";
|