@blogmcp/sdk 0.8.1 → 0.9.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/community/channels.d.ts +12 -0
- package/dist/community/channels.js +7 -0
- package/dist/community/client.d.ts +211 -0
- package/dist/community/client.js +188 -0
- package/dist/community/index.d.ts +34 -0
- package/dist/community/index.js +93 -0
- package/dist/community/links.d.ts +73 -0
- package/dist/community/links.js +85 -0
- package/dist/community/messages.cs.d.ts +331 -0
- package/dist/community/messages.cs.js +342 -0
- package/dist/community/messages.d.ts +40 -0
- package/dist/community/messages.en.d.ts +315 -0
- package/dist/community/messages.en.js +313 -0
- package/dist/community/messages.js +66 -0
- package/dist/community/outcome.d.ts +96 -0
- package/dist/community/outcome.js +211 -0
- package/dist/community/poll.d.ts +35 -0
- package/dist/community/poll.js +70 -0
- package/dist/community/routes.d.ts +110 -0
- package/dist/community/routes.js +66 -0
- package/dist/community/server/bff.d.ts +123 -0
- package/dist/community/server/bff.js +214 -0
- package/dist/community/server/env.d.ts +20 -0
- package/dist/community/server/env.js +16 -0
- package/dist/community/server/host-routes.d.ts +15 -0
- package/dist/community/server/host-routes.js +35 -0
- package/dist/community/server/http.d.ts +64 -0
- package/dist/community/server/http.js +90 -0
- package/dist/community/server/index.d.ts +45 -0
- package/dist/community/server/index.js +19 -0
- package/dist/community/server/route-decision.d.ts +70 -0
- package/dist/community/server/route-decision.js +89 -0
- package/dist/community/server/unknown-path.d.ts +21 -0
- package/dist/community/server/unknown-path.js +11 -0
- package/dist/community/shapes.d.ts +472 -0
- package/dist/community/shapes.js +63 -0
- package/dist/community/store.d.ts +183 -0
- package/dist/community/store.js +423 -0
- package/dist/community/transport.d.ts +42 -0
- package/dist/community/transport.js +59 -0
- package/dist/core/client.d.ts +17 -0
- package/dist/core/client.js +58 -55
- package/dist/core/comments-legacy.d.ts +19 -0
- package/dist/core/comments-legacy.js +18 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +107 -101
- package/dist/core/queries.d.ts +46 -0
- package/dist/core/queries.js +128 -84
- package/dist/core/seo.js +40 -39
- package/dist/core/translations/cs.json.js +6 -6
- package/dist/core/translations/en.json.js +1 -1
- package/dist/core/types.d.ts +23 -1
- package/dist/core/view-model.d.ts +7 -0
- package/dist/core/view-model.js +29 -25
- package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
- package/dist/react/KbMdxContent.js +4 -3
- package/dist/vue/components/KbMdxContent.vue2.js +3 -2
- package/dist/vue/composables/useKbComments.d.ts +8 -0
- package/package.json +13 -4
- package/src/community/channels.ts +12 -0
- package/src/community/client.ts +437 -0
- package/src/community/index.ts +192 -0
- package/src/community/links.ts +174 -0
- package/src/community/messages.cs.ts +371 -0
- package/src/community/messages.en.ts +341 -0
- package/src/community/messages.ts +112 -0
- package/src/community/outcome.ts +317 -0
- package/src/community/poll.ts +154 -0
- package/src/community/routes.ts +139 -0
- package/src/community/server/bff.ts +530 -0
- package/src/community/server/env.ts +42 -0
- package/src/community/server/host-routes.ts +48 -0
- package/src/community/server/http.ts +175 -0
- package/src/community/server/index.ts +55 -0
- package/src/community/server/route-decision.ts +226 -0
- package/src/community/server/unknown-path.ts +32 -0
- package/src/community/shapes.ts +541 -0
- package/src/community/store.ts +786 -0
- package/src/community/transport.ts +111 -0
- package/src/core/client.ts +24 -1
- package/src/core/comments-legacy.ts +39 -0
- package/src/core/index.ts +8 -0
- package/src/core/queries.ts +93 -0
- package/src/core/seo.ts +5 -1
- package/src/core/translations/cs.json +3 -1
- package/src/core/translations/en.json +3 -1
- package/src/core/types.ts +19 -1
- package/src/core/view-model.ts +12 -1
- package/src/vue/composables/useKbComments.ts +8 -0
package/dist/core/queries.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
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
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";
|
|
10
|
+
export declare const ACCESSIBLE_ARTICLES_LOCALIZED = "\n query AccessibleArticlesLocalized($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int, $languageCode: String, $includeUntranslated: Boolean) {\n accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset, languageCode: $languageCode, includeUntranslated: $includeUntranslated) {\n articles {\n id\n filename\n title\n description\n contentType\n status\n publishedAt\n updatedAt\n tags\n featuredImageUrl\n languageCode\n isFallback\n }\n totalCount\n }\n }\n";
|
|
11
|
+
export declare const ACCESSIBLE_ARTICLES_WITH_LOCKED_LOCALIZED = "\n query AccessibleArticlesWithLockedLocalized($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int, $languageCode: String, $includeUntranslated: Boolean) {\n accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset, includeLocked: true, languageCode: $languageCode, includeUntranslated: $includeUntranslated) {\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 languageCode\n isFallback\n }\n totalCount\n }\n }\n";
|
|
10
12
|
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";
|
|
11
13
|
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
14
|
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";
|
|
@@ -21,11 +23,55 @@ export declare const LOCALIZED_TAGS = "\n query LocalizedTags($languageCode: St
|
|
|
21
23
|
export declare const KB_LANGUAGES = "\n query KBLanguages {\n kbLanguages {\n id\n code\n name\n nativeName\n isSource\n isEnabled\n sortOrder\n }\n }\n";
|
|
22
24
|
export declare const ARTICLE_TRANSLATIONS = "\n query ArticleTranslations($articleId: ID!) {\n listArticleTranslations(articleId: $articleId) {\n id\n languageCode\n title\n syncStatus\n reviewed\n updatedAt\n }\n }\n";
|
|
23
25
|
export declare const GET_TRANSLATION = "\n query GetTranslation($sourceFilename: String!, $languageCode: String!) {\n getTranslation(sourceFilename: $sourceFilename, languageCode: $languageCode) {\n id\n articleId\n languageCode\n title\n content\n syncStatus\n reviewed\n translatedBy\n updatedAt\n }\n }\n";
|
|
26
|
+
/**
|
|
27
|
+
* The legacy comment API: an article's comment tree.
|
|
28
|
+
*
|
|
29
|
+
* @deprecated Since 0.9.0, removed in 1.0: Comments 2.0 replaces it — `@blogmcp/sdk/community`
|
|
30
|
+
* (`createCommunityClient`) and the `<blogmcp-discussion>` element of `@blogmcp/community`.
|
|
31
|
+
*/
|
|
24
32
|
export declare const ARTICLE_COMMENTS = "\n query ArticleComments($articleId: ID!, $languageCode: String!) {\n articleComments(articleId: $articleId, languageCode: $languageCode) {\n comments {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n }\n totalCount\n }\n }\n";
|
|
33
|
+
/**
|
|
34
|
+
* The legacy comment API: one comment with its replies.
|
|
35
|
+
*
|
|
36
|
+
* @deprecated Since 0.9.0, removed in 1.0: Comments 2.0 replaces it — `@blogmcp/sdk/community`
|
|
37
|
+
* (`createCommunityClient`) and the `<blogmcp-discussion>` element of `@blogmcp/community`.
|
|
38
|
+
*/
|
|
25
39
|
export declare const GET_COMMENT = "\n query GetComment($commentId: ID!, $languageCode: String!) {\n comment(commentId: $commentId, languageCode: $languageCode) {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n";
|
|
40
|
+
/**
|
|
41
|
+
* The legacy comment API: a new comment.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated Since 0.9.0, removed in 1.0: Comments 2.0 replaces it — `@blogmcp/sdk/community`
|
|
44
|
+
* (`createCommunityClient`) and the `<blogmcp-discussion>` element of `@blogmcp/community`.
|
|
45
|
+
* During a tenant's cutover it answers `CommentResult { success: false, error: 'COMMENTS_FROZEN' }`,
|
|
46
|
+
* and from the cutover's `move` on `'COMMENTS_MOVED'` (`commentErrorCode`).
|
|
47
|
+
*/
|
|
26
48
|
export declare const CREATE_COMMENT = "\n mutation CreateComment($articleId: ID!, $content: String!, $sourceLanguageCode: String!, $parentCommentId: ID) {\n createComment(articleId: $articleId, content: $content, sourceLanguageCode: $sourceLanguageCode, parentCommentId: $parentCommentId) {\n success\n error\n comment {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n";
|
|
49
|
+
/**
|
|
50
|
+
* The legacy comment API: a comment's edit.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated Since 0.9.0, removed in 1.0: Comments 2.0 replaces it — `@blogmcp/sdk/community`
|
|
53
|
+
* (`createCommunityClient`) and the `<blogmcp-discussion>` element of `@blogmcp/community`.
|
|
54
|
+
* During a tenant's cutover it answers `CommentResult { success: false, error: 'COMMENTS_FROZEN' }`,
|
|
55
|
+
* and from the cutover's `move` on `'COMMENTS_MOVED'` (`commentErrorCode`).
|
|
56
|
+
*/
|
|
27
57
|
export declare const UPDATE_COMMENT = "\n mutation UpdateComment($commentId: ID!, $content: String!) {\n updateComment(commentId: $commentId, content: $content) {\n success\n error\n comment {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n";
|
|
58
|
+
/**
|
|
59
|
+
* The legacy comment API: a comment's deletion.
|
|
60
|
+
*
|
|
61
|
+
* @deprecated Since 0.9.0, removed in 1.0: Comments 2.0 replaces it — `@blogmcp/sdk/community`
|
|
62
|
+
* (`createCommunityClient`) and the `<blogmcp-discussion>` element of `@blogmcp/community`.
|
|
63
|
+
* During a tenant's cutover it answers `CommentResult { success: false, error: 'COMMENTS_FROZEN' }`,
|
|
64
|
+
* and from the cutover's `move` on `'COMMENTS_MOVED'` (`commentErrorCode`).
|
|
65
|
+
*/
|
|
28
66
|
export declare const DELETE_COMMENT = "\n mutation DeleteComment($commentId: ID!) {\n deleteComment(commentId: $commentId) {\n success\n error\n }\n }\n";
|
|
67
|
+
/**
|
|
68
|
+
* The legacy comment API: an article's comment events.
|
|
69
|
+
*
|
|
70
|
+
* @deprecated Since 0.9.0, removed in 1.0: Comments 2.0 replaces it — `@blogmcp/sdk/community`
|
|
71
|
+
* (`createCommunityClient`, its poller) and the `<blogmcp-discussion>` element of `@blogmcp/community`.
|
|
72
|
+
* From a tenant's cutover `move` on, the subscription ends with a `KbGraphQLError` of code `COMMENTS_MOVED`
|
|
73
|
+
* (`commentErrorCode`).
|
|
74
|
+
*/
|
|
29
75
|
export declare const COMMENT_UPDATES_SUBSCRIPTION = "\n subscription CommentUpdates($articleId: ID!) {\n commentUpdates(articleId: $articleId) {\n type\n commentId\n }\n }\n";
|
|
30
76
|
export declare const LOGIN = "\n mutation Login($email: String!, $password: String!) {\n login(email: $email, password: $password) {\n success\n token\n user {\n id\n email\n name\n accessLevel\n }\n error\n }\n }\n";
|
|
31
77
|
export declare const REGISTER = "\n mutation Register($email: String!, $password: String!, $name: String) {\n register(email: $email, password: $password, name: $name) {\n success\n message\n error\n }\n }\n";
|
package/dist/core/queries.js
CHANGED
|
@@ -36,6 +36,48 @@ const s = `
|
|
|
36
36
|
totalCount
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
`, r = `
|
|
40
|
+
query AccessibleArticlesLocalized($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int, $languageCode: String, $includeUntranslated: Boolean) {
|
|
41
|
+
accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset, languageCode: $languageCode, includeUntranslated: $includeUntranslated) {
|
|
42
|
+
articles {
|
|
43
|
+
id
|
|
44
|
+
filename
|
|
45
|
+
title
|
|
46
|
+
description
|
|
47
|
+
contentType
|
|
48
|
+
status
|
|
49
|
+
publishedAt
|
|
50
|
+
updatedAt
|
|
51
|
+
tags
|
|
52
|
+
featuredImageUrl
|
|
53
|
+
languageCode
|
|
54
|
+
isFallback
|
|
55
|
+
}
|
|
56
|
+
totalCount
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`, l = `
|
|
60
|
+
query AccessibleArticlesWithLockedLocalized($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int, $languageCode: String, $includeUntranslated: Boolean) {
|
|
61
|
+
accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset, includeLocked: true, languageCode: $languageCode, includeUntranslated: $includeUntranslated) {
|
|
62
|
+
articles {
|
|
63
|
+
id
|
|
64
|
+
filename
|
|
65
|
+
title
|
|
66
|
+
description
|
|
67
|
+
contentType
|
|
68
|
+
status
|
|
69
|
+
publishedAt
|
|
70
|
+
updatedAt
|
|
71
|
+
tags
|
|
72
|
+
featuredImageUrl
|
|
73
|
+
access
|
|
74
|
+
locked
|
|
75
|
+
languageCode
|
|
76
|
+
isFallback
|
|
77
|
+
}
|
|
78
|
+
totalCount
|
|
79
|
+
}
|
|
80
|
+
}
|
|
39
81
|
`, o = `
|
|
40
82
|
id
|
|
41
83
|
filename
|
|
@@ -72,11 +114,11 @@ const s = `
|
|
|
72
114
|
height
|
|
73
115
|
}
|
|
74
116
|
accessRights
|
|
75
|
-
`,
|
|
117
|
+
`, c = `
|
|
76
118
|
query ArticleWithTranslation($filename: String!, $languageCode: String!) {
|
|
77
119
|
articleWithTranslation(filename: $filename, languageCode: $languageCode) {${o}}
|
|
78
120
|
}
|
|
79
|
-
`,
|
|
121
|
+
`, u = `
|
|
80
122
|
query ArticleWithTranslationById($id: ID!, $languageCode: String!) {
|
|
81
123
|
articleWithTranslationById(id: $id, languageCode: $languageCode) {${o}}
|
|
82
124
|
}
|
|
@@ -92,19 +134,19 @@ const s = `
|
|
|
92
134
|
requiredAccess
|
|
93
135
|
mode
|
|
94
136
|
excerpt
|
|
95
|
-
`,
|
|
137
|
+
`, d = `
|
|
96
138
|
query ArticlePreview($filename: String!, $languageCode: String!) {
|
|
97
139
|
articlePreview(filename: $filename, languageCode: $languageCode) {${a}}
|
|
98
140
|
}
|
|
99
|
-
`,
|
|
141
|
+
`, g = `
|
|
100
142
|
query ArticlePreviewById($id: ID!, $languageCode: String!) {
|
|
101
143
|
articlePreviewById(id: $id, languageCode: $languageCode) {${a}}
|
|
102
144
|
}
|
|
103
|
-
`,
|
|
145
|
+
`, $ = `
|
|
104
146
|
query ArticleAliasTarget($filename: String!) {
|
|
105
147
|
articleAliasTarget(filename: $filename)
|
|
106
148
|
}
|
|
107
|
-
`,
|
|
149
|
+
`, m = `
|
|
108
150
|
query ArticleVersion($versionId: ID!, $previewKey: String) {
|
|
109
151
|
articleVersion(versionId: $versionId, previewKey: $previewKey) {
|
|
110
152
|
versionId
|
|
@@ -118,7 +160,7 @@ const s = `
|
|
|
118
160
|
createdAt
|
|
119
161
|
}
|
|
120
162
|
}
|
|
121
|
-
`,
|
|
163
|
+
`, C = `
|
|
122
164
|
query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {
|
|
123
165
|
searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {
|
|
124
166
|
articleId
|
|
@@ -128,7 +170,7 @@ const s = `
|
|
|
128
170
|
similarity
|
|
129
171
|
}
|
|
130
172
|
}
|
|
131
|
-
`,
|
|
173
|
+
`, S = `
|
|
132
174
|
query GetKBContext($query: String!, $maxChunks: Int) {
|
|
133
175
|
getKBContext(query: $query, maxChunks: $maxChunks) {
|
|
134
176
|
chunks {
|
|
@@ -140,11 +182,11 @@ const s = `
|
|
|
140
182
|
totalChunks
|
|
141
183
|
}
|
|
142
184
|
}
|
|
143
|
-
`,
|
|
185
|
+
`, I = `
|
|
144
186
|
query KbNavigation($scope: String, $locale: String) {
|
|
145
187
|
kbNavigation(scope: $scope, locale: $locale)
|
|
146
188
|
}
|
|
147
|
-
`,
|
|
189
|
+
`, T = `
|
|
148
190
|
query AccessibleTags {
|
|
149
191
|
accessibleKbTags {
|
|
150
192
|
tags {
|
|
@@ -157,7 +199,7 @@ const s = `
|
|
|
157
199
|
totalCount
|
|
158
200
|
}
|
|
159
201
|
}
|
|
160
|
-
`,
|
|
202
|
+
`, A = `
|
|
161
203
|
query LocalizedTags($languageCode: String!) {
|
|
162
204
|
localizedTags(languageCode: $languageCode) {
|
|
163
205
|
id
|
|
@@ -170,7 +212,7 @@ const s = `
|
|
|
170
212
|
isFallback
|
|
171
213
|
}
|
|
172
214
|
}
|
|
173
|
-
`,
|
|
215
|
+
`, E = `
|
|
174
216
|
query KBLanguages {
|
|
175
217
|
kbLanguages {
|
|
176
218
|
id
|
|
@@ -182,7 +224,7 @@ const s = `
|
|
|
182
224
|
sortOrder
|
|
183
225
|
}
|
|
184
226
|
}
|
|
185
|
-
`,
|
|
227
|
+
`, p = `
|
|
186
228
|
query ArticleTranslations($articleId: ID!) {
|
|
187
229
|
listArticleTranslations(articleId: $articleId) {
|
|
188
230
|
id
|
|
@@ -193,7 +235,7 @@ const s = `
|
|
|
193
235
|
updatedAt
|
|
194
236
|
}
|
|
195
237
|
}
|
|
196
|
-
`,
|
|
238
|
+
`, y = `
|
|
197
239
|
query GetTranslation($sourceFilename: String!, $languageCode: String!) {
|
|
198
240
|
getTranslation(sourceFilename: $sourceFilename, languageCode: $languageCode) {
|
|
199
241
|
id
|
|
@@ -221,7 +263,7 @@ const s = `
|
|
|
221
263
|
isTranslated
|
|
222
264
|
isEdited
|
|
223
265
|
createdAt
|
|
224
|
-
`,
|
|
266
|
+
`, _ = `
|
|
225
267
|
query ArticleComments($articleId: ID!, $languageCode: String!) {
|
|
226
268
|
articleComments(articleId: $articleId, languageCode: $languageCode) {
|
|
227
269
|
comments {
|
|
@@ -248,7 +290,7 @@ const s = `
|
|
|
248
290
|
}
|
|
249
291
|
}
|
|
250
292
|
}
|
|
251
|
-
`,
|
|
293
|
+
`, L = `
|
|
252
294
|
mutation CreateComment($articleId: ID!, $content: String!, $sourceLanguageCode: String!, $parentCommentId: ID) {
|
|
253
295
|
createComment(articleId: $articleId, content: $content, sourceLanguageCode: $sourceLanguageCode, parentCommentId: $parentCommentId) {
|
|
254
296
|
success
|
|
@@ -258,7 +300,7 @@ const s = `
|
|
|
258
300
|
}
|
|
259
301
|
}
|
|
260
302
|
}
|
|
261
|
-
`,
|
|
303
|
+
`, R = `
|
|
262
304
|
mutation UpdateComment($commentId: ID!, $content: String!) {
|
|
263
305
|
updateComment(commentId: $commentId, content: $content) {
|
|
264
306
|
success
|
|
@@ -268,21 +310,21 @@ const s = `
|
|
|
268
310
|
}
|
|
269
311
|
}
|
|
270
312
|
}
|
|
271
|
-
`,
|
|
313
|
+
`, f = `
|
|
272
314
|
mutation DeleteComment($commentId: ID!) {
|
|
273
315
|
deleteComment(commentId: $commentId) {
|
|
274
316
|
success
|
|
275
317
|
error
|
|
276
318
|
}
|
|
277
319
|
}
|
|
278
|
-
`,
|
|
320
|
+
`, O = `
|
|
279
321
|
subscription CommentUpdates($articleId: ID!) {
|
|
280
322
|
commentUpdates(articleId: $articleId) {
|
|
281
323
|
type
|
|
282
324
|
commentId
|
|
283
325
|
}
|
|
284
326
|
}
|
|
285
|
-
`,
|
|
327
|
+
`, M = `
|
|
286
328
|
mutation Login($email: String!, $password: String!) {
|
|
287
329
|
login(email: $email, password: $password) {
|
|
288
330
|
success
|
|
@@ -296,7 +338,7 @@ const s = `
|
|
|
296
338
|
error
|
|
297
339
|
}
|
|
298
340
|
}
|
|
299
|
-
`,
|
|
341
|
+
`, b = `
|
|
300
342
|
mutation Register($email: String!, $password: String!, $name: String) {
|
|
301
343
|
register(email: $email, password: $password, name: $name) {
|
|
302
344
|
success
|
|
@@ -304,14 +346,14 @@ const s = `
|
|
|
304
346
|
error
|
|
305
347
|
}
|
|
306
348
|
}
|
|
307
|
-
`,
|
|
349
|
+
`, P = `
|
|
308
350
|
mutation VerifyEmail($token: String!) {
|
|
309
351
|
verifyEmail(token: $token) {
|
|
310
352
|
success
|
|
311
353
|
error
|
|
312
354
|
}
|
|
313
355
|
}
|
|
314
|
-
`,
|
|
356
|
+
`, U = `
|
|
315
357
|
mutation ForgotPassword($email: String!) {
|
|
316
358
|
forgotPassword(email: $email) {
|
|
317
359
|
success
|
|
@@ -319,14 +361,14 @@ const s = `
|
|
|
319
361
|
error
|
|
320
362
|
}
|
|
321
363
|
}
|
|
322
|
-
`,
|
|
364
|
+
`, h = `
|
|
323
365
|
mutation ResetPassword($token: String!, $password: String!) {
|
|
324
366
|
resetPassword(token: $token, password: $password) {
|
|
325
367
|
success
|
|
326
368
|
error
|
|
327
369
|
}
|
|
328
370
|
}
|
|
329
|
-
`,
|
|
371
|
+
`, q = `
|
|
330
372
|
mutation ResendVerification($email: String!) {
|
|
331
373
|
resendVerification(email: $email) {
|
|
332
374
|
success
|
|
@@ -341,7 +383,7 @@ const s = `
|
|
|
341
383
|
error
|
|
342
384
|
}
|
|
343
385
|
}
|
|
344
|
-
`,
|
|
386
|
+
`, w = `
|
|
345
387
|
mutation UpdateMyProfile($name: String, $email: String) {
|
|
346
388
|
updateMyProfile(name: $name, email: $email) {
|
|
347
389
|
success
|
|
@@ -355,7 +397,7 @@ const s = `
|
|
|
355
397
|
error
|
|
356
398
|
}
|
|
357
399
|
}
|
|
358
|
-
`,
|
|
400
|
+
`, k = `
|
|
359
401
|
query MyReportSettings {
|
|
360
402
|
myReportSettings {
|
|
361
403
|
autoReportErrors
|
|
@@ -367,7 +409,7 @@ const s = `
|
|
|
367
409
|
feedbackNotifications
|
|
368
410
|
}
|
|
369
411
|
}
|
|
370
|
-
`,
|
|
412
|
+
`, B = `
|
|
371
413
|
mutation UpdateMyReportSettings(
|
|
372
414
|
$autoReportErrors: String
|
|
373
415
|
$autoReportContent: String
|
|
@@ -415,7 +457,7 @@ const s = `
|
|
|
415
457
|
error
|
|
416
458
|
duplicate
|
|
417
459
|
consultation {${n}}
|
|
418
|
-
`,
|
|
460
|
+
`, v = `
|
|
419
461
|
query ConsultationPublicConfig($locale: String!) {
|
|
420
462
|
consultationPublicConfig(locale: $locale) {
|
|
421
463
|
enabled
|
|
@@ -433,7 +475,7 @@ const s = `
|
|
|
433
475
|
}
|
|
434
476
|
}
|
|
435
477
|
}
|
|
436
|
-
`,
|
|
478
|
+
`, G = `
|
|
437
479
|
query MyConsultations($limit: Int, $offset: Int) {
|
|
438
480
|
myConsultations(limit: $limit, offset: $offset) {
|
|
439
481
|
id
|
|
@@ -443,11 +485,11 @@ const s = `
|
|
|
443
485
|
messageCount
|
|
444
486
|
}
|
|
445
487
|
}
|
|
446
|
-
`,
|
|
488
|
+
`, K = `
|
|
447
489
|
query MyConsultation($id: ID!) {
|
|
448
490
|
myConsultation(id: $id) {${n}}
|
|
449
491
|
}
|
|
450
|
-
`,
|
|
492
|
+
`, W = `
|
|
451
493
|
mutation CreateMyConsultation($input: CreateMyConsultationInput!) {
|
|
452
494
|
createMyConsultation(input: $input) {${t}}
|
|
453
495
|
}
|
|
@@ -455,11 +497,11 @@ const s = `
|
|
|
455
497
|
mutation PostMyConsultationMessage($consultationId: ID!, $body: String!, $clientRequestId: String!) {
|
|
456
498
|
postMyConsultationMessage(consultationId: $consultationId, body: $body, clientRequestId: $clientRequestId) {${t}}
|
|
457
499
|
}
|
|
458
|
-
`,
|
|
500
|
+
`, F = `
|
|
459
501
|
mutation RequestMyConsultationErasure($consultationId: ID!) {
|
|
460
502
|
requestMyConsultationErasure(consultationId: $consultationId) {${t}}
|
|
461
503
|
}
|
|
462
|
-
`,
|
|
504
|
+
`, Y = `
|
|
463
505
|
query MyConsultationConsent($locale: String!) {
|
|
464
506
|
myConsultationConsent(locale: $locale) {
|
|
465
507
|
mode
|
|
@@ -475,7 +517,7 @@ const s = `
|
|
|
475
517
|
}
|
|
476
518
|
}
|
|
477
519
|
}
|
|
478
|
-
`,
|
|
520
|
+
`, H = `
|
|
479
521
|
mutation WithdrawMyConsultationConsent {
|
|
480
522
|
withdrawMyConsultationConsent {
|
|
481
523
|
success
|
|
@@ -484,7 +526,7 @@ const s = `
|
|
|
484
526
|
threadsClosed
|
|
485
527
|
}
|
|
486
528
|
}
|
|
487
|
-
`,
|
|
529
|
+
`, V = `
|
|
488
530
|
mutation ExchangeConsultationLink($token: String!) {
|
|
489
531
|
exchangeConsultationLink(token: $token) {
|
|
490
532
|
success
|
|
@@ -495,77 +537,79 @@ const s = `
|
|
|
495
537
|
consultation {${n}}
|
|
496
538
|
}
|
|
497
539
|
}
|
|
498
|
-
`,
|
|
540
|
+
`, z = `
|
|
499
541
|
query ConsultationBySession($session: String!) {
|
|
500
542
|
consultationBySession(session: $session) {${n}}
|
|
501
543
|
}
|
|
502
|
-
`,
|
|
544
|
+
`, Q = `
|
|
503
545
|
mutation PostConsultationMessageBySession($session: String!, $body: String!, $clientRequestId: String!) {
|
|
504
546
|
postConsultationMessageBySession(session: $session, body: $body, clientRequestId: $clientRequestId) {${t}}
|
|
505
547
|
}
|
|
506
|
-
`,
|
|
548
|
+
`, Z = `
|
|
507
549
|
mutation RequestConsultationErasureBySession($session: String!) {
|
|
508
550
|
requestConsultationErasureBySession(session: $session) {${t}}
|
|
509
551
|
}
|
|
510
|
-
`,
|
|
552
|
+
`, X = `
|
|
511
553
|
mutation CloseConsultationSession($session: String!) {
|
|
512
554
|
closeConsultationSession(session: $session) {${t}}
|
|
513
555
|
}
|
|
514
|
-
`,
|
|
556
|
+
`, j = `
|
|
515
557
|
mutation AttachConsultationToMyAccount($session: String!) {
|
|
516
558
|
attachConsultationToMyAccount(session: $session) {${t}}
|
|
517
559
|
}
|
|
518
|
-
`,
|
|
560
|
+
`, J = `
|
|
519
561
|
mutation RequestConsultationLink($email: String!) {
|
|
520
562
|
requestConsultationLink(email: $email)
|
|
521
563
|
}
|
|
522
564
|
`;
|
|
523
565
|
export {
|
|
524
566
|
s as ACCESSIBLE_ARTICLES,
|
|
567
|
+
r as ACCESSIBLE_ARTICLES_LOCALIZED,
|
|
525
568
|
i as ACCESSIBLE_ARTICLES_WITH_LOCKED,
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
c as
|
|
535
|
-
|
|
569
|
+
l as ACCESSIBLE_ARTICLES_WITH_LOCKED_LOCALIZED,
|
|
570
|
+
T as ACCESSIBLE_TAGS,
|
|
571
|
+
$ as ARTICLE_ALIAS_TARGET,
|
|
572
|
+
_ as ARTICLE_COMMENTS,
|
|
573
|
+
d as ARTICLE_PREVIEW,
|
|
574
|
+
g as ARTICLE_PREVIEW_BY_ID,
|
|
575
|
+
p as ARTICLE_TRANSLATIONS,
|
|
576
|
+
m as ARTICLE_VERSION,
|
|
577
|
+
c as ARTICLE_WITH_TRANSLATION,
|
|
578
|
+
u as ARTICLE_WITH_TRANSLATION_BY_ID,
|
|
579
|
+
j as ATTACH_CONSULTATION_TO_MY_ACCOUNT,
|
|
536
580
|
D as CHANGE_PASSWORD,
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
581
|
+
X as CLOSE_CONSULTATION_SESSION,
|
|
582
|
+
O as COMMENT_UPDATES_SUBSCRIPTION,
|
|
583
|
+
z as CONSULTATION_BY_SESSION,
|
|
584
|
+
v as CONSULTATION_PUBLIC_CONFIG,
|
|
585
|
+
L as CREATE_COMMENT,
|
|
586
|
+
W as CREATE_MY_CONSULTATION,
|
|
587
|
+
f as DELETE_COMMENT,
|
|
588
|
+
V as EXCHANGE_CONSULTATION_LINK,
|
|
589
|
+
U as FORGOT_PASSWORD,
|
|
546
590
|
N as GET_COMMENT,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
591
|
+
S as GET_KB_CONTEXT,
|
|
592
|
+
y as GET_TRANSLATION,
|
|
593
|
+
E as KB_LANGUAGES,
|
|
594
|
+
I as KB_NAVIGATION,
|
|
595
|
+
A as LOCALIZED_TAGS,
|
|
596
|
+
M as LOGIN,
|
|
597
|
+
K as MY_CONSULTATION,
|
|
598
|
+
G as MY_CONSULTATIONS,
|
|
599
|
+
Y as MY_CONSULTATION_CONSENT,
|
|
600
|
+
k as MY_REPORT_SETTINGS,
|
|
601
|
+
Q as POST_CONSULTATION_MESSAGE_BY_SESSION,
|
|
558
602
|
x as POST_MY_CONSULTATION_MESSAGE,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
603
|
+
b as REGISTER,
|
|
604
|
+
Z as REQUEST_CONSULTATION_ERASURE_BY_SESSION,
|
|
605
|
+
J as REQUEST_CONSULTATION_LINK,
|
|
606
|
+
F as REQUEST_MY_CONSULTATION_ERASURE,
|
|
607
|
+
q as RESEND_VERIFICATION,
|
|
608
|
+
h as RESET_PASSWORD,
|
|
609
|
+
C as SEARCH_KNOWLEDGE_BASE,
|
|
610
|
+
R as UPDATE_COMMENT,
|
|
611
|
+
w as UPDATE_MY_PROFILE,
|
|
612
|
+
B as UPDATE_MY_REPORT_SETTINGS,
|
|
613
|
+
P as VERIFY_EMAIL,
|
|
614
|
+
H as WITHDRAW_MY_CONSULTATION_CONSENT
|
|
571
615
|
};
|