UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

20 lines (19 loc) 1.02 kB
/** * @packageDocumentation * @module license-api */ import { HttpClient } from '@angular/common/http'; import { FeatureGate, FeatureGateEnterpriseSupport } from '../core/public-api'; import * as i0 from "@angular/core"; export declare const LICENSE_FEATURE_GATE = "{{API_GATEWAY}}/fg/v1/featuregates/license"; export declare function getResourceNum(resource?: Record<string, number>): number; export declare function formatProductName(productName: string): string; export declare class LicenseApiService { private readonly http; constructor(http: HttpClient); getLicenseResourceLimit(check: 'resource' | 'node' | 'version', resource: number): import("rxjs").Observable<boolean>; getLicenseAllowVersion(version: string): import("rxjs").Observable<FeatureGate>; getEnterpriseSupport(product?: string): import("rxjs").Observable<FeatureGateEnterpriseSupport>; static ɵfac: i0.ɵɵFactoryDeclaration<LicenseApiService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LicenseApiService>; }