@junobuild/core-peer 0.0.24 → 0.0.25
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/browser/index.js +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/satellite/satellite.did.d.ts +4 -2
- package/dist/declarations/satellite/satellite.factory.did.js +32 -30
- package/dist/declarations/satellite/satellite.factory.did.mjs +32 -30
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/api/doc.api.d.ts +5 -0
- package/dist/types/api/storage.api.d.ts +5 -0
- package/dist/types/services/doc.services.d.ts +13 -0
- package/dist/types/services/storage.services.d.ts +13 -0
- package/package.json +1 -1
|
@@ -11,6 +11,11 @@ export declare const listAssets: ({ collection, satellite, filter }: {
|
|
|
11
11
|
satellite: Satellite;
|
|
12
12
|
filter: ListParams;
|
|
13
13
|
}) => Promise<ListResults<AssetNoContent>>;
|
|
14
|
+
export declare const countAssets: ({ collection, satellite, filter }: {
|
|
15
|
+
collection: string;
|
|
16
|
+
satellite: Satellite;
|
|
17
|
+
filter: ListParams;
|
|
18
|
+
}) => Promise<bigint>;
|
|
14
19
|
export declare const deleteAsset: ({ collection, fullPath, satellite }: {
|
|
15
20
|
collection: string;
|
|
16
21
|
satellite: Satellite;
|
|
@@ -97,3 +97,16 @@ export declare const listDocs: <D>({ satellite, filter, ...rest }: {
|
|
|
97
97
|
filter?: ListParams;
|
|
98
98
|
satellite?: SatelliteOptions;
|
|
99
99
|
}) => Promise<ListResults<Doc<D>>>;
|
|
100
|
+
/**
|
|
101
|
+
* Counts documents in a collection with optional filtering.
|
|
102
|
+
* @param {Object} params - The parameters for counting the documents.
|
|
103
|
+
* @param {string} params.collection - The name of the collection.
|
|
104
|
+
* @param {ListParams} [params.filter] - Optional filter parameters.
|
|
105
|
+
* @param {SatelliteOptions} [params.satellite] - Options for the satellite (useful for NodeJS usage only).
|
|
106
|
+
* @returns {Promise<bigint>} A promise that resolves to the count of documents as a bigint.
|
|
107
|
+
*/
|
|
108
|
+
export declare const countDocs: ({ satellite, filter, ...rest }: {
|
|
109
|
+
collection: string;
|
|
110
|
+
filter?: ListParams;
|
|
111
|
+
satellite?: SatelliteOptions;
|
|
112
|
+
}) => Promise<bigint>;
|
|
@@ -34,6 +34,19 @@ export declare const listAssets: ({ collection, satellite: satelliteOptions, fil
|
|
|
34
34
|
satellite?: SatelliteOptions;
|
|
35
35
|
filter?: ListParams;
|
|
36
36
|
}) => Promise<Assets>;
|
|
37
|
+
/**
|
|
38
|
+
* Counts assets in a collection with optional filtering.
|
|
39
|
+
* @param {Object} params - The parameters for counting the assets.
|
|
40
|
+
* @param {string} params.collection - The name of the collection.
|
|
41
|
+
* @param {SatelliteOptions} [params.satellite] - The satellite options (required only in NodeJS environment).
|
|
42
|
+
* @param {ListParams} [params.filter] - The filter parameters for narrowing down the count.
|
|
43
|
+
* @returns {Promise<bigint>} A promise that resolves to the count of assets as a bigint.
|
|
44
|
+
*/
|
|
45
|
+
export declare const countAssets: ({ collection, satellite: satelliteOptions, filter }: {
|
|
46
|
+
collection: string;
|
|
47
|
+
satellite?: SatelliteOptions;
|
|
48
|
+
filter?: ListParams;
|
|
49
|
+
}) => Promise<bigint>;
|
|
37
50
|
/**
|
|
38
51
|
* Deletes an asset from the storage.
|
|
39
52
|
* @param {Object} params - The parameters for deleting the asset.
|
package/package.json
CHANGED