egnyte-resellers
Version:
Library for managing things against the undocumented egnyte resellers API.
32 lines (31 loc) • 1.1 kB
TypeScript
export interface EgnyteConfig {
username: string;
password: string;
protectPlanId?: number;
timeoutMs?: number;
forceLicenseChange?: boolean;
backoffDelay?: number;
}
export interface EgnyteUpdateResponse {
result: string;
message: string;
}
export interface StorageStats {
Used: number;
Unused: number;
Available: number;
}
export interface UsageStats {
power_user_stats: StorageStats;
storage_stats: StorageStats;
feature_stats: FeatureStats;
}
export type FeatureStat = 'elc' | 'adv_branding' | 'sf_integration_2' | 'tfa_integration' | 'tfa_voice_calls' | 'tfa_sms' | 'used_su' | 'additional_su' | 'total_power_users';
export type FeatureStats = {
[index in FeatureStat & string]: number;
};
export type Feature = 'twoFactorAuthVoice' | 'twoFactorAuthIntegration' | 'twoFactorAuthSms' | 'totalStandardUserPacks' | 'turboOrStorageSync' | 'salesForceIntegration' | 'usedStandardUsers' | 'additionalStandardUsers';
export type Features = {
[index in Feature & string]: number;
};
export declare const FeatureMap: Map<FeatureStat, Feature>;