harvester_sdk 1.0.29 → 1.0.30
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/sdk.js +1 -1
- package/package.json +1 -1
- package/sdk.ts +2 -2
package/dist/sdk.js
CHANGED
package/package.json
CHANGED
package/sdk.ts
CHANGED
|
@@ -247,13 +247,13 @@ export class HarvesterSDK {
|
|
|
247
247
|
*/
|
|
248
248
|
async getData(params?: GetDataParams): Promise<PaginatedResponse<DataType>> {
|
|
249
249
|
const queryParams = this.buildDataQueryParams(params);
|
|
250
|
-
const response = await this.client.get<PaginatedResponse<DataType
|
|
250
|
+
const response = await this.client.get<{data: PaginatedResponse<DataType>}>(
|
|
251
251
|
'/data',
|
|
252
252
|
{
|
|
253
253
|
params: queryParams,
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
|
-
return response.data;
|
|
256
|
+
return response.data.data;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
/**
|