@aptly-as/types
Version:
Aptly types and enums
23 lines (22 loc) • 701 B
TypeScript
import { AptlyModules } from '../core/index.js';
import { AptlyBaseSchema } from './extends.js';
export type AptlyModule = AptlyModuleSchema<string, string>;
export interface AptlyModuleSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
description: string;
featuredWeight: number;
modules: AptlyModules[];
listed: boolean;
monthly: number;
yearly: number;
}
export type AptlyModuleItem = AptlyModuleItemSchema<string, string>;
export interface AptlyModuleItemSchema<ID, DATE> {
_id: ID;
plan: ID | null;
module: ID | AptlyModuleSchema<ID, DATE>;
modules: AptlyModules[];
monthly: number;
yearly: number;
installedBy: ID;
installedAt: DATE;
}