@wxn0brp/vql-client 0.2.10 → 0.2.12

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.
Files changed (2) hide show
  1. package/dist/vql.d.ts +11 -3
  2. 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;
@@ -208,7 +218,6 @@ export interface VQL_OP_Find<T = any> {
208
218
  collection: string;
209
219
  search?: Search<T>;
210
220
  limit?: number;
211
- fields?: VQL_Fields;
212
221
  select?: VQL_Fields;
213
222
  options?: DbFindOpts<T>;
214
223
  searchOpts?: FindOpts<T>;
@@ -216,7 +225,6 @@ export interface VQL_OP_Find<T = any> {
216
225
  export interface VQL_OP_FindOne<T = any> {
217
226
  collection: string;
218
227
  search: Search<T>;
219
- fields?: VQL_Fields;
220
228
  select?: VQL_Fields;
221
229
  searchOpts?: FindOpts<T>;
222
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/vql-client",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "VQL Client",