@icanbwell/bwell-sdk-ts 1.53.0 → 1.54.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/health-space/care-team-members-request.d.ts +31 -0
- package/dist/api/base/health-space/care-team-members-request.js +33 -0
- package/dist/api/base/health-space/health-space-manager.d.ts +23 -1
- package/dist/api/base/health-space/index.d.ts +2 -1
- package/dist/api/base/health-space/index.js +1 -0
- package/dist/api/base/support/create-support-request-request.d.ts +22 -0
- package/dist/api/base/support/create-support-request-request.js +20 -0
- package/dist/api/base/support/delete-support-attachment-request.d.ts +11 -0
- package/dist/api/base/support/delete-support-attachment-request.js +14 -0
- package/dist/api/base/support/index.d.ts +3 -0
- package/dist/api/base/support/index.js +3 -0
- package/dist/api/base/support/support-manager.d.ts +32 -2
- package/dist/api/base/support/upload-support-attachment-request.d.ts +25 -0
- package/dist/api/base/support/upload-support-attachment-request.js +27 -0
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.d.ts +12 -0
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.js +17 -0
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +2 -1
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +28 -2
- package/dist/api/graphql-api/support/create-support-request-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/create-support-request-request-factory.js +19 -0
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.js +10 -0
- package/dist/api/graphql-api/support/graphql-support-manager.d.ts +11 -4
- package/dist/api/graphql-api/support/graphql-support-manager.js +79 -4
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.js +11 -0
- package/dist/graphql/operations/index.d.ts +40 -0
- package/dist/graphql/operations/index.js +86 -0
- package/dist/graphql/operations/types.d.ts +79 -4
- package/dist/graphql/schema.d.ts +107 -3
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/paged-request.js";
|
|
2
|
+
import { ErrorsCollector } from "../../../requests/validator.js";
|
|
3
|
+
export type CareTeamMembersRequestInput = PagedRequestInput;
|
|
4
|
+
declare class CareTeamMembersValidator extends PagedRequestValidator<CareTeamMembersRequestInput> {
|
|
5
|
+
validate(data: CareTeamMembersRequestInput, errors: ErrorsCollector): void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Represents a request for retrieving care team members.
|
|
9
|
+
* This request supports pagination through the standard PagedRequest format.
|
|
10
|
+
*
|
|
11
|
+
* @extends PagedRequest<CareTeamMembersRequestInput>
|
|
12
|
+
* @category Requests
|
|
13
|
+
* @title CareTeamMembersRequest
|
|
14
|
+
* @excerpt Request class for retrieving care team members
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* // Get all care team members with default pagination
|
|
19
|
+
* const request = new CareTeamMembersRequest({});
|
|
20
|
+
*
|
|
21
|
+
* // Get care team members with custom pagination
|
|
22
|
+
* const paginatedRequest = new CareTeamMembersRequest({
|
|
23
|
+
* page: 1,
|
|
24
|
+
* pageSize: 10
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class CareTeamMembersRequest extends PagedRequest<CareTeamMembersRequestInput> {
|
|
29
|
+
protected validator: CareTeamMembersValidator;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PagedRequest, PagedRequestValidator, } from "../../../requests/paged-request.js";
|
|
2
|
+
class CareTeamMembersValidator extends PagedRequestValidator {
|
|
3
|
+
validate(data, errors) {
|
|
4
|
+
super.validate(data, errors);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Represents a request for retrieving care team members.
|
|
9
|
+
* This request supports pagination through the standard PagedRequest format.
|
|
10
|
+
*
|
|
11
|
+
* @extends PagedRequest<CareTeamMembersRequestInput>
|
|
12
|
+
* @category Requests
|
|
13
|
+
* @title CareTeamMembersRequest
|
|
14
|
+
* @excerpt Request class for retrieving care team members
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* // Get all care team members with default pagination
|
|
19
|
+
* const request = new CareTeamMembersRequest({});
|
|
20
|
+
*
|
|
21
|
+
* // Get care team members with custom pagination
|
|
22
|
+
* const paginatedRequest = new CareTeamMembersRequest({
|
|
23
|
+
* page: 1,
|
|
24
|
+
* pageSize: 10
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export class CareTeamMembersRequest extends PagedRequest {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.validator = new CareTeamMembersValidator();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddCareTeamMemberMutationResults, AddCareTeamMembersMutationResults, AppointmentsQueryResults, CancelAppointmentMutationResults, CancelationReasonsQueryResults, RemoveCareTeamMemberMutationResults, UpdateCareTeamMemberMutationResults } from "../../../graphql/operations/types.js";
|
|
1
|
+
import { AddCareTeamMemberMutationResults, AddCareTeamMembersMutationResults, AppointmentsQueryResults, CancelAppointmentMutationResults, CancelationReasonsQueryResults, CareTeamMembersQueryResults, RemoveCareTeamMemberMutationResults, UpdateCareTeamMemberMutationResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import { BaseManagerError } from "../errors.js";
|
|
4
4
|
import { AddCareTeamMemberRequest } from "./add-care-team-member-request.js";
|
|
@@ -6,11 +6,13 @@ import { AddCareTeamMembersRequest } from "./add-care-team-members-request.js";
|
|
|
6
6
|
import { AppointmentsRequest } from "./appointments-request.js";
|
|
7
7
|
import { CancelAppointmentRequest } from "./cancel-appointment-request.js";
|
|
8
8
|
import { CancelationReasonsRequest } from "./cancelationReasons-request.js";
|
|
9
|
+
import { CareTeamMembersRequest } from "./care-team-members-request.js";
|
|
9
10
|
import { RemoveCareTeamMemberRequest } from "./remove-care-team-member-request.js";
|
|
10
11
|
import { UpdateCareTeamMemberRequest } from "./update-care-team-member-request.js";
|
|
11
12
|
export type AppointmentsResults = AppointmentsQueryResults["appointments"];
|
|
12
13
|
export type CancelAppointmentResults = CancelAppointmentMutationResults["updateAppointment"];
|
|
13
14
|
export type CancelationReasonsResults = CancelationReasonsQueryResults["cancelationReasons"];
|
|
15
|
+
export type CareTeamMembersResults = CareTeamMembersQueryResults["careTeamMembers"];
|
|
14
16
|
/**
|
|
15
17
|
* Interface representing a manager for handling operations related to health spaces.
|
|
16
18
|
*/
|
|
@@ -120,4 +122,24 @@ export interface HealthSpaceManager {
|
|
|
120
122
|
* ```
|
|
121
123
|
*/
|
|
122
124
|
updateCareTeamMember(request: UpdateCareTeamMemberRequest): Promise<BWellTransactionResult<UpdateCareTeamMemberMutationResults, BaseManagerError>>;
|
|
125
|
+
/**
|
|
126
|
+
* Retrieves all care team members associated with the user.
|
|
127
|
+
*
|
|
128
|
+
* @param request - Optional CareTeamMembersRequest with pagination configuration
|
|
129
|
+
* @returns Promise resolving to query result with care team members data
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* // Get all care team members
|
|
134
|
+
* const result = await sdk.healthSpace.getCareTeamMembers();
|
|
135
|
+
*
|
|
136
|
+
* // Get care team members with pagination
|
|
137
|
+
* const result = await sdk.healthSpace.getCareTeamMembers(
|
|
138
|
+
* new CareTeamMembersRequest({
|
|
139
|
+
* pagingInfo: { pageSize: 10, pageNumber: 1 }
|
|
140
|
+
* })
|
|
141
|
+
* );
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
getCareTeamMembers(request?: CareTeamMembersRequest): Promise<BWellQueryResult<CareTeamMembersResults, BaseManagerError>>;
|
|
123
145
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AppointmentsResults, CancelAppointmentResults, HealthSpaceManager, CancelationReasonsResults, } from "./health-space-manager.js";
|
|
1
|
+
export { AppointmentsResults, CancelAppointmentResults, HealthSpaceManager, CancelationReasonsResults, CareTeamMembersResults, } from "./health-space-manager.js";
|
|
2
2
|
export { AppointmentsRequest, AppointmentsRequestInput, } from "./appointments-request.js";
|
|
3
3
|
export { CancelAppointmentRequest, CancelAppointmentRequestInput, } from "./cancel-appointment-request.js";
|
|
4
4
|
export { CancelationReasonsRequest, CancelationReasonsRequestInput, } from "./cancelationReasons-request.js";
|
|
@@ -6,3 +6,4 @@ export { RemoveCareTeamMemberRequest, RemoveCareTeamMemberInput, } from "./remov
|
|
|
6
6
|
export { AddCareTeamMemberInput, AddCareTeamMemberRequest, } from "./add-care-team-member-request.js";
|
|
7
7
|
export { AddCareTeamMembersRequest, AddCareTeamMembersInput, } from "./add-care-team-members-request.js";
|
|
8
8
|
export { UpdateCareTeamMemberRequest, UpdateCareTeamMemberInput, UpdateCareTeamMemberType, } from "./update-care-team-member-request.js";
|
|
9
|
+
export { CareTeamMembersRequest, CareTeamMembersRequestInput, } from "./care-team-members-request.js";
|
|
@@ -5,3 +5,4 @@ export { RemoveCareTeamMemberRequest, } from "./remove-care-team-member-request.
|
|
|
5
5
|
export { AddCareTeamMemberRequest, } from "./add-care-team-member-request.js";
|
|
6
6
|
export { AddCareTeamMembersRequest, } from "./add-care-team-members-request.js";
|
|
7
7
|
export { UpdateCareTeamMemberRequest, } from "./update-care-team-member-request.js";
|
|
8
|
+
export { CareTeamMembersRequest, } from "./care-team-members-request.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
export type CommentInput = {
|
|
3
|
+
body: string;
|
|
4
|
+
uploads?: string[];
|
|
5
|
+
};
|
|
6
|
+
export type SupportRequestFieldsInput = {
|
|
7
|
+
category: string;
|
|
8
|
+
};
|
|
9
|
+
export type CreateSupportRequestRequestInput = {
|
|
10
|
+
comment: CommentInput;
|
|
11
|
+
email?: string;
|
|
12
|
+
fields: SupportRequestFieldsInput;
|
|
13
|
+
name?: string;
|
|
14
|
+
subject: string;
|
|
15
|
+
};
|
|
16
|
+
declare class CreateSupportRequestRequestValidator implements Validator<CreateSupportRequestRequestInput> {
|
|
17
|
+
validate(data: CreateSupportRequestRequestInput, errors: ErrorsCollector): void;
|
|
18
|
+
}
|
|
19
|
+
export declare class CreateSupportRequestRequest extends ValidationRequest<CreateSupportRequestRequestInput> {
|
|
20
|
+
protected validator: CreateSupportRequestRequestValidator;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
class CreateSupportRequestRequestValidator {
|
|
3
|
+
validate(data, errors) {
|
|
4
|
+
if (!data.subject.trim()) {
|
|
5
|
+
errors.add("Subject is required");
|
|
6
|
+
}
|
|
7
|
+
if (!data.comment.body.trim()) {
|
|
8
|
+
errors.add("Comment body is required");
|
|
9
|
+
}
|
|
10
|
+
if (!data.fields.category.trim()) {
|
|
11
|
+
errors.add("Category is required");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class CreateSupportRequestRequest extends ValidationRequest {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.validator = new CreateSupportRequestRequestValidator();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
export type DeleteSupportAttachmentRequestInput = {
|
|
3
|
+
attachmentId: string;
|
|
4
|
+
};
|
|
5
|
+
declare class DeleteSupportAttachmentRequestValidator implements Validator<DeleteSupportAttachmentRequestInput> {
|
|
6
|
+
validate(data: DeleteSupportAttachmentRequestInput, errors: ErrorsCollector): void;
|
|
7
|
+
}
|
|
8
|
+
export declare class DeleteSupportAttachmentRequest extends ValidationRequest<DeleteSupportAttachmentRequestInput> {
|
|
9
|
+
protected validator: DeleteSupportAttachmentRequestValidator;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
class DeleteSupportAttachmentRequestValidator {
|
|
3
|
+
validate(data, errors) {
|
|
4
|
+
if (!data.attachmentId.trim()) {
|
|
5
|
+
errors.add("Attachment ID is required");
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export class DeleteSupportAttachmentRequest extends ValidationRequest {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.validator = new DeleteSupportAttachmentRequestValidator();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type { GetSupportRequestsQueryResults } from "../../../graphql/operations/types.js";
|
|
2
|
-
import type { BWellQueryResult } from "../../../results/index.js";
|
|
1
|
+
import type { CreateSupportRequestMutationResults, DeleteSupportAttachmentMutationResults, GetSupportCategoriesQueryResults, GetSupportRequestsQueryResults, UploadSupportAttachmentMutationResults } from "../../../graphql/operations/types.js";
|
|
2
|
+
import type { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
|
+
import { CreateSupportRequestRequest } from "./create-support-request-request.js";
|
|
5
|
+
import { DeleteSupportAttachmentRequest } from "./delete-support-attachment-request.js";
|
|
4
6
|
import { GetSupportRequestsRequest } from "./get-support-requests-request.js";
|
|
7
|
+
import { UploadSupportAttachmentRequest } from "./upload-support-attachment-request.js";
|
|
5
8
|
export type GetSupportRequestsResults = GetSupportRequestsQueryResults["getSupportRequests"];
|
|
9
|
+
export type UploadSupportAttachmentResults = UploadSupportAttachmentMutationResults["uploadSupportAttachment"];
|
|
10
|
+
export type DeleteSupportAttachmentResults = DeleteSupportAttachmentMutationResults["deleteSupportAttachment"];
|
|
11
|
+
export type CreateSupportRequestResults = CreateSupportRequestMutationResults["createSupportRequest"];
|
|
12
|
+
export type GetSupportCategoriesResults = GetSupportCategoriesQueryResults["getSupportCategories"];
|
|
6
13
|
/**
|
|
7
14
|
* The SupportManager interface provides methods for managing support requests.
|
|
8
15
|
*/
|
|
@@ -13,4 +20,27 @@ export interface SupportManager {
|
|
|
13
20
|
* @returns A promise that resolves to a query result with the support requests data.
|
|
14
21
|
*/
|
|
15
22
|
getSupportRequests(request: GetSupportRequestsRequest): Promise<BWellQueryResult<GetSupportRequestsResults, BaseManagerError>>;
|
|
23
|
+
/**
|
|
24
|
+
* Uploads an attachment for a support request.
|
|
25
|
+
* @param request The request containing the file content as a data URI (data:<MIME-type>;base64,<base64-data>) and file name.
|
|
26
|
+
* @returns A promise that resolves to a transaction result with the uploaded attachment data.
|
|
27
|
+
*/
|
|
28
|
+
uploadSupportAttachment(request: UploadSupportAttachmentRequest): Promise<BWellTransactionResult<UploadSupportAttachmentResults, BaseManagerError>>;
|
|
29
|
+
/**
|
|
30
|
+
* Deletes an attachment from a support request.
|
|
31
|
+
* @param request The request containing the attachment ID to delete.
|
|
32
|
+
* @returns A promise that resolves to a transaction result with the deletion status.
|
|
33
|
+
*/
|
|
34
|
+
deleteSupportAttachment(request: DeleteSupportAttachmentRequest): Promise<BWellTransactionResult<DeleteSupportAttachmentResults, BaseManagerError>>;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new support request.
|
|
37
|
+
* @param request The request containing the support request details (subject, comment, category, etc.).
|
|
38
|
+
* @returns A promise that resolves to a transaction result with the created support request data.
|
|
39
|
+
*/
|
|
40
|
+
createSupportRequest(request: CreateSupportRequestRequest): Promise<BWellTransactionResult<CreateSupportRequestResults, BaseManagerError>>;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves available support request categories.
|
|
43
|
+
* @returns A promise that resolves to a query result with the list of support categories.
|
|
44
|
+
*/
|
|
45
|
+
getSupportCategories(): Promise<BWellQueryResult<GetSupportCategoriesResults, BaseManagerError>>;
|
|
16
46
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Input for uploading a support attachment.
|
|
4
|
+
*/
|
|
5
|
+
export type UploadSupportAttachmentRequestInput = {
|
|
6
|
+
/**
|
|
7
|
+
* The file content as a data URI with base64 encoding and MIME type.
|
|
8
|
+
* Format: data:<MIME-type>;base64,<base64-encoded-data>
|
|
9
|
+
* Example: "data:application/pdf;base64,JVBERi0xLjQKJeLjz9MK..."
|
|
10
|
+
*/
|
|
11
|
+
file: string;
|
|
12
|
+
fileName: string;
|
|
13
|
+
};
|
|
14
|
+
declare class UploadSupportAttachmentRequestValidator implements Validator<UploadSupportAttachmentRequestInput> {
|
|
15
|
+
private readonly dataURIRegex;
|
|
16
|
+
validate(data: UploadSupportAttachmentRequestInput, errors: ErrorsCollector): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Request class for uploading support attachments.
|
|
20
|
+
* Validates that the file is provided as a data URI with base64 encoding and a MIME type.
|
|
21
|
+
*/
|
|
22
|
+
export declare class UploadSupportAttachmentRequest extends ValidationRequest<UploadSupportAttachmentRequestInput> {
|
|
23
|
+
protected validator: UploadSupportAttachmentRequestValidator;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
class UploadSupportAttachmentRequestValidator {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.dataURIRegex = /^data:[a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+;base64,([A-Za-z0-9+/]*={0,2})$/;
|
|
5
|
+
}
|
|
6
|
+
validate(data, errors) {
|
|
7
|
+
if (!data.file.trim()) {
|
|
8
|
+
errors.add("File content is required");
|
|
9
|
+
}
|
|
10
|
+
if (data.file.trim() && !this.dataURIRegex.test(data.file)) {
|
|
11
|
+
errors.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)");
|
|
12
|
+
}
|
|
13
|
+
if (!data.fileName.trim()) {
|
|
14
|
+
errors.add("File name is required");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Request class for uploading support attachments.
|
|
20
|
+
* Validates that the file is provided as a data URI with base64 encoding and a MIME type.
|
|
21
|
+
*/
|
|
22
|
+
export class UploadSupportAttachmentRequest extends ValidationRequest {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.validator = new UploadSupportAttachmentRequestValidator();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CareTeamMembersQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
+
import { CareTeamMembersRequest } from "../../base/health-space/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* A factory class for creating `CareTeamMembersQueryVariables` objects from `CareTeamMembersRequest` objects.
|
|
6
|
+
* Implements the `RequestFactory` interface.
|
|
7
|
+
*
|
|
8
|
+
* @implements RequestFactory<CareTeamMembersRequest, CareTeamMembersQueryVariables>
|
|
9
|
+
*/
|
|
10
|
+
export declare class CareTeamMembersRequestFactory implements RequestFactory<CareTeamMembersRequest, CareTeamMembersQueryVariables> {
|
|
11
|
+
create(request: CareTeamMembersRequest): CareTeamMembersQueryVariables;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DEFAULT_PAGE_SIZE } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A factory class for creating `CareTeamMembersQueryVariables` objects from `CareTeamMembersRequest` objects.
|
|
4
|
+
* Implements the `RequestFactory` interface.
|
|
5
|
+
*
|
|
6
|
+
* @implements RequestFactory<CareTeamMembersRequest, CareTeamMembersQueryVariables>
|
|
7
|
+
*/
|
|
8
|
+
export class CareTeamMembersRequestFactory {
|
|
9
|
+
create(request) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const input = request.data();
|
|
12
|
+
return {
|
|
13
|
+
pageNumber: (_a = input.page) !== null && _a !== void 0 ? _a : 0,
|
|
14
|
+
pageSize: (_b = input.pageSize) !== null && _b !== void 0 ? _b : DEFAULT_PAGE_SIZE,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -3,7 +3,7 @@ import type { AddCareTeamMemberMutationResults, AddCareTeamMembersMutationResult
|
|
|
3
3
|
import { type LoggerProvider } from "../../../logger/index.js";
|
|
4
4
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
5
5
|
import type { BaseManagerError } from "../../base/errors.js";
|
|
6
|
-
import { AddCareTeamMemberRequest, AddCareTeamMembersRequest, AppointmentsRequest, AppointmentsResults, CancelAppointmentRequest, CancelAppointmentResults, CancelationReasonsRequest, CancelationReasonsResults, HealthSpaceManager, RemoveCareTeamMemberRequest, UpdateCareTeamMemberRequest } from "../../base/index.js";
|
|
6
|
+
import { AddCareTeamMemberRequest, AddCareTeamMembersRequest, AppointmentsRequest, AppointmentsResults, CancelAppointmentRequest, CancelAppointmentResults, CancelationReasonsRequest, CancelationReasonsResults, CareTeamMembersRequest, CareTeamMembersResults, HealthSpaceManager, RemoveCareTeamMemberRequest, UpdateCareTeamMemberRequest } from "../../base/index.js";
|
|
7
7
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
8
8
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
9
9
|
export declare class GraphQLHealthSpaceManager extends GraphQLManager implements HealthSpaceManager {
|
|
@@ -81,4 +81,5 @@ export declare class GraphQLHealthSpaceManager extends GraphQLManager implements
|
|
|
81
81
|
* - If successful, returns a success result with the updated CareTeam resource.
|
|
82
82
|
*/
|
|
83
83
|
updateCareTeamMember(request: UpdateCareTeamMemberRequest): Promise<BWellTransactionResult<UpdateCareTeamMemberMutationResults, ValidationError | BaseManagerError>>;
|
|
84
|
+
getCareTeamMembers(request?: CareTeamMembersRequest): Promise<BWellQueryResult<CareTeamMembersResults, ValidationError | BaseManagerError>>;
|
|
84
85
|
}
|
|
@@ -18,14 +18,16 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
18
18
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
19
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
20
|
};
|
|
21
|
-
var _GraphQLHealthSpaceManager_logger, _GraphQLHealthSpaceManager_sdk, _GraphQLHealthSpaceManager_appointments, _GraphQLHealthSpaceManager_cancelAppointment, _GraphQLHealthSpaceManager_removeCareTeamMember, _GraphQLHealthSpaceManager_addCareTeamMember, _GraphQLHealthSpaceManager_addCareTeamMembers, _GraphQLHealthSpaceManager_updateCareTeamMember;
|
|
21
|
+
var _GraphQLHealthSpaceManager_logger, _GraphQLHealthSpaceManager_sdk, _GraphQLHealthSpaceManager_appointments, _GraphQLHealthSpaceManager_cancelAppointment, _GraphQLHealthSpaceManager_removeCareTeamMember, _GraphQLHealthSpaceManager_addCareTeamMember, _GraphQLHealthSpaceManager_addCareTeamMembers, _GraphQLHealthSpaceManager_updateCareTeamMember, _GraphQLHealthSpaceManager_careTeamMembers;
|
|
22
22
|
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
23
|
import { BWellQueryResult, BWellTransactionResult, } from "../../../results/index.js";
|
|
24
|
+
import { CareTeamMembersRequest, } from "../../base/index.js";
|
|
24
25
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
26
|
import { AddCareTeamMemberRequestFactory } from "./add-care-team-member-request-factory.js";
|
|
26
27
|
import { AddCareTeamMembersRequestFactory } from "./add-care-team-members-request-factory.js";
|
|
27
28
|
import { AppointmentsRequestFactory } from "./appointments-request-factory.js";
|
|
28
29
|
import { CancelAppointmentRequestFactory } from "./cancel-appointment-request-factory.js";
|
|
30
|
+
import { CareTeamMembersRequestFactory } from "./care-team-members-request-factory.js";
|
|
29
31
|
import { RemoveCareTeamMemberRequestFactory } from "./remove-care-team-member-request-factory.js";
|
|
30
32
|
import { UpdateCareTeamMemberRequestFactory } from "./update-care-team-member-request-factory.js";
|
|
31
33
|
export class GraphQLHealthSpaceManager extends GraphQLManager {
|
|
@@ -39,6 +41,7 @@ export class GraphQLHealthSpaceManager extends GraphQLManager {
|
|
|
39
41
|
_GraphQLHealthSpaceManager_addCareTeamMember.set(this, new AddCareTeamMemberRequestFactory());
|
|
40
42
|
_GraphQLHealthSpaceManager_addCareTeamMembers.set(this, new AddCareTeamMembersRequestFactory());
|
|
41
43
|
_GraphQLHealthSpaceManager_updateCareTeamMember.set(this, new UpdateCareTeamMemberRequestFactory());
|
|
44
|
+
_GraphQLHealthSpaceManager_careTeamMembers.set(this, new CareTeamMembersRequestFactory());
|
|
42
45
|
__classPrivateFieldSet(this, _GraphQLHealthSpaceManager_sdk, sdk, "f");
|
|
43
46
|
__classPrivateFieldSet(this, _GraphQLHealthSpaceManager_logger, loggerProvider.getLogger("GraphQLHealthSpaceManager"), "f");
|
|
44
47
|
}
|
|
@@ -231,5 +234,28 @@ export class GraphQLHealthSpaceManager extends GraphQLManager {
|
|
|
231
234
|
return BWellTransactionResult.success(result.data());
|
|
232
235
|
});
|
|
233
236
|
}
|
|
237
|
+
getCareTeamMembers(request) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
var _a;
|
|
240
|
+
// Create default request if none provided
|
|
241
|
+
const careTeamMembersRequest = request !== null && request !== void 0 ? request : new CareTeamMembersRequest({ page: 0 });
|
|
242
|
+
// Validate the request
|
|
243
|
+
const validationResult = this.validateRequest(careTeamMembersRequest);
|
|
244
|
+
if (validationResult.failure()) {
|
|
245
|
+
return validationResult.toQueryResult();
|
|
246
|
+
}
|
|
247
|
+
__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("calling getCareTeamMembers query...");
|
|
248
|
+
const variables = __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_careTeamMembers, "f").create(careTeamMembersRequest);
|
|
249
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_sdk, "f").CareTeamMembers(variables));
|
|
250
|
+
__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("getCareTeamMembers query complete");
|
|
251
|
+
if (result.hasError()) {
|
|
252
|
+
__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").error("getCareTeamMembers query error", result.error);
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").info("successfully called getCareTeamMembers query");
|
|
256
|
+
}
|
|
257
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.careTeamMembers, result.error);
|
|
258
|
+
});
|
|
259
|
+
}
|
|
234
260
|
}
|
|
235
|
-
_GraphQLHealthSpaceManager_logger = new WeakMap(), _GraphQLHealthSpaceManager_sdk = new WeakMap(), _GraphQLHealthSpaceManager_appointments = new WeakMap(), _GraphQLHealthSpaceManager_cancelAppointment = new WeakMap(), _GraphQLHealthSpaceManager_removeCareTeamMember = new WeakMap(), _GraphQLHealthSpaceManager_addCareTeamMember = new WeakMap(), _GraphQLHealthSpaceManager_addCareTeamMembers = new WeakMap(), _GraphQLHealthSpaceManager_updateCareTeamMember = new WeakMap();
|
|
261
|
+
_GraphQLHealthSpaceManager_logger = new WeakMap(), _GraphQLHealthSpaceManager_sdk = new WeakMap(), _GraphQLHealthSpaceManager_appointments = new WeakMap(), _GraphQLHealthSpaceManager_cancelAppointment = new WeakMap(), _GraphQLHealthSpaceManager_removeCareTeamMember = new WeakMap(), _GraphQLHealthSpaceManager_addCareTeamMember = new WeakMap(), _GraphQLHealthSpaceManager_addCareTeamMembers = new WeakMap(), _GraphQLHealthSpaceManager_updateCareTeamMember = new WeakMap(), _GraphQLHealthSpaceManager_careTeamMembers = new WeakMap();
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CreateSupportRequestMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
+
import { CreateSupportRequestRequest } from "../../base/support/create-support-request-request.js";
|
|
4
|
+
export declare class GraphQLCreateSupportRequestRequestFactory implements RequestFactory<CreateSupportRequestRequest, CreateSupportRequestMutationVariables> {
|
|
5
|
+
create(request: CreateSupportRequestRequest): CreateSupportRequestMutationVariables;
|
|
6
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class GraphQLCreateSupportRequestRequestFactory {
|
|
2
|
+
create(request) {
|
|
3
|
+
const data = request.data();
|
|
4
|
+
return {
|
|
5
|
+
input: {
|
|
6
|
+
subject: data.subject,
|
|
7
|
+
comment: {
|
|
8
|
+
body: data.comment.body,
|
|
9
|
+
uploads: data.comment.uploads,
|
|
10
|
+
},
|
|
11
|
+
fields: {
|
|
12
|
+
category: data.fields.category,
|
|
13
|
+
},
|
|
14
|
+
email: data.email,
|
|
15
|
+
name: data.name,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DeleteSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
+
import { DeleteSupportAttachmentRequest } from "../../base/support/delete-support-attachment-request.js";
|
|
4
|
+
export declare class GraphQLDeleteSupportAttachmentRequestFactory implements RequestFactory<DeleteSupportAttachmentRequest, DeleteSupportAttachmentMutationVariables> {
|
|
5
|
+
create(request: DeleteSupportAttachmentRequest): DeleteSupportAttachmentMutationVariables;
|
|
6
|
+
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import { GetSupportRequestsQueryVariables } from "../../../graphql/operations/types.js";
|
|
1
|
+
import { CreateSupportRequestMutationVariables, DeleteSupportAttachmentMutationVariables, GetSupportRequestsQueryVariables, UploadSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
2
|
import { LoggerProvider } from "../../../logger/index.js";
|
|
3
3
|
import { RequestFactory } from "../../../requests/index.js";
|
|
4
|
-
import { BWellQueryResult } from "../../../results/index.js";
|
|
4
|
+
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
5
5
|
import { BaseManagerError } from "../../base/errors.js";
|
|
6
|
+
import { CreateSupportRequestRequest } from "../../base/support/create-support-request-request.js";
|
|
7
|
+
import { DeleteSupportAttachmentRequest } from "../../base/support/delete-support-attachment-request.js";
|
|
6
8
|
import { GetSupportRequestsRequest } from "../../base/support/get-support-requests-request.js";
|
|
7
9
|
import type { SupportManager } from "../../base/support/support-manager.js";
|
|
8
|
-
import { GetSupportRequestsResults } from "../../base/support/support-manager.js";
|
|
10
|
+
import { CreateSupportRequestResults, DeleteSupportAttachmentResults, GetSupportCategoriesResults, GetSupportRequestsResults, UploadSupportAttachmentResults } from "../../base/support/support-manager.js";
|
|
11
|
+
import { UploadSupportAttachmentRequest } from "../../base/support/upload-support-attachment-request.js";
|
|
9
12
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
10
13
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
11
14
|
export declare class GraphQLSupportManager extends GraphQLManager implements SupportManager {
|
|
12
15
|
#private;
|
|
13
|
-
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, getSupportRequestsRequestFactory?: RequestFactory<GetSupportRequestsRequest, GetSupportRequestsQueryVariables>);
|
|
16
|
+
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, getSupportRequestsRequestFactory?: RequestFactory<GetSupportRequestsRequest, GetSupportRequestsQueryVariables>, uploadSupportAttachmentRequestFactory?: RequestFactory<UploadSupportAttachmentRequest, UploadSupportAttachmentMutationVariables>, deleteSupportAttachmentRequestFactory?: RequestFactory<DeleteSupportAttachmentRequest, DeleteSupportAttachmentMutationVariables>, createSupportRequestRequestFactory?: RequestFactory<CreateSupportRequestRequest, CreateSupportRequestMutationVariables>);
|
|
14
17
|
getSupportRequests(request: GetSupportRequestsRequest): Promise<BWellQueryResult<GetSupportRequestsResults, BaseManagerError>>;
|
|
18
|
+
uploadSupportAttachment(request: UploadSupportAttachmentRequest): Promise<BWellTransactionResult<UploadSupportAttachmentResults, BaseManagerError>>;
|
|
19
|
+
deleteSupportAttachment(request: DeleteSupportAttachmentRequest): Promise<BWellTransactionResult<DeleteSupportAttachmentResults, BaseManagerError>>;
|
|
20
|
+
createSupportRequest(request: CreateSupportRequestRequest): Promise<BWellTransactionResult<CreateSupportRequestResults, BaseManagerError>>;
|
|
21
|
+
getSupportCategories(): Promise<BWellQueryResult<GetSupportCategoriesResults, BaseManagerError>>;
|
|
15
22
|
}
|
|
@@ -18,20 +18,29 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
18
18
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
19
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
20
|
};
|
|
21
|
-
var _GraphQLSupportManager_sdk, _GraphQLSupportManager_logger, _GraphQLSupportManager_getSupportRequestsRequestFactory;
|
|
21
|
+
var _GraphQLSupportManager_sdk, _GraphQLSupportManager_logger, _GraphQLSupportManager_getSupportRequestsRequestFactory, _GraphQLSupportManager_uploadSupportAttachmentRequestFactory, _GraphQLSupportManager_deleteSupportAttachmentRequestFactory, _GraphQLSupportManager_createSupportRequestRequestFactory;
|
|
22
22
|
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
|
-
import { BWellQueryResult } from "../../../results/index.js";
|
|
23
|
+
import { BWellQueryResult, BWellTransactionResult, } from "../../../results/index.js";
|
|
24
24
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
|
+
import { GraphQLCreateSupportRequestRequestFactory } from "./create-support-request-request-factory.js";
|
|
26
|
+
import { GraphQLDeleteSupportAttachmentRequestFactory } from "./delete-support-attachment-request-factory.js";
|
|
25
27
|
import { GraphQLGetSupportRequestsBwellRequestFactory } from "./get-support-requests-bwell-request-factory.js";
|
|
28
|
+
import { GraphQLUploadSupportAttachmentRequestFactory } from "./upload-support-attachment-request-factory.js";
|
|
26
29
|
export class GraphQLSupportManager extends GraphQLManager {
|
|
27
|
-
constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), getSupportRequestsRequestFactory = new GraphQLGetSupportRequestsBwellRequestFactory()) {
|
|
30
|
+
constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), getSupportRequestsRequestFactory = new GraphQLGetSupportRequestsBwellRequestFactory(), uploadSupportAttachmentRequestFactory = new GraphQLUploadSupportAttachmentRequestFactory(), deleteSupportAttachmentRequestFactory = new GraphQLDeleteSupportAttachmentRequestFactory(), createSupportRequestRequestFactory = new GraphQLCreateSupportRequestRequestFactory()) {
|
|
28
31
|
super();
|
|
29
32
|
_GraphQLSupportManager_sdk.set(this, void 0);
|
|
30
33
|
_GraphQLSupportManager_logger.set(this, void 0);
|
|
31
34
|
_GraphQLSupportManager_getSupportRequestsRequestFactory.set(this, void 0);
|
|
35
|
+
_GraphQLSupportManager_uploadSupportAttachmentRequestFactory.set(this, void 0);
|
|
36
|
+
_GraphQLSupportManager_deleteSupportAttachmentRequestFactory.set(this, void 0);
|
|
37
|
+
_GraphQLSupportManager_createSupportRequestRequestFactory.set(this, void 0);
|
|
32
38
|
__classPrivateFieldSet(this, _GraphQLSupportManager_sdk, sdk, "f");
|
|
33
39
|
__classPrivateFieldSet(this, _GraphQLSupportManager_logger, loggerProvider.getLogger("GraphQLSupportManager"), "f");
|
|
34
40
|
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportRequestsRequestFactory, getSupportRequestsRequestFactory, "f");
|
|
41
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_uploadSupportAttachmentRequestFactory, uploadSupportAttachmentRequestFactory, "f");
|
|
42
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_deleteSupportAttachmentRequestFactory, deleteSupportAttachmentRequestFactory, "f");
|
|
43
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_createSupportRequestRequestFactory, createSupportRequestRequestFactory, "f");
|
|
35
44
|
}
|
|
36
45
|
getSupportRequests(request) {
|
|
37
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -50,5 +59,71 @@ export class GraphQLSupportManager extends GraphQLManager {
|
|
|
50
59
|
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportRequests, result.error);
|
|
51
60
|
});
|
|
52
61
|
}
|
|
62
|
+
uploadSupportAttachment(request) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const validationResult = this.validateRequest(request);
|
|
65
|
+
if (validationResult.failure()) {
|
|
66
|
+
return validationResult.intoFailure();
|
|
67
|
+
}
|
|
68
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_uploadSupportAttachmentRequestFactory, "f").create(request);
|
|
69
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling uploadSupportAttachment mutation...");
|
|
70
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").UploadSupportAttachment(inputVariables));
|
|
71
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("uploadSupportAttachment mutation complete.");
|
|
72
|
+
if (result.failure()) {
|
|
73
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("uploadSupportAttachment mutation error", result);
|
|
74
|
+
return result.intoFailure();
|
|
75
|
+
}
|
|
76
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").info("uploadSupportAttachment mutation success");
|
|
77
|
+
return BWellTransactionResult.success(result.data().uploadSupportAttachment);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
deleteSupportAttachment(request) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const validationResult = this.validateRequest(request);
|
|
83
|
+
if (validationResult.failure()) {
|
|
84
|
+
return validationResult.intoFailure();
|
|
85
|
+
}
|
|
86
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_deleteSupportAttachmentRequestFactory, "f").create(request);
|
|
87
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling deleteSupportAttachment mutation...");
|
|
88
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").DeleteSupportAttachment(inputVariables));
|
|
89
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("deleteSupportAttachment mutation complete.");
|
|
90
|
+
if (result.failure()) {
|
|
91
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("deleteSupportAttachment mutation error", result);
|
|
92
|
+
return result.intoFailure();
|
|
93
|
+
}
|
|
94
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").info("deleteSupportAttachment mutation success");
|
|
95
|
+
return BWellTransactionResult.success(result.data().deleteSupportAttachment);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
createSupportRequest(request) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const validationResult = this.validateRequest(request);
|
|
101
|
+
if (validationResult.failure()) {
|
|
102
|
+
return validationResult.intoFailure();
|
|
103
|
+
}
|
|
104
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_createSupportRequestRequestFactory, "f").create(request);
|
|
105
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling createSupportRequest mutation...");
|
|
106
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").CreateSupportRequest(inputVariables));
|
|
107
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("createSupportRequest mutation complete.");
|
|
108
|
+
if (result.failure()) {
|
|
109
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("createSupportRequest mutation error", result);
|
|
110
|
+
return result.intoFailure();
|
|
111
|
+
}
|
|
112
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").info("createSupportRequest mutation success");
|
|
113
|
+
return BWellTransactionResult.success(result.data().createSupportRequest);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
getSupportCategories() {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
var _a;
|
|
119
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling getSupportCategories query...");
|
|
120
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").GetSupportCategories());
|
|
121
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("getSupportCategories query complete.");
|
|
122
|
+
if (result.hasError()) {
|
|
123
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("getSupportCategories query error", result.error);
|
|
124
|
+
}
|
|
125
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportCategories, result.error);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
53
128
|
}
|
|
54
|
-
_GraphQLSupportManager_sdk = new WeakMap(), _GraphQLSupportManager_logger = new WeakMap(), _GraphQLSupportManager_getSupportRequestsRequestFactory = new WeakMap();
|
|
129
|
+
_GraphQLSupportManager_sdk = new WeakMap(), _GraphQLSupportManager_logger = new WeakMap(), _GraphQLSupportManager_getSupportRequestsRequestFactory = new WeakMap(), _GraphQLSupportManager_uploadSupportAttachmentRequestFactory = new WeakMap(), _GraphQLSupportManager_deleteSupportAttachmentRequestFactory = new WeakMap(), _GraphQLSupportManager_createSupportRequestRequestFactory = new WeakMap();
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UploadSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
+
import { UploadSupportAttachmentRequest } from "../../base/support/upload-support-attachment-request.js";
|
|
4
|
+
export declare class GraphQLUploadSupportAttachmentRequestFactory implements RequestFactory<UploadSupportAttachmentRequest, UploadSupportAttachmentMutationVariables> {
|
|
5
|
+
create(request: UploadSupportAttachmentRequest): UploadSupportAttachmentMutationVariables;
|
|
6
|
+
}
|
|
@@ -136,6 +136,7 @@ export declare const CancelAppointmentDocument = "\n mutation cancelAppointme
|
|
|
136
136
|
export declare const CancelationReasonsDocument = "\n query cancelationReasons($organization: SearchReference!) {\n cancelationReasons(organization: $organization) {\n id\n title\n url\n concept {\n code\n display\n }\n }\n}\n ";
|
|
137
137
|
export declare const AddCareTeamMemberDocument = "\n mutation addCareTeamMember($participant: CareTeamParticipantInput!) {\n updateCareTeamMember(participant: [$participant]) {\n id\n }\n}\n ";
|
|
138
138
|
export declare const AddCareTeamMembersDocument = "\n mutation addCareTeamMembers($participant: [CareTeamParticipantInput]!) {\n updateCareTeamMember(participant: $participant) {\n id\n }\n}\n ";
|
|
139
|
+
export declare const CareTeamMembersDocument = "\n query CareTeamMembers($pageNumber: Int, $pageSize: Int) {\n careTeamMembers(\n input: {pagingInfo: {pageNumber: $pageNumber, pageSize: $pageSize}}\n ) {\n pagingInfo {\n pageSize\n pageNumber\n totalPages\n totalItems\n }\n members {\n id\n role {\n coding {\n code\n system\n display\n }\n text\n }\n period {\n start\n end\n }\n }\n }\n}\n ";
|
|
139
140
|
export declare const RemoveCareTeamMemberDocument = "\n mutation removeCareTeamMember($participant: CareTeamParticipantInput!) {\n updateCareTeamMember(participant: [$participant]) {\n id\n }\n}\n ";
|
|
140
141
|
export declare const UpdateCareTeamMemberDocument = "\n mutation updateCareTeamMember($participant: CareTeamParticipantInput!) {\n updateCareTeamMember(participant: [$participant]) {\n id\n }\n}\n ";
|
|
141
142
|
export declare const AuthenticateDocument = "\n query authenticate {\n getToken {\n accessToken {\n jwtToken\n }\n idToken {\n jwtToken\n }\n refreshToken {\n token\n }\n }\n}\n ";
|
|
@@ -151,7 +152,11 @@ export declare const SaveQuestionnaireResponseDocument = "\n mutation saveQue
|
|
|
151
152
|
export declare const ProviderSearchDocument = "\n query providerSearch($client: [Client], $searchTerm: String, $includePopulatedPROAonly: Boolean, $specialtyFilters: [InputCoding], $organizationTypeFilters: [OrganizationType], $gender: Gender, $location: SearchPosition, $sortBy: [OrderBy], $filterFields: [FilterField], $page: Int, $pageSize: Int) {\n providers(\n client: $client\n search: $searchTerm\n specialty: $specialtyFilters\n organization_type: $organizationTypeFilters\n include_populated_PROA_only: $includePopulatedPROAonly\n gender: $gender\n search_position: $location\n order_by: $sortBy\n filter_values: $filterFields\n page_number: $page\n page_size: $pageSize\n ) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n filter_values {\n field\n values {\n value\n count\n }\n }\n results {\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n iconString\n organization_type {\n coding {\n code\n system\n display\n }\n text\n }\n content\n gender\n location {\n name\n identifier {\n type {\n text\n coding {\n system\n code\n display\n }\n }\n value\n system\n }\n alias\n description\n address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n system\n value\n rank\n }\n }\n specialty {\n code\n system\n display\n }\n id\n photo {\n contentType\n url\n title\n }\n name {\n ...HumanNameFields\n }\n telecom {\n system\n value\n rank\n }\n practitioner_qualification {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n code {\n coding {\n code\n system\n display\n }\n text\n }\n period {\n start\n end\n }\n issuer {\n reference\n display\n }\n }\n provider_type\n characteristic {\n code\n system\n display\n }\n organization {\n name\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n }\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
|
|
152
153
|
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 ";
|
|
153
154
|
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 bookable {\n online\n phone\n }\n location {\n scheduling {\n identifier {\n value\n system\n }\n bookable {\n online\n phone\n }\n }\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n telecom {\n system\n value\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n score\n scores {\n value\n description\n calculation\n }\n }\n }\n}\n ";
|
|
155
|
+
export declare const CreateSupportRequestDocument = "\n mutation CreateSupportRequest($input: CreateSupportRequestInput!) {\n createSupportRequest(input: $input) {\n data {\n id\n subject\n category\n created\n lastActivity\n status\n }\n }\n}\n ";
|
|
156
|
+
export declare const DeleteSupportAttachmentDocument = "\n mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {\n deleteSupportAttachment(input: $input) {\n status\n }\n}\n ";
|
|
157
|
+
export declare const GetSupportCategoriesDocument = "\n query GetSupportCategories {\n getSupportCategories {\n label\n value\n }\n}\n ";
|
|
154
158
|
export declare const GetSupportRequestsDocument = "\n query getSupportRequests($input: SupportRequestsInput) {\n getSupportRequests(input: $input) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n data {\n category\n created\n id\n lastActivity\n status\n subject\n }\n }\n}\n ";
|
|
159
|
+
export declare const UploadSupportAttachmentDocument = "\n mutation UploadSupportAttachment($input: UploadSupportAttachmentInput!) {\n uploadSupportAttachment(input: $input) {\n attachmentId\n attachments {\n fileName\n contentType\n size\n id\n }\n }\n}\n ";
|
|
155
160
|
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 system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
156
161
|
export declare const CreateDataExportDirectDownloadUrlDocument = "\n mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {\n createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)\n}\n ";
|
|
157
162
|
export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {\n createVerificationUrl(\n callbackURL: $callbackURL\n includeAttributeMatchingCheck: $includeAttributeMatchingCheck\n )\n}\n ";
|
|
@@ -498,6 +503,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
498
503
|
headers: Headers;
|
|
499
504
|
status: number;
|
|
500
505
|
}>;
|
|
506
|
+
CareTeamMembers(variables?: Types.CareTeamMembersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
507
|
+
data: Types.CareTeamMembersQueryResults;
|
|
508
|
+
errors?: GraphQLError[];
|
|
509
|
+
extensions?: any;
|
|
510
|
+
headers: Headers;
|
|
511
|
+
status: number;
|
|
512
|
+
}>;
|
|
501
513
|
removeCareTeamMember(variables: Types.RemoveCareTeamMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
502
514
|
data: Types.RemoveCareTeamMemberMutationResults;
|
|
503
515
|
errors?: GraphQLError[];
|
|
@@ -603,6 +615,27 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
603
615
|
headers: Headers;
|
|
604
616
|
status: number;
|
|
605
617
|
}>;
|
|
618
|
+
CreateSupportRequest(variables: Types.CreateSupportRequestMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
619
|
+
data: Types.CreateSupportRequestMutationResults;
|
|
620
|
+
errors?: GraphQLError[];
|
|
621
|
+
extensions?: any;
|
|
622
|
+
headers: Headers;
|
|
623
|
+
status: number;
|
|
624
|
+
}>;
|
|
625
|
+
DeleteSupportAttachment(variables: Types.DeleteSupportAttachmentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
626
|
+
data: Types.DeleteSupportAttachmentMutationResults;
|
|
627
|
+
errors?: GraphQLError[];
|
|
628
|
+
extensions?: any;
|
|
629
|
+
headers: Headers;
|
|
630
|
+
status: number;
|
|
631
|
+
}>;
|
|
632
|
+
GetSupportCategories(variables?: Types.GetSupportCategoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
633
|
+
data: Types.GetSupportCategoriesQueryResults;
|
|
634
|
+
errors?: GraphQLError[];
|
|
635
|
+
extensions?: any;
|
|
636
|
+
headers: Headers;
|
|
637
|
+
status: number;
|
|
638
|
+
}>;
|
|
606
639
|
getSupportRequests(variables?: Types.GetSupportRequestsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
607
640
|
data: Types.GetSupportRequestsQueryResults;
|
|
608
641
|
errors?: GraphQLError[];
|
|
@@ -610,6 +643,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
610
643
|
headers: Headers;
|
|
611
644
|
status: number;
|
|
612
645
|
}>;
|
|
646
|
+
UploadSupportAttachment(variables: Types.UploadSupportAttachmentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
647
|
+
data: Types.UploadSupportAttachmentMutationResults;
|
|
648
|
+
errors?: GraphQLError[];
|
|
649
|
+
extensions?: any;
|
|
650
|
+
headers: Headers;
|
|
651
|
+
status: number;
|
|
652
|
+
}>;
|
|
613
653
|
createConsent(variables: Types.CreateConsentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
614
654
|
data: Types.CreateConsentMutationResults;
|
|
615
655
|
errors?: GraphQLError[];
|
|
@@ -3407,6 +3407,35 @@ export const AddCareTeamMembersDocument = `
|
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
3409
|
`;
|
|
3410
|
+
export const CareTeamMembersDocument = `
|
|
3411
|
+
query CareTeamMembers($pageNumber: Int, $pageSize: Int) {
|
|
3412
|
+
careTeamMembers(
|
|
3413
|
+
input: {pagingInfo: {pageNumber: $pageNumber, pageSize: $pageSize}}
|
|
3414
|
+
) {
|
|
3415
|
+
pagingInfo {
|
|
3416
|
+
pageSize
|
|
3417
|
+
pageNumber
|
|
3418
|
+
totalPages
|
|
3419
|
+
totalItems
|
|
3420
|
+
}
|
|
3421
|
+
members {
|
|
3422
|
+
id
|
|
3423
|
+
role {
|
|
3424
|
+
coding {
|
|
3425
|
+
code
|
|
3426
|
+
system
|
|
3427
|
+
display
|
|
3428
|
+
}
|
|
3429
|
+
text
|
|
3430
|
+
}
|
|
3431
|
+
period {
|
|
3432
|
+
start
|
|
3433
|
+
end
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
`;
|
|
3410
3439
|
export const RemoveCareTeamMemberDocument = `
|
|
3411
3440
|
mutation removeCareTeamMember($participant: CareTeamParticipantInput!) {
|
|
3412
3441
|
updateCareTeamMember(participant: [$participant]) {
|
|
@@ -3867,6 +3896,35 @@ export const SearchHealthResourcesDocument = `
|
|
|
3867
3896
|
}
|
|
3868
3897
|
}
|
|
3869
3898
|
`;
|
|
3899
|
+
export const CreateSupportRequestDocument = `
|
|
3900
|
+
mutation CreateSupportRequest($input: CreateSupportRequestInput!) {
|
|
3901
|
+
createSupportRequest(input: $input) {
|
|
3902
|
+
data {
|
|
3903
|
+
id
|
|
3904
|
+
subject
|
|
3905
|
+
category
|
|
3906
|
+
created
|
|
3907
|
+
lastActivity
|
|
3908
|
+
status
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
`;
|
|
3913
|
+
export const DeleteSupportAttachmentDocument = `
|
|
3914
|
+
mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {
|
|
3915
|
+
deleteSupportAttachment(input: $input) {
|
|
3916
|
+
status
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
`;
|
|
3920
|
+
export const GetSupportCategoriesDocument = `
|
|
3921
|
+
query GetSupportCategories {
|
|
3922
|
+
getSupportCategories {
|
|
3923
|
+
label
|
|
3924
|
+
value
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
`;
|
|
3870
3928
|
export const GetSupportRequestsDocument = `
|
|
3871
3929
|
query getSupportRequests($input: SupportRequestsInput) {
|
|
3872
3930
|
getSupportRequests(input: $input) {
|
|
@@ -3887,6 +3945,19 @@ export const GetSupportRequestsDocument = `
|
|
|
3887
3945
|
}
|
|
3888
3946
|
}
|
|
3889
3947
|
`;
|
|
3948
|
+
export const UploadSupportAttachmentDocument = `
|
|
3949
|
+
mutation UploadSupportAttachment($input: UploadSupportAttachmentInput!) {
|
|
3950
|
+
uploadSupportAttachment(input: $input) {
|
|
3951
|
+
attachmentId
|
|
3952
|
+
attachments {
|
|
3953
|
+
fileName
|
|
3954
|
+
contentType
|
|
3955
|
+
size
|
|
3956
|
+
id
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3959
|
+
}
|
|
3960
|
+
`;
|
|
3890
3961
|
export const CreateConsentDocument = `
|
|
3891
3962
|
mutation createConsent($consentInput: ConsentInput!) {
|
|
3892
3963
|
createConsent(consentInput: $consentInput) {
|
|
@@ -4241,6 +4312,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4241
4312
|
addCareTeamMembers(variables, requestHeaders) {
|
|
4242
4313
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(AddCareTeamMembersDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'addCareTeamMembers', 'mutation', variables);
|
|
4243
4314
|
},
|
|
4315
|
+
CareTeamMembers(variables, requestHeaders) {
|
|
4316
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CareTeamMembersDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CareTeamMembers', 'query', variables);
|
|
4317
|
+
},
|
|
4244
4318
|
removeCareTeamMember(variables, requestHeaders) {
|
|
4245
4319
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(RemoveCareTeamMemberDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'removeCareTeamMember', 'mutation', variables);
|
|
4246
4320
|
},
|
|
@@ -4286,9 +4360,21 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4286
4360
|
SearchHealthResources(variables, requestHeaders) {
|
|
4287
4361
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(SearchHealthResourcesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'SearchHealthResources', 'query', variables);
|
|
4288
4362
|
},
|
|
4363
|
+
CreateSupportRequest(variables, requestHeaders) {
|
|
4364
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateSupportRequestDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateSupportRequest', 'mutation', variables);
|
|
4365
|
+
},
|
|
4366
|
+
DeleteSupportAttachment(variables, requestHeaders) {
|
|
4367
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(DeleteSupportAttachmentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteSupportAttachment', 'mutation', variables);
|
|
4368
|
+
},
|
|
4369
|
+
GetSupportCategories(variables, requestHeaders) {
|
|
4370
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportCategoriesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetSupportCategories', 'query', variables);
|
|
4371
|
+
},
|
|
4289
4372
|
getSupportRequests(variables, requestHeaders) {
|
|
4290
4373
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportRequestsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportRequests', 'query', variables);
|
|
4291
4374
|
},
|
|
4375
|
+
UploadSupportAttachment(variables, requestHeaders) {
|
|
4376
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(UploadSupportAttachmentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'UploadSupportAttachment', 'mutation', variables);
|
|
4377
|
+
},
|
|
4292
4378
|
createConsent(variables, requestHeaders) {
|
|
4293
4379
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateConsentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createConsent', 'mutation', variables);
|
|
4294
4380
|
},
|
|
@@ -18451,6 +18451,35 @@ export type AddCareTeamMembersMutationResults = {
|
|
|
18451
18451
|
id: string;
|
|
18452
18452
|
};
|
|
18453
18453
|
};
|
|
18454
|
+
export type CareTeamMembersQueryVariables = Types.Exact<{
|
|
18455
|
+
pageNumber: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
18456
|
+
pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
18457
|
+
}>;
|
|
18458
|
+
export type CareTeamMembersQueryResults = {
|
|
18459
|
+
careTeamMembers: {
|
|
18460
|
+
pagingInfo: {
|
|
18461
|
+
pageSize: number;
|
|
18462
|
+
pageNumber: number;
|
|
18463
|
+
totalPages: number;
|
|
18464
|
+
totalItems: number;
|
|
18465
|
+
} | null;
|
|
18466
|
+
members: Array<{
|
|
18467
|
+
id: string | null;
|
|
18468
|
+
role: Array<{
|
|
18469
|
+
text: string | null;
|
|
18470
|
+
coding: Array<{
|
|
18471
|
+
system: any | null;
|
|
18472
|
+
code: any | null;
|
|
18473
|
+
display: string | null;
|
|
18474
|
+
} | null> | null;
|
|
18475
|
+
} | null> | null;
|
|
18476
|
+
period: {
|
|
18477
|
+
start: any | null;
|
|
18478
|
+
end: any | null;
|
|
18479
|
+
} | null;
|
|
18480
|
+
} | null> | null;
|
|
18481
|
+
} | null;
|
|
18482
|
+
};
|
|
18454
18483
|
export type RemoveCareTeamMemberMutationVariables = Types.Exact<{
|
|
18455
18484
|
participant: Types.CareTeamParticipantInput;
|
|
18456
18485
|
}>;
|
|
@@ -22208,10 +22237,10 @@ export type SearchHealthResourcesQueryVariables = Types.Exact<{
|
|
|
22208
22237
|
export type SearchHealthResourcesQueryResults = {
|
|
22209
22238
|
searchHealthResources: {
|
|
22210
22239
|
pagingInfo: {
|
|
22211
|
-
pageNumber: number;
|
|
22212
22240
|
pageSize: number;
|
|
22213
|
-
|
|
22241
|
+
pageNumber: number;
|
|
22214
22242
|
totalPages: number;
|
|
22243
|
+
totalItems: number;
|
|
22215
22244
|
} | null;
|
|
22216
22245
|
filterValues: Array<{
|
|
22217
22246
|
field: Types.FilterFieldEnum | null;
|
|
@@ -22304,6 +22333,38 @@ export type SearchHealthResourcesQueryResults = {
|
|
|
22304
22333
|
} | null> | null;
|
|
22305
22334
|
};
|
|
22306
22335
|
};
|
|
22336
|
+
export type CreateSupportRequestMutationVariables = Types.Exact<{
|
|
22337
|
+
input: Types.CreateSupportRequestInput;
|
|
22338
|
+
}>;
|
|
22339
|
+
export type CreateSupportRequestMutationResults = {
|
|
22340
|
+
createSupportRequest: {
|
|
22341
|
+
data: {
|
|
22342
|
+
id: number;
|
|
22343
|
+
subject: string;
|
|
22344
|
+
category: string;
|
|
22345
|
+
created: string;
|
|
22346
|
+
lastActivity: string;
|
|
22347
|
+
status: Types.RequestStatus;
|
|
22348
|
+
} | null;
|
|
22349
|
+
};
|
|
22350
|
+
};
|
|
22351
|
+
export type DeleteSupportAttachmentMutationVariables = Types.Exact<{
|
|
22352
|
+
input: Types.DeleteSupportAttachmentInput;
|
|
22353
|
+
}>;
|
|
22354
|
+
export type DeleteSupportAttachmentMutationResults = {
|
|
22355
|
+
deleteSupportAttachment: {
|
|
22356
|
+
status: Types.DeletionStatus;
|
|
22357
|
+
};
|
|
22358
|
+
};
|
|
22359
|
+
export type GetSupportCategoriesQueryVariables = Types.Exact<{
|
|
22360
|
+
[key: string]: never;
|
|
22361
|
+
}>;
|
|
22362
|
+
export type GetSupportCategoriesQueryResults = {
|
|
22363
|
+
getSupportCategories: Array<{
|
|
22364
|
+
label: string;
|
|
22365
|
+
value: string;
|
|
22366
|
+
}>;
|
|
22367
|
+
};
|
|
22307
22368
|
export type GetSupportRequestsQueryVariables = Types.Exact<{
|
|
22308
22369
|
input: Types.InputMaybe<Types.SupportRequestsInput>;
|
|
22309
22370
|
}>;
|
|
@@ -22316,12 +22377,26 @@ export type GetSupportRequestsQueryResults = {
|
|
|
22316
22377
|
total_items: number;
|
|
22317
22378
|
};
|
|
22318
22379
|
data: Array<{
|
|
22380
|
+
id: number;
|
|
22381
|
+
subject: string;
|
|
22319
22382
|
category: string;
|
|
22320
22383
|
created: string;
|
|
22321
|
-
id: number;
|
|
22322
22384
|
lastActivity: string;
|
|
22323
22385
|
status: Types.RequestStatus;
|
|
22324
|
-
|
|
22386
|
+
}>;
|
|
22387
|
+
};
|
|
22388
|
+
};
|
|
22389
|
+
export type UploadSupportAttachmentMutationVariables = Types.Exact<{
|
|
22390
|
+
input: Types.UploadSupportAttachmentInput;
|
|
22391
|
+
}>;
|
|
22392
|
+
export type UploadSupportAttachmentMutationResults = {
|
|
22393
|
+
uploadSupportAttachment: {
|
|
22394
|
+
attachmentId: string;
|
|
22395
|
+
attachments: Array<{
|
|
22396
|
+
fileName: string;
|
|
22397
|
+
contentType: string;
|
|
22398
|
+
size: number;
|
|
22399
|
+
id: string;
|
|
22325
22400
|
}>;
|
|
22326
22401
|
};
|
|
22327
22402
|
};
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -436,6 +436,7 @@ export type AttachmentMetadata = {
|
|
|
436
436
|
__typename?: 'AttachmentMetadata';
|
|
437
437
|
contentType: Scalars['String']['output'];
|
|
438
438
|
fileName: Scalars['String']['output'];
|
|
439
|
+
id: Scalars['ID']['output'];
|
|
439
440
|
size: Scalars['Int']['output'];
|
|
440
441
|
};
|
|
441
442
|
export type AuthCode = {
|
|
@@ -637,6 +638,20 @@ export type CareTeam = {
|
|
|
637
638
|
__typename?: 'CareTeam';
|
|
638
639
|
id: Scalars['ID']['output'];
|
|
639
640
|
};
|
|
641
|
+
export type CareTeamMember = {
|
|
642
|
+
__typename?: 'CareTeamMember';
|
|
643
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
644
|
+
period?: Maybe<Period>;
|
|
645
|
+
role?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
646
|
+
};
|
|
647
|
+
export type CareTeamMembersInput = {
|
|
648
|
+
pagingInfo?: InputMaybe<PagingInfoInput>;
|
|
649
|
+
};
|
|
650
|
+
export type CareTeamMembersOutput = {
|
|
651
|
+
__typename?: 'CareTeamMembersOutput';
|
|
652
|
+
members?: Maybe<Array<Maybe<CareTeamMember>>>;
|
|
653
|
+
pagingInfo?: Maybe<PagingInfoType>;
|
|
654
|
+
};
|
|
640
655
|
export type CareTeamParticipant = {
|
|
641
656
|
__typename?: 'CareTeamParticipant';
|
|
642
657
|
member?: Maybe<CareTeamParticipantMember>;
|
|
@@ -851,6 +866,11 @@ export type CodingInput = {
|
|
|
851
866
|
display?: InputMaybe<Scalars['String']['input']>;
|
|
852
867
|
system?: InputMaybe<Scalars['String']['input']>;
|
|
853
868
|
};
|
|
869
|
+
export type CommentAuthor = {
|
|
870
|
+
__typename?: 'CommentAuthor';
|
|
871
|
+
email: Scalars['String']['output'];
|
|
872
|
+
name: Scalars['String']['output'];
|
|
873
|
+
};
|
|
854
874
|
export type CommentInput = {
|
|
855
875
|
body: Scalars['String']['input'];
|
|
856
876
|
uploads?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -1288,6 +1308,15 @@ export type CreateHealthLinkInput = {
|
|
|
1288
1308
|
resources?: InputMaybe<Array<ResourceInput>>;
|
|
1289
1309
|
securityConfig: SecurityConfigInput;
|
|
1290
1310
|
};
|
|
1311
|
+
export type CreateSupportCommentInput = {
|
|
1312
|
+
body: Scalars['String']['input'];
|
|
1313
|
+
requestId: Scalars['Int']['input'];
|
|
1314
|
+
uploads?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1315
|
+
};
|
|
1316
|
+
export type CreateSupportCommentResponse = {
|
|
1317
|
+
__typename?: 'CreateSupportCommentResponse';
|
|
1318
|
+
comment: SupportComment;
|
|
1319
|
+
};
|
|
1291
1320
|
export type CreateSupportRequestInput = {
|
|
1292
1321
|
comment: CommentInput;
|
|
1293
1322
|
email?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3297,6 +3326,7 @@ export type Mutation = {
|
|
|
3297
3326
|
createMissingConsents?: Maybe<Scalars['String']['output']>;
|
|
3298
3327
|
createPersonWithClientId?: Maybe<PersonWithMetadata>;
|
|
3299
3328
|
createQuestionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
|
|
3329
|
+
createSupportComment: CreateSupportCommentResponse;
|
|
3300
3330
|
createSupportRequest: CreateSupportRequestResponse;
|
|
3301
3331
|
createVerificationUrl: Scalars['String']['output'];
|
|
3302
3332
|
/**
|
|
@@ -3582,6 +3612,9 @@ export type MutationCreatePersonWithClientIdArgs = {
|
|
|
3582
3612
|
export type MutationCreateQuestionnaireResponseArgs = {
|
|
3583
3613
|
input: QuestionnaireResponse_Input;
|
|
3584
3614
|
};
|
|
3615
|
+
export type MutationCreateSupportCommentArgs = {
|
|
3616
|
+
input: CreateSupportCommentInput;
|
|
3617
|
+
};
|
|
3585
3618
|
export type MutationCreateSupportRequestArgs = {
|
|
3586
3619
|
input: CreateSupportRequestInput;
|
|
3587
3620
|
};
|
|
@@ -4928,6 +4961,7 @@ export type Query = {
|
|
|
4928
4961
|
appointments?: Maybe<AppointmentBundle>;
|
|
4929
4962
|
bootstrap: BootstrapConfiguration;
|
|
4930
4963
|
cancelationReasons: CodeSystem;
|
|
4964
|
+
careTeamMembers?: Maybe<CareTeamMembersOutput>;
|
|
4931
4965
|
consent?: Maybe<Array<Maybe<LegacyConsent>>>;
|
|
4932
4966
|
consentAsyncTasks?: Maybe<Array<Maybe<Job>>>;
|
|
4933
4967
|
coverages?: Maybe<CoverageBundle>;
|
|
@@ -4983,7 +5017,10 @@ export type Query = {
|
|
|
4983
5017
|
getPersonByRegCode?: Maybe<RegCodePersonDto>;
|
|
4984
5018
|
getProcedureGroups: ProcedureGroupQueryResults;
|
|
4985
5019
|
getProcedures: ProcedureQueryResults;
|
|
5020
|
+
getSupportArticles: SupportArticlesResponse;
|
|
5021
|
+
getSupportAttachment: SupportAttachment;
|
|
4986
5022
|
getSupportCategories: Array<SupportCategory>;
|
|
5023
|
+
getSupportComments: SupportCommentsResponse;
|
|
4987
5024
|
getSupportRequest: SupportRequestDetail;
|
|
4988
5025
|
getSupportRequests: SupportRequestsResponse;
|
|
4989
5026
|
/** Query to search for tasks. This query is the preferred method for searching for tasks. */
|
|
@@ -5066,6 +5103,9 @@ export type QueryBootstrapArgs = {
|
|
|
5066
5103
|
export type QueryCancelationReasonsArgs = {
|
|
5067
5104
|
organization: SearchReference;
|
|
5068
5105
|
};
|
|
5106
|
+
export type QueryCareTeamMembersArgs = {
|
|
5107
|
+
input?: InputMaybe<CareTeamMembersInput>;
|
|
5108
|
+
};
|
|
5069
5109
|
export type QueryConsentArgs = {
|
|
5070
5110
|
patientId?: InputMaybe<Scalars['String']['input']>;
|
|
5071
5111
|
questionnaireId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5221,6 +5261,15 @@ export type QueryGetProcedureGroupsArgs = {
|
|
|
5221
5261
|
export type QueryGetProceduresArgs = {
|
|
5222
5262
|
request?: InputMaybe<ProcedureRequest>;
|
|
5223
5263
|
};
|
|
5264
|
+
export type QueryGetSupportArticlesArgs = {
|
|
5265
|
+
input?: InputMaybe<SupportArticlesInput>;
|
|
5266
|
+
};
|
|
5267
|
+
export type QueryGetSupportAttachmentArgs = {
|
|
5268
|
+
input: SupportAttachmentInput;
|
|
5269
|
+
};
|
|
5270
|
+
export type QueryGetSupportCommentsArgs = {
|
|
5271
|
+
input: SupportCommentsInput;
|
|
5272
|
+
};
|
|
5224
5273
|
export type QueryGetSupportRequestArgs = {
|
|
5225
5274
|
id: Scalars['Int']['input'];
|
|
5226
5275
|
};
|
|
@@ -6086,6 +6135,8 @@ export type SearchFiltersInput = {
|
|
|
6086
6135
|
export type SearchHealthResourcesInput = {
|
|
6087
6136
|
/** Information about the client configuration to use for this call to filter data and apply default settings */
|
|
6088
6137
|
client?: InputMaybe<Array<InputMaybe<ClientInput>>>;
|
|
6138
|
+
/** Return possible values of these fields in the search results */
|
|
6139
|
+
filterValues?: InputMaybe<Array<InputMaybe<FilterFieldEnum>>>;
|
|
6089
6140
|
/** A set of filters applied to search results */
|
|
6090
6141
|
filters?: InputMaybe<SearchFiltersInput>;
|
|
6091
6142
|
/** Order by these fields */
|
|
@@ -6110,15 +6161,15 @@ export type SearchHealthResourcesResults = {
|
|
|
6110
6161
|
/** Geographic center point for location-based search */
|
|
6111
6162
|
export type SearchLocation = {
|
|
6112
6163
|
/** Latitude of the search center */
|
|
6113
|
-
lat
|
|
6164
|
+
lat?: InputMaybe<Scalars['Float']['input']>;
|
|
6114
6165
|
/** Longitude of the search center */
|
|
6115
|
-
lon
|
|
6166
|
+
lon?: InputMaybe<Scalars['Float']['input']>;
|
|
6116
6167
|
/** Maximum distance radius for location-based filtering */
|
|
6117
6168
|
radius?: InputMaybe<Scalars['Float']['input']>;
|
|
6118
6169
|
/** Unit of measurement for the radius */
|
|
6119
6170
|
radiusUnit?: InputMaybe<DistanceUnitEnum>;
|
|
6120
6171
|
/**
|
|
6121
|
-
* Prioritizes local health systems around given zipCode.
|
|
6172
|
+
* Prioritizes local health systems around given zipCode. Preference given to lat/lon if provided.
|
|
6122
6173
|
* NOTE: Inputs `type` must be `[PRACTICE]` and `orderBy` must be `[DATA_SOURCE_RANK]`
|
|
6123
6174
|
*/
|
|
6124
6175
|
zipCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -6591,11 +6642,64 @@ export type SubstanceInstance = {
|
|
|
6591
6642
|
identifier?: Maybe<Identifier>;
|
|
6592
6643
|
quantity?: Maybe<Quantity>;
|
|
6593
6644
|
};
|
|
6645
|
+
export type SupportArticle = {
|
|
6646
|
+
__typename?: 'SupportArticle';
|
|
6647
|
+
body: Scalars['String']['output'];
|
|
6648
|
+
createdAt: Scalars['String']['output'];
|
|
6649
|
+
htmlUrl: Scalars['String']['output'];
|
|
6650
|
+
id: Scalars['String']['output'];
|
|
6651
|
+
labelNames: Array<Scalars['String']['output']>;
|
|
6652
|
+
snippet?: Maybe<Scalars['String']['output']>;
|
|
6653
|
+
title: Scalars['String']['output'];
|
|
6654
|
+
updatedAt: Scalars['String']['output'];
|
|
6655
|
+
};
|
|
6656
|
+
export type SupportArticlesInput = {
|
|
6657
|
+
labelNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
6658
|
+
locale?: InputMaybe<Scalars['String']['input']>;
|
|
6659
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
6660
|
+
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
6661
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
6662
|
+
};
|
|
6663
|
+
export type SupportArticlesResponse = PagedQueryResults & {
|
|
6664
|
+
__typename?: 'SupportArticlesResponse';
|
|
6665
|
+
data: Array<SupportArticle>;
|
|
6666
|
+
paging_info: PagingResults;
|
|
6667
|
+
};
|
|
6668
|
+
export type SupportAttachment = {
|
|
6669
|
+
__typename?: 'SupportAttachment';
|
|
6670
|
+
attachment: Scalars['String']['output'];
|
|
6671
|
+
contentType: Scalars['String']['output'];
|
|
6672
|
+
name: Scalars['String']['output'];
|
|
6673
|
+
};
|
|
6674
|
+
export type SupportAttachmentInput = {
|
|
6675
|
+
attachmentId: Scalars['String']['input'];
|
|
6676
|
+
requestId: Scalars['Int']['input'];
|
|
6677
|
+
};
|
|
6594
6678
|
export type SupportCategory = {
|
|
6595
6679
|
__typename?: 'SupportCategory';
|
|
6596
6680
|
label: Scalars['String']['output'];
|
|
6597
6681
|
value: Scalars['String']['output'];
|
|
6598
6682
|
};
|
|
6683
|
+
export type SupportComment = {
|
|
6684
|
+
__typename?: 'SupportComment';
|
|
6685
|
+
attachments: Array<AttachmentMetadata>;
|
|
6686
|
+
author: CommentAuthor;
|
|
6687
|
+
body: Scalars['String']['output'];
|
|
6688
|
+
createdAt: Scalars['String']['output'];
|
|
6689
|
+
htmlBody: Scalars['String']['output'];
|
|
6690
|
+
id: Scalars['ID']['output'];
|
|
6691
|
+
};
|
|
6692
|
+
export type SupportCommentsInput = {
|
|
6693
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
6694
|
+
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
6695
|
+
requestId: Scalars['Int']['input'];
|
|
6696
|
+
sortOrder?: InputMaybe<SortOrderEnum>;
|
|
6697
|
+
};
|
|
6698
|
+
export type SupportCommentsResponse = PagedQueryResults & {
|
|
6699
|
+
__typename?: 'SupportCommentsResponse';
|
|
6700
|
+
comments: Array<SupportComment>;
|
|
6701
|
+
paging_info: PagingResults;
|
|
6702
|
+
};
|
|
6599
6703
|
export type SupportRequest = {
|
|
6600
6704
|
__typename?: 'SupportRequest';
|
|
6601
6705
|
category: Scalars['String']['output'];
|