@icanbwell/bwell-sdk-ts 1.47.0 → 1.48.0-rc.1765240604

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.
Files changed (34) hide show
  1. package/dist/__version__.d.ts +1 -1
  2. package/dist/__version__.js +1 -1
  3. package/dist/api/base/api-provider.d.ts +2 -0
  4. package/dist/api/base/financial/explanation-of-benefit.d.ts +32 -0
  5. package/dist/api/base/financial/explanation-of-benefit.js +66 -0
  6. package/dist/api/base/financial/financial-manager.d.ts +4 -1
  7. package/dist/api/base/index.d.ts +1 -0
  8. package/dist/api/base/index.js +1 -0
  9. package/dist/api/base/support/get-support-requests-request.d.ts +16 -0
  10. package/dist/api/base/support/get-support-requests-request.js +14 -0
  11. package/dist/api/base/support/index.d.ts +2 -0
  12. package/dist/api/base/support/index.js +2 -0
  13. package/dist/api/base/support/support-manager.d.ts +16 -0
  14. package/dist/api/base/support/support-manager.js +1 -0
  15. package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.d.ts +9 -0
  16. package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.js +23 -0
  17. package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +3 -1
  18. package/dist/api/graphql-api/financial/graphql-financial-manager.js +20 -2
  19. package/dist/api/graphql-api/graphql-api-provider.d.ts +2 -0
  20. package/dist/api/graphql-api/graphql-api-provider.js +2 -0
  21. package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.d.ts +6 -0
  22. package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.js +16 -0
  23. package/dist/api/graphql-api/support/graphql-support-manager.d.ts +15 -0
  24. package/dist/api/graphql-api/support/graphql-support-manager.js +54 -0
  25. package/dist/api/graphql-api/support/index.d.ts +1 -0
  26. package/dist/api/graphql-api/support/index.js +1 -0
  27. package/dist/bwell-sdk/bwell-sdk.d.ts +2 -0
  28. package/dist/bwell-sdk/bwell-sdk.js +3 -0
  29. package/dist/graphql/operations/index.d.ts +20 -2
  30. package/dist/graphql/operations/index.js +297 -7
  31. package/dist/graphql/operations/types.d.ts +506 -11
  32. package/dist/graphql/schema.d.ts +163 -6
  33. package/dist/graphql/schema.js +17 -0
  34. package/package.json +1 -1
@@ -377,7 +377,7 @@ export type AppointmentParticipant = {
377
377
  status?: Maybe<Scalars['Code']['output']>;
378
378
  type?: Maybe<Array<Maybe<CodeableConcept>>>;
379
379
  };
380
- export type AppointmentParticipantActor = Location | Patient;
380
+ export type AppointmentParticipantActor = Location | Patient | Practitioner | RelatedPerson;
381
381
  export type AppointmentParticipantActorReference = {
382
382
  __typename?: 'AppointmentParticipantActorReference';
383
383
  display?: Maybe<Scalars['String']['output']>;
@@ -432,6 +432,13 @@ export type AttachmentInput = {
432
432
  id: Scalars['String']['input'];
433
433
  title?: InputMaybe<Scalars['String']['input']>;
434
434
  };
435
+ export type AttachmentMetadata = {
436
+ __typename?: 'AttachmentMetadata';
437
+ contentType: Scalars['String']['output'];
438
+ fileName: Scalars['String']['output'];
439
+ id: Scalars['ID']['output'];
440
+ size: Scalars['Int']['output'];
441
+ };
435
442
  export type AuthCode = {
436
443
  __typename?: 'AuthCode';
437
444
  authCode: Scalars['String']['output'];
@@ -491,7 +498,6 @@ export type BootstrapConfiguration = {
491
498
  frontendEnvironment: FrontendEnvironment;
492
499
  googleGeo: GoogleGeo;
493
500
  jwksKid: Scalars['String']['output'];
494
- mcp: McpMap;
495
501
  prefetchAssets: PrefetchAssets;
496
502
  telemetry: Telemetry;
497
503
  userProfileSvcUrl: Scalars['String']['output'];
@@ -846,6 +852,15 @@ export type CodingInput = {
846
852
  display?: InputMaybe<Scalars['String']['input']>;
847
853
  system?: InputMaybe<Scalars['String']['input']>;
848
854
  };
855
+ export type CommentAuthor = {
856
+ __typename?: 'CommentAuthor';
857
+ email: Scalars['String']['output'];
858
+ name: Scalars['String']['output'];
859
+ };
860
+ export type CommentInput = {
861
+ body: Scalars['String']['input'];
862
+ uploads?: InputMaybe<Array<Scalars['String']['input']>>;
863
+ };
849
864
  export type Component = {
850
865
  __typename?: 'Component';
851
866
  /** The code that categorizes the observation. */
@@ -1277,6 +1292,26 @@ export type CreateHealthLinkInput = {
1277
1292
  resources?: InputMaybe<Array<ResourceInput>>;
1278
1293
  securityConfig: SecurityConfigInput;
1279
1294
  };
1295
+ export type CreateSupportCommentInput = {
1296
+ body: Scalars['String']['input'];
1297
+ requestId: Scalars['Int']['input'];
1298
+ uploads?: InputMaybe<Array<Scalars['String']['input']>>;
1299
+ };
1300
+ export type CreateSupportCommentResponse = {
1301
+ __typename?: 'CreateSupportCommentResponse';
1302
+ comment: SupportComment;
1303
+ };
1304
+ export type CreateSupportRequestInput = {
1305
+ comment: CommentInput;
1306
+ email?: InputMaybe<Scalars['String']['input']>;
1307
+ fields: SupportRequestFieldsInput;
1308
+ name?: InputMaybe<Scalars['String']['input']>;
1309
+ subject: Scalars['String']['input'];
1310
+ };
1311
+ export type CreateSupportRequestResponse = {
1312
+ __typename?: 'CreateSupportRequestResponse';
1313
+ data?: Maybe<SupportRequest>;
1314
+ };
1280
1315
  /** Supported ISO 4217 CurrencyCodes */
1281
1316
  export declare enum CurrencyCode {
1282
1317
  Usd = "USD"
@@ -1326,6 +1361,16 @@ export type DataSource = {
1326
1361
  /** Type of data source */
1327
1362
  type: DataConnectionType;
1328
1363
  };
1364
+ export type DeleteSupportAttachmentInput = {
1365
+ attachmentId: Scalars['String']['input'];
1366
+ };
1367
+ export type DeleteSupportAttachmentResponse = {
1368
+ __typename?: 'DeleteSupportAttachmentResponse';
1369
+ status: DeletionStatus;
1370
+ };
1371
+ export declare enum DeletionStatus {
1372
+ Deleted = "DELETED"
1373
+ }
1329
1374
  export type Detail = {
1330
1375
  __typename?: 'Detail';
1331
1376
  code?: Maybe<CodeableConcept>;
@@ -2846,10 +2891,6 @@ export type Logging = {
2846
2891
  __typename?: 'Logging';
2847
2892
  enabled: Scalars['Boolean']['output'];
2848
2893
  };
2849
- export type McpMap = {
2850
- __typename?: 'McpMap';
2851
- bailey: Scalars['String']['output'];
2852
- };
2853
2894
  export type MedStatementCodeableConceptResource = {
2854
2895
  __typename?: 'MedStatementCodeableConceptResource';
2855
2896
  medicationCodeableConcept?: Maybe<CodeableConcept>;
@@ -3253,6 +3294,8 @@ export type Mutation = {
3253
3294
  createMissingConsents?: Maybe<Scalars['String']['output']>;
3254
3295
  createPersonWithClientId?: Maybe<PersonWithMetadata>;
3255
3296
  createQuestionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
3297
+ createSupportComment: CreateSupportCommentResponse;
3298
+ createSupportRequest: CreateSupportRequestResponse;
3256
3299
  createVerificationUrl: Scalars['String']['output'];
3257
3300
  /**
3258
3301
  * Initiates deletion of an AllergyIntolerance resource by its ID.
@@ -3447,6 +3490,7 @@ export type Mutation = {
3447
3490
  * Returns an OperationOutcome for the delete operation.
3448
3491
  */
3449
3492
  deleteSpecimen: OperationOutcome;
3493
+ deleteSupportAttachment: DeleteSupportAttachmentResponse;
3450
3494
  /** Disconnection a connection */
3451
3495
  disconnectConnection: DisconnectConnection;
3452
3496
  exchangeAuthCode: AuthTokens;
@@ -3489,6 +3533,7 @@ export type Mutation = {
3489
3533
  updateUserAccountStatus: IdentityAuthed_OperationOutcome;
3490
3534
  updateUserClient: Array<UpdateUserClientOutput>;
3491
3535
  updateUserProfile?: Maybe<Person>;
3536
+ uploadSupportAttachment: UploadSupportAttachmentResponse;
3492
3537
  upsertPerson?: Maybe<PersonWithMetadata>;
3493
3538
  upsertPersonWithRegCode?: Maybe<TaskWithMetadata>;
3494
3539
  };
@@ -3535,6 +3580,12 @@ export type MutationCreatePersonWithClientIdArgs = {
3535
3580
  export type MutationCreateQuestionnaireResponseArgs = {
3536
3581
  input: QuestionnaireResponse_Input;
3537
3582
  };
3583
+ export type MutationCreateSupportCommentArgs = {
3584
+ input: CreateSupportCommentInput;
3585
+ };
3586
+ export type MutationCreateSupportRequestArgs = {
3587
+ input: CreateSupportRequestInput;
3588
+ };
3538
3589
  export type MutationCreateVerificationUrlArgs = {
3539
3590
  callbackURL?: InputMaybe<Scalars['String']['input']>;
3540
3591
  includeAttributeMatchingCheck?: InputMaybe<Scalars['Boolean']['input']>;
@@ -3605,6 +3656,9 @@ export type MutationDeleteServiceRequestArgs = {
3605
3656
  export type MutationDeleteSpecimenArgs = {
3606
3657
  id: Scalars['UUID']['input'];
3607
3658
  };
3659
+ export type MutationDeleteSupportAttachmentArgs = {
3660
+ input: DeleteSupportAttachmentInput;
3661
+ };
3608
3662
  export type MutationDisconnectConnectionArgs = {
3609
3663
  connectionId: Scalars['String']['input'];
3610
3664
  };
@@ -3700,6 +3754,9 @@ export type MutationUpdateUserClientArgs = {
3700
3754
  export type MutationUpdateUserProfileArgs = {
3701
3755
  input?: InputMaybe<FhirPersonInput>;
3702
3756
  };
3757
+ export type MutationUploadSupportAttachmentArgs = {
3758
+ input: UploadSupportAttachmentInput;
3759
+ };
3703
3760
  export type MutationUpsertPersonArgs = {
3704
3761
  input?: InputMaybe<PersonWithClientIdInput>;
3705
3762
  };
@@ -4899,6 +4956,10 @@ export type Query = {
4899
4956
  getPersonByRegCode?: Maybe<RegCodePersonDto>;
4900
4957
  getProcedureGroups: ProcedureGroupQueryResults;
4901
4958
  getProcedures: ProcedureQueryResults;
4959
+ getSupportCategories: Array<SupportCategory>;
4960
+ getSupportComments: SupportCommentsResponse;
4961
+ getSupportRequest: SupportRequestDetail;
4962
+ getSupportRequests: SupportRequestsResponse;
4902
4963
  /** Query to search for tasks. This query is the preferred method for searching for tasks. */
4903
4964
  getTasks?: Maybe<TaskQueryResults>;
4904
4965
  getToken: AuthTokens;
@@ -5023,8 +5084,12 @@ export type QueryExplanationOfBenefitsArgs = {
5023
5084
  _lastUpdated?: InputMaybe<SearchDate>;
5024
5085
  _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5025
5086
  _total?: InputMaybe<TotalType>;
5087
+ coverage?: InputMaybe<SearchReference>;
5088
+ created?: InputMaybe<SearchDate>;
5026
5089
  id?: InputMaybe<SearchString>;
5027
5090
  patient?: InputMaybe<SearchReference>;
5091
+ provider?: InputMaybe<SearchReference>;
5092
+ status?: InputMaybe<SearchToken>;
5028
5093
  };
5029
5094
  export type QueryFindPersonWithClientSlugAndIdArgs = {
5030
5095
  input?: InputMaybe<ClientSlugAndIdentifierInput>;
@@ -5130,6 +5195,15 @@ export type QueryGetProcedureGroupsArgs = {
5130
5195
  export type QueryGetProceduresArgs = {
5131
5196
  request?: InputMaybe<ProcedureRequest>;
5132
5197
  };
5198
+ export type QueryGetSupportCommentsArgs = {
5199
+ input: SupportCommentsInput;
5200
+ };
5201
+ export type QueryGetSupportRequestArgs = {
5202
+ id: Scalars['Int']['input'];
5203
+ };
5204
+ export type QueryGetSupportRequestsArgs = {
5205
+ input?: InputMaybe<SupportRequestsInput>;
5206
+ };
5133
5207
  export type QueryGetTasksArgs = {
5134
5208
  request?: InputMaybe<TaskRequest>;
5135
5209
  };
@@ -5789,6 +5863,8 @@ export type RelatedPerson = {
5789
5863
  __typename?: 'RelatedPerson';
5790
5864
  active?: Maybe<Scalars['Boolean']['output']>;
5791
5865
  address?: Maybe<Array<Maybe<Address>>>;
5866
+ birthDate?: Maybe<Scalars['Date']['output']>;
5867
+ gender?: Maybe<Scalars['Code']['output']>;
5792
5868
  id?: Maybe<Scalars['ID']['output']>;
5793
5869
  identifier?: Maybe<Array<Maybe<Identifier>>>;
5794
5870
  meta?: Maybe<Meta>;
@@ -5820,6 +5896,14 @@ export type RequestConnectionOutput = {
5820
5896
  issue?: Maybe<Array<Maybe<OperationOutcomeIssue>>>;
5821
5897
  resourceType?: Maybe<Scalars['String']['output']>;
5822
5898
  };
5899
+ export declare enum RequestStatus {
5900
+ Closed = "CLOSED",
5901
+ Hold = "HOLD",
5902
+ New = "NEW",
5903
+ Open = "OPEN",
5904
+ Pending = "PENDING",
5905
+ Solved = "SOLVED"
5906
+ }
5823
5907
  export type Resource = {
5824
5908
  id: Scalars['ID']['output'];
5825
5909
  implicitRules?: Maybe<Scalars['URI']['output']>;
@@ -5877,6 +5961,7 @@ export type Rest = {
5877
5961
  export type RestEndpoints = {
5878
5962
  __typename?: 'RestEndpoints';
5879
5963
  ats: Scalars['String']['output'];
5964
+ bailey: Scalars['String']['output'];
5880
5965
  big: Scalars['String']['output'];
5881
5966
  health: Scalars['String']['output'];
5882
5967
  healthProgramsGateway: Scalars['String']['output'];
@@ -6169,6 +6254,7 @@ export type ServiceRequest = Resource & {
6169
6254
  locationReference?: Maybe<Array<Maybe<ServiceRequestLocationReferenceReference>>>;
6170
6255
  meta?: Maybe<Meta>;
6171
6256
  occurrenceDateTime?: Maybe<Scalars['DateTime']['output']>;
6257
+ occurrencePeriod?: Maybe<Period>;
6172
6258
  performer?: Maybe<Array<Maybe<ServiceRequestPerformerReference>>>;
6173
6259
  reasonCode?: Maybe<Array<Maybe<CodeableConcept>>>;
6174
6260
  reasonReference?: Maybe<Array<Maybe<ServiceRequestReasonReferenceReference>>>;
@@ -6238,6 +6324,9 @@ export type ServiceRequestSubjectReference = {
6238
6324
  reference?: Maybe<Scalars['String']['output']>;
6239
6325
  type?: Maybe<Scalars['URI']['output']>;
6240
6326
  };
6327
+ export declare enum SortBy {
6328
+ UpdatedAt = "UPDATED_AT"
6329
+ }
6241
6330
  export declare enum SortField {
6242
6331
  Content = "content",
6243
6332
  Distance = "distance",
@@ -6455,6 +6544,65 @@ export type SubstanceInstance = {
6455
6544
  identifier?: Maybe<Identifier>;
6456
6545
  quantity?: Maybe<Quantity>;
6457
6546
  };
6547
+ export type SupportCategory = {
6548
+ __typename?: 'SupportCategory';
6549
+ label: Scalars['String']['output'];
6550
+ value: Scalars['String']['output'];
6551
+ };
6552
+ export type SupportComment = {
6553
+ __typename?: 'SupportComment';
6554
+ attachments: Array<AttachmentMetadata>;
6555
+ author: CommentAuthor;
6556
+ body: Scalars['String']['output'];
6557
+ createdAt: Scalars['String']['output'];
6558
+ htmlBody: Scalars['String']['output'];
6559
+ id: Scalars['ID']['output'];
6560
+ };
6561
+ export type SupportCommentsInput = {
6562
+ page?: InputMaybe<Scalars['Int']['input']>;
6563
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
6564
+ requestId: Scalars['Int']['input'];
6565
+ sortOrder?: InputMaybe<SortOrderEnum>;
6566
+ };
6567
+ export type SupportCommentsResponse = PagedQueryResults & {
6568
+ __typename?: 'SupportCommentsResponse';
6569
+ comments: Array<SupportComment>;
6570
+ paging_info: PagingResults;
6571
+ };
6572
+ export type SupportRequest = {
6573
+ __typename?: 'SupportRequest';
6574
+ category: Scalars['String']['output'];
6575
+ created: Scalars['String']['output'];
6576
+ id: Scalars['Int']['output'];
6577
+ lastActivity: Scalars['String']['output'];
6578
+ status: RequestStatus;
6579
+ subject: Scalars['String']['output'];
6580
+ };
6581
+ export type SupportRequestDetail = {
6582
+ __typename?: 'SupportRequestDetail';
6583
+ category: Scalars['String']['output'];
6584
+ created: Scalars['String']['output'];
6585
+ id: Scalars['Int']['output'];
6586
+ lastActivity: Scalars['String']['output'];
6587
+ status: RequestStatus;
6588
+ subject: Scalars['String']['output'];
6589
+ };
6590
+ export type SupportRequestFieldsInput = {
6591
+ category: Scalars['String']['input'];
6592
+ };
6593
+ export type SupportRequestsInput = {
6594
+ page?: InputMaybe<Scalars['Int']['input']>;
6595
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
6596
+ search?: InputMaybe<Scalars['String']['input']>;
6597
+ sortBy?: InputMaybe<SortBy>;
6598
+ sortOrder?: InputMaybe<SortOrderEnum>;
6599
+ status?: InputMaybe<Array<RequestStatus>>;
6600
+ };
6601
+ export type SupportRequestsResponse = PagedQueryResults & {
6602
+ __typename?: 'SupportRequestsResponse';
6603
+ data: Array<SupportRequest>;
6604
+ paging_info: PagingResults;
6605
+ };
6458
6606
  /** Represents a CodeableConcept with codings and a human-readable text */
6459
6607
  export type SyncErrorCodeableConcept = {
6460
6608
  __typename?: 'SyncErrorCodeableConcept';
@@ -6684,6 +6832,15 @@ export type UpdatedPersonMetadata = {
6684
6832
  __typename?: 'UpdatedPersonMetadata';
6685
6833
  statusCode?: Maybe<Scalars['String']['output']>;
6686
6834
  };
6835
+ export type UploadSupportAttachmentInput = {
6836
+ file: Scalars['String']['input'];
6837
+ fileName: Scalars['String']['input'];
6838
+ };
6839
+ export type UploadSupportAttachmentResponse = {
6840
+ __typename?: 'UploadSupportAttachmentResponse';
6841
+ attachmentId: Scalars['String']['output'];
6842
+ attachments: Array<AttachmentMetadata>;
6843
+ };
6687
6844
  export type UsageContext = {
6688
6845
  __typename?: 'UsageContext';
6689
6846
  code?: Maybe<Coding>;
@@ -116,6 +116,10 @@ export var DataSetsEnum;
116
116
  DataSetsEnum["Connecthub"] = "CONNECTHUB";
117
117
  DataSetsEnum["Nppes"] = "NPPES";
118
118
  })(DataSetsEnum || (DataSetsEnum = {}));
119
+ export var DeletionStatus;
120
+ (function (DeletionStatus) {
121
+ DeletionStatus["Deleted"] = "DELETED";
122
+ })(DeletionStatus || (DeletionStatus = {}));
119
123
  export var EmpiType;
120
124
  (function (EmpiType) {
121
125
  EmpiType["BwellPatient"] = "BWELL_PATIENT";
@@ -339,6 +343,15 @@ export var Questionnaire_Enum_Schema;
339
343
  (function (Questionnaire_Enum_Schema) {
340
344
  Questionnaire_Enum_Schema["QuestionnaireResponse"] = "QuestionnaireResponse";
341
345
  })(Questionnaire_Enum_Schema || (Questionnaire_Enum_Schema = {}));
346
+ export var RequestStatus;
347
+ (function (RequestStatus) {
348
+ RequestStatus["Closed"] = "CLOSED";
349
+ RequestStatus["Hold"] = "HOLD";
350
+ RequestStatus["New"] = "NEW";
351
+ RequestStatus["Open"] = "OPEN";
352
+ RequestStatus["Pending"] = "PENDING";
353
+ RequestStatus["Solved"] = "SOLVED";
354
+ })(RequestStatus || (RequestStatus = {}));
342
355
  export var ResourceType;
343
356
  (function (ResourceType) {
344
357
  ResourceType["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
@@ -370,6 +383,10 @@ export var SearchResultTypeEnum;
370
383
  SearchResultTypeEnum["Practice"] = "PRACTICE";
371
384
  SearchResultTypeEnum["Practitioner"] = "PRACTITIONER";
372
385
  })(SearchResultTypeEnum || (SearchResultTypeEnum = {}));
386
+ export var SortBy;
387
+ (function (SortBy) {
388
+ SortBy["UpdatedAt"] = "UPDATED_AT";
389
+ })(SortBy || (SortBy = {}));
373
390
  export var SortField;
374
391
  (function (SortField) {
375
392
  SortField["Content"] = "content";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.47.0",
3
+ "version": "1.48.0-rc.1765240604",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",