@drodil/backstage-plugin-qeta-common 1.14.1 → 1.15.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +53 -1
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
2
3
 
3
4
  declare const qetaReadPermission: _backstage_plugin_permission_common.BasicPermission;
@@ -23,5 +24,56 @@ interface StatisticsRequestParameters {
23
24
  author?: string;
24
25
  options?: StatisticsOptions;
25
26
  }
27
+ interface QetaEntity {
28
+ id: number;
29
+ author: string;
30
+ content: string;
31
+ created: Date;
32
+ own?: boolean;
33
+ canEdit?: boolean;
34
+ canDelete?: boolean;
35
+ updated?: Date;
36
+ updatedBy?: string;
37
+ }
38
+ interface QuestionAnswerEntity extends QetaEntity {
39
+ score: number;
40
+ ownVote?: number;
41
+ comments?: Comment[];
42
+ votes?: Vote[];
43
+ }
44
+ interface Question extends QuestionAnswerEntity {
45
+ title: string;
46
+ views: number;
47
+ answersCount: number;
48
+ correctAnswer: boolean;
49
+ favorite: boolean;
50
+ tags?: string[];
51
+ entities?: string[];
52
+ answers?: Answer[];
53
+ trend?: number;
54
+ }
55
+ interface Answer extends QuestionAnswerEntity {
56
+ questionId: number;
57
+ correct: boolean;
58
+ }
59
+ interface Vote {
60
+ author: string;
61
+ score: number;
62
+ timestamp: Date;
63
+ }
64
+ interface Comment extends QetaEntity {
65
+ }
66
+ interface Attachment {
67
+ id: number;
68
+ uuid: string;
69
+ locationType: string;
70
+ locationUri: string;
71
+ path: string;
72
+ binaryImage: Buffer;
73
+ mimeType: string;
74
+ extension: string;
75
+ creator: string;
76
+ created: Date;
77
+ }
26
78
 
27
- export { Statistic, StatisticResponse, StatisticsOptions, StatisticsRequestParameters, qetaCreateAnswerPermission, qetaCreateQuestionPermission, qetaPermissions, qetaReadPermission };
79
+ export { Answer, Attachment, Comment, QetaEntity, Question, QuestionAnswerEntity, Statistic, StatisticResponse, StatisticsOptions, StatisticsRequestParameters, Vote, qetaCreateAnswerPermission, qetaCreateQuestionPermission, qetaPermissions, qetaReadPermission };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "frontend",
8
8
  "backstage.io"
9
9
  ],
10
- "version": "1.14.1",
10
+ "version": "1.15.1",
11
11
  "main": "dist/index.cjs.js",
12
12
  "types": "dist/index.d.ts",
13
13
  "prepublishOnly": "yarn tsc && yarn build",
@@ -39,13 +39,13 @@
39
39
  "tsc": "tsc"
40
40
  },
41
41
  "dependencies": {
42
- "@backstage/plugin-permission-common": "^0.7.7"
42
+ "@backstage/plugin-permission-common": "^0.7.8"
43
43
  },
44
44
  "peerDependencies": {
45
- "@backstage/catalog-model": "^1.4.1"
45
+ "@backstage/catalog-model": "^1.4.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@backstage/cli": "^0.22.9"
48
+ "@backstage/cli": "^0.22.13"
49
49
  },
50
50
  "files": [
51
51
  "dist"