simulation-detail.dto.ts 938 B

12345678910111213141516171819202122232425262728293031323334
  1. export type AiHairSimulationTaskDetailDto = {
  2. id: string;
  3. templateId: string;
  4. templateName: string;
  5. templateCoverUrl: string;
  6. templateCategory: 'LONG' | 'MEDIUM' | 'SHORT' | 'DYE';
  7. templateSource: 'STYLIST' | 'SYSTEM';
  8. taskId: string;
  9. taskStatus: 'PROCESSING' | 'SUCCESSES' | 'FAILED';
  10. resultImages: string[];
  11. errorMsg: string | null;
  12. taskStartTime: string;
  13. taskFinishTime: string | null;
  14. };
  15. export type AiHairSimulationDetailDto = {
  16. id: string;
  17. createdAt: string;
  18. customer: {
  19. id: string;
  20. name: string;
  21. avatar: string;
  22. phone: string;
  23. expectContact: 'LINE' | 'PHONE' | 'EMAIL' | 'NONE';
  24. } | null;
  25. originImage: string;
  26. simulateRemark: string | null;
  27. totalTaskCount: number;
  28. processingTaskCount: number;
  29. successTaskCount: number;
  30. failedTaskCount: number;
  31. overallStatus: 'PROCESSING' | 'PARTIAL_SUCCESS' | 'SUCCESSES' | 'FAILED';
  32. tasks: AiHairSimulationTaskDetailDto[];
  33. };