Skip to content

Commit

Permalink
feat: allow connection names without 'type'
Browse files Browse the repository at this point in the history
  • Loading branch information
phortx committed May 27, 2020
1 parent a24dee6 commit d32aad4
Show file tree
Hide file tree
Showing 20 changed files with 770 additions and 452 deletions.
5 changes: 5 additions & 0 deletions dist/actions/destroy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import Action from "./action";
* Destroy action for sending a delete mutation. Will be used for record.$destroy().
*/
export default class Destroy extends Action {
/**
* Registers the record.$destroy() and record.$deleteAndDestroy() methods and
* the destroy Vuex Action.
*/
static setup(): void;
/**
* @param {State} state The Vuex state
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
Expand Down
4 changes: 4 additions & 0 deletions dist/actions/fetch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Action from "./action";
* Fetch action for sending a query. Will be used for Model.fetch().
*/
export default class Fetch extends Action {
/**
* Registers the Model.fetch() method and the fetch Vuex Action.
*/
static setup(): void;
/**
* @param {any} state The Vuex state
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
Expand Down
17 changes: 10 additions & 7 deletions dist/actions/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import Action from './action';
import Destroy from './destroy';
import Fetch from './fetch';
import Mutate from './mutate';
import Persist from './persist';
import Push from './push';
export { Action, Destroy, Fetch, Mutate, Persist, Push };
import Action from "./action";
import Destroy from "./destroy";
import Fetch from "./fetch";
import Mutate from "./mutate";
import Persist from "./persist";
import Push from "./push";
import Query from "./query";
import SimpleQuery from "./simple-query";
import SimpleMutation from "./simple-mutation";
export { SimpleQuery, SimpleMutation, Query, Action, Destroy, Fetch, Mutate, Persist, Push };
4 changes: 4 additions & 0 deletions dist/actions/mutate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Action from "./action";
* Mutate action for sending a custom mutation. Will be used for Model.mutate() and record.$mutate().
*/
export default class Mutate extends Action {
/**
* Registers the Model.mutate() and the record.$mutate() methods and the mutate Vuex Action.
*/
static setup(): void;
/**
* @param {any} state The Vuex state
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
Expand Down
4 changes: 4 additions & 0 deletions dist/actions/persist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Action from "./action";
* Persist action for sending a create mutation. Will be used for record.$persist().
*/
export default class Persist extends Action {
/**
* Registers the record.$persist() method and the persist Vuex Action.
*/
static setup(): void;
/**
* @param {any} state The Vuex state
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
Expand Down
4 changes: 4 additions & 0 deletions dist/actions/push.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Action from "./action";
* Push action for sending a update mutation. Will be used for record.$push().
*/
export default class Push extends Action {
/**
* Registers the record.$push() method and the push Vuex Action.
*/
static setup(): void;
/**
* @param {any} state The Vuex state
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
Expand Down
5 changes: 5 additions & 0 deletions dist/actions/query.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import Action from "./action";
* Query action for sending a custom query. Will be used for Model.customQuery() and record.$customQuery.
*/
export default class Query extends Action {
/**
* Registers the Model.customQuery and the record.$customQuery() methods and the
* query Vuex Action.
*/
static setup(): void;
/**
* @param {any} state The Vuex state
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
Expand Down
4 changes: 4 additions & 0 deletions dist/actions/simple-mutation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Action from "./action";
* SimpleMutation action for sending a model unrelated simple mutation.
*/
export default class SimpleMutation extends Action {
/**
* Registers the Model.simpleMutation() Vuex Root Action.
*/
static setup(): void;
/**
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
* @param {string} query The query to send
Expand Down
4 changes: 4 additions & 0 deletions dist/actions/simple-query.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Action from "./action";
* SimpleQuery action for sending a model unrelated simple query.
*/
export default class SimpleQuery extends Action {
/**
* Registers the Model.simpleQuery() Vuex Root Action.
*/
static setup(): void;
/**
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
* @param {string} query The query to send
Expand Down
Loading

0 comments on commit d32aad4

Please sign in to comment.