bb-relay 0.0.47 → 0.0.48

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.
@@ -19,6 +19,15 @@ type BasePlugin = {
19
19
  tags: string[];
20
20
  username: string;
21
21
  id: string;
22
+ rating: number;
23
+ reviews: number;
24
+ ratingBreakdown: {
25
+ 1: number;
26
+ 2: number;
27
+ 3: number;
28
+ 4: number;
29
+ 5: number;
30
+ };
22
31
  };
23
32
  type Plugin = Wrapper<BasePlugin>;
24
33
 
@@ -19,6 +19,15 @@ type BasePlugin = {
19
19
  tags: string[];
20
20
  username: string;
21
21
  id: string;
22
+ rating: number;
23
+ reviews: number;
24
+ ratingBreakdown: {
25
+ 1: number;
26
+ 2: number;
27
+ 3: number;
28
+ 4: number;
29
+ 5: number;
30
+ };
22
31
  };
23
32
  type Plugin = Wrapper<BasePlugin>;
24
33
 
@@ -1,5 +1,5 @@
1
1
  import { W as Wrapper } from './Wrapper-DWhYVa7F.mjs';
2
- export { P as Plugin } from './Plugin-CXXPXHGc.mjs';
2
+ export { P as Plugin } from './Plugin-BUbJvxEw.mjs';
3
3
  export { P as Project } from './Project-9NfYlQ36.mjs';
4
4
  import './PROJECT_CATEGORY-BivLHtB6.mjs';
5
5
  import './Commit-PdsjrKSG.mjs';
@@ -37,7 +37,9 @@ type BaseRelease = {
37
37
  id: string;
38
38
  updatedAt: string;
39
39
  userId: string;
40
+ username: string;
40
41
  installs: number;
42
+ description: string | null;
41
43
  /**
42
44
  * The plugin id (part of release id)
43
45
  */
@@ -46,16 +48,27 @@ type BaseRelease = {
46
48
  rating: number;
47
49
  reviews: number;
48
50
  tags: string[];
51
+ ratingBreakdown: {
52
+ 1: number;
53
+ 2: number;
54
+ 3: number;
55
+ 4: number;
56
+ 5: number;
57
+ };
49
58
  };
50
59
  type Release = Wrapper<BaseRelease>;
51
60
 
52
61
  type BaseRating = {
53
62
  userId: string;
54
63
  /**
55
- * plugin and version
56
- * plugin@1.0.0
64
+ * pluginId and version
65
+ * Indicate the version of the plugin that the rating applies to
66
+ * analyser@1.0.0
57
67
  */
58
68
  slug: string;
69
+ /**
70
+ * the plugin id e.g. analyser
71
+ */
59
72
  plugin: string;
60
73
  /**
61
74
  * 1 to 5
@@ -66,6 +79,10 @@ type BaseRating = {
66
79
  updatedAt?: string;
67
80
  username: string;
68
81
  avatar?: string;
82
+ /**
83
+ * made from plugin and userId
84
+ * @example analyser_cazA6BZqclLcyeb9m2fPphpopm7E
85
+ */
69
86
  id: string;
70
87
  };
71
88
  type Rating = Wrapper<BaseRating>;
@@ -1,5 +1,5 @@
1
1
  import { W as Wrapper } from './Wrapper-DWhYVa7F.js';
2
- export { P as Plugin } from './Plugin-CP-5My91.js';
2
+ export { P as Plugin } from './Plugin-BYz_yl3E.js';
3
3
  export { P as Project } from './Project-DOzeI4xi.js';
4
4
  import './PROJECT_CATEGORY-BivLHtB6.js';
5
5
  import './Commit-PdsjrKSG.js';
@@ -37,7 +37,9 @@ type BaseRelease = {
37
37
  id: string;
38
38
  updatedAt: string;
39
39
  userId: string;
40
+ username: string;
40
41
  installs: number;
42
+ description: string | null;
41
43
  /**
42
44
  * The plugin id (part of release id)
43
45
  */
@@ -46,16 +48,27 @@ type BaseRelease = {
46
48
  rating: number;
47
49
  reviews: number;
48
50
  tags: string[];
51
+ ratingBreakdown: {
52
+ 1: number;
53
+ 2: number;
54
+ 3: number;
55
+ 4: number;
56
+ 5: number;
57
+ };
49
58
  };
50
59
  type Release = Wrapper<BaseRelease>;
51
60
 
52
61
  type BaseRating = {
53
62
  userId: string;
54
63
  /**
55
- * plugin and version
56
- * plugin@1.0.0
64
+ * pluginId and version
65
+ * Indicate the version of the plugin that the rating applies to
66
+ * analyser@1.0.0
57
67
  */
58
68
  slug: string;
69
+ /**
70
+ * the plugin id e.g. analyser
71
+ */
59
72
  plugin: string;
60
73
  /**
61
74
  * 1 to 5
@@ -66,6 +79,10 @@ type BaseRating = {
66
79
  updatedAt?: string;
67
80
  username: string;
68
81
  avatar?: string;
82
+ /**
83
+ * made from plugin and userId
84
+ * @example analyser_cazA6BZqclLcyeb9m2fPphpopm7E
85
+ */
69
86
  id: string;
70
87
  };
71
88
  type Rating = Wrapper<BaseRating>;
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { F as FileContent } from './FileContent-CXlulSZq.mjs';
2
2
  export { R as Result } from './Result-BLbZLEgX.mjs';
3
- import { P as Plugin } from './Plugin-CXXPXHGc.mjs';
3
+ import { P as Plugin } from './Plugin-BUbJvxEw.mjs';
4
4
  import { R as RelayEvent, E as EventReturn, a as RelayRequest, b as RequestReturn } from './RequestReturn-Dahl-hde.mjs';
5
5
  import './Wrapper-DWhYVa7F.mjs';
6
6
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { F as FileContent } from './FileContent-CXlulSZq.js';
2
2
  export { R as Result } from './Result-BLbZLEgX.js';
3
- import { P as Plugin } from './Plugin-CP-5My91.js';
3
+ import { P as Plugin } from './Plugin-BYz_yl3E.js';
4
4
  import { R as RelayEvent, E as EventReturn, a as RelayRequest, b as RequestReturn } from './RequestReturn-Clb_WcNj.js';
5
5
  import './Wrapper-DWhYVa7F.js';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bb-relay",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "For managing bb-editor extension",
5
5
  "license": "ISC",
6
6
  "author": "Ade Adeola",
@@ -19,6 +19,15 @@ type BasePlugin = {
19
19
  tags: string[];
20
20
  username: string;
21
21
  id: string;
22
+ rating: number;
23
+ reviews: number;
24
+ ratingBreakdown: {
25
+ 1: number;
26
+ 2: number;
27
+ 3: number;
28
+ 4: number;
29
+ 5: number;
30
+ };
22
31
  };
23
32
 
24
33
  export type Plugin = Wrapper<BasePlugin>;
@@ -3,10 +3,14 @@ import { Wrapper } from "./Wrapper";
3
3
  type BaseRating = {
4
4
  userId: string;
5
5
  /**
6
- * plugin and version
7
- * plugin@1.0.0
6
+ * pluginId and version
7
+ * Indicate the version of the plugin that the rating applies to
8
+ * analyser@1.0.0
8
9
  */
9
10
  slug: string;
11
+ /**
12
+ * the plugin id e.g. analyser
13
+ */
10
14
  plugin: string;
11
15
  /**
12
16
  * 1 to 5
@@ -17,6 +21,10 @@ type BaseRating = {
17
21
  updatedAt?: string;
18
22
  username: string;
19
23
  avatar?: string;
24
+ /**
25
+ * made from plugin and userId
26
+ * @example analyser_cazA6BZqclLcyeb9m2fPphpopm7E
27
+ */
20
28
  id: string;
21
29
  };
22
30
 
@@ -15,7 +15,9 @@ type BaseRelease = {
15
15
  id: string;
16
16
  updatedAt: string;
17
17
  userId: string;
18
+ username: string;
18
19
  installs: number;
20
+ description: string | null;
19
21
  /**
20
22
  * The plugin id (part of release id)
21
23
  */
@@ -24,6 +26,13 @@ type BaseRelease = {
24
26
  rating: number;
25
27
  reviews: number;
26
28
  tags: string[];
29
+ ratingBreakdown: {
30
+ 1: number;
31
+ 2: number;
32
+ 3: number;
33
+ 4: number;
34
+ 5: number;
35
+ };
27
36
  };
28
37
 
29
38
  export type Release = Wrapper<BaseRelease>;