@narrative.io/data-collaboration-sdk-ts 0.0.109 → 0.0.110
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,6 +1,6 @@
|
|
|
1
1
|
import { type ApiRecords } from "../types";
|
|
2
2
|
import { BaseApi } from "../base-api";
|
|
3
|
-
import type { FilePerSnapshotResponse, Dataset, DatasetTableSummaryAPIResponse, ColumnStatistics, RetentionPolicy, DatasetTableSummary } from "./types";
|
|
3
|
+
import type { FilePerSnapshotResponse, Dataset, DatasetTableSummaryAPIResponse, ColumnStatistics, RetentionPolicy, DatasetTableSummary, RecalculationInfo } from "./types";
|
|
4
4
|
export { type FilePerSnapshotResponse, type Dataset, type RetentionPolicy, type DatasetTableSummaryAPIResponse, type ColumnStatistics, };
|
|
5
5
|
/**
|
|
6
6
|
* @module DatasetApi
|
|
@@ -115,7 +115,7 @@ export declare class DatasetApi extends BaseApi {
|
|
|
115
115
|
* This method sends a POST request to the specified endpoint to start the recalculation process.
|
|
116
116
|
*
|
|
117
117
|
* @param {number} datasetId - The ID of the dataset whose column statistics need to be recalculated.
|
|
118
|
-
* @returns {Promise<
|
|
118
|
+
* @returns {Promise<RecalculationInfo>} A promise that resolves when the operation is complete.
|
|
119
119
|
*/
|
|
120
|
-
recalculateDatasetColumnStatistics(datasetId: number): Promise<
|
|
120
|
+
recalculateDatasetColumnStatistics(datasetId: number): Promise<RecalculationInfo>;
|
|
121
121
|
}
|
package/build/datasets/index.js
CHANGED
|
@@ -140,9 +140,9 @@ export class DatasetApi extends BaseApi {
|
|
|
140
140
|
* This method sends a POST request to the specified endpoint to start the recalculation process.
|
|
141
141
|
*
|
|
142
142
|
* @param {number} datasetId - The ID of the dataset whose column statistics need to be recalculated.
|
|
143
|
-
* @returns {Promise<
|
|
143
|
+
* @returns {Promise<RecalculationInfo>} A promise that resolves when the operation is complete.
|
|
144
144
|
*/
|
|
145
145
|
async recalculateDatasetColumnStatistics(datasetId) {
|
|
146
|
-
await this.post(`${resourceName}/${datasetId}/column-stats/recalculate`, {});
|
|
146
|
+
return await this.post(`${resourceName}/${datasetId}/column-stats/recalculate`, {});
|
|
147
147
|
}
|
|
148
148
|
}
|