@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.
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/nosqldb/classes.doc.d.ts +14 -9
- package/dist_ts/nosqldb/classes.doc.js +20 -5
- package/dist_ts/objectstorage/classes.bucket.d.ts +16 -0
- package/dist_ts/objectstorage/classes.bucket.js +77 -3
- package/dist_ts/objectstorage/classes.objectrangeerror.d.ts +5 -0
- package/dist_ts/objectstorage/classes.objectrangeerror.js +9 -0
- package/dist_ts/objectstorage/index.d.ts +1 -0
- package/dist_ts/objectstorage/index.js +2 -1
- package/dist_ts/objectstorage/interfaces.d.ts +33 -0
- package/dist_ts/objectstorage/internal.bucketrequests.d.ts +4 -0
- package/dist_ts/objectstorage/internal.bucketrequests.js +2 -2
- package/package.json +1 -1
- package/readme.md +6 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/nosqldb/classes.doc.ts +42 -11
- package/ts/objectstorage/classes.bucket.ts +122 -2
- package/ts/objectstorage/classes.objectrangeerror.ts +11 -0
- package/ts/objectstorage/index.ts +1 -0
- package/ts/objectstorage/interfaces.ts +37 -0
- package/ts/objectstorage/internal.bucketrequests.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@lossless.org/client',
|
|
6
|
-
version: '1.
|
|
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
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* element
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
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
|
|
757
|
-
*
|
|
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
|