bb-relay 0.0.1 → 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.
Files changed (35) hide show
  1. package/dist/index.d.mts +20 -162
  2. package/dist/index.d.ts +20 -162
  3. package/package.json +1 -1
  4. package/src/index.ts +21 -21
  5. package/src/load-virtual-editor/events/handle-dir-update.ts +1 -1
  6. package/src/load-virtual-editor/events/handle-file-update.ts +1 -1
  7. package/src/load-virtual-editor/events/handle-load.ts +1 -1
  8. package/src/load-virtual-editor/events/handle-selected.ts +1 -1
  9. package/src/load-virtual-editor/postResponse.ts +1 -1
  10. package/src/locales/fr-FR.ts +1 -1
  11. package/src/relay/index.ts +1 -1
  12. package/src/types/{EventParam.ts → editor/EventParam.ts} +1 -1
  13. package/src/types/{EventReturn.ts → editor/EventReturn.ts} +1 -1
  14. package/src/types/editor/Plugin.ts +22 -0
  15. package/src/types/{RenameType.ts → editor/RenameType.ts} +1 -1
  16. package/src/types/editor/User.ts +10 -0
  17. package/src/types/PluginItem.ts +0 -14
  18. package/src/types/User.ts +0 -9
  19. /package/src/types/{Checkpoint.ts → editor/Checkpoint.ts} +0 -0
  20. /package/src/types/{CopyArg.ts → editor/CopyArg.ts} +0 -0
  21. /package/src/types/{DirectoryContents.ts → editor/DirectoryContents.ts} +0 -0
  22. /package/src/types/{DirectoryStats.ts → editor/DirectoryStats.ts} +0 -0
  23. /package/src/types/{FileContent.ts → editor/FileContent.ts} +0 -0
  24. /package/src/types/{GitFileStatus.ts → editor/GitFileStatus.ts} +0 -0
  25. /package/src/types/{IconArg.ts → editor/IconArg.ts} +0 -0
  26. /package/src/types/{Language.ts → editor/Language.ts} +0 -0
  27. /package/src/types/{Locale.ts → editor/Locale.ts} +0 -0
  28. /package/src/types/{MenuContent.ts → editor/MenuContent.ts} +0 -0
  29. /package/src/types/{Nav.ts → editor/Nav.ts} +0 -0
  30. /package/src/types/{Result.ts → editor/Result.ts} +0 -0
  31. /package/src/types/{Route.ts → editor/Route.ts} +0 -0
  32. /package/src/types/{Settings.ts → editor/Settings.ts} +0 -0
  33. /package/src/types/{TutorialHeader.ts → editor/TutorialHeader.ts} +0 -0
  34. /package/src/types/{WatchFSEvent.ts → editor/WatchFSEvent.ts} +0 -0
  35. /package/src/types/{database.types.ts → editor/database.types.ts} +0 -0
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,175 +465,32 @@ 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 {
634
492
  path: string;
635
- newPath: string;
493
+ name: string;
636
494
  }
637
495
 
638
496
  type Result<T = null> = {
@@ -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,175 +465,32 @@ 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 {
634
492
  path: string;
635
- newPath: string;
493
+ name: string;
636
494
  }
637
495
 
638
496
  type Result<T = null> = {
@@ -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.1",
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
@@ -1,7 +1,7 @@
1
1
  import BBRelay from "./relay";
2
2
  import DirInfo from "./types/dir/DirInfo";
3
3
  import BBEvent from "./types/BBEvent";
4
- import EventReturn from "./types/EventReturn";
4
+ import EventReturn from "./types/editor/EventReturn";
5
5
  import FileInfo from "./types/files/FileInfo";
6
6
  import Load from "./types/status/Load";
7
7
  import registerEvent from "./relay/registerEvent";
@@ -9,26 +9,26 @@ import registerRequest from "./relay/registerRequest";
9
9
  import BBRequest from "./types/BBRequest";
10
10
  import RequestReturn from "./types/RequestReturn";
11
11
  import injectStyles from "./utils/inject-styles";
12
- import Checkpoint from "./types/Checkpoint";
13
- import CopyArg from "./types/CopyArg";
14
- import { WatchFSEvent } from "./types/WatchFSEvent";
15
- import { User } from "./types/User";
16
- import DirectoryContents from "./types/DirectoryContents";
17
- import { DirectoryStats } from "./types/DirectoryStats";
18
- import FileContent from "./types/FileContent";
19
- import GitFileStatus from "./types/GitFileStatus";
20
- import IconArg from "./types/IconArg";
21
- import Language from "./types/Language";
22
- import Locale from "./types/Locale";
23
- import { MenuContent } from "./types/MenuContent";
24
- import Nav from "./types/Nav";
25
- import { PluginItem } from "./types/PluginItem";
12
+ import Checkpoint from "./types/editor/Checkpoint";
13
+ import CopyArg from "./types/editor/CopyArg";
14
+ import { WatchFSEvent } from "./types/editor/WatchFSEvent";
15
+ import { User } from "./types/editor/User";
16
+ import DirectoryContents from "./types/editor/DirectoryContents";
17
+ import { DirectoryStats } from "./types/editor/DirectoryStats";
18
+ import FileContent from "./types/editor/FileContent";
19
+ import GitFileStatus from "./types/editor/GitFileStatus";
20
+ import IconArg from "./types/editor/IconArg";
21
+ import Language from "./types/editor/Language";
22
+ import Locale from "./types/editor/Locale";
23
+ import { MenuContent } from "./types/editor/MenuContent";
24
+ import Nav from "./types/editor/Nav";
25
+ import { Plugin } from "./types/editor/Plugin";
26
26
  import Project from "./types/project/Project";
27
- import { RenameType } from "./types/RenameType";
28
- import Result from "./types/Result";
29
- import { Route } from "./types/Route";
30
- import { Settings } from "./types/Settings";
31
- import { TutorialHeader } from "./types/TutorialHeader";
27
+ import { RenameType } from "./types/editor/RenameType";
28
+ import Result from "./types/editor/Result";
29
+ import { Route } from "./types/editor/Route";
30
+ import { Settings } from "./types/editor/Settings";
31
+ import { TutorialHeader } from "./types/editor/TutorialHeader";
32
32
  import enGB from "./locales/en-GB";
33
33
  import frFR from "./locales/fr-FR";
34
34
 
@@ -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,
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import postResponse from "../postResponse";
3
3
  import { watch } from "../node/watch";
4
4
 
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import postResponse from "../postResponse";
3
3
  import { watch } from "../node/watch";
4
4
 
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import appStore from "../app/store";
3
3
  import postResponse from "../postResponse";
4
4
 
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import postResponse from "../postResponse";
3
3
  import selectedStore from "../selected/store";
4
4
  import watch from "../selected/watch";
@@ -1,5 +1,5 @@
1
1
  import BBEvent from "@/types/BBEvent";
2
- import EventReturn from "@/types/EventReturn";
2
+ import EventReturn from "@/types/editor/EventReturn";
3
3
  import BBRequest from "@/types/BBRequest";
4
4
  import RequestReturn from "@/types/RequestReturn";
5
5
 
@@ -1,4 +1,4 @@
1
- import Language from "@/types/Language";
1
+ import Language from "@/types/editor/Language";
2
2
 
3
3
  export const frFR: { [key in Language] } = {
4
4
  "language.british_english": "Anglais britannique",
@@ -3,7 +3,7 @@ import BBRequest from "../types/BBRequest";
3
3
  import storageBridge from "./storage-bridge";
4
4
  import RequestReturn from "../types/RequestReturn";
5
5
  import BBEvent from "../types/BBEvent";
6
- import EventReturn from "../types/EventReturn";
6
+ import EventReturn from "../types/editor/EventReturn";
7
7
  import registerEvent from "./registerEvent";
8
8
 
9
9
  export default class BBRelay {
@@ -1,4 +1,4 @@
1
- import BBEvent from "./BBEvent";
1
+ import BBEvent from "../BBEvent";
2
2
 
3
3
  type EventParam<K extends keyof BBEvent> = {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import BBEvent from "./BBEvent";
1
+ import BBEvent from "../BBEvent";
2
2
 
3
3
  interface EventReturn<K extends keyof BBEvent> {
4
4
  type: K;
@@ -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,4 +1,4 @@
1
1
  export interface RenameType {
2
2
  path: string;
3
- newPath: string;
3
+ name: string;
4
4
  }
@@ -0,0 +1,10 @@
1
+ export type User = {
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
- };
package/src/types/User.ts DELETED
@@ -1,9 +0,0 @@
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
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes