@luminix/core 0.3.6 → 0.3.8

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/core.js CHANGED
@@ -185,7 +185,7 @@ class Me extends A {
185
185
  return this.bag.set("q", e), this;
186
186
  }
187
187
  minified() {
188
- return this.bag.set("minified", !0), this;
188
+ return this.bag.set("minified", 1), this;
189
189
  }
190
190
  unset(e) {
191
191
  return this.bag.delete(e), this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/core",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "> Projeto em desenvolvimento",
5
5
  "main": "dist/core.js",
6
6
  "module": "dist/core.js",
@@ -1,6 +1,5 @@
1
- import { EventSource, Collection, Response, Event, Constructor } from '@luminix/support';
1
+ import { EventSource, Collection, Response, Event, Constructor, JsonObject, JsonValue, Client } from '@luminix/support';
2
2
  import { RelationInterface as RawRelationInterface, BuilderInterface, Scope, ExtendedOperator } from './Relation';
3
- import { JsonObject, JsonValue } from './Support';
4
3
  import { RouteGenerator } from './Route';
5
4
  type RelationInterface = RawRelationInterface<Model, ModelPaginatedResponse>;
6
5
  export type RelationRepository = Record<string, RelationInterface>;
@@ -57,11 +56,11 @@ export declare class BaseModel extends EventSource<ModelEvents> {
57
56
  diff(): JsonObject;
58
57
  getType(): string;
59
58
  dump(): void;
60
- save(options?: ModelSaveOptions): Promise<Response | void>;
61
- update(attributes: JsonObject): Promise<void>;
59
+ save(options?: ModelSaveOptions, tap?: (client: Client) => Client): Promise<Response | void>;
60
+ update(attributes: JsonObject, tap?: (client: Client) => Client): Promise<void>;
62
61
  delete(): Promise<Response>;
63
62
  forceDelete(): Promise<Response>;
64
- restore(): Promise<Response>;
63
+ restore(tap?: (client: Client) => Client): Promise<Response>;
65
64
  refresh(): Promise<void>;
66
65
  relation(relationName: string): RelationInterface | undefined;
67
66
  getErrorBag(method: string): string;