@icanbwell/bwell-sdk-ts 1.36.3 → 1.36.4
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 +2 -2
- 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 +1 -2
- package/dist/api/base/activity/activity-manager.d.ts +35 -0
- package/dist/api/base/activity/activity-manager.js +1 -0
- package/dist/api/base/activity/get-tasks-request.d.ts +49 -0
- package/dist/api/base/activity/get-tasks-request.js +35 -0
- package/dist/api/base/activity/index.d.ts +4 -0
- package/dist/api/base/activity/index.js +2 -0
- package/dist/api/base/activity/types.d.ts +3 -0
- package/dist/api/base/activity/types.js +5 -0
- package/dist/api/base/activity/update-task-status-request.d.ts +18 -0
- package/dist/api/base/activity/update-task-status-request.js +15 -0
- package/dist/api/base/api-provider.d.ts +14 -8
- package/dist/api/base/connection/connection-manager.d.ts +2 -0
- package/dist/api/base/device/device-manager.d.ts +22 -0
- package/dist/api/base/device/device-manager.js +5 -0
- package/dist/api/base/device/device-request.d.ts +62 -0
- package/dist/api/base/device/device-request.js +71 -0
- package/dist/api/base/device/index.d.ts +2 -0
- package/dist/api/base/device/index.js +2 -0
- package/dist/api/base/event/event-manager.d.ts +16 -0
- package/dist/api/base/event/event-manager.js +1 -0
- package/dist/api/base/event/event-request.d.ts +35 -0
- package/dist/api/base/event/event-request.js +64 -0
- package/dist/api/base/event/index.d.ts +2 -0
- package/dist/api/base/event/index.js +1 -0
- package/dist/api/base/health-data/health-manager.d.ts +227 -4
- package/dist/api/base/health-data/index.d.ts +1 -1
- package/dist/api/base/index.d.ts +4 -0
- package/dist/api/base/index.js +4 -4
- package/dist/api/base/search/index.d.ts +4 -0
- package/dist/api/base/search/index.js +3 -0
- package/dist/api/base/search/request-connection-request.d.ts +24 -0
- package/dist/api/base/search/request-connection-request.js +3 -0
- package/dist/api/base/search/search-health-resources-request.d.ts +87 -0
- package/dist/api/base/search/search-health-resources-request.js +20 -0
- package/dist/api/base/search/search-manager.d.ts +58 -0
- package/dist/api/base/search/search-manager.js +1 -0
- package/dist/api/base/search/search-request.d.ts +84 -0
- package/dist/api/base/search/search-request.js +78 -0
- package/dist/api/base/user/create-data-export-direct-download-url-request.d.ts +14 -0
- package/dist/api/base/user/create-data-export-direct-download-url-request.js +21 -0
- package/dist/api/base/user/index.d.ts +2 -1
- package/dist/api/base/user/index.js +1 -4
- package/dist/api/base/user/user-manager.d.ts +7 -1
- package/dist/api/graphql-api/activity/activity-request-factories.d.ts +13 -0
- package/dist/api/graphql-api/activity/activity-request-factories.js +66 -0
- package/dist/api/graphql-api/activity/graphql-activity-manager.d.ts +14 -0
- package/dist/api/graphql-api/activity/graphql-activity-manager.js +72 -0
- package/dist/api/graphql-api/activity/index.d.ts +1 -0
- package/dist/api/graphql-api/activity/index.js +1 -0
- package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +3 -1
- package/dist/api/graphql-api/connection/graphql-connection-manager.js +21 -23
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.d.ts +18 -0
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.js +40 -0
- package/dist/api/graphql-api/connection/index.d.ts +1 -0
- package/dist/api/graphql-api/connection/index.js +1 -1
- package/dist/api/graphql-api/device/device-request-factory.d.ts +9 -0
- package/dist/api/graphql-api/device/device-request-factory.js +15 -0
- package/dist/api/graphql-api/device/graphql-device-manager.d.ts +13 -0
- package/dist/api/graphql-api/device/graphql-device-manager.js +73 -0
- package/dist/api/graphql-api/device/index.d.ts +1 -0
- package/dist/api/graphql-api/device/index.js +1 -0
- package/dist/api/graphql-api/event/event-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/event/event-request-factory.js +11 -0
- package/dist/api/graphql-api/event/graphql-event-manager.d.ts +15 -0
- package/dist/api/graphql-api/event/graphql-event-manager.js +65 -0
- package/dist/api/graphql-api/event/index.d.ts +1 -0
- package/dist/api/graphql-api/event/index.js +1 -0
- package/dist/api/graphql-api/graphql-api-provider.d.ts +13 -4
- package/dist/api/graphql-api/graphql-api-provider.js +9 -10
- package/dist/api/graphql-api/graphql-sdk/graphql-sdk.js +1 -1
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.d.ts +10 -0
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js +35 -0
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.d.ts +10 -0
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js +35 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +27 -3
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +328 -26
- package/dist/api/graphql-api/search/connection-search-request-factory.d.ts +7 -0
- package/dist/api/graphql-api/search/connection-search-request-factory.js +21 -0
- package/dist/api/graphql-api/search/graphql-search-manager.d.ts +17 -0
- package/dist/api/graphql-api/search/graphql-search-manager.js +133 -0
- package/dist/api/graphql-api/search/index.d.ts +1 -0
- package/dist/api/graphql-api/search/index.js +1 -0
- package/dist/api/graphql-api/search/provider-search-request-factory.d.ts +7 -0
- package/dist/api/graphql-api/search/provider-search-request-factory.js +21 -0
- package/dist/api/graphql-api/search/request-connection-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/search/request-connection-request-factory.js +12 -0
- package/dist/api/graphql-api/search/search-health-resources-request-factory.d.ts +14 -0
- package/dist/api/graphql-api/search/search-health-resources-request-factory.js +28 -0
- package/dist/api/graphql-api/search/search-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/search/search-request-factory.js +44 -0
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.js +9 -0
- package/dist/api/graphql-api/user/get-consent-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/user/get-consent-request-factory.js +8 -0
- package/dist/api/graphql-api/user/graphql-user-manager.d.ts +6 -3
- package/dist/api/graphql-api/user/graphql-user-manager.js +46 -68
- package/dist/bwell-sdk/bwell-sdk.d.ts +13 -2
- package/dist/bwell-sdk/bwell-sdk.js +27 -27
- package/dist/config/sdk-config.js +3 -3
- package/dist/graphql/operations/index.d.ts +285 -14
- package/dist/graphql/operations/index.js +2423 -225
- package/dist/graphql/operations/types.d.ts +15240 -2305
- package/dist/graphql/schema.d.ts +4800 -68156
- package/dist/graphql/schema.js +63 -7
- package/package.json +2 -4
- package/dist/api/graphql-api/healthdata/health-data-request-factory.d.ts +0 -12
- package/dist/api/graphql-api/healthdata/health-data-request-factory.js +0 -12
package/dist/graphql/schema.js
CHANGED
|
@@ -84,6 +84,11 @@ export var ContactUseType;
|
|
|
84
84
|
ContactUseType["Mobile"] = "mobile";
|
|
85
85
|
ContactUseType["Work"] = "work";
|
|
86
86
|
})(ContactUseType || (ContactUseType = {}));
|
|
87
|
+
/** Supported ISO 4217 CurrencyCodes */
|
|
88
|
+
export var CurrencyCode;
|
|
89
|
+
(function (CurrencyCode) {
|
|
90
|
+
CurrencyCode["Usd"] = "USD";
|
|
91
|
+
})(CurrencyCode || (CurrencyCode = {}));
|
|
87
92
|
/** Defines the connection statuses */
|
|
88
93
|
export var DataConnectionStatus;
|
|
89
94
|
(function (DataConnectionStatus) {
|
|
@@ -145,6 +150,11 @@ export var EndpointStatusEnum;
|
|
|
145
150
|
EndpointStatusEnum["Suspended"] = "SUSPENDED";
|
|
146
151
|
EndpointStatusEnum["Test"] = "TEST";
|
|
147
152
|
})(EndpointStatusEnum || (EndpointStatusEnum = {}));
|
|
153
|
+
export var EventType;
|
|
154
|
+
(function (EventType) {
|
|
155
|
+
EventType["CustomEvent"] = "CUSTOM_EVENT";
|
|
156
|
+
EventType["MobilePushOpen"] = "MOBILE_PUSH_OPEN";
|
|
157
|
+
})(EventType || (EventType = {}));
|
|
148
158
|
export var FhirPersonGender;
|
|
149
159
|
(function (FhirPersonGender) {
|
|
150
160
|
FhirPersonGender["Female"] = "female";
|
|
@@ -203,6 +213,18 @@ export var GenderType;
|
|
|
203
213
|
GenderType["Other"] = "other";
|
|
204
214
|
GenderType["Unknown"] = "unknown";
|
|
205
215
|
})(GenderType || (GenderType = {}));
|
|
216
|
+
export var HealthSummaryCategory;
|
|
217
|
+
(function (HealthSummaryCategory) {
|
|
218
|
+
HealthSummaryCategory["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
|
|
219
|
+
HealthSummaryCategory["CarePlan"] = "CARE_PLAN";
|
|
220
|
+
HealthSummaryCategory["Condition"] = "CONDITION";
|
|
221
|
+
HealthSummaryCategory["Encounter"] = "ENCOUNTER";
|
|
222
|
+
HealthSummaryCategory["Immunization"] = "IMMUNIZATION";
|
|
223
|
+
HealthSummaryCategory["Labs"] = "LABS";
|
|
224
|
+
HealthSummaryCategory["Medications"] = "MEDICATIONS";
|
|
225
|
+
HealthSummaryCategory["Procedure"] = "PROCEDURE";
|
|
226
|
+
HealthSummaryCategory["VitalSigns"] = "VITAL_SIGNS";
|
|
227
|
+
})(HealthSummaryCategory || (HealthSummaryCategory = {}));
|
|
206
228
|
export var IdentifierUseKind;
|
|
207
229
|
(function (IdentifierUseKind) {
|
|
208
230
|
IdentifierUseKind["Official"] = "_official";
|
|
@@ -231,6 +253,19 @@ export var LogLevel;
|
|
|
231
253
|
LogLevel["Verbose"] = "VERBOSE";
|
|
232
254
|
LogLevel["Warn"] = "WARN";
|
|
233
255
|
})(LogLevel || (LogLevel = {}));
|
|
256
|
+
/** Classification of type of observation */
|
|
257
|
+
export var ObservationCategory;
|
|
258
|
+
(function (ObservationCategory) {
|
|
259
|
+
ObservationCategory["Activity"] = "ACTIVITY";
|
|
260
|
+
ObservationCategory["Exam"] = "EXAM";
|
|
261
|
+
ObservationCategory["Imaging"] = "IMAGING";
|
|
262
|
+
ObservationCategory["Laboratory"] = "LABORATORY";
|
|
263
|
+
ObservationCategory["Procedure"] = "PROCEDURE";
|
|
264
|
+
ObservationCategory["SocialHistory"] = "SOCIAL_HISTORY";
|
|
265
|
+
ObservationCategory["Survey"] = "SURVEY";
|
|
266
|
+
ObservationCategory["Therapy"] = "THERAPY";
|
|
267
|
+
ObservationCategory["VitalSigns"] = "VITAL_SIGNS";
|
|
268
|
+
})(ObservationCategory || (ObservationCategory = {}));
|
|
234
269
|
export var Operation;
|
|
235
270
|
(function (Operation) {
|
|
236
271
|
Operation["CancelDelete"] = "CANCEL_DELETE";
|
|
@@ -317,6 +352,19 @@ export var Questionnaire_Enum_Schema;
|
|
|
317
352
|
(function (Questionnaire_Enum_Schema) {
|
|
318
353
|
Questionnaire_Enum_Schema["QuestionnaireResponse"] = "QuestionnaireResponse";
|
|
319
354
|
})(Questionnaire_Enum_Schema || (Questionnaire_Enum_Schema = {}));
|
|
355
|
+
export var ResourceType;
|
|
356
|
+
(function (ResourceType) {
|
|
357
|
+
ResourceType["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
|
|
358
|
+
ResourceType["CarePlan"] = "CARE_PLAN";
|
|
359
|
+
ResourceType["Condition"] = "CONDITION";
|
|
360
|
+
ResourceType["Encounter"] = "ENCOUNTER";
|
|
361
|
+
ResourceType["Immunization"] = "IMMUNIZATION";
|
|
362
|
+
ResourceType["MedicationDispense"] = "MEDICATION_DISPENSE";
|
|
363
|
+
ResourceType["MedicationRequest"] = "MEDICATION_REQUEST";
|
|
364
|
+
ResourceType["MedicationStatement"] = "MEDICATION_STATEMENT";
|
|
365
|
+
ResourceType["Observation"] = "OBSERVATION";
|
|
366
|
+
ResourceType["Procedure"] = "PROCEDURE";
|
|
367
|
+
})(ResourceType || (ResourceType = {}));
|
|
320
368
|
export var SearchResultTypeEnum;
|
|
321
369
|
(function (SearchResultTypeEnum) {
|
|
322
370
|
SearchResultTypeEnum["Insurance"] = "INSURANCE";
|
|
@@ -373,15 +421,23 @@ export var SyncStatus;
|
|
|
373
421
|
SyncStatus["Retrieved"] = "RETRIEVED";
|
|
374
422
|
SyncStatus["Retrieving"] = "RETRIEVING";
|
|
375
423
|
})(SyncStatus || (SyncStatus = {}));
|
|
424
|
+
export var TaskStatus;
|
|
425
|
+
(function (TaskStatus) {
|
|
426
|
+
TaskStatus["Accepted"] = "ACCEPTED";
|
|
427
|
+
TaskStatus["Cancelled"] = "CANCELLED";
|
|
428
|
+
TaskStatus["Completed"] = "COMPLETED";
|
|
429
|
+
TaskStatus["Draft"] = "DRAFT";
|
|
430
|
+
TaskStatus["EnteredInError"] = "ENTERED_IN_ERROR";
|
|
431
|
+
TaskStatus["Failed"] = "FAILED";
|
|
432
|
+
TaskStatus["InProgress"] = "IN_PROGRESS";
|
|
433
|
+
TaskStatus["OnHold"] = "ON_HOLD";
|
|
434
|
+
TaskStatus["Ready"] = "READY";
|
|
435
|
+
TaskStatus["Received"] = "RECEIVED";
|
|
436
|
+
TaskStatus["Rejected"] = "REJECTED";
|
|
437
|
+
TaskStatus["Requested"] = "REQUESTED";
|
|
438
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
376
439
|
export var TotalType;
|
|
377
440
|
(function (TotalType) {
|
|
378
441
|
TotalType["Accurate"] = "accurate";
|
|
379
442
|
TotalType["Estimate"] = "estimate";
|
|
380
443
|
})(TotalType || (TotalType = {}));
|
|
381
|
-
export var Link__Purpose;
|
|
382
|
-
(function (Link__Purpose) {
|
|
383
|
-
/** `EXECUTION` features provide metadata necessary for operation execution. */
|
|
384
|
-
Link__Purpose["Execution"] = "EXECUTION";
|
|
385
|
-
/** `SECURITY` features provide metadata necessary to securely resolve fields. */
|
|
386
|
-
Link__Purpose["Security"] = "SECURITY";
|
|
387
|
-
})(Link__Purpose || (Link__Purpose = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icanbwell/bwell-sdk-ts",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.4",
|
|
4
4
|
"description": "b.well TypeScript SDK",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"directory": "bwell-sdk-typescript"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "npm run generate
|
|
21
|
+
"build": "npm run generate && tsc --project tsconfig.build.json",
|
|
22
22
|
"build:dev": "tsc --project tsconfig.build.json",
|
|
23
23
|
"clean": "rimraf ./dist",
|
|
24
24
|
"coverage": "open ./coverage/lcov-report/index.html",
|
|
@@ -26,12 +26,10 @@
|
|
|
26
26
|
"format:check": "prettier . --check",
|
|
27
27
|
"gen:clean": "rimraf ./src/graphql",
|
|
28
28
|
"generate": "npm run generate:sdl && npm run generate:types && npm run generate:version",
|
|
29
|
-
"generate:v2": "npm run generate:sdl:v2 && npm run generate:types && npm run generate:version",
|
|
30
29
|
"generate:docs": "typedoc --tsconfig tsconfig.json && npm run format",
|
|
31
30
|
"generate:types": "graphql-codegen --config ./codegen/codegen.ts",
|
|
32
31
|
"generate:version": "node ./scripts/generate-version-file.js",
|
|
33
32
|
"generate:sdl": "npm run --prefix ../graphql generate:sdl",
|
|
34
|
-
"generate:sdl:v2": "npm run --prefix ../graphql generate:sdl:v2",
|
|
35
33
|
"lint": "eslint .",
|
|
36
34
|
"prebuild": "npm run clean",
|
|
37
35
|
"prettier": "prettier",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GetAllergyIntolerancesQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { HealthDataRequest } from "../../base/index.js";
|
|
4
|
-
/**
|
|
5
|
-
* @note All health data request queries (non group resource queries) should take
|
|
6
|
-
* the same variables so this aliases GetAllergyIntolerancesQueryVariables as a
|
|
7
|
-
* generic placeholder type
|
|
8
|
-
*/
|
|
9
|
-
export type HealthDataRequestVariables = GetAllergyIntolerancesQueryVariables;
|
|
10
|
-
export declare class HealthDataRequestFactory implements RequestFactory<HealthDataRequest, HealthDataRequestVariables> {
|
|
11
|
-
create(request: HealthDataRequest): GetAllergyIntolerancesQueryVariables;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class HealthDataRequestFactory {
|
|
2
|
-
create(request) {
|
|
3
|
-
var _a, _b;
|
|
4
|
-
const input = request.data();
|
|
5
|
-
return {
|
|
6
|
-
page: input.page,
|
|
7
|
-
pageSize: input.pageSize,
|
|
8
|
-
code: (_a = input.groupCode) !== null && _a !== void 0 ? _a : null,
|
|
9
|
-
lastUpdated: (_b = input.lastUpdated) !== null && _b !== void 0 ? _b : null,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|