@beeblock/svelar 0.4.0
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/LICENSE +21 -0
- package/README.md +110 -0
- package/dist/actions/index.d.ts +101 -0
- package/dist/actions/index.js +1 -0
- package/dist/api-keys/index.d.ts +58 -0
- package/dist/api-keys/index.js +1 -0
- package/dist/audit/index.d.ts +52 -0
- package/dist/audit/index.js +1 -0
- package/dist/auth/Auth.d.ts +283 -0
- package/dist/auth/Gate.d.ts +166 -0
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.js +80 -0
- package/dist/broadcasting/client.d.ts +195 -0
- package/dist/broadcasting/client.js +1 -0
- package/dist/broadcasting/index.d.ts +318 -0
- package/dist/broadcasting/index.js +20 -0
- package/dist/cache/index.d.ts +77 -0
- package/dist/cache/index.js +1 -0
- package/dist/cli/Cli.d.ts +23 -0
- package/dist/cli/Command.d.ts +36 -0
- package/dist/cli/bin.d.ts +8 -0
- package/dist/cli/bin.js +5856 -0
- package/dist/cli/commands/KeyGenerateCommand.d.ts +16 -0
- package/dist/cli/commands/MakeActionCommand.d.ts +15 -0
- package/dist/cli/commands/MakeBroadcastingCommand.d.ts +29 -0
- package/dist/cli/commands/MakeChannelCommand.d.ts +18 -0
- package/dist/cli/commands/MakeCommandCommand.d.ts +16 -0
- package/dist/cli/commands/MakeConfigCommand.d.ts +13 -0
- package/dist/cli/commands/MakeControllerCommand.d.ts +28 -0
- package/dist/cli/commands/MakeDashboardCommand.d.ts +34 -0
- package/dist/cli/commands/MakeDockerCommand.d.ts +32 -0
- package/dist/cli/commands/MakeEventCommand.d.ts +11 -0
- package/dist/cli/commands/MakeJobCommand.d.ts +11 -0
- package/dist/cli/commands/MakeListenerCommand.d.ts +16 -0
- package/dist/cli/commands/MakeMiddlewareCommand.d.ts +11 -0
- package/dist/cli/commands/MakeMigrationCommand.d.ts +17 -0
- package/dist/cli/commands/MakeModelCommand.d.ts +25 -0
- package/dist/cli/commands/MakeObserverCommand.d.ts +23 -0
- package/dist/cli/commands/MakePluginCommand.d.ts +11 -0
- package/dist/cli/commands/MakeProviderCommand.d.ts +11 -0
- package/dist/cli/commands/MakeRepositoryCommand.d.ts +22 -0
- package/dist/cli/commands/MakeRequestCommand.d.ts +15 -0
- package/dist/cli/commands/MakeResourceCommand.d.ts +30 -0
- package/dist/cli/commands/MakeRouteCommand.d.ts +42 -0
- package/dist/cli/commands/MakeSchemaCommand.d.ts +20 -0
- package/dist/cli/commands/MakeSeederCommand.d.ts +11 -0
- package/dist/cli/commands/MakeServiceCommand.d.ts +28 -0
- package/dist/cli/commands/MakeTaskCommand.d.ts +12 -0
- package/dist/cli/commands/MigrateCommand.d.ts +26 -0
- package/dist/cli/commands/NewCommand.d.ts +21 -0
- package/dist/cli/commands/NewCommandTemplates.d.ts +123 -0
- package/dist/cli/commands/PluginInstallCommand.d.ts +16 -0
- package/dist/cli/commands/PluginListCommand.d.ts +11 -0
- package/dist/cli/commands/PluginPublishCommand.d.ts +22 -0
- package/dist/cli/commands/QueueFailedCommand.d.ts +9 -0
- package/dist/cli/commands/QueueFlushCommand.d.ts +9 -0
- package/dist/cli/commands/QueueRetryCommand.d.ts +16 -0
- package/dist/cli/commands/QueueWorkCommand.d.ts +25 -0
- package/dist/cli/commands/RoutesListCommand.d.ts +30 -0
- package/dist/cli/commands/ScheduleRunCommand.d.ts +15 -0
- package/dist/cli/commands/SeedCommand.d.ts +14 -0
- package/dist/cli/commands/TinkerCommand.d.ts +10 -0
- package/dist/cli/index.d.ts +36 -0
- package/dist/cli/index.js +1973 -0
- package/dist/cli/ts-resolve-hook.mjs +74 -0
- package/dist/cli/ts-resolver.mjs +8 -0
- package/dist/config/Config.d.ts +65 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/container/Application.d.ts +33 -0
- package/dist/container/Container.d.ts +70 -0
- package/dist/container/ServiceProvider.d.ts +21 -0
- package/dist/container/index.d.ts +3 -0
- package/dist/container/index.js +1 -0
- package/dist/dashboard/index.d.ts +123 -0
- package/dist/dashboard/index.js +5 -0
- package/dist/database/Connection.d.ts +80 -0
- package/dist/database/Migration.d.ts +76 -0
- package/dist/database/SchemaBuilder.d.ts +91 -0
- package/dist/database/Seeder.d.ts +9 -0
- package/dist/database/index.d.ts +4 -0
- package/dist/database/index.js +4 -0
- package/dist/email-templates/index.d.ts +51 -0
- package/dist/email-templates/index.js +57 -0
- package/dist/errors/Handler.d.ts +100 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +5 -0
- package/dist/events/EventServiceProvider.d.ts +82 -0
- package/dist/events/Listener.d.ts +28 -0
- package/dist/events/index.d.ts +80 -0
- package/dist/events/index.js +1 -0
- package/dist/excel/index.d.ts +154 -0
- package/dist/excel/index.js +1 -0
- package/dist/feature-flags/index.d.ts +158 -0
- package/dist/feature-flags/index.js +59 -0
- package/dist/forms/index.d.ts +81 -0
- package/dist/forms/index.js +1 -0
- package/dist/hashing/Hash.d.ts +51 -0
- package/dist/hashing/index.d.ts +1 -0
- package/dist/hashing/index.js +1 -0
- package/dist/hooks/index.d.ts +135 -0
- package/dist/hooks/index.js +5 -0
- package/dist/http/index.d.ts +201 -0
- package/dist/http/index.js +2 -0
- package/dist/i18n/index.d.ts +81 -0
- package/dist/i18n/index.js +1 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +127 -0
- package/dist/logging/LogViewer.d.ts +95 -0
- package/dist/logging/LogViewer.js +1 -0
- package/dist/logging/index.d.ts +83 -0
- package/dist/logging/index.js +3 -0
- package/dist/mail/index.d.ts +149 -0
- package/dist/mail/index.js +1 -0
- package/dist/middleware/Middleware.d.ts +208 -0
- package/dist/middleware/index.d.ts +1 -0
- package/dist/middleware/index.js +1 -0
- package/dist/notifications/index.d.ts +85 -0
- package/dist/notifications/index.js +2 -0
- package/dist/orm/Model.d.ts +123 -0
- package/dist/orm/Observer.d.ts +34 -0
- package/dist/orm/QueryBuilder.d.ts +119 -0
- package/dist/orm/Relationship.d.ts +58 -0
- package/dist/orm/index.d.ts +4 -0
- package/dist/orm/index.js +1 -0
- package/dist/pagination/index.d.ts +8 -0
- package/dist/pagination/index.js +0 -0
- package/dist/pdf/GeneratePdfJob.d.ts +99 -0
- package/dist/pdf/GeneratePdfJob.js +41 -0
- package/dist/pdf/index.d.ts +328 -0
- package/dist/pdf/index.js +41 -0
- package/dist/permissions/index.d.ts +161 -0
- package/dist/permissions/index.js +60 -0
- package/dist/plugins/BootstrapPlugins.d.ts +11 -0
- package/dist/plugins/PluginInstaller.d.ts +30 -0
- package/dist/plugins/PluginInstaller.js +1 -0
- package/dist/plugins/PluginPublisher.d.ts +32 -0
- package/dist/plugins/PluginPublisher.js +1 -0
- package/dist/plugins/PluginRegistry.d.ts +55 -0
- package/dist/plugins/PluginRegistry.js +1 -0
- package/dist/plugins/index.d.ts +206 -0
- package/dist/plugins/index.js +1 -0
- package/dist/queue/JobMonitor.d.ts +109 -0
- package/dist/queue/JobMonitor.js +5 -0
- package/dist/queue/index.d.ts +279 -0
- package/dist/queue/index.js +5 -0
- package/dist/repositories/index.d.ts +147 -0
- package/dist/repositories/index.js +1 -0
- package/dist/routing/Controller.d.ts +115 -0
- package/dist/routing/FormRequest.d.ts +94 -0
- package/dist/routing/Resource.d.ts +213 -0
- package/dist/routing/Response.d.ts +138 -0
- package/dist/routing/index.d.ts +4 -0
- package/dist/routing/index.js +5 -0
- package/dist/scheduler/ScheduleMonitor.d.ts +141 -0
- package/dist/scheduler/ScheduleMonitor.js +1 -0
- package/dist/scheduler/SchedulerLock.d.ts +33 -0
- package/dist/scheduler/index.d.ts +208 -0
- package/dist/scheduler/index.js +34 -0
- package/dist/services/index.d.ts +79 -0
- package/dist/services/index.js +1 -0
- package/dist/session/Session.d.ts +166 -0
- package/dist/session/index.d.ts +1 -0
- package/dist/session/index.js +16 -0
- package/dist/storage/index.d.ts +154 -0
- package/dist/storage/index.js +1 -0
- package/dist/support/Pipeline.d.ts +65 -0
- package/dist/support/date.d.ts +136 -0
- package/dist/support/date.js +1 -0
- package/dist/support/index.d.ts +8 -0
- package/dist/support/index.js +1 -0
- package/dist/support/singleton.d.ts +10 -0
- package/dist/support/uuid.d.ts +40 -0
- package/dist/teams/index.d.ts +91 -0
- package/dist/teams/index.js +78 -0
- package/dist/uploads/index.d.ts +63 -0
- package/dist/uploads/index.js +2 -0
- package/dist/validation/index.d.ts +46 -0
- package/dist/validation/index.js +1 -0
- package/dist/webhooks/index.d.ts +66 -0
- package/dist/webhooks/index.js +1 -0
- package/package.json +338 -0
- package/src/i18n/LanguageSwitcher.svelte +47 -0
- package/src/i18n/index.ts +113 -0
- package/src/ui/Alert.svelte +22 -0
- package/src/ui/Avatar.svelte +18 -0
- package/src/ui/AvatarFallback.svelte +18 -0
- package/src/ui/AvatarImage.svelte +12 -0
- package/src/ui/Badge.svelte +27 -0
- package/src/ui/Button.svelte +51 -0
- package/src/ui/Card.svelte +15 -0
- package/src/ui/CardContent.svelte +15 -0
- package/src/ui/CardDescription.svelte +15 -0
- package/src/ui/CardFooter.svelte +15 -0
- package/src/ui/CardHeader.svelte +15 -0
- package/src/ui/CardTitle.svelte +15 -0
- package/src/ui/Icon.svelte +81 -0
- package/src/ui/Input.svelte +40 -0
- package/src/ui/Label.svelte +20 -0
- package/src/ui/Separator.svelte +10 -0
- package/src/ui/Tabs.svelte +23 -0
- package/src/ui/TabsContent.svelte +27 -0
- package/src/ui/TabsList.svelte +19 -0
- package/src/ui/TabsTrigger.svelte +28 -0
- package/src/ui/Toaster.svelte +279 -0
- package/src/ui/index.ts +31 -0
- package/src/ui/toast.ts +212 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* key:generate — Generate a new APP_KEY and write it to .env
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class KeyGenerateCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
flags: {
|
|
9
|
+
name: string;
|
|
10
|
+
alias: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: "boolean";
|
|
13
|
+
default: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
handle(_args: string[], flags: Record<string, any>): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:action — Generate a new action class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeActionCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: "string";
|
|
13
|
+
}[];
|
|
14
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:broadcasting — Scaffold broadcasting routes and client setup
|
|
3
|
+
*
|
|
4
|
+
* Creates the Pusher/Soketi channel auth endpoint, the SSE streaming
|
|
5
|
+
* endpoint, and an example client-side initialization file.
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from '../Command.js';
|
|
8
|
+
export declare class MakeBroadcastingCommand extends Command {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
arguments: never[];
|
|
12
|
+
flags: ({
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
type: "boolean";
|
|
16
|
+
alias?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
name: string;
|
|
19
|
+
alias: string;
|
|
20
|
+
description: string;
|
|
21
|
+
type: "boolean";
|
|
22
|
+
})[];
|
|
23
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
24
|
+
private pusherAuthRoute;
|
|
25
|
+
private sseRoute;
|
|
26
|
+
private clientPusher;
|
|
27
|
+
private clientSSE;
|
|
28
|
+
private configTemplate;
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:channel — Generate a new broadcast channel authorization file
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeChannelCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "boolean";
|
|
14
|
+
}[];
|
|
15
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
16
|
+
private privateTemplate;
|
|
17
|
+
private presenceTemplate;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:command — Generate a new custom CLI command
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeCommandCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: "string";
|
|
13
|
+
}[];
|
|
14
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
15
|
+
private deriveCommandName;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:config — Generate a new configuration file
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeConfigCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
private templates;
|
|
11
|
+
handle(args: string[]): Promise<void>;
|
|
12
|
+
private blankTemplate;
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:controller — Generate a new controller
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeControllerCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: ({
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "boolean";
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
alias: string;
|
|
17
|
+
description: string;
|
|
18
|
+
type: "string";
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
type: "string";
|
|
23
|
+
alias?: undefined;
|
|
24
|
+
})[];
|
|
25
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
26
|
+
private generateResourceController;
|
|
27
|
+
private generateBasicController;
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:dashboard — Scaffold admin dashboard routes
|
|
3
|
+
*
|
|
4
|
+
* Creates API routes and dashboard page for monitoring:
|
|
5
|
+
* - System health
|
|
6
|
+
* - Job queue (BullMQ)
|
|
7
|
+
* - Scheduled tasks
|
|
8
|
+
* - Application logs
|
|
9
|
+
*/
|
|
10
|
+
import { Command } from '../Command.js';
|
|
11
|
+
export declare class MakeDashboardCommand extends Command {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
arguments: never[];
|
|
15
|
+
flags: {
|
|
16
|
+
name: string;
|
|
17
|
+
alias: string;
|
|
18
|
+
description: string;
|
|
19
|
+
type: "boolean";
|
|
20
|
+
}[];
|
|
21
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
22
|
+
private healthServerTemplate;
|
|
23
|
+
private queueServerTemplate;
|
|
24
|
+
private queueRetryServerTemplate;
|
|
25
|
+
private queueDeleteServerTemplate;
|
|
26
|
+
private schedulerServerTemplate;
|
|
27
|
+
private schedulerRunServerTemplate;
|
|
28
|
+
private schedulerToggleServerTemplate;
|
|
29
|
+
private logsServerTemplate;
|
|
30
|
+
private logsTailServerTemplate;
|
|
31
|
+
private statsServerTemplate;
|
|
32
|
+
private dashboardPageServerTemplate;
|
|
33
|
+
private dashboardPageSvelteTemplate;
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:docker — Generate Docker deployment files
|
|
3
|
+
*
|
|
4
|
+
* Creates Dockerfile, docker-compose.yml, .dockerignore, and PM2 ecosystem config.
|
|
5
|
+
*/
|
|
6
|
+
import { Command } from '../Command.js';
|
|
7
|
+
export declare class MakeDockerCommand extends Command {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
arguments: never[];
|
|
11
|
+
flags: ({
|
|
12
|
+
name: string;
|
|
13
|
+
alias: string;
|
|
14
|
+
description: string;
|
|
15
|
+
type: "string";
|
|
16
|
+
} | {
|
|
17
|
+
name: string;
|
|
18
|
+
alias: string;
|
|
19
|
+
description: string;
|
|
20
|
+
type: "boolean";
|
|
21
|
+
} | {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
type: "boolean";
|
|
25
|
+
alias?: undefined;
|
|
26
|
+
})[];
|
|
27
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
28
|
+
private dockerfileTemplate;
|
|
29
|
+
private composeTemplate;
|
|
30
|
+
private dockerignoreTemplate;
|
|
31
|
+
private pm2Template;
|
|
32
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:event — Generate a new Event class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeEventCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
handle(args: string[], _flags: Record<string, any>): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:job — Generate a new queue job class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeJobCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
handle(args: string[]): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:listener — Generate a new event Listener class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeListenerCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "string";
|
|
14
|
+
}[];
|
|
15
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:middleware — Generate a new middleware
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeMiddlewareCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
handle(args: string[]): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:migration — Generate a new migration file
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeMigrationCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: "string";
|
|
13
|
+
}[];
|
|
14
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
15
|
+
private detectTableName;
|
|
16
|
+
private toPascalCase;
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:model — Generate a new Model class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeModelCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: ({
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "boolean";
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
type: "string";
|
|
18
|
+
alias?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
21
|
+
private generateResourceController;
|
|
22
|
+
private generateBasicController;
|
|
23
|
+
private toSnakeCase;
|
|
24
|
+
private pluralize;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:observer — Generate a new Model Observer class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeObserverCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: ({
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "string";
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
type: "string";
|
|
18
|
+
alias?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
21
|
+
private toSnakeCase;
|
|
22
|
+
private pluralize;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:plugin — Generate a new plugin class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakePluginCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
handle(args: string[]): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:provider — Generate a new service provider
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeProviderCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
handle(args: string[]): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:repository — Generate a new repository class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeRepositoryCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: ({
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "string";
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
type: "string";
|
|
18
|
+
alias?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
21
|
+
private inferModelName;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:request — Generate a new FormRequest (DTO) class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeRequestCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: "string";
|
|
13
|
+
}[];
|
|
14
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:resource — Generate a new API Resource (response transformer)
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeResourceCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: ({
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: "string";
|
|
13
|
+
alias?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
alias: string;
|
|
17
|
+
description: string;
|
|
18
|
+
type: "string";
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
alias: string;
|
|
22
|
+
description: string;
|
|
23
|
+
type: "boolean";
|
|
24
|
+
})[];
|
|
25
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
26
|
+
private generateResource;
|
|
27
|
+
private generateCollectionResource;
|
|
28
|
+
private deriveModuleName;
|
|
29
|
+
private inferModelName;
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:route — Generate SvelteKit route files with controller wiring
|
|
3
|
+
*
|
|
4
|
+
* Creates +server.ts files in src/routes/ with proper controller bindings.
|
|
5
|
+
* Never overwrites existing files.
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from '../Command.js';
|
|
8
|
+
export declare class MakeRouteCommand extends Command {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
arguments: string[];
|
|
12
|
+
flags: ({
|
|
13
|
+
name: string;
|
|
14
|
+
alias: string;
|
|
15
|
+
description: string;
|
|
16
|
+
type: "string";
|
|
17
|
+
} | {
|
|
18
|
+
name: string;
|
|
19
|
+
alias: string;
|
|
20
|
+
description: string;
|
|
21
|
+
type: "boolean";
|
|
22
|
+
} | {
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
type: "boolean";
|
|
26
|
+
alias?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
type: "string";
|
|
31
|
+
alias?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
34
|
+
private generateResourceRoutes;
|
|
35
|
+
private generateRoute;
|
|
36
|
+
private generateRouteFile;
|
|
37
|
+
private inferControllerName;
|
|
38
|
+
private inferModuleName;
|
|
39
|
+
private inferParamName;
|
|
40
|
+
private defaultHandler;
|
|
41
|
+
private singularize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:schema — Generate a Zod contract schema for a domain entity
|
|
3
|
+
*
|
|
4
|
+
* Creates a .schema.ts file with Zod schemas and inferred types that serve
|
|
5
|
+
* as the single source of truth for validation, resources, DTOs, and frontend types.
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from '../Command.js';
|
|
8
|
+
export declare class MakeSchemaCommand extends Command {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
arguments: string[];
|
|
12
|
+
flags: {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
type: "string";
|
|
16
|
+
}[];
|
|
17
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
18
|
+
private generateSchema;
|
|
19
|
+
private toKebab;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:seeder — Generate a new database seeder
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeSeederCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
handle(args: string[]): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:service — Generate a new service class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeServiceCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: ({
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: "boolean";
|
|
13
|
+
alias?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
alias: string;
|
|
17
|
+
description: string;
|
|
18
|
+
type: "string";
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
type: "string";
|
|
23
|
+
alias?: undefined;
|
|
24
|
+
})[];
|
|
25
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
26
|
+
private generateCrudService;
|
|
27
|
+
private generateBasicService;
|
|
28
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:task — Generate a new scheduled task class
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeTaskCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: never[];
|
|
10
|
+
handle(args: string[]): Promise<void>;
|
|
11
|
+
private toKebabCase;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* migrate — Run database migrations
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MigrateCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
flags: {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
type: "boolean";
|
|
12
|
+
}[];
|
|
13
|
+
/** Destructive flags that require --force in production */
|
|
14
|
+
private destructiveFlags;
|
|
15
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Check if the current environment is production.
|
|
18
|
+
* Checks NODE_ENV and APP_ENV (Laravel convention).
|
|
19
|
+
*/
|
|
20
|
+
private isProduction;
|
|
21
|
+
/**
|
|
22
|
+
* Print a warning when running a destructive command (even outside production).
|
|
23
|
+
*/
|
|
24
|
+
private warnDestructive;
|
|
25
|
+
private loadMigrations;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Svelar CLI — `new` command
|
|
3
|
+
*
|
|
4
|
+
* Scaffolds a complete SvelteKit + Svelar SaaS project with auth,
|
|
5
|
+
* dashboard, admin panel, jobs, tasks, and 90+ API endpoints.
|
|
6
|
+
* Usage: npx svelar new my-app
|
|
7
|
+
*/
|
|
8
|
+
import { Command } from '../Command.js';
|
|
9
|
+
export declare class NewCommand extends Command {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
arguments: string[];
|
|
13
|
+
flags: {
|
|
14
|
+
name: string;
|
|
15
|
+
alias: string;
|
|
16
|
+
description: string;
|
|
17
|
+
type: "boolean";
|
|
18
|
+
default: boolean;
|
|
19
|
+
}[];
|
|
20
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
21
|
+
}
|