@lossless.org/client 1.15.0 → 1.16.0

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@lossless.org/client',
6
- version: '1.15.0',
6
+ version: '1.16.0',
7
7
  description: 'One typed client for NoSQLDB, MongoDB, SQLDB, MariaDB, ClickHouse and S3 object storage.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLDBGQUEwRjtDQUN4RyxDQUFBIn0=
@@ -287,13 +287,17 @@ export interface ISmartdataGroupedTotalsOptions<T, TUnwind extends TSmartdataGro
287
287
  */
288
288
  groupBy: ReadonlyArray<TSmartdataGroupedTotalsPath<T>>;
289
289
  /**
290
- * Groups by each element of one array instead of by the array: names
291
- * exactly one `groupBy` path, which must be a declared top-level array
292
- * field or a nested path declared through `@svDb({ arrayPaths })`. Every
293
- * element forms its own row, so `count` counts elements and a document
294
- * contributes its `sums` once per element; a document whose array is
295
- * missing, null or empty contributes nothing. The `filter` still selects
296
- * whole documents before the array is unwound.
290
+ * Aggregates per element of one array instead of per document: names a
291
+ * declared top-level array field or a nested path declared through
292
+ * `@svDb({ arrayPaths })`, which is itself a `groupBy` or `sums` path or
293
+ * holds the element fields that `groupBy` and `sums` paths name below it
294
+ * (`lines.accountNumber` below `unwind: 'lines'`). Element fields are
295
+ * declared nested paths like any other, through `@svDb({ atomicPaths })`
296
+ * on the array's field. Every element contributes on its own, so `count`
297
+ * counts elements and a document contributes its `sums` once per element;
298
+ * a document whose array is missing, null or empty contributes nothing.
299
+ * The `filter` still selects whole documents before the array is unwound,
300
+ * and no `groupBy` or `sums` path may contain the unwound array.
297
301
  */
298
302
  unwind?: TUnwind;
299
303
  /**
@@ -753,8 +757,9 @@ export declare class SmartDataDbDoc<T extends TImplements, TImplements, TManager
753
757
  * Computes bounded grouped counts and optional numeric sums server-side.
754
758
  * Groups by one or two declared paths — top-level fields or nested paths
755
759
  * declared through `@svDb({ atomicPaths })` or `@svDb({ arrayPaths })` —
756
- * optionally by each element of one declared array (`unwind`), always
757
- * returns a `count` per group, and sums only declared numeric paths. The
760
+ * optionally per element of one declared array (`unwind`), whose element
761
+ * fields `groupBy` and `sums` may then name, always returns a `count` per
762
+ * group, and sums only declared numeric paths. The
758
763
  * `$limit` follows the group stage without a sort, so when more groups
759
764
  * exist than the limit the returned subset is arbitrary. Use
760
765
  * `getGroupedTotalsPage()` when the caller must detect overflow. The