@bytexbyte/berify-analytics-api 1.0.1 → 1.0.3

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.
@@ -6,6 +6,6 @@ declare class BerifyHeatMapApi extends BxBApi {
6
6
  secretKey?: string;
7
7
  secret?: string;
8
8
  });
9
- getHeatmap(provider: Parameters<HeatmapApi>[0], form: Parameters<HeatmapApi>[1]): Promise<HeatmapResult>;
9
+ getHeatmap(form: Parameters<HeatmapApi>[1]): Promise<HeatmapResult>;
10
10
  }
11
11
  export default BerifyHeatMapApi;
@@ -63,7 +63,7 @@ var BerifyHeatMapApi = /** @class */ (function (_super) {
63
63
  secret: secret !== null && secret !== void 0 ? secret : 'secret'
64
64
  }) || this;
65
65
  }
66
- BerifyHeatMapApi.prototype.getHeatmap = function (provider, form) {
66
+ BerifyHeatMapApi.prototype.getHeatmap = function (form) {
67
67
  return __awaiter(this, void 0, void 0, function () {
68
68
  var response;
69
69
  return __generator(this, function (_a) {
@@ -76,7 +76,7 @@ var BerifyHeatMapApi = /** @class */ (function (_super) {
76
76
  body: JSON.stringify({
77
77
  body: JSON.stringify(form)
78
78
  })
79
- }, "".concat(provider, "/heatmap"))];
79
+ }, "/heatmap")];
80
80
  case 1:
81
81
  response = _a.sent();
82
82
  return [2 /*return*/, response.json()];
@@ -0,0 +1 @@
1
+ export declare const AnalyticsApiSecret = "Analytics-Api-Secret";
package/lib/config.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnalyticsApiSecret = void 0;
4
+ exports.AnalyticsApiSecret = 'Analytics-Api-Secret';
package/lib/index.d.ts CHANGED
@@ -4,9 +4,8 @@ declare class BerifyAnalyticsApi {
4
4
  heatmap: BerifyHeatMapApi;
5
5
  secretKey?: string;
6
6
  secret?: string;
7
- constructor({ host, secretKey, secret }: {
7
+ constructor({ host, secret }: {
8
8
  host: string;
9
- secretKey?: string;
10
9
  secret?: string;
11
10
  });
12
11
  }
package/lib/index.js CHANGED
@@ -3,11 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var Heatmap_1 = require("./Heatmap");
4
4
  var BerifyAnalyticsApi = /** @class */ (function () {
5
5
  function BerifyAnalyticsApi(_a) {
6
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret;
6
+ var host = _a.host, secret = _a.secret;
7
7
  this.host = host;
8
8
  this.secret = secret;
9
- this.secretKey = secretKey;
10
- this.heatmap = new Heatmap_1.default({ host: host, secretKey: secretKey, secret: secret });
9
+ this.heatmap = new Heatmap_1.default({ host: host, secret: secret });
11
10
  }
12
11
  return BerifyAnalyticsApi;
13
12
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/berify-analytics-api",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",