@drodil/backstage-plugin-qeta-common 2.4.2 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -2
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
3
2
  import { IndexableDocument } from '@backstage/plugin-search-common';
4
3
  import { ErrorObject } from 'ajv';
@@ -58,6 +57,7 @@ interface Question extends QuestionAnswerEntity {
58
57
  interface Answer extends QuestionAnswerEntity {
59
58
  questionId: number;
60
59
  correct: boolean;
60
+ question?: Question;
61
61
  }
62
62
  interface Vote {
63
63
  author: string;
@@ -112,6 +112,11 @@ interface AnswerRequest {
112
112
  images?: number[];
113
113
  anonymous?: boolean;
114
114
  }
115
+ type AnswersResponseBody = AnswersResponse | ErrorResponse;
116
+ interface AnswersResponse {
117
+ answers: Answer[];
118
+ total: number;
119
+ }
115
120
  type AnswerResponseBody = Answer | ErrorResponse;
116
121
  interface TagResponse {
117
122
  tag: string;
@@ -141,4 +146,4 @@ type QetaSignal = QetaQuestionStatsSignal | QetaAnswerStatsSignal;
141
146
  declare const TAGS_REGEX: RegExp;
142
147
  declare const filterTags: (input?: null | string | string[]) => string[] | undefined;
143
148
 
144
- export { type Answer, type AnswerRequest, type AnswerResponse, type AnswerResponseBody, type Attachment, type AttachmentResponseBody, type Comment, type EntityResponse, type QetaAnswerStatsSignal, type QetaDocument, type QetaEntity, type QetaQuestionStatsSignal, type QetaSignal, type Question, type QuestionAnswerEntity, type QuestionRequest, type QuestionResponse, type QuestionResponseBody, type QuestionsResponse, type QuestionsResponseBody, type Statistic, type StatisticResponse, type StatisticsOptions, type StatisticsRequestParameters, TAGS_REGEX, type TagResponse, type Vote, filterTags, qetaCreateAnswerPermission, qetaCreateQuestionPermission, qetaPermissions, qetaReadPermission };
149
+ export { type Answer, type AnswerRequest, type AnswerResponse, type AnswerResponseBody, type AnswersResponse, type AnswersResponseBody, type Attachment, type AttachmentResponseBody, type Comment, type EntityResponse, type QetaAnswerStatsSignal, type QetaDocument, type QetaEntity, type QetaQuestionStatsSignal, type QetaSignal, type Question, type QuestionAnswerEntity, type QuestionRequest, type QuestionResponse, type QuestionResponseBody, type QuestionsResponse, type QuestionsResponseBody, type Statistic, type StatisticResponse, type StatisticsOptions, type StatisticsRequestParameters, TAGS_REGEX, type TagResponse, type Vote, filterTags, qetaCreateAnswerPermission, qetaCreateQuestionPermission, qetaPermissions, qetaReadPermission };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "frontend",
8
8
  "backstage.io"
9
9
  ],
10
- "version": "2.4.2",
10
+ "version": "2.5.0",
11
11
  "main": "dist/index.cjs.js",
12
12
  "types": "dist/index.d.ts",
13
13
  "prepublishOnly": "yarn tsc && yarn build",
@@ -47,15 +47,15 @@
47
47
  "tsc": "tsc"
48
48
  },
49
49
  "dependencies": {
50
- "@backstage/plugin-permission-common": "^0.7.14",
51
- "@backstage/plugin-search-common": "^1.2.12",
50
+ "@backstage/plugin-permission-common": "^0.8.0",
51
+ "@backstage/plugin-search-common": "^1.2.13",
52
52
  "ajv": "^8.12.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@backstage/catalog-model": "^1.5.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@backstage/cli": "^0.26.7"
58
+ "@backstage/cli": "^0.26.11"
59
59
  },
60
60
  "files": [
61
61
  "dist"