contentful-management
Version:
Client for Contentful's Content Management API
48 lines (47 loc) • 1.39 kB
TypeScript
import type { DefaultElements, MakeRequest } from '../common-types';
/**
* Available License quota information
*/
export type AvailableLicenseQuotas = {
contentTypes: number | 'unlimited';
records: number | 'unlimited';
environments: number | 'unlimited';
};
/**
* Available License properties returned from the API
*/
export type AvailableLicenseProps = {
/**
* License ID (offer ID)
*/
id: string;
/**
* License name
*/
name: string;
/**
* Count of available licenses for this offer
*/
count: number;
/**
* Quota limits for this license
*/
quotas: AvailableLicenseQuotas;
};
/**
* Available License entity with enhanced methods
*/
export interface AvailableLicense extends AvailableLicenseProps, DefaultElements<AvailableLicenseProps> {
}
/**
* @internal
* Wraps the raw available license data
* @param makeRequest - function to make requests via an adapter
* @param data - Raw available license data
* @returns Wrapped available license data
*/
export declare function wrapAvailableLicense(makeRequest: MakeRequest, data: AvailableLicenseProps): AvailableLicense;
/**
* @internal
*/
export declare const wrapAvailableLicenseCollection: (makeRequest: MakeRequest, data: import("..").CollectionProp<AvailableLicenseProps>) => import("..").Collection<AvailableLicense, AvailableLicenseProps>;