Skip to content

Commit d32aad4

Browse files
committed
feat: allow connection names without 'type'
1 parent a24dee6 commit d32aad4

20 files changed

+770
-452
lines changed

dist/actions/destroy.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import Action from "./action";
44
* Destroy action for sending a delete mutation. Will be used for record.$destroy().
55
*/
66
export default class Destroy extends Action {
7+
/**
8+
* Registers the record.$destroy() and record.$deleteAndDestroy() methods and
9+
* the destroy Vuex Action.
10+
*/
11+
static setup(): void;
712
/**
813
* @param {State} state The Vuex state
914
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model

dist/actions/fetch.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import Action from "./action";
44
* Fetch action for sending a query. Will be used for Model.fetch().
55
*/
66
export default class Fetch extends Action {
7+
/**
8+
* Registers the Model.fetch() method and the fetch Vuex Action.
9+
*/
10+
static setup(): void;
711
/**
812
* @param {any} state The Vuex state
913
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model

dist/actions/index.d.ts

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import Action from './action';
2-
import Destroy from './destroy';
3-
import Fetch from './fetch';
4-
import Mutate from './mutate';
5-
import Persist from './persist';
6-
import Push from './push';
7-
export { Action, Destroy, Fetch, Mutate, Persist, Push };
1+
import Action from "./action";
2+
import Destroy from "./destroy";
3+
import Fetch from "./fetch";
4+
import Mutate from "./mutate";
5+
import Persist from "./persist";
6+
import Push from "./push";
7+
import Query from "./query";
8+
import SimpleQuery from "./simple-query";
9+
import SimpleMutation from "./simple-mutation";
10+
export { SimpleQuery, SimpleMutation, Query, Action, Destroy, Fetch, Mutate, Persist, Push };

dist/actions/mutate.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import Action from "./action";
44
* Mutate action for sending a custom mutation. Will be used for Model.mutate() and record.$mutate().
55
*/
66
export default class Mutate extends Action {
7+
/**
8+
* Registers the Model.mutate() and the record.$mutate() methods and the mutate Vuex Action.
9+
*/
10+
static setup(): void;
711
/**
812
* @param {any} state The Vuex state
913
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model

dist/actions/persist.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import Action from "./action";
44
* Persist action for sending a create mutation. Will be used for record.$persist().
55
*/
66
export default class Persist extends Action {
7+
/**
8+
* Registers the record.$persist() method and the persist Vuex Action.
9+
*/
10+
static setup(): void;
711
/**
812
* @param {any} state The Vuex state
913
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model

dist/actions/push.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import Action from "./action";
44
* Push action for sending a update mutation. Will be used for record.$push().
55
*/
66
export default class Push extends Action {
7+
/**
8+
* Registers the record.$push() method and the push Vuex Action.
9+
*/
10+
static setup(): void;
711
/**
812
* @param {any} state The Vuex state
913
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model

dist/actions/query.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import Action from "./action";
44
* Query action for sending a custom query. Will be used for Model.customQuery() and record.$customQuery.
55
*/
66
export default class Query extends Action {
7+
/**
8+
* Registers the Model.customQuery and the record.$customQuery() methods and the
9+
* query Vuex Action.
10+
*/
11+
static setup(): void;
712
/**
813
* @param {any} state The Vuex state
914
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model

dist/actions/simple-mutation.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import Action from "./action";
44
* SimpleMutation action for sending a model unrelated simple mutation.
55
*/
66
export default class SimpleMutation extends Action {
7+
/**
8+
* Registers the Model.simpleMutation() Vuex Root Action.
9+
*/
10+
static setup(): void;
711
/**
812
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
913
* @param {string} query The query to send

dist/actions/simple-query.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import Action from "./action";
44
* SimpleQuery action for sending a model unrelated simple query.
55
*/
66
export default class SimpleQuery extends Action {
7+
/**
8+
* Registers the Model.simpleQuery() Vuex Root Action.
9+
*/
10+
static setup(): void;
711
/**
812
* @param {DispatchFunction} dispatch Vuex Dispatch method for the model
913
* @param {string} query The query to send

0 commit comments

Comments
 (0)