@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.
@@ -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
- }, 'leader-board')];
172
+ }, 'leaderBoard')];
173
173
  case 1:
174
174
  response = _a.sent();
175
175
  return [2 /*return*/, response.json()];
@@ -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?: LeaderBoardResult;
138
+ data?: {
139
+ data: LeaderBoardResult;
140
+ totalDatasNumber: number;
141
+ };
137
142
  error?: string;
138
143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/berify-analytics-api",
3
- "version": "1.4.9",
3
+ "version": "1.5.0",
4
4
  "description": "api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",