@luminix/core 0.0.1-beta.1 → 0.0.1-beta.11
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/contracts/Builder.d.ts +5 -2
- package/dist/contracts/Collection.d.ts +1 -2
- package/dist/contracts/ModelCollection.d.ts +1 -1
- package/dist/core.js +920 -839
- package/dist/exceptions/AttributeNotFillableException.d.ts +1 -1
- package/dist/exceptions/FacadeNotFoundException.d.ts +1 -1
- package/dist/exceptions/MethodNotImplementedException.d.ts +1 -1
- package/dist/exceptions/ModelInvalidRelatedTypeException.d.ts +1 -1
- package/dist/exceptions/ModelNotFoundException.d.ts +1 -1
- package/dist/exceptions/ModelNotPersistedException.d.ts +1 -1
- package/dist/exceptions/ModelWithoutPrimaryKeyException.d.ts +1 -1
- package/dist/exceptions/NoEmbedException.d.ts +1 -1
- package/dist/exceptions/NoInverseRelationException.d.ts +1 -1
- package/dist/exceptions/NotModelException.d.ts +1 -1
- package/dist/exceptions/NotReducibleException.d.ts +1 -1
- package/dist/exceptions/ReducerOverrideException.d.ts +1 -1
- package/dist/exceptions/RouteNotFoundException.d.ts +1 -1
- package/dist/exceptions/UnsupportedRelationException.d.ts +1 -1
- package/dist/facades/App.d.ts +8 -2
- package/dist/facades/Model.d.ts +2 -3
- package/dist/helpers/auth.d.ts +3 -1
- package/dist/mixins/BaseModel.d.ts +2 -2
- package/dist/mixins/HasEvents.d.ts +1 -2
- package/dist/types/App.d.ts +7 -0
- package/dist/types/Builder.d.ts +4 -0
- package/dist/types/Model.d.ts +32 -6
- package/package.json +3 -2
- package/vite.config.js +3 -1
- package/graph.png +0 -0
|
@@ -26,10 +26,14 @@ declare class Builder implements BuilderInterface {
|
|
|
26
26
|
where(scope: (builder: BuilderInterface) => BuilderInterface | void): this;
|
|
27
27
|
where(key: string, value: JsonValue): this;
|
|
28
28
|
where(key: string, operator: ExtendedOperator, value: JsonValue): this;
|
|
29
|
+
with(relation: string | string[]): this;
|
|
30
|
+
withOnly(relation: string | string[]): this;
|
|
31
|
+
without(relation: string | string[]): this;
|
|
29
32
|
orderBy(column: string, direction?: 'asc' | 'desc'): this;
|
|
30
33
|
searchBy(term: string): this;
|
|
31
34
|
minified(): this;
|
|
32
35
|
unset(key: string): this;
|
|
36
|
+
include(searchParams: URLSearchParams): this;
|
|
33
37
|
private exec;
|
|
34
38
|
get(page?: number, replaceLinksWith?: string): Promise<ModelPaginatedResponse>;
|
|
35
39
|
first(): Promise<Model | null>;
|
|
@@ -38,13 +42,12 @@ declare class Builder implements BuilderInterface {
|
|
|
38
42
|
}
|
|
39
43
|
declare const _default: {
|
|
40
44
|
new (...args: any[]): {
|
|
41
|
-
|
|
45
|
+
emitter: import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
42
46
|
"__#1@#createNanoEvents"(): import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
43
47
|
on<E extends "change" | "submit" | "success" | "error">(event: E, callback: BuilderEventMap[E]): Unsubscribe;
|
|
44
48
|
once<E_1 extends "change" | "submit" | "success" | "error">(event: E_1, callback: BuilderEventMap[E_1]): void;
|
|
45
49
|
emit<E_2 extends "change" | "submit" | "success" | "error">(event: E_2, data?: Omit<Parameters<BuilderEventMap[E_2]>[0], "source">): void;
|
|
46
50
|
[Symbol.toStringTag]: string;
|
|
47
51
|
};
|
|
48
|
-
name: string;
|
|
49
52
|
} & typeof Builder;
|
|
50
53
|
export default _default;
|
|
@@ -179,13 +179,12 @@ export declare class Collection<T> implements CollectionInterface<T> {
|
|
|
179
179
|
}
|
|
180
180
|
declare const _default: {
|
|
181
181
|
new (...args: any[]): {
|
|
182
|
-
|
|
182
|
+
emitter: import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
183
183
|
"__#1@#createNanoEvents"(): import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
|
|
184
184
|
on<E extends "change">(event: E, callback: CollectionEvents<unknown>[E]): Unsubscribe;
|
|
185
185
|
once<E_1 extends "change">(event: E_1, callback: CollectionEvents<unknown>[E_1]): void;
|
|
186
186
|
emit<E_2 extends "change">(event: E_2, data?: Omit<Parameters<CollectionEvents<unknown>[E_2]>[0], "source">): void;
|
|
187
187
|
[Symbol.toStringTag]: string;
|
|
188
188
|
};
|
|
189
|
-
name: string;
|
|
190
189
|
} & typeof Collection;
|
|
191
190
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { Model } from '../types/Model';
|
|
|
3
3
|
import { Collection as CollectionInterface } from '../types/Collection';
|
|
4
4
|
|
|
5
5
|
declare class ModelCollection extends Collection<Model> {
|
|
6
|
-
|
|
6
|
+
[Symbol.toStringTag]: string;
|
|
7
7
|
intersect(values: Collection<Model> | Model[]): CollectionInterface<Model>;
|
|
8
8
|
}
|
|
9
9
|
export default ModelCollection;
|