@icanbwell/bwell-sdk-ts 1.105.0 → 1.106.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/base/user/get-consents-request.d.ts +7 -4
- package/dist/api/base/user/get-consents-request.js +4 -0
- package/dist/api/graphql-api/user/get-consent-request-factory.js +2 -0
- package/dist/graphql/operations/index.d.ts +1 -1
- package/dist/graphql/operations/index.js +2 -2
- package/dist/graphql/operations/types.d.ts +1 -0
- package/dist/graphql/schema.d.ts +112 -0
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { CategoryCode as GraphQLCategoryCode } from "../../../graphql/schema.js";
|
|
2
1
|
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
3
2
|
import { CategoryCode } from "./types.js";
|
|
4
3
|
export type GetConsentsRequestInput = {
|
|
5
4
|
category: CategoryCode;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Optional bare organization id used to narrow the search to the active
|
|
7
|
+
* consent for a specific organization and category combination, matching
|
|
8
|
+
* `CreateConsentRequest`. When omitted, results are not filtered by
|
|
9
|
+
* organization.
|
|
10
|
+
*/
|
|
11
|
+
organizationId?: string;
|
|
9
12
|
};
|
|
10
13
|
export declare class GetConsentsRequestValidator implements Validator<GetConsentsRequestInput> {
|
|
11
14
|
validate(data: GetConsentsRequestInput, errors: ErrorsCollector): void;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
import { isBlank, isUndefined } from "../../../utils/index.js";
|
|
2
3
|
import { isValidCategoryCode } from "./types.js";
|
|
3
4
|
export class GetConsentsRequestValidator {
|
|
4
5
|
validate(data, errors) {
|
|
5
6
|
if (!isValidCategoryCode(data.category)) {
|
|
6
7
|
errors.add(`Invalid consent category code: "${data.category}"`);
|
|
7
8
|
}
|
|
9
|
+
if (!isUndefined(data.organizationId) && isBlank(data.organizationId)) {
|
|
10
|
+
errors.add("organizationId cannot be empty");
|
|
11
|
+
}
|
|
8
12
|
}
|
|
9
13
|
}
|
|
10
14
|
export class GetConsentsRequest extends ValidationRequest {
|
|
@@ -193,7 +193,7 @@ export declare const CreateVerificationUrlDocument = "\n mutation CreateVerif
|
|
|
193
193
|
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 ";
|
|
194
194
|
export declare const GetAccessHistoryDocument = "\n query GetAccessHistory {\n getAccessHistory {\n summary {\n generatedAt\n windowDays\n }\n accessors {\n reference {\n reference\n display\n }\n totalCount\n lastAccessed\n organizations {\n reference\n name\n sourceId\n }\n purposeOfEvent {\n system\n code\n display\n }\n resourceTypes {\n type\n count\n }\n }\n }\n}\n ";
|
|
195
195
|
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 identifier {\n ...IdentifierFields\n }\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 text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
196
|
-
export declare const SearchConsentDocument = "\n query searchConsent($categoryCode: CategoryCode) {\n search(params: {category: $categoryCode}) {\n resourceType\n id\n meta {\n ...MetaFields\n }\n status\n scope {\n text\n coding {\n code\n system\n display\n }\n }\n category {\n text\n coding {\n code\n system\n display\n }\n }\n patient {\n reference\n }\n provision {\n type\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 system\n code\n display\n}\n ";
|
|
196
|
+
export declare const SearchConsentDocument = "\n query searchConsent($categoryCode: CategoryCode, $organizationId: String) {\n search(params: {category: $categoryCode, organizationId: $organizationId}) {\n resourceType\n id\n meta {\n ...MetaFields\n }\n status\n scope {\n text\n coding {\n code\n system\n display\n }\n }\n category {\n text\n coding {\n code\n system\n display\n }\n }\n patient {\n reference\n }\n provision {\n type\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 system\n code\n display\n}\n ";
|
|
197
197
|
export declare const UpdateUserProfileDocument = "\n mutation updateUserProfile($person: FHIRPersonInput) {\n updateUserProfile(input: $person) {\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 ";
|
|
198
198
|
export declare const VerificationStatusDocument = "\n query VerificationStatus {\n verificationStatus {\n resourceType\n id\n status\n statusDate\n lastPerformed\n errorCode\n }\n}\n ";
|
|
199
199
|
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
@@ -5135,8 +5135,8 @@ export const GetProfileDocument = `
|
|
|
5135
5135
|
}
|
|
5136
5136
|
${IdentifierFieldsFragmentDoc}`;
|
|
5137
5137
|
export const SearchConsentDocument = `
|
|
5138
|
-
query searchConsent($categoryCode: CategoryCode) {
|
|
5139
|
-
search(params: {category: $categoryCode}) {
|
|
5138
|
+
query searchConsent($categoryCode: CategoryCode, $organizationId: String) {
|
|
5139
|
+
search(params: {category: $categoryCode, organizationId: $organizationId}) {
|
|
5140
5140
|
resourceType
|
|
5141
5141
|
id
|
|
5142
5142
|
meta {
|
|
@@ -30642,6 +30642,7 @@ export type GetProfileQueryResults = {
|
|
|
30642
30642
|
};
|
|
30643
30643
|
export type SearchConsentQueryVariables = Types.Exact<{
|
|
30644
30644
|
categoryCode: Types.InputMaybe<Types.CategoryCode>;
|
|
30645
|
+
organizationId: Types.InputMaybe<Types.Scalars['String']['input']>;
|
|
30645
30646
|
}>;
|
|
30646
30647
|
export type SearchConsentQueryResults = {
|
|
30647
30648
|
search: Array<{
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -492,6 +492,31 @@ export type AppointmentParticipantActorReference = {
|
|
|
492
492
|
reference?: Maybe<Scalars['String']['output']>;
|
|
493
493
|
resource?: Maybe<AppointmentParticipantActor>;
|
|
494
494
|
};
|
|
495
|
+
export type AppointmentSlot = {
|
|
496
|
+
__typename?: 'AppointmentSlot';
|
|
497
|
+
comment?: Maybe<Scalars['String']['output']>;
|
|
498
|
+
end?: Maybe<Scalars['String']['output']>;
|
|
499
|
+
extension?: Maybe<Array<SchedulingExtension>>;
|
|
500
|
+
id: Scalars['ID']['output'];
|
|
501
|
+
identifier?: Maybe<Array<SchedulingIdentifier>>;
|
|
502
|
+
participant?: Maybe<Array<AppointmentSlotParticipant>>;
|
|
503
|
+
reasonCode?: Maybe<Array<SchedulingCodeableConcept>>;
|
|
504
|
+
requestedPeriod?: Maybe<Array<SchedulingPeriod>>;
|
|
505
|
+
serviceType?: Maybe<Array<SchedulingCodeableConcept>>;
|
|
506
|
+
start?: Maybe<Scalars['String']['output']>;
|
|
507
|
+
status: Scalars['String']['output'];
|
|
508
|
+
};
|
|
509
|
+
export type AppointmentSlotBundle = {
|
|
510
|
+
__typename?: 'AppointmentSlotBundle';
|
|
511
|
+
appointments: Array<AppointmentSlot>;
|
|
512
|
+
total: Scalars['Int']['output'];
|
|
513
|
+
};
|
|
514
|
+
export type AppointmentSlotParticipant = {
|
|
515
|
+
__typename?: 'AppointmentSlotParticipant';
|
|
516
|
+
actorReference?: Maybe<Scalars['String']['output']>;
|
|
517
|
+
status?: Maybe<Scalars['Code']['output']>;
|
|
518
|
+
type?: Maybe<Array<SchedulingCodeableConcept>>;
|
|
519
|
+
};
|
|
495
520
|
export type AppointmentSlotReference = {
|
|
496
521
|
__typename?: 'AppointmentSlotReference';
|
|
497
522
|
display?: Maybe<Scalars['String']['output']>;
|
|
@@ -2986,6 +3011,18 @@ export type FilterValuesType = {
|
|
|
2986
3011
|
field?: Maybe<FilterFieldEnum>;
|
|
2987
3012
|
values?: Maybe<Array<Maybe<FilterValue>>>;
|
|
2988
3013
|
};
|
|
3014
|
+
export type FindAppointmentsInput = {
|
|
3015
|
+
count?: InputMaybe<Scalars['Int']['input']>;
|
|
3016
|
+
end?: InputMaybe<Scalars['String']['input']>;
|
|
3017
|
+
locationReferenceId?: InputMaybe<Scalars['ID']['input']>;
|
|
3018
|
+
organizationId: Scalars['ID']['input'];
|
|
3019
|
+
practitionerReferenceId?: InputMaybe<Scalars['ID']['input']>;
|
|
3020
|
+
specialty?: InputMaybe<Scalars['String']['input']>;
|
|
3021
|
+
start?: InputMaybe<Scalars['String']['input']>;
|
|
3022
|
+
};
|
|
3023
|
+
export type FindLocationsInput = {
|
|
3024
|
+
organizationId: Scalars['ID']['input'];
|
|
3025
|
+
};
|
|
2989
3026
|
export type FlowMetadata = {
|
|
2990
3027
|
__typename?: 'FlowMetadata';
|
|
2991
3028
|
id: Scalars['String']['output'];
|
|
@@ -3218,6 +3255,9 @@ export type HealthcareServiceProvidedByReference = {
|
|
|
3218
3255
|
reference?: Maybe<Scalars['String']['output']>;
|
|
3219
3256
|
type?: Maybe<Scalars['URI']['output']>;
|
|
3220
3257
|
};
|
|
3258
|
+
export type HoldAppointmentInput = {
|
|
3259
|
+
appointmentReferenceId: Scalars['ID']['input'];
|
|
3260
|
+
};
|
|
3221
3261
|
/** Follows https://www.hl7.org/fhir/location-definitions.html#Location.hoursOfOperation */
|
|
3222
3262
|
export type HoursOfOperationType = {
|
|
3223
3263
|
__typename?: 'HoursOfOperationType';
|
|
@@ -4354,6 +4394,7 @@ export type Mutation = {
|
|
|
4354
4394
|
disconnectConnection: DisconnectConnection;
|
|
4355
4395
|
exchangeAuthCode: AuthTokens;
|
|
4356
4396
|
findOrCreatePatient?: Maybe<Patient>;
|
|
4397
|
+
holdAppointment: AppointmentSlot;
|
|
4357
4398
|
interacted?: Maybe<Scalars['Boolean']['output']>;
|
|
4358
4399
|
itemInteracted?: Maybe<Scalars['Boolean']['output']>;
|
|
4359
4400
|
/**
|
|
@@ -4537,6 +4578,9 @@ export type MutationFindOrCreatePatientArgs = {
|
|
|
4537
4578
|
clientSlug?: InputMaybe<Scalars['String']['input']>;
|
|
4538
4579
|
patient?: InputMaybe<PatientInput>;
|
|
4539
4580
|
};
|
|
4581
|
+
export type MutationHoldAppointmentArgs = {
|
|
4582
|
+
appointment: HoldAppointmentInput;
|
|
4583
|
+
};
|
|
4540
4584
|
export type MutationInteractedArgs = {
|
|
4541
4585
|
interaction?: InputMaybe<InteractionType>;
|
|
4542
4586
|
result_id?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5966,6 +6010,8 @@ export type Query = {
|
|
|
5966
6010
|
devices?: Maybe<DeviceBundle>;
|
|
5967
6011
|
diagnosticReports?: Maybe<DiagnosticReportBundle>;
|
|
5968
6012
|
explanationOfBenefits?: Maybe<ExplanationOfBenefitBundle>;
|
|
6013
|
+
findAppointments: AppointmentSlotBundle;
|
|
6014
|
+
findLocations: SchedulingLocationBundle;
|
|
5969
6015
|
findPersonWithClientSlugAndId?: Maybe<PersonInfoForLogin>;
|
|
5970
6016
|
/**
|
|
5971
6017
|
* Returns the access history for the currently authenticated person — who has
|
|
@@ -6201,6 +6247,12 @@ export type QueryExplanationOfBenefitsArgs = {
|
|
|
6201
6247
|
provider?: InputMaybe<SearchReference>;
|
|
6202
6248
|
status?: InputMaybe<SearchToken>;
|
|
6203
6249
|
};
|
|
6250
|
+
export type QueryFindAppointmentsArgs = {
|
|
6251
|
+
search: FindAppointmentsInput;
|
|
6252
|
+
};
|
|
6253
|
+
export type QueryFindLocationsArgs = {
|
|
6254
|
+
organization: FindLocationsInput;
|
|
6255
|
+
};
|
|
6204
6256
|
export type QueryFindPersonWithClientSlugAndIdArgs = {
|
|
6205
6257
|
input?: InputMaybe<ClientSlugAndIdentifierInput>;
|
|
6206
6258
|
};
|
|
@@ -7149,6 +7201,66 @@ export type RouteDefinition = {
|
|
|
7149
7201
|
meta?: Maybe<IdentityAuthed_Meta>;
|
|
7150
7202
|
path?: Maybe<Scalars['String']['output']>;
|
|
7151
7203
|
};
|
|
7204
|
+
export type SchedulingAddress = {
|
|
7205
|
+
__typename?: 'SchedulingAddress';
|
|
7206
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
7207
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
7208
|
+
line?: Maybe<Array<Scalars['String']['output']>>;
|
|
7209
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
7210
|
+
state?: Maybe<Scalars['String']['output']>;
|
|
7211
|
+
};
|
|
7212
|
+
export type SchedulingCodeableConcept = {
|
|
7213
|
+
__typename?: 'SchedulingCodeableConcept';
|
|
7214
|
+
coding?: Maybe<Array<SchedulingCoding>>;
|
|
7215
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
7216
|
+
};
|
|
7217
|
+
export type SchedulingCoding = {
|
|
7218
|
+
__typename?: 'SchedulingCoding';
|
|
7219
|
+
code?: Maybe<Scalars['Code']['output']>;
|
|
7220
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
7221
|
+
system?: Maybe<Scalars['URI']['output']>;
|
|
7222
|
+
};
|
|
7223
|
+
export type SchedulingContactPoint = {
|
|
7224
|
+
__typename?: 'SchedulingContactPoint';
|
|
7225
|
+
system?: Maybe<Scalars['Code']['output']>;
|
|
7226
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
7227
|
+
};
|
|
7228
|
+
export type SchedulingExtension = {
|
|
7229
|
+
__typename?: 'SchedulingExtension';
|
|
7230
|
+
url: Scalars['String']['output'];
|
|
7231
|
+
valueDateTime?: Maybe<Scalars['String']['output']>;
|
|
7232
|
+
};
|
|
7233
|
+
export type SchedulingIdentifier = {
|
|
7234
|
+
__typename?: 'SchedulingIdentifier';
|
|
7235
|
+
system?: Maybe<Scalars['URI']['output']>;
|
|
7236
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
7237
|
+
};
|
|
7238
|
+
export type SchedulingLocation = {
|
|
7239
|
+
__typename?: 'SchedulingLocation';
|
|
7240
|
+
address?: Maybe<SchedulingAddress>;
|
|
7241
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
7242
|
+
id: Scalars['ID']['output'];
|
|
7243
|
+
identifier?: Maybe<Array<SchedulingIdentifier>>;
|
|
7244
|
+
managingOrganizationId?: Maybe<Scalars['String']['output']>;
|
|
7245
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
7246
|
+
position?: Maybe<SchedulingPosition>;
|
|
7247
|
+
telecom?: Maybe<Array<SchedulingContactPoint>>;
|
|
7248
|
+
};
|
|
7249
|
+
export type SchedulingLocationBundle = {
|
|
7250
|
+
__typename?: 'SchedulingLocationBundle';
|
|
7251
|
+
locations: Array<SchedulingLocation>;
|
|
7252
|
+
total: Scalars['Int']['output'];
|
|
7253
|
+
};
|
|
7254
|
+
export type SchedulingPeriod = {
|
|
7255
|
+
__typename?: 'SchedulingPeriod';
|
|
7256
|
+
end?: Maybe<Scalars['DateTime']['output']>;
|
|
7257
|
+
start?: Maybe<Scalars['DateTime']['output']>;
|
|
7258
|
+
};
|
|
7259
|
+
export type SchedulingPosition = {
|
|
7260
|
+
__typename?: 'SchedulingPosition';
|
|
7261
|
+
latitude?: Maybe<Scalars['Float']['output']>;
|
|
7262
|
+
longitude?: Maybe<Scalars['Float']['output']>;
|
|
7263
|
+
};
|
|
7152
7264
|
export type Schema = {
|
|
7153
7265
|
__typename?: 'Schema';
|
|
7154
7266
|
description?: Maybe<Scalars['String']['output']>;
|