@magemetrics/core 0.1.5 → 0.1.7
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 +4 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -519,6 +519,10 @@ export declare class MageMetricsClient {
|
|
|
519
519
|
toJSON(): {
|
|
520
520
|
config: string;
|
|
521
521
|
};
|
|
522
|
+
get apiConfig(): {
|
|
523
|
+
apiUrl: string;
|
|
524
|
+
apiKey: string;
|
|
525
|
+
};
|
|
522
526
|
/**
|
|
523
527
|
* Add an event listener for authentication state changes
|
|
524
528
|
* @param type the type of the event
|
package/dist/index.js
CHANGED
|
@@ -2572,7 +2572,7 @@ var toSearchParams = ({ cursor, filters, sorting, limit }) => {
|
|
|
2572
2572
|
|
|
2573
2573
|
// package.json
|
|
2574
2574
|
var package_default = {
|
|
2575
|
-
version: "0.1.
|
|
2575
|
+
version: "0.1.7"};
|
|
2576
2576
|
var MageMetricsChatTransport = class extends DefaultChatTransport {
|
|
2577
2577
|
constructor(apiUrl, flowId, options) {
|
|
2578
2578
|
super({
|
|
@@ -2676,6 +2676,12 @@ var MageMetricsClient = class {
|
|
|
2676
2676
|
config: this.encodeCheckKey(this.config.apiKey, this.config.apiUrl)
|
|
2677
2677
|
};
|
|
2678
2678
|
}
|
|
2679
|
+
get apiConfig() {
|
|
2680
|
+
return {
|
|
2681
|
+
apiUrl: this.config.apiUrl,
|
|
2682
|
+
apiKey: this.config.apiKey
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2679
2685
|
/**
|
|
2680
2686
|
* Add an event listener for authentication state changes
|
|
2681
2687
|
* @param type the type of the event
|
|
@@ -2919,7 +2925,7 @@ var MageMetricsClient = class {
|
|
|
2919
2925
|
method: "GET"
|
|
2920
2926
|
});
|
|
2921
2927
|
}
|
|
2922
|
-
return data;
|
|
2928
|
+
return data.messages;
|
|
2923
2929
|
},
|
|
2924
2930
|
fetchReportData: async (reportId, { columns, limit, sorting, filters, cursor }) => {
|
|
2925
2931
|
const params = toSearchParams({ limit, sorting, filters, cursor });
|