@aptly-as/types
Version:
Aptly types and enums
24 lines (23 loc) • 1.02 kB
TypeScript
import { AptlyCategorySchema } from './category.js';
import { AptlyBaseSchema } from './extends.js';
import { AptlyOrganizationSchema } from './organization.js';
import { AptlyProjectSchema } from './project.js';
import { AptlyUnitSchema } from './unit.js';
import { AptlyUserSchema } from './user.js';
import { AptlyOrderSchema } from './order';
export type AptlyNote = AptlyNoteSchema<string, string>;
export interface AptlyNoteSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
content: string;
organization: ID | AptlyOrganizationSchema<ID, DATE>;
project: ID | AptlyProjectSchema<ID, DATE>;
unit: ID | AptlyUnitSchema<ID, DATE> | null;
order: ID | AptlyOrderSchema<ID, DATE> | null;
category: ID | AptlyCategorySchema<ID, DATE> | null;
users: (ID | AptlyUserSchema<ID, DATE>)[];
addToReceipt: boolean;
unitTemplateCategory: ID | null;
unitTemplateProduct?: ID | null;
reminderDate?: DATE | null;
hasReminder?: boolean;
author?: ID | AptlyUserSchema<ID, DATE>;
}