@narrative.io/data-collaboration-sdk-ts 2.57.0 → 2.57.1
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.
|
@@ -161,11 +161,13 @@ export declare class DatasetApi extends BaseApi {
|
|
|
161
161
|
* Requests a sample of records from a specified dataset by its ID.
|
|
162
162
|
*
|
|
163
163
|
* @param {number} datasetId - The ID of the dataset to request a sample from.
|
|
164
|
-
* @returns {Promise<
|
|
164
|
+
* @returns {Promise<{ job_id: string }>} A Promise that resolves with the job_id for tracking the sample request.
|
|
165
165
|
* @throws {Error} If there is an issue with the request or the response.
|
|
166
166
|
* @memberof DatasetApi
|
|
167
167
|
*/
|
|
168
|
-
requestDatasetSample(datasetId: number): Promise<
|
|
168
|
+
requestDatasetSample(datasetId: number): Promise<{
|
|
169
|
+
job_id: string;
|
|
170
|
+
}>;
|
|
169
171
|
/**
|
|
170
172
|
* Deletes a sample of a specified dataset by its ID.
|
|
171
173
|
*
|
package/build/datasets/index.js
CHANGED
|
@@ -198,12 +198,12 @@ export class DatasetApi extends BaseApi {
|
|
|
198
198
|
* Requests a sample of records from a specified dataset by its ID.
|
|
199
199
|
*
|
|
200
200
|
* @param {number} datasetId - The ID of the dataset to request a sample from.
|
|
201
|
-
* @returns {Promise<
|
|
201
|
+
* @returns {Promise<{ job_id: string }>} A Promise that resolves with the job_id for tracking the sample request.
|
|
202
202
|
* @throws {Error} If there is an issue with the request or the response.
|
|
203
203
|
* @memberof DatasetApi
|
|
204
204
|
*/
|
|
205
205
|
async requestDatasetSample(datasetId) {
|
|
206
|
-
await this.post(`${resourceName}/${datasetId}/request-sample`);
|
|
206
|
+
return await this.post(`${resourceName}/${datasetId}/request-sample`);
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
209
|
* Deletes a sample of a specified dataset by its ID.
|