-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(provider): added types for known props
- Loading branch information
1 parent
499722c
commit 312aca5
Showing
4 changed files
with
126 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
export interface ProviderDetails { | ||
owner: string; | ||
name: string | null; | ||
hostUri: string; | ||
createdHeight: number; | ||
email: string | null; | ||
website: string; | ||
lastCheckDate: string; | ||
deploymentCount: number; | ||
leaseCount: number; | ||
cosmosSdkVersion: string | null; | ||
akashVersion: string | null; | ||
ipRegion: string; | ||
ipRegionCode: string; | ||
ipCountry: string; | ||
ipCountryCode: string; | ||
ipLat: string; | ||
ipLon: string; | ||
activeStats: Stats; | ||
pendingStats: Stats; | ||
availableStats: Stats; | ||
gpuModels: string[]; | ||
uptime1d: number; | ||
uptime7d: number; | ||
uptime30d: number; | ||
isValidVersion: boolean; | ||
isOnline: boolean; | ||
lastOnlineDate: string; | ||
isAudited: boolean; | ||
attributes: Attribute[]; | ||
host: string | null; | ||
organization: string | null; | ||
statusPage: string | null; | ||
locationRegion: string[]; | ||
country: string | null; | ||
city: string | null; | ||
timezone: string[]; | ||
locationType: string[]; | ||
hostingProvider: string | null; | ||
hardwareCpu: string[]; | ||
hardwareCpuArch: string[]; | ||
hardwareGpuVendor: string[]; | ||
hardwareGpuModels: string[]; | ||
hardwareDisk: string[]; | ||
featPersistentStorage: boolean; | ||
featPersistentStorageType: string[]; | ||
hardwareMemory: string[]; | ||
networkProvider: string | null; | ||
networkSpeedDown: number; | ||
networkSpeedUp: number; | ||
tier: string[]; | ||
featEndpointCustomDomain: boolean; | ||
workloadSupportChia: boolean; | ||
workloadSupportChiaCapabilities: string[]; | ||
featEndpointIp: boolean; | ||
uptime: Uptime[]; | ||
} | ||
|
||
interface Stats { | ||
cpu: number; | ||
gpu: number; | ||
memory: number; | ||
storage: number; | ||
} | ||
|
||
interface Attribute { | ||
key: string; | ||
value: string; | ||
auditedBy: string[]; | ||
} | ||
|
||
interface Uptime { | ||
id: string; | ||
isOnline: boolean; | ||
checkDate: string; | ||
} | ||
|
||
interface LeaseStats { | ||
date: string; | ||
height: number; | ||
activeLeaseCount: number; | ||
totalLeaseCount: number; | ||
dailyLeaseCount: number; | ||
totalUAktEarned: number; | ||
dailyUAktEarned: number; | ||
totalUUsdcEarned: number; | ||
dailyUUsdcEarned: number; | ||
totalUUsdEarned: number; | ||
dailyUUsdEarned: number; | ||
activeCPU: number; | ||
activeGPU: number; | ||
activeMemory: string; | ||
activeEphemeralStorage: string; | ||
activePersistentStorage: string; | ||
activeStorage: string; | ||
} | ||
|
||
export interface ProviderDashoard { | ||
current: LeaseStats; | ||
previous: LeaseStats; | ||
} | ||
|
||
export interface ProviderPricingType { | ||
cpu: number; | ||
memory: number; | ||
storage: number; | ||
persistentStorage: number; | ||
gpu: number; | ||
ipScalePrice: number; | ||
endpointBidPrice: number; | ||
} |