export const createOldWorkflowId234Snapshot = () => ({ id: 234, organizationId: 1, userId: 1, name: 'OpenSearch', status: 'published', description: 'Testing searching and simmarizing', iconUrl: 'https://dev-drafter-ai-api.s3.eu-central-1.amazonaws.com/aws-dev-webapp.drafter.ai/workflows/234/icon_aws-dev-webapp.drafter.ai/workflows/216/icon_dev-olegtest-6v1w.drafter.ai/workflows/209/icon_1a69f05a-3caa-4b7f-a865-3862e752f9f8.png', execType: 'manually', favourite: true, tags: [], createdAt: '2023-07-17T20:57:01.465Z', updatedAt: '2023-07-17T20:57:01.465Z', steps: [ { id: 908, nextId: 909, name: 'Form / Manual', action: 'src=form_manual', type: 'source', variables: [ { id: 1283, type: 'var', datatype: 'text', name: 'searchQuery_', label: 'Search query', }, { id: 1284, type: 'var', datatype: 'text', name: 'osIndex_', label: 'OS index', }, ], }, { id: 909, nextId: 989, name: 'Search OS Data', action: 'cmd=open_search;ver=1.0', type: 'action', variables: [ { id: 1285, type: 'var', datatype: 'text', name: 'path', label: 'Path', }, { id: 1286, type: 'var', datatype: 'number', name: 'page', label: 'Page', }, { id: 1287, type: 'var', datatype: 'text', name: 'searchResults', label: 'Search results', }, ], }, { id: 989, nextId: 1034, name: '35 TEMP TEST', action: 'cmd=generate_text;ver=1.0.0;model=ml_gpt3;type=35-temp-test_1sv4', type: 'action', variables: [ { id: 1373, type: 'var', datatype: 'text', name: 'generatedText2', label: 'Generated text 2', }, ], }, { id: 1034, nextId: null, name: 'Filter', action: 'flt=r_filter;type=r', type: 'filter', variables: [], }, ], }) export const createOldWorkflowId234StepsSnapshot = () => [ { id: 908, organizationId: 1, workflowId: 234, nextId: 909, type: 'source', action: 'src=form_manual', name: 'Form / Manual', position: [709, 26], lAttributes: [], rAttributes: ['osIndex_=osIndex_', 'searchQuery_=searchQuery_'], options: { label: 'Search uploaded docs', layout: 'vertical_centered', description: 'by OS index "adobe_extract_1676482396290" (for demo purposes)', elements: [ { label: 'OS index', name: 'osIndex_', datatype: 'text', required: true, placeholder: '', }, { label: 'Search query', name: 'searchQuery_', datatype: 'text', required: true, placeholder: '', }, ], }, createdAt: '2023-02-15T17:36:35.235Z', updatedAt: '2023-08-23T11:44:49.479Z', variables: [ { id: 1283, type: 'var', datatype: 'text', name: 'searchQuery_', label: 'Search query', }, { id: 1284, type: 'var', datatype: 'text', name: 'osIndex_', label: 'OS index', }, ], }, { id: 909, organizationId: 1, workflowId: 234, nextId: 989, type: 'action', action: 'cmd=open_search;ver=1.0;osindex=aws_dev_webapp_drafter_ai_1', name: 'Search OS Data', position: [1089, 20], lAttributes: ['A=searchQuery_', 'B=osIndex_'], rAttributes: ['searchResults=text', 'path=path', 'page=page'], options: { size: 10, }, createdAt: '2023-02-20T12:14:13.638Z', updatedAt: '2023-08-23T11:44:53.182Z', variables: [ { id: 1285, type: 'var', datatype: 'text', name: 'path', label: 'Path', }, { id: 1286, type: 'var', datatype: 'number', name: 'page', label: 'Page', }, { id: 1287, type: 'var', datatype: 'text', name: 'searchResults', label: 'Search results777', }, ], }, { id: 989, organizationId: 1, workflowId: 234, nextId: 1034, type: 'action', action: 'cmd=generate_text;ver=1.0.0;model=ml_gpt3;type=35-temp-test_1sv4', name: '35 TEMP TEST', position: [1471, 22], lAttributes: ['A=searchResults'], rAttributes: ['generatedText2=text'], options: { tmpl: '{A}', count: 1, maxt: 1000, temp: 0, }, createdAt: '2023-08-18T13:36:20.289Z', updatedAt: '2023-08-23T11:44:45.173Z', variables: [ { id: 1373, type: 'var', datatype: 'text', name: 'generatedText2', label: 'Generated text 2', }, ], }, { id: 1034, organizationId: 1, workflowId: 186, nextId: null, type: 'filter', action: 'flt=r_filter;type=r', name: 'Filter', position: [126, -100], lAttributes: [], rAttributes: [], options: { filters: [ ['*', 'eq', '_COUNT_', '_INDEX_', 'v'], ['+', 'cn', 'searchQuery_', '_INDEX_', 'v'], ], }, createdAt: '2023-08-31T10:55:19.616Z', updatedAt: '2023-08-31T10:56:02.129Z', variables: [], }, ] export const createOldWorkflowId234OutputSnapshot = () => ({ id: 362, layout: 'table_layout', name: 'table_layout', type: 'unknown', label: 'Table', elements: JSON.parse( '[{"name":"generatedText2","label":"Generated Text2","datatype":"text","component":"CardDescription"},{"name":"searchResults","label":"Search Results","datatype":"text","component":"CardDescription"}]' ), createdAt: '2023-07-17 20:57:01.494000 +00:00', updatedAt: '2023-07-17 20:57:01.494000 +00:00', userId: 1, organizationId: 1, workflowId: 234, position: 1, })