bb-relay 0.0.2 → 0.0.3

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 CHANGED
@@ -301,6 +301,7 @@ type WatchFSEvent = "updated" | "deleted";
301
301
  type User = {
302
302
  id: string;
303
303
  name: string;
304
+ username: string;
304
305
  email: string;
305
306
  bio: string;
306
307
  avatar: string;
@@ -464,170 +465,27 @@ interface MenuContent {
464
465
 
465
466
  type Nav = "file-explorer" | "checkpoints" | "plugins" | "settings" | "remote";
466
467
 
467
- type Database = {
468
- __InternalSupabase: {
469
- PostgrestVersion: "13.0.4";
468
+ type Plugin = {
469
+ id: string;
470
+ slug: string;
471
+ userId: string;
472
+ size: number;
473
+ latestProduction: {
474
+ version: string;
475
+ id: number;
470
476
  };
471
- public: {
472
- Tables: {
473
- plugin_versions: {
474
- Row: {
475
- archived: boolean;
476
- created_at: string;
477
- id: number;
478
- plugin_id: number;
479
- release_note: string;
480
- size: number;
481
- stage: Database["public"]["Enums"]["version_stage"];
482
- updated_at: string;
483
- version: string;
484
- };
485
- Insert: {
486
- archived?: boolean;
487
- created_at?: string;
488
- id?: number;
489
- plugin_id: number;
490
- release_note: string;
491
- size?: number;
492
- stage?: Database["public"]["Enums"]["version_stage"];
493
- updated_at?: string;
494
- version: string;
495
- };
496
- Update: {
497
- archived?: boolean;
498
- created_at?: string;
499
- id?: number;
500
- plugin_id?: number;
501
- release_note?: string;
502
- size?: number;
503
- stage?: Database["public"]["Enums"]["version_stage"];
504
- updated_at?: string;
505
- version?: string;
506
- };
507
- Relationships: [
508
- {
509
- foreignKeyName: "plugin_versions_plugin_id_fkey";
510
- columns: ["plugin_id"];
511
- isOneToOne: false;
512
- referencedRelation: "plugins";
513
- referencedColumns: ["id"];
514
- }
515
- ];
516
- };
517
- plugins: {
518
- Row: {
519
- author_id: string;
520
- categories: string[] | null;
521
- created_at: string;
522
- description: string | null;
523
- homepage: string | null;
524
- id: number;
525
- key: string;
526
- name: string | null;
527
- npm_package: string | null;
528
- updated_at: string;
529
- };
530
- Insert: {
531
- author_id?: string;
532
- categories?: string[] | null;
533
- created_at?: string;
534
- description?: string | null;
535
- homepage?: string | null;
536
- id?: number;
537
- key?: string;
538
- name?: string | null;
539
- npm_package?: string | null;
540
- updated_at?: string;
541
- };
542
- Update: {
543
- author_id?: string;
544
- categories?: string[] | null;
545
- created_at?: string;
546
- description?: string | null;
547
- homepage?: string | null;
548
- id?: number;
549
- key?: string;
550
- name?: string | null;
551
- npm_package?: string | null;
552
- updated_at?: string;
553
- };
554
- Relationships: [
555
- {
556
- foreignKeyName: "plugins_author_id_fkey";
557
- columns: ["author_id"];
558
- isOneToOne: false;
559
- referencedRelation: "profiles";
560
- referencedColumns: ["id"];
561
- }
562
- ];
563
- };
564
- profiles: {
565
- Row: {
566
- avatar_url: string | null;
567
- full_name: string | null;
568
- id: string;
569
- updated_at: string | null;
570
- username: string | null;
571
- website: string | null;
572
- };
573
- Insert: {
574
- avatar_url?: string | null;
575
- full_name?: string | null;
576
- id: string;
577
- updated_at?: string | null;
578
- username?: string | null;
579
- website?: string | null;
580
- };
581
- Update: {
582
- avatar_url?: string | null;
583
- full_name?: string | null;
584
- id?: string;
585
- updated_at?: string | null;
586
- username?: string | null;
587
- website?: string | null;
588
- };
589
- Relationships: [];
590
- };
591
- };
592
- Views: {
593
- [_ in never]: never;
594
- };
595
- Functions: {
596
- [_ in never]: never;
597
- };
598
- Enums: {
599
- version_stage: "DRAFT" | "ALPHA" | "BETA" | "PROD";
600
- };
601
- CompositeTypes: {
602
- [_ in never]: never;
603
- };
477
+ latestBeta: {
478
+ version: string;
479
+ id: number;
604
480
  };
605
- };
606
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
607
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
608
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
609
- schema: keyof DatabaseWithoutInternals;
610
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
611
- schema: keyof DatabaseWithoutInternals;
612
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
613
- schema: keyof DatabaseWithoutInternals;
614
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
615
- Row: infer R;
616
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
617
- Row: infer R;
618
- } ? R : never : never;
619
-
620
- type PluginItem = Tables<"plugins"> & {
621
- production_version: {
481
+ latestAlpha: {
482
+ version: string;
622
483
  id: number;
484
+ };
485
+ latestDraft: {
623
486
  version: string;
624
- release_note: string;
625
- size: number;
626
- updated_at: string;
627
- } | null;
628
- profile: {
629
- username: string | null;
630
- } | null;
487
+ id: number;
488
+ };
631
489
  };
632
490
 
633
491
  interface RenameType {
@@ -663,4 +521,4 @@ declare const frFR: {
663
521
  [key in Language]: ;
664
522
  };
665
523
 
666
- 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 PluginItem, type Project, type RenameType, type RequestReturn, type Result, type Route, type Settings, type TutorialHeader, type User, type WatchFSEvent, BBRelay as default, enGB, frFR, injectStyles, registerEvent, registerRequest };
524
+ 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 RenameType, type RequestReturn, type Result, type Route, type Settings, type TutorialHeader, type User, type WatchFSEvent, BBRelay as default, enGB, frFR, injectStyles, registerEvent, registerRequest };
package/dist/index.d.ts CHANGED
@@ -301,6 +301,7 @@ type WatchFSEvent = "updated" | "deleted";
301
301
  type User = {
302
302
  id: string;
303
303
  name: string;
304
+ username: string;
304
305
  email: string;
305
306
  bio: string;
306
307
  avatar: string;
@@ -464,170 +465,27 @@ interface MenuContent {
464
465
 
465
466
  type Nav = "file-explorer" | "checkpoints" | "plugins" | "settings" | "remote";
466
467
 
467
- type Database = {
468
- __InternalSupabase: {
469
- PostgrestVersion: "13.0.4";
468
+ type Plugin = {
469
+ id: string;
470
+ slug: string;
471
+ userId: string;
472
+ size: number;
473
+ latestProduction: {
474
+ version: string;
475
+ id: number;
470
476
  };
471
- public: {
472
- Tables: {
473
- plugin_versions: {
474
- Row: {
475
- archived: boolean;
476
- created_at: string;
477
- id: number;
478
- plugin_id: number;
479
- release_note: string;
480
- size: number;
481
- stage: Database["public"]["Enums"]["version_stage"];
482
- updated_at: string;
483
- version: string;
484
- };
485
- Insert: {
486
- archived?: boolean;
487
- created_at?: string;
488
- id?: number;
489
- plugin_id: number;
490
- release_note: string;
491
- size?: number;
492
- stage?: Database["public"]["Enums"]["version_stage"];
493
- updated_at?: string;
494
- version: string;
495
- };
496
- Update: {
497
- archived?: boolean;
498
- created_at?: string;
499
- id?: number;
500
- plugin_id?: number;
501
- release_note?: string;
502
- size?: number;
503
- stage?: Database["public"]["Enums"]["version_stage"];
504
- updated_at?: string;
505
- version?: string;
506
- };
507
- Relationships: [
508
- {
509
- foreignKeyName: "plugin_versions_plugin_id_fkey";
510
- columns: ["plugin_id"];
511
- isOneToOne: false;
512
- referencedRelation: "plugins";
513
- referencedColumns: ["id"];
514
- }
515
- ];
516
- };
517
- plugins: {
518
- Row: {
519
- author_id: string;
520
- categories: string[] | null;
521
- created_at: string;
522
- description: string | null;
523
- homepage: string | null;
524
- id: number;
525
- key: string;
526
- name: string | null;
527
- npm_package: string | null;
528
- updated_at: string;
529
- };
530
- Insert: {
531
- author_id?: string;
532
- categories?: string[] | null;
533
- created_at?: string;
534
- description?: string | null;
535
- homepage?: string | null;
536
- id?: number;
537
- key?: string;
538
- name?: string | null;
539
- npm_package?: string | null;
540
- updated_at?: string;
541
- };
542
- Update: {
543
- author_id?: string;
544
- categories?: string[] | null;
545
- created_at?: string;
546
- description?: string | null;
547
- homepage?: string | null;
548
- id?: number;
549
- key?: string;
550
- name?: string | null;
551
- npm_package?: string | null;
552
- updated_at?: string;
553
- };
554
- Relationships: [
555
- {
556
- foreignKeyName: "plugins_author_id_fkey";
557
- columns: ["author_id"];
558
- isOneToOne: false;
559
- referencedRelation: "profiles";
560
- referencedColumns: ["id"];
561
- }
562
- ];
563
- };
564
- profiles: {
565
- Row: {
566
- avatar_url: string | null;
567
- full_name: string | null;
568
- id: string;
569
- updated_at: string | null;
570
- username: string | null;
571
- website: string | null;
572
- };
573
- Insert: {
574
- avatar_url?: string | null;
575
- full_name?: string | null;
576
- id: string;
577
- updated_at?: string | null;
578
- username?: string | null;
579
- website?: string | null;
580
- };
581
- Update: {
582
- avatar_url?: string | null;
583
- full_name?: string | null;
584
- id?: string;
585
- updated_at?: string | null;
586
- username?: string | null;
587
- website?: string | null;
588
- };
589
- Relationships: [];
590
- };
591
- };
592
- Views: {
593
- [_ in never]: never;
594
- };
595
- Functions: {
596
- [_ in never]: never;
597
- };
598
- Enums: {
599
- version_stage: "DRAFT" | "ALPHA" | "BETA" | "PROD";
600
- };
601
- CompositeTypes: {
602
- [_ in never]: never;
603
- };
477
+ latestBeta: {
478
+ version: string;
479
+ id: number;
604
480
  };
605
- };
606
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
607
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
608
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
609
- schema: keyof DatabaseWithoutInternals;
610
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
611
- schema: keyof DatabaseWithoutInternals;
612
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
613
- schema: keyof DatabaseWithoutInternals;
614
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
615
- Row: infer R;
616
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
617
- Row: infer R;
618
- } ? R : never : never;
619
-
620
- type PluginItem = Tables<"plugins"> & {
621
- production_version: {
481
+ latestAlpha: {
482
+ version: string;
622
483
  id: number;
484
+ };
485
+ latestDraft: {
623
486
  version: string;
624
- release_note: string;
625
- size: number;
626
- updated_at: string;
627
- } | null;
628
- profile: {
629
- username: string | null;
630
- } | null;
487
+ id: number;
488
+ };
631
489
  };
632
490
 
633
491
  interface RenameType {
@@ -663,4 +521,4 @@ declare const frFR: {
663
521
  [key in Language]: ;
664
522
  };
665
523
 
666
- 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 PluginItem, type Project, type RenameType, type RequestReturn, type Result, type Route, type Settings, type TutorialHeader, type User, type WatchFSEvent, BBRelay as default, enGB, frFR, injectStyles, registerEvent, registerRequest };
524
+ 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 RenameType, type RequestReturn, type Result, type Route, type Settings, type TutorialHeader, type User, type WatchFSEvent, BBRelay as default, enGB, frFR, injectStyles, registerEvent, registerRequest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bb-relay",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "For managing bb-editor extension",
5
5
  "license": "ISC",
6
6
  "author": "Ade Adeola",
package/src/index.ts CHANGED
@@ -22,7 +22,7 @@ import Language from "./types/editor/Language";
22
22
  import Locale from "./types/editor/Locale";
23
23
  import { MenuContent } from "./types/editor/MenuContent";
24
24
  import Nav from "./types/editor/Nav";
25
- import { PluginItem } from "./types/editor/PluginItem";
25
+ import { Plugin } from "./types/editor/Plugin";
26
26
  import Project from "./types/project/Project";
27
27
  import { RenameType } from "./types/editor/RenameType";
28
28
  import Result from "./types/editor/Result";
@@ -58,7 +58,7 @@ export type {
58
58
  Locale,
59
59
  MenuContent,
60
60
  Nav,
61
- PluginItem,
61
+ Plugin,
62
62
  Project,
63
63
  RenameType,
64
64
  Result,
@@ -0,0 +1,22 @@
1
+ export type Plugin = {
2
+ id: string;
3
+ slug: string;
4
+ userId: string;
5
+ size: number;
6
+ latestProduction: {
7
+ version: string;
8
+ id: number;
9
+ };
10
+ latestBeta: {
11
+ version: string;
12
+ id: number;
13
+ };
14
+ latestAlpha: {
15
+ version: string;
16
+ id: number;
17
+ };
18
+ latestDraft: {
19
+ version: string;
20
+ id: number;
21
+ };
22
+ };
@@ -1,9 +1,10 @@
1
1
  export type User = {
2
- id: string
3
- name: string
4
- email: string
5
- bio: string
6
- avatar: string
7
- createdAt: string
8
- updatedAt: string
9
- }
2
+ id: string;
3
+ name: string;
4
+ username: string;
5
+ email: string;
6
+ bio: string;
7
+ avatar: string;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ };
@@ -1,14 +0,0 @@
1
- import { Tables } from "./database.types";
2
-
3
- export type PluginItem = Tables<"plugins"> & {
4
- production_version: {
5
- id: number;
6
- version: string;
7
- release_note: string;
8
- size: number;
9
- updated_at: string;
10
- } | null;
11
- profile: {
12
- username: string | null;
13
- } | null;
14
- };