bb-relay 0.0.8 → 0.0.10
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/index.d.mts +12 -4
- package/dist/index.d.ts +12 -4
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/types/plugins/Plugin.ts +0 -2
- package/src/types/plugins/Rating.ts +8 -0
- package/src/types/plugins/Release.ts +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -502,7 +502,7 @@ type Release = {
|
|
|
502
502
|
storageRef: string;
|
|
503
503
|
changes: string;
|
|
504
504
|
version: string;
|
|
505
|
-
type: "production" | "beta" | "
|
|
505
|
+
type: "production" | "beta" | "draft";
|
|
506
506
|
slug: string;
|
|
507
507
|
metadata: {
|
|
508
508
|
uploadedAt: number;
|
|
@@ -513,6 +513,7 @@ type Release = {
|
|
|
513
513
|
id?: string;
|
|
514
514
|
updatedAt: string;
|
|
515
515
|
userId: string;
|
|
516
|
+
installs: number;
|
|
516
517
|
};
|
|
517
518
|
|
|
518
519
|
type Status = Omit<Release, "type">;
|
|
@@ -526,10 +527,8 @@ type Plugin = {
|
|
|
526
527
|
slug: string;
|
|
527
528
|
name: string;
|
|
528
529
|
description: string | null;
|
|
529
|
-
installs: number;
|
|
530
530
|
archived?: boolean;
|
|
531
531
|
deprecated?: boolean;
|
|
532
|
-
alpha: Status | null;
|
|
533
532
|
beta: Status | null;
|
|
534
533
|
production: Status | null;
|
|
535
534
|
createdAt: string;
|
|
@@ -557,4 +556,13 @@ type ValidateManifestProp = {
|
|
|
557
556
|
};
|
|
558
557
|
declare const validateManifest: (manifestContent: string) => ValidateManifestProp[];
|
|
559
558
|
|
|
560
|
-
|
|
559
|
+
type Rating = {
|
|
560
|
+
userId: string;
|
|
561
|
+
pluginId: string;
|
|
562
|
+
rating: number;
|
|
563
|
+
comment?: string;
|
|
564
|
+
createdAt: string;
|
|
565
|
+
updatedAt?: string;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
export { type BBEvent, type BBRequest, type Checkpoint, type CopyArg, type DirInfo, type DirectoryContents, type DirectoryStats, type EventReturn, type FileContent, type FileInfo, type GitFileStatus, type IconArg, type Language, type Load, type Locale, type MenuContent, type Nav, type Plugin, type Project, type Rating, type Release, type RenameType, type RequestReturn, type Result, type Route, type Settings, type TutorialHeader, type User, type ValidateManifestProp, type WatchFSEvent, type Zip, BBRelay as default, enGB, frFR, injectStyles, registerEvent, registerRequest, validateManifest };
|
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ type Release = {
|
|
|
502
502
|
storageRef: string;
|
|
503
503
|
changes: string;
|
|
504
504
|
version: string;
|
|
505
|
-
type: "production" | "beta" | "
|
|
505
|
+
type: "production" | "beta" | "draft";
|
|
506
506
|
slug: string;
|
|
507
507
|
metadata: {
|
|
508
508
|
uploadedAt: number;
|
|
@@ -513,6 +513,7 @@ type Release = {
|
|
|
513
513
|
id?: string;
|
|
514
514
|
updatedAt: string;
|
|
515
515
|
userId: string;
|
|
516
|
+
installs: number;
|
|
516
517
|
};
|
|
517
518
|
|
|
518
519
|
type Status = Omit<Release, "type">;
|
|
@@ -526,10 +527,8 @@ type Plugin = {
|
|
|
526
527
|
slug: string;
|
|
527
528
|
name: string;
|
|
528
529
|
description: string | null;
|
|
529
|
-
installs: number;
|
|
530
530
|
archived?: boolean;
|
|
531
531
|
deprecated?: boolean;
|
|
532
|
-
alpha: Status | null;
|
|
533
532
|
beta: Status | null;
|
|
534
533
|
production: Status | null;
|
|
535
534
|
createdAt: string;
|
|
@@ -557,4 +556,13 @@ type ValidateManifestProp = {
|
|
|
557
556
|
};
|
|
558
557
|
declare const validateManifest: (manifestContent: string) => ValidateManifestProp[];
|
|
559
558
|
|
|
560
|
-
|
|
559
|
+
type Rating = {
|
|
560
|
+
userId: string;
|
|
561
|
+
pluginId: string;
|
|
562
|
+
rating: number;
|
|
563
|
+
comment?: string;
|
|
564
|
+
createdAt: string;
|
|
565
|
+
updatedAt?: string;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
export { type BBEvent, type BBRequest, type Checkpoint, type CopyArg, type DirInfo, type DirectoryContents, type DirectoryStats, type EventReturn, type FileContent, type FileInfo, type GitFileStatus, type IconArg, type Language, type Load, type Locale, type MenuContent, type Nav, type Plugin, type Project, type Rating, type Release, type RenameType, type RequestReturn, type Result, type Route, type Settings, type TutorialHeader, type User, type ValidateManifestProp, type WatchFSEvent, type Zip, BBRelay as default, enGB, frFR, injectStyles, registerEvent, registerRequest, validateManifest };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { Zip } from "./types/Zip";
|
|
|
36
36
|
import validateManifest, {
|
|
37
37
|
ValidateManifestProp,
|
|
38
38
|
} from "./lib/validate-manifest";
|
|
39
|
+
import { Rating } from "./types/plugins/Rating";
|
|
39
40
|
|
|
40
41
|
export default BBRelay;
|
|
41
42
|
|
|
@@ -73,5 +74,5 @@ export type {
|
|
|
73
74
|
WatchFSEvent,
|
|
74
75
|
};
|
|
75
76
|
|
|
76
|
-
export type { Release, Plugin, Zip, ValidateManifestProp };
|
|
77
|
+
export type { Release, Plugin, Zip, ValidateManifestProp, Rating };
|
|
77
78
|
export { enGB, frFR };
|
|
@@ -11,10 +11,8 @@ export type Plugin = {
|
|
|
11
11
|
slug: string;
|
|
12
12
|
name: string;
|
|
13
13
|
description: string | null;
|
|
14
|
-
installs: number;
|
|
15
14
|
archived?: boolean;
|
|
16
15
|
deprecated?: boolean;
|
|
17
|
-
alpha: Status | null;
|
|
18
16
|
beta: Status | null;
|
|
19
17
|
production: Status | null;
|
|
20
18
|
createdAt: string;
|
|
@@ -2,7 +2,7 @@ export type Release = {
|
|
|
2
2
|
storageRef: string;
|
|
3
3
|
changes: string;
|
|
4
4
|
version: string;
|
|
5
|
-
type: "production" | "beta" | "
|
|
5
|
+
type: "production" | "beta" | "draft";
|
|
6
6
|
slug: string;
|
|
7
7
|
metadata: {
|
|
8
8
|
uploadedAt: number;
|
|
@@ -13,4 +13,5 @@ export type Release = {
|
|
|
13
13
|
id?: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
userId: string;
|
|
16
|
+
installs: number;
|
|
16
17
|
};
|