@wxn0brp/vql-client 0.2.10 → 0.2.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/vql.d.ts +11 -1
- package/package.json +1 -1
package/dist/vql.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export interface VQuery<T = Data> {
|
|
|
106
106
|
updater?: Updater<T>;
|
|
107
107
|
control?: VQuery_Control;
|
|
108
108
|
}
|
|
109
|
-
declare namespace VQueryT {
|
|
109
|
+
export declare namespace VQueryT {
|
|
110
110
|
type QueryBase<T = Data> = Required<Pick<VQuery<T>, "collection" | "search">> & Pick<VQuery<T>, "control">;
|
|
111
111
|
type Add<T = Data> = Required<Pick<VQuery<T>, "data" | "collection">> & Pick<VQuery<T>, "id_gen" | "control">;
|
|
112
112
|
type Find<T = Data> = Omit<QueryBase, "search"> & Pick<VQuery<T>, "search"> & Pick<VQuery<T>, "findOpts" | "dbFindOpts" | "context">;
|
|
@@ -124,6 +124,16 @@ declare namespace VQueryT {
|
|
|
124
124
|
type: "added" | "removed";
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
+
export type QueryBase<T = Data> = VQueryT.QueryBase<T>;
|
|
128
|
+
export type AddQuery<T = Data> = VQueryT.Add<T>;
|
|
129
|
+
export type FindQuery<T = Data> = VQueryT.Find<T>;
|
|
130
|
+
export type FindOneQuery<T = Data> = VQueryT.FindOne<T>;
|
|
131
|
+
export type UpdateQuery<T = Data> = VQueryT.Update<T>;
|
|
132
|
+
export type RemoveQuery<T = Data> = VQueryT.Remove<T>;
|
|
133
|
+
export type UpdateOneOrAddQuery<T = Data> = VQueryT.UpdateOneOrAdd<T>;
|
|
134
|
+
export type ToggleOneQuery<T = Data> = VQueryT.ToggleOne<T>;
|
|
135
|
+
export type UpdateOneOrAddResult<T> = VQueryT.UpdateOneOrAddResult<T>;
|
|
136
|
+
export type ToggleOneResult<T> = VQueryT.ToggleOneResult<T>;
|
|
127
137
|
export interface DbFindOpts<T = any> {
|
|
128
138
|
reverse?: boolean;
|
|
129
139
|
limit?: number;
|