ffb-production.schema.ts 868 B

12345678910111213141516171819202122232425262728293031323334353637
  1. export interface FFBProduction {
  2. _id?: string;
  3. productionDate: Date;
  4. site: {
  5. id: string;
  6. name: string;
  7. };
  8. phase: {
  9. id: string;
  10. name: string;
  11. };
  12. block: {
  13. id: string;
  14. name: string;
  15. };
  16. weight: number;
  17. weightUom: string;
  18. quantity: number;
  19. quantityUom: string;
  20. remarks: string;
  21. }
  22. export interface ThoughtPayload {
  23. node: string;
  24. status: 'processing' | 'completed' | 'error';
  25. message?: string; // Human-readable status (e.g., "Analyzing intent...")
  26. context?: any;
  27. query?: any;
  28. filter?: any;
  29. pipeline?: any;
  30. results?: any;
  31. resultsCount?: number;
  32. dataContextLength?: number;
  33. input?: any; // The raw data going IN
  34. output?: any; // The data coming OUT (replacing 'result', 'results', 'pipeline')
  35. metadata?: Record<string, any>; // For extra stuff like resultsCount or contextLength
  36. }