@magemetrics/core 0.3.3 → 0.4.1-RC1
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/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -512,7 +512,7 @@ export declare class MageMetricsClient {
|
|
|
512
512
|
generateContextualInsight: (payload: GenerateInsightParam) => Promise<ExtractInsightResponse>;
|
|
513
513
|
getChatTransport: (flowId: string, options?: MageMetricsChatTransportOptions) => MageMetricsChatTransport;
|
|
514
514
|
getChatMessages: (flowId: string) => Promise<MMChatUIMessage[]>;
|
|
515
|
-
fetchReportData: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters) => Promise<{
|
|
515
|
+
fetchReportData: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters, signal?: AbortSignal) => Promise<{
|
|
516
516
|
[key: string]: unknown;
|
|
517
517
|
}[]>;
|
|
518
518
|
getReport: (reportId: number) => Promise<{
|
|
@@ -526,7 +526,7 @@ export declare class MageMetricsClient {
|
|
|
526
526
|
rowCount: {
|
|
527
527
|
count: number;
|
|
528
528
|
};
|
|
529
|
-
data: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters) => Promise<{
|
|
529
|
+
data: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters, signal?: AbortSignal) => Promise<{
|
|
530
530
|
[key: string]: unknown;
|
|
531
531
|
}[]>;
|
|
532
532
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -3108,7 +3108,7 @@ var toSearchParams = ({ cursor, filters, sorting, limit }) => {
|
|
|
3108
3108
|
|
|
3109
3109
|
// package.json
|
|
3110
3110
|
var package_default = {
|
|
3111
|
-
version: "0.
|
|
3111
|
+
version: "0.4.1-RC1"};
|
|
3112
3112
|
var MageMetricsChatTransport = class extends DefaultChatTransport {
|
|
3113
3113
|
constructor(apiUrl, flowId, options) {
|
|
3114
3114
|
super({
|
|
@@ -3603,7 +3603,7 @@ var MageMetricsClient = class {
|
|
|
3603
3603
|
}
|
|
3604
3604
|
return data.messages;
|
|
3605
3605
|
},
|
|
3606
|
-
fetchReportData: async (reportId, { columns, limit, sorting, filters, cursor }) => {
|
|
3606
|
+
fetchReportData: async (reportId, { columns, limit, sorting, filters, cursor }, signal) => {
|
|
3607
3607
|
const params = toSearchParams({ limit, sorting, filters, cursor });
|
|
3608
3608
|
const { data, error } = await this.internalApiClient.GET(
|
|
3609
3609
|
GetReportData.path,
|
|
@@ -3619,7 +3619,8 @@ var MageMetricsClient = class {
|
|
|
3619
3619
|
cursor: params.cursor,
|
|
3620
3620
|
filter: params.filter
|
|
3621
3621
|
}
|
|
3622
|
-
}
|
|
3622
|
+
},
|
|
3623
|
+
signal
|
|
3623
3624
|
}
|
|
3624
3625
|
);
|
|
3625
3626
|
if (error) {
|