@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
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { isNotUndefined } from "../../../utils/index.js";
|
|
2
|
-
export class SearchRequestFactory {
|
|
3
|
-
create(request) {
|
|
4
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5
|
-
const input = request.data();
|
|
6
|
-
/**
|
|
7
|
-
* client should not be set
|
|
8
|
-
* @see ATC-4980
|
|
9
|
-
*/
|
|
10
|
-
const client = null;
|
|
11
|
-
// All the properties must be provided but can be null.
|
|
12
|
-
const searchTerm = (_a = input.searchTerm) !== null && _a !== void 0 ? _a : null;
|
|
13
|
-
const specialtyFilters = (_b = input.specialtyFilters) !== null && _b !== void 0 ? _b : null;
|
|
14
|
-
const includePopulatedPROAonly = (_c = input.includePopulatedPROAonly) !== null && _c !== void 0 ? _c : false;
|
|
15
|
-
const organizationTypeFilters = (_d = input.organizationTypeFilters) !== null && _d !== void 0 ? _d : null;
|
|
16
|
-
const gender = (_e = input.gender) !== null && _e !== void 0 ? _e : null;
|
|
17
|
-
const location = (_f = input.location) !== null && _f !== void 0 ? _f : null;
|
|
18
|
-
let sortBy = null;
|
|
19
|
-
// Remaps the type to the correct graphql enums
|
|
20
|
-
if (isNotUndefined(input.sortBy)) {
|
|
21
|
-
sortBy = {
|
|
22
|
-
field: (_g = input.sortBy.field) !== null && _g !== void 0 ? _g : null,
|
|
23
|
-
order: (_h = input.sortBy.order) !== null && _h !== void 0 ? _h : null,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const filterFields = (_j = input.filterFields) !== null && _j !== void 0 ? _j : null;
|
|
27
|
-
const page = input.page;
|
|
28
|
-
const pageSize = input.pageSize;
|
|
29
|
-
const data = {
|
|
30
|
-
client,
|
|
31
|
-
searchTerm,
|
|
32
|
-
specialtyFilters,
|
|
33
|
-
includePopulatedPROAonly,
|
|
34
|
-
organizationTypeFilters,
|
|
35
|
-
gender,
|
|
36
|
-
location,
|
|
37
|
-
sortBy,
|
|
38
|
-
filterFields,
|
|
39
|
-
page,
|
|
40
|
-
pageSize,
|
|
41
|
-
};
|
|
42
|
-
return data;
|
|
43
|
-
}
|
|
44
|
-
}
|
package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CreateDataExportDirectDownloadUrlMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { CreateDataExportDirectDownloadUrlRequest } from "../../base/user/create-data-export-direct-download-url-request.js";
|
|
4
|
-
export declare class CreateDataExportDirectDownloadUrlRequestFactory implements RequestFactory<CreateDataExportDirectDownloadUrlRequest, CreateDataExportDirectDownloadUrlMutationVariables> {
|
|
5
|
-
create(request: CreateDataExportDirectDownloadUrlRequest): CreateDataExportDirectDownloadUrlMutationVariables;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SearchConsentQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
-
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
-
import { GetConsentsRequest } from "../../base/user/index.js";
|
|
4
|
-
export declare class GetConsentRequestFactory implements RequestFactory<GetConsentsRequest, SearchConsentQueryVariables> {
|
|
5
|
-
create(request: GetConsentsRequest): SearchConsentQueryVariables;
|
|
6
|
-
}
|