UNPKG

egnyte-resellers

Version:

Library for managing things against the undocumented egnyte resellers API.

19 lines (18 loc) 983 B
import { EgnyteConfig, EgnyteCustomer, EgnyteUpdateResponse, Plans, StorageStats, UpdateCustomer } from '../../index'; import { Base } from '../base/base'; export declare class Customers extends Base { private readonly plans; constructor(plans: Plans, _config: EgnyteConfig); getAllCustomers(): Promise<EgnyteCustomer[]>; private extractResourceStats; private processFeatures; private calculateBackoff; private delay; getOneCustomer(customerId: string): Promise<EgnyteCustomer>; updateCustomer(customerId: string, data: UpdateCustomer): Promise<EgnyteCustomer>; updateCustomerStorage(customerId: string, storageSizeGB: number): Promise<EgnyteUpdateResponse>; updateCustomerPowerUsers(customerId: string, numOfUsers: number, autoAddToPool?: boolean): Promise<EgnyteUpdateResponse>; private ensureSufficientLicensesInPool; getCustomerProtectPlanUsage(egnyteTenantId: string): Promise<StorageStats | null>; private toCamelCase; }