@bytexbyte/berify-analytics-api 1.3.13 → 1.3.15
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/ScanChart/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BxBApi from '@bytexbyte/bxb-api';
|
|
2
|
-
import { ScanReportRequest, ScanReportResponse, UserReportRequest, UserReportResponse, ScanRateResponse, ScanRateByTimeRequest, ScanRateByTimeResponse, User,
|
|
2
|
+
import { ScanReportRequest, ScanReportResponse, UserReportRequest, UserReportResponse, ScanRateResponse, ScanRateByTimeRequest, ScanRateByTimeResponse, User, BatchScanDataRequest, BatchScanDataResponse } from './type';
|
|
3
3
|
declare class BerifyScanChartApi extends BxBApi {
|
|
4
4
|
constructor({ host, secretKey, secret }: {
|
|
5
5
|
host: string;
|
|
@@ -10,6 +10,6 @@ declare class BerifyScanChartApi extends BxBApi {
|
|
|
10
10
|
getUserReport(form: UserReportRequest): Promise<UserReportResponse>;
|
|
11
11
|
getScanRateAll(user: User, form: UserReportRequest): Promise<ScanRateResponse>;
|
|
12
12
|
getScanRateByTime(form: ScanRateByTimeRequest): Promise<ScanRateByTimeResponse[]>;
|
|
13
|
-
|
|
13
|
+
getBatchScanData(form: BatchScanDataRequest): Promise<BatchScanDataResponse>;
|
|
14
14
|
}
|
|
15
15
|
export default BerifyScanChartApi;
|
package/lib/ScanChart/index.js
CHANGED
|
@@ -139,7 +139,7 @@ var BerifyScanChartApi = /** @class */ (function (_super) {
|
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
|
-
BerifyScanChartApi.prototype.
|
|
142
|
+
BerifyScanChartApi.prototype.getBatchScanData = function (form) {
|
|
143
143
|
return __awaiter(this, void 0, void 0, function () {
|
|
144
144
|
var response;
|
|
145
145
|
return __generator(this, function (_a) {
|
package/lib/ScanChart/type.d.ts
CHANGED
|
@@ -83,10 +83,10 @@ export type ScanRateType = {
|
|
|
83
83
|
minute?: string;
|
|
84
84
|
scanCounts: number;
|
|
85
85
|
};
|
|
86
|
-
export type
|
|
86
|
+
export type BatchScanDataRequest = {
|
|
87
87
|
batchId: string;
|
|
88
88
|
};
|
|
89
|
-
export type
|
|
89
|
+
export type BatchScanDataDataResult = {
|
|
90
90
|
tagTokenId: string;
|
|
91
91
|
totalScan: number;
|
|
92
92
|
uniqueCount: number;
|
|
@@ -108,9 +108,10 @@ export type BatchDetailsScanTableDataResult = {
|
|
|
108
108
|
updatedAt: Date;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
export type
|
|
112
|
-
status:
|
|
113
|
-
data
|
|
111
|
+
export type BatchScanDataResponse = {
|
|
112
|
+
status: 'ok' | 'error';
|
|
113
|
+
data?: BatchScanDataDataResult[];
|
|
114
|
+
error?: string;
|
|
114
115
|
currentPage: number;
|
|
115
116
|
totalPages: number;
|
|
116
117
|
pageSize: number;
|