mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
18 lines
519 B
TypeScript
18 lines
519 B
TypeScript
// Generic JSON:API v1.1 shells shared by feature adapters; feature code
|
|
// models its attribute payloads and reuses these instead of re-declaring them.
|
|
export interface JsonApiResource<TAttributes, TMeta = Record<string, unknown>> {
|
|
id: string;
|
|
type: string;
|
|
attributes: TAttributes;
|
|
meta?: TMeta;
|
|
}
|
|
|
|
export interface JsonApiDocument<TData, TMeta = Record<string, unknown>> {
|
|
data?: TData;
|
|
meta?: TMeta;
|
|
links?: Record<string, string | null>;
|
|
error?: string;
|
|
errors?: unknown[];
|
|
status?: number;
|
|
}
|