@icanbwell/bwell-sdk-ts 1.54.0-rc.1766174756 → 1.54.0-rc.1766511008
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/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-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 +2 -0
- package/dist/api/base/support/index.js +2 -0
- package/dist/api/base/support/support-manager.d.ts +17 -1
- 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-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 +7 -3
- package/dist/api/graphql-api/support/graphql-support-manager.js +43 -3
- package/dist/graphql/operations/index.d.ts +16 -0
- package/dist/graphql/operations/index.js +55 -0
- package/dist/graphql/operations/types.d.ts +52 -1
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -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 { 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,5 @@ 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";
|
|
@@ -3,3 +3,5 @@ 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";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { CreateSupportRequestMutationResults, DeleteSupportAttachmentMutationResults, GetSupportCategoriesQueryResults, GetSupportRequestsQueryResults, UploadSupportAttachmentMutationResults } from "../../../graphql/operations/types.js";
|
|
1
|
+
import type { CreateSupportRequestMutationResults, DeleteSupportAttachmentMutationResults, GetSupportArticlesQueryResults, 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
4
|
import { CreateSupportRequestRequest } from "./create-support-request-request.js";
|
|
5
5
|
import { DeleteSupportAttachmentRequest } from "./delete-support-attachment-request.js";
|
|
6
|
+
import { GetSupportArticlesRequest } from "./get-support-articles-request.js";
|
|
7
|
+
import { GetSupportCommentsRequest } from "./get-support-comments-request.js";
|
|
6
8
|
import { GetSupportRequestsRequest } from "./get-support-requests-request.js";
|
|
7
9
|
import { UploadSupportAttachmentRequest } from "./upload-support-attachment-request.js";
|
|
8
10
|
export type GetSupportRequestsResults = GetSupportRequestsQueryResults["getSupportRequests"];
|
|
@@ -10,6 +12,8 @@ export type UploadSupportAttachmentResults = UploadSupportAttachmentMutationResu
|
|
|
10
12
|
export type DeleteSupportAttachmentResults = DeleteSupportAttachmentMutationResults["deleteSupportAttachment"];
|
|
11
13
|
export type CreateSupportRequestResults = CreateSupportRequestMutationResults["createSupportRequest"];
|
|
12
14
|
export type GetSupportCategoriesResults = GetSupportCategoriesQueryResults["getSupportCategories"];
|
|
15
|
+
export type GetSupportArticlesResults = GetSupportArticlesQueryResults["getSupportArticles"];
|
|
16
|
+
export type GetSupportCommentsResults = GetSupportCommentsQueryResults["getSupportComments"];
|
|
13
17
|
/**
|
|
14
18
|
* The SupportManager interface provides methods for managing support requests.
|
|
15
19
|
*/
|
|
@@ -43,4 +47,16 @@ export interface SupportManager {
|
|
|
43
47
|
* @returns A promise that resolves to a query result with the list of support categories.
|
|
44
48
|
*/
|
|
45
49
|
getSupportCategories(): Promise<BWellQueryResult<GetSupportCategoriesResults, BaseManagerError>>;
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves support articles based on the provided filters.
|
|
52
|
+
* @param request The request containing pagination and search parameters.
|
|
53
|
+
* @returns A promise that resolves to a query result with the support articles data.
|
|
54
|
+
*/
|
|
55
|
+
getSupportArticles(request: GetSupportArticlesRequest): Promise<BWellQueryResult<GetSupportArticlesResults, BaseManagerError>>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves comments for a specific support request.
|
|
58
|
+
* @param request The request containing the request ID, sortOrder and pagination parameters.
|
|
59
|
+
* @returns A promise that resolves to a query result with the support comments data.
|
|
60
|
+
*/
|
|
61
|
+
getSupportComments(request: GetSupportCommentsRequest): Promise<BWellQueryResult<GetSupportCommentsResults, BaseManagerError>>;
|
|
46
62
|
}
|
|
@@ -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 { 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,26 @@
|
|
|
1
|
-
import { CreateSupportRequestMutationVariables, DeleteSupportAttachmentMutationVariables, GetSupportRequestsQueryVariables, UploadSupportAttachmentMutationVariables } from "../../../graphql/operations/types.js";
|
|
1
|
+
import { CreateSupportRequestMutationVariables, DeleteSupportAttachmentMutationVariables, GetSupportArticlesQueryVariables, 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 { 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 { CreateSupportRequestResults, DeleteSupportAttachmentResults, GetSupportArticlesResults, 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>);
|
|
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>>;
|
|
22
26
|
}
|
|
@@ -18,16 +18,18 @@ 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;
|
|
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
25
|
import { GraphQLCreateSupportRequestRequestFactory } from "./create-support-request-request-factory.js";
|
|
26
26
|
import { GraphQLDeleteSupportAttachmentRequestFactory } from "./delete-support-attachment-request-factory.js";
|
|
27
|
+
import { GraphQLGetSupportArticlesBwellRequestFactory } from "./get-support-articles-bwell-request-factory.js";
|
|
28
|
+
import { GraphQLGetSupportCommentsBwellRequestFactory } from "./get-support-comments-bwell-request-factory.js";
|
|
27
29
|
import { GraphQLGetSupportRequestsBwellRequestFactory } from "./get-support-requests-bwell-request-factory.js";
|
|
28
30
|
import { GraphQLUploadSupportAttachmentRequestFactory } from "./upload-support-attachment-request-factory.js";
|
|
29
31
|
export class GraphQLSupportManager extends GraphQLManager {
|
|
30
|
-
constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), getSupportRequestsRequestFactory = new GraphQLGetSupportRequestsBwellRequestFactory(), uploadSupportAttachmentRequestFactory = new GraphQLUploadSupportAttachmentRequestFactory(), deleteSupportAttachmentRequestFactory = new GraphQLDeleteSupportAttachmentRequestFactory(), createSupportRequestRequestFactory = new GraphQLCreateSupportRequestRequestFactory()) {
|
|
32
|
+
constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), getSupportRequestsRequestFactory = new GraphQLGetSupportRequestsBwellRequestFactory(), uploadSupportAttachmentRequestFactory = new GraphQLUploadSupportAttachmentRequestFactory(), deleteSupportAttachmentRequestFactory = new GraphQLDeleteSupportAttachmentRequestFactory(), createSupportRequestRequestFactory = new GraphQLCreateSupportRequestRequestFactory(), getSupportArticlesRequestFactory = new GraphQLGetSupportArticlesBwellRequestFactory(), getSupportCommentsRequestFactory = new GraphQLGetSupportCommentsBwellRequestFactory()) {
|
|
31
33
|
super();
|
|
32
34
|
_GraphQLSupportManager_sdk.set(this, void 0);
|
|
33
35
|
_GraphQLSupportManager_logger.set(this, void 0);
|
|
@@ -35,12 +37,16 @@ export class GraphQLSupportManager extends GraphQLManager {
|
|
|
35
37
|
_GraphQLSupportManager_uploadSupportAttachmentRequestFactory.set(this, void 0);
|
|
36
38
|
_GraphQLSupportManager_deleteSupportAttachmentRequestFactory.set(this, void 0);
|
|
37
39
|
_GraphQLSupportManager_createSupportRequestRequestFactory.set(this, void 0);
|
|
40
|
+
_GraphQLSupportManager_getSupportArticlesRequestFactory.set(this, void 0);
|
|
41
|
+
_GraphQLSupportManager_getSupportCommentsRequestFactory.set(this, void 0);
|
|
38
42
|
__classPrivateFieldSet(this, _GraphQLSupportManager_sdk, sdk, "f");
|
|
39
43
|
__classPrivateFieldSet(this, _GraphQLSupportManager_logger, loggerProvider.getLogger("GraphQLSupportManager"), "f");
|
|
40
44
|
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportRequestsRequestFactory, getSupportRequestsRequestFactory, "f");
|
|
41
45
|
__classPrivateFieldSet(this, _GraphQLSupportManager_uploadSupportAttachmentRequestFactory, uploadSupportAttachmentRequestFactory, "f");
|
|
42
46
|
__classPrivateFieldSet(this, _GraphQLSupportManager_deleteSupportAttachmentRequestFactory, deleteSupportAttachmentRequestFactory, "f");
|
|
43
47
|
__classPrivateFieldSet(this, _GraphQLSupportManager_createSupportRequestRequestFactory, createSupportRequestRequestFactory, "f");
|
|
48
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportArticlesRequestFactory, getSupportArticlesRequestFactory, "f");
|
|
49
|
+
__classPrivateFieldSet(this, _GraphQLSupportManager_getSupportCommentsRequestFactory, getSupportCommentsRequestFactory, "f");
|
|
44
50
|
}
|
|
45
51
|
getSupportRequests(request) {
|
|
46
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -125,5 +131,39 @@ export class GraphQLSupportManager extends GraphQLManager {
|
|
|
125
131
|
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportCategories, result.error);
|
|
126
132
|
});
|
|
127
133
|
}
|
|
134
|
+
getSupportArticles(request) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
var _a;
|
|
137
|
+
const validationResult = this.validateRequest(request);
|
|
138
|
+
if (validationResult.failure()) {
|
|
139
|
+
return validationResult.toQueryResult();
|
|
140
|
+
}
|
|
141
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_getSupportArticlesRequestFactory, "f").create(request);
|
|
142
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling getSupportArticles query...");
|
|
143
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").getSupportArticles(inputVariables));
|
|
144
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("getSupportArticles query complete.");
|
|
145
|
+
if (result.hasError()) {
|
|
146
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("getSupportArticles query error", result.error);
|
|
147
|
+
}
|
|
148
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportArticles, result.error);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
getSupportComments(request) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
var _a;
|
|
154
|
+
const validationResult = this.validateRequest(request);
|
|
155
|
+
if (validationResult.failure()) {
|
|
156
|
+
return validationResult.toQueryResult();
|
|
157
|
+
}
|
|
158
|
+
const inputVariables = __classPrivateFieldGet(this, _GraphQLSupportManager_getSupportCommentsRequestFactory, "f").create(request);
|
|
159
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("calling getSupportComments query...");
|
|
160
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLSupportManager_sdk, "f").getSupportComments(inputVariables));
|
|
161
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").verbose("getSupportComments query complete.");
|
|
162
|
+
if (result.hasError()) {
|
|
163
|
+
__classPrivateFieldGet(this, _GraphQLSupportManager_logger, "f").error("getSupportComments query error", result.error);
|
|
164
|
+
}
|
|
165
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getSupportComments, result.error);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
128
168
|
}
|
|
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();
|
|
169
|
+
_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();
|
|
@@ -154,7 +154,9 @@ export declare const RequestConnectionDocument = "\n mutation requestConnecti
|
|
|
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
155
|
export declare const CreateSupportRequestDocument = "\n mutation CreateSupportRequest($input: CreateSupportRequestInput!) {\n createSupportRequest(input: $input) {\n data {\n id\n subject\n category\n created\n lastActivity\n status\n }\n }\n}\n ";
|
|
156
156
|
export declare const DeleteSupportAttachmentDocument = "\n mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {\n deleteSupportAttachment(input: $input) {\n status\n }\n}\n ";
|
|
157
|
+
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 ";
|
|
157
158
|
export declare const GetSupportCategoriesDocument = "\n query GetSupportCategories {\n getSupportCategories {\n label\n value\n }\n}\n ";
|
|
159
|
+
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
160
|
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
161
|
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
162
|
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 ";
|
|
@@ -629,6 +631,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
629
631
|
headers: Headers;
|
|
630
632
|
status: number;
|
|
631
633
|
}>;
|
|
634
|
+
getSupportArticles(variables?: Types.GetSupportArticlesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
635
|
+
data: Types.GetSupportArticlesQueryResults;
|
|
636
|
+
errors?: GraphQLError[];
|
|
637
|
+
extensions?: any;
|
|
638
|
+
headers: Headers;
|
|
639
|
+
status: number;
|
|
640
|
+
}>;
|
|
632
641
|
GetSupportCategories(variables?: Types.GetSupportCategoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
633
642
|
data: Types.GetSupportCategoriesQueryResults;
|
|
634
643
|
errors?: GraphQLError[];
|
|
@@ -636,6 +645,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
636
645
|
headers: Headers;
|
|
637
646
|
status: number;
|
|
638
647
|
}>;
|
|
648
|
+
getSupportComments(variables: Types.GetSupportCommentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
649
|
+
data: Types.GetSupportCommentsQueryResults;
|
|
650
|
+
errors?: GraphQLError[];
|
|
651
|
+
extensions?: any;
|
|
652
|
+
headers: Headers;
|
|
653
|
+
status: number;
|
|
654
|
+
}>;
|
|
639
655
|
getSupportRequests(variables?: Types.GetSupportRequestsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
640
656
|
data: Types.GetSupportRequestsQueryResults;
|
|
641
657
|
errors?: GraphQLError[];
|
|
@@ -3917,6 +3917,27 @@ export const DeleteSupportAttachmentDocument = `
|
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
3919
3919
|
`;
|
|
3920
|
+
export const GetSupportArticlesDocument = `
|
|
3921
|
+
query getSupportArticles($input: SupportArticlesInput) {
|
|
3922
|
+
getSupportArticles(input: $input) {
|
|
3923
|
+
data {
|
|
3924
|
+
id
|
|
3925
|
+
title
|
|
3926
|
+
body
|
|
3927
|
+
snippet
|
|
3928
|
+
createdAt
|
|
3929
|
+
updatedAt
|
|
3930
|
+
labelNames
|
|
3931
|
+
}
|
|
3932
|
+
paging_info {
|
|
3933
|
+
page_number
|
|
3934
|
+
page_size
|
|
3935
|
+
total_items
|
|
3936
|
+
total_pages
|
|
3937
|
+
}
|
|
3938
|
+
}
|
|
3939
|
+
}
|
|
3940
|
+
`;
|
|
3920
3941
|
export const GetSupportCategoriesDocument = `
|
|
3921
3942
|
query GetSupportCategories {
|
|
3922
3943
|
getSupportCategories {
|
|
@@ -3925,6 +3946,34 @@ export const GetSupportCategoriesDocument = `
|
|
|
3925
3946
|
}
|
|
3926
3947
|
}
|
|
3927
3948
|
`;
|
|
3949
|
+
export const GetSupportCommentsDocument = `
|
|
3950
|
+
query getSupportComments($input: SupportCommentsInput!) {
|
|
3951
|
+
getSupportComments(input: $input) {
|
|
3952
|
+
comments {
|
|
3953
|
+
id
|
|
3954
|
+
body
|
|
3955
|
+
htmlBody
|
|
3956
|
+
author {
|
|
3957
|
+
name
|
|
3958
|
+
email
|
|
3959
|
+
}
|
|
3960
|
+
attachments {
|
|
3961
|
+
id
|
|
3962
|
+
fileName
|
|
3963
|
+
contentType
|
|
3964
|
+
size
|
|
3965
|
+
}
|
|
3966
|
+
createdAt
|
|
3967
|
+
}
|
|
3968
|
+
paging_info {
|
|
3969
|
+
page_number
|
|
3970
|
+
page_size
|
|
3971
|
+
total_items
|
|
3972
|
+
total_pages
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
`;
|
|
3928
3977
|
export const GetSupportRequestsDocument = `
|
|
3929
3978
|
query getSupportRequests($input: SupportRequestsInput) {
|
|
3930
3979
|
getSupportRequests(input: $input) {
|
|
@@ -4366,9 +4415,15 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4366
4415
|
DeleteSupportAttachment(variables, requestHeaders) {
|
|
4367
4416
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(DeleteSupportAttachmentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteSupportAttachment', 'mutation', variables);
|
|
4368
4417
|
},
|
|
4418
|
+
getSupportArticles(variables, requestHeaders) {
|
|
4419
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportArticlesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportArticles', 'query', variables);
|
|
4420
|
+
},
|
|
4369
4421
|
GetSupportCategories(variables, requestHeaders) {
|
|
4370
4422
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportCategoriesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetSupportCategories', 'query', variables);
|
|
4371
4423
|
},
|
|
4424
|
+
getSupportComments(variables, requestHeaders) {
|
|
4425
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportCommentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportComments', 'query', variables);
|
|
4426
|
+
},
|
|
4372
4427
|
getSupportRequests(variables, requestHeaders) {
|
|
4373
4428
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportRequestsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportRequests', 'query', variables);
|
|
4374
4429
|
},
|
|
@@ -22356,6 +22356,28 @@ export type DeleteSupportAttachmentMutationResults = {
|
|
|
22356
22356
|
status: Types.DeletionStatus;
|
|
22357
22357
|
};
|
|
22358
22358
|
};
|
|
22359
|
+
export type GetSupportArticlesQueryVariables = Types.Exact<{
|
|
22360
|
+
input: Types.InputMaybe<Types.SupportArticlesInput>;
|
|
22361
|
+
}>;
|
|
22362
|
+
export type GetSupportArticlesQueryResults = {
|
|
22363
|
+
getSupportArticles: {
|
|
22364
|
+
data: Array<{
|
|
22365
|
+
id: string;
|
|
22366
|
+
title: string;
|
|
22367
|
+
body: string;
|
|
22368
|
+
snippet: string | null;
|
|
22369
|
+
createdAt: string;
|
|
22370
|
+
updatedAt: string;
|
|
22371
|
+
labelNames: Array<string>;
|
|
22372
|
+
}>;
|
|
22373
|
+
paging_info: {
|
|
22374
|
+
page_number: number;
|
|
22375
|
+
page_size: number;
|
|
22376
|
+
total_pages: number;
|
|
22377
|
+
total_items: number;
|
|
22378
|
+
};
|
|
22379
|
+
};
|
|
22380
|
+
};
|
|
22359
22381
|
export type GetSupportCategoriesQueryVariables = Types.Exact<{
|
|
22360
22382
|
[key: string]: never;
|
|
22361
22383
|
}>;
|
|
@@ -22365,6 +22387,35 @@ export type GetSupportCategoriesQueryResults = {
|
|
|
22365
22387
|
value: string;
|
|
22366
22388
|
}>;
|
|
22367
22389
|
};
|
|
22390
|
+
export type GetSupportCommentsQueryVariables = Types.Exact<{
|
|
22391
|
+
input: Types.SupportCommentsInput;
|
|
22392
|
+
}>;
|
|
22393
|
+
export type GetSupportCommentsQueryResults = {
|
|
22394
|
+
getSupportComments: {
|
|
22395
|
+
comments: Array<{
|
|
22396
|
+
id: string;
|
|
22397
|
+
body: string;
|
|
22398
|
+
htmlBody: string;
|
|
22399
|
+
createdAt: string;
|
|
22400
|
+
author: {
|
|
22401
|
+
name: string;
|
|
22402
|
+
email: string;
|
|
22403
|
+
};
|
|
22404
|
+
attachments: Array<{
|
|
22405
|
+
id: string;
|
|
22406
|
+
fileName: string;
|
|
22407
|
+
contentType: string;
|
|
22408
|
+
size: number;
|
|
22409
|
+
}>;
|
|
22410
|
+
}>;
|
|
22411
|
+
paging_info: {
|
|
22412
|
+
page_number: number;
|
|
22413
|
+
page_size: number;
|
|
22414
|
+
total_pages: number;
|
|
22415
|
+
total_items: number;
|
|
22416
|
+
};
|
|
22417
|
+
};
|
|
22418
|
+
};
|
|
22368
22419
|
export type GetSupportRequestsQueryVariables = Types.Exact<{
|
|
22369
22420
|
input: Types.InputMaybe<Types.SupportRequestsInput>;
|
|
22370
22421
|
}>;
|
|
@@ -22393,10 +22444,10 @@ export type UploadSupportAttachmentMutationResults = {
|
|
|
22393
22444
|
uploadSupportAttachment: {
|
|
22394
22445
|
attachmentId: string;
|
|
22395
22446
|
attachments: Array<{
|
|
22447
|
+
id: string;
|
|
22396
22448
|
fileName: string;
|
|
22397
22449
|
contentType: string;
|
|
22398
22450
|
size: number;
|
|
22399
|
-
id: string;
|
|
22400
22451
|
}>;
|
|
22401
22452
|
};
|
|
22402
22453
|
};
|