@bytexbyte/berify-analytics-api 1.3.24 → 1.4.1

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.
@@ -130,7 +130,7 @@ var BerifyScanChartApi = /** @class */ (function (_super) {
130
130
  headers: {
131
131
  'Content-Type': 'application/json'
132
132
  },
133
- body: JSON.stringify(form)
133
+ body: JSON.stringify({ user: user, form: form })
134
134
  }, 'scan-rate-by-time')];
135
135
  case 1:
136
136
  response = _a.sent();
@@ -60,14 +60,7 @@ export type ScanRateByTimeResponse = {
60
60
  hour?: string;
61
61
  minute?: string;
62
62
  };
63
- export declare enum CompanyRoleType {
64
- super = 0,
65
- admin = 1,
66
- marketing = 2,
67
- supplier = 3,
68
- seo = 4,
69
- associate = 5
70
- }
63
+ export type CompanyRoleType = 'super' | 'admin' | 'marketing' | 'supplier' | 'seo';
71
64
  export type User = {
72
65
  id: string;
73
66
  companyId: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CompanyRoleType = exports.TimeInterval = void 0;
3
+ exports.TimeInterval = void 0;
4
4
  var TimeInterval;
5
5
  (function (TimeInterval) {
6
6
  TimeInterval["All"] = "All Time";
@@ -9,12 +9,3 @@ var TimeInterval;
9
9
  TimeInterval["LastWeek"] = "Last week";
10
10
  TimeInterval["LastMonth"] = "Last month";
11
11
  })(TimeInterval = exports.TimeInterval || (exports.TimeInterval = {}));
12
- var CompanyRoleType;
13
- (function (CompanyRoleType) {
14
- CompanyRoleType[CompanyRoleType["super"] = 0] = "super";
15
- CompanyRoleType[CompanyRoleType["admin"] = 1] = "admin";
16
- CompanyRoleType[CompanyRoleType["marketing"] = 2] = "marketing";
17
- CompanyRoleType[CompanyRoleType["supplier"] = 3] = "supplier";
18
- CompanyRoleType[CompanyRoleType["seo"] = 4] = "seo";
19
- CompanyRoleType[CompanyRoleType["associate"] = 5] = "associate";
20
- })(CompanyRoleType = exports.CompanyRoleType || (exports.CompanyRoleType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/berify-analytics-api",
3
- "version": "1.3.24",
3
+ "version": "1.4.1",
4
4
  "description": "api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",