@bytexbyte/berify-analytics-api 2.0.0 → 2.0.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.
@@ -1,105 +1,32 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
- var bxb_api_1 = require("@bytexbyte/bxb-api");
55
- var BerifyHeatMapApi = /** @class */ (function (_super) {
56
- __extends(BerifyHeatMapApi, _super);
57
- function BerifyHeatMapApi(_a) {
58
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret;
59
- return _super.call(this, {
60
- host: host,
61
- moduleName: 'heatmap',
62
- secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : 'secretKey',
63
- secret: secret !== null && secret !== void 0 ? secret : 'secret'
64
- }) || this;
3
+ const bxb_api_1 = require("@bytexbyte/bxb-api");
4
+ class BerifyHeatMapApi extends bxb_api_1.default {
5
+ constructor({ host, secretKey, secret }) {
6
+ super({
7
+ host, moduleName: 'heatmap',
8
+ secretKey: secretKey ?? 'secretKey',
9
+ secret: secret ?? 'secret'
10
+ });
65
11
  }
66
- BerifyHeatMapApi.prototype.getHeatmap = function (form) {
67
- return __awaiter(this, void 0, void 0, function () {
68
- var response;
69
- return __generator(this, function (_a) {
70
- switch (_a.label) {
71
- case 0: return [4 /*yield*/, this.bxbFetch({
72
- method: 'POST',
73
- headers: {
74
- 'Content-Type': 'application/json'
75
- },
76
- body: JSON.stringify(form)
77
- })];
78
- case 1:
79
- response = _a.sent();
80
- return [2 /*return*/, response.json()];
81
- }
82
- });
12
+ async getHeatmap(form) {
13
+ const response = await this.bxbFetch({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ body: JSON.stringify(form)
83
19
  });
84
- };
85
- BerifyHeatMapApi.prototype.getLastUpdatedAt = function () {
86
- return __awaiter(this, void 0, void 0, function () {
87
- var response;
88
- return __generator(this, function (_a) {
89
- switch (_a.label) {
90
- case 0: return [4 /*yield*/, this.bxbFetch({
91
- method: 'GET',
92
- headers: {
93
- 'Content-Type': 'application/json'
94
- }
95
- })];
96
- case 1:
97
- response = _a.sent();
98
- return [2 /*return*/, response.json()];
99
- }
100
- });
20
+ return response.json();
21
+ }
22
+ async getLastUpdatedAt() {
23
+ const response = await this.bxbFetch({
24
+ method: 'GET',
25
+ headers: {
26
+ 'Content-Type': 'application/json'
27
+ }
101
28
  });
102
- };
103
- return BerifyHeatMapApi;
104
- }(bxb_api_1.default));
29
+ return response.json();
30
+ }
31
+ }
105
32
  exports.default = BerifyHeatMapApi;
@@ -9,14 +9,14 @@ declare enum TimeInterval {
9
9
  }
10
10
  export type HeatmapRequest = {
11
11
  userId: string;
12
- companyId?: number;
13
- tagTokenId?: string;
12
+ companyId?: string;
13
+ tagId?: string;
14
14
  batchId?: string;
15
- collectionRuleId?: number;
15
+ collectionRuleId?: string;
16
16
  timeInterval: TimeInterval;
17
17
  };
18
18
  export type HeatmapResult = {
19
- id: number;
19
+ id: string;
20
20
  latitude: Decimal | null;
21
21
  longitude: Decimal | null;
22
22
  }[];
@@ -1,201 +1,83 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
- var bxb_api_1 = require("@bytexbyte/bxb-api");
55
- var BerifyScanChartApi = /** @class */ (function (_super) {
56
- __extends(BerifyScanChartApi, _super);
57
- function BerifyScanChartApi(_a) {
58
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret;
59
- return _super.call(this, {
60
- host: host,
61
- moduleName: 'scan-chart',
62
- secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : 'secretKey',
63
- secret: secret !== null && secret !== void 0 ? secret : 'secret'
64
- }) || this;
65
- }
66
- BerifyScanChartApi.prototype.getScanReport = function (user, form) {
67
- return __awaiter(this, void 0, void 0, function () {
68
- var response;
69
- return __generator(this, function (_a) {
70
- switch (_a.label) {
71
- case 0: return [4 /*yield*/, this.bxbFetch({
72
- method: 'POST',
73
- headers: {
74
- 'Content-Type': 'application/json'
75
- },
76
- body: JSON.stringify({ user: user, form: form })
77
- }, 'scan-report')];
78
- case 1:
79
- response = _a.sent();
80
- return [2 /*return*/, response.json()];
81
- }
82
- });
83
- });
84
- };
85
- BerifyScanChartApi.prototype.getUserReport = function (user, form) {
86
- return __awaiter(this, void 0, void 0, function () {
87
- var response;
88
- return __generator(this, function (_a) {
89
- switch (_a.label) {
90
- case 0: return [4 /*yield*/, this.bxbFetch({
91
- method: 'POST',
92
- headers: {
93
- 'Content-Type': 'application/json'
94
- },
95
- body: JSON.stringify({ user: user, form: form })
96
- }, 'user-report')];
97
- case 1:
98
- response = _a.sent();
99
- return [2 /*return*/, response.json()];
100
- }
101
- });
102
- });
103
- };
104
- BerifyScanChartApi.prototype.getScanRateAll = function (user, form) {
105
- return __awaiter(this, void 0, void 0, function () {
106
- var response;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
109
- case 0: return [4 /*yield*/, this.bxbFetch({
110
- method: 'POST',
111
- headers: {
112
- 'Content-Type': 'application/json'
113
- },
114
- body: JSON.stringify({ user: user, form: form })
115
- }, 'scan-rate-all')];
116
- case 1:
117
- response = _a.sent();
118
- return [2 /*return*/, response.json()];
119
- }
120
- });
121
- });
122
- };
123
- BerifyScanChartApi.prototype.getScanRateByTime = function (user, form) {
124
- return __awaiter(this, void 0, void 0, function () {
125
- var response;
126
- return __generator(this, function (_a) {
127
- switch (_a.label) {
128
- case 0: return [4 /*yield*/, this.bxbFetch({
129
- method: 'POST',
130
- headers: {
131
- 'Content-Type': 'application/json'
132
- },
133
- body: JSON.stringify({ user: user, form: form })
134
- }, 'scan-rate-by-time')];
135
- case 1:
136
- response = _a.sent();
137
- return [2 /*return*/, response.json()];
138
- }
139
- });
140
- });
141
- };
142
- BerifyScanChartApi.prototype.getBatchScanData = function (form) {
143
- return __awaiter(this, void 0, void 0, function () {
144
- var response;
145
- return __generator(this, function (_a) {
146
- switch (_a.label) {
147
- case 0: return [4 /*yield*/, this.bxbFetch({
148
- method: 'POST',
149
- headers: {
150
- 'Content-Type': 'application/json'
151
- },
152
- body: JSON.stringify({ form: form })
153
- }, 'batch-scan-data')];
154
- case 1:
155
- response = _a.sent();
156
- return [2 /*return*/, response.json()];
157
- }
158
- });
159
- });
160
- };
161
- BerifyScanChartApi.prototype.getLeaderBoard = function (user, form) {
162
- return __awaiter(this, void 0, void 0, function () {
163
- var response;
164
- return __generator(this, function (_a) {
165
- switch (_a.label) {
166
- case 0: return [4 /*yield*/, this.bxbFetch({
167
- method: 'POST',
168
- headers: {
169
- 'Content-Type': 'application/json'
170
- },
171
- body: JSON.stringify({ user: user, form: form })
172
- }, 'leaderBoard')];
173
- case 1:
174
- response = _a.sent();
175
- return [2 /*return*/, response.json()];
176
- }
177
- });
178
- });
179
- };
180
- BerifyScanChartApi.prototype.getTagScanHistory = function (form) {
181
- return __awaiter(this, void 0, void 0, function () {
182
- var response;
183
- return __generator(this, function (_a) {
184
- switch (_a.label) {
185
- case 0: return [4 /*yield*/, this.bxbFetch({
186
- method: 'POST',
187
- headers: {
188
- 'Content-Type': 'application/json'
189
- },
190
- body: JSON.stringify({ form: form })
191
- }, 'tagScanHistory')];
192
- case 1:
193
- response = _a.sent();
194
- return [2 /*return*/, response.json()];
195
- }
196
- });
3
+ const bxb_api_1 = require("@bytexbyte/bxb-api");
4
+ class BerifyScanChartApi extends bxb_api_1.default {
5
+ constructor({ host, secretKey, secret }) {
6
+ super({
7
+ host, moduleName: 'scan-chart',
8
+ secretKey: secretKey ?? 'secretKey',
9
+ secret: secret ?? 'secret'
197
10
  });
198
- };
199
- return BerifyScanChartApi;
200
- }(bxb_api_1.default));
11
+ }
12
+ async getScanReport(user, form) {
13
+ const response = await this.bxbFetch({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ body: JSON.stringify({ user, form })
19
+ }, 'scan-report');
20
+ return response.json();
21
+ }
22
+ async getUserReport(user, form) {
23
+ const response = await this.bxbFetch({
24
+ method: 'POST',
25
+ headers: {
26
+ 'Content-Type': 'application/json'
27
+ },
28
+ body: JSON.stringify({ user, form })
29
+ }, 'user-report');
30
+ return response.json();
31
+ }
32
+ async getScanRateAll(user, form) {
33
+ const response = await this.bxbFetch({
34
+ method: 'POST',
35
+ headers: {
36
+ 'Content-Type': 'application/json'
37
+ },
38
+ body: JSON.stringify({ user, form })
39
+ }, 'scan-rate-all');
40
+ return response.json();
41
+ }
42
+ async getScanRateByTime(user, form) {
43
+ const response = await this.bxbFetch({
44
+ method: 'POST',
45
+ headers: {
46
+ 'Content-Type': 'application/json'
47
+ },
48
+ body: JSON.stringify({ user, form })
49
+ }, 'scan-rate-by-time');
50
+ return response.json();
51
+ }
52
+ async getBatchScanData(form) {
53
+ const response = await this.bxbFetch({
54
+ method: 'POST',
55
+ headers: {
56
+ 'Content-Type': 'application/json'
57
+ },
58
+ body: JSON.stringify({ form })
59
+ }, 'batch-scan-data');
60
+ return response.json();
61
+ }
62
+ async getLeaderBoard(user, form) {
63
+ const response = await this.bxbFetch({
64
+ method: 'POST',
65
+ headers: {
66
+ 'Content-Type': 'application/json'
67
+ },
68
+ body: JSON.stringify({ user, form })
69
+ }, 'leaderBoard');
70
+ return response.json();
71
+ }
72
+ async getTagScanHistory(form) {
73
+ const response = await this.bxbFetch({
74
+ method: 'POST',
75
+ headers: {
76
+ 'Content-Type': 'application/json'
77
+ },
78
+ body: JSON.stringify({ form })
79
+ }, 'tagScanHistory');
80
+ return response.json();
81
+ }
82
+ }
201
83
  exports.default = BerifyScanChartApi;
@@ -1,8 +1,8 @@
1
1
  import { Scan } from "../../../interfaces";
2
2
  export type ScanReportRequest = {
3
- tagTokenId?: string;
3
+ tagId?: string;
4
4
  batchId?: string;
5
- companyId?: number;
5
+ companyId?: string;
6
6
  };
7
7
  export type ScanReportResult = {
8
8
  anonymous: number;
@@ -16,9 +16,9 @@ export type ScanReportResponse = {
16
16
  error?: string;
17
17
  };
18
18
  export type UserReportRequest = {
19
- tagTokenId?: string;
19
+ tagId?: string;
20
20
  batchId?: string;
21
- companyId?: number;
21
+ companyId?: string;
22
22
  };
23
23
  export type UserReportResult = {
24
24
  appClip: number;
@@ -48,8 +48,8 @@ export declare enum TimeInterval {
48
48
  }
49
49
  export type ScanRateByTimeRequest = {
50
50
  batchId?: string;
51
- companyId?: number;
52
- tagTokenId?: string;
51
+ companyId?: string;
52
+ tagId?: string;
53
53
  time: TimeInterval;
54
54
  };
55
55
  export type ScanRateByTimeResponse = {
@@ -68,7 +68,7 @@ export type ScanRateByTimeResponse = {
68
68
  export type CompanyRoleType = 'super' | 'admin' | 'marketing' | 'supplier' | 'seo' | 'associate';
69
69
  export type User = {
70
70
  id: string;
71
- companyId: number;
71
+ companyId: string;
72
72
  companyRole: CompanyRoleType;
73
73
  };
74
74
  export type ScanRateType = {
@@ -91,23 +91,23 @@ export type BatchScanDataRequest = {
91
91
  };
92
92
  export type BlockChainStatusType = 'transferred' | 'minted' | 'queued' | 'transferring' | 'fail';
93
93
  export type BatchScanDataResult = {
94
- tagTokenId: string;
94
+ tagId: string;
95
95
  totalScan: number;
96
96
  uniqueCount: number;
97
97
  lastScanned: Date;
98
98
  goldenTicketPrize: {
99
- id: number;
100
- tagTokenId: string;
101
- goldenTicketPrizeId: number;
99
+ id: string;
100
+ tagId: string;
101
+ goldenTicketPrizeId: string;
102
102
  };
103
103
  goldenTicketRedeem: {
104
- id: number;
105
- tagTokenId: string;
106
- goldenTicketRedeemId: number;
104
+ id: string;
105
+ tagId: string;
106
+ goldenTicketRedeemId: string;
107
107
  };
108
108
  tagNft: {
109
- id: number;
110
- tagTokenId: string;
109
+ id: string;
110
+ tagId: string;
111
111
  blockchainStatus: BlockChainStatusType;
112
112
  updatedAt: Date;
113
113
  };
@@ -122,9 +122,9 @@ export type BatchScanDataResponse = {
122
122
  totalItems: number;
123
123
  };
124
124
  export type LeaderBoardRequest = {
125
- tagTokenId?: string;
125
+ tagId?: string;
126
126
  batchId?: string;
127
- companyId?: number;
127
+ companyId?: string;
128
128
  page?: number;
129
129
  pageSize?: number;
130
130
  };
@@ -143,7 +143,7 @@ export type LeaderBoardResponse = {
143
143
  error?: string;
144
144
  };
145
145
  export type TagSearchRequest = {
146
- tagTokenId: string;
146
+ tagId: string;
147
147
  page: string;
148
148
  size: string;
149
149
  order: 'asc' | 'desc';
@@ -8,4 +8,4 @@ var TimeInterval;
8
8
  TimeInterval["LastDay"] = "Last day";
9
9
  TimeInterval["LastWeek"] = "Last week";
10
10
  TimeInterval["LastMonth"] = "Last month";
11
- })(TimeInterval = exports.TimeInterval || (exports.TimeInterval = {}));
11
+ })(TimeInterval || (exports.TimeInterval = TimeInterval = {}));
@@ -1,16 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var Heatmap_1 = require("./Heatmap");
4
- var ScanChart_1 = require("./ScanChart");
5
- var BerifyAnalyticsApi = /** @class */ (function () {
6
- function BerifyAnalyticsApi(_a) {
7
- var host = _a.host, secretKey = _a.secretKey, secret = _a.secret;
3
+ const Heatmap_1 = require("./Heatmap");
4
+ const ScanChart_1 = require("./ScanChart");
5
+ class BerifyAnalyticsApi {
6
+ constructor({ host, secretKey, secret }) {
8
7
  this.host = host;
9
8
  this.secretKey = secretKey;
10
9
  this.secret = secret;
11
- this.heatmap = new Heatmap_1.default({ host: host, secretKey: secretKey, secret: secret });
12
- this.scanChart = new ScanChart_1.default({ host: host, secretKey: secretKey, secret: secret });
10
+ this.heatmap = new Heatmap_1.default({ host, secretKey, secret });
11
+ this.scanChart = new ScanChart_1.default({ host, secretKey, secret });
13
12
  }
14
- return BerifyAnalyticsApi;
15
- }());
13
+ }
16
14
  exports.default = BerifyAnalyticsApi;
@@ -13,26 +13,27 @@ export declare enum ScanType {
13
13
  }
14
14
  export interface User {
15
15
  id: string;
16
- companyId: number;
16
+ companyId: string;
17
17
  companyRole: CompanyRoleType;
18
18
  }
19
19
  export interface FilterOptions {
20
20
  batchId?: string;
21
- companyId?: number;
22
- tagTokenId?: string;
21
+ companyId?: string;
22
+ tagId?: string;
23
23
  }
24
24
  export interface Scan {
25
- id: number;
25
+ id: string;
26
26
  latitude: Decimal | null;
27
27
  longitude: Decimal | null;
28
+ location: string | null;
28
29
  createdAt: Date;
29
- tagTokenId: string;
30
+ tagId: string;
30
31
  userId: string;
31
32
  type: ScanType;
32
33
  tag: {
33
34
  batchId: string;
34
35
  batch: {
35
- companyId: number;
36
+ companyId: string;
36
37
  name: string;
37
38
  };
38
39
  };
@@ -8,10 +8,10 @@ var CompanyRoleType;
8
8
  CompanyRoleType["marketing"] = "marketing";
9
9
  CompanyRoleType["supplier"] = "supplier";
10
10
  CompanyRoleType["seo"] = "seo";
11
- })(CompanyRoleType = exports.CompanyRoleType || (exports.CompanyRoleType = {}));
11
+ })(CompanyRoleType || (exports.CompanyRoleType = CompanyRoleType = {}));
12
12
  var ScanType;
13
13
  (function (ScanType) {
14
14
  ScanType["AppClip"] = "AppClip";
15
15
  ScanType["App"] = "App";
16
16
  ScanType["Web"] = "Web";
17
- })(ScanType = exports.ScanType || (exports.ScanType = {}));
17
+ })(ScanType || (exports.ScanType = ScanType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/berify-analytics-api",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "api",
5
5
  "main": "lib/berifyAnalyticsApi/src/index.js",
6
6
  "types": "lib/berifyAnalyticsApi/src/index.d.ts",