@orieljs/framework 0.1.0-alpha.4 → 0.1.0-alpha.5
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/{chunk-3DETYZMZ.js → chunk-A5XRLEWM.js} +3 -3
- package/dist/{chunk-WSGWYXAO.js → chunk-BSQKOLSK.js} +3 -1
- package/dist/chunk-BSQKOLSK.js.map +1 -0
- package/dist/{chunk-DCI2T7WJ.js → chunk-PM5YTG57.js} +117 -3
- package/dist/chunk-PM5YTG57.js.map +1 -0
- package/dist/{chunk-SBZQ6L3Z.js → chunk-WNJP46B7.js} +563 -73
- package/dist/chunk-WNJP46B7.js.map +1 -0
- package/dist/contracts.d.ts +43 -1
- package/dist/contracts.js +3 -1
- package/dist/index.d.ts +391 -52
- package/dist/index.js +610 -144
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime.js +3 -3
- package/dist/{testing-D3dCOkTm.d.ts → testing-BErengYY.d.ts} +89 -12
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +3 -3
- package/package.json +30 -30
- package/dist/chunk-DCI2T7WJ.js.map +0 -1
- package/dist/chunk-SBZQ6L3Z.js.map +0 -1
- package/dist/chunk-WSGWYXAO.js.map +0 -1
- /package/dist/{chunk-3DETYZMZ.js.map → chunk-A5XRLEWM.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as ClassRegistry$3, a as Class$j, S as ServiceProvider$u, A as Application$c, b as Abstract$j, c as ConfigRepository$3 } from './index.d-DOlTeG-8.js';
|
|
2
|
-
import { Token as Token$j, ServiceProviderClass as ServiceProviderClass$a } from './contracts.js';
|
|
2
|
+
import { Token as Token$j, ServiceProviderClass as ServiceProviderClass$a, Notification as Notification$4 } from './contracts.js';
|
|
3
3
|
export { InertiaPage, RouteList, RouteName } from './contracts.js';
|
|
4
|
-
import { T as Target, B as BusFake, E as EventFake, M as MailFake, N as NotificationFake, Q as QueueFake, F as FakeDisk } from './testing-
|
|
5
|
-
export { C as Component, a as ComponentResult, b as Computed, c as CorruptComponentPayloadError, d as ErrorBag, I as InvalidLiveRequestError, L as Live, e as LiveComponentManager, f as LiveComponentNotFoundError, g as LiveError, h as LiveProps, i as LiveServiceProvider, j as Locked, k as MethodNotCallableError, O as On, P as PERSISTENT_MIDDLEWARE, l as
|
|
4
|
+
import { T as Target, B as BusFake, E as EventFake, M as MailFake, N as NotificationFake, Q as QueueFake, F as FakeDisk } from './testing-BErengYY.js';
|
|
5
|
+
export { C as Component, a as ComponentResult, b as Computed, c as CorruptComponentPayloadError, d as ErrorBag, I as InvalidLiveRequestError, L as Live, e as LiveComponentManager, f as LiveComponentNotFoundError, g as LiveError, h as LiveProps, i as LiveServiceProvider, j as Locked, k as MethodNotCallableError, O as On, P as PERSISTENT_MIDDLEWARE, l as Paginated, m as Pagination, n as PaginationProps, o as PaginationSource, p as PendingEvent, q as PersistentMiddleware, r as PropertyNotUpdatableError, s as TestRequestScope, t as Testable, U as UPDATE_URI, W as WithPagination, u as componentName, v as live, w as persistentMiddleware } from './testing-BErengYY.js';
|
|
6
6
|
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
7
7
|
import { Kysely, RawBuilder, CompiledQuery, QueryResult, SqliteDatabase, SqliteStatement, Dialect } from 'kysely';
|
|
8
8
|
import Redis$1, { Redis } from 'ioredis';
|
|
@@ -679,7 +679,7 @@ declare class ApplicationBuilder {
|
|
|
679
679
|
type LifecycleCallback = (app: Application$b) => void | Promise<void>;
|
|
680
680
|
declare class Application$a extends Container$h implements Application$b {
|
|
681
681
|
private readonly base;
|
|
682
|
-
readonly version = "0.1.0-alpha.
|
|
682
|
+
readonly version = "0.1.0-alpha.5";
|
|
683
683
|
private readonly providers;
|
|
684
684
|
private readonly bootingCallbacks;
|
|
685
685
|
private readonly bootedCallbacks;
|
|
@@ -877,6 +877,11 @@ interface OrielError$i extends Error {
|
|
|
877
877
|
|
|
878
878
|
/** Options a job class may declare as public fields. Their presence (or implementing ShouldQueue) makes things queueable. */
|
|
879
879
|
interface ShouldQueue$5 {
|
|
880
|
+
/**
|
|
881
|
+
* Marks the class as queued at run time: `implements ShouldQueue` leaves no trace once compiled, so the interface
|
|
882
|
+
* asks for `readonly shouldQueue = true`. Jobs, listeners, mailables and notifications carrying it are queued.
|
|
883
|
+
*/
|
|
884
|
+
readonly shouldQueue: true;
|
|
880
885
|
connection?: string;
|
|
881
886
|
queue?: string;
|
|
882
887
|
/** Seconds. */
|
|
@@ -1055,18 +1060,11 @@ declare class MailNotificationChannel implements NotificationChannel {
|
|
|
1055
1060
|
}
|
|
1056
1061
|
|
|
1057
1062
|
declare const NOTIFICATIONS_TABLE = "notifications";
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
readonly updatedAt: Date;
|
|
1064
|
-
readAt: Date | undefined;
|
|
1065
|
-
markAsRead(): Promise<void>;
|
|
1066
|
-
markAsUnread(): Promise<void>;
|
|
1067
|
-
}
|
|
1068
|
-
/** notifiable_type + notifiable_id together, never id alone. */
|
|
1069
|
-
declare function fetchNotifications(notifiableType: string, notifiableId: unknown, filter?: 'all' | 'read' | 'unread'): Promise<DatabaseNotificationRecord[]>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Laravel's DatabaseChannel: one row in `notifications` per notifiable, with what toDatabase() (or toArray())
|
|
1065
|
+
* returns as JSON. The row is keyed as `user.notifications()` reads it: `notifiable_type` is the model's morph class
|
|
1066
|
+
* (its morph map alias, else its class name) and it goes to the model's own connection.
|
|
1067
|
+
*/
|
|
1070
1068
|
declare class DatabaseNotificationChannel implements NotificationChannel {
|
|
1071
1069
|
send(notifiable: Notifiable$2, notification: Notification$3): Promise<void>;
|
|
1072
1070
|
}
|
|
@@ -1142,19 +1140,17 @@ declare class SendQueuedNotifications implements Job$5 {
|
|
|
1142
1140
|
|
|
1143
1141
|
type NotifiableConstructor = new (...args: any[]) => object;
|
|
1144
1142
|
/**
|
|
1145
|
-
*
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1148
|
-
* (
|
|
1143
|
+
* Laravel's RoutesNotifications trait: `notify()`, `notifyNow()` and `routeNotificationFor()`. Apps use
|
|
1144
|
+
* `Notifiable` from '@orieljs/framework', which adds the database notifications relations. Custom routing per
|
|
1145
|
+
* channel follows Laravel's order: a `routeNotificationFor<Channel>()` method (Studly name) wins if present, else
|
|
1146
|
+
* 'mail' reads `email`/`getAttribute('email')`, 'database' returns the instance itself (the database channel derives
|
|
1147
|
+
* the row from it), and anything else is unrouted (`undefined`).
|
|
1149
1148
|
*/
|
|
1150
|
-
declare function
|
|
1149
|
+
declare function RoutesNotifications<TBase extends NotifiableConstructor>(Base: TBase): {
|
|
1151
1150
|
new (...args: any[]): {
|
|
1152
1151
|
routeNotificationFor(channel: string, notification: Notification$3): unknown;
|
|
1153
1152
|
notify(notification: Notification$3): Promise<void>;
|
|
1154
1153
|
notifyNow(notification: Notification$3, channels?: string[]): Promise<void>;
|
|
1155
|
-
notifications(): Promise<DatabaseNotificationRecord[]>;
|
|
1156
|
-
unreadNotifications(): Promise<DatabaseNotificationRecord[]>;
|
|
1157
|
-
readNotifications(): Promise<DatabaseNotificationRecord[]>;
|
|
1158
1154
|
};
|
|
1159
1155
|
} & TBase;
|
|
1160
1156
|
|
|
@@ -1798,6 +1794,12 @@ declare class BaseRouter implements Router$1 {
|
|
|
1798
1794
|
getPatternVersion(): number;
|
|
1799
1795
|
getBinder(parameter: string): RouteBinder | undefined;
|
|
1800
1796
|
getModel(parameter: string): Class$e<unknown> | undefined;
|
|
1797
|
+
/**
|
|
1798
|
+
* Binds a matched route's raw parameter values as a request to it would: Route.bind() callbacks, Route.model(),
|
|
1799
|
+
* then implicit binding through the RouteModelResolver of `container`. A missing model throws
|
|
1800
|
+
* RouteModelNotFoundError (404). Live uses it to check a page route's `can:` middleware again on each update.
|
|
1801
|
+
*/
|
|
1802
|
+
substituteBindings(route: RouteDefinition, values: Readonly<Record<string, string | undefined>>, container: Container$e): Promise<Record<string, unknown>>;
|
|
1801
1803
|
aliasMiddleware(name: string, middleware: MiddlewareClass$1): this;
|
|
1802
1804
|
/** The middleware aliases (Laravel's Router::getMiddleware()). */
|
|
1803
1805
|
getMiddleware(): Record<string, MiddlewareClass$1>;
|
|
@@ -2008,6 +2010,29 @@ declare function toResponse(request: unknown, value: unknown): Promise<Response>
|
|
|
2008
2010
|
*/
|
|
2009
2011
|
declare const Route$1: Facade$a<BaseRouter, object>;
|
|
2010
2012
|
|
|
2013
|
+
/**
|
|
2014
|
+
* Dispatched by the health route (`/up`) on every request (Laravel's DiagnosingHealth event). A listener checks
|
|
2015
|
+
* something the application needs, such as the database or the cache, and throws when it fails: `/up` then answers
|
|
2016
|
+
* 500 with "Application experiencing problems", and the exception is reported.
|
|
2017
|
+
*
|
|
2018
|
+
* Event.listen(DiagnosingHealth, async () => { await DB.select('select 1') })
|
|
2019
|
+
*/
|
|
2020
|
+
declare class DiagnosingHealth {
|
|
2021
|
+
}
|
|
2022
|
+
interface HealthPage {
|
|
2023
|
+
/** False when a check failed: the page says so and the status is 500 (default true). */
|
|
2024
|
+
healthy?: boolean;
|
|
2025
|
+
/** How long the request took, shown when given. */
|
|
2026
|
+
milliseconds?: number;
|
|
2027
|
+
/** The page title (default "Oriel"). */
|
|
2028
|
+
appName?: string;
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* The health route's page (Laravel's health-up view): "Application up", or "Application experiencing problems" with
|
|
2032
|
+
* status 500. Self-contained HTML with inline CSS: it loads nothing, so it answers even when the assets don't.
|
|
2033
|
+
*/
|
|
2034
|
+
declare function healthResponse(page?: HealthPage): Response;
|
|
2035
|
+
|
|
2011
2036
|
/** A route file may export a function instead of (or as well as) calling the Route facade at the top level. */
|
|
2012
2037
|
type RouteFileCallback = (router: Router$1) => void | Promise<void>;
|
|
2013
2038
|
/**
|
|
@@ -2016,13 +2041,12 @@ type RouteFileCallback = (router: Router$1) => void | Promise<void>;
|
|
|
2016
2041
|
* A default export that is a function is called with the router.
|
|
2017
2042
|
*/
|
|
2018
2043
|
declare function loadRoutesFrom(app: Application$7, router: Router$1, file: string): Promise<void>;
|
|
2019
|
-
/** The health route's page (Laravel's `/up`): 200 as long as the application boots and handles requests. */
|
|
2020
|
-
declare function healthResponse(): Response;
|
|
2021
2044
|
|
|
2022
2045
|
/**
|
|
2023
2046
|
* Binds the Router and the UrlGenerator, registers the `signed` and `throttle` middleware, and once the app has booted
|
|
2024
|
-
* loads the files given to withRouting(): the health URI, then the web files in the
|
|
2025
|
-
* api files under the api prefix in the `api` group (Laravel's
|
|
2047
|
+
* loads the files given to withRouting(): the health URI (which dispatches DiagnosingHealth), then the web files in the
|
|
2048
|
+
* `web` middleware group, then the api files under the api prefix in the `api` group (Laravel's
|
|
2049
|
+
* ApplicationBuilder::withRouting).
|
|
2026
2050
|
*/
|
|
2027
2051
|
declare class RoutingServiceProvider extends ServiceProvider$o {
|
|
2028
2052
|
#private;
|
|
@@ -2494,6 +2518,63 @@ declare abstract class ServiceProvider$m implements ServiceProvider$u {
|
|
|
2494
2518
|
protected mergeConfigFrom(defaults: Record<string, unknown>, key: string): void;
|
|
2495
2519
|
}
|
|
2496
2520
|
|
|
2521
|
+
/**
|
|
2522
|
+
* What a file's bytes show it to be, read from its leading bytes the way PHP's finfo reads them for Laravel (the file
|
|
2523
|
+
* validation rules, and the extension a stored upload gets). The client's file name and MIME type are never consulted.
|
|
2524
|
+
*/
|
|
2525
|
+
interface DetectedType {
|
|
2526
|
+
/** 'image/png', 'text/plain', …; 'application/octet-stream' when no format matches, 'application/x-empty' for no bytes. */
|
|
2527
|
+
readonly mime: string;
|
|
2528
|
+
/** The extensions that name the type, the usual one first. Empty when the bytes match no format. */
|
|
2529
|
+
readonly extensions: readonly string[];
|
|
2530
|
+
}
|
|
2531
|
+
declare const JPEG: DetectedType;
|
|
2532
|
+
declare const PNG: DetectedType;
|
|
2533
|
+
declare const GIF: DetectedType;
|
|
2534
|
+
declare const WEBP: DetectedType;
|
|
2535
|
+
declare const AVIF: DetectedType;
|
|
2536
|
+
declare const BMP: DetectedType;
|
|
2537
|
+
declare const SVG: DetectedType;
|
|
2538
|
+
declare const PDF: DetectedType;
|
|
2539
|
+
declare const HTML: DetectedType;
|
|
2540
|
+
declare const XML: DetectedType;
|
|
2541
|
+
declare const TEXT: DetectedType;
|
|
2542
|
+
declare const UNKNOWN: DetectedType;
|
|
2543
|
+
declare const EMPTY: DetectedType;
|
|
2544
|
+
/** The raster formats the image rule accepts: Laravel 12's jpg, jpeg, png, gif, bmp and webp, plus AVIF. */
|
|
2545
|
+
declare const RASTER_IMAGES: ReadonlySet<string>;
|
|
2546
|
+
/** Every format recognised by its bytes other than plain text. */
|
|
2547
|
+
declare const BINARY_AND_MARKUP_TYPES: readonly DetectedType[];
|
|
2548
|
+
/**
|
|
2549
|
+
* How much of a file is read to tell its type: the window checked for binary bytes (libmagic reads its first megabyte
|
|
2550
|
+
* too). Uploads read this much to be named, so naming and validation see the same bytes.
|
|
2551
|
+
*/
|
|
2552
|
+
declare const SNIFF_BYTES: number;
|
|
2553
|
+
/** The type the bytes show. */
|
|
2554
|
+
declare function detectFileType(bytes: Uint8Array): DetectedType;
|
|
2555
|
+
|
|
2556
|
+
declare const fileType_AVIF: typeof AVIF;
|
|
2557
|
+
declare const fileType_BINARY_AND_MARKUP_TYPES: typeof BINARY_AND_MARKUP_TYPES;
|
|
2558
|
+
declare const fileType_BMP: typeof BMP;
|
|
2559
|
+
type fileType_DetectedType = DetectedType;
|
|
2560
|
+
declare const fileType_EMPTY: typeof EMPTY;
|
|
2561
|
+
declare const fileType_GIF: typeof GIF;
|
|
2562
|
+
declare const fileType_HTML: typeof HTML;
|
|
2563
|
+
declare const fileType_JPEG: typeof JPEG;
|
|
2564
|
+
declare const fileType_PDF: typeof PDF;
|
|
2565
|
+
declare const fileType_PNG: typeof PNG;
|
|
2566
|
+
declare const fileType_RASTER_IMAGES: typeof RASTER_IMAGES;
|
|
2567
|
+
declare const fileType_SNIFF_BYTES: typeof SNIFF_BYTES;
|
|
2568
|
+
declare const fileType_SVG: typeof SVG;
|
|
2569
|
+
declare const fileType_TEXT: typeof TEXT;
|
|
2570
|
+
declare const fileType_UNKNOWN: typeof UNKNOWN;
|
|
2571
|
+
declare const fileType_WEBP: typeof WEBP;
|
|
2572
|
+
declare const fileType_XML: typeof XML;
|
|
2573
|
+
declare const fileType_detectFileType: typeof detectFileType;
|
|
2574
|
+
declare namespace fileType {
|
|
2575
|
+
export { fileType_AVIF as AVIF, fileType_BINARY_AND_MARKUP_TYPES as BINARY_AND_MARKUP_TYPES, fileType_BMP as BMP, type fileType_DetectedType as DetectedType, fileType_EMPTY as EMPTY, fileType_GIF as GIF, fileType_HTML as HTML, fileType_JPEG as JPEG, fileType_PDF as PDF, fileType_PNG as PNG, fileType_RASTER_IMAGES as RASTER_IMAGES, fileType_SNIFF_BYTES as SNIFF_BYTES, fileType_SVG as SVG, fileType_TEXT as TEXT, fileType_UNKNOWN as UNKNOWN, fileType_WEBP as WEBP, fileType_XML as XML, fileType_detectFileType as detectFileType };
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2497
2578
|
/**
|
|
2498
2579
|
* Whether a JSON text nests objects and arrays deeper than `maxDepth`, found by scanning (no parsing, no recursion):
|
|
2499
2580
|
* brackets inside strings don't count. The kernel answers 400 for such bodies (http.max_json_depth) before the
|
|
@@ -2557,13 +2638,26 @@ declare function clientAddress(request: Request): string | undefined;
|
|
|
2557
2638
|
/** An uploaded file from a multipart body. store()/storeAs() go through the FilesystemManager. */
|
|
2558
2639
|
declare class FormUploadedFile implements UploadedFile$5 {
|
|
2559
2640
|
private readonly file;
|
|
2641
|
+
private readonly detected?;
|
|
2560
2642
|
readonly clientName: string;
|
|
2561
2643
|
readonly mimeType: string;
|
|
2562
2644
|
readonly size: number;
|
|
2645
|
+
/**
|
|
2646
|
+
* Reads the leading bytes first, so extension(), hashName() and store() name the file by its content. The request
|
|
2647
|
+
* builds its uploads this way.
|
|
2648
|
+
*/
|
|
2649
|
+
static fromFile(file: Blob & {
|
|
2650
|
+
readonly name?: string;
|
|
2651
|
+
}): Promise<FormUploadedFile>;
|
|
2563
2652
|
constructor(file: Blob & {
|
|
2564
2653
|
readonly name?: string;
|
|
2565
|
-
});
|
|
2566
|
-
/**
|
|
2654
|
+
}, detected?: fileType.DetectedType | undefined);
|
|
2655
|
+
/**
|
|
2656
|
+
* Laravel's extension(): the type the bytes show (guessExtension()), when they were read and match a known format.
|
|
2657
|
+
* Text and bytes no format matches keep the client's claim (its MIME type, else its file name) when it is a plain
|
|
2658
|
+
* extension, unless it names a format the bytes would have shown or one a browser renders or runs: otherwise 'txt'
|
|
2659
|
+
* for text, '' for the rest. Unread (built directly), the client's claim when it is a plain extension, else ''.
|
|
2660
|
+
*/
|
|
2567
2661
|
extension(): string;
|
|
2568
2662
|
clientExtension(): string;
|
|
2569
2663
|
/** A random 40-character name with the guessed extension. */
|
|
@@ -3101,6 +3195,11 @@ interface OrielError$e extends Error {
|
|
|
3101
3195
|
|
|
3102
3196
|
/** Options a job class may declare as public fields. Their presence (or implementing ShouldQueue) makes things queueable. */
|
|
3103
3197
|
interface ShouldQueue$4 {
|
|
3198
|
+
/**
|
|
3199
|
+
* Marks the class as queued at run time: `implements ShouldQueue` leaves no trace once compiled, so the interface
|
|
3200
|
+
* asks for `readonly shouldQueue = true`. Jobs, listeners, mailables and notifications carrying it are queued.
|
|
3201
|
+
*/
|
|
3202
|
+
readonly shouldQueue: true;
|
|
3104
3203
|
connection?: string;
|
|
3105
3204
|
queue?: string;
|
|
3106
3205
|
/** Seconds. */
|
|
@@ -3956,6 +4055,8 @@ interface ModelInstance$2 {
|
|
|
3956
4055
|
getTable(): string;
|
|
3957
4056
|
getRouteKey(): unknown;
|
|
3958
4057
|
getRouteKeyName(): string;
|
|
4058
|
+
/** The value stored in a polymorphic `*_type` column for this model: its morph map alias, else its class name. */
|
|
4059
|
+
getMorphClass(): string;
|
|
3959
4060
|
getAttribute<T = unknown>(key: string): T;
|
|
3960
4061
|
setAttribute(key: string, value: unknown): this;
|
|
3961
4062
|
fill(attributes: Row$4): this;
|
|
@@ -4008,6 +4109,28 @@ interface ConsoleKernel$3 {
|
|
|
4008
4109
|
command(signature: string, handler: (this: CommandContext$3, ...args: unknown[]) => number | void | Promise<number | void>): ClosureCommand$3;
|
|
4009
4110
|
}
|
|
4010
4111
|
declare const ConsoleKernel$3: Token$j<ConsoleKernel$3>;
|
|
4112
|
+
/**
|
|
4113
|
+
* A stored database notification (Laravel's DatabaseNotification model): one row of the `notifications` table, with
|
|
4114
|
+
* its snake_case columns. `user.notifications()`, `unreadNotifications()` and `readNotifications()` query these,
|
|
4115
|
+
* newest first.
|
|
4116
|
+
*/
|
|
4117
|
+
interface DatabaseNotification$1 extends ModelInstance$2 {
|
|
4118
|
+
/** A UUID. */
|
|
4119
|
+
readonly id: string;
|
|
4120
|
+
/** The notification's class name. */
|
|
4121
|
+
readonly type: string;
|
|
4122
|
+
/** What the notification's toDatabase() (or toArray()) returned. */
|
|
4123
|
+
readonly data: Record<string, unknown>;
|
|
4124
|
+
read_at: Date | null;
|
|
4125
|
+
readonly created_at: Date | null;
|
|
4126
|
+
readonly updated_at: Date | null;
|
|
4127
|
+
/** Sets read_at to now and saves, unless it is already read. */
|
|
4128
|
+
markAsRead(): Promise<void>;
|
|
4129
|
+
/** Clears read_at and saves, unless it is already unread. */
|
|
4130
|
+
markAsUnread(): Promise<void>;
|
|
4131
|
+
read(): boolean;
|
|
4132
|
+
unread(): boolean;
|
|
4133
|
+
}
|
|
4011
4134
|
|
|
4012
4135
|
type Operator$4 = '=' | '==' | '===' | '!=' | '!==' | '<>' | '<' | '<=' | '>' | '>=';
|
|
4013
4136
|
|
|
@@ -4773,7 +4896,10 @@ declare class LengthAwarePaginator<T> extends AbstractPaginator<T> {
|
|
|
4773
4896
|
hasMorePages(): boolean;
|
|
4774
4897
|
onLastPage(): boolean;
|
|
4775
4898
|
nextPageUrl(): string | null;
|
|
4776
|
-
/**
|
|
4899
|
+
/**
|
|
4900
|
+
* The page links Laravel renders: previous, the page window with '...' gaps, next. The labels are plain text
|
|
4901
|
+
* ("« Previous", "Next »"), not Laravel's `«` entities, so a page can print them as text.
|
|
4902
|
+
*/
|
|
4777
4903
|
linkCollection(): PaginationLink[];
|
|
4778
4904
|
/** Laravel's UrlWindow: the first pages, the slider around the current page and the last pages, with '...' between. */
|
|
4779
4905
|
protected elements(): Array<UrlRange | '...'>;
|
|
@@ -4820,6 +4946,13 @@ declare class Grammar {
|
|
|
4820
4946
|
compileOrders(query: Builder$1<unknown>): Sql | undefined;
|
|
4821
4947
|
compileWheres(wheres: readonly Where[], keyword?: 'where' | 'on'): Sql | undefined;
|
|
4822
4948
|
compileWhere(where: Where): Sql;
|
|
4949
|
+
/**
|
|
4950
|
+
* whereLike() per driver, as Laravel 12's grammars: Postgres compares the column as text with ilike (like when
|
|
4951
|
+
* case-sensitive); MySQL uses like (like binary); SQLite uses like, or glob with the pattern translated.
|
|
4952
|
+
*/
|
|
4953
|
+
compileWhereLike(where: Extract<Where, {
|
|
4954
|
+
type: 'like';
|
|
4955
|
+
}>): Sql;
|
|
4823
4956
|
compileJoin(joinClause: JoinClause): Sql;
|
|
4824
4957
|
compileHavings(havings: readonly Having[]): Sql | undefined;
|
|
4825
4958
|
compileLimitOffset(limit: number | undefined, offset: number | undefined): Sql | undefined;
|
|
@@ -4867,6 +5000,13 @@ type Where = {
|
|
|
4867
5000
|
values: readonly [unknown, unknown];
|
|
4868
5001
|
not: boolean;
|
|
4869
5002
|
boolean: WhereBoolean;
|
|
5003
|
+
} | {
|
|
5004
|
+
type: 'like';
|
|
5005
|
+
column: ColumnRef;
|
|
5006
|
+
value: string;
|
|
5007
|
+
caseSensitive: boolean;
|
|
5008
|
+
not: boolean;
|
|
5009
|
+
boolean: WhereBoolean;
|
|
4870
5010
|
} | {
|
|
4871
5011
|
type: 'column';
|
|
4872
5012
|
first: ColumnRef;
|
|
@@ -4909,6 +5049,8 @@ type SelectColumn = ColumnRef | {
|
|
|
4909
5049
|
as: string;
|
|
4910
5050
|
};
|
|
4911
5051
|
type NestedCallback<Q> = (query: Q) => unknown;
|
|
5052
|
+
/** The value when()'s callback receives: the condition's type without its falsy members. */
|
|
5053
|
+
type Truthy<V> = Exclude<V, false | 0 | 0n | '' | null | undefined>;
|
|
4912
5054
|
/** The key a selected column comes back under: 'users.name' → 'name', 'name as n' → 'n'. */
|
|
4913
5055
|
declare function columnKey(column: string): string;
|
|
4914
5056
|
/**
|
|
@@ -4959,6 +5101,16 @@ declare class Builder$1<T = Row$4> implements QueryBuilder$4<T> {
|
|
|
4959
5101
|
whereBetween(column: ColumnRef, values: readonly [unknown, unknown]): this;
|
|
4960
5102
|
orWhereBetween(column: ColumnRef, values: readonly [unknown, unknown]): this;
|
|
4961
5103
|
whereNotBetween(column: ColumnRef, values: readonly [unknown, unknown]): this;
|
|
5104
|
+
/**
|
|
5105
|
+
* Laravel's whereLike(): the value is the pattern, `%` and `_` included (`whereLike('title', `%${term}%`)`).
|
|
5106
|
+
* Case-insensitive unless caseSensitive: ilike on Postgres, like on MySQL and SQLite (their like already ignores
|
|
5107
|
+
* case: MySQL through the column's collation, SQLite for ASCII letters). Case-sensitive is like on Postgres,
|
|
5108
|
+
* like binary on MySQL and glob on SQLite.
|
|
5109
|
+
*/
|
|
5110
|
+
whereLike(column: ColumnRef, value: string, caseSensitive?: boolean, boolean?: WhereBoolean, not?: boolean): this;
|
|
5111
|
+
orWhereLike(column: ColumnRef, value: string, caseSensitive?: boolean): this;
|
|
5112
|
+
whereNotLike(column: ColumnRef, value: string, caseSensitive?: boolean, boolean?: WhereBoolean): this;
|
|
5113
|
+
orWhereNotLike(column: ColumnRef, value: string, caseSensitive?: boolean): this;
|
|
4962
5114
|
/** Compares two columns: whereColumn('updated_at', '>', 'created_at'). */
|
|
4963
5115
|
whereColumn(first: ColumnRef, operatorOrSecond: string, second?: ColumnRef, boolean?: WhereBoolean): this;
|
|
4964
5116
|
orWhereColumn(first: ColumnRef, operatorOrSecond: string, second?: ColumnRef): this;
|
|
@@ -4993,8 +5145,20 @@ declare class Builder$1<T = Row$4> implements QueryBuilder$4<T> {
|
|
|
4993
5145
|
forPage(page: number, perPage?: number): this;
|
|
4994
5146
|
lockForUpdate(): this;
|
|
4995
5147
|
sharedLock(): this;
|
|
4996
|
-
/**
|
|
4997
|
-
|
|
5148
|
+
/**
|
|
5149
|
+
* Laravel's when(): callback(query, value) runs when the value is truthy, otherwise(query, value) when it is falsy.
|
|
5150
|
+
* A function value is called with the query first and its result is the value. Truthiness is JavaScript's, so `'0'`
|
|
5151
|
+
* and `[]` are truthy: a `?active=0` filter applies, where Laravel would skip it. Returns the query; what the
|
|
5152
|
+
* callbacks return is ignored.
|
|
5153
|
+
*
|
|
5154
|
+
* @example
|
|
5155
|
+
* Post.query().when(request.query('q'), (query, q) => query.whereLike('title', `%${q}%`))
|
|
5156
|
+
*/
|
|
5157
|
+
when<V>(value: (query: this) => V, callback: (query: this, value: Truthy<V>) => unknown, otherwise?: (query: this, value: V) => unknown): this;
|
|
5158
|
+
when<V>(value: V, callback: (query: this, value: Truthy<V>) => unknown, otherwise?: (query: this, value: V) => unknown): this;
|
|
5159
|
+
/** Laravel's unless(): when() with the condition reversed. callback(query, value) runs when the value is falsy. */
|
|
5160
|
+
unless<V>(value: (query: this) => V, callback: (query: this, value: V) => unknown, otherwise?: (query: this, value: Truthy<V>) => unknown): this;
|
|
5161
|
+
unless<V>(value: V, callback: (query: this, value: V) => unknown, otherwise?: (query: this, value: Truthy<V>) => unknown): this;
|
|
4998
5162
|
tap(callback: (query: this) => unknown): this;
|
|
4999
5163
|
get(): Promise<Collection<T>>;
|
|
5000
5164
|
/** The raw rows, without a Collection around them. */
|
|
@@ -5315,6 +5479,10 @@ declare class Builder<M extends Model = Model> extends Builder$1<M> {
|
|
|
5315
5479
|
whereNull(columns: Column<M> | Expression | Array<Column<M> | Expression>): this;
|
|
5316
5480
|
whereNotNull(columns: Column<M> | Expression | Array<Column<M> | Expression>): this;
|
|
5317
5481
|
whereBetween(column: Column<M> | Expression, values: readonly [unknown, unknown]): this;
|
|
5482
|
+
whereLike(column: Column<M> | Expression, value: string, caseSensitive?: boolean, boolean?: WhereBoolean, not?: boolean): this;
|
|
5483
|
+
orWhereLike(column: Column<M> | Expression, value: string, caseSensitive?: boolean): this;
|
|
5484
|
+
whereNotLike(column: Column<M> | Expression, value: string, caseSensitive?: boolean, boolean?: WhereBoolean): this;
|
|
5485
|
+
orWhereNotLike(column: Column<M> | Expression, value: string, caseSensitive?: boolean): this;
|
|
5318
5486
|
orderBy(column: Column<M> | Expression, direction?: Direction | Uppercase<Direction>): this;
|
|
5319
5487
|
/** Newest first by the model's created_at column (or the given one). */
|
|
5320
5488
|
latest(column?: Column<M> | Expression): this;
|
|
@@ -5900,12 +6068,21 @@ declare class Model implements ModelInstance$2 {
|
|
|
5900
6068
|
/** A new query of this model, with its global scopes. */
|
|
5901
6069
|
static query<C extends typeof Model>(this: C): ModelBuilder<C>;
|
|
5902
6070
|
static where<C extends typeof Model>(this: C, ...args: WhereArgs<Instance<C>, ModelBuilder<C>>): ModelBuilder<C>;
|
|
6071
|
+
/** Post.when(request.query('q'), (query, q) => query.whereLike('title', `%${q}%`)): a new query, then when(). */
|
|
6072
|
+
static when<C extends typeof Model, V>(this: C, value: (query: ModelBuilder<C>) => V, callback: (query: ModelBuilder<C>, value: Truthy<V>) => unknown, otherwise?: (query: ModelBuilder<C>, value: V) => unknown): ModelBuilder<C>;
|
|
6073
|
+
static when<C extends typeof Model, V>(this: C, value: V, callback: (query: ModelBuilder<C>, value: Truthy<V>) => unknown, otherwise?: (query: ModelBuilder<C>, value: V) => unknown): ModelBuilder<C>;
|
|
6074
|
+
/** A new query, then unless(): the callback runs when the value is falsy. */
|
|
6075
|
+
static unless<C extends typeof Model, V>(this: C, value: (query: ModelBuilder<C>) => V, callback: (query: ModelBuilder<C>, value: V) => unknown, otherwise?: (query: ModelBuilder<C>, value: Truthy<V>) => unknown): ModelBuilder<C>;
|
|
6076
|
+
static unless<C extends typeof Model, V>(this: C, value: V, callback: (query: ModelBuilder<C>, value: V) => unknown, otherwise?: (query: ModelBuilder<C>, value: Truthy<V>) => unknown): ModelBuilder<C>;
|
|
5903
6077
|
static whereKey<C extends typeof Model>(this: C, id: unknown): ModelBuilder<C>;
|
|
5904
6078
|
static whereIn<C extends typeof Model>(this: C, column: Column<Instance<C>> | Expression, values: readonly unknown[]): ModelBuilder<C>;
|
|
5905
6079
|
static whereNotIn<C extends typeof Model>(this: C, column: Column<Instance<C>> | Expression, values: readonly unknown[]): ModelBuilder<C>;
|
|
5906
6080
|
static whereNull<C extends typeof Model>(this: C, column: Column<Instance<C>> | Expression): ModelBuilder<C>;
|
|
5907
6081
|
static whereNotNull<C extends typeof Model>(this: C, column: Column<Instance<C>> | Expression): ModelBuilder<C>;
|
|
5908
6082
|
static whereBetween<C extends typeof Model>(this: C, column: Column<Instance<C>> | Expression, values: readonly [unknown, unknown]): ModelBuilder<C>;
|
|
6083
|
+
/** Post.whereLike('title', `%${term}%`): case-insensitive unless caseSensitive (see the query builder's whereLike()). */
|
|
6084
|
+
static whereLike<C extends typeof Model>(this: C, column: Column<Instance<C>> | Expression, value: string, caseSensitive?: boolean): ModelBuilder<C>;
|
|
6085
|
+
static whereNotLike<C extends typeof Model>(this: C, column: Column<Instance<C>> | Expression, value: string, caseSensitive?: boolean): ModelBuilder<C>;
|
|
5909
6086
|
static whereColumn<C extends typeof Model>(this: C, first: Column<Instance<C>>, operatorOrSecond: string, second?: Column<Instance<C>>): ModelBuilder<C>;
|
|
5910
6087
|
static whereRaw<C extends typeof Model>(this: C, sql: string, bindings?: readonly unknown[]): ModelBuilder<C>;
|
|
5911
6088
|
static select<C extends typeof Model>(this: C, ...columns: Array<Column<Instance<C>> | Expression>): ModelBuilder<C>;
|
|
@@ -6218,6 +6395,82 @@ declare class Pivot extends Model {
|
|
|
6218
6395
|
timestamps: boolean;
|
|
6219
6396
|
}
|
|
6220
6397
|
|
|
6398
|
+
/**
|
|
6399
|
+
* Laravel's DatabaseNotification: one row of the `notifications` table, which the database channel writes. A UUID
|
|
6400
|
+
* string key, `data` as an array cast and `read_at` as a datetime. `user.notifications()` returns these, newest first.
|
|
6401
|
+
*/
|
|
6402
|
+
declare class DatabaseNotification extends Model implements DatabaseNotification$1 {
|
|
6403
|
+
protected table: string | undefined;
|
|
6404
|
+
protected keyType: 'int' | 'string';
|
|
6405
|
+
incrementing: boolean;
|
|
6406
|
+
protected guarded: string[];
|
|
6407
|
+
protected casts: Readonly<Record<string, CastDefinition>>;
|
|
6408
|
+
$attributes?: {
|
|
6409
|
+
id: string;
|
|
6410
|
+
type: string;
|
|
6411
|
+
notifiable_type: string;
|
|
6412
|
+
notifiable_id: number | string;
|
|
6413
|
+
data: Record<string, unknown>;
|
|
6414
|
+
read_at: Date | null;
|
|
6415
|
+
created_at: Date | null;
|
|
6416
|
+
updated_at: Date | null;
|
|
6417
|
+
};
|
|
6418
|
+
readonly id: string;
|
|
6419
|
+
readonly type: string;
|
|
6420
|
+
readonly notifiable_type: string;
|
|
6421
|
+
readonly notifiable_id: number | string;
|
|
6422
|
+
readonly data: Record<string, unknown>;
|
|
6423
|
+
read_at: Date | null;
|
|
6424
|
+
readonly created_at: Date | null;
|
|
6425
|
+
readonly updated_at: Date | null;
|
|
6426
|
+
/** The model the notification was sent to. */
|
|
6427
|
+
notifiable<R extends Model = Model>(): MorphTo<R, this>;
|
|
6428
|
+
/** Sets read_at to now and saves, unless it is already read. */
|
|
6429
|
+
markAsRead(): Promise<void>;
|
|
6430
|
+
/** Clears read_at and saves, unless it is already unread. */
|
|
6431
|
+
markAsUnread(): Promise<void>;
|
|
6432
|
+
read(): boolean;
|
|
6433
|
+
unread(): boolean;
|
|
6434
|
+
/** `query.read()`: only read notifications. */
|
|
6435
|
+
static scopeRead(query: Builder<DatabaseNotification>): Builder<DatabaseNotification>;
|
|
6436
|
+
/** `query.unread()`: only unread notifications. */
|
|
6437
|
+
static scopeUnread(query: Builder<DatabaseNotification>): Builder<DatabaseNotification>;
|
|
6438
|
+
}
|
|
6439
|
+
/** Laravel's DatabaseNotificationCollection: what `await user.notifications().get()` returns. */
|
|
6440
|
+
declare class DatabaseNotificationCollection extends Collection<DatabaseNotification> {
|
|
6441
|
+
/** Marks every notification as read (one save each, as in Laravel). */
|
|
6442
|
+
markAsRead(): Promise<void>;
|
|
6443
|
+
/** Marks every notification as unread. */
|
|
6444
|
+
markAsUnread(): Promise<void>;
|
|
6445
|
+
}
|
|
6446
|
+
/**
|
|
6447
|
+
* The relation `notifications()`, `readNotifications()` and `unreadNotifications()` return: a morphMany over
|
|
6448
|
+
* DatabaseNotification whose results (get(), the loaded relation, eager loads) are DatabaseNotificationCollections.
|
|
6449
|
+
* Every builder method works on it: paginate(), count(), update({ read_at }), where(), …
|
|
6450
|
+
*/
|
|
6451
|
+
declare class DatabaseNotificationsRelation<P extends Model = Model> extends MorphMany<DatabaseNotification, P> {
|
|
6452
|
+
get(): Promise<DatabaseNotificationCollection>;
|
|
6453
|
+
getResults(): Promise<DatabaseNotificationCollection>;
|
|
6454
|
+
initRelation(models: P[], relation: string): P[];
|
|
6455
|
+
match(models: P[], results: DatabaseNotification[], relation: string): P[];
|
|
6456
|
+
}
|
|
6457
|
+
|
|
6458
|
+
type ModelConstructor = new (...args: any[]) => Model;
|
|
6459
|
+
/** What HasDatabaseNotifications adds to a model. */
|
|
6460
|
+
interface HasDatabaseNotificationsModel extends Model {
|
|
6461
|
+
/** The model's notifications, newest first: morphMany(DatabaseNotification, 'notifiable').latest(). */
|
|
6462
|
+
notifications(): DatabaseNotificationsRelation<this>;
|
|
6463
|
+
/** The read ones (read_at set). */
|
|
6464
|
+
readNotifications(): DatabaseNotificationsRelation<this>;
|
|
6465
|
+
/** The unread ones (read_at null). */
|
|
6466
|
+
unreadNotifications(): DatabaseNotificationsRelation<this>;
|
|
6467
|
+
}
|
|
6468
|
+
/**
|
|
6469
|
+
* Laravel's HasDatabaseNotifications: the notifications the database channel stored for this model, as queries.
|
|
6470
|
+
* `class User extends HasDatabaseNotifications(Model) {}`; apps get it through `Notifiable`.
|
|
6471
|
+
*/
|
|
6472
|
+
declare function HasDatabaseNotifications<TBase extends ModelConstructor>(Base: TBase): TBase & (new (...args: any[]) => HasDatabaseNotificationsModel);
|
|
6473
|
+
|
|
6221
6474
|
/**
|
|
6222
6475
|
* The morph map: the value stored in `*_type` columns for each model class (Laravel's Relation::morphMap()).
|
|
6223
6476
|
* Without an entry the class name is stored ('Post'). Returns the current map.
|
|
@@ -6535,7 +6788,11 @@ declare class RouteModelResolverImpl implements RouteModelResolver {
|
|
|
6535
6788
|
|
|
6536
6789
|
/** Laravel 11's config/database.php defaults (the app's config/database.ts wins, key by key). */
|
|
6537
6790
|
declare function databaseConfigDefaults(app: Pick<Application$4, 'databasePath'>): DatabaseConfig & Record<string, unknown>;
|
|
6538
|
-
/**
|
|
6791
|
+
/**
|
|
6792
|
+
* Points the paginators at the current request: ?page=, ?cursor=, the URL and the query string (Laravel's resolvers).
|
|
6793
|
+
* A bound PaginationState is asked first for the page and the path (Livewire's WithPagination replaces Laravel's
|
|
6794
|
+
* resolvers the same way); what it leaves undefined comes from the request.
|
|
6795
|
+
*/
|
|
6539
6796
|
declare function usePaginationResolvers(): void;
|
|
6540
6797
|
/**
|
|
6541
6798
|
* Binds the database layer: the DatabaseManager (a root singleton owning the pools) behind the DB facade, the
|
|
@@ -8279,6 +8536,8 @@ interface ModelInstance$1 {
|
|
|
8279
8536
|
getTable(): string;
|
|
8280
8537
|
getRouteKey(): unknown;
|
|
8281
8538
|
getRouteKeyName(): string;
|
|
8539
|
+
/** The value stored in a polymorphic `*_type` column for this model: its morph map alias, else its class name. */
|
|
8540
|
+
getMorphClass(): string;
|
|
8282
8541
|
getAttribute<T = unknown>(key: string): T;
|
|
8283
8542
|
setAttribute(key: string, value: unknown): this;
|
|
8284
8543
|
fill(attributes: Row$2): this;
|
|
@@ -8360,18 +8619,18 @@ interface MustVerifyEmail {
|
|
|
8360
8619
|
getEmailForVerification(): string;
|
|
8361
8620
|
}
|
|
8362
8621
|
|
|
8363
|
-
interface Notifiable {
|
|
8622
|
+
interface Notifiable$1 {
|
|
8364
8623
|
/** e.g. 'mail' → email address, 'database' → the model itself. */
|
|
8365
8624
|
routeNotificationFor(channel: string, notification: Notification): unknown;
|
|
8366
8625
|
}
|
|
8367
8626
|
interface Notification {
|
|
8368
8627
|
/** Optional id; set by the dispatcher when missing. */
|
|
8369
8628
|
id?: string;
|
|
8370
|
-
via(notifiable: Notifiable): string[];
|
|
8629
|
+
via(notifiable: Notifiable$1): string[];
|
|
8371
8630
|
/** Returns a Mailable (Contracts/Mail) or the Notifications MailMessage builder. */
|
|
8372
|
-
toMail?(notifiable: Notifiable): unknown;
|
|
8373
|
-
toDatabase?(notifiable: Notifiable): Record<string, unknown>;
|
|
8374
|
-
toArray?(notifiable: Notifiable): Record<string, unknown>;
|
|
8631
|
+
toMail?(notifiable: Notifiable$1): unknown;
|
|
8632
|
+
toDatabase?(notifiable: Notifiable$1): Record<string, unknown>;
|
|
8633
|
+
toArray?(notifiable: Notifiable$1): Record<string, unknown>;
|
|
8375
8634
|
}
|
|
8376
8635
|
|
|
8377
8636
|
declare abstract class ServiceProvider$b implements ServiceProvider$u {
|
|
@@ -8853,6 +9112,42 @@ declare class AccessGate implements Gate$1 {
|
|
|
8853
9112
|
getPolicyFor(target: unknown): PolicyClass | undefined;
|
|
8854
9113
|
}
|
|
8855
9114
|
|
|
9115
|
+
type AuthorizableConstructor = new (...args: any[]) => Authenticatable;
|
|
9116
|
+
/**
|
|
9117
|
+
* Laravel's Authorizable trait: `user.can('update', post)` asks the Gate about this user (Gate.forUser), whoever is
|
|
9118
|
+
* signed in. `class User extends Authorizable(AuthenticatableModel(Model)) {}`.
|
|
9119
|
+
*/
|
|
9120
|
+
declare function Authorizable<TBase extends AuthorizableConstructor>(Base: TBase): {
|
|
9121
|
+
new (...args: any[]): {
|
|
9122
|
+
/** Whether the user has the ability (every one, for a list); the arguments go to the policy or ability callback. */
|
|
9123
|
+
can(abilities: string | readonly string[], ...args: unknown[]): Promise<boolean>;
|
|
9124
|
+
/** Whether the user has any of the abilities. */
|
|
9125
|
+
canAny(abilities: string | readonly string[], ...args: unknown[]): Promise<boolean>;
|
|
9126
|
+
/** Whether the user lacks the ability (any one, for a list). */
|
|
9127
|
+
cant(abilities: string | readonly string[], ...args: unknown[]): Promise<boolean>;
|
|
9128
|
+
/** The same as cant(). */
|
|
9129
|
+
cannot(abilities: string | readonly string[], ...args: unknown[]): Promise<boolean>;
|
|
9130
|
+
getAuthIdentifierName(): string;
|
|
9131
|
+
getAuthIdentifier(): unknown;
|
|
9132
|
+
getAuthPassword(): string;
|
|
9133
|
+
getRememberToken(): string | undefined;
|
|
9134
|
+
setRememberToken(value: string): void;
|
|
9135
|
+
getRememberTokenName(): string;
|
|
9136
|
+
};
|
|
9137
|
+
} & TBase;
|
|
9138
|
+
|
|
9139
|
+
/**
|
|
9140
|
+
* The framework's base controller, with Laravel's AuthorizesRequests: `await this.authorize('update', post)` throws an
|
|
9141
|
+
* AuthorizationError (403, or the status the policy chose) unless the signed-in user may. The app's
|
|
9142
|
+
* `app/Http/Controllers/Controller.ts` extends it.
|
|
9143
|
+
*/
|
|
9144
|
+
declare abstract class Controller {
|
|
9145
|
+
/** Authorizes the ability for the signed-in user (the Gate's authorize()). */
|
|
9146
|
+
protected authorize(ability: string, ...args: unknown[]): Promise<void>;
|
|
9147
|
+
/** Authorizes the ability for the given user (Gate.forUser(user).authorize()). */
|
|
9148
|
+
protected authorizeForUser(user: Authenticatable | undefined, ability: string, ...args: unknown[]): Promise<void>;
|
|
9149
|
+
}
|
|
9150
|
+
|
|
8856
9151
|
/**
|
|
8857
9152
|
* Laravel's Authorize middleware (`can:update,post`). Each extra parameter is a quoted literal ('"draft"'), else the
|
|
8858
9153
|
* route parameter of that name (the bound model), else the name itself (a model name such as `Post`, which selects
|
|
@@ -9279,6 +9574,11 @@ interface OrielError$6 extends Error {
|
|
|
9279
9574
|
|
|
9280
9575
|
/** Options a job class may declare as public fields. Their presence (or implementing ShouldQueue) makes things queueable. */
|
|
9281
9576
|
interface ShouldQueue$3 {
|
|
9577
|
+
/**
|
|
9578
|
+
* Marks the class as queued at run time: `implements ShouldQueue` leaves no trace once compiled, so the interface
|
|
9579
|
+
* asks for `readonly shouldQueue = true`. Jobs, listeners, mailables and notifications carrying it are queued.
|
|
9580
|
+
*/
|
|
9581
|
+
readonly shouldQueue: true;
|
|
9282
9582
|
connection?: string;
|
|
9283
9583
|
queue?: string;
|
|
9284
9584
|
/** Seconds. */
|
|
@@ -9457,15 +9757,15 @@ declare class Dispatcher$1 implements EventDispatcher {
|
|
|
9457
9757
|
declare const QUEUE_OPTION_KEYS: readonly ["connection", "queue", "delay", "tries", "backoff", "timeout"];
|
|
9458
9758
|
type QueueOptionKey = (typeof QUEUE_OPTION_KEYS)[number];
|
|
9459
9759
|
/**
|
|
9460
|
-
* Whether a listener opts into queueing
|
|
9461
|
-
*
|
|
9462
|
-
*
|
|
9463
|
-
*
|
|
9464
|
-
*
|
|
9465
|
-
*
|
|
9466
|
-
*
|
|
9467
|
-
*
|
|
9468
|
-
* (not instead of it), so an existing `static queue = '...'` listener still works.
|
|
9760
|
+
* Whether a listener opts into queueing, like the Queue/Bus protocol's own `isQueueable(job)`: ShouldQueue's
|
|
9761
|
+
* `shouldQueue: true`, the SHOULD_QUEUE symbol, an option, or a `uniqueId`/`retryUntil` method. Unlike a job (already
|
|
9762
|
+
* an instance by the time Bus sees it), a listener is a *class* registered with `listen()`, so Events must build it
|
|
9763
|
+
* first — `this.container.make(cls)` is cheap and side-effect-free for listener classes, which have DI-only
|
|
9764
|
+
* constructors — and then applies the protocol rule to that instance: the marker (readable off the instance through
|
|
9765
|
+
* the prototype chain), an **instance** option field with a defined value, or an instance `uniqueId`/`retryUntil`
|
|
9766
|
+
* method — the same fields Mail's and Notifications' `isQueueableMailable`/equivalent read. A **static** field or
|
|
9767
|
+
* method on the class (`shouldQueue`, an option, `uniqueId`/`retryUntil`) counts too, as an extra on top of the
|
|
9768
|
+
* protocol rule (not instead of it), so an existing `static queue = '...'` listener still works.
|
|
9469
9769
|
*/
|
|
9470
9770
|
declare function isQueueableListener(cls: Class$6<unknown>, instance: object): boolean;
|
|
9471
9771
|
/**
|
|
@@ -10379,9 +10679,17 @@ declare class S3Filesystem implements Filesystem {
|
|
|
10379
10679
|
get(path: string): Promise<string>;
|
|
10380
10680
|
getBytes(path: string): Promise<Uint8Array>;
|
|
10381
10681
|
readStream(path: string): Promise<ReadableStream<Uint8Array>>;
|
|
10682
|
+
/** Sends the type of the path when the options name none (Laravel's S3 adapter detects one too). */
|
|
10382
10683
|
put(path: string, contents: string | Uint8Array | ReadableStream<Uint8Array>, options?: PutOptions): Promise<boolean>;
|
|
10383
10684
|
putFile(directory: string, file: UploadedFile$1, options?: PutOptions): Promise<string>;
|
|
10685
|
+
/**
|
|
10686
|
+
* Sends the upload's own type: its extension(), which follows what a request upload's bytes show (the client's claim
|
|
10687
|
+
* counts only where extension() keeps it). Never the MIME type the client sent as such, nor the name it is stored
|
|
10688
|
+
* under (an app may name it after the client's file name): S3, or a CDN in front of it, serves the object with this
|
|
10689
|
+
* type. An upload of no known type is sent with none (served as binary).
|
|
10690
|
+
*/
|
|
10384
10691
|
putFileAs(directory: string, file: UploadedFile$1, name: string, options?: PutOptions): Promise<string>;
|
|
10692
|
+
private putObject;
|
|
10385
10693
|
delete(paths: string | string[]): Promise<boolean>;
|
|
10386
10694
|
copy(from: string, to: string): Promise<boolean>;
|
|
10387
10695
|
move(from: string, to: string): Promise<boolean>;
|
|
@@ -10578,6 +10886,8 @@ interface ModelInstance {
|
|
|
10578
10886
|
getTable(): string;
|
|
10579
10887
|
getRouteKey(): unknown;
|
|
10580
10888
|
getRouteKeyName(): string;
|
|
10889
|
+
/** The value stored in a polymorphic `*_type` column for this model: its morph map alias, else its class name. */
|
|
10890
|
+
getMorphClass(): string;
|
|
10581
10891
|
getAttribute<T = unknown>(key: string): T;
|
|
10582
10892
|
setAttribute(key: string, value: unknown): this;
|
|
10583
10893
|
fill(attributes: Row): this;
|
|
@@ -10590,6 +10900,11 @@ interface ModelInstance {
|
|
|
10590
10900
|
|
|
10591
10901
|
/** Options a job class may declare as public fields. Their presence (or implementing ShouldQueue) makes things queueable. */
|
|
10592
10902
|
interface ShouldQueue$2 {
|
|
10903
|
+
/**
|
|
10904
|
+
* Marks the class as queued at run time: `implements ShouldQueue` leaves no trace once compiled, so the interface
|
|
10905
|
+
* asks for `readonly shouldQueue = true`. Jobs, listeners, mailables and notifications carrying it are queued.
|
|
10906
|
+
*/
|
|
10907
|
+
readonly shouldQueue: true;
|
|
10593
10908
|
connection?: string;
|
|
10594
10909
|
queue?: string;
|
|
10595
10910
|
/** Seconds. */
|
|
@@ -11423,6 +11738,11 @@ interface OrielError$2 extends Error {
|
|
|
11423
11738
|
|
|
11424
11739
|
/** Options a job class may declare as public fields. Their presence (or implementing ShouldQueue) makes things queueable. */
|
|
11425
11740
|
interface ShouldQueue$1 {
|
|
11741
|
+
/**
|
|
11742
|
+
* Marks the class as queued at run time: `implements ShouldQueue` leaves no trace once compiled, so the interface
|
|
11743
|
+
* asks for `readonly shouldQueue = true`. Jobs, listeners, mailables and notifications carrying it are queued.
|
|
11744
|
+
*/
|
|
11745
|
+
readonly shouldQueue: true;
|
|
11426
11746
|
connection?: string;
|
|
11427
11747
|
queue?: string;
|
|
11428
11748
|
/** Seconds. */
|
|
@@ -11595,8 +11915,9 @@ interface UniqueLockSpec {
|
|
|
11595
11915
|
untilProcessing: boolean;
|
|
11596
11916
|
}
|
|
11597
11917
|
/**
|
|
11598
|
-
* Whether dispatch() queues the job: it carries
|
|
11599
|
-
*
|
|
11918
|
+
* Whether dispatch() queues the job: it carries ShouldQueue's `shouldQueue: true` (a `readonly shouldQueue = true`
|
|
11919
|
+
* field, or the Queueable base class's getter), the SHOULD_QUEUE symbol, a value for any ShouldQueue option, or
|
|
11920
|
+
* defines uniqueId()/retryUntil().
|
|
11600
11921
|
*/
|
|
11601
11922
|
declare function isQueueable(job: unknown): boolean;
|
|
11602
11923
|
/** Laravel's ShouldBeUnique: the job defines uniqueId(), uniqueFor, uniqueUntilProcessing or uniqueVia(). */
|
|
@@ -11753,7 +12074,9 @@ declare abstract class Dispatchable implements Job$1 {
|
|
|
11753
12074
|
* A queued job: Laravel's `implements ShouldQueue` + `use Queueable`. `dispatch()` pushes it onto the queue.
|
|
11754
12075
|
* The marker lives on the prototype, so it is never serialized.
|
|
11755
12076
|
*/
|
|
11756
|
-
declare abstract class Queueable extends Dispatchable {
|
|
12077
|
+
declare abstract class Queueable extends Dispatchable implements ShouldQueue$1 {
|
|
12078
|
+
/** ShouldQueue's marker, so subclasses may write `implements ShouldQueue` without the field. */
|
|
12079
|
+
get shouldQueue(): true;
|
|
11757
12080
|
}
|
|
11758
12081
|
|
|
11759
12082
|
/** Laravel's dispatch() helper: queued when the job is queueable, else run now. Dispatched once, awaited or not. */
|
|
@@ -11814,6 +12137,11 @@ interface OrielError$1 extends Error {
|
|
|
11814
12137
|
|
|
11815
12138
|
/** Options a job class may declare as public fields. Their presence (or implementing ShouldQueue) makes things queueable. */
|
|
11816
12139
|
interface ShouldQueue {
|
|
12140
|
+
/**
|
|
12141
|
+
* Marks the class as queued at run time: `implements ShouldQueue` leaves no trace once compiled, so the interface
|
|
12142
|
+
* asks for `readonly shouldQueue = true`. Jobs, listeners, mailables and notifications carrying it are queued.
|
|
12143
|
+
*/
|
|
12144
|
+
readonly shouldQueue: true;
|
|
11817
12145
|
connection?: string;
|
|
11818
12146
|
queue?: string;
|
|
11819
12147
|
/** Seconds. */
|
|
@@ -12135,6 +12463,17 @@ declare class MailServiceProvider extends ServiceProvider$2 {
|
|
|
12135
12463
|
register(): void;
|
|
12136
12464
|
}
|
|
12137
12465
|
|
|
12466
|
+
/**
|
|
12467
|
+
* Laravel's Notifiable trait: RoutesNotifications (notify(), notifyNow(), routeNotificationFor()) and
|
|
12468
|
+
* HasDatabaseNotifications (notifications(), unreadNotifications(), readNotifications()).
|
|
12469
|
+
* `class User extends Notifiable(AuthenticatableModel(Model)) {}`.
|
|
12470
|
+
*/
|
|
12471
|
+
declare function Notifiable<TBase extends ModelConstructor>(Base: TBase): (new (...args: any[]) => {
|
|
12472
|
+
routeNotificationFor(channel: string, notification: Notification$4): unknown;
|
|
12473
|
+
notify(notification: Notification$4): Promise<void>;
|
|
12474
|
+
notifyNow(notification: Notification$4, channels?: string[]): Promise<void>;
|
|
12475
|
+
}) & TBase & (new (...args: any[]) => HasDatabaseNotificationsModel);
|
|
12476
|
+
|
|
12138
12477
|
/** A typed, runtime-unique key for container bindings. */
|
|
12139
12478
|
interface Token<T> {
|
|
12140
12479
|
readonly id: symbol;
|
|
@@ -12921,4 +13260,4 @@ type SharedPropsFrom<M> = M extends {
|
|
|
12921
13260
|
share(...args: never[]): infer R;
|
|
12922
13261
|
} ? SerializedObject<Awaited<R>> : Record<never, never>;
|
|
12923
13262
|
|
|
12924
|
-
export { API_ROUTES_STUB, AboutCommand, AbstractPaginator, AccessGate, AddQueuedCookiesToResponse, type AfterCallback, AllMailersFailedError, AlwaysProp, AnonymousNotifiable, Application$9 as Application, ApplicationBuilder, ArgonHasher, type ArgonOptions, type ArgumentDefinition, Arr, ArraySessionHandler, ArrayTransport, Artisan, Attempting, type Attributes$1 as Attributes, type AttributesResolver, Auth, AuthManager, type AuthModel, type AuthModelBase, type AuthModelConstructor, AuthServiceProvider, AuthenticatableModel, Authenticate, AuthenticationError, AuthorizationError, AuthorizationErrorImpl, Authorize, BaseJob, BaseLogger, BasePipeline, BaseRouter, BaseUrlGenerator, Batch$1 as Batch, type BatchAttributes, BatchingUnavailableError, BcryptHasher, type BcryptOptions, type BeforeCallback, BelongsTo, BelongsToMany, BindingResolutionError, Blueprint, type BlueprintCommand, BufferedConsoleOutput, Builder, type BuiltInCast, type BuiltinRule, BuiltinRuleObject, type BunDatabase, BunSqliteDatabase, type BunStatement, Bus, Dispatcher as BusDispatcherImpl, BusError, BusServiceProvider, CACHE_TABLE_MIGRATION, CHAIN, Cache, CacheManager$1 as CacheManager, CacheRateLimiter, Repository as CacheRepositoryImpl, CacheServiceProvider, type Store as CacheStore, CallQueuedHandler, CallQueuedListener, type CanResetPassword, type CanResetPasswordUser, type CastDefinition, type CastsAttributes, type ChainSpec, type CipherName, CircularDependencyError, ClassRegistry$2 as ClassRegistry, ClosureCommand$4 as ClosureCommand, ClosureKernel, Collection$2 as Collection, type Column, type ColumnAttributes, ColumnDefinition, type ColumnInfo, type ColumnRef, type ColumnType, Command$4 as Command, CommandNotFoundError, ComponentNotFoundError, Connection, type ConsoleInput, type ConsoleIo, Kernel as ConsoleKernelImpl, type ConsoleOutput, ConsoleServiceProvider, Container$j as Container, ContainerNotAvailableError, ControllerMethodNotFoundError, ConvertEmptyStringsToNull, Cookie$1 as Cookie, type CookieDefaults, CookieJar$1 as CookieJar, CookieServiceProvider, CookieSessionHandler, CookieValuePrefix, type CreateMigrationOptions, Crypt, Cursor, type CursorPage, CursorPaginator, type CursorPaginatorOptions, DB, DEFAULT_MESSAGES, DailyRotatingStream, DatabaseBatchRepository, type DatabaseCommandContext, type DatabaseConfig, DatabaseConfigError, DatabaseError, DatabaseFailedJobProvider, DatabaseJob, type DatabaseJobRecord, DatabaseLock, DatabaseManagerImpl, DatabaseNotificationChannel, type DatabaseNotificationRecord, DatabaseQueue, type DatabaseQueueOptions, DatabaseServiceProvider, DatabaseSessionHandler, DatabaseStore, DatabaseTokenRepository, DatabaseUnavailableError, DecryptError, DeferProp, type Direction, Dispatchable, type EagerLoadSpec, EloquentUserProvider, EmailVerificationRequest, type Encoded, EncryptCookies, EncryptError, EncryptHistory, Encrypter$2 as Encrypter, EncryptionServiceProvider, EnsureEmailIsVerified, type EnumLike, type ErrorClass, ErrorHandler, Event, Dispatcher$1 as EventDispatcherImpl, type EventKey, type EventListenMap, EventServiceProvider, EventsNeedBusDispatcherError, EventsNeedClassRegistryError, ExceptionsConfiguration, Expression, type Facade$c as Facade, type FacadeStatics$c as FacadeStatics, Factory$b as Factory, type FactoryResult, Failed, FailoverTransport, Faker, FakerOverflowError, FileNotFoundError, FileSessionHandler, FileStore, FilesystemManager, FilesystemServiceProvider, ForeignIdColumnDefinition, ForeignKeyDefinition, FormRequest, FormUploadedFile, Gate, type GateAbility, GateResponse, GeneratorCommand, GenericLock, type GlobalScope, Grammar, type GroupAttributes, type GroupHost, GroupRegistrar, type GuardFactory, HasApiTokens, type HasFactory, HasMany, HasManyThrough, HasOne, HasOneOrMany, Hash, HashAlgorithmError, type HashInfo, HashManager, type HasherFactory, type HashingConfig, HashingServiceProvider, type Having, HelpCommand, type HttpCommandOptions, HttpException, Kernel$1 as HttpKernelImpl, HttpRedirectResponse, HttpRedirector, HttpResponseException, HttpResponseFactory, HttpServerError, HttpServiceProvider, Hub, IncomingRequest, type IncomingRequestOptions, type IndexType, Inertia, InertiaError, InertiaHtml, InertiaMiddleware, Response$1 as InertiaPageResponse, ResponseFactory as InertiaResponseFactory, InertiaServiceProvider, type ValidationErrors as InertiaValidationErrors, type InferRuleType, type InferValidatedType, InvalidCacheConfigError, InvalidCastError, InvalidListenerError, InvalidLogLevelError, InvalidRuleParameterError, InvalidSignatureError, InvalidUrlSignatureError, JOBS_TABLE_MIGRATION, JobClassNotFoundError, type JobContext, type JobMiddleware, JobSerializationError, JoinClause, type JoinType, type JsonWhenCallback, KEY_GENERATE_SIGNATURE, type KernelApp, type KeyGenerateIO, LEVEL_SEVERITY, LazyCollection$1 as LazyCollection, type LengthAwarePage, LengthAwarePaginator, ListCommand, type ListenerTuple, type LocalDiskConfig, LocalFilesystem, type LockFactory, LockTimeoutError, Lockout, Log, LogChannelCycleError, LogManager, LogServiceProvider, LogTransport, type LoggedQuery, LogicError, Login, Logout, MIGRATION_CREATE_STUB, MIGRATION_STUB, MIGRATION_UPDATE_STUB, MODEL_EVENTS, Mail, MailManager, MailMessage, type MailMessageAction, MailNotificationChannel, MailQueueUnavailableError, MailServiceProvider, type MailTransporter, MailUnavailableError, Mailable, MailerImpl, MakeCastCommand, MakeCommandCommand, MakeControllerCommand, MakeEventCommand, MakeFactoryCommand, MakeJobCommand, MakeListenerCommand, MakeMailCommand, MakeMiddlewareCommand, MakeModelCommand, MakeNotificationCommand, MakeObserverCommand, MakePolicyCommand, MakeProviderCommand, MakeRequestCommand, MakeResourceCommand, MakeRuleCommand, MakeSeederCommand, MakeTestCommand, type Manifest, type ManifestChunk, ManuallyFailedError, type Many, MassAssignmentError, MaxAttemptsExceededError, MemoryStore, MergeProp, MessageBagImpl, MethodNotAllowedHttpError, MiddlewareConfiguration, MiddlewareNotFoundError, Migration, MigrationCreator, type MigrationRecord, MigrationRepository, type MigrationStatus, Migrator, type MigratorOptions, MissingAppKeyError, MissingModelError, MissingRecipientError, Model, type ModelBuilder, type ModelClass, type ModelEvent, type ModelListener, ModelNotFoundError$1 as ModelNotFoundError, ModelRegistry, type MorphConstraint, MorphMany, MorphOne, MorphTo, MySqlSchemaGrammar, NOTIFICATIONS_TABLE, NOTIFICATIONS_TABLE_MIGRATION, type NewAccessToken, NodeConsoleInput, NodeConsoleOutput, NotDatabaseNotifiableError, NotFoundHttpError, Notifiable$1 as Notifiable, type NotifiableConstructor, Notification$1 as Notification, Dispatcher$2 as NotificationDispatcherImpl, NotificationDispatcherUnavailableError, NotificationFacade, NotificationQueueUnavailableError, NotificationsServiceProvider, NullFailedJobProvider, NullLogger, NullQueue, OPERATORS, OnceProp, type OptionDefinition, type OptionValue$4 as OptionValue, OptionalProp, type Order, PERSONAL_ACCESS_TOKENS_MIGRATION, type PagePropsFrom, type PaginationLink, Paginator, type PaginatorOptions, type ParsedInput, type ParsedRule, type ParsedSetCookie, type ParsedSignature, Password, PasswordBroker, PasswordBrokerManager, PasswordReset, PasswordRule, PathTraversalError, PendingBatch, PendingChain, PendingDispatch, PersonalAccessToken, PinoLogger, PipelineError, PipelineServiceProvider, Pivot, type PivotIds, type PlainNotificationMail, type PolicyClass, PostgresSchemaGrammar, type PreloadAttributesResolver, PropsResolver, ProviderBootError, ProviderRegisterError, QUEUE_JOB, Builder$1 as QueryBuilder, QueryError, Queue$1 as Queue, QueueBase, type QueueCommandContext, QueueError, type QueueJobPayload, QueueManager, QueueServiceProvider, QueueUnavailableError, Queueable, QueuedConsoleInput, QueuedMailSender, type QueuedMailableFactory, RESTART_CACHE_KEY, RateLimiter, type RawResult, type RecipientOverrides, RedirectIfAuthenticated, RedisJob, RedisLock, RedisQueue, type RedisQueueOptions, RedisRepository, type RedisSessionClient, RedisSessionHandler, RedisStore, RedisTaggedStore, type ReferentialAction, Registered, type RegisteredModel, Relation, type RelationConstraint, type RelationNames, RelationNotFoundError, RelationNotLoadedError, type RelationValue, type RenderCallback, type RenderedContent, type ReplStarter, type ReportCallback, Repository$1 as Repository, ResetPassword, type ResetPasswordMail, type ResolvedMiddleware, type ResolvedServeOptions, type ResourceMethod, type ResourceRoute, type RollbackOptions, Route$1 as Route, type RouteAttributes, type RouteBinder, RouteDefinition, type RouteFileCallback, type RouteHandler, type RouteListFilters, type RouteListRow, RouteModelNotFoundError, RouteModelResolverImpl, RouteNotDefinedError, type RouteStage, RoutingError, type RoutingOptions, RoutingServiceProvider, Rule, type RuleContext, type RunningServer, type Runtime, type S3ClientLike, type S3DiskConfig, S3Filesystem, SSR_RENDER_FAILED, STORAGE_LINK_SIGNATURE, Schedule, ScheduleImpl, ScheduleListCommand, ScheduleNameRequiredError, ScheduleRunCommand, ScheduleWorkCommand, type ScheduleWorkOptions, ScheduledEventImpl, Schema, SchemaBuilder, SchemaBuilderToken, SchemaGrammar, type Scope, type ScopeCallback, type ScopeStatic, type Scopes, type ScrollMetadata, ScrollProp, Seeder, type SeederClass, type SelectColumn, SendEmailVerificationNotification, SendQueuedMailable, SendQueuedNotifications, type Serialized, type SerializedObject, type ServeOptions, ServiceProvider$t as ServiceProvider, SessionFacade as Session, type SessionConfig, SessionGuard, type SessionGuardOptions, type SessionHandlerFactory, SessionManager, SessionMessageBag, SessionServiceProvider, Store$1 as SessionStore, type SharedPropsFrom, type SimplePage, type SmtpConfig, SmtpTransport, SoftDeletingScope, type SpawnResult, type Spawner, SqliteSchemaGrammar, SsrError, type SsrFailure, HttpGateway as SsrHttpGateway, type StackFrame, StackLogger, StartSession, type State, type StateContext, Storage, type StoredBatchOptions, Str, type StringPipeResolver, type SyncChanges, SyncJob, SyncQueue, type TagAttributes, TagsNotSupportedError, TestCommand, ThrottleRequests, ThrottleRequestsError, TimeoutExceededError, TinkerCommand, type TinkerOptions, type TinkerRepl, TokenGuard, type TokenGuardOptions, TokenMismatchError, TokenRepository, type TransporterFactory, TrimStrings, TypeGenerator, type TypeGeneratorOptions, type TypedRedirector, UNIQUE_LOCK, USERS_TABLE_MIGRATION, UniqueJobsNeedCacheError, UniqueLock, type UniqueLockSpec, UnknownCacheDriverError, UnknownCacheStoreError, UnknownDiskError, UnknownFilesystemDriverError, UnknownLogChannelError, UnknownLogDriverError, UnknownMailTransportError, UnknownMailerError, UnknownNotificationChannelError, UnknownQueueConnectionError, UnknownQueueDriverError, UnknownValidationRuleError, UnrenderableNotificationDataError, UnrenderableNotificationMailError, UnsupportedCipherError, UnsupportedOperationError, type UriParameter, UrlGenerationError, type UrlResolver, type UserProviderFactory, ValidateSignature, Validated, ValidationErrorImpl, ValidationException, ValidationFactoryImpl, ValidationServiceProvider, Validator, ValidatorImpl, type VerifiableUser, Verified, VerifyCsrfToken, VerifyEmail, type VerifyEmailMail, ViewFactoryUnavailableError, Vite, ViteError, ViteHtml, WORKER_DISCOVERY_DIRECTORIES, type Where, type WhereArgs, type WhereBoolean, WithoutOverlapping, Worker, type WorkerListener, type WorkerOptions, __, abort, abortIf, abortUnless, addApiRouting, allowGuests, app, applyExceptionCallbacks, applyMiddlewareCallbacks, applyReplacements, auth, back, bcrypt, builtinRules, bunRuntime, cache, castGet, castSet, classNameOf, clientAddress, collect, columnKey, compareRoutes, config, contentDisposition, cookie, createDailyChannel, createDialect, createPayload, createSingleChannel, createStderrChannel, createToken, csrfToken, currentContainer, currentLogContext, currentRequest, currentVite, databaseConfigDefaults, debugPage, decodePayload, decrypt, defaultAttributeName, defaultLockFactory, defaultProviders, defaultWorkerOptions, delaySeconds, describeError, deserialize, detectRuntime, discoverClasses, discoverFactories, discoverJobs, discoverListeners, discoverPolicies, dispatch, dispatchRoute, dispatchSync, encodePayload, encrypt, enumValues, env, errorBagFrom, errors, escapeHtml, event, exceedsJsonDepth, expandWildcardKeys, extensionFromMime, facade, fake, fetchNotifications, filterRouteList, formatAddress, formatDate, formatDateTime, formatRouteList, formatTimestamp, fromEntries, generateAppKey, generateModelTypes, getMorphAlias, getMorphedModel, guessTable, hashInfo, healthResponse, inertia, inertiaBody, inertiaHead, inject, ipMatches, isBlank, isBun, isDateCast, isEmptyValue, isEquivalent, isJsonCast, isListenerClass, isListenerTuple, isModel, isQueueable, isQueueableListener, isUnique, isUploadedFileLike, joinDiskPath, keyGenerateHandler, loadRelations, loadRoutesFrom, logger, makeFailedJobProvider, meetsLevel, mergeGroup, mergeLogContext, mergeRecursive, migrationDatePrefix, minimalPage, modelEventName, morphMap, normalizeAddress, normalizeAddresses, normalizeBackoff, normalizeLists, normalizePath, normalizeUri, now, old, openSqlite, optionalCookieJar, optionalSession, orderForBindings, parseArgv, parseBracketKey, parseCookieHeader, parseDateTime, parseKey, parseParameters, parseRuleSpec, parseSignature, passwordVerify, prepareValue, queueConfigDefaults, queueOptionsOf, raw as rawSql, rawWithBindings, redirect, registerHttpCommands, registerKeyGenerateCommand, registerMigrationCommands, registerModelTypesCommand, registerQueueCommands, registerStorageLinkCommand, renderContent, renderError, request, requestScope, resolveArguments, resolveDiskPath, resolveMiddleware, resolveMorphClass, resolveOptions, resourceRoutes, response, restoreJob, restoreValue, retry, roundTrip, route, routeListRows, runConsole, runConsoleAndExit, runMiddleware, runSeeder, sanitize, sendEmailVerificationUsing, sendNotification, serialize, serializeContext, serializeCookie, serializeDate, serializeValue, serve, serveBun, serveNode, servePublicFile, session, setClientAddress, stackFrames, statusFor, statusText, storageLinkHandler, substituteBindings, suggest, summarizeValidation, tap, toNotifiableList, toResponse, toWebRequest, tokenableType, transformLeaves, url, usePaginationResolvers, validateRequiredArguments, value, vite, viteReactRefresh, withHeaders, workerOptionsFrom, writeResponse };
|
|
13263
|
+
export { API_ROUTES_STUB, AboutCommand, AbstractPaginator, AccessGate, AddQueuedCookiesToResponse, type AfterCallback, AllMailersFailedError, AlwaysProp, AnonymousNotifiable, Application$9 as Application, ApplicationBuilder, ArgonHasher, type ArgonOptions, type ArgumentDefinition, Arr, ArraySessionHandler, ArrayTransport, Artisan, Attempting, type Attributes$1 as Attributes, type AttributesResolver, Auth, AuthManager, type AuthModel, type AuthModelBase, type AuthModelConstructor, AuthServiceProvider, AuthenticatableModel, Authenticate, AuthenticationError, Authorizable, type AuthorizableConstructor, AuthorizationError, AuthorizationErrorImpl, Authorize, BaseJob, BaseLogger, BasePipeline, BaseRouter, BaseUrlGenerator, Batch$1 as Batch, type BatchAttributes, BatchingUnavailableError, BcryptHasher, type BcryptOptions, type BeforeCallback, BelongsTo, BelongsToMany, BindingResolutionError, Blueprint, type BlueprintCommand, BufferedConsoleOutput, Builder, type BuiltInCast, type BuiltinRule, BuiltinRuleObject, type BunDatabase, BunSqliteDatabase, type BunStatement, Bus, Dispatcher as BusDispatcherImpl, BusError, BusServiceProvider, CACHE_TABLE_MIGRATION, CHAIN, Cache, CacheManager$1 as CacheManager, CacheRateLimiter, Repository as CacheRepositoryImpl, CacheServiceProvider, type Store as CacheStore, CallQueuedHandler, CallQueuedListener, type CanResetPassword, type CanResetPasswordUser, type CastDefinition, type CastsAttributes, type ChainSpec, type CipherName, CircularDependencyError, ClassRegistry$2 as ClassRegistry, ClosureCommand$4 as ClosureCommand, ClosureKernel, Collection$2 as Collection, type Column, type ColumnAttributes, ColumnDefinition, type ColumnInfo, type ColumnRef, type ColumnType, Command$4 as Command, CommandNotFoundError, ComponentNotFoundError, Connection, type ConsoleInput, type ConsoleIo, Kernel as ConsoleKernelImpl, type ConsoleOutput, ConsoleServiceProvider, Container$j as Container, ContainerNotAvailableError, Controller, ControllerMethodNotFoundError, ConvertEmptyStringsToNull, Cookie$1 as Cookie, type CookieDefaults, CookieJar$1 as CookieJar, CookieServiceProvider, CookieSessionHandler, CookieValuePrefix, type CreateMigrationOptions, Crypt, Cursor, type CursorPage, CursorPaginator, type CursorPaginatorOptions, DB, DEFAULT_MESSAGES, DailyRotatingStream, DatabaseBatchRepository, type DatabaseCommandContext, type DatabaseConfig, DatabaseConfigError, DatabaseError, DatabaseFailedJobProvider, DatabaseJob, type DatabaseJobRecord, DatabaseLock, DatabaseManagerImpl, DatabaseNotification, DatabaseNotificationChannel, DatabaseNotificationCollection, DatabaseNotificationsRelation, DatabaseQueue, type DatabaseQueueOptions, DatabaseServiceProvider, DatabaseSessionHandler, DatabaseStore, DatabaseTokenRepository, DatabaseUnavailableError, DecryptError, DeferProp, DiagnosingHealth, type Direction, Dispatchable, type EagerLoadSpec, EloquentUserProvider, EmailVerificationRequest, type Encoded, EncryptCookies, EncryptError, EncryptHistory, Encrypter$2 as Encrypter, EncryptionServiceProvider, EnsureEmailIsVerified, type EnumLike, type ErrorClass, ErrorHandler, Event, Dispatcher$1 as EventDispatcherImpl, type EventKey, type EventListenMap, EventServiceProvider, EventsNeedBusDispatcherError, EventsNeedClassRegistryError, ExceptionsConfiguration, Expression, type Facade$c as Facade, type FacadeStatics$c as FacadeStatics, Factory$b as Factory, type FactoryResult, Failed, FailoverTransport, Faker, FakerOverflowError, FileNotFoundError, FileSessionHandler, FileStore, FilesystemManager, FilesystemServiceProvider, ForeignIdColumnDefinition, ForeignKeyDefinition, FormRequest, FormUploadedFile, Gate, type GateAbility, GateResponse, GeneratorCommand, GenericLock, type GlobalScope, Grammar, type GroupAttributes, type GroupHost, GroupRegistrar, type GuardFactory, HasApiTokens, HasDatabaseNotifications, type HasDatabaseNotificationsModel, type HasFactory, HasMany, HasManyThrough, HasOne, HasOneOrMany, Hash, HashAlgorithmError, type HashInfo, HashManager, type HasherFactory, type HashingConfig, HashingServiceProvider, type Having, type HealthPage, HelpCommand, type HttpCommandOptions, HttpException, Kernel$1 as HttpKernelImpl, HttpRedirectResponse, HttpRedirector, HttpResponseException, HttpResponseFactory, HttpServerError, HttpServiceProvider, Hub, IncomingRequest, type IncomingRequestOptions, type IndexType, Inertia, InertiaError, InertiaHtml, InertiaMiddleware, Response$1 as InertiaPageResponse, ResponseFactory as InertiaResponseFactory, InertiaServiceProvider, type ValidationErrors as InertiaValidationErrors, type InferRuleType, type InferValidatedType, InvalidCacheConfigError, InvalidCastError, InvalidListenerError, InvalidLogLevelError, InvalidRuleParameterError, InvalidSignatureError, InvalidUrlSignatureError, JOBS_TABLE_MIGRATION, JobClassNotFoundError, type JobContext, type JobMiddleware, JobSerializationError, JoinClause, type JoinType, type JsonWhenCallback, KEY_GENERATE_SIGNATURE, type KernelApp, type KeyGenerateIO, LEVEL_SEVERITY, LazyCollection$1 as LazyCollection, type LengthAwarePage, LengthAwarePaginator, ListCommand, type ListenerTuple, type LocalDiskConfig, LocalFilesystem, type LockFactory, LockTimeoutError, Lockout, Log, LogChannelCycleError, LogManager, LogServiceProvider, LogTransport, type LoggedQuery, LogicError, Login, Logout, MIGRATION_CREATE_STUB, MIGRATION_STUB, MIGRATION_UPDATE_STUB, MODEL_EVENTS, Mail, MailManager, MailMessage, type MailMessageAction, MailNotificationChannel, MailQueueUnavailableError, MailServiceProvider, type MailTransporter, MailUnavailableError, Mailable, MailerImpl, MakeCastCommand, MakeCommandCommand, MakeControllerCommand, MakeEventCommand, MakeFactoryCommand, MakeJobCommand, MakeListenerCommand, MakeMailCommand, MakeMiddlewareCommand, MakeModelCommand, MakeNotificationCommand, MakeObserverCommand, MakePolicyCommand, MakeProviderCommand, MakeRequestCommand, MakeResourceCommand, MakeRuleCommand, MakeSeederCommand, MakeTestCommand, type Manifest, type ManifestChunk, ManuallyFailedError, type Many, MassAssignmentError, MaxAttemptsExceededError, MemoryStore, MergeProp, MessageBagImpl, MethodNotAllowedHttpError, MiddlewareConfiguration, MiddlewareNotFoundError, Migration, MigrationCreator, type MigrationRecord, MigrationRepository, type MigrationStatus, Migrator, type MigratorOptions, MissingAppKeyError, MissingModelError, MissingRecipientError, Model, type ModelBuilder, type ModelClass, type ModelConstructor, type ModelEvent, type ModelListener, ModelNotFoundError$1 as ModelNotFoundError, ModelRegistry, type MorphConstraint, MorphMany, MorphOne, MorphTo, MySqlSchemaGrammar, NOTIFICATIONS_TABLE, NOTIFICATIONS_TABLE_MIGRATION, type NewAccessToken, NodeConsoleInput, NodeConsoleOutput, NotDatabaseNotifiableError, NotFoundHttpError, Notifiable, type NotifiableConstructor, Notification$1 as Notification, Dispatcher$2 as NotificationDispatcherImpl, NotificationDispatcherUnavailableError, NotificationFacade, NotificationQueueUnavailableError, NotificationsServiceProvider, NullFailedJobProvider, NullLogger, NullQueue, OPERATORS, OnceProp, type OptionDefinition, type OptionValue$4 as OptionValue, OptionalProp, type Order, PERSONAL_ACCESS_TOKENS_MIGRATION, type PagePropsFrom, type PaginationLink, Paginator, type PaginatorOptions, type ParsedInput, type ParsedRule, type ParsedSetCookie, type ParsedSignature, Password, PasswordBroker, PasswordBrokerManager, PasswordReset, PasswordRule, PathTraversalError, PendingBatch, PendingChain, PendingDispatch, PersonalAccessToken, PinoLogger, PipelineError, PipelineServiceProvider, Pivot, type PivotIds, type PlainNotificationMail, type PolicyClass, PostgresSchemaGrammar, type PreloadAttributesResolver, PropsResolver, ProviderBootError, ProviderRegisterError, QUEUE_JOB, Builder$1 as QueryBuilder, QueryError, Queue$1 as Queue, QueueBase, type QueueCommandContext, QueueError, type QueueJobPayload, QueueManager, QueueServiceProvider, QueueUnavailableError, Queueable, QueuedConsoleInput, QueuedMailSender, type QueuedMailableFactory, RESTART_CACHE_KEY, RateLimiter, type RawResult, type RecipientOverrides, RedirectIfAuthenticated, RedisJob, RedisLock, RedisQueue, type RedisQueueOptions, RedisRepository, type RedisSessionClient, RedisSessionHandler, RedisStore, RedisTaggedStore, type ReferentialAction, Registered, type RegisteredModel, Relation, type RelationConstraint, type RelationNames, RelationNotFoundError, RelationNotLoadedError, type RelationValue, type RenderCallback, type RenderedContent, type ReplStarter, type ReportCallback, Repository$1 as Repository, ResetPassword, type ResetPasswordMail, type ResolvedMiddleware, type ResolvedServeOptions, type ResourceMethod, type ResourceRoute, type RollbackOptions, Route$1 as Route, type RouteAttributes, type RouteBinder, RouteDefinition, type RouteFileCallback, type RouteHandler, type RouteListFilters, type RouteListRow, RouteModelNotFoundError, RouteModelResolverImpl, RouteNotDefinedError, type RouteStage, RoutesNotifications, RoutingError, type RoutingOptions, RoutingServiceProvider, Rule, type RuleContext, type RunningServer, type Runtime, type S3ClientLike, type S3DiskConfig, S3Filesystem, SSR_RENDER_FAILED, STORAGE_LINK_SIGNATURE, Schedule, ScheduleImpl, ScheduleListCommand, ScheduleNameRequiredError, ScheduleRunCommand, ScheduleWorkCommand, type ScheduleWorkOptions, ScheduledEventImpl, Schema, SchemaBuilder, SchemaBuilderToken, SchemaGrammar, type Scope, type ScopeCallback, type ScopeStatic, type Scopes, type ScrollMetadata, ScrollProp, Seeder, type SeederClass, type SelectColumn, SendEmailVerificationNotification, SendQueuedMailable, SendQueuedNotifications, type Serialized, type SerializedObject, type ServeOptions, ServiceProvider$t as ServiceProvider, SessionFacade as Session, type SessionConfig, SessionGuard, type SessionGuardOptions, type SessionHandlerFactory, SessionManager, SessionMessageBag, SessionServiceProvider, Store$1 as SessionStore, type SharedPropsFrom, type SimplePage, type SmtpConfig, SmtpTransport, SoftDeletingScope, type SpawnResult, type Spawner, SqliteSchemaGrammar, SsrError, type SsrFailure, HttpGateway as SsrHttpGateway, type StackFrame, StackLogger, StartSession, type State, type StateContext, Storage, type StoredBatchOptions, Str, type StringPipeResolver, type SyncChanges, SyncJob, SyncQueue, type TagAttributes, TagsNotSupportedError, TestCommand, ThrottleRequests, ThrottleRequestsError, TimeoutExceededError, TinkerCommand, type TinkerOptions, type TinkerRepl, TokenGuard, type TokenGuardOptions, TokenMismatchError, TokenRepository, type TransporterFactory, TrimStrings, TypeGenerator, type TypeGeneratorOptions, type TypedRedirector, UNIQUE_LOCK, USERS_TABLE_MIGRATION, UniqueJobsNeedCacheError, UniqueLock, type UniqueLockSpec, UnknownCacheDriverError, UnknownCacheStoreError, UnknownDiskError, UnknownFilesystemDriverError, UnknownLogChannelError, UnknownLogDriverError, UnknownMailTransportError, UnknownMailerError, UnknownNotificationChannelError, UnknownQueueConnectionError, UnknownQueueDriverError, UnknownValidationRuleError, UnrenderableNotificationDataError, UnrenderableNotificationMailError, UnsupportedCipherError, UnsupportedOperationError, type UriParameter, UrlGenerationError, type UrlResolver, type UserProviderFactory, ValidateSignature, Validated, ValidationErrorImpl, ValidationException, ValidationFactoryImpl, ValidationServiceProvider, Validator, ValidatorImpl, type VerifiableUser, Verified, VerifyCsrfToken, VerifyEmail, type VerifyEmailMail, ViewFactoryUnavailableError, Vite, ViteError, ViteHtml, WORKER_DISCOVERY_DIRECTORIES, type Where, type WhereArgs, type WhereBoolean, WithoutOverlapping, Worker, type WorkerListener, type WorkerOptions, __, abort, abortIf, abortUnless, addApiRouting, allowGuests, app, applyExceptionCallbacks, applyMiddlewareCallbacks, applyReplacements, auth, back, bcrypt, builtinRules, bunRuntime, cache, castGet, castSet, classNameOf, clientAddress, collect, columnKey, compareRoutes, config, contentDisposition, cookie, createDailyChannel, createDialect, createPayload, createSingleChannel, createStderrChannel, createToken, csrfToken, currentContainer, currentLogContext, currentRequest, currentVite, databaseConfigDefaults, debugPage, decodePayload, decrypt, defaultAttributeName, defaultLockFactory, defaultProviders, defaultWorkerOptions, delaySeconds, describeError, deserialize, detectRuntime, discoverClasses, discoverFactories, discoverJobs, discoverListeners, discoverPolicies, dispatch, dispatchRoute, dispatchSync, encodePayload, encrypt, enumValues, env, errorBagFrom, errors, escapeHtml, event, exceedsJsonDepth, expandWildcardKeys, extensionFromMime, facade, fake, filterRouteList, formatAddress, formatDate, formatDateTime, formatRouteList, formatTimestamp, fromEntries, generateAppKey, generateModelTypes, getMorphAlias, getMorphedModel, guessTable, hashInfo, healthResponse, inertia, inertiaBody, inertiaHead, inject, ipMatches, isBlank, isBun, isDateCast, isEmptyValue, isEquivalent, isJsonCast, isListenerClass, isListenerTuple, isModel, isQueueable, isQueueableListener, isUnique, isUploadedFileLike, joinDiskPath, keyGenerateHandler, loadRelations, loadRoutesFrom, logger, makeFailedJobProvider, meetsLevel, mergeGroup, mergeLogContext, mergeRecursive, migrationDatePrefix, minimalPage, modelEventName, morphMap, normalizeAddress, normalizeAddresses, normalizeBackoff, normalizeLists, normalizePath, normalizeUri, now, old, openSqlite, optionalCookieJar, optionalSession, orderForBindings, parseArgv, parseBracketKey, parseCookieHeader, parseDateTime, parseKey, parseParameters, parseRuleSpec, parseSignature, passwordVerify, prepareValue, queueConfigDefaults, queueOptionsOf, raw as rawSql, rawWithBindings, redirect, registerHttpCommands, registerKeyGenerateCommand, registerMigrationCommands, registerModelTypesCommand, registerQueueCommands, registerStorageLinkCommand, renderContent, renderError, request, requestScope, resolveArguments, resolveDiskPath, resolveMiddleware, resolveMorphClass, resolveOptions, resourceRoutes, response, restoreJob, restoreValue, retry, roundTrip, route, routeListRows, runConsole, runConsoleAndExit, runMiddleware, runSeeder, sanitize, sendEmailVerificationUsing, sendNotification, serialize, serializeContext, serializeCookie, serializeDate, serializeValue, serve, serveBun, serveNode, servePublicFile, session, setClientAddress, stackFrames, statusFor, statusText, storageLinkHandler, substituteBindings, suggest, summarizeValidation, tap, toNotifiableList, toResponse, toWebRequest, tokenableType, transformLeaves, url, usePaginationResolvers, validateRequiredArguments, value, vite, viteReactRefresh, withHeaders, workerOptionsFrom, writeResponse };
|