@bytexbyte/berify-analytics-api 1.0.9 → 1.0.12
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/lib/Heatmap/index.d.ts +1 -2
- package/lib/Heatmap/index.js +4 -5
- package/package.json +1 -1
package/lib/Heatmap/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import BxBApi from '@bytexbyte/bxb-api';
|
|
2
2
|
import { HeatmapApi, HeatmapResult } from './type';
|
|
3
3
|
declare class BerifyHeatMapApi extends BxBApi {
|
|
4
|
-
constructor({ host,
|
|
4
|
+
constructor({ host, secret }: {
|
|
5
5
|
host: string;
|
|
6
|
-
secretKey?: string;
|
|
7
6
|
secret?: string;
|
|
8
7
|
});
|
|
9
8
|
getHeatmap(form: Parameters<HeatmapApi>[0]): Promise<HeatmapResult>;
|
package/lib/Heatmap/index.js
CHANGED
|
@@ -55,11 +55,10 @@ var bxb_api_1 = require("@bytexbyte/bxb-api");
|
|
|
55
55
|
var BerifyHeatMapApi = /** @class */ (function (_super) {
|
|
56
56
|
__extends(BerifyHeatMapApi, _super);
|
|
57
57
|
function BerifyHeatMapApi(_a) {
|
|
58
|
-
var host = _a.host,
|
|
58
|
+
var host = _a.host, secret = _a.secret;
|
|
59
59
|
return _super.call(this, {
|
|
60
60
|
host: host,
|
|
61
|
-
moduleName: '
|
|
62
|
-
secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : 'secretKey',
|
|
61
|
+
moduleName: 'heatmap',
|
|
63
62
|
secret: secret !== null && secret !== void 0 ? secret : 'secret'
|
|
64
63
|
}) || this;
|
|
65
64
|
}
|
|
@@ -73,8 +72,8 @@ var BerifyHeatMapApi = /** @class */ (function (_super) {
|
|
|
73
72
|
headers: {
|
|
74
73
|
'Content-Type': 'application/json'
|
|
75
74
|
},
|
|
76
|
-
body: JSON.stringify(form)
|
|
77
|
-
}
|
|
75
|
+
body: JSON.stringify({ form: form })
|
|
76
|
+
})];
|
|
78
77
|
case 1:
|
|
79
78
|
response = _a.sent();
|
|
80
79
|
return [2 /*return*/, response.json()];
|