@bytexbyte/berify-analytics-api 2.1.3 → 2.1.5

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,4 +1,5 @@
1
1
  import { Decimal } from "@prisma/client/runtime/library";
2
+ import { ScanType } from "../../../interfaces";
2
3
  export type HeatmapApi = (form: HeatmapRequest) => Promise<HeatmapResponse>;
3
4
  declare enum TimeInterval {
4
5
  All = "All Time",
@@ -14,6 +15,7 @@ export type HeatmapRequest = {
14
15
  batchId?: string;
15
16
  collectionRuleId?: string;
16
17
  timeInterval: TimeInterval;
18
+ scanTypes?: ScanType[] | ScanType;
17
19
  };
18
20
  export type ReskinHeatmapRequest = {
19
21
  userId: string;
@@ -1,8 +1,9 @@
1
- import { Scan } from "../../../interfaces";
1
+ import { Scan, ScanType } from "../../../interfaces";
2
2
  export type ScanReportRequest = {
3
3
  tagId?: string;
4
4
  batchId?: string;
5
5
  companyId?: string;
6
+ scanTypes?: ScanType;
6
7
  };
7
8
  export type ScanReportResult = {
8
9
  anonymous: number;
@@ -19,6 +20,7 @@ export type UserReportRequest = {
19
20
  tagId?: string;
20
21
  batchId?: string;
21
22
  companyId?: string;
23
+ scanTypes?: ScanType;
22
24
  };
23
25
  export type UserReportResult = {
24
26
  appClip: number;
@@ -51,6 +53,7 @@ export type ScanRateByTimeRequest = {
51
53
  companyId?: string;
52
54
  tagId?: string;
53
55
  time: TimeInterval;
56
+ scanTypes?: ScanType;
54
57
  };
55
58
  export type ScanRateByTimeResponse = {
56
59
  status: 'ok' | 'error';
@@ -88,6 +91,7 @@ export type BatchScanDataRequest = {
88
91
  order: 'asc' | 'desc';
89
92
  gtRedeemStatus?: 'redeemed' | 'not_redeemed' | 'none';
90
93
  search?: string;
94
+ scanTypes?: ScanType;
91
95
  };
92
96
  export type BlockChainStatusType = 'transferred' | 'minted' | 'queued' | 'transferring' | 'fail';
93
97
  export type BatchScanDataResult = {
@@ -128,6 +132,7 @@ export type LeaderBoardRequest = {
128
132
  companyId?: string;
129
133
  page?: number;
130
134
  pageSize?: number;
135
+ scanTypes?: ScanType;
131
136
  };
132
137
  export type LeaderBoardResult = {
133
138
  position: number;
@@ -149,6 +154,7 @@ export type TagSearchRequest = {
149
154
  size: string;
150
155
  order: 'asc' | 'desc';
151
156
  filter: string;
157
+ scanTypes?: ScanType;
152
158
  };
153
159
  export type GeneralUser = {
154
160
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/berify-analytics-api",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "api",
5
5
  "main": "lib/berifyAnalyticsApi/src/index.js",
6
6
  "types": "lib/berifyAnalyticsApi/src/index.d.ts",