@bytexbyte/berify-analytics-api 1.0.2 → 1.0.4

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>): 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()];
@@ -1,5 +1,5 @@
1
1
  import { Decimal } from "@prisma/client/runtime/library";
2
- export type HeatmapApi = (provider: 'heatmap', form: HeatmapRequest) => Promise<HeatmapResponse>;
2
+ export type HeatmapApi = (form: HeatmapRequest) => Promise<HeatmapResponse>;
3
3
  declare enum TimeInterval {
4
4
  All = "All Time",
5
5
  LastHour = "Last hour",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/berify-analytics-api",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",