@bytexbyte/berify-analytics-api 1.4.9 → 1.5.0
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.js
CHANGED
|
@@ -169,7 +169,7 @@ var BerifyScanChartApi = /** @class */ (function (_super) {
|
|
|
169
169
|
'Content-Type': 'application/json'
|
|
170
170
|
},
|
|
171
171
|
body: JSON.stringify({ user: user, form: form })
|
|
172
|
-
}, '
|
|
172
|
+
}, 'leaderBoard')];
|
|
173
173
|
case 1:
|
|
174
174
|
response = _a.sent();
|
|
175
175
|
return [2 /*return*/, response.json()];
|
package/lib/ScanChart/type.d.ts
CHANGED
|
@@ -124,6 +124,8 @@ export type LeaderBoardRequest = {
|
|
|
124
124
|
tagTokenId?: string;
|
|
125
125
|
batchId?: string;
|
|
126
126
|
companyId?: number;
|
|
127
|
+
page?: number;
|
|
128
|
+
pageSize?: number;
|
|
127
129
|
};
|
|
128
130
|
export type LeaderBoardResult = {
|
|
129
131
|
position: number;
|
|
@@ -133,6 +135,9 @@ export type LeaderBoardResult = {
|
|
|
133
135
|
}[];
|
|
134
136
|
export type LeaderBoardResponse = {
|
|
135
137
|
status: 'ok' | 'error';
|
|
136
|
-
data?:
|
|
138
|
+
data?: {
|
|
139
|
+
data: LeaderBoardResult;
|
|
140
|
+
totalDatasNumber: number;
|
|
141
|
+
};
|
|
137
142
|
error?: string;
|
|
138
143
|
};
|