@luminix/core 0.0.1-beta.1 → 0.0.1-beta.10

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.
@@ -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
- "__#1@#emitter": import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
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
- "__#1@#emitter": import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
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
- static name: string;
6
+ [Symbol.toStringTag]: string;
7
7
  intersect(values: Collection<Model> | Model[]): CollectionInterface<Model>;
8
8
  }
9
9
  export default ModelCollection;