@icanbwell/bwell-sdk-ts 1.54.0 → 1.56.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/search/search-health-resources-request.d.ts +9 -1
- package/dist/api/base/support/create-support-comment-request.d.ts +13 -0
- package/dist/api/base/support/create-support-comment-request.js +18 -0
- package/dist/api/base/support/get-support-articles-request.d.ts +14 -0
- package/dist/api/base/support/get-support-articles-request.js +12 -0
- package/dist/api/base/support/get-support-attachment-request.d.ts +14 -0
- package/dist/api/base/support/get-support-attachment-request.js +18 -0
- package/dist/api/base/support/get-support-comments-request.d.ts +14 -0
- package/dist/api/base/support/get-support-comments-request.js +15 -0
- package/dist/api/base/support/index.d.ts +4 -0
- package/dist/api/base/support/index.js +4 -0
- package/dist/api/base/support/support-manager.d.ts +33 -1
- package/dist/api/graphql-api/graphql-manager/graphql-manager.d.ts +1 -0
- package/dist/api/graphql-api/search/search-health-resources-request-factory.js +2 -1
- package/dist/api/graphql-api/support/create-support-comment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/create-support-comment-request-factory.js +12 -0
- package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.js +15 -0
- package/dist/api/graphql-api/support/get-support-attachment-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-attachment-request-factory.js +11 -0
- package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.js +14 -0
- package/dist/api/graphql-api/support/graphql-support-manager.d.ts +9 -3
- package/dist/api/graphql-api/support/graphql-support-manager.js +84 -3
- package/dist/graphql/operations/index.d.ts +32 -0
- package/dist/graphql/operations/index.js +92 -0
- package/dist/graphql/operations/types.d.ts +85 -1
- package/package.json +2 -2
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClientInput, FilterField as GraphQLFilterField, OrganizationType as GraphQLOrganizationType, SortField as GraphQLSortField, SortOrder as GraphQLSortOrder, OrderByInput, SearchFiltersInput, SearchLocation, UserInput } from "../../../graphql/schema.js";
|
|
1
|
+
import { ClientInput, FilterField as GraphQLFilterField, FilterFieldEnum as GraphQLFilterFieldEnum, OrganizationType as GraphQLOrganizationType, SortField as GraphQLSortField, SortOrder as GraphQLSortOrder, OrderByInput, SearchFiltersInput, SearchLocation, UserInput } from "../../../graphql/schema.js";
|
|
2
2
|
import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
3
3
|
import { SearchContextEnum } from "./index.js";
|
|
4
4
|
/**
|
|
@@ -18,6 +18,10 @@ export type SortField = `${GraphQLSortField}`;
|
|
|
18
18
|
* Type representing the sort order for health resources.
|
|
19
19
|
*/
|
|
20
20
|
export type SortOrder = `${GraphQLSortOrder}`;
|
|
21
|
+
/**
|
|
22
|
+
* Type representing the filter field enum for health resources.
|
|
23
|
+
*/
|
|
24
|
+
export type HealthResourcesFilter = `${GraphQLFilterFieldEnum}`;
|
|
21
25
|
/**
|
|
22
26
|
* The provider location to search by
|
|
23
27
|
*/
|
|
@@ -83,6 +87,10 @@ export type SearchHealthResourcesRequestInput = PagedRequestInput & {
|
|
|
83
87
|
* which configurations are applied to the search results.
|
|
84
88
|
*/
|
|
85
89
|
searchContext?: SearchContextEnum;
|
|
90
|
+
/**
|
|
91
|
+
* The filter keys for which dynamic filter values are requested.
|
|
92
|
+
*/
|
|
93
|
+
filterValues?: HealthResourcesFilter[];
|
|
86
94
|
};
|
|
87
95
|
/**
|
|
88
96
|
* Request for searching health resources.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
export type CreateSupportCommentRequestInput = {
|
|
3
|
+
body: string;
|
|
4
|
+
uploads?: string[];
|
|
5
|
+
requestId: number;
|
|
6
|
+
};
|
|
7
|
+
declare class CreateSupportCommentRequestValidator implements Validator<CreateSupportCommentRequestInput> {
|
|
8
|
+
validate(data: CreateSupportCommentRequestInput, errors: ErrorsCollector): void;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateSupportCommentRequest extends ValidationRequest<CreateSupportCommentRequestInput> {
|
|
11
|
+
protected validator: CreateSupportCommentRequestValidator;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
import { isNullOrUndefinedOrEmptyString } from "../../../utils/type-utils.js";
|
|
3
|
+
class CreateSupportCommentRequestValidator {
|
|
4
|
+
validate(data, errors) {
|
|
5
|
+
if (data.requestId < 0) {
|
|
6
|
+
errors.add("Request ID must be a non-negative integer");
|
|
7
|
+
}
|
|
8
|
+
if (isNullOrUndefinedOrEmptyString(data.body.trim())) {
|
|
9
|
+
errors.add("Comment body is required");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export class CreateSupportCommentRequest extends ValidationRequest {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.validator = new CreateSupportCommentRequestValidator();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/paged-request.js";
|
|
2
|
+
import { ErrorsCollector } from "../../../requests/validator.js";
|
|
3
|
+
export type GetSupportArticlesRequestInput = PagedRequestInput & {
|
|
4
|
+
labelNames?: string[];
|
|
5
|
+
locale?: string;
|
|
6
|
+
search?: string;
|
|
7
|
+
};
|
|
8
|
+
declare class GetSupportArticlesRequestValidator extends PagedRequestValidator<GetSupportArticlesRequestInput> {
|
|
9
|
+
validate(data: GetSupportArticlesRequestInput, errors: ErrorsCollector): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class GetSupportArticlesRequest extends PagedRequest<GetSupportArticlesRequestInput> {
|
|
12
|
+
protected validator: GetSupportArticlesRequestValidator;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PagedRequest, PagedRequestValidator, } from "../../../requests/paged-request.js";
|
|
2
|
+
class GetSupportArticlesRequestValidator extends PagedRequestValidator {
|
|
3
|
+
validate(data, errors) {
|
|
4
|
+
super.validate(data, errors);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export class GetSupportArticlesRequest extends PagedRequest {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.validator = new GetSupportArticlesRequestValidator();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
export type GetSupportAttachmentRequestInput = {
|
|
3
|
+
/** The unique identifier of the support attachment. */
|
|
4
|
+
attachmentId: string;
|
|
5
|
+
/** Request ID is used to authenticate the request and validate the attachment belongs to the user. */
|
|
6
|
+
requestId: number;
|
|
7
|
+
};
|
|
8
|
+
declare class GetSupportAttachmentRequestValidator implements Validator<GetSupportAttachmentRequestInput> {
|
|
9
|
+
validate(data: GetSupportAttachmentRequestInput, errors: ErrorsCollector): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class GetSupportAttachmentRequest extends ValidationRequest<GetSupportAttachmentRequestInput> {
|
|
12
|
+
protected validator: GetSupportAttachmentRequestValidator;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
import { isNullOrUndefinedOrEmptyString } from "../../../utils/type-utils.js";
|
|
3
|
+
class GetSupportAttachmentRequestValidator {
|
|
4
|
+
validate(data, errors) {
|
|
5
|
+
if (isNullOrUndefinedOrEmptyString(data.attachmentId.trim())) {
|
|
6
|
+
errors.add("attachmentId must be a non-empty string");
|
|
7
|
+
}
|
|
8
|
+
if (data.requestId < 0) {
|
|
9
|
+
errors.add("requestId must be a non-negative number");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export class GetSupportAttachmentRequest extends ValidationRequest {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.validator = new GetSupportAttachmentRequestValidator();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SortOrderEnum } from "../../../graphql/schema.js";
|
|
2
|
+
import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/paged-request.js";
|
|
3
|
+
import { ErrorsCollector } from "../../../requests/validator.js";
|
|
4
|
+
export type GetSupportCommentsRequestInput = PagedRequestInput & {
|
|
5
|
+
requestId: number;
|
|
6
|
+
sortOrder?: SortOrderEnum;
|
|
7
|
+
};
|
|
8
|
+
declare class GetSupportCommentsRequestValidator extends PagedRequestValidator<GetSupportCommentsRequestInput> {
|
|
9
|
+
validate(data: GetSupportCommentsRequestInput, errors: ErrorsCollector): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class GetSupportCommentsRequest extends PagedRequest<GetSupportCommentsRequestInput> {
|
|
12
|
+
protected validator: GetSupportCommentsRequestValidator;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PagedRequest, PagedRequestValidator, } from "../../../requests/paged-request.js";
|
|
2
|
+
class GetSupportCommentsRequestValidator extends PagedRequestValidator {
|
|
3
|
+
validate(data, errors) {
|
|
4
|
+
if (data.requestId < 0) {
|
|
5
|
+
errors.add("requestId must be a non-negative number");
|
|
6
|
+
}
|
|
7
|
+
super.validate(data, errors);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export class GetSupportCommentsRequest extends PagedRequest {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.validator = new GetSupportCommentsRequestValidator();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -3,3 +3,7 @@ export * from "./get-support-requests-request.js";
|
|
|
3
3
|
export * from "./upload-support-attachment-request.js";
|
|
4
4
|
export * from "./delete-support-attachment-request.js";
|
|
5
5
|
export * from "./create-support-request-request.js";
|
|
6
|
+
export * from "./get-support-articles-request.js";
|
|
7
|
+
export * from "./get-support-comments-request.js";
|
|
8
|
+
export * from "./create-support-comment-request.js";
|
|
9
|
+
export * from "./get-support-attachment-request.js";
|
|
@@ -3,3 +3,7 @@ export * from "./get-support-requests-request.js";
|
|
|
3
3
|
export * from "./upload-support-attachment-request.js";
|
|
4
4
|
export * from "./delete-support-attachment-request.js";
|
|
5
5
|
export * from "./create-support-request-request.js";
|
|
6
|
+
export * from "./get-support-articles-request.js";
|
|
7
|
+
export * from "./get-support-comments-request.js";
|
|
8
|
+
export * from "./create-support-comment-request.js";
|
|
9
|
+
export * from "./get-support-attachment-request.js";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import type { CreateSupportRequestMutationResults, DeleteSupportAttachmentMutationResults, GetSupportCategoriesQueryResults, GetSupportRequestsQueryResults, UploadSupportAttachmentMutationResults } from "../../../graphql/operations/types.js";
|
|
1
|
+
import type { CreateSupportCommentMutationResults, CreateSupportRequestMutationResults, DeleteSupportAttachmentMutationResults, GetSupportArticlesQueryResults, GetSupportAttachmentQueryResults, GetSupportCategoriesQueryResults, GetSupportCommentsQueryResults, GetSupportRequestsQueryResults, UploadSupportAttachmentMutationResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import type { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
|
+
import { CreateSupportCommentRequest } from "./create-support-comment-request.js";
|
|
4
5
|
import { CreateSupportRequestRequest } from "./create-support-request-request.js";
|
|
5
6
|
import { DeleteSupportAttachmentRequest } from "./delete-support-attachment-request.js";
|
|
7
|
+
import { GetSupportArticlesRequest } from "./get-support-articles-request.js";
|
|
8
|
+
import { GetSupportAttachmentRequest } from "./get-support-attachment-request.js";
|
|
9
|
+
import { GetSupportCommentsRequest } from "./get-support-comments-request.js";
|
|
6
10
|
import { GetSupportRequestsRequest } from "./get-support-requests-request.js";
|
|
7
11
|
import { UploadSupportAttachmentRequest } from "./upload-support-attachment-request.js";
|
|
8
12
|
export type GetSupportRequestsResults = GetSupportRequestsQueryResults["getSupportRequests"];
|
|
@@ -10,6 +14,10 @@ export type UploadSupportAttachmentResults = UploadSupportAttachmentMutationResu
|
|
|
10
14
|
export type DeleteSupportAttachmentResults = DeleteSupportAttachmentMutationResults["deleteSupportAttachment"];
|
|
11
15
|
export type CreateSupportRequestResults = CreateSupportRequestMutationResults["createSupportRequest"];
|
|
12
16
|
export type GetSupportCategoriesResults = GetSupportCategoriesQueryResults["getSupportCategories"];
|
|
17
|
+
export type GetSupportArticlesResults = GetSupportArticlesQueryResults["getSupportArticles"];
|
|
18
|
+
export type GetSupportCommentsResults = GetSupportCommentsQueryResults["getSupportComments"];
|
|
19
|
+
export type CreateSupportCommentResults = CreateSupportCommentMutationResults["createSupportComment"];
|
|
20
|
+
export type GetSupportAttachmentResults = GetSupportAttachmentQueryResults["getSupportAttachment"];
|
|
13
21
|
/**
|
|
14
22
|
* The SupportManager interface provides methods for managing support requests.
|
|
15
23
|
*/
|
|
@@ -43,4 +51,28 @@ export interface SupportManager {
|
|
|
43
51
|
* @returns A promise that resolves to a query result with the list of support categories.
|
|
44
52
|
*/
|
|
45
53
|
getSupportCategories(): Promise<BWellQueryResult<GetSupportCategoriesResults, BaseManagerError>>;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves support articles based on the provided filters.
|
|
56
|
+
* @param request The request containing pagination and search parameters.
|
|
57
|
+
* @returns A promise that resolves to a query result with the support articles data.
|
|
58
|
+
*/
|
|
59
|
+
getSupportArticles(request: GetSupportArticlesRequest): Promise<BWellQueryResult<GetSupportArticlesResults, BaseManagerError>>;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves comments for a specific support request.
|
|
62
|
+
* @param request The request containing the request ID, sortOrder and pagination parameters.
|
|
63
|
+
* @returns A promise that resolves to a query result with the support comments data.
|
|
64
|
+
*/
|
|
65
|
+
getSupportComments(request: GetSupportCommentsRequest): Promise<BWellQueryResult<GetSupportCommentsResults, BaseManagerError>>;
|
|
66
|
+
/**
|
|
67
|
+
* Creates a comment on a specific support request.
|
|
68
|
+
* @param request The request containing the comment body, uploads and request ID.
|
|
69
|
+
* @returns A promise that resolves to a transaction result with the created support comment data.
|
|
70
|
+
*/
|
|
71
|
+
createSupportComment(request: CreateSupportCommentRequest): Promise<BWellTransactionResult<CreateSupportCommentResults, BaseManagerError>>;
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves a support attachment by attachment ID and request ID.
|
|
74
|
+
* @param request The request containing the attachment ID and request ID.
|
|
75
|
+
* @returns A promise that resolves to a query result with the support attachment data.
|
|
76
|
+
*/
|
|
77
|
+
getSupportAttachment(request: GetSupportAttachmentRequest): Promise<BWellQueryResult<GetSupportAttachmentResults, BaseManagerError>>;
|
|
46
78
|
}
|
|
@@ -8,7 +8,7 @@ export class SearchHealthResourcesRequestFactory {
|
|
|
8
8
|
* @returns An object containing the search input for the GraphQL query.
|
|
9
9
|
*/
|
|
10
10
|
create(request) {
|
|
11
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
12
12
|
const input = request.data();
|
|
13
13
|
return {
|
|
14
14
|
searchInput: {
|
|
@@ -23,6 +23,7 @@ export class SearchHealthResourcesRequestFactory {
|
|
|
23
23
|
search: (_e = input.search) !== null && _e !== void 0 ? _e : null,
|
|
24
24
|
searchLocation: (_f = input.searchLocation) !== null && _f !== void 0 ? _f : null,
|
|
25
25
|
user: (_g = input.user) !== null && _g !== void 0 ? _g : null,
|
|
26
|
+
filterValues: (_h = input.filterValues) !== null && _h !== void 0 ? _h : null,
|
|
26
27
|
},
|
|
27
28
|
};
|
|
28
29
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CreateSupportCommentMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/request.js";
|
|
3
|
+
import { CreateSupportCommentRequest } from "../../base/index.js";
|
|
4
|
+
export declare class GraphQLCreateSupportCommentRequestFactory implements RequestFactory<CreateSupportCommentRequest, CreateSupportCommentMutationVariables> {
|
|
5
|
+
create(request: CreateSupportCommentRequest): CreateSupportCommentMutationVariables;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GetSupportArticlesQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../index.js";
|
|
3
|
+
import { GetSupportArticlesRequest } from "../../base/support/get-support-articles-request.js";
|
|
4
|
+
export declare class GraphQLGetSupportArticlesBwellRequestFactory implements RequestFactory<GetSupportArticlesRequest, GetSupportArticlesQueryVariables> {
|
|
5
|
+
create(request: GetSupportArticlesRequest): GetSupportArticlesQueryVariables;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class GraphQLGetSupportArticlesBwellRequestFactory {
|
|
2
|
+
create(request) {
|
|
3
|
+
var _a, _b, _c, _d, _e;
|
|
4
|
+
const data = request.data();
|
|
5
|
+
return {
|
|
6
|
+
input: {
|
|
7
|
+
page: (_a = data === null || data === void 0 ? void 0 : data.page) !== null && _a !== void 0 ? _a : null,
|
|
8
|
+
pageSize: (_b = data === null || data === void 0 ? void 0 : data.pageSize) !== null && _b !== void 0 ? _b : null,
|
|
9
|
+
search: (_c = data === null || data === void 0 ? void 0 : data.search) !== null && _c !== void 0 ? _c : null,
|
|
10
|
+
labelNames: (_d = data === null || data === void 0 ? void 0 : data.labelNames) !== null && _d !== void 0 ? _d : null,
|
|
11
|
+
locale: (_e = data === null || data === void 0 ? void 0 : data.locale) !== null && _e !== void 0 ? _e : null,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GetSupportAttachmentQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/request.js";
|
|
3
|
+
import { GetSupportAttachmentRequest } from "../../base/index.js";
|
|
4
|
+
export declare class GraphQLGetSupportAttachmentRequestFactory implements RequestFactory<GetSupportAttachmentRequest, GetSupportAttachmentQueryVariables> {
|
|
5
|
+
create(request: GetSupportAttachmentRequest): GetSupportAttachmentQueryVariables;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type GetSupportCommentsQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
+
import { GetSupportCommentsRequest } from "../../index.js";
|
|
4
|
+
export declare class GraphQLGetSupportCommentsBwellRequestFactory implements RequestFactory<GetSupportCommentsRequest, GetSupportCommentsQueryVariables> {
|
|
5
|
+
create(request: GetSupportCommentsRequest): GetSupportCommentsQueryVariables;
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class GraphQLGetSupportCommentsBwellRequestFactory {
|
|
2
|
+
create(request) {
|
|
3
|
+
var _a, _b, _c;
|
|
4
|
+
const data = request.data();
|
|
5
|
+
return {
|
|
6
|
+
input: {
|
|
7
|
+
requestId: data.requestId,
|
|
8
|
+
page: (_a = data.page) !== null && _a !== void 0 ? _a : null,
|
|
9
|
+
pageSize: (_b = data.pageSize) !== null && _b !== void 0 ? _b : null,
|
|
10
|
+
sortOrder: (_c = data.sortOrder) !== null && _c !== void 0 ? _c : null,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import { CreateSupportRequestMutationVariables, DeleteSupportAttachmentMutationVariables, GetSupportRequestsQueryVariables, UploadSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
1
|
+
import { CreateSupportCommentMutationVariables, CreateSupportRequestMutationVariables, DeleteSupportAttachmentMutationVariables, GetSupportArticlesQueryVariables, GetSupportAttachmentQueryVariables, GetSupportCommentsQueryVariables, GetSupportRequestsQueryVariables, UploadSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
2
|
import { LoggerProvider } from "../../../logger/index.js";
|
|
3
3
|
import { RequestFactory } from "../../../requests/index.js";
|
|
4
4
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
5
5
|
import { BaseManagerError } from "../../base/errors.js";
|
|
6
|
+
import { CreateSupportCommentRequest, GetSupportAttachmentRequest, GetSupportCommentsRequest } from "../../base/index.js";
|
|
6
7
|
import { CreateSupportRequestRequest } from "../../base/support/create-support-request-request.js";
|
|
7
8
|
import { DeleteSupportAttachmentRequest } from "../../base/support/delete-support-attachment-request.js";
|
|
9
|
+
import { GetSupportArticlesRequest } from "../../base/support/get-support-articles-request.js";
|
|
8
10
|
import { GetSupportRequestsRequest } from "../../base/support/get-support-requests-request.js";
|
|
9
11
|
import type { SupportManager } from "../../base/support/support-manager.js";
|
|
10
|
-
import { CreateSupportRequestResults, DeleteSupportAttachmentResults, GetSupportCategoriesResults, GetSupportRequestsResults, UploadSupportAttachmentResults } from "../../base/support/support-manager.js";
|
|
12
|
+
import { CreateSupportCommentResults, CreateSupportRequestResults, DeleteSupportAttachmentResults, GetSupportArticlesResults, GetSupportAttachmentResults, GetSupportCategoriesResults, GetSupportCommentsResults, GetSupportRequestsResults, UploadSupportAttachmentResults } from "../../base/support/support-manager.js";
|
|
11
13
|
import { UploadSupportAttachmentRequest } from "../../base/support/upload-support-attachment-request.js";
|
|
12
14
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
13
15
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
14
16
|
export declare class GraphQLSupportManager extends GraphQLManager implements SupportManager {
|
|
15
17
|
#private;
|
|
16
|
-
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, getSupportRequestsRequestFactory?: RequestFactory<GetSupportRequestsRequest, GetSupportRequestsQueryVariables>, uploadSupportAttachmentRequestFactory?: RequestFactory<UploadSupportAttachmentRequest, UploadSupportAttachmentMutationVariables>, deleteSupportAttachmentRequestFactory?: RequestFactory<DeleteSupportAttachmentRequest, DeleteSupportAttachmentMutationVariables>, createSupportRequestRequestFactory?: RequestFactory<CreateSupportRequestRequest, CreateSupportRequestMutationVariables>);
|
|
18
|
+
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, getSupportRequestsRequestFactory?: RequestFactory<GetSupportRequestsRequest, GetSupportRequestsQueryVariables>, uploadSupportAttachmentRequestFactory?: RequestFactory<UploadSupportAttachmentRequest, UploadSupportAttachmentMutationVariables>, deleteSupportAttachmentRequestFactory?: RequestFactory<DeleteSupportAttachmentRequest, DeleteSupportAttachmentMutationVariables>, createSupportRequestRequestFactory?: RequestFactory<CreateSupportRequestRequest, CreateSupportRequestMutationVariables>, getSupportArticlesRequestFactory?: RequestFactory<GetSupportArticlesRequest, GetSupportArticlesQueryVariables>, getSupportCommentsRequestFactory?: RequestFactory<GetSupportCommentsRequest, GetSupportCommentsQueryVariables>, createSupportCommentRequestFactory?: RequestFactory<CreateSupportCommentRequest, CreateSupportCommentMutationVariables>, getSupportAttachmentsRequestFactory?: RequestFactory<GetSupportAttachmentRequest, GetSupportAttachmentQueryVariables>);
|
|
17
19
|
getSupportRequests(request: GetSupportRequestsRequest): Promise<BWellQueryResult<GetSupportRequestsResults, BaseManagerError>>;
|
|
18
20
|
uploadSupportAttachment(request: UploadSupportAttachmentRequest): Promise<BWellTransactionResult<UploadSupportAttachmentResults, BaseManagerError>>;
|
|
19
21
|
deleteSupportAttachment(request: DeleteSupportAttachmentRequest): Promise<BWellTransactionResult<DeleteSupportAttachmentResults, BaseManagerError>>;
|
|
20
22
|
createSupportRequest(request: CreateSupportRequestRequest): Promise<BWellTransactionResult<CreateSupportRequestResults, BaseManagerError>>;
|
|
21
23
|
getSupportCategories(): Promise<BWellQueryResult<GetSupportCategoriesResults, BaseManagerError>>;
|
|
24
|
+
getSupportArticles(request: GetSupportArticlesRequest): Promise<BWellQueryResult<GetSupportArticlesResults, BaseManagerError>>;
|
|
25
|
+
getSupportComments(request: GetSupportCommentsRequest): Promise<BWellQueryResult<GetSupportCommentsResults, BaseManagerError>>;
|
|
26
|
+
createSupportComment(request: CreateSupportCommentRequest): Promise<BWellTransactionResult<CreateSupportCommentResults, BaseManagerError>>;
|
|
27
|
+
getSupportAttachment(request: GetSupportAttachmentRequest): Promise<BWellQueryResult<GetSupportAttachmentResults, BaseManagerError>>;
|
|
22
28
|
}
|
|
@@ -18,16 +18,20 @@ 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, _GraphQLSupportManager_uploadSupportAttachmentRequestFactory, _GraphQLSupportManager_deleteSupportAttachmentRequestFactory, _GraphQLSupportManager_createSupportRequestRequestFactory;
|
|
21
|
+
var _GraphQLSupportManager_sdk, _GraphQLSupportManager_logger, _GraphQLSupportManager_getSupportRequestsRequestFactory, _GraphQLSupportManager_uploadSupportAttachmentRequestFactory, _GraphQLSupportManager_deleteSupportAttachmentRequestFactory, _GraphQLSupportManager_createSupportRequestRequestFactory, _GraphQLSupportManager_getSupportArticlesRequestFactory, _GraphQLSupportManager_getSupportCommentsRequestFactory, _GraphQLSupportManager_createSupportCommentRequestFactory, _GraphQLSupportManager_getSupportAttachmentsRequestFactory;
|
|
22
22
|
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
23
|
import { BWellQueryResult, BWellTransactionResult, } from "../../../results/index.js";
|
|
24
24
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
|
+
import { GraphQLCreateSupportCommentRequestFactory } from "./create-support-comment-request-factory.js";
|
|
25
26
|
import { GraphQLCreateSupportRequestRequestFactory } from "./create-support-request-request-factory.js";
|
|
26
27
|
import { GraphQLDeleteSupportAttachmentRequestFactory } from "./delete-support-attachment-request-factory.js";
|
|
28
|
+
import { GraphQLGetSupportArticlesBwellRequestFactory } from "./get-support-articles-bwell-request-factory.js";
|
|
29
|
+
import { GraphQLGetSupportAttachmentRequestFactory } from "./get-support-attachment-request-factory.js";
|
|
30
|
+
import { GraphQLGetSupportCommentsBwellRequestFactory } from "./get-support-comments-bwell-request-factory.js";
|
|
27
31
|
import { GraphQLGetSupportRequestsBwellRequestFactory } from "./get-support-requests-bwell-request-factory.js";
|
|
28
32
|
import { GraphQLUploadSupportAttachmentRequestFactory } from "./upload-support-attachment-request-factory.js";
|
|
29
33
|
export class GraphQLSupportManager extends GraphQLManager {
|
|
30
|
-
constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), getSupportRequestsRequestFactory = new GraphQLGetSupportRequestsBwellRequestFactory(), uploadSupportAttachmentRequestFactory = new GraphQLUploadSupportAttachmentRequestFactory(), deleteSupportAttachmentRequestFactory = new GraphQLDeleteSupportAttachmentRequestFactory(), createSupportRequestRequestFactory = new GraphQLCreateSupportRequestRequestFactory()) {
|
|
34
|
+
constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), getSupportRequestsRequestFactory = new GraphQLGetSupportRequestsBwellRequestFactory(), uploadSupportAttachmentRequestFactory = new GraphQLUploadSupportAttachmentRequestFactory(), deleteSupportAttachmentRequestFactory = new GraphQLDeleteSupportAttachmentRequestFactory(), createSupportRequestRequestFactory = new GraphQLCreateSupportRequestRequestFactory(), getSupportArticlesRequestFactory = new GraphQLGetSupportArticlesBwellRequestFactory(), getSupportCommentsRequestFactory = new GraphQLGetSupportCommentsBwellRequestFactory(), createSupportCommentRequestFactory = new GraphQLCreateSupportCommentRequestFactory(), getSupportAttachmentsRequestFactory = new GraphQLGetSupportAttachmentRequestFactory()) {
|
|
31
35
|
super();
|
|
32
36
|
_GraphQLSupportManager_sdk.set(this, void 0);
|
|
33
37
|
_GraphQLSupportManager_logger.set(this, void 0);
|
|
@@ -35,12 +39,20 @@ export class GraphQLSupportManager extends GraphQLManager {
|
|
|
35
39
|
_GraphQLSupportManager_uploadSupportAttachmentRequestFactory.set(this, void 0);
|
|
36
40
|
_GraphQLSupportManager_deleteSupportAttachmentRequestFactory.set(this, void 0);
|
|
37
41
|
_GraphQLSupportManager_createSupportRequestRequestFactory.set(this, void 0);
|
|
42
|
+
_GraphQLSupportManager_getSupportArticlesRequestFactory.set(this, void 0);
|
|
43
|
+
_GraphQLSupportManager_getSupportCommentsRequestFactory.set(this, void 0);
|
|
44
|
+
_GraphQLSupportManager_createSupportCommentRequestFactory.set(this, void 0);
|
|
45
|
+
_GraphQLSupportManager_getSupportAttachmentsRequestFactory.set(this, void 0);
|
|
38
46
|
__classPrivateFieldSet(this, _GraphQLSupportManager_sdk, sdk, "f");
|
|
39
47
|
__classPrivateFieldSet(this, _GraphQLSupportManager_logger, loggerProvider.getLogger("GraphQLSupportManager"), "f");
|
|
40
48
|
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportRequestsRequestFactory, getSupportRequestsRequestFactory, "f");
|
|
41
49
|
__classPrivateFieldSet(this, _GraphQLSupportManager_uploadSupportAttachmentRequestFactory, uploadSupportAttachmentRequestFactory, "f");
|
|
42
50
|
__classPrivateFieldSet(this, _GraphQLSupportManager_deleteSupportAttachmentRequestFactory, deleteSupportAttachmentRequestFactory, "f");
|
|
43
51
|
__classPrivateFieldSet(this, _GraphQLSupportManager_createSupportRequestRequestFactory, createSupportRequestRequestFactory, "f");
|
|
52
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportArticlesRequestFactory, getSupportArticlesRequestFactory, "f");
|
|
53
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportCommentsRequestFactory, getSupportCommentsRequestFactory, "f");
|
|
54
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_createSupportCommentRequestFactory, createSupportCommentRequestFactory, "f");
|
|
55
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportAttachmentsRequestFactory, getSupportAttachmentsRequestFactory, "f");
|
|
44
56
|
}
|
|
45
57
|
getSupportRequests(request) {
|
|
46
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -125,5 +137,74 @@ export class GraphQLSupportManager extends GraphQLManager {
|
|
|
125
137
|
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportCategories, result.error);
|
|
126
138
|
});
|
|
127
139
|
}
|
|
140
|
+
getSupportArticles(request) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
var _a;
|
|
143
|
+
const validationResult = this.validateRequest(request);
|
|
144
|
+
if (validationResult.failure()) {
|
|
145
|
+
return validationResult.toQueryResult();
|
|
146
|
+
}
|
|
147
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_getSupportArticlesRequestFactory, "f").create(request);
|
|
148
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling getSupportArticles query...");
|
|
149
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").getSupportArticles(inputVariables));
|
|
150
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("getSupportArticles query complete.");
|
|
151
|
+
if (result.hasError()) {
|
|
152
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("getSupportArticles query error", result.error);
|
|
153
|
+
}
|
|
154
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportArticles, result.error);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
getSupportComments(request) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a;
|
|
160
|
+
const validationResult = this.validateRequest(request);
|
|
161
|
+
if (validationResult.failure()) {
|
|
162
|
+
return validationResult.toQueryResult();
|
|
163
|
+
}
|
|
164
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_getSupportCommentsRequestFactory, "f").create(request);
|
|
165
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling getSupportComments query...");
|
|
166
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").getSupportComments(inputVariables));
|
|
167
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("getSupportComments query complete.");
|
|
168
|
+
if (result.hasError()) {
|
|
169
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("getSupportComments query error", result.error);
|
|
170
|
+
}
|
|
171
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportComments, result.error);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
createSupportComment(request) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
const validationResult = this.validateRequest(request);
|
|
177
|
+
if (validationResult.failure()) {
|
|
178
|
+
return validationResult.intoFailure();
|
|
179
|
+
}
|
|
180
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_createSupportCommentRequestFactory, "f").create(request);
|
|
181
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling createSupportComment mutation...");
|
|
182
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").CreateSupportComment(inputVariables));
|
|
183
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("createSupportComment mutation complete.");
|
|
184
|
+
if (result.failure()) {
|
|
185
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("createSupportComment mutation error", result);
|
|
186
|
+
return result.intoFailure();
|
|
187
|
+
}
|
|
188
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").info("createSupportComment mutation success");
|
|
189
|
+
return BWellTransactionResult.success(result.data().createSupportComment);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
getSupportAttachment(request) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
var _a;
|
|
195
|
+
const validationResult = this.validateRequest(request);
|
|
196
|
+
if (validationResult.failure()) {
|
|
197
|
+
return validationResult.toQueryResult();
|
|
198
|
+
}
|
|
199
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_getSupportAttachmentsRequestFactory, "f").create(request);
|
|
200
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling getSupportAttachment query...");
|
|
201
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").GetSupportAttachment(inputVariables));
|
|
202
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("getSupportAttachment query complete.");
|
|
203
|
+
if (result.hasError()) {
|
|
204
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("getSupportAttachment query error", result.error);
|
|
205
|
+
}
|
|
206
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportAttachment, result.error);
|
|
207
|
+
});
|
|
208
|
+
}
|
|
128
209
|
}
|
|
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();
|
|
210
|
+
_GraphQLSupportManager_sdk = new WeakMap(), _GraphQLSupportManager_logger = new WeakMap(), _GraphQLSupportManager_getSupportRequestsRequestFactory = new WeakMap(), _GraphQLSupportManager_uploadSupportAttachmentRequestFactory = new WeakMap(), _GraphQLSupportManager_deleteSupportAttachmentRequestFactory = new WeakMap(), _GraphQLSupportManager_createSupportRequestRequestFactory = new WeakMap(), _GraphQLSupportManager_getSupportArticlesRequestFactory = new WeakMap(), _GraphQLSupportManager_getSupportCommentsRequestFactory = new WeakMap(), _GraphQLSupportManager_createSupportCommentRequestFactory = new WeakMap(), _GraphQLSupportManager_getSupportAttachmentsRequestFactory = new WeakMap();
|
|
@@ -152,9 +152,13 @@ export declare const SaveQuestionnaireResponseDocument = "\n mutation saveQue
|
|
|
152
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 ";
|
|
153
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 ";
|
|
154
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 CreateSupportCommentDocument = "\n mutation CreateSupportComment($input: CreateSupportCommentInput!) {\n createSupportComment(input: $input) {\n comment {\n id\n body\n htmlBody\n author {\n name\n email\n }\n attachments {\n id\n fileName\n contentType\n size\n }\n createdAt\n }\n }\n}\n ";
|
|
155
156
|
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
157
|
export declare const DeleteSupportAttachmentDocument = "\n mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {\n deleteSupportAttachment(input: $input) {\n status\n }\n}\n ";
|
|
158
|
+
export declare const GetSupportArticlesDocument = "\n query getSupportArticles($input: SupportArticlesInput) {\n getSupportArticles(input: $input) {\n data {\n id\n title\n body\n snippet\n createdAt\n updatedAt\n labelNames\n }\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n }\n}\n ";
|
|
159
|
+
export declare const GetSupportAttachmentDocument = "\n query GetSupportAttachment($input: SupportAttachmentInput!) {\n getSupportAttachment(input: $input) {\n attachment\n contentType\n name\n }\n}\n ";
|
|
157
160
|
export declare const GetSupportCategoriesDocument = "\n query GetSupportCategories {\n getSupportCategories {\n label\n value\n }\n}\n ";
|
|
161
|
+
export declare const GetSupportCommentsDocument = "\n query getSupportComments($input: SupportCommentsInput!) {\n getSupportComments(input: $input) {\n comments {\n id\n body\n htmlBody\n author {\n name\n email\n }\n attachments {\n id\n fileName\n contentType\n size\n }\n createdAt\n }\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n }\n}\n ";
|
|
158
162
|
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
163
|
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 ";
|
|
160
164
|
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 ";
|
|
@@ -615,6 +619,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
615
619
|
headers: Headers;
|
|
616
620
|
status: number;
|
|
617
621
|
}>;
|
|
622
|
+
CreateSupportComment(variables: Types.CreateSupportCommentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
623
|
+
data: Types.CreateSupportCommentMutationResults;
|
|
624
|
+
errors?: GraphQLError[];
|
|
625
|
+
extensions?: any;
|
|
626
|
+
headers: Headers;
|
|
627
|
+
status: number;
|
|
628
|
+
}>;
|
|
618
629
|
CreateSupportRequest(variables: Types.CreateSupportRequestMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
619
630
|
data: Types.CreateSupportRequestMutationResults;
|
|
620
631
|
errors?: GraphQLError[];
|
|
@@ -629,6 +640,20 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
629
640
|
headers: Headers;
|
|
630
641
|
status: number;
|
|
631
642
|
}>;
|
|
643
|
+
getSupportArticles(variables?: Types.GetSupportArticlesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
644
|
+
data: Types.GetSupportArticlesQueryResults;
|
|
645
|
+
errors?: GraphQLError[];
|
|
646
|
+
extensions?: any;
|
|
647
|
+
headers: Headers;
|
|
648
|
+
status: number;
|
|
649
|
+
}>;
|
|
650
|
+
GetSupportAttachment(variables: Types.GetSupportAttachmentQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
651
|
+
data: Types.GetSupportAttachmentQueryResults;
|
|
652
|
+
errors?: GraphQLError[];
|
|
653
|
+
extensions?: any;
|
|
654
|
+
headers: Headers;
|
|
655
|
+
status: number;
|
|
656
|
+
}>;
|
|
632
657
|
GetSupportCategories(variables?: Types.GetSupportCategoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
633
658
|
data: Types.GetSupportCategoriesQueryResults;
|
|
634
659
|
errors?: GraphQLError[];
|
|
@@ -636,6 +661,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
636
661
|
headers: Headers;
|
|
637
662
|
status: number;
|
|
638
663
|
}>;
|
|
664
|
+
getSupportComments(variables: Types.GetSupportCommentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
665
|
+
data: Types.GetSupportCommentsQueryResults;
|
|
666
|
+
errors?: GraphQLError[];
|
|
667
|
+
extensions?: any;
|
|
668
|
+
headers: Headers;
|
|
669
|
+
status: number;
|
|
670
|
+
}>;
|
|
639
671
|
getSupportRequests(variables?: Types.GetSupportRequestsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
640
672
|
data: Types.GetSupportRequestsQueryResults;
|
|
641
673
|
errors?: GraphQLError[];
|
|
@@ -3896,6 +3896,28 @@ export const SearchHealthResourcesDocument = `
|
|
|
3896
3896
|
}
|
|
3897
3897
|
}
|
|
3898
3898
|
`;
|
|
3899
|
+
export const CreateSupportCommentDocument = `
|
|
3900
|
+
mutation CreateSupportComment($input: CreateSupportCommentInput!) {
|
|
3901
|
+
createSupportComment(input: $input) {
|
|
3902
|
+
comment {
|
|
3903
|
+
id
|
|
3904
|
+
body
|
|
3905
|
+
htmlBody
|
|
3906
|
+
author {
|
|
3907
|
+
name
|
|
3908
|
+
email
|
|
3909
|
+
}
|
|
3910
|
+
attachments {
|
|
3911
|
+
id
|
|
3912
|
+
fileName
|
|
3913
|
+
contentType
|
|
3914
|
+
size
|
|
3915
|
+
}
|
|
3916
|
+
createdAt
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
`;
|
|
3899
3921
|
export const CreateSupportRequestDocument = `
|
|
3900
3922
|
mutation CreateSupportRequest($input: CreateSupportRequestInput!) {
|
|
3901
3923
|
createSupportRequest(input: $input) {
|
|
@@ -3917,6 +3939,36 @@ export const DeleteSupportAttachmentDocument = `
|
|
|
3917
3939
|
}
|
|
3918
3940
|
}
|
|
3919
3941
|
`;
|
|
3942
|
+
export const GetSupportArticlesDocument = `
|
|
3943
|
+
query getSupportArticles($input: SupportArticlesInput) {
|
|
3944
|
+
getSupportArticles(input: $input) {
|
|
3945
|
+
data {
|
|
3946
|
+
id
|
|
3947
|
+
title
|
|
3948
|
+
body
|
|
3949
|
+
snippet
|
|
3950
|
+
createdAt
|
|
3951
|
+
updatedAt
|
|
3952
|
+
labelNames
|
|
3953
|
+
}
|
|
3954
|
+
paging_info {
|
|
3955
|
+
page_number
|
|
3956
|
+
page_size
|
|
3957
|
+
total_items
|
|
3958
|
+
total_pages
|
|
3959
|
+
}
|
|
3960
|
+
}
|
|
3961
|
+
}
|
|
3962
|
+
`;
|
|
3963
|
+
export const GetSupportAttachmentDocument = `
|
|
3964
|
+
query GetSupportAttachment($input: SupportAttachmentInput!) {
|
|
3965
|
+
getSupportAttachment(input: $input) {
|
|
3966
|
+
attachment
|
|
3967
|
+
contentType
|
|
3968
|
+
name
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3971
|
+
`;
|
|
3920
3972
|
export const GetSupportCategoriesDocument = `
|
|
3921
3973
|
query GetSupportCategories {
|
|
3922
3974
|
getSupportCategories {
|
|
@@ -3925,6 +3977,34 @@ export const GetSupportCategoriesDocument = `
|
|
|
3925
3977
|
}
|
|
3926
3978
|
}
|
|
3927
3979
|
`;
|
|
3980
|
+
export const GetSupportCommentsDocument = `
|
|
3981
|
+
query getSupportComments($input: SupportCommentsInput!) {
|
|
3982
|
+
getSupportComments(input: $input) {
|
|
3983
|
+
comments {
|
|
3984
|
+
id
|
|
3985
|
+
body
|
|
3986
|
+
htmlBody
|
|
3987
|
+
author {
|
|
3988
|
+
name
|
|
3989
|
+
email
|
|
3990
|
+
}
|
|
3991
|
+
attachments {
|
|
3992
|
+
id
|
|
3993
|
+
fileName
|
|
3994
|
+
contentType
|
|
3995
|
+
size
|
|
3996
|
+
}
|
|
3997
|
+
createdAt
|
|
3998
|
+
}
|
|
3999
|
+
paging_info {
|
|
4000
|
+
page_number
|
|
4001
|
+
page_size
|
|
4002
|
+
total_items
|
|
4003
|
+
total_pages
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4006
|
+
}
|
|
4007
|
+
`;
|
|
3928
4008
|
export const GetSupportRequestsDocument = `
|
|
3929
4009
|
query getSupportRequests($input: SupportRequestsInput) {
|
|
3930
4010
|
getSupportRequests(input: $input) {
|
|
@@ -4360,15 +4440,27 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4360
4440
|
SearchHealthResources(variables, requestHeaders) {
|
|
4361
4441
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(SearchHealthResourcesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'SearchHealthResources', 'query', variables);
|
|
4362
4442
|
},
|
|
4443
|
+
CreateSupportComment(variables, requestHeaders) {
|
|
4444
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateSupportCommentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateSupportComment', 'mutation', variables);
|
|
4445
|
+
},
|
|
4363
4446
|
CreateSupportRequest(variables, requestHeaders) {
|
|
4364
4447
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateSupportRequestDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateSupportRequest', 'mutation', variables);
|
|
4365
4448
|
},
|
|
4366
4449
|
DeleteSupportAttachment(variables, requestHeaders) {
|
|
4367
4450
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(DeleteSupportAttachmentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteSupportAttachment', 'mutation', variables);
|
|
4368
4451
|
},
|
|
4452
|
+
getSupportArticles(variables, requestHeaders) {
|
|
4453
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportArticlesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportArticles', 'query', variables);
|
|
4454
|
+
},
|
|
4455
|
+
GetSupportAttachment(variables, requestHeaders) {
|
|
4456
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportAttachmentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetSupportAttachment', 'query', variables);
|
|
4457
|
+
},
|
|
4369
4458
|
GetSupportCategories(variables, requestHeaders) {
|
|
4370
4459
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportCategoriesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetSupportCategories', 'query', variables);
|
|
4371
4460
|
},
|
|
4461
|
+
getSupportComments(variables, requestHeaders) {
|
|
4462
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportCommentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportComments', 'query', variables);
|
|
4463
|
+
},
|
|
4372
4464
|
getSupportRequests(variables, requestHeaders) {
|
|
4373
4465
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportRequestsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportRequests', 'query', variables);
|
|
4374
4466
|
},
|
|
@@ -22333,6 +22333,29 @@ export type SearchHealthResourcesQueryResults = {
|
|
|
22333
22333
|
} | null> | null;
|
|
22334
22334
|
};
|
|
22335
22335
|
};
|
|
22336
|
+
export type CreateSupportCommentMutationVariables = Types.Exact<{
|
|
22337
|
+
input: Types.CreateSupportCommentInput;
|
|
22338
|
+
}>;
|
|
22339
|
+
export type CreateSupportCommentMutationResults = {
|
|
22340
|
+
createSupportComment: {
|
|
22341
|
+
comment: {
|
|
22342
|
+
id: string;
|
|
22343
|
+
body: string;
|
|
22344
|
+
htmlBody: string;
|
|
22345
|
+
createdAt: string;
|
|
22346
|
+
author: {
|
|
22347
|
+
name: string;
|
|
22348
|
+
email: string;
|
|
22349
|
+
};
|
|
22350
|
+
attachments: Array<{
|
|
22351
|
+
id: string;
|
|
22352
|
+
fileName: string;
|
|
22353
|
+
contentType: string;
|
|
22354
|
+
size: number;
|
|
22355
|
+
}>;
|
|
22356
|
+
};
|
|
22357
|
+
};
|
|
22358
|
+
};
|
|
22336
22359
|
export type CreateSupportRequestMutationVariables = Types.Exact<{
|
|
22337
22360
|
input: Types.CreateSupportRequestInput;
|
|
22338
22361
|
}>;
|
|
@@ -22356,6 +22379,38 @@ export type DeleteSupportAttachmentMutationResults = {
|
|
|
22356
22379
|
status: Types.DeletionStatus;
|
|
22357
22380
|
};
|
|
22358
22381
|
};
|
|
22382
|
+
export type GetSupportArticlesQueryVariables = Types.Exact<{
|
|
22383
|
+
input: Types.InputMaybe<Types.SupportArticlesInput>;
|
|
22384
|
+
}>;
|
|
22385
|
+
export type GetSupportArticlesQueryResults = {
|
|
22386
|
+
getSupportArticles: {
|
|
22387
|
+
data: Array<{
|
|
22388
|
+
id: string;
|
|
22389
|
+
title: string;
|
|
22390
|
+
body: string;
|
|
22391
|
+
snippet: string | null;
|
|
22392
|
+
createdAt: string;
|
|
22393
|
+
updatedAt: string;
|
|
22394
|
+
labelNames: Array<string>;
|
|
22395
|
+
}>;
|
|
22396
|
+
paging_info: {
|
|
22397
|
+
page_number: number;
|
|
22398
|
+
page_size: number;
|
|
22399
|
+
total_pages: number;
|
|
22400
|
+
total_items: number;
|
|
22401
|
+
};
|
|
22402
|
+
};
|
|
22403
|
+
};
|
|
22404
|
+
export type GetSupportAttachmentQueryVariables = Types.Exact<{
|
|
22405
|
+
input: Types.SupportAttachmentInput;
|
|
22406
|
+
}>;
|
|
22407
|
+
export type GetSupportAttachmentQueryResults = {
|
|
22408
|
+
getSupportAttachment: {
|
|
22409
|
+
attachment: string;
|
|
22410
|
+
contentType: string;
|
|
22411
|
+
name: string;
|
|
22412
|
+
};
|
|
22413
|
+
};
|
|
22359
22414
|
export type GetSupportCategoriesQueryVariables = Types.Exact<{
|
|
22360
22415
|
[key: string]: never;
|
|
22361
22416
|
}>;
|
|
@@ -22365,6 +22420,35 @@ export type GetSupportCategoriesQueryResults = {
|
|
|
22365
22420
|
value: string;
|
|
22366
22421
|
}>;
|
|
22367
22422
|
};
|
|
22423
|
+
export type GetSupportCommentsQueryVariables = Types.Exact<{
|
|
22424
|
+
input: Types.SupportCommentsInput;
|
|
22425
|
+
}>;
|
|
22426
|
+
export type GetSupportCommentsQueryResults = {
|
|
22427
|
+
getSupportComments: {
|
|
22428
|
+
comments: Array<{
|
|
22429
|
+
id: string;
|
|
22430
|
+
body: string;
|
|
22431
|
+
htmlBody: string;
|
|
22432
|
+
createdAt: string;
|
|
22433
|
+
author: {
|
|
22434
|
+
name: string;
|
|
22435
|
+
email: string;
|
|
22436
|
+
};
|
|
22437
|
+
attachments: Array<{
|
|
22438
|
+
id: string;
|
|
22439
|
+
fileName: string;
|
|
22440
|
+
contentType: string;
|
|
22441
|
+
size: number;
|
|
22442
|
+
}>;
|
|
22443
|
+
}>;
|
|
22444
|
+
paging_info: {
|
|
22445
|
+
page_number: number;
|
|
22446
|
+
page_size: number;
|
|
22447
|
+
total_pages: number;
|
|
22448
|
+
total_items: number;
|
|
22449
|
+
};
|
|
22450
|
+
};
|
|
22451
|
+
};
|
|
22368
22452
|
export type GetSupportRequestsQueryVariables = Types.Exact<{
|
|
22369
22453
|
input: Types.InputMaybe<Types.SupportRequestsInput>;
|
|
22370
22454
|
}>;
|
|
@@ -22393,10 +22477,10 @@ export type UploadSupportAttachmentMutationResults = {
|
|
|
22393
22477
|
uploadSupportAttachment: {
|
|
22394
22478
|
attachmentId: string;
|
|
22395
22479
|
attachments: Array<{
|
|
22480
|
+
id: string;
|
|
22396
22481
|
fileName: string;
|
|
22397
22482
|
contentType: string;
|
|
22398
22483
|
size: number;
|
|
22399
|
-
id: string;
|
|
22400
22484
|
}>;
|
|
22401
22485
|
};
|
|
22402
22486
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icanbwell/bwell-sdk-ts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.56.0",
|
|
4
4
|
"description": "b.well TypeScript SDK",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@opentelemetry/sdk-logs": "^0.52.1",
|
|
53
53
|
"@opentelemetry/sdk-trace-web": "^1.25.1",
|
|
54
54
|
"@opentelemetry/semantic-conventions": "^1.25.1",
|
|
55
|
-
"graphql-request": "^
|
|
55
|
+
"graphql-request": "^7.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@eslint/js": "^9.2.0",
|