@narrative.io/data-collaboration-sdk-ts 2.49.0 → 2.50.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/build/datasets/index.d.ts +9 -0
- package/build/datasets/index.js +11 -0
- package/package.json +1 -1
|
@@ -166,6 +166,15 @@ export declare class DatasetApi extends BaseApi {
|
|
|
166
166
|
* @memberof DatasetApi
|
|
167
167
|
*/
|
|
168
168
|
requestDatasetSample(datasetId: number): Promise<void>;
|
|
169
|
+
/**
|
|
170
|
+
* Deletes a sample of a specified dataset by its ID.
|
|
171
|
+
*
|
|
172
|
+
* @param {number} datasetId - The ID of the dataset to delete the sample from.
|
|
173
|
+
* @returns {Promise<void>} A Promise that resolves when the operation is complete.
|
|
174
|
+
* @throws {Error} If there is an issue with the request or the response.
|
|
175
|
+
* @memberof DatasetApi
|
|
176
|
+
*/
|
|
177
|
+
deleteDatasetSample(datasetId: number): Promise<void>;
|
|
169
178
|
/**
|
|
170
179
|
* Refreshes the materlized view for the given dataset id.
|
|
171
180
|
*
|
package/build/datasets/index.js
CHANGED
|
@@ -205,6 +205,17 @@ export class DatasetApi extends BaseApi {
|
|
|
205
205
|
async requestDatasetSample(datasetId) {
|
|
206
206
|
await this.post(`${resourceName}/${datasetId}/request-sample`);
|
|
207
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Deletes a sample of a specified dataset by its ID.
|
|
210
|
+
*
|
|
211
|
+
* @param {number} datasetId - The ID of the dataset to delete the sample from.
|
|
212
|
+
* @returns {Promise<void>} A Promise that resolves when the operation is complete.
|
|
213
|
+
* @throws {Error} If there is an issue with the request or the response.
|
|
214
|
+
* @memberof DatasetApi
|
|
215
|
+
*/
|
|
216
|
+
async deleteDatasetSample(datasetId) {
|
|
217
|
+
await this.delete(`${resourceName}/${datasetId}/sample`);
|
|
218
|
+
}
|
|
208
219
|
/**
|
|
209
220
|
* Refreshes the materlized view for the given dataset id.
|
|
210
221
|
*
|