@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1755023129 → 2.0.0-alpha.0-rc.1755532484
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/base/user/create-data-export-direct-download-url-request.d.ts +19 -0
- package/dist/api/base/user/create-data-export-direct-download-url-request.js +24 -0
- package/dist/api/base/user/index.d.ts +1 -0
- package/dist/api/base/user/index.js +1 -4
- package/dist/api/base/user/user-manager.d.ts +14 -0
- package/dist/api/graphql-api/user/graphql-user-manager.d.ts +2 -1
- package/dist/api/graphql-api/user/graphql-user-manager.js +17 -34
- package/dist/graphql/operations/index.d.ts +12 -3
- package/dist/graphql/operations/index.js +27 -24
- package/dist/graphql/operations/types.d.ts +19 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
*/
|
|
4
|
+
export type CreateDataExportDirectDownloadUrlRequestInput = {
|
|
5
|
+
exportId: string;
|
|
6
|
+
password: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class CreateDataExportDirectDownloadUrlRequestValidator implements Validator<CreateDataExportDirectDownloadUrlRequestInput> {
|
|
9
|
+
validate(data: CreateDataExportDirectDownloadUrlRequestInput, errors: ErrorsCollector): void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Request object for creating a direct download URL for a data export.
|
|
13
|
+
* @category Requests
|
|
14
|
+
* @title CreateDataExportDirectDownloadUrlRequest
|
|
15
|
+
* @excerpt Request object for creating a direct download URL for a data export
|
|
16
|
+
*/
|
|
17
|
+
export declare class CreateDataExportDirectDownloadUrlRequest extends ValidationRequest<CreateDataExportDirectDownloadUrlRequestInput> {
|
|
18
|
+
protected validator: Validator<CreateDataExportDirectDownloadUrlRequestInput>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
import { isNullOrUndefinedOrEmptyString } from "../../../utils/type-utils.js";
|
|
3
|
+
export class CreateDataExportDirectDownloadUrlRequestValidator {
|
|
4
|
+
validate(data, errors) {
|
|
5
|
+
if (isNullOrUndefinedOrEmptyString(data.exportId)) {
|
|
6
|
+
errors.add("exportId is required");
|
|
7
|
+
}
|
|
8
|
+
if (isNullOrUndefinedOrEmptyString(data.password)) {
|
|
9
|
+
errors.add("password is required");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Request object for creating a direct download URL for a data export.
|
|
15
|
+
* @category Requests
|
|
16
|
+
* @title CreateDataExportDirectDownloadUrlRequest
|
|
17
|
+
* @excerpt Request object for creating a direct download URL for a data export
|
|
18
|
+
*/
|
|
19
|
+
export class CreateDataExportDirectDownloadUrlRequest extends ValidationRequest {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.validator = new CreateDataExportDirectDownloadUrlRequestValidator();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -2,4 +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 { UserManager } from "./user-manager.js";
|
|
5
|
+
export { CreateDataExportDirectDownloadUrlRequest, CreateDataExportDirectDownloadUrlRequestInput, } from "./create-data-export-direct-download-url-request.js";
|
|
5
6
|
export { CreateVerificationUrlRequest, CreateVerificationUrlRequestInput, } from "./create-verification-url-request.js";
|
|
@@ -1,8 +1,5 @@
|
|
|
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
|
-
|
|
5
|
-
// CreateDataExportDirectDownloadUrlRequest,
|
|
6
|
-
// CreateDataExportDirectDownloadUrlRequestInput,
|
|
7
|
-
// } from "./create-data-export-direct-download-url-request.js";
|
|
4
|
+
export { CreateDataExportDirectDownloadUrlRequest, } from "./create-data-export-direct-download-url-request.js";
|
|
8
5
|
export { CreateVerificationUrlRequest, } from "./create-verification-url-request.js";
|
|
@@ -4,6 +4,7 @@ import type { BWellQueryResult, BWellTransactionResult } from "../../../results/
|
|
|
4
4
|
import { BaseManagerError } from "../errors.js";
|
|
5
5
|
import { CreateConsentRequest } from "./create-consent-request.js";
|
|
6
6
|
import { CreateVerificationUrlRequest } from "./create-verification-url-request.js";
|
|
7
|
+
import { CreateDataExportDirectDownloadUrlRequest } from "./index.js";
|
|
7
8
|
import { UpdateProfileRequest } from "./update-profile-request.js";
|
|
8
9
|
/**
|
|
9
10
|
* User Manager for profile management, consent handling, and identity verification.
|
|
@@ -70,4 +71,17 @@ export interface UserManager {
|
|
|
70
71
|
* ```
|
|
71
72
|
*/
|
|
72
73
|
getVerificationStatus(): Promise<BWellTransactionResult<VerificationResult, BaseManagerError>>;
|
|
74
|
+
/**
|
|
75
|
+
* Generates a URL to download exported user data.
|
|
76
|
+
* Requires a data export and associated web-hook to be set up first (see [docs](https://developer.bwell.com/reference/post_users-id-data-exports)).
|
|
77
|
+
* Please reach out to bwell customer support for further details.
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* const downloadUrl = await sdk.user.createDataExportDirectDownloadUrl({
|
|
81
|
+
* exportId: 'export123',
|
|
82
|
+
* password: 'securePassword'
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
createDataExportDirectDownloadUrl(request: CreateDataExportDirectDownloadUrlRequest): Promise<BWellTransactionResult<string | null, BaseManagerError>>;
|
|
73
87
|
}
|
|
@@ -3,7 +3,7 @@ import { LoggerProvider } from "../../../logger/index.js";
|
|
|
3
3
|
import { Consent, Person, VerificationResult } from "../../../models/user/index.js";
|
|
4
4
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
5
5
|
import { BaseManagerError } from "../../base/errors.js";
|
|
6
|
-
import { CreateConsentRequest, CreateVerificationUrlRequest, UpdateProfileRequest } from "../../base/user/index.js";
|
|
6
|
+
import { CreateConsentRequest, CreateDataExportDirectDownloadUrlRequest, CreateVerificationUrlRequest, UpdateProfileRequest } from "../../base/user/index.js";
|
|
7
7
|
import type { UserManager } from "../../base/user/user-manager.js";
|
|
8
8
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
9
9
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
@@ -14,6 +14,7 @@ export declare class GraphQLUserManager extends GraphQLManager implements UserMa
|
|
|
14
14
|
delete(): Promise<BWellTransactionResult<null, BaseManagerError>>;
|
|
15
15
|
updateProfile(request: UpdateProfileRequest): Promise<BWellTransactionResult<Person, BaseManagerError>>;
|
|
16
16
|
createConsent(request: CreateConsentRequest): Promise<BWellTransactionResult<Consent, BaseManagerError | ValidationError>>;
|
|
17
|
+
createDataExportDirectDownloadUrl(request: CreateDataExportDirectDownloadUrlRequest): Promise<BWellTransactionResult<string | null, BaseManagerError>>;
|
|
17
18
|
createVerificationUrl(request: CreateVerificationUrlRequest): Promise<BWellTransactionResult<string, BaseManagerError>>;
|
|
18
19
|
getVerificationStatus(): Promise<BWellTransactionResult<VerificationResult, BaseManagerError>>;
|
|
19
20
|
}
|
|
@@ -128,40 +128,23 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
128
128
|
.createConsent);
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
// this.#sdk.CreateDataExportDirectDownloadUrl(
|
|
149
|
-
// this.#createDataExportDirectDownloadUrlRequestFactory.create(request),
|
|
150
|
-
// ),
|
|
151
|
-
// );
|
|
152
|
-
// this.#logger.verbose("createDataExportDirectDownloadUrl mutation complete");
|
|
153
|
-
// if (result.failure()) {
|
|
154
|
-
// this.#logger.error(
|
|
155
|
-
// "createDataExportDirectDownloadUrl mutation error",
|
|
156
|
-
// result,
|
|
157
|
-
// );
|
|
158
|
-
// return result.intoFailure();
|
|
159
|
-
// }
|
|
160
|
-
// this.#logger.info("createDataExportDirectDownloadUrl mutation success");
|
|
161
|
-
// return BWellTransactionResult.success(
|
|
162
|
-
// result.data().createDataExportDirectDownloadUrl,
|
|
163
|
-
// );
|
|
164
|
-
// }
|
|
131
|
+
createDataExportDirectDownloadUrl(request) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const validationResult = request.validate();
|
|
134
|
+
if (validationResult.failure()) {
|
|
135
|
+
return validationResult;
|
|
136
|
+
}
|
|
137
|
+
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("calling createDataExportDirectDownloadUrl mutation...");
|
|
138
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLUserManager_sdk, "f").CreateDataExportDirectDownloadUrl(request.data()));
|
|
139
|
+
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("createDataExportDirectDownloadUrl mutation complete");
|
|
140
|
+
if (result.failure()) {
|
|
141
|
+
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").error("createDataExportDirectDownloadUrl mutation error", result);
|
|
142
|
+
return result.intoFailure();
|
|
143
|
+
}
|
|
144
|
+
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").info("createDataExportDirectDownloadUrl mutation success");
|
|
145
|
+
return BWellTransactionResult.success(result.data().createDataExportDirectDownloadUrl);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
165
148
|
createVerificationUrl(request) {
|
|
166
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
150
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("calling createVerificationUrl mutation...");
|
|
@@ -31,7 +31,8 @@ export declare const NarrativeFieldsFragmentDoc = "\n fragment NarrativeField
|
|
|
31
31
|
export declare const HumanNameFieldsFragmentDoc = "\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
|
|
32
32
|
export declare const IdentifierFieldsFragmentDoc = "\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
33
33
|
export declare const PractitionerFieldsFragmentDoc = "\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const AnnotationFieldsFragmentDoc = "\n fragment AnnotationFields on Annotation {\n id\n authorString\n time\n text\n}\n ";
|
|
35
|
+
export declare const ReactionFieldsFragmentDoc = "\n fragment ReactionFields on AllergyIntoleranceReaction {\n id\n onset\n severity\n description\n manifestation {\n ...CodeableConceptFields\n }\n note {\n ...AnnotationFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment AnnotationFields on Annotation {\n id\n authorString\n time\n text\n}\n ";
|
|
35
36
|
export declare const MetaFieldsFragmentDoc = "\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
36
37
|
export declare const QuestionnaireResponseItemFieldsFragmentDoc = "\n fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {\n linkId\n text\n answer {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
37
38
|
export declare const QuestionnaireItemFieldsFragmentDoc = "\n fragment QuestionnaireItemFields on QuestionnaireItem {\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n valueInteger\n valueDate\n valueString\n valueCoding {\n ...CodingFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
|
|
@@ -44,8 +45,8 @@ export declare const GetDataSourceDocument = "\n query getDataSource($connect
|
|
|
44
45
|
export declare const GetMemberConnectionsDocument = "\n query getMemberConnections {\n subscriptions(_source: {value: \"https://icanbwell.com/proa\"}) {\n entry {\n resource {\n id\n meta {\n source\n }\n subscriptionStatus {\n error {\n ...CodeableConceptFields\n }\n extension {\n id\n url\n valueString\n }\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
45
46
|
export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionId: String!) {\n getOauthUrl(connectionId: $connectionId) {\n redirectUrl\n }\n}\n ";
|
|
46
47
|
export declare const UpdateDeviceRegistrationDocument = "\n mutation updateDeviceRegistration($deviceToken: String!, $platformName: String!, $applicationName: String!, $notificationPreference: Boolean!) {\n updateDeviceRegistration(\n input: {deviceToken: $deviceToken, platform: $platformName, applicationName: $applicationName, notificationPreference: $notificationPreference}\n ) {\n id\n }\n}\n ";
|
|
47
|
-
export declare const GetAllergyIntoleranceGroupsDocument = "\n query getAllergyIntoleranceGroups($request: AllergyIntoleranceGroupQueryRequest) {\n getAllergyIntoleranceGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n coding {\n ...CodingFields\n }\n references\n criticality {\n
|
|
48
|
-
export declare const GetAllergyIntolerancesDocument = "\n query getAllergyIntolerances($page: Int, $pageSize: Int, $code: SearchToken, $lastUpdated: SearchDate) {\n allergyIntolerances(\n _count: $pageSize\n _getpagesoffset: $page\n code: $code\n _lastUpdated: $lastUpdated\n ) {\n id\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n resourceType\n category\n code {\n
|
|
48
|
+
export declare const GetAllergyIntoleranceGroupsDocument = "\n query getAllergyIntoleranceGroups($request: AllergyIntoleranceGroupQueryRequest) {\n getAllergyIntoleranceGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n coding {\n ...CodingFields\n }\n references\n criticality {\n ...CodingFields\n }\n recordedDate\n source\n sourceDisplay\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
49
|
+
export declare const GetAllergyIntolerancesDocument = "\n query getAllergyIntolerances($page: Int, $pageSize: Int, $code: SearchToken, $lastUpdated: SearchDate) {\n allergyIntolerances(\n _count: $pageSize\n _getpagesoffset: $page\n code: $code\n _lastUpdated: $lastUpdated\n ) {\n id\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n resourceType\n category\n code {\n ...CodeableConceptFields\n }\n criticality\n onsetDateTime\n onsetPeriod {\n ...PeriodFields\n }\n text {\n ...NarrativeFields\n }\n type\n recorder {\n id\n reference\n type\n resource {\n ...PractitionerFields\n }\n }\n lastOccurrence\n reaction {\n ...ReactionFields\n }\n recordedDate\n note {\n ...AnnotationFields\n }\n verificationStatus {\n ...CodeableConceptFields\n }\n clinicalStatus {\n ...CodeableConceptFields\n }\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ReactionFields on AllergyIntoleranceReaction {\n id\n onset\n severity\n description\n manifestation {\n ...CodeableConceptFields\n }\n note {\n ...AnnotationFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment AnnotationFields on Annotation {\n id\n authorString\n time\n text\n}\n \n\n fragment AnnotationFields on Annotation {\n id\n authorString\n time\n text\n}\n ";
|
|
49
50
|
export declare const GetCarePlanGroupsDocument = "\n query getCarePlanGroups($request: CarePlanGroupQueryRequest) {\n getCarePlanGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n references\n coding {\n ...CodingFields\n }\n source\n period {\n ...PeriodFields\n }\n sourceDisplay\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
50
51
|
export declare const GetConditionGroupsDocument = "\n query getConditionGroups($request: ConditionGroupQueryRequest) {\n getConditionGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n coding {\n ...CodingFields\n }\n references\n recordedDate\n source\n sourceDisplay\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
51
52
|
export declare const GetDiagnosticReportLabGroupsDocument = "\n query getDiagnosticReportLabGroups($request: DiagnosticReportLabGroupQueryRequest) {\n getDiagnosticReportLabGroups(request: $request) {\n resources {\n id\n effectiveDateTime\n issued\n name\n performer\n references\n source\n sourceDisplay\n coding {\n ...CodingFields\n }\n }\n paging_info {\n ...PagingFields\n }\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
|
|
@@ -69,6 +70,7 @@ export declare const NextQuestionDocument = "\n mutation nextQuestion($questi
|
|
|
69
70
|
export declare const RequestConnectionDocument = "\n mutation requestConnection($city: String, $institution: String, $provider: String, $state: String) {\n requestConnection(\n city: $city\n institution: $institution\n provider: $provider\n state: $state\n ) {\n resourceType\n issue {\n severity\n code\n details {\n text\n }\n }\n }\n}\n ";
|
|
70
71
|
export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n id\n content\n specialty {\n code\n system\n display\n }\n location {\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n }\n }\n npi\n gender\n endpoint {\n name\n }\n score\n scores {\n value\n description\n calculation\n }\n }\n }\n}\n ";
|
|
71
72
|
export declare const CreateConsentDocument = "\n mutation createConsent($consentInput: ConsentInput!) {\n createConsent(consentInput: $consentInput) {\n id\n meta {\n source\n versionId\n lastUpdated\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n }\n status\n scope {\n coding {\n code\n system\n display\n }\n text\n }\n category {\n coding {\n code\n system\n display\n }\n text\n }\n patient {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n dateTime\n performer {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n organization {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n policy {\n authority\n uri\n }\n policyRule {\n coding {\n code\n system\n display\n }\n text\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
73
|
+
export declare const CreateDataExportDirectDownloadUrlDocument = "\n mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {\n createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)\n}\n ";
|
|
72
74
|
export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {\n createVerificationUrl(\n callbackURL: $callbackURL\n includeAttributeMatchingCheck: $includeAttributeMatchingCheck\n )\n}\n ";
|
|
73
75
|
export declare const DeleteDocument = "\n mutation delete {\n updateUserAccountStatus(operation: IMMEDIATE_EXECUTION) {\n resourceType\n issue {\n code\n severity\n details {\n text\n }\n }\n }\n}\n ";
|
|
74
76
|
export declare const GetProfileDocument = "\n query getProfile {\n userProfile {\n id\n address {\n line\n city\n state\n postalCode\n }\n telecom {\n system\n value\n use\n }\n gender\n birthDate\n name {\n family\n given\n }\n language\n }\n}\n ";
|
|
@@ -300,6 +302,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
300
302
|
headers: Headers;
|
|
301
303
|
status: number;
|
|
302
304
|
}>;
|
|
305
|
+
CreateDataExportDirectDownloadUrl(variables: Types.CreateDataExportDirectDownloadUrlMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
306
|
+
data: Types.CreateDataExportDirectDownloadUrlMutationResults;
|
|
307
|
+
errors?: GraphQLError[];
|
|
308
|
+
extensions?: any;
|
|
309
|
+
headers: Headers;
|
|
310
|
+
status: number;
|
|
311
|
+
}>;
|
|
303
312
|
CreateVerificationUrl(variables?: Types.CreateVerificationUrlMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
304
313
|
data: Types.CreateVerificationUrlMutationResults;
|
|
305
314
|
errors?: GraphQLError[];
|
|
@@ -183,6 +183,14 @@ export const PractitionerFieldsFragmentDoc = `
|
|
|
183
183
|
}
|
|
184
184
|
${HumanNameFieldsFragmentDoc}
|
|
185
185
|
${IdentifierFieldsFragmentDoc}`;
|
|
186
|
+
export const AnnotationFieldsFragmentDoc = `
|
|
187
|
+
fragment AnnotationFields on Annotation {
|
|
188
|
+
id
|
|
189
|
+
authorString
|
|
190
|
+
time
|
|
191
|
+
text
|
|
192
|
+
}
|
|
193
|
+
`;
|
|
186
194
|
export const ReactionFieldsFragmentDoc = `
|
|
187
195
|
fragment ReactionFields on AllergyIntoleranceReaction {
|
|
188
196
|
id
|
|
@@ -193,13 +201,11 @@ export const ReactionFieldsFragmentDoc = `
|
|
|
193
201
|
...CodeableConceptFields
|
|
194
202
|
}
|
|
195
203
|
note {
|
|
196
|
-
|
|
197
|
-
authorString
|
|
198
|
-
time
|
|
199
|
-
text
|
|
204
|
+
...AnnotationFields
|
|
200
205
|
}
|
|
201
206
|
}
|
|
202
|
-
${CodeableConceptFieldsFragmentDoc}
|
|
207
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
208
|
+
${AnnotationFieldsFragmentDoc}`;
|
|
203
209
|
export const MetaFieldsFragmentDoc = `
|
|
204
210
|
fragment MetaFields on Meta {
|
|
205
211
|
versionId
|
|
@@ -599,8 +605,7 @@ export const GetAllergyIntoleranceGroupsDocument = `
|
|
|
599
605
|
}
|
|
600
606
|
references
|
|
601
607
|
criticality {
|
|
602
|
-
|
|
603
|
-
display
|
|
608
|
+
...CodingFields
|
|
604
609
|
}
|
|
605
610
|
recordedDate
|
|
606
611
|
source
|
|
@@ -629,20 +634,12 @@ export const GetAllergyIntolerancesDocument = `
|
|
|
629
634
|
resourceType
|
|
630
635
|
category
|
|
631
636
|
code {
|
|
632
|
-
|
|
633
|
-
text
|
|
634
|
-
coding {
|
|
635
|
-
id
|
|
636
|
-
system
|
|
637
|
-
display
|
|
638
|
-
code
|
|
639
|
-
}
|
|
637
|
+
...CodeableConceptFields
|
|
640
638
|
}
|
|
641
639
|
criticality
|
|
642
640
|
onsetDateTime
|
|
643
641
|
onsetPeriod {
|
|
644
|
-
|
|
645
|
-
end
|
|
642
|
+
...PeriodFields
|
|
646
643
|
}
|
|
647
644
|
text {
|
|
648
645
|
...NarrativeFields
|
|
@@ -653,9 +650,7 @@ export const GetAllergyIntolerancesDocument = `
|
|
|
653
650
|
reference
|
|
654
651
|
type
|
|
655
652
|
resource {
|
|
656
|
-
...
|
|
657
|
-
...PractitionerFields
|
|
658
|
-
}
|
|
653
|
+
...PractitionerFields
|
|
659
654
|
}
|
|
660
655
|
}
|
|
661
656
|
lastOccurrence
|
|
@@ -664,9 +659,7 @@ export const GetAllergyIntolerancesDocument = `
|
|
|
664
659
|
}
|
|
665
660
|
recordedDate
|
|
666
661
|
note {
|
|
667
|
-
|
|
668
|
-
time
|
|
669
|
-
text
|
|
662
|
+
...AnnotationFields
|
|
670
663
|
}
|
|
671
664
|
verificationStatus {
|
|
672
665
|
...CodeableConceptFields
|
|
@@ -679,10 +672,12 @@ export const GetAllergyIntolerancesDocument = `
|
|
|
679
672
|
}
|
|
680
673
|
}
|
|
681
674
|
${MetaFieldsFragmentDoc}
|
|
675
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
676
|
+
${PeriodFieldsFragmentDoc}
|
|
682
677
|
${NarrativeFieldsFragmentDoc}
|
|
683
678
|
${PractitionerFieldsFragmentDoc}
|
|
684
679
|
${ReactionFieldsFragmentDoc}
|
|
685
|
-
${
|
|
680
|
+
${AnnotationFieldsFragmentDoc}`;
|
|
686
681
|
export const GetCarePlanGroupsDocument = `
|
|
687
682
|
query getCarePlanGroups($request: CarePlanGroupQueryRequest) {
|
|
688
683
|
getCarePlanGroups(request: $request) {
|
|
@@ -1316,6 +1311,11 @@ export const CreateConsentDocument = `
|
|
|
1316
1311
|
}
|
|
1317
1312
|
${CodingFieldsFragmentDoc}
|
|
1318
1313
|
${PeriodFieldsFragmentDoc}`;
|
|
1314
|
+
export const CreateDataExportDirectDownloadUrlDocument = `
|
|
1315
|
+
mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {
|
|
1316
|
+
createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)
|
|
1317
|
+
}
|
|
1318
|
+
`;
|
|
1319
1319
|
export const CreateVerificationUrlDocument = `
|
|
1320
1320
|
mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {
|
|
1321
1321
|
createVerificationUrl(
|
|
@@ -1498,6 +1498,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1498
1498
|
createConsent(variables, requestHeaders) {
|
|
1499
1499
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateConsentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createConsent', 'mutation', variables);
|
|
1500
1500
|
},
|
|
1501
|
+
CreateDataExportDirectDownloadUrl(variables, requestHeaders) {
|
|
1502
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateDataExportDirectDownloadUrlDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateDataExportDirectDownloadUrl', 'mutation', variables);
|
|
1503
|
+
},
|
|
1501
1504
|
CreateVerificationUrl(variables, requestHeaders) {
|
|
1502
1505
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateVerificationUrlDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateVerificationUrl', 'mutation', variables);
|
|
1503
1506
|
},
|
|
@@ -52,6 +52,10 @@ export type MetaFieldsFragment = {
|
|
|
52
52
|
display: string | null;
|
|
53
53
|
} | null> | null;
|
|
54
54
|
};
|
|
55
|
+
export type PeriodFieldsFragment = {
|
|
56
|
+
start: any | null;
|
|
57
|
+
end: any | null;
|
|
58
|
+
};
|
|
55
59
|
export type NarrativeFieldsFragment = {
|
|
56
60
|
div: any | null;
|
|
57
61
|
status: any | null;
|
|
@@ -125,9 +129,11 @@ export type ReactionFieldsFragment = {
|
|
|
125
129
|
text: any | null;
|
|
126
130
|
} | null> | null;
|
|
127
131
|
};
|
|
128
|
-
export type
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
export type AnnotationFieldsFragment = {
|
|
133
|
+
id: string | null;
|
|
134
|
+
authorString: string | null;
|
|
135
|
+
time: any | null;
|
|
136
|
+
text: any | null;
|
|
131
137
|
};
|
|
132
138
|
export type ValueFieldsFragment = {
|
|
133
139
|
valueString: string | null;
|
|
@@ -2376,6 +2382,8 @@ export type GetAllergyIntoleranceGroupsQueryResults = {
|
|
|
2376
2382
|
display: string | null;
|
|
2377
2383
|
} | null;
|
|
2378
2384
|
criticality: {
|
|
2385
|
+
id: string | null;
|
|
2386
|
+
system: any | null;
|
|
2379
2387
|
code: any | null;
|
|
2380
2388
|
display: string | null;
|
|
2381
2389
|
} | null;
|
|
@@ -2490,6 +2498,7 @@ export type GetAllergyIntolerancesQueryResults = {
|
|
|
2490
2498
|
} | null> | null;
|
|
2491
2499
|
} | null> | null;
|
|
2492
2500
|
note: Array<{
|
|
2501
|
+
id: string | null;
|
|
2493
2502
|
authorString: string | null;
|
|
2494
2503
|
time: any | null;
|
|
2495
2504
|
text: any | null;
|
|
@@ -4566,6 +4575,13 @@ export type CreateConsentMutationResults = {
|
|
|
4566
4575
|
} | null;
|
|
4567
4576
|
} | null;
|
|
4568
4577
|
};
|
|
4578
|
+
export type CreateDataExportDirectDownloadUrlMutationVariables = Types.Exact<{
|
|
4579
|
+
exportId: Types.Scalars['String']['input'];
|
|
4580
|
+
password: Types.Scalars['String']['input'];
|
|
4581
|
+
}>;
|
|
4582
|
+
export type CreateDataExportDirectDownloadUrlMutationResults = {
|
|
4583
|
+
createDataExportDirectDownloadUrl: string | null;
|
|
4584
|
+
};
|
|
4569
4585
|
export type CreateVerificationUrlMutationVariables = Types.Exact<{
|
|
4570
4586
|
callbackURL: Types.InputMaybe<Types.Scalars['String']['input']>;
|
|
4571
4587
|
includeAttributeMatchingCheck: Types.InputMaybe<Types.Scalars['Boolean']['input']>;
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED