@narrative.io/data-collaboration-sdk-ts 2.56.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<void>} A Promise that resolves when the operation is complete.
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<void>;
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
  *
@@ -187,4 +189,5 @@ export declare class DatasetApi extends BaseApi {
187
189
  refreshMaterializedView(datasetId: number): Promise<void>;
188
190
  createDatasetRefreshSchedule(datasetId: number, refreshSchedule: CreateDatasetRefreshScheduleRequest): Promise<void>;
189
191
  updateDatasetRefreshSchedule(datasetId: number, refreshSchedule: UpdateDatasetRefreshScheduleRequest): Promise<void>;
192
+ deleteDatasetRefreshSchedule(datasetId: number): Promise<void>;
190
193
  }
@@ -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<void>} A Promise that resolves when the operation is complete.
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.
@@ -237,4 +237,7 @@ export class DatasetApi extends BaseApi {
237
237
  async updateDatasetRefreshSchedule(datasetId, refreshSchedule) {
238
238
  return await this.put(`${resourceName}/${datasetId}/refresh-schedule`, refreshSchedule);
239
239
  }
240
+ async deleteDatasetRefreshSchedule(datasetId) {
241
+ await this.delete(`${resourceName}/${datasetId}/refresh-schedule`);
242
+ }
240
243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "2.56.0",
3
+ "version": "2.57.1",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",