import { Policy } from "./policy"; export type ResponseDefault = { error?: boolean; success?: boolean; status: number; ok: boolean; } & T; export type ResponseList = ResponseDefault & { data: T[]; }; export type ResponseOne = ResponseDefault & { data: T; }; export type ResponseWithPagination = { pagination: { limit: number; offset: number; nextPath: string; }; }; export type ResponseWithPaginationAndTotal = ResponseWithPagination & { total: number; }; export type ResponseWithPaginationAndCount = ResponseWithPagination & { count: number; }; export type ResponseListWithPolicy = ResponseList & { policies: Policy[]; }; export type ResponseOneWithPolicy = ResponseOne & { policies: Policy[]; }; export type ResponseOneWithPagination = ResponseOne & ResponseWithPagination; export type ResponseOneWithPaginationAndCount = ResponseOne & ResponseWithPaginationAndCount; export type ResponseListWithPolicyAndPagination = ResponseListWithPolicy & ResponseWithPaginationAndTotal; export type ResponseListWithPolicyAndPaginationWithTotal = ResponseListWithPolicy & ResponseWithPaginationAndTotal; export type ResponseListWithPolicyAndPaginationWithCount = ResponseListWithPolicy & ResponseWithPaginationAndCount; export type ResponsePagination = { limit: number; offset?: number; };