Skip to content

Commit 37f3d5e

Browse files
Update types for new metaallocator fields
1 parent 2db7a79 commit 37f3d5e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

prismaDmob/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ model verified_client_allowance {
795795
retrievalFrequency String? @default("") @db.VarChar
796796
isDataPublic String? @default("") @db.VarChar
797797
providerList Json @default("[]")
798+
dcSource String? @db.VarChar
798799
}
799800

800801
model verified_client_allowance_signer {

src/service/datacapstats/types.datacapstats.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
export interface DataCapStatsVerifiedClientsResponse {
22
count: string;
3-
data: DataCapStatsVerifiedClientData[];
3+
data: DataCapStatsVerifiedClientData[]; // two entries for client using metaallocators
4+
virtualAllocators?: DataCapStatsVerifiedClientVirtualAllocators[]; // for metaallocators only
45
totalRemainingDatacap: string;
56
clientsWithActiveDeals: string;
67
countOfClientsWhoHaveDcAndDeals: string;
78
numberOfClients: string;
89
}
910

11+
export interface DataCapStatsVerifiedClientVirtualAllocators {
12+
addressId: string;
13+
address: string;
14+
addressEth: string;
15+
name: string;
16+
}
17+
1018
export interface DataCapStatsVerifiedClientData {
1119
id: number;
1220
addressId: string;

0 commit comments

Comments
 (0)