| 
									
										
										
										
											2024-09-10 15:23:16 +08:00
										 |  |  | import type { NodeDefault } from '../../types' | 
					
						
							|  |  |  | import type { IterationStartNodeType } from './types' | 
					
						
							| 
									
										
										
										
											2025-04-24 16:29:58 +08:00
										 |  |  | import { genNodeMetaData } from '@/app/components/workflow/utils' | 
					
						
							|  |  |  | import { BlockEnum } from '@/app/components/workflow/types' | 
					
						
							| 
									
										
										
										
											2024-09-10 15:23:16 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-29 16:11:54 +08:00
										 |  |  | const metaData = genNodeMetaData({ | 
					
						
							|  |  |  |   sort: -1, | 
					
						
							|  |  |  |   type: BlockEnum.IterationStart, | 
					
						
							|  |  |  | }) | 
					
						
							| 
									
										
										
										
											2024-09-10 15:23:16 +08:00
										 |  |  | const nodeDefault: NodeDefault<IterationStartNodeType> = { | 
					
						
							| 
									
										
										
										
											2025-04-29 16:11:54 +08:00
										 |  |  |   metaData, | 
					
						
							| 
									
										
										
										
											2024-09-10 15:23:16 +08:00
										 |  |  |   defaultValue: {}, | 
					
						
							|  |  |  |   checkValid() { | 
					
						
							|  |  |  |     return { | 
					
						
							|  |  |  |       isValid: true, | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default nodeDefault |