@icanbwell/bwell-sdk-ts 1.52.0-rc.1765552726 → 1.53.0-rc.1766074701
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/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/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 +32 -0
- package/dist/graphql/operations/index.js +54 -0
- package/dist/graphql/operations/types.d.ts +48 -2
- package/dist/graphql/schema.d.ts +105 -3
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -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,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
|
+
}
|
|
@@ -151,7 +151,11 @@ export declare const SaveQuestionnaireResponseDocument = "\n mutation saveQue
|
|
|
151
151
|
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
152
|
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
153
|
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 ";
|
|
154
|
+
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 ";
|
|
155
|
+
export declare const DeleteSupportAttachmentDocument = "\n mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {\n deleteSupportAttachment(input: $input) {\n status\n }\n}\n ";
|
|
156
|
+
export declare const GetSupportCategoriesDocument = "\n query GetSupportCategories {\n getSupportCategories {\n label\n value\n }\n}\n ";
|
|
154
157
|
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 ";
|
|
158
|
+
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
159
|
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
160
|
export declare const CreateDataExportDirectDownloadUrlDocument = "\n mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {\n createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)\n}\n ";
|
|
157
161
|
export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {\n createVerificationUrl(\n callbackURL: $callbackURL\n includeAttributeMatchingCheck: $includeAttributeMatchingCheck\n )\n}\n ";
|
|
@@ -603,6 +607,27 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
603
607
|
headers: Headers;
|
|
604
608
|
status: number;
|
|
605
609
|
}>;
|
|
610
|
+
CreateSupportRequest(variables: Types.CreateSupportRequestMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
611
|
+
data: Types.CreateSupportRequestMutationResults;
|
|
612
|
+
errors?: GraphQLError[];
|
|
613
|
+
extensions?: any;
|
|
614
|
+
headers: Headers;
|
|
615
|
+
status: number;
|
|
616
|
+
}>;
|
|
617
|
+
DeleteSupportAttachment(variables: Types.DeleteSupportAttachmentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
618
|
+
data: Types.DeleteSupportAttachmentMutationResults;
|
|
619
|
+
errors?: GraphQLError[];
|
|
620
|
+
extensions?: any;
|
|
621
|
+
headers: Headers;
|
|
622
|
+
status: number;
|
|
623
|
+
}>;
|
|
624
|
+
GetSupportCategories(variables?: Types.GetSupportCategoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
625
|
+
data: Types.GetSupportCategoriesQueryResults;
|
|
626
|
+
errors?: GraphQLError[];
|
|
627
|
+
extensions?: any;
|
|
628
|
+
headers: Headers;
|
|
629
|
+
status: number;
|
|
630
|
+
}>;
|
|
606
631
|
getSupportRequests(variables?: Types.GetSupportRequestsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
607
632
|
data: Types.GetSupportRequestsQueryResults;
|
|
608
633
|
errors?: GraphQLError[];
|
|
@@ -610,6 +635,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
610
635
|
headers: Headers;
|
|
611
636
|
status: number;
|
|
612
637
|
}>;
|
|
638
|
+
UploadSupportAttachment(variables: Types.UploadSupportAttachmentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
639
|
+
data: Types.UploadSupportAttachmentMutationResults;
|
|
640
|
+
errors?: GraphQLError[];
|
|
641
|
+
extensions?: any;
|
|
642
|
+
headers: Headers;
|
|
643
|
+
status: number;
|
|
644
|
+
}>;
|
|
613
645
|
createConsent(variables: Types.CreateConsentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
614
646
|
data: Types.CreateConsentMutationResults;
|
|
615
647
|
errors?: GraphQLError[];
|
|
@@ -3867,6 +3867,35 @@ export const SearchHealthResourcesDocument = `
|
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
`;
|
|
3870
|
+
export const CreateSupportRequestDocument = `
|
|
3871
|
+
mutation CreateSupportRequest($input: CreateSupportRequestInput!) {
|
|
3872
|
+
createSupportRequest(input: $input) {
|
|
3873
|
+
data {
|
|
3874
|
+
id
|
|
3875
|
+
subject
|
|
3876
|
+
category
|
|
3877
|
+
created
|
|
3878
|
+
lastActivity
|
|
3879
|
+
status
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
`;
|
|
3884
|
+
export const DeleteSupportAttachmentDocument = `
|
|
3885
|
+
mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {
|
|
3886
|
+
deleteSupportAttachment(input: $input) {
|
|
3887
|
+
status
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
`;
|
|
3891
|
+
export const GetSupportCategoriesDocument = `
|
|
3892
|
+
query GetSupportCategories {
|
|
3893
|
+
getSupportCategories {
|
|
3894
|
+
label
|
|
3895
|
+
value
|
|
3896
|
+
}
|
|
3897
|
+
}
|
|
3898
|
+
`;
|
|
3870
3899
|
export const GetSupportRequestsDocument = `
|
|
3871
3900
|
query getSupportRequests($input: SupportRequestsInput) {
|
|
3872
3901
|
getSupportRequests(input: $input) {
|
|
@@ -3887,6 +3916,19 @@ export const GetSupportRequestsDocument = `
|
|
|
3887
3916
|
}
|
|
3888
3917
|
}
|
|
3889
3918
|
`;
|
|
3919
|
+
export const UploadSupportAttachmentDocument = `
|
|
3920
|
+
mutation UploadSupportAttachment($input: UploadSupportAttachmentInput!) {
|
|
3921
|
+
uploadSupportAttachment(input: $input) {
|
|
3922
|
+
attachmentId
|
|
3923
|
+
attachments {
|
|
3924
|
+
fileName
|
|
3925
|
+
contentType
|
|
3926
|
+
size
|
|
3927
|
+
id
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
`;
|
|
3890
3932
|
export const CreateConsentDocument = `
|
|
3891
3933
|
mutation createConsent($consentInput: ConsentInput!) {
|
|
3892
3934
|
createConsent(consentInput: $consentInput) {
|
|
@@ -4286,9 +4328,21 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4286
4328
|
SearchHealthResources(variables, requestHeaders) {
|
|
4287
4329
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(SearchHealthResourcesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'SearchHealthResources', 'query', variables);
|
|
4288
4330
|
},
|
|
4331
|
+
CreateSupportRequest(variables, requestHeaders) {
|
|
4332
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateSupportRequestDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateSupportRequest', 'mutation', variables);
|
|
4333
|
+
},
|
|
4334
|
+
DeleteSupportAttachment(variables, requestHeaders) {
|
|
4335
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(DeleteSupportAttachmentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteSupportAttachment', 'mutation', variables);
|
|
4336
|
+
},
|
|
4337
|
+
GetSupportCategories(variables, requestHeaders) {
|
|
4338
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportCategoriesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetSupportCategories', 'query', variables);
|
|
4339
|
+
},
|
|
4289
4340
|
getSupportRequests(variables, requestHeaders) {
|
|
4290
4341
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportRequestsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportRequests', 'query', variables);
|
|
4291
4342
|
},
|
|
4343
|
+
UploadSupportAttachment(variables, requestHeaders) {
|
|
4344
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(UploadSupportAttachmentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'UploadSupportAttachment', 'mutation', variables);
|
|
4345
|
+
},
|
|
4292
4346
|
createConsent(variables, requestHeaders) {
|
|
4293
4347
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateConsentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createConsent', 'mutation', variables);
|
|
4294
4348
|
},
|
|
@@ -22304,6 +22304,38 @@ export type SearchHealthResourcesQueryResults = {
|
|
|
22304
22304
|
} | null> | null;
|
|
22305
22305
|
};
|
|
22306
22306
|
};
|
|
22307
|
+
export type CreateSupportRequestMutationVariables = Types.Exact<{
|
|
22308
|
+
input: Types.CreateSupportRequestInput;
|
|
22309
|
+
}>;
|
|
22310
|
+
export type CreateSupportRequestMutationResults = {
|
|
22311
|
+
createSupportRequest: {
|
|
22312
|
+
data: {
|
|
22313
|
+
id: number;
|
|
22314
|
+
subject: string;
|
|
22315
|
+
category: string;
|
|
22316
|
+
created: string;
|
|
22317
|
+
lastActivity: string;
|
|
22318
|
+
status: Types.RequestStatus;
|
|
22319
|
+
} | null;
|
|
22320
|
+
};
|
|
22321
|
+
};
|
|
22322
|
+
export type DeleteSupportAttachmentMutationVariables = Types.Exact<{
|
|
22323
|
+
input: Types.DeleteSupportAttachmentInput;
|
|
22324
|
+
}>;
|
|
22325
|
+
export type DeleteSupportAttachmentMutationResults = {
|
|
22326
|
+
deleteSupportAttachment: {
|
|
22327
|
+
status: Types.DeletionStatus;
|
|
22328
|
+
};
|
|
22329
|
+
};
|
|
22330
|
+
export type GetSupportCategoriesQueryVariables = Types.Exact<{
|
|
22331
|
+
[key: string]: never;
|
|
22332
|
+
}>;
|
|
22333
|
+
export type GetSupportCategoriesQueryResults = {
|
|
22334
|
+
getSupportCategories: Array<{
|
|
22335
|
+
label: string;
|
|
22336
|
+
value: string;
|
|
22337
|
+
}>;
|
|
22338
|
+
};
|
|
22307
22339
|
export type GetSupportRequestsQueryVariables = Types.Exact<{
|
|
22308
22340
|
input: Types.InputMaybe<Types.SupportRequestsInput>;
|
|
22309
22341
|
}>;
|
|
@@ -22316,12 +22348,26 @@ export type GetSupportRequestsQueryResults = {
|
|
|
22316
22348
|
total_items: number;
|
|
22317
22349
|
};
|
|
22318
22350
|
data: Array<{
|
|
22351
|
+
id: number;
|
|
22352
|
+
subject: string;
|
|
22319
22353
|
category: string;
|
|
22320
22354
|
created: string;
|
|
22321
|
-
id: number;
|
|
22322
22355
|
lastActivity: string;
|
|
22323
22356
|
status: Types.RequestStatus;
|
|
22324
|
-
|
|
22357
|
+
}>;
|
|
22358
|
+
};
|
|
22359
|
+
};
|
|
22360
|
+
export type UploadSupportAttachmentMutationVariables = Types.Exact<{
|
|
22361
|
+
input: Types.UploadSupportAttachmentInput;
|
|
22362
|
+
}>;
|
|
22363
|
+
export type UploadSupportAttachmentMutationResults = {
|
|
22364
|
+
uploadSupportAttachment: {
|
|
22365
|
+
attachmentId: string;
|
|
22366
|
+
attachments: Array<{
|
|
22367
|
+
fileName: string;
|
|
22368
|
+
contentType: string;
|
|
22369
|
+
size: number;
|
|
22370
|
+
id: string;
|
|
22325
22371
|
}>;
|
|
22326
22372
|
};
|
|
22327
22373
|
};
|
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
|
};
|
|
@@ -6110,15 +6159,15 @@ export type SearchHealthResourcesResults = {
|
|
|
6110
6159
|
/** Geographic center point for location-based search */
|
|
6111
6160
|
export type SearchLocation = {
|
|
6112
6161
|
/** Latitude of the search center */
|
|
6113
|
-
lat
|
|
6162
|
+
lat?: InputMaybe<Scalars['Float']['input']>;
|
|
6114
6163
|
/** Longitude of the search center */
|
|
6115
|
-
lon
|
|
6164
|
+
lon?: InputMaybe<Scalars['Float']['input']>;
|
|
6116
6165
|
/** Maximum distance radius for location-based filtering */
|
|
6117
6166
|
radius?: InputMaybe<Scalars['Float']['input']>;
|
|
6118
6167
|
/** Unit of measurement for the radius */
|
|
6119
6168
|
radiusUnit?: InputMaybe<DistanceUnitEnum>;
|
|
6120
6169
|
/**
|
|
6121
|
-
* Prioritizes local health systems around given zipCode.
|
|
6170
|
+
* Prioritizes local health systems around given zipCode. Preference given to lat/lon if provided.
|
|
6122
6171
|
* NOTE: Inputs `type` must be `[PRACTICE]` and `orderBy` must be `[DATA_SOURCE_RANK]`
|
|
6123
6172
|
*/
|
|
6124
6173
|
zipCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -6591,11 +6640,64 @@ export type SubstanceInstance = {
|
|
|
6591
6640
|
identifier?: Maybe<Identifier>;
|
|
6592
6641
|
quantity?: Maybe<Quantity>;
|
|
6593
6642
|
};
|
|
6643
|
+
export type SupportArticle = {
|
|
6644
|
+
__typename?: 'SupportArticle';
|
|
6645
|
+
body: Scalars['String']['output'];
|
|
6646
|
+
createdAt: Scalars['String']['output'];
|
|
6647
|
+
htmlUrl: Scalars['String']['output'];
|
|
6648
|
+
id: Scalars['String']['output'];
|
|
6649
|
+
labelNames: Array<Scalars['String']['output']>;
|
|
6650
|
+
snippet?: Maybe<Scalars['String']['output']>;
|
|
6651
|
+
title: Scalars['String']['output'];
|
|
6652
|
+
updatedAt: Scalars['String']['output'];
|
|
6653
|
+
};
|
|
6654
|
+
export type SupportArticlesInput = {
|
|
6655
|
+
labelNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
6656
|
+
locale?: InputMaybe<Scalars['String']['input']>;
|
|
6657
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
6658
|
+
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
6659
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
6660
|
+
};
|
|
6661
|
+
export type SupportArticlesResponse = PagedQueryResults & {
|
|
6662
|
+
__typename?: 'SupportArticlesResponse';
|
|
6663
|
+
data: Array<SupportArticle>;
|
|
6664
|
+
paging_info: PagingResults;
|
|
6665
|
+
};
|
|
6666
|
+
export type SupportAttachment = {
|
|
6667
|
+
__typename?: 'SupportAttachment';
|
|
6668
|
+
attachment: Scalars['String']['output'];
|
|
6669
|
+
contentType: Scalars['String']['output'];
|
|
6670
|
+
name: Scalars['String']['output'];
|
|
6671
|
+
};
|
|
6672
|
+
export type SupportAttachmentInput = {
|
|
6673
|
+
attachmentId: Scalars['String']['input'];
|
|
6674
|
+
requestId: Scalars['Int']['input'];
|
|
6675
|
+
};
|
|
6594
6676
|
export type SupportCategory = {
|
|
6595
6677
|
__typename?: 'SupportCategory';
|
|
6596
6678
|
label: Scalars['String']['output'];
|
|
6597
6679
|
value: Scalars['String']['output'];
|
|
6598
6680
|
};
|
|
6681
|
+
export type SupportComment = {
|
|
6682
|
+
__typename?: 'SupportComment';
|
|
6683
|
+
attachments: Array<AttachmentMetadata>;
|
|
6684
|
+
author: CommentAuthor;
|
|
6685
|
+
body: Scalars['String']['output'];
|
|
6686
|
+
createdAt: Scalars['String']['output'];
|
|
6687
|
+
htmlBody: Scalars['String']['output'];
|
|
6688
|
+
id: Scalars['ID']['output'];
|
|
6689
|
+
};
|
|
6690
|
+
export type SupportCommentsInput = {
|
|
6691
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
6692
|
+
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
6693
|
+
requestId: Scalars['Int']['input'];
|
|
6694
|
+
sortOrder?: InputMaybe<SortOrderEnum>;
|
|
6695
|
+
};
|
|
6696
|
+
export type SupportCommentsResponse = PagedQueryResults & {
|
|
6697
|
+
__typename?: 'SupportCommentsResponse';
|
|
6698
|
+
comments: Array<SupportComment>;
|
|
6699
|
+
paging_info: PagingResults;
|
|
6700
|
+
};
|
|
6599
6701
|
export type SupportRequest = {
|
|
6600
6702
|
__typename?: 'SupportRequest';
|
|
6601
6703
|
category: Scalars['String']['output'];
|