@blogmcp/sdk 0.6.1 → 0.7.1
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/consultations/channel-text.d.ts +118 -0
- package/dist/consultations/channel-text.js +40 -0
- package/dist/consultations/index.d.ts +28 -0
- package/dist/consultations/index.js +60 -0
- package/dist/consultations/messages.cs.d.ts +149 -0
- package/dist/consultations/messages.cs.js +143 -0
- package/dist/consultations/messages.d.ts +34 -0
- package/dist/consultations/messages.en.d.ts +143 -0
- package/dist/consultations/messages.en.js +141 -0
- package/dist/consultations/messages.js +48 -0
- package/dist/consultations/outcome.d.ts +121 -0
- package/dist/consultations/outcome.js +161 -0
- package/dist/consultations/public-config.d.ts +71 -0
- package/dist/consultations/public-config.js +104 -0
- package/dist/consultations/reader.d.ts +83 -0
- package/dist/consultations/reader.js +128 -0
- package/dist/consultations/routes.d.ts +214 -0
- package/dist/consultations/routes.js +149 -0
- package/dist/consultations/server/client-ip.d.ts +50 -0
- package/dist/consultations/server/client-ip.js +44 -0
- package/dist/consultations/server/contact.d.ts +23 -0
- package/dist/consultations/server/contact.js +138 -0
- package/dist/consultations/server/context.d.ts +246 -0
- package/dist/consultations/server/context.js +152 -0
- package/dist/consultations/server/cookie.d.ts +60 -0
- package/dist/consultations/server/cookie.js +57 -0
- package/dist/consultations/server/env.d.ts +20 -0
- package/dist/consultations/server/env.js +35 -0
- package/dist/consultations/server/http.d.ts +59 -0
- package/dist/consultations/server/http.js +64 -0
- package/dist/consultations/server/index.d.ts +37 -0
- package/dist/consultations/server/index.js +19 -0
- package/dist/consultations/server/origin.d.ts +39 -0
- package/dist/consultations/server/origin.js +31 -0
- package/dist/consultations/server/server.d.ts +106 -0
- package/dist/consultations/server/server.js +122 -0
- package/dist/consultations/server/session.d.ts +38 -0
- package/dist/consultations/server/session.js +210 -0
- package/dist/consultations/server/transport.d.ts +69 -0
- package/dist/consultations/server/transport.js +117 -0
- package/dist/consultations/server/turnstile.d.ts +44 -0
- package/dist/consultations/server/turnstile.js +31 -0
- package/dist/consultations/site.d.ts +100 -0
- package/dist/consultations/site.js +60 -0
- package/dist/consultations/submit-new.d.ts +103 -0
- package/dist/consultations/submit-new.js +72 -0
- package/dist/core/auth.d.ts +2 -2
- package/dist/core/auth.js +21 -21
- package/dist/core/client.d.ts +25 -4
- package/dist/core/client.js +35 -30
- package/dist/core/consultation-adapter.d.ts +2 -2
- package/dist/core/consultations.d.ts +1 -1
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.js +16 -15
- package/dist/core/index.d.ts +31 -31
- package/dist/core/index.js +35 -34
- package/dist/core/markdown.d.ts +1 -1
- package/dist/core/queries.d.ts +4 -1
- package/dist/core/queries.js +131 -86
- package/dist/core/review/format.d.ts +1 -1
- package/dist/core/review/index.d.ts +2 -2
- package/dist/core/seo.d.ts +1 -1
- package/dist/core/translations/cs.json.js +1 -1
- package/dist/core/translations/en.json.js +1 -1
- package/dist/core/types.d.ts +50 -1
- package/dist/core/view-model.d.ts +12 -2
- package/dist/core/view-model.js +40 -34
- package/dist/{packages/tripmap-core/node_modules → node_modules}/pmtiles/dist/esm/index.js +1 -1
- package/dist/nuxt/composables/useAsyncKb.d.ts +4 -4
- package/dist/nuxt/index.d.ts +1 -1
- package/dist/packages/tripmap-core/dist/engine.js +3 -3
- package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
- package/dist/react/KbMdxContent.d.ts +1 -1
- package/dist/react/context.d.ts +4 -4
- package/dist/react/hooks/useImageRenderer.d.ts +1 -1
- package/dist/react/hooks/useKbClient.d.ts +1 -1
- package/dist/react/hooks/useKbContext.d.ts +1 -1
- package/dist/react/hooks/useKbI18n.d.ts +1 -1
- package/dist/react/hooks/useKbLanguage.d.ts +1 -1
- package/dist/react/hooks/useKbSearch.d.ts +1 -1
- package/dist/react/hooks/useMdxContent.d.ts +1 -1
- package/dist/react/index.d.ts +15 -15
- package/dist/react/provider.d.ts +2 -2
- package/dist/react/server/index.d.ts +2 -2
- package/dist/vue/components/KbAccessGate.vue.d.ts +4 -1
- package/dist/vue/components/KbAccessGate.vue.js +42 -32
- package/dist/vue/components/KbArticleCard.vue.d.ts +3 -1
- package/dist/vue/components/KbArticleCard.vue.js +67 -39
- package/dist/vue/composables/useArticles.d.ts +1 -1
- package/dist/vue/composables/useImageRenderer.d.ts +1 -1
- package/dist/vue/composables/useKbAuth.d.ts +1 -1
- package/dist/vue/composables/useKbClient.d.ts +1 -1
- package/dist/vue/composables/useKbComments.d.ts +1 -1
- package/dist/vue/composables/useKbI18n.d.ts +1 -1
- package/dist/vue/composables/useKbLanguage.d.ts +1 -1
- package/dist/vue/composables/useNavigation.d.ts +1 -1
- package/dist/vue/composables/useSearch.d.ts +1 -1
- package/dist/vue/composables/useTags.d.ts +1 -1
- package/dist/vue/index.d.ts +19 -19
- package/dist/vue/plugin.d.ts +4 -4
- package/package.json +15 -5
- package/src/consultations/channel-text.ts +168 -0
- package/src/consultations/index.ts +87 -0
- package/src/consultations/messages.cs.ts +175 -0
- package/src/consultations/messages.en.ts +171 -0
- package/src/consultations/messages.ts +91 -0
- package/src/consultations/outcome.ts +278 -0
- package/src/consultations/public-config.ts +246 -0
- package/src/consultations/reader.ts +281 -0
- package/src/consultations/routes.ts +341 -0
- package/src/consultations/server/client-ip.ts +106 -0
- package/src/consultations/server/contact.ts +267 -0
- package/src/consultations/server/context.ts +403 -0
- package/src/consultations/server/cookie.ts +129 -0
- package/src/consultations/server/env.ts +66 -0
- package/src/consultations/server/http.ts +148 -0
- package/src/consultations/server/index.ts +55 -0
- package/src/consultations/server/origin.ts +71 -0
- package/src/consultations/server/server.ts +322 -0
- package/src/consultations/server/session.ts +414 -0
- package/src/consultations/server/transport.ts +196 -0
- package/src/consultations/server/turnstile.ts +98 -0
- package/src/consultations/site.ts +183 -0
- package/src/consultations/submit-new.ts +266 -0
- package/src/core/auth.ts +5 -1
- package/src/core/client.ts +32 -1
- package/src/core/errors.ts +5 -2
- package/src/core/index.ts +3 -0
- package/src/core/queries.ts +56 -0
- package/src/core/translations/cs.json +2 -1
- package/src/core/translations/en.json +2 -1
- package/src/core/types.ts +51 -0
- package/src/core/view-model.ts +18 -0
- package/src/vue/components/KbAccessGate.vue +14 -1
- package/src/vue/components/KbArticleCard.vue +25 -0
- /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl-shared.js +0 -0
- /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl.js +0 -0
package/dist/core/client.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { UPDATE_MY_PROFILE as i, ARTICLE_VERSION as A, UPDATE_MY_REPORT_SETTINGS as S, MY_REPORT_SETTINGS as _, CHANGE_PASSWORD as
|
|
2
|
-
import { createMemoryTokenStorage as
|
|
3
|
-
import { KbGraphQLError as
|
|
4
|
-
import { createConsultationSessionApi as
|
|
5
|
-
function
|
|
1
|
+
import { UPDATE_MY_PROFILE as i, ARTICLE_VERSION as A, UPDATE_MY_REPORT_SETTINGS as S, MY_REPORT_SETTINGS as _, CHANGE_PASSWORD as I, RESEND_VERIFICATION as l, RESET_PASSWORD as R, FORGOT_PASSWORD as C, VERIFY_EMAIL as c, REGISTER as d, LOGIN as L, DELETE_COMMENT as u, UPDATE_COMMENT as O, CREATE_COMMENT as p, GET_COMMENT as N, ARTICLE_COMMENTS as h, GET_TRANSLATION as m, ARTICLE_TRANSLATIONS as G, KB_NAVIGATION as P, KB_LANGUAGES as g, LOCALIZED_TAGS as M, ACCESSIBLE_TAGS as y, GET_KB_CONTEXT as D, SEARCH_KNOWLEDGE_BASE as B, ARTICLE_ALIAS_TARGET as f, ARTICLE_PREVIEW_BY_ID as v, ARTICLE_PREVIEW as w, ARTICLE_WITH_TRANSLATION_BY_ID as W, ARTICLE_WITH_TRANSLATION as K, ACCESSIBLE_ARTICLES_WITH_LOCKED as V, ACCESSIBLE_ARTICLES as k } from "./queries.js";
|
|
2
|
+
import { createMemoryTokenStorage as b } from "./auth.js";
|
|
3
|
+
import { KbGraphQLError as x } from "./errors.js";
|
|
4
|
+
import { createConsultationSessionApi as Y, createConsultationsApi as F } from "./consultations.js";
|
|
5
|
+
function H() {
|
|
6
6
|
return async (o, n) => (await fetch(o, {
|
|
7
7
|
method: n.method,
|
|
8
8
|
headers: n.headers,
|
|
9
9
|
body: n.body
|
|
10
10
|
})).json();
|
|
11
11
|
}
|
|
12
|
-
async function
|
|
12
|
+
async function U(o, n, s) {
|
|
13
13
|
const E = {
|
|
14
14
|
...o.headers ?? {},
|
|
15
15
|
"Content-Type": "application/json"
|
|
@@ -21,35 +21,40 @@ async function F(o, n, s) {
|
|
|
21
21
|
body: JSON.stringify({ query: n, variables: s })
|
|
22
22
|
});
|
|
23
23
|
if (t.errors?.length)
|
|
24
|
-
throw new
|
|
24
|
+
throw new x(t.errors);
|
|
25
25
|
return t.data;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const n = o.fetcher ||
|
|
27
|
+
function J(o) {
|
|
28
|
+
const n = o.fetcher || H(), s = o.tokenStorage || b(), a = { endpoint: o.isServer && o.serverEndpoint ? o.serverEndpoint : o.endpoint, fetcher: n, tokenStorage: s, headers: o.headers };
|
|
29
29
|
function t(e, r) {
|
|
30
|
-
return
|
|
30
|
+
return U(a, e, r);
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
articles: {
|
|
34
|
-
list: (e) =>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
list: (e) => {
|
|
35
|
+
const { includeLocked: r, ...T } = e ?? {};
|
|
36
|
+
return t(r ? V : k, T);
|
|
37
|
+
},
|
|
38
|
+
getWithTranslation: (e, r) => t(K, { filename: e, languageCode: r }),
|
|
39
|
+
getWithTranslationById: (e, r) => t(W, { id: e, languageCode: r }),
|
|
40
|
+
getPreview: (e, r) => t(w, { filename: e, languageCode: r }),
|
|
41
|
+
getPreviewById: (e, r) => t(v, { id: e, languageCode: r }),
|
|
42
|
+
resolveAlias: (e) => t(f, { filename: e }),
|
|
38
43
|
getVersion: (e, r) => t(A, { versionId: e, previewKey: r?.previewKey ?? null })
|
|
39
44
|
},
|
|
40
45
|
search: {
|
|
41
|
-
query: (e) => t(
|
|
46
|
+
query: (e) => t(B, e),
|
|
42
47
|
getContext: (e, r) => t(D, { query: e, maxChunks: r })
|
|
43
48
|
},
|
|
44
49
|
tags: {
|
|
45
50
|
list: () => t(y),
|
|
46
|
-
listLocalized: (e) => t(
|
|
51
|
+
listLocalized: (e) => t(M, { languageCode: e })
|
|
47
52
|
},
|
|
48
53
|
languages: {
|
|
49
|
-
list: () => t(
|
|
54
|
+
list: () => t(g)
|
|
50
55
|
},
|
|
51
56
|
navigation: {
|
|
52
|
-
get: (e) => t(
|
|
57
|
+
get: (e) => t(P, e ?? {})
|
|
53
58
|
},
|
|
54
59
|
translations: {
|
|
55
60
|
list: (e) => t(G, { articleId: e }),
|
|
@@ -57,19 +62,19 @@ function j(o) {
|
|
|
57
62
|
},
|
|
58
63
|
comments: {
|
|
59
64
|
list: (e, r) => t(h, { articleId: e, languageCode: r }),
|
|
60
|
-
get: (e, r) => t(
|
|
61
|
-
create: (e) => t(
|
|
62
|
-
update: (e, r) => t(
|
|
65
|
+
get: (e, r) => t(N, { commentId: e, languageCode: r }),
|
|
66
|
+
create: (e) => t(p, e),
|
|
67
|
+
update: (e, r) => t(O, { commentId: e, content: r }),
|
|
63
68
|
delete: (e) => t(u, { commentId: e })
|
|
64
69
|
},
|
|
65
70
|
auth: {
|
|
66
|
-
login: (e, r) => t(
|
|
67
|
-
register: (e, r, T) => t(
|
|
68
|
-
verifyEmail: (e) => t(
|
|
69
|
-
forgotPassword: (e) => t(
|
|
71
|
+
login: (e, r) => t(L, { email: e, password: r }),
|
|
72
|
+
register: (e, r, T) => t(d, { email: e, password: r, name: T }),
|
|
73
|
+
verifyEmail: (e) => t(c, { token: e }),
|
|
74
|
+
forgotPassword: (e) => t(C, { email: e }),
|
|
70
75
|
resetPassword: (e, r) => t(R, { token: e, password: r }),
|
|
71
|
-
resendVerification: (e) => t(
|
|
72
|
-
changePassword: (e, r) => t(
|
|
76
|
+
resendVerification: (e) => t(l, { email: e }),
|
|
77
|
+
changePassword: (e, r) => t(I, { currentPassword: e, newPassword: r }),
|
|
73
78
|
updateProfile: (e) => t(i, {
|
|
74
79
|
name: e.name ?? null,
|
|
75
80
|
email: e.email ?? null
|
|
@@ -79,11 +84,11 @@ function j(o) {
|
|
|
79
84
|
get: () => t(_),
|
|
80
85
|
update: (e) => t(S, e)
|
|
81
86
|
},
|
|
82
|
-
consultations:
|
|
83
|
-
consultationSession:
|
|
87
|
+
consultations: F(t),
|
|
88
|
+
consultationSession: Y(t),
|
|
84
89
|
executeGraphQL: t
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
export {
|
|
88
|
-
|
|
93
|
+
J as createKbClient
|
|
89
94
|
};
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* `ConsultationAdapterError` with the contract's `{code}` and the HTTP status;
|
|
21
21
|
* their message names the operation, status and code only, never a body.
|
|
22
22
|
*/
|
|
23
|
-
import type { KbErrorCode } from './errors';
|
|
24
|
-
import type { ConsultationAckInput, ConsultationEraseInput, ConsultationEraseResult, ConsultationFailInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationLeaseInput, ConsultationLeaseResult, ConsultationOkResult, ConsultationOutboxStats, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadByNotice, ConsultationThreadOwner } from './types';
|
|
23
|
+
import type { KbErrorCode } from './errors.js';
|
|
24
|
+
import type { ConsultationAckInput, ConsultationEraseInput, ConsultationEraseResult, ConsultationFailInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationLeaseInput, ConsultationLeaseResult, ConsultationOkResult, ConsultationOutboxStats, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadByNotice, ConsultationThreadOwner } from './types.js';
|
|
25
25
|
export interface ConsultationAdapterClientConfig {
|
|
26
26
|
/**
|
|
27
27
|
* The KB API base URL: `https://<tenant host>/api` through the ingress, or
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* storefront's one egress IP (link exchange, link requests, session posts).
|
|
34
34
|
* Nothing here logs: bodies, sessions, tokens and addresses stay in memory.
|
|
35
35
|
*/
|
|
36
|
-
import type { ConsultationConsentWithdrawalResult, ConsultationMessageInput, ConsultationPublicConfig, ConsultationSessionResult, CreateMyConsultationInput, ReaderConsultation, ReaderConsultationConsent, ReaderConsultationResult, ReaderConsultationSummary } from './types';
|
|
36
|
+
import type { ConsultationConsentWithdrawalResult, ConsultationMessageInput, ConsultationPublicConfig, ConsultationSessionResult, CreateMyConsultationInput, ReaderConsultation, ReaderConsultationConsent, ReaderConsultationResult, ReaderConsultationSummary } from './types.js';
|
|
37
37
|
/** Executes one GraphQL document (the client's `executeGraphQL`). */
|
|
38
38
|
export type GraphQLExec = <T>(query: string, variables?: Record<string, unknown>) => Promise<T>;
|
|
39
39
|
export interface KbConsultationsApi {
|
package/dist/core/errors.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* test compares the two lists.
|
|
14
14
|
*/
|
|
15
15
|
/** Every reader-consultation error code of the KB API, in its declaration order. */
|
|
16
|
-
export declare const CONSULTATION_ERROR_CODES: readonly ["UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "FEATURE_DISABLED", "INVALID_INPUT", "BODY_TOO_LONG", "NOTICE_REQUIRED", "NOTICE_VERSION_UNKNOWN", "CONSENT_REQUIRED", "CONSENT_VERSION_UNKNOWN", "CHANNEL_NOT_ALLOWED", "THREAD_REQUIRED", "SENDER_MISMATCH", "QUOTA_EXCEEDED", "INVALID_LINK", "THREAD_CLOSED", "ATTACH_EMAIL_MISMATCH", "STALE_THREAD", "STALE_LEASE", "NOTHING_TO_DO", "IDEMPOTENCY_CONFLICT", "LEGAL_HOLD", "CONTENT_ACCESS_REQUIRED", "READER_URL_MISSING", "READER_PATH_MISSING", "TEXT_MISSING", "OPERATOR_MISSING", "TEXT_VERSION_EXISTS", "CONTENT_ACCESS_ATTESTATION_REQUIRED", "AI_DRAFTS_DISABLED", "AI_LOCAL_UNAVAILABLE", "PROCESSING_RESTRICTED", "DRAFT_FLAGS_UNACKNOWLEDGED", "REPLY_POLICY_MISSING", "DRAFT_ID_REQUIRED", "CARD_GUARD_FAILED", "CARD_CONFIRMATION_REQUIRED", "STALE_CARD", "RETRY_LATER", "INTERNAL_ERROR"];
|
|
16
|
+
export declare const CONSULTATION_ERROR_CODES: readonly ["UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "FEATURE_DISABLED", "INVALID_INPUT", "BODY_TOO_LONG", "NOTICE_REQUIRED", "NOTICE_VERSION_UNKNOWN", "CONSENT_REQUIRED", "CONSENT_VERSION_UNKNOWN", "CHANNEL_NOT_ALLOWED", "THREAD_REQUIRED", "SENDER_MISMATCH", "QUOTA_EXCEEDED", "INVALID_LINK", "THREAD_CLOSED", "ATTACH_EMAIL_MISMATCH", "STALE_THREAD", "STALE_LEASE", "NOTHING_TO_DO", "IDEMPOTENCY_CONFLICT", "LEGAL_HOLD", "CONTENT_ACCESS_REQUIRED", "READER_URL_MISSING", "READER_PATH_MISSING", "TEXT_MISSING", "OPERATOR_MISSING", "MAIL_TRANSPORT_MISSING", "TEXT_VERSION_EXISTS", "CONTENT_ACCESS_ATTESTATION_REQUIRED", "AI_DRAFTS_DISABLED", "AI_LOCAL_UNAVAILABLE", "PROCESSING_RESTRICTED", "DRAFT_FLAGS_UNACKNOWLEDGED", "REPLY_POLICY_MISSING", "DRAFT_ID_REQUIRED", "CARD_GUARD_FAILED", "CARD_CONFIRMATION_REQUIRED", "STALE_CARD", "RETRY_LATER", "INTERNAL_ERROR"];
|
|
17
17
|
/** A reader-consultation error code (the `code` of a result or of a thrown error). */
|
|
18
18
|
export type ConsultationErrorCode = (typeof CONSULTATION_ERROR_CODES)[number];
|
|
19
19
|
/**
|
package/dist/core/errors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const T = [
|
|
2
2
|
"UNAUTHENTICATED",
|
|
3
3
|
"FORBIDDEN",
|
|
4
4
|
"NOT_FOUND",
|
|
@@ -26,6 +26,7 @@ const R = [
|
|
|
26
26
|
"READER_PATH_MISSING",
|
|
27
27
|
"TEXT_MISSING",
|
|
28
28
|
"OPERATOR_MISSING",
|
|
29
|
+
"MAIL_TRANSPORT_MISSING",
|
|
29
30
|
"TEXT_VERSION_EXISTS",
|
|
30
31
|
"CONTENT_ACCESS_ATTESTATION_REQUIRED",
|
|
31
32
|
"AI_DRAFTS_DISABLED",
|
|
@@ -39,35 +40,35 @@ const R = [
|
|
|
39
40
|
"STALE_CARD",
|
|
40
41
|
"RETRY_LATER",
|
|
41
42
|
"INTERNAL_ERROR"
|
|
42
|
-
],
|
|
43
|
-
function
|
|
44
|
-
return typeof E == "string" &&
|
|
43
|
+
], r = new Set(T);
|
|
44
|
+
function t(E) {
|
|
45
|
+
return typeof E == "string" && r.has(E);
|
|
45
46
|
}
|
|
46
|
-
const
|
|
47
|
-
function
|
|
47
|
+
const I = 128;
|
|
48
|
+
function O(E) {
|
|
48
49
|
const _ = E ?? {}, A = _.extensions?.code;
|
|
49
50
|
return {
|
|
50
51
|
message: typeof _.message == "string" && _.message !== "" ? _.message : "GraphQL error",
|
|
51
|
-
code: typeof A == "string" && A !== "" && A.length <=
|
|
52
|
+
code: typeof A == "string" && A !== "" && A.length <= I ? A : null,
|
|
52
53
|
path: Array.isArray(_.path) ? [..._.path] : null
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
|
-
const
|
|
56
|
-
class
|
|
56
|
+
const R = /* @__PURE__ */ Symbol.for("@blogmcp/sdk/KbGraphQLError");
|
|
57
|
+
class e extends Error {
|
|
57
58
|
/** `errors[0].extensions.code`, or null when absent. */
|
|
58
59
|
code;
|
|
59
60
|
errors;
|
|
60
61
|
constructor(_) {
|
|
61
|
-
const A = (_.length > 0 ? _ : [void 0]).map(
|
|
62
|
-
super(
|
|
62
|
+
const A = (_.length > 0 ? _ : [void 0]).map(O), N = A[0];
|
|
63
|
+
super(N.message), this.name = "KbGraphQLError", this.code = N.code, this.errors = A, Object.defineProperty(this, R, { value: !0 });
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
function D(E) {
|
|
66
|
-
return E instanceof
|
|
67
|
+
return E instanceof e ? !0 : E instanceof Error && E[R] === !0;
|
|
67
68
|
}
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
T as CONSULTATION_ERROR_CODES,
|
|
71
|
+
e as KbGraphQLError,
|
|
72
|
+
t as isConsultationErrorCode,
|
|
72
73
|
D as isKbGraphQLError
|
|
73
74
|
};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export type { Article, ArticleWithTranslation, ArticleVersionContent, MediaGeo, ContentImageGeo, Tag, LocalizedTag, SearchResult, KBContextChunk, Translation, Language, AccessLevel, Comment, CommentSubscriptionEvent, CommentsConnection, CommentResult, AuthUser, AuthResult, RegisterResult, UpdateProfileResult, ReportSettings, ReportPolicyValue, EmailNotificationFrequency, FeedbackNotificationFrequency, UpdateReportSettingsInput, PaginatedResponse, ReaderConsultationStatus, ReaderConsultationAuthor, ReaderConsultationMessage, ReaderConsultation, ReaderConsultationSummary, ReaderConsultationResult, ConsultationSessionResult, ConsultationLegalMode, ConsultationLegalText, ConsultationChannelConfig, ConsultationPublicConfig, ConsultationLegalInput, CreateMyConsultationInput, ConsultationMessageInput, ReaderConsultationConsent, ConsultationConsentWithdrawalResult, ConsultationOwnerRef, ConsultationConsentInput, ConsultationNewThreadInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationDeliveryKind, ConsultationLeaseInput, ConsultationLeasedDelivery, ConsultationLeaseResult, ConsultationAckInput, ConsultationFailInput, ConsultationOkResult, ConsultationOutboxStats, ConsultationEraseInput, ConsultationEraseResult, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadOwner, ConsultationThreadByNotice, } from './types';
|
|
2
|
-
export { ACCESS_LEVEL_ORDER } from './types';
|
|
3
|
-
export { KbGraphQLError, isKbGraphQLError, CONSULTATION_ERROR_CODES, isConsultationErrorCode, } from './errors';
|
|
4
|
-
export type { KbErrorCode, ConsultationErrorCode, KbGraphQLErrorEntry, RawGraphQLError, } from './errors';
|
|
5
|
-
export type { KbClientConfig, Fetcher, TokenStorage, ImageHtmlRenderer, SanitizeFn, } from './client-types';
|
|
6
|
-
export type { KbClient } from './client';
|
|
7
|
-
export { createKbClient } from './client';
|
|
8
|
-
export type { NavNode, NavNodeType, NavBadge, NavGroupLink, NavNextPrev, FlatNavNode } from './navigation';
|
|
9
|
-
export { navWalk, findNavNode, navBreadcrumbs, navSiblings, navSubtree, navNextPrev, isNavigable, flattenNav, } from './navigation';
|
|
10
|
-
export type { AuthManager } from './auth';
|
|
11
|
-
export { createAuthManager, createMemoryTokenStorage, createLocalStorageTokenStorage, decodeJwtUser, hasAccessLevel, } from './auth';
|
|
12
|
-
export { createDelegatedTokenMinter, DelegatedTokenError, } from './delegated-identity';
|
|
13
|
-
export type { DelegatedTokenMinter, DelegatedTokenMinterConfig, DelegatedMintInput, DelegatedIdentity, } from './delegated-identity';
|
|
14
|
-
export type { KbConsultationsApi, KbConsultationSessionApi } from './consultations';
|
|
15
|
-
export { createConsultationAdapterClient, ConsultationAdapterError, isConsultationAdapterError, } from './consultation-adapter';
|
|
16
|
-
export type { ConsultationAdapterClient, ConsultationAdapterClientConfig, ConsultationAdapterOperation, } from './consultation-adapter';
|
|
17
|
-
export { stripLeadingH1, generateDescription } from './article-seo';
|
|
18
|
-
export { createMarkedInstance, defaultImageHtml, parseMarkdownSafe } from './markdown';
|
|
19
|
-
export type { CreateMarkedOptions } from './markdown';
|
|
20
|
-
export { deepMerge } from './blog-config';
|
|
21
|
-
export { retryWithBackoff } from './retry';
|
|
22
|
-
export { buildThemeCssVars, hexToRgb, hexToHsl, hslToRgb, lightenColor, darkenColor, rgbTriplet, } from './theme';
|
|
23
|
-
export type { ThemeColors } from './theme';
|
|
24
|
-
export { localizedHref, stripLocalePrefix, pageUrl, buildArticleSeo, buildListPageSeo, buildHomeSeo, } from './seo';
|
|
25
|
-
export type { SeoConfig, SeoModel, SeoHreflang, SeoOpenGraph, SeoTwitter, LocalePrefixStrategy, ArticleSeoSource, BuildArticleSeoOptions, BuildListPageSeoOptions, BuildHomeSeoOptions, } from './seo';
|
|
26
|
-
export { toIsoDate, formatArticleDate, resolveArticleAccessLevel, buildArticleListItem, } from './view-model';
|
|
27
|
-
export type { ArticleListItemVM, BuildArticleListItemOptions } from './view-model';
|
|
28
|
-
export { csTranslations, enTranslations, mergeTranslations, createKbI18n, } from './i18n';
|
|
29
|
-
export type { TranslateFn, TranslationMap } from './i18n';
|
|
30
|
-
export * as queries from './queries';
|
|
1
|
+
export type { Article, ArticlePreview, LockedPreviewMode, ArticleWithTranslation, ArticleVersionContent, MediaGeo, ContentImageGeo, Tag, LocalizedTag, SearchResult, KBContextChunk, Translation, Language, AccessLevel, Comment, CommentSubscriptionEvent, CommentsConnection, CommentResult, AuthUser, AuthResult, RegisterResult, UpdateProfileResult, ReportSettings, ReportPolicyValue, EmailNotificationFrequency, FeedbackNotificationFrequency, UpdateReportSettingsInput, PaginatedResponse, ReaderConsultationStatus, ReaderConsultationAuthor, ReaderConsultationMessage, ReaderConsultation, ReaderConsultationSummary, ReaderConsultationResult, ConsultationSessionResult, ConsultationLegalMode, ConsultationLegalText, ConsultationChannelConfig, ConsultationPublicConfig, ConsultationLegalInput, CreateMyConsultationInput, ConsultationMessageInput, ReaderConsultationConsent, ConsultationConsentWithdrawalResult, ConsultationOwnerRef, ConsultationConsentInput, ConsultationNewThreadInput, ConsultationIngestInput, ConsultationIngestResult, ConsultationDeliveryKind, ConsultationLeaseInput, ConsultationLeasedDelivery, ConsultationLeaseResult, ConsultationAckInput, ConsultationFailInput, ConsultationOkResult, ConsultationOutboxStats, ConsultationEraseInput, ConsultationEraseResult, ConsultationOwnerRefsInput, ConsultationOwnerRefsResult, ConsultationThreadOwner, ConsultationThreadByNotice, } from './types.js';
|
|
2
|
+
export { ACCESS_LEVEL_ORDER } from './types.js';
|
|
3
|
+
export { KbGraphQLError, isKbGraphQLError, CONSULTATION_ERROR_CODES, isConsultationErrorCode, } from './errors.js';
|
|
4
|
+
export type { KbErrorCode, ConsultationErrorCode, KbGraphQLErrorEntry, RawGraphQLError, } from './errors.js';
|
|
5
|
+
export type { KbClientConfig, Fetcher, TokenStorage, ImageHtmlRenderer, SanitizeFn, } from './client-types.js';
|
|
6
|
+
export type { KbClient } from './client.js';
|
|
7
|
+
export { createKbClient } from './client.js';
|
|
8
|
+
export type { NavNode, NavNodeType, NavBadge, NavGroupLink, NavNextPrev, FlatNavNode } from './navigation.js';
|
|
9
|
+
export { navWalk, findNavNode, navBreadcrumbs, navSiblings, navSubtree, navNextPrev, isNavigable, flattenNav, } from './navigation.js';
|
|
10
|
+
export type { AuthManager } from './auth.js';
|
|
11
|
+
export { createAuthManager, createMemoryTokenStorage, createLocalStorageTokenStorage, decodeJwtUser, hasAccessLevel, } from './auth.js';
|
|
12
|
+
export { createDelegatedTokenMinter, DelegatedTokenError, } from './delegated-identity.js';
|
|
13
|
+
export type { DelegatedTokenMinter, DelegatedTokenMinterConfig, DelegatedMintInput, DelegatedIdentity, } from './delegated-identity.js';
|
|
14
|
+
export type { KbConsultationsApi, KbConsultationSessionApi } from './consultations.js';
|
|
15
|
+
export { createConsultationAdapterClient, ConsultationAdapterError, isConsultationAdapterError, } from './consultation-adapter.js';
|
|
16
|
+
export type { ConsultationAdapterClient, ConsultationAdapterClientConfig, ConsultationAdapterOperation, } from './consultation-adapter.js';
|
|
17
|
+
export { stripLeadingH1, generateDescription } from './article-seo.js';
|
|
18
|
+
export { createMarkedInstance, defaultImageHtml, parseMarkdownSafe } from './markdown.js';
|
|
19
|
+
export type { CreateMarkedOptions } from './markdown.js';
|
|
20
|
+
export { deepMerge } from './blog-config.js';
|
|
21
|
+
export { retryWithBackoff } from './retry.js';
|
|
22
|
+
export { buildThemeCssVars, hexToRgb, hexToHsl, hslToRgb, lightenColor, darkenColor, rgbTriplet, } from './theme.js';
|
|
23
|
+
export type { ThemeColors } from './theme.js';
|
|
24
|
+
export { localizedHref, stripLocalePrefix, pageUrl, buildArticleSeo, buildListPageSeo, buildHomeSeo, } from './seo.js';
|
|
25
|
+
export type { SeoConfig, SeoModel, SeoHreflang, SeoOpenGraph, SeoTwitter, LocalePrefixStrategy, ArticleSeoSource, BuildArticleSeoOptions, BuildListPageSeoOptions, BuildHomeSeoOptions, } from './seo.js';
|
|
26
|
+
export { toIsoDate, formatArticleDate, resolveArticleAccessLevel, lockedRequiredAccess, buildArticleListItem, } from './view-model.js';
|
|
27
|
+
export type { ArticleListItemVM, BuildArticleListItemOptions } from './view-model.js';
|
|
28
|
+
export { csTranslations, enTranslations, mergeTranslations, createKbI18n, } from './i18n.js';
|
|
29
|
+
export type { TranslateFn, TranslationMap } from './i18n.js';
|
|
30
|
+
export * as queries from './queries.js';
|
|
31
31
|
export { prepareProps } from '@blogmcp/mdx-schema/prepareProps';
|
|
32
32
|
export { getComponentMetadata, getComponentNames, componentMetadata, } from '@blogmcp/mdx-schema/metadata';
|
|
33
33
|
export type { ComponentMetadata, PropMetadata } from '@blogmcp/mdx-schema/metadata';
|
|
34
|
-
export * from './review';
|
|
34
|
+
export * from './review/index.js';
|
package/dist/core/index.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import { ACCESS_LEVEL_ORDER as t } from "./types.js";
|
|
2
2
|
import { CONSULTATION_ERROR_CODES as n, KbGraphQLError as i, isConsultationErrorCode as s, isKbGraphQLError as l } from "./errors.js";
|
|
3
3
|
import { createKbClient as m } from "./client.js";
|
|
4
|
-
import { findNavNode as d, flattenNav as c, isNavigable as x, navBreadcrumbs as g, navNextPrev as E, navSiblings as T, navSubtree as u, navWalk as
|
|
5
|
-
import { createAuthManager as C, createLocalStorageTokenStorage as
|
|
6
|
-
import { DelegatedTokenError as
|
|
4
|
+
import { findNavNode as d, flattenNav as c, isNavigable as x, navBreadcrumbs as g, navNextPrev as E, navSiblings as T, navSubtree as u, navWalk as A } from "./navigation.js";
|
|
5
|
+
import { createAuthManager as C, createLocalStorageTokenStorage as R, createMemoryTokenStorage as v, decodeJwtUser as S, hasAccessLevel as L } from "./auth.js";
|
|
6
|
+
import { DelegatedTokenError as h, createDelegatedTokenMinter as N } from "./delegated-identity.js";
|
|
7
7
|
import { ConsultationAdapterError as M, createConsultationAdapterClient as _, isConsultationAdapterError as D } from "./consultation-adapter.js";
|
|
8
8
|
import { generateDescription as H, stripLeadingH1 as O } from "./article-seo.js";
|
|
9
9
|
import { createMarkedInstance as K, defaultImageHtml as U, parseMarkdownSafe as V } from "./markdown.js";
|
|
10
10
|
import { deepMerge as G } from "./blog-config.js";
|
|
11
|
-
import { retryWithBackoff as
|
|
12
|
-
import { buildThemeCssVars as
|
|
11
|
+
import { retryWithBackoff as y } from "./retry.js";
|
|
12
|
+
import { buildThemeCssVars as F, darkenColor as Q, hexToHsl as z, hexToRgb as J, hslToRgb as j, lightenColor as X, rgbTriplet as Y } from "./theme.js";
|
|
13
13
|
import { buildArticleSeo as $, buildHomeSeo as ee, buildListPageSeo as re, localizedHref as oe, pageUrl as te, stripLocalePrefix as ae } from "./seo.js";
|
|
14
|
-
import { buildArticleListItem as ie, formatArticleDate as se,
|
|
15
|
-
import { createKbI18n as
|
|
14
|
+
import { buildArticleListItem as ie, formatArticleDate as se, lockedRequiredAccess as le, resolveArticleAccessLevel as pe, toIsoDate as me } from "./view-model.js";
|
|
15
|
+
import { createKbI18n as de, mergeTranslations as ce } from "./i18n.js";
|
|
16
16
|
import * as e from "./queries.js";
|
|
17
|
-
import { prepareProps as
|
|
18
|
-
import { componentMetadata as
|
|
19
|
-
import { REVIEW_PAGE_PATH as
|
|
20
|
-
import { formatReviewForAgent as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
17
|
+
import { prepareProps as ge } from "@blogmcp/mdx-schema/prepareProps";
|
|
18
|
+
import { componentMetadata as Te, getComponentMetadata as ue, getComponentNames as Ae } from "@blogmcp/mdx-schema/metadata";
|
|
19
|
+
import { REVIEW_PAGE_PATH as Ce, REVIEW_ROUTE_PATTERN as Re, isReviewTokenFormat as ve } from "./review/types.js";
|
|
20
|
+
import { formatReviewForAgent as Le, formatReviewRound as ke } from "./review/format.js";
|
|
21
|
+
import { default as Ne } from "./translations/cs.json.js";
|
|
22
|
+
import { default as Me } from "./translations/en.json.js";
|
|
23
23
|
export {
|
|
24
24
|
t as ACCESS_LEVEL_ORDER,
|
|
25
25
|
n as CONSULTATION_ERROR_CODES,
|
|
26
26
|
M as ConsultationAdapterError,
|
|
27
|
-
|
|
27
|
+
h as DelegatedTokenError,
|
|
28
28
|
i as KbGraphQLError,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Ce as REVIEW_PAGE_PATH,
|
|
30
|
+
Re as REVIEW_ROUTE_PATTERN,
|
|
31
31
|
ie as buildArticleListItem,
|
|
32
32
|
$ as buildArticleSeo,
|
|
33
33
|
ee as buildHomeSeo,
|
|
34
34
|
re as buildListPageSeo,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
F as buildThemeCssVars,
|
|
36
|
+
Te as componentMetadata,
|
|
37
37
|
C as createAuthManager,
|
|
38
38
|
_ as createConsultationAdapterClient,
|
|
39
39
|
N as createDelegatedTokenMinter,
|
|
40
40
|
m as createKbClient,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
de as createKbI18n,
|
|
42
|
+
R as createLocalStorageTokenStorage,
|
|
43
43
|
K as createMarkedInstance,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
v as createMemoryTokenStorage,
|
|
45
|
+
Ne as csTranslations,
|
|
46
|
+
Q as darkenColor,
|
|
47
47
|
S as decodeJwtUser,
|
|
48
48
|
G as deepMerge,
|
|
49
49
|
U as defaultImageHtml,
|
|
50
|
-
|
|
50
|
+
Me as enTranslations,
|
|
51
51
|
d as findNavNode,
|
|
52
52
|
c as flattenNav,
|
|
53
53
|
se as formatArticleDate,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
Le as formatReviewForAgent,
|
|
55
|
+
ke as formatReviewRound,
|
|
56
56
|
H as generateDescription,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
ue as getComponentMetadata,
|
|
58
|
+
Ae as getComponentNames,
|
|
59
59
|
L as hasAccessLevel,
|
|
60
60
|
z as hexToHsl,
|
|
61
61
|
J as hexToRgb,
|
|
@@ -67,20 +67,21 @@ export {
|
|
|
67
67
|
ve as isReviewTokenFormat,
|
|
68
68
|
X as lightenColor,
|
|
69
69
|
oe as localizedHref,
|
|
70
|
-
|
|
70
|
+
le as lockedRequiredAccess,
|
|
71
|
+
ce as mergeTranslations,
|
|
71
72
|
g as navBreadcrumbs,
|
|
72
73
|
E as navNextPrev,
|
|
73
74
|
T as navSiblings,
|
|
74
75
|
u as navSubtree,
|
|
75
|
-
|
|
76
|
+
A as navWalk,
|
|
76
77
|
te as pageUrl,
|
|
77
78
|
V as parseMarkdownSafe,
|
|
78
|
-
|
|
79
|
+
ge as prepareProps,
|
|
79
80
|
e as queries,
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
pe as resolveArticleAccessLevel,
|
|
82
|
+
y as retryWithBackoff,
|
|
82
83
|
Y as rgbTriplet,
|
|
83
84
|
O as stripLeadingH1,
|
|
84
85
|
ae as stripLocalePrefix,
|
|
85
|
-
|
|
86
|
+
me as toIsoDate
|
|
86
87
|
};
|
package/dist/core/markdown.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* competitor-monitor/docs/internal/sanitization-trust-contract.md
|
|
14
14
|
*/
|
|
15
15
|
import { Marked } from 'marked';
|
|
16
|
-
import type { ImageHtmlRenderer, SanitizeFn } from './client-types';
|
|
16
|
+
import type { ImageHtmlRenderer, SanitizeFn } from './client-types.js';
|
|
17
17
|
/** Default image renderer — plain <img> with lazy loading + safe URL */
|
|
18
18
|
export declare function defaultImageHtml(href: string, alt: string, title?: string | null): string;
|
|
19
19
|
export interface CreateMarkedOptions {
|
package/dist/core/queries.d.ts
CHANGED
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
* anyway — we skip the parse step entirely.
|
|
7
7
|
*/
|
|
8
8
|
export declare const ACCESSIBLE_ARTICLES = "\n query AccessibleArticles($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int) {\n accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset) {\n articles {\n id\n filename\n title\n description\n contentType\n status\n publishedAt\n updatedAt\n tags\n featuredImageUrl\n }\n totalCount\n }\n }\n";
|
|
9
|
+
export declare const ACCESSIBLE_ARTICLES_WITH_LOCKED = "\n query AccessibleArticlesWithLocked($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int) {\n accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset, includeLocked: true) {\n articles {\n id\n filename\n title\n description\n contentType\n status\n publishedAt\n updatedAt\n tags\n featuredImageUrl\n access\n locked\n }\n totalCount\n }\n }\n";
|
|
9
10
|
export declare const ARTICLE_WITH_TRANSLATION = "\n query ArticleWithTranslation($filename: String!, $languageCode: String!) {\n articleWithTranslation(filename: $filename, languageCode: $languageCode) {\n id\n filename\n contentType\n status\n description\n sourceLanguageCode\n createdAt\n updatedAt\n publishedAt\n title\n content\n languageCode\n isSource\n isFallback\n featuredImageUrl\n featuredImageGeo {\n latitude\n longitude\n altitude\n placeName\n }\n contentImagesGeo {\n url\n slug\n latitude\n longitude\n altitude\n placeName\n capturedAt\n thumbnailUrl\n altText\n width\n height\n }\n accessRights\n}\n }\n";
|
|
10
11
|
export declare const ARTICLE_WITH_TRANSLATION_BY_ID = "\n query ArticleWithTranslationById($id: ID!, $languageCode: String!) {\n articleWithTranslationById(id: $id, languageCode: $languageCode) {\n id\n filename\n contentType\n status\n description\n sourceLanguageCode\n createdAt\n updatedAt\n publishedAt\n title\n content\n languageCode\n isSource\n isFallback\n featuredImageUrl\n featuredImageGeo {\n latitude\n longitude\n altitude\n placeName\n }\n contentImagesGeo {\n url\n slug\n latitude\n longitude\n altitude\n placeName\n capturedAt\n thumbnailUrl\n altText\n width\n height\n }\n accessRights\n}\n }\n";
|
|
12
|
+
export declare const ARTICLE_PREVIEW = "\n query ArticlePreview($filename: String!, $languageCode: String!) {\n articlePreview(filename: $filename, languageCode: $languageCode) {\n id\n filename\n title\n description\n languageCode\n isFallback\n publishedAt\n featuredImageUrl\n requiredAccess\n mode\n excerpt\n}\n }\n";
|
|
13
|
+
export declare const ARTICLE_PREVIEW_BY_ID = "\n query ArticlePreviewById($id: ID!, $languageCode: String!) {\n articlePreviewById(id: $id, languageCode: $languageCode) {\n id\n filename\n title\n description\n languageCode\n isFallback\n publishedAt\n featuredImageUrl\n requiredAccess\n mode\n excerpt\n}\n }\n";
|
|
11
14
|
export declare const ARTICLE_ALIAS_TARGET = "\n query ArticleAliasTarget($filename: String!) {\n articleAliasTarget(filename: $filename)\n }\n";
|
|
12
15
|
export declare const ARTICLE_VERSION = "\n query ArticleVersion($versionId: ID!, $previewKey: String) {\n articleVersion(versionId: $versionId, previewKey: $previewKey) {\n versionId\n articleId\n filename\n versionNumber\n title\n content\n languageCode\n schemaVersion\n createdAt\n }\n }\n";
|
|
13
16
|
export declare const SEARCH_KNOWLEDGE_BASE = "\n query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {\n searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {\n articleId\n filename\n title\n chunkText\n similarity\n }\n }\n";
|
|
@@ -34,7 +37,7 @@ export declare const CHANGE_PASSWORD = "\n mutation ChangePassword($currentPass
|
|
|
34
37
|
export declare const UPDATE_MY_PROFILE = "\n mutation UpdateMyProfile($name: String, $email: String) {\n updateMyProfile(name: $name, email: $email) {\n success\n emailChanged\n user {\n id\n email\n name\n accessLevel\n }\n error\n }\n }\n";
|
|
35
38
|
export declare const MY_REPORT_SETTINGS = "\n query MyReportSettings {\n myReportSettings {\n autoReportErrors\n autoReportContent\n autoReportPerformance\n includeContextData\n rateLimitPerHour\n emailNotifications\n feedbackNotifications\n }\n }\n";
|
|
36
39
|
export declare const UPDATE_MY_REPORT_SETTINGS = "\n mutation UpdateMyReportSettings(\n $autoReportErrors: String\n $autoReportContent: String\n $autoReportPerformance: String\n $includeContextData: Boolean\n $rateLimitPerHour: Int\n $emailNotifications: String\n $feedbackNotifications: String\n ) {\n updateMyReportSettings(\n autoReportErrors: $autoReportErrors\n autoReportContent: $autoReportContent\n autoReportPerformance: $autoReportPerformance\n includeContextData: $includeContextData\n rateLimitPerHour: $rateLimitPerHour\n emailNotifications: $emailNotifications\n feedbackNotifications: $feedbackNotifications\n ) {\n autoReportErrors\n autoReportContent\n autoReportPerformance\n includeContextData\n rateLimitPerHour\n emailNotifications\n feedbackNotifications\n }\n }\n";
|
|
37
|
-
export declare const CONSULTATION_PUBLIC_CONFIG = "\n query ConsultationPublicConfig($locale: String!) {\n consultationPublicConfig(locale: $locale) {\n enabled\n channels {\n channel\n mode\n text {\n purpose\n version\n locale\n body\n }\n }\n }\n }\n";
|
|
40
|
+
export declare const CONSULTATION_PUBLIC_CONFIG = "\n query ConsultationPublicConfig($locale: String!) {\n consultationPublicConfig(locale: $locale) {\n enabled\n readerSiteUrl\n emailNotices\n channels {\n channel\n mode\n text {\n purpose\n version\n locale\n body\n }\n }\n }\n }\n";
|
|
38
41
|
export declare const MY_CONSULTATIONS = "\n query MyConsultations($limit: Int, $offset: Int) {\n myConsultations(limit: $limit, offset: $offset) {\n id\n status\n createdAt\n lastActivityAt\n messageCount\n }\n }\n";
|
|
39
42
|
export declare const MY_CONSULTATION = "\n query MyConsultation($id: ID!) {\n myConsultation(id: $id) {\n id\n status\n canReply\n canAttachToAccount\n createdAt\n lastActivityAt\n messages {\n id\n author\n authorName\n body\n createdAt\n }\n}\n }\n";
|
|
40
43
|
export declare const CREATE_MY_CONSULTATION = "\n mutation CreateMyConsultation($input: CreateMyConsultationInput!) {\n createMyConsultation(input: $input) {\n success\n code\n error\n duplicate\n consultation {\n id\n status\n canReply\n canAttachToAccount\n createdAt\n lastActivityAt\n messages {\n id\n author\n authorName\n body\n createdAt\n }\n}\n}\n }\n";
|