We are using the genesyscloud-node-sdk to fetch conversation aggregates with paging. The code looks like this:
const response = await analyticsApi.postAnalyticsConversationsAggregates({
body: {
paging: { pageSize: 10, pageNumber: 1 }
},
// other filters...
});
console.log(response.paging.pageCount); // Returns 1
The pageCount is always 1 even though we know there are 50 pages of data. The total field in the paging object is correct but pageCount is not calculated. Is this a known issue with the SDK or the API? We are on SDK version v1.0.123.