@kenniy/godeye-data-contracts
Version:
Enterprise-grade base repository architecture for GOD-EYE microservices with zero overhead and maximum code reuse
30 lines (29 loc) • 614 B
TypeScript
/**
* Common types shared across all modules
*/
export interface IDataConfig {
service_name?: string;
version?: string;
environment?: string;
pagination?: {
default_limit?: number;
max_limit?: number;
};
auth?: {
required?: boolean;
cache_context?: boolean;
};
swagger?: {
enabled?: boolean;
path?: string;
};
}
export interface IKeyValue<T = any> {
key: string;
value: T;
}
export interface IFilter {
field: string;
operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin' | 'like';
value: any;
}