@squidcloud/client 1.0.81 → 1.0.83

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.
@@ -1,4 +1,4 @@
1
- import { DocId, DocIdObj, DocumentData } from '@squidcloud/common';
1
+ import { DocId, DocIdObj, DocumentData, SnapshotEmitter } from '@squidcloud/common';
2
2
  import { DocumentReference } from './document-reference';
3
3
  import { JoinQueryBuilder } from './query/join-query-builder.factory';
4
4
  import { QueryBuilder } from './query/query-builder.factory';
@@ -78,5 +78,5 @@ export declare class CollectionReference<T extends DocumentData> {
78
78
  * method).
79
79
  * @returns A query builder that can be used to perform the `or` operation.
80
80
  */
81
- or(...builders: QueryBuilder<T>[]): MergedQueryBuilder<T>;
81
+ or(...builders: QueryBuilder<T>[]): SnapshotEmitter<DocumentReference<T>>;
82
82
  }
@@ -68,7 +68,7 @@ export declare class JoinQueryBuilder<Aliases extends Record<Alias, Alias[]>, Re
68
68
  * @param asc Whether to sort in ascending order. Defaults to true.
69
69
  * @returns The query builder
70
70
  */
71
- sortBy(fieldName: keyof DocumentType & FieldName, asc?: boolean): this;
71
+ sortBy(fieldName: keyof ReturnType[RootAlias] & FieldName, asc?: boolean): this;
72
72
  /**
73
73
  * Joins this query with another join query and return a new query builder that can be used to query the joined
74
74
  * documents.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",