retab 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/retab/base_client.rb +168 -33
- data/lib/retab/classifications/category.rb +3 -1
- data/lib/retab/classifications/classification.rb +3 -1
- data/lib/retab/classifications/classification_consensus.rb +3 -1
- data/lib/retab/classifications/classification_decision.rb +3 -1
- data/lib/retab/classifications/classification_request.rb +3 -1
- data/lib/retab/classifications.rb +40 -25
- data/lib/retab/client.rb +0 -68
- data/lib/retab/configuration.rb +8 -6
- data/lib/retab/edit_templates/create_edit_template_request.rb +3 -1
- data/lib/retab/edit_templates/edit_template.rb +3 -1
- data/lib/retab/edit_templates/update_edit_template_request.rb +3 -1
- data/lib/retab/edit_templates.rb +36 -24
- data/lib/retab/edits/edit.rb +6 -1
- data/lib/retab/edits/edit_request.rb +3 -1
- data/lib/retab/edits.rb +45 -25
- data/lib/retab/errors.rb +21 -4
- data/lib/retab/experiment_run_metrics/experiment_by_document_metrics_response.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_by_document_target_metric.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_by_target_metrics_response.rb +6 -2
- data/lib/retab/experiment_run_metrics/experiment_confusion_flow_metric.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_confusion_summary_aggregate.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_extract_summary_aggregate.rb +1 -0
- data/lib/retab/experiment_run_metrics/experiment_metric_document_ref.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_metrics_missing_error.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_metrics_stale_error.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_summary_metric_document.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_summary_metrics_response.rb +6 -2
- data/lib/retab/experiment_run_metrics/experiment_target_confusion_metric.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_vote_row.rb +3 -1
- data/lib/retab/experiment_run_metrics/experiment_votes_metrics_response.rb +3 -1
- data/lib/retab/experiment_run_metrics/metrics_stale_error_last_run.rb +3 -1
- data/lib/retab/experiment_run_metrics.rb +9 -9
- data/lib/retab/experiment_run_results/error_workflow_experiment_result.rb +3 -1
- data/lib/retab/experiment_run_results/experiment_result.rb +21 -2
- data/lib/retab/experiment_run_results/experiment_result_timing.rb +3 -1
- data/lib/retab/experiment_run_results.rb +32 -8
- data/lib/retab/experiment_runs/cancel_workflow_experiment_run_response.rb +21 -2
- data/lib/retab/experiment_runs/create_experiment_run_request.rb +3 -1
- data/lib/retab/experiment_runs/experiment_run.rb +21 -2
- data/lib/retab/experiment_runs/experiment_run_timing.rb +3 -1
- data/lib/retab/experiment_runs/experiment_run_trigger.rb +1 -0
- data/lib/retab/experiment_runs.rb +56 -33
- data/lib/retab/extractions/extraction.rb +3 -1
- data/lib/retab/extractions/extraction_consensus.rb +3 -1
- data/lib/retab/extractions/extraction_request.rb +8 -3
- data/lib/retab/extractions/file_ref.rb +3 -1
- data/lib/retab/extractions/retab_usage.rb +1 -0
- data/lib/retab/extractions/sources_response.rb +3 -1
- data/lib/retab/extractions.rb +59 -33
- data/lib/retab/files/complete_file_upload_request.rb +1 -0
- data/lib/retab/files/create_upload_response.rb +3 -1
- data/lib/retab/files/file.rb +6 -1
- data/lib/retab/files/file_link.rb +3 -1
- data/lib/retab/files/upload_file_request.rb +3 -1
- data/lib/retab/files.rb +55 -29
- data/lib/retab/jobs/create_job_request.rb +3 -1
- data/lib/retab/jobs/job.rb +3 -1
- data/lib/retab/jobs/job_error.rb +3 -1
- data/lib/retab/jobs/job_response.rb +3 -1
- data/lib/retab/jobs.rb +73 -37
- data/lib/retab/mime.rb +69 -38
- data/lib/retab/paginated_list.rb +86 -0
- data/lib/retab/parses/parse.rb +3 -1
- data/lib/retab/parses/parse_output.rb +3 -1
- data/lib/retab/parses/parse_request.rb +3 -1
- data/lib/retab/parses.rb +39 -24
- data/lib/retab/partitions/partition.rb +3 -1
- data/lib/retab/partitions/partition_chunk.rb +3 -1
- data/lib/retab/partitions/partition_chunk_likelihood.rb +3 -1
- data/lib/retab/partitions/partition_consensus.rb +6 -2
- data/lib/retab/partitions/partition_request.rb +3 -1
- data/lib/retab/partitions.rb +40 -25
- data/lib/retab/schemas/generate_schema_request.rb +3 -1
- data/lib/retab/schemas/partial_schema.rb +3 -1
- data/lib/retab/schemas.rb +13 -9
- data/lib/retab/shared/http_validation_error.rb +1 -0
- data/lib/retab/shared/validation_error.rb +3 -1
- data/lib/retab/splits/split.rb +3 -1
- data/lib/retab/splits/split_consensus.rb +6 -2
- data/lib/retab/splits/split_request.rb +3 -1
- data/lib/retab/splits/split_result.rb +3 -1
- data/lib/retab/splits/split_subdocument_likelihood.rb +3 -1
- data/lib/retab/splits/subdocument.rb +3 -1
- data/lib/retab/splits.rb +39 -24
- data/lib/retab/types/actor_kind.rb +3 -3
- data/lib/retab/types/api_response.rb +2 -0
- data/lib/retab/types/assertion_drift_status.rb +3 -3
- data/lib/retab/types/assertion_outcome.rb +3 -3
- data/lib/retab/types/base_model.rb +34 -9
- data/lib/retab/types/cancel_workflow_response_cancellation_status.rb +3 -3
- data/lib/retab/types/classifications_order.rb +2 -2
- data/lib/retab/types/condition_evaluation_details_logical_operator.rb +2 -2
- data/lib/retab/types/create_experiment_request_n_consensus.rb +3 -3
- data/lib/retab/types/create_job_request_endpoint.rb +24 -12
- data/lib/retab/types/declarative_apply_response_action.rb +3 -3
- data/lib/retab/types/declarative_plan_field_change_action.rb +3 -3
- data/lib/retab/types/declarative_plan_resource_change_target.rb +3 -3
- data/lib/retab/types/declarative_plan_resource_change_type.rb +44 -22
- data/lib/retab/types/error_step_lifecycle_category.rb +3 -3
- data/lib/retab/types/error_step_lifecycle_stage.rb +7 -7
- data/lib/retab/types/experiment_block_type.rb +4 -4
- data/lib/retab/types/experiment_public_status.rb +5 -5
- data/lib/retab/types/experiment_run_metrics_view.rb +4 -4
- data/lib/retab/types/experiment_run_results_order.rb +9 -0
- data/lib/retab/types/experiment_schema_drift_status.rb +4 -4
- data/lib/retab/types/field_type.rb +2 -2
- data/lib/retab/types/generate_schema_request_reasoning_effort.rb +6 -6
- data/lib/retab/types/handle_payload_type.rb +3 -3
- data/lib/retab/types/job_status.rb +7 -7
- data/lib/retab/types/jobs_source.rb +3 -3
- data/lib/retab/types/latest_block_test_run_summary_status.rb +6 -6
- data/lib/retab/types/length_compare_condition_op.rb +6 -6
- data/lib/retab/types/list_struct.rb +13 -50
- data/lib/retab/types/parse_request_table_parsing_format.rb +4 -4
- data/lib/retab/types/request_options.rb +2 -0
- data/lib/retab/types/resume_status.rb +3 -3
- data/lib/retab/types/review_decision_status.rb +5 -5
- data/lib/retab/types/review_evaluation_review_decision.rb +2 -2
- data/lib/retab/types/similarity_gte_condition_method.rb +2 -2
- data/lib/retab/types/sources_response_document_type.rb +6 -6
- data/lib/retab/types/step_artifact_ref_operation.rb +24 -12
- data/lib/retab/types/submission_status.rb +3 -3
- data/lib/retab/types/update_workflow_block_request_config_mode.rb +2 -2
- data/lib/retab/types/while_loop_termination_termination_reason.rb +3 -3
- data/lib/retab/types/workflow_block_create_request_type.rb +30 -15
- data/lib/retab/types/workflow_block_executions_order.rb +9 -0
- data/lib/retab/types/workflow_block_type.rb +40 -20
- data/lib/retab/types/workflow_experiments_order.rb +9 -0
- data/lib/retab/types/workflow_export_payload_request_exclude_status.rb +8 -8
- data/lib/retab/types/workflow_export_payload_request_export_source.rb +2 -2
- data/lib/retab/types/workflow_export_payload_request_trigger_types.rb +6 -6
- data/lib/retab/types/workflow_test_run_results_order.rb +9 -0
- data/lib/retab/types/{workflow_config_block_type.rb → workflow_tests_order.rb} +1 -1
- data/lib/retab/util.rb +4 -2
- data/lib/retab/version.rb +3 -1
- data/lib/retab/workflow_artifacts/api_call_attempt.rb +3 -1
- data/lib/retab/workflow_artifacts/api_call_invocation.rb +3 -1
- data/lib/retab/workflow_artifacts/b_box.rb +3 -1
- data/lib/retab/workflow_artifacts/classification_workflow_artifact.rb +3 -1
- data/lib/retab/workflow_artifacts/condition_evaluation_details.rb +6 -2
- data/lib/retab/workflow_artifacts/condition_evaluation_per_item.rb +3 -1
- data/lib/retab/workflow_artifacts/condition_evaluation_result.rb +6 -2
- data/lib/retab/workflow_artifacts/condition_evaluation_sub_condition.rb +3 -1
- data/lib/retab/workflow_artifacts/conditional_evaluation.rb +3 -1
- data/lib/retab/workflow_artifacts/edit_config.rb +1 -0
- data/lib/retab/workflow_artifacts/edit_result.rb +3 -1
- data/lib/retab/workflow_artifacts/edit_workflow_artifact.rb +6 -1
- data/lib/retab/workflow_artifacts/extraction_workflow_artifact.rb +3 -1
- data/lib/retab/workflow_artifacts/form_field.rb +3 -1
- data/lib/retab/workflow_artifacts/function_invocation.rb +3 -1
- data/lib/retab/workflow_artifacts/parse_workflow_artifact.rb +3 -1
- data/lib/retab/workflow_artifacts/partition_workflow_artifact.rb +3 -1
- data/lib/retab/workflow_artifacts/review_evaluation.rb +3 -1
- data/lib/retab/workflow_artifacts/split_workflow_artifact.rb +3 -1
- data/lib/retab/workflow_artifacts/while_loop_termination.rb +3 -1
- data/lib/retab/workflow_artifacts/workflow_artifact.rb +3 -1
- data/lib/retab/workflow_artifacts.rb +20 -13
- data/lib/retab/workflow_block_executions/completed_block_execution_lifecycle.rb +1 -0
- data/lib/retab/workflow_block_executions/create_block_execution_request.rb +3 -1
- data/lib/retab/workflow_block_executions/error_block_execution_lifecycle.rb +3 -1
- data/lib/retab/workflow_block_executions/skipped_block_execution_lifecycle.rb +3 -1
- data/lib/retab/workflow_block_executions/stored_block_execution.rb +15 -2
- data/lib/retab/workflow_block_executions.rb +40 -15
- data/lib/retab/workflow_blocks/update_workflow_block_request.rb +3 -1
- data/lib/retab/workflow_blocks/workflow_block.rb +3 -1
- data/lib/retab/workflow_blocks/workflow_block_create_request.rb +3 -1
- data/lib/retab/workflow_blocks.rb +52 -36
- data/lib/retab/workflow_edges/workflow_edge_create_request.rb +3 -1
- data/lib/retab/workflow_edges/workflow_edge_doc.rb +3 -1
- data/lib/retab/workflow_edges.rb +36 -22
- data/lib/retab/workflow_experiments/create_experiment_request.rb +9 -3
- data/lib/retab/workflow_experiments/experiment_document_capture_request.rb +3 -1
- data/lib/retab/workflow_experiments/experiment_document_provenance.rb +3 -1
- data/lib/retab/workflow_experiments/explicit_experiment_document_request.rb +3 -1
- data/lib/retab/workflow_experiments/update_experiment_request.rb +9 -3
- data/lib/retab/workflow_experiments/workflow_experiment.rb +3 -1
- data/lib/retab/workflow_experiments.rb +70 -23
- data/lib/retab/workflow_review_versions/create_review_version_request.rb +3 -1
- data/lib/retab/workflow_review_versions/review_version.rb +3 -1
- data/lib/retab/workflow_review_versions.rb +25 -17
- data/lib/retab/workflow_reviews/actor.rb +3 -1
- data/lib/retab/workflow_reviews/approve_review_request.rb +1 -0
- data/lib/retab/workflow_reviews/reject_review_request.rb +3 -1
- data/lib/retab/workflow_reviews/review.rb +37 -2
- data/lib/retab/workflow_reviews/review_all_of.rb +39 -2
- data/lib/retab/workflow_reviews/review_always.rb +1 -0
- data/lib/retab/workflow_reviews/review_any_of.rb +39 -2
- data/lib/retab/workflow_reviews/review_any_required_field_null.rb +1 -0
- data/lib/retab/workflow_reviews/review_any_split_pages_lt.rb +3 -1
- data/lib/retab/workflow_reviews/review_boundary_confidence_lt.rb +3 -1
- data/lib/retab/workflow_reviews/review_branch_in.rb +3 -1
- data/lib/retab/workflow_reviews/review_category_in.rb +3 -1
- data/lib/retab/workflow_reviews/review_confidence_lt.rb +3 -1
- data/lib/retab/workflow_reviews/review_decision.rb +3 -1
- data/lib/retab/workflow_reviews/review_field_confidence_lt.rb +3 -1
- data/lib/retab/workflow_reviews/review_json_condition.rb +3 -1
- data/lib/retab/workflow_reviews/review_split_count_neq.rb +3 -1
- data/lib/retab/workflow_reviews/review_top_margin_lt.rb +3 -1
- data/lib/retab/workflow_reviews/review_validation_failed.rb +1 -0
- data/lib/retab/workflow_reviews/submit_decision_response.rb +3 -1
- data/lib/retab/workflow_reviews.rb +47 -22
- data/lib/retab/workflow_runs/api_trigger.rb +3 -1
- data/lib/retab/workflow_runs/awaiting_review_run.rb +3 -1
- data/lib/retab/workflow_runs/cancel_workflow_request.rb +1 -0
- data/lib/retab/workflow_runs/cancel_workflow_response.rb +3 -1
- data/lib/retab/workflow_runs/cancelled_terminal.rb +3 -1
- data/lib/retab/workflow_runs/create_workflow_run_request.rb +16 -0
- data/lib/retab/workflow_runs/email_trigger.rb +3 -1
- data/lib/retab/workflow_runs/error_details.rb +3 -1
- data/lib/retab/workflow_runs/error_terminal.rb +3 -1
- data/lib/retab/workflow_runs/manual_trigger.rb +3 -1
- data/lib/retab/workflow_runs/pending_run.rb +1 -0
- data/lib/retab/workflow_runs/restart_trigger.rb +3 -1
- data/lib/retab/workflow_runs/run_inputs.rb +3 -1
- data/lib/retab/workflow_runs/run_timing.rb +3 -1
- data/lib/retab/workflow_runs/running_run.rb +1 -0
- data/lib/retab/workflow_runs/schedule_trigger.rb +3 -1
- data/lib/retab/workflow_runs/webhook_trigger.rb +3 -1
- data/lib/retab/workflow_runs/workflow_export_payload_request.rb +3 -1
- data/lib/retab/workflow_runs/workflow_export_payload_response.rb +3 -1
- data/lib/retab/workflow_runs/workflow_run.rb +39 -3
- data/lib/retab/workflow_runs/workflow_snapshot_ref.rb +3 -1
- data/lib/retab/workflow_runs.rb +97 -47
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_apply_response.rb +6 -2
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_export_response.rb +3 -1
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_plan_change.rb +6 -2
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_plan_field_change.rb +3 -1
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_plan_resource_change.rb +3 -1
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_plan_response.rb +6 -2
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_plan_summary.rb +3 -1
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_validation_response.rb +3 -1
- data/lib/retab/{workflow_specs → workflow_spec}/declarative_workflow_request.rb +1 -0
- data/lib/retab/{workflow_specs.rb → workflow_spec.rb} +29 -13
- data/lib/retab/workflow_steps/awaiting_review_step_lifecycle.rb +1 -0
- data/lib/retab/workflow_steps/cancelled_step_lifecycle.rb +3 -1
- data/lib/retab/workflow_steps/container_context_data.rb +3 -1
- data/lib/retab/workflow_steps/error_step_lifecycle.rb +3 -1
- data/lib/retab/workflow_steps/handle_payload.rb +3 -1
- data/lib/retab/workflow_steps/queued_step_lifecycle.rb +1 -0
- data/lib/retab/workflow_steps/step_artifact_ref.rb +3 -1
- data/lib/retab/workflow_steps/workflow_run_step.rb +28 -3
- data/lib/retab/workflow_steps.rb +34 -17
- data/lib/retab/workflow_test_run_results/assertion_failure.rb +3 -1
- data/lib/retab/workflow_test_run_results/assertion_result.rb +3 -1
- data/lib/retab/workflow_test_run_results/file_handle_input.rb +3 -1
- data/lib/retab/workflow_test_run_results/json_handle_input.rb +3 -1
- data/lib/retab/workflow_test_run_results/manual_workflow_test_source.rb +3 -1
- data/lib/retab/workflow_test_run_results/materialized_document.rb +3 -1
- data/lib/retab/workflow_test_run_results/run_step_workflow_test_source.rb +3 -1
- data/lib/retab/workflow_test_run_results/verdict_summary.rb +3 -1
- data/lib/retab/workflow_test_run_results/workflow_test_result.rb +31 -3
- data/lib/retab/workflow_test_run_results.rb +35 -8
- data/lib/retab/workflow_test_runs/block_test_batch_execution_counts.rb +3 -1
- data/lib/retab/workflow_test_runs/block_test_lifecycle_counts.rb +3 -1
- data/lib/retab/workflow_test_runs/block_test_outcome_counts.rb +3 -1
- data/lib/retab/workflow_test_runs/create_workflow_test_run_request.rb +30 -1
- data/lib/retab/workflow_test_runs/workflow_test_block_target.rb +3 -1
- data/lib/retab/workflow_test_runs/workflow_test_run.rb +39 -3
- data/lib/retab/{workflows/workflow_diagnosis_issue.rb → workflow_test_runs/workflow_test_run_block_scope.rb} +7 -11
- data/lib/retab/workflow_test_runs/workflow_test_run_single_scope.rb +25 -0
- data/lib/retab/workflow_test_runs/workflow_test_run_timing.rb +3 -1
- data/lib/retab/{workflows/workflow_block_position.rb → workflow_test_runs/workflow_test_run_workflow_scope.rb} +5 -8
- data/lib/retab/workflow_test_runs.rb +66 -32
- data/lib/retab/workflow_tests/all_items_match_condition.rb +39 -2
- data/lib/retab/workflow_tests/any_item_matches_condition.rb +39 -2
- data/lib/retab/workflow_tests/array_contains_condition.rb +3 -1
- data/lib/retab/workflow_tests/assertion_schema_dep.rb +3 -1
- data/lib/retab/workflow_tests/assertion_spec.rb +39 -2
- data/lib/retab/workflow_tests/between_condition.rb +3 -1
- data/lib/retab/workflow_tests/contain_condition.rb +3 -1
- data/lib/retab/workflow_tests/create_workflow_test_request.rb +13 -2
- data/lib/retab/workflow_tests/ends_with_condition.rb +3 -1
- data/lib/retab/workflow_tests/equal_condition.rb +3 -1
- data/lib/retab/workflow_tests/exist_condition.rb +1 -0
- data/lib/retab/workflow_tests/json_schema_valid_condition.rb +3 -1
- data/lib/retab/workflow_tests/latest_block_test_run_summary.rb +3 -1
- data/lib/retab/workflow_tests/length_compare_condition.rb +3 -1
- data/lib/retab/workflow_tests/llm_judged_as_condition.rb +3 -1
- data/lib/retab/workflow_tests/llm_not_judged_as_condition.rb +3 -1
- data/lib/retab/workflow_tests/matche_regex_condition.rb +3 -1
- data/lib/retab/workflow_tests/not_contains_condition.rb +3 -1
- data/lib/retab/workflow_tests/not_equals_condition.rb +3 -1
- data/lib/retab/workflow_tests/not_exists_condition.rb +1 -0
- data/lib/retab/workflow_tests/number_compare_condition.rb +3 -1
- data/lib/retab/workflow_tests/object_contains_condition.rb +3 -1
- data/lib/retab/workflow_tests/output_target.rb +3 -1
- data/lib/retab/workflow_tests/similarity_gte_condition.rb +3 -1
- data/lib/retab/workflow_tests/split_iou_condition.rb +3 -1
- data/lib/retab/workflow_tests/start_with_condition.rb +3 -1
- data/lib/retab/workflow_tests/update_workflow_test_request.rb +13 -2
- data/lib/retab/workflow_tests/workflow_test.rb +19 -4
- data/lib/retab/workflow_tests.rb +68 -21
- data/lib/retab/workflows/create_workflow_request.rb +3 -1
- data/lib/retab/workflows/publish_workflow_request.rb +1 -0
- data/lib/retab/workflows/update_workflow_request.rb +3 -1
- data/lib/retab/workflows/workflow.rb +3 -4
- data/lib/retab/workflows/workflow_published.rb +3 -1
- data/lib/retab/workflows.rb +76 -55
- data/lib/retab.rb +6 -6
- data/rbi/retab/classifications.rbi +1 -1
- data/rbi/retab/client.rbi +0 -51
- data/rbi/retab/create_workflow_run_request.rbi +24 -0
- data/rbi/retab/create_workflow_test_run_request.rbi +12 -0
- data/rbi/retab/edit.rbi +6 -0
- data/rbi/retab/edit_template.rbi +4 -4
- data/rbi/retab/edit_templates.rbi +1 -1
- data/rbi/retab/edit_workflow_artifact.rbi +6 -0
- data/rbi/retab/edits.rbi +4 -1
- data/rbi/retab/email_trigger.rbi +2 -2
- data/rbi/retab/experiment_run_results.rbi +5 -2
- data/rbi/retab/experiment_runs.rbi +2 -3
- data/rbi/retab/extraction_request.rbi +6 -0
- data/rbi/retab/extractions.rbi +3 -2
- data/rbi/retab/file.rbi +10 -4
- data/rbi/retab/files.rbi +2 -2
- data/rbi/retab/jobs.rbi +1 -1
- data/rbi/retab/parses.rbi +1 -1
- data/rbi/retab/partitions.rbi +1 -1
- data/rbi/retab/splits.rbi +1 -1
- data/rbi/retab/workflow.rbi +0 -6
- data/rbi/retab/workflow_artifacts.rbi +1 -1
- data/rbi/retab/workflow_block_executions.rbi +5 -2
- data/rbi/retab/workflow_blocks.rbi +4 -1
- data/rbi/retab/workflow_edges.rbi +1 -1
- data/rbi/retab/workflow_experiments.rbi +15 -2
- data/rbi/retab/workflow_review_versions.rbi +1 -1
- data/rbi/retab/workflow_reviews.rbi +4 -1
- data/rbi/retab/workflow_runs.rbi +6 -2
- data/rbi/retab/{workflow_specs.rbi → workflow_spec.rbi} +1 -1
- data/rbi/retab/workflow_steps.rbi +3 -2
- data/rbi/retab/{workflow_diagnosis_issue.rbi → workflow_test_run_block_scope.rbi} +4 -16
- data/rbi/retab/workflow_test_run_results.rbi +6 -2
- data/rbi/retab/workflow_test_run_single_scope.rbi +30 -0
- data/rbi/retab/{workflow_block_position.rbi → workflow_test_run_workflow_scope.rbi} +5 -11
- data/rbi/retab/workflow_test_runs.rbi +5 -4
- data/rbi/retab/workflow_tests.rbi +11 -2
- data/rbi/retab/workflows.rbi +28 -12
- metadata +25 -31
- data/lib/retab/types/workflow_diagnosis_issue_severity.rb +0 -14
- data/lib/retab/workflows/workflow_config_block.rb +0 -44
- data/lib/retab/workflows/workflow_config_edge.rb +0 -35
- data/lib/retab/workflows/workflow_diagnosis_response.rb +0 -29
- data/lib/retab/workflows/workflow_diagnosis_stats.rb +0 -29
- data/lib/retab/workflows/workflow_email_trigger.rb +0 -23
- data/lib/retab/workflows/workflow_graph_diagnosis_request.rb +0 -26
- data/rbi/retab/workflow_config_block.rbi +0 -72
- data/rbi/retab/workflow_config_edge.rbi +0 -54
- data/rbi/retab/workflow_diagnosis_response.rbi +0 -42
- data/rbi/retab/workflow_diagnosis_stats.rbi +0 -42
- data/rbi/retab/workflow_email_trigger.rbi +0 -30
- data/rbi/retab/workflow_graph_diagnosis_request.rbi +0 -36
|
@@ -13,20 +13,24 @@ module Retab
|
|
|
13
13
|
field_changes: :field_changes
|
|
14
14
|
}.freeze
|
|
15
15
|
|
|
16
|
-
attr_accessor
|
|
16
|
+
attr_accessor(
|
|
17
17
|
:before,
|
|
18
18
|
:after,
|
|
19
19
|
:before_sensitive,
|
|
20
20
|
:after_sensitive,
|
|
21
21
|
:field_changes
|
|
22
|
+
)
|
|
22
23
|
|
|
23
24
|
def initialize(json)
|
|
25
|
+
super()
|
|
24
26
|
hash = self.class.normalize(json)
|
|
25
27
|
@before = hash[:before]
|
|
26
28
|
@after = hash[:after]
|
|
27
29
|
@before_sensitive = hash[:before_sensitive]
|
|
28
30
|
@after_sensitive = hash[:after_sensitive]
|
|
29
|
-
@field_changes = (hash[:field_changes] || []).map { |item|
|
|
31
|
+
@field_changes = (hash[:field_changes] || []).map { |item|
|
|
32
|
+
item ? Retab::DeclarativePlanFieldChange.new(item) : nil
|
|
33
|
+
}
|
|
30
34
|
end
|
|
31
35
|
end
|
|
32
36
|
end
|
|
@@ -16,7 +16,7 @@ module Retab
|
|
|
16
16
|
unified_diff: :unified_diff
|
|
17
17
|
}.freeze
|
|
18
18
|
|
|
19
|
-
attr_accessor
|
|
19
|
+
attr_accessor(
|
|
20
20
|
:path,
|
|
21
21
|
:path_display,
|
|
22
22
|
:action,
|
|
@@ -25,8 +25,10 @@ module Retab
|
|
|
25
25
|
:before_sensitive,
|
|
26
26
|
:after_sensitive,
|
|
27
27
|
:unified_diff
|
|
28
|
+
)
|
|
28
29
|
|
|
29
30
|
def initialize(json)
|
|
31
|
+
super()
|
|
30
32
|
hash = self.class.normalize(json)
|
|
31
33
|
@path = (hash[:path] || [])
|
|
32
34
|
@path_display = hash[:path_display]
|
|
@@ -17,7 +17,7 @@ module Retab
|
|
|
17
17
|
path: :path
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
|
-
attr_accessor
|
|
20
|
+
attr_accessor(
|
|
21
21
|
:address,
|
|
22
22
|
:target,
|
|
23
23
|
:target_id,
|
|
@@ -27,8 +27,10 @@ module Retab
|
|
|
27
27
|
:summary,
|
|
28
28
|
:change,
|
|
29
29
|
:path
|
|
30
|
+
)
|
|
30
31
|
|
|
31
32
|
def initialize(json)
|
|
33
|
+
super()
|
|
32
34
|
hash = self.class.normalize(json)
|
|
33
35
|
@address = hash[:address]
|
|
34
36
|
@target = hash[:target]
|
|
@@ -17,7 +17,7 @@ module Retab
|
|
|
17
17
|
rendered_plan: :rendered_plan
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
|
-
attr_accessor
|
|
20
|
+
attr_accessor(
|
|
21
21
|
:workflow_id,
|
|
22
22
|
:action,
|
|
23
23
|
:block_count,
|
|
@@ -27,8 +27,10 @@ module Retab
|
|
|
27
27
|
:summary,
|
|
28
28
|
:resource_changes,
|
|
29
29
|
:rendered_plan
|
|
30
|
+
)
|
|
30
31
|
|
|
31
32
|
def initialize(json)
|
|
33
|
+
super()
|
|
32
34
|
hash = self.class.normalize(json)
|
|
33
35
|
@workflow_id = hash[:workflow_id]
|
|
34
36
|
@action = hash[:action]
|
|
@@ -37,7 +39,9 @@ module Retab
|
|
|
37
39
|
@diagnostics = hash[:diagnostics] || {}
|
|
38
40
|
@format_version = hash[:format_version]
|
|
39
41
|
@summary = hash[:summary] ? Retab::DeclarativePlanSummary.new(hash[:summary]) : nil
|
|
40
|
-
@resource_changes = (hash[:resource_changes] || []).map { |item|
|
|
42
|
+
@resource_changes = (hash[:resource_changes] || []).map { |item|
|
|
43
|
+
item ? Retab::DeclarativePlanResourceChange.new(item) : nil
|
|
44
|
+
}
|
|
41
45
|
@rendered_plan = hash[:rendered_plan]
|
|
42
46
|
end
|
|
43
47
|
end
|
|
@@ -15,7 +15,7 @@ module Retab
|
|
|
15
15
|
has_changes: :has_changes
|
|
16
16
|
}.freeze
|
|
17
17
|
|
|
18
|
-
attr_accessor
|
|
18
|
+
attr_accessor(
|
|
19
19
|
:add,
|
|
20
20
|
:change,
|
|
21
21
|
:destroy,
|
|
@@ -23,8 +23,10 @@ module Retab
|
|
|
23
23
|
:noop,
|
|
24
24
|
:total,
|
|
25
25
|
:has_changes
|
|
26
|
+
)
|
|
26
27
|
|
|
27
28
|
def initialize(json)
|
|
29
|
+
super()
|
|
28
30
|
hash = self.class.normalize(json)
|
|
29
31
|
@add = hash[:add]
|
|
30
32
|
@change = hash[:change]
|
|
@@ -13,14 +13,16 @@ module Retab
|
|
|
13
13
|
diagnostics: :diagnostics
|
|
14
14
|
}.freeze
|
|
15
15
|
|
|
16
|
-
attr_accessor
|
|
16
|
+
attr_accessor(
|
|
17
17
|
:workflow_id,
|
|
18
18
|
:block_count,
|
|
19
19
|
:edge_count,
|
|
20
20
|
:is_valid,
|
|
21
21
|
:diagnostics
|
|
22
|
+
)
|
|
22
23
|
|
|
23
24
|
def initialize(json)
|
|
25
|
+
super()
|
|
24
26
|
hash = self.class.normalize(json)
|
|
25
27
|
@workflow_id = hash[:workflow_id]
|
|
26
28
|
@block_count = hash[:block_count]
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# This file is auto-generated by oagen. Do not edit.
|
|
4
4
|
|
|
5
|
-
require
|
|
5
|
+
require "json"
|
|
6
6
|
|
|
7
7
|
module Retab
|
|
8
|
-
class
|
|
8
|
+
class WorkflowSpec
|
|
9
9
|
def initialize(client)
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
@@ -19,17 +19,21 @@ module Retab
|
|
|
19
19
|
request_options: {}
|
|
20
20
|
)
|
|
21
21
|
body = {
|
|
22
|
-
|
|
22
|
+
"yaml_definition" => yaml_definition
|
|
23
23
|
}
|
|
24
24
|
response = @client.request(
|
|
25
25
|
method: :post,
|
|
26
|
-
path:
|
|
26
|
+
path: "/v1/workflows/spec/validate",
|
|
27
27
|
auth: true,
|
|
28
28
|
body: body,
|
|
29
29
|
request_options: request_options
|
|
30
30
|
)
|
|
31
31
|
result = Retab::DeclarativeValidationResponse.new(response.body)
|
|
32
|
-
result.last_response = Retab::Types::ApiResponse.new(
|
|
32
|
+
result.last_response = Retab::Types::ApiResponse.new(
|
|
33
|
+
http_status: response.code.to_i,
|
|
34
|
+
http_headers: response.each_header.to_h,
|
|
35
|
+
request_id: response["x-request-id"]
|
|
36
|
+
)
|
|
33
37
|
result
|
|
34
38
|
end
|
|
35
39
|
|
|
@@ -42,17 +46,21 @@ module Retab
|
|
|
42
46
|
request_options: {}
|
|
43
47
|
)
|
|
44
48
|
body = {
|
|
45
|
-
|
|
49
|
+
"yaml_definition" => yaml_definition
|
|
46
50
|
}
|
|
47
51
|
response = @client.request(
|
|
48
52
|
method: :post,
|
|
49
|
-
path:
|
|
53
|
+
path: "/v1/workflows/spec/plan",
|
|
50
54
|
auth: true,
|
|
51
55
|
body: body,
|
|
52
56
|
request_options: request_options
|
|
53
57
|
)
|
|
54
58
|
result = Retab::DeclarativePlanResponse.new(response.body)
|
|
55
|
-
result.last_response = Retab::Types::ApiResponse.new(
|
|
59
|
+
result.last_response = Retab::Types::ApiResponse.new(
|
|
60
|
+
http_status: response.code.to_i,
|
|
61
|
+
http_headers: response.each_header.to_h,
|
|
62
|
+
request_id: response["x-request-id"]
|
|
63
|
+
)
|
|
56
64
|
result
|
|
57
65
|
end
|
|
58
66
|
|
|
@@ -65,17 +73,21 @@ module Retab
|
|
|
65
73
|
request_options: {}
|
|
66
74
|
)
|
|
67
75
|
body = {
|
|
68
|
-
|
|
76
|
+
"yaml_definition" => yaml_definition
|
|
69
77
|
}
|
|
70
78
|
response = @client.request(
|
|
71
79
|
method: :post,
|
|
72
|
-
path:
|
|
80
|
+
path: "/v1/workflows/spec/apply",
|
|
73
81
|
auth: true,
|
|
74
82
|
body: body,
|
|
75
83
|
request_options: request_options
|
|
76
84
|
)
|
|
77
85
|
result = Retab::DeclarativeApplyResponse.new(response.body)
|
|
78
|
-
result.last_response = Retab::Types::ApiResponse.new(
|
|
86
|
+
result.last_response = Retab::Types::ApiResponse.new(
|
|
87
|
+
http_status: response.code.to_i,
|
|
88
|
+
http_headers: response.each_header.to_h,
|
|
89
|
+
request_id: response["x-request-id"]
|
|
90
|
+
)
|
|
79
91
|
result
|
|
80
92
|
end
|
|
81
93
|
|
|
@@ -89,12 +101,16 @@ module Retab
|
|
|
89
101
|
)
|
|
90
102
|
response = @client.request(
|
|
91
103
|
method: :get,
|
|
92
|
-
path: "/v1/workflows/#{Retab::Util.encode_path(workflow_id)}
|
|
104
|
+
path: "/v1/workflows/spec/#{Retab::Util.encode_path(workflow_id)}",
|
|
93
105
|
auth: true,
|
|
94
106
|
request_options: request_options
|
|
95
107
|
)
|
|
96
108
|
result = Retab::DeclarativeExportResponse.new(response.body)
|
|
97
|
-
result.last_response = Retab::Types::ApiResponse.new(
|
|
109
|
+
result.last_response = Retab::Types::ApiResponse.new(
|
|
110
|
+
http_status: response.code.to_i,
|
|
111
|
+
http_headers: response.each_header.to_h,
|
|
112
|
+
request_id: response["x-request-id"]
|
|
113
|
+
)
|
|
98
114
|
result
|
|
99
115
|
end
|
|
100
116
|
end
|
|
@@ -12,13 +12,15 @@ module Retab
|
|
|
12
12
|
parallel_item_index: :parallel_item_index
|
|
13
13
|
}.freeze
|
|
14
14
|
|
|
15
|
-
attr_accessor
|
|
15
|
+
attr_accessor(
|
|
16
16
|
:container_id,
|
|
17
17
|
:iteration,
|
|
18
18
|
:is_parallel,
|
|
19
19
|
:parallel_item_index
|
|
20
|
+
)
|
|
20
21
|
|
|
21
22
|
def initialize(json)
|
|
23
|
+
super()
|
|
22
24
|
hash = self.class.normalize(json)
|
|
23
25
|
@container_id = hash[:container_id]
|
|
24
26
|
@iteration = hash[:iteration]
|
|
@@ -13,14 +13,16 @@ module Retab
|
|
|
13
13
|
details: :details
|
|
14
14
|
}.freeze
|
|
15
15
|
|
|
16
|
-
attr_accessor
|
|
16
|
+
attr_accessor(
|
|
17
17
|
:status,
|
|
18
18
|
:message,
|
|
19
19
|
:stage,
|
|
20
20
|
:category,
|
|
21
21
|
:details
|
|
22
|
+
)
|
|
22
23
|
|
|
23
24
|
def initialize(json)
|
|
25
|
+
super()
|
|
24
26
|
hash = self.class.normalize(json)
|
|
25
27
|
@status = hash[:status]
|
|
26
28
|
@message = hash[:message]
|
|
@@ -13,14 +13,16 @@ module Retab
|
|
|
13
13
|
preview: :preview
|
|
14
14
|
}.freeze
|
|
15
15
|
|
|
16
|
-
attr_accessor
|
|
16
|
+
attr_accessor(
|
|
17
17
|
:type,
|
|
18
18
|
:document,
|
|
19
19
|
:data,
|
|
20
20
|
:artifact_ref,
|
|
21
21
|
:preview
|
|
22
|
+
)
|
|
22
23
|
|
|
23
24
|
def initialize(json)
|
|
25
|
+
super()
|
|
24
26
|
hash = self.class.normalize(json)
|
|
25
27
|
@type = hash[:type]
|
|
26
28
|
@document = hash[:document] ? Retab::FileRef.new(hash[:document]) : nil
|
|
@@ -23,7 +23,7 @@ module Retab
|
|
|
23
23
|
retry_count: :retry_count
|
|
24
24
|
}.freeze
|
|
25
25
|
|
|
26
|
-
attr_accessor
|
|
26
|
+
attr_accessor(
|
|
27
27
|
:block_id,
|
|
28
28
|
:step_id,
|
|
29
29
|
:block_type,
|
|
@@ -39,18 +39,43 @@ module Retab
|
|
|
39
39
|
:handle_outputs,
|
|
40
40
|
:artifact,
|
|
41
41
|
:retry_count
|
|
42
|
+
)
|
|
42
43
|
|
|
43
44
|
def initialize(json)
|
|
45
|
+
super()
|
|
44
46
|
hash = self.class.normalize(json)
|
|
45
47
|
@block_id = hash[:block_id]
|
|
46
48
|
@step_id = hash[:step_id]
|
|
47
49
|
@block_type = hash[:block_type]
|
|
48
50
|
@block_label = hash[:block_label]
|
|
49
|
-
@lifecycle = hash[:lifecycle] ? (
|
|
51
|
+
@lifecycle = hash[:lifecycle] ? (
|
|
52
|
+
case hash[:lifecycle][:status]
|
|
53
|
+
when "awaiting_review"
|
|
54
|
+
Retab::AwaitingReviewStepLifecycle.new(hash[:lifecycle])
|
|
55
|
+
when "cancelled"
|
|
56
|
+
Retab::CancelledStepLifecycle.new(hash[:lifecycle])
|
|
57
|
+
when "completed"
|
|
58
|
+
Retab::CompletedStepLifecycle.new(hash[:lifecycle])
|
|
59
|
+
when "error"
|
|
60
|
+
Retab::ErrorStepLifecycle.new(hash[:lifecycle])
|
|
61
|
+
when "pending"
|
|
62
|
+
Retab::PendingStepLifecycle.new(hash[:lifecycle])
|
|
63
|
+
when "queued"
|
|
64
|
+
Retab::QueuedStepLifecycle.new(hash[:lifecycle])
|
|
65
|
+
when "running"
|
|
66
|
+
Retab::RunningStepLifecycle.new(hash[:lifecycle])
|
|
67
|
+
when "skipped"
|
|
68
|
+
Retab::SkippedStepLifecycle.new(hash[:lifecycle])
|
|
69
|
+
else
|
|
70
|
+
hash[:lifecycle]
|
|
71
|
+
end
|
|
72
|
+
) : nil
|
|
50
73
|
@started_at = hash[:started_at]
|
|
51
74
|
@completed_at = hash[:completed_at]
|
|
52
75
|
@model = hash[:model]
|
|
53
|
-
@loop_containers = (hash[:loop_containers] || []).map { |item|
|
|
76
|
+
@loop_containers = (hash[:loop_containers] || []).map { |item|
|
|
77
|
+
item ? Retab::ContainerContextData.new(item) : nil
|
|
78
|
+
}
|
|
54
79
|
@run_id = hash[:run_id]
|
|
55
80
|
@created_at = hash[:created_at]
|
|
56
81
|
@handle_inputs = hash[:handle_inputs] || {}
|
data/lib/retab/workflow_steps.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# This file is auto-generated by oagen. Do not edit.
|
|
4
4
|
|
|
5
|
-
require
|
|
5
|
+
require "json"
|
|
6
6
|
|
|
7
7
|
module Retab
|
|
8
8
|
class WorkflowSteps
|
|
@@ -12,7 +12,8 @@ module Retab
|
|
|
12
12
|
|
|
13
13
|
# List Workflow Run Steps
|
|
14
14
|
# @param run_id [String, nil] Optional workflow run ID filter.
|
|
15
|
-
# @param block_id [String, nil] Optional logical block ID filter.
|
|
15
|
+
# @param block_id [String, nil] Optional logical block ID filter (deprecated; prefer ``block_ids`` for multi-value filtering).
|
|
16
|
+
# @param block_ids [Array<String>, nil] Optional logical block ID filter — multi-value. Repeat the query parameter (``?block_ids=a&block_ids=b``) to match any of several blocks. An empty list is treated as no filter. Preferred over the singular ``block_id``.
|
|
16
17
|
# @param step_id [String, nil] Optional step ID filter.
|
|
17
18
|
# @param block_type [Array<String>, nil] Optional block type filter. Repeat the query parameter for multiple values.
|
|
18
19
|
# @param status [Array<String>, nil] Optional step lifecycle status filter. Repeat the query parameter for multiple values.
|
|
@@ -20,10 +21,11 @@ module Retab
|
|
|
20
21
|
# @param after [String, nil] Step id cursor: return the page after this id (mutually exclusive with ``before``).
|
|
21
22
|
# @param limit [Integer, nil] Maximum number of steps to return per page (1-1000). Defaults to 200; raise it for run-scoped queries on large DAGs and rely on cursor pagination for the rest.
|
|
22
23
|
# @param request_options [Hash] (see Retab::Types::RequestOptions)
|
|
23
|
-
# @return [Retab::
|
|
24
|
+
# @return [Retab::PaginatedList<Retab::WorkflowRunStep>]
|
|
24
25
|
def list(
|
|
25
26
|
run_id: nil,
|
|
26
27
|
block_id: nil,
|
|
28
|
+
block_ids: nil,
|
|
27
29
|
step_id: nil,
|
|
28
30
|
block_type: nil,
|
|
29
31
|
status: nil,
|
|
@@ -33,26 +35,28 @@ module Retab
|
|
|
33
35
|
request_options: {}
|
|
34
36
|
)
|
|
35
37
|
params = {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
"run_id" => run_id,
|
|
39
|
+
"block_id" => block_id,
|
|
40
|
+
"block_ids" => block_ids,
|
|
41
|
+
"step_id" => step_id,
|
|
42
|
+
"block_type" => block_type,
|
|
43
|
+
"status" => status,
|
|
44
|
+
"before" => before,
|
|
45
|
+
"after" => after,
|
|
46
|
+
"limit" => limit
|
|
44
47
|
}.compact
|
|
45
48
|
response = @client.request(
|
|
46
49
|
method: :get,
|
|
47
|
-
path:
|
|
50
|
+
path: "/v1/workflows/steps",
|
|
48
51
|
auth: true,
|
|
49
52
|
params: params,
|
|
50
53
|
request_options: request_options
|
|
51
54
|
)
|
|
52
|
-
fetch_next = ->(cursor) {
|
|
55
|
+
fetch_next = -> (cursor) {
|
|
53
56
|
list(
|
|
54
57
|
run_id: run_id,
|
|
55
58
|
block_id: block_id,
|
|
59
|
+
block_ids: block_ids,
|
|
56
60
|
step_id: step_id,
|
|
57
61
|
block_type: block_type,
|
|
58
62
|
status: status,
|
|
@@ -62,10 +66,19 @@ module Retab
|
|
|
62
66
|
request_options: request_options
|
|
63
67
|
)
|
|
64
68
|
}
|
|
65
|
-
Retab::
|
|
69
|
+
Retab::PaginatedList.from_response(
|
|
66
70
|
response,
|
|
67
71
|
model: Retab::WorkflowRunStep,
|
|
68
|
-
filters: {
|
|
72
|
+
filters: {
|
|
73
|
+
run_id: run_id,
|
|
74
|
+
block_id: block_id,
|
|
75
|
+
block_ids: block_ids,
|
|
76
|
+
step_id: step_id,
|
|
77
|
+
block_type: block_type,
|
|
78
|
+
status: status,
|
|
79
|
+
before: before,
|
|
80
|
+
limit: limit
|
|
81
|
+
},
|
|
69
82
|
fetch_next: fetch_next
|
|
70
83
|
)
|
|
71
84
|
end
|
|
@@ -81,7 +94,7 @@ module Retab
|
|
|
81
94
|
request_options: {}
|
|
82
95
|
)
|
|
83
96
|
params = {
|
|
84
|
-
|
|
97
|
+
"run_id" => run_id
|
|
85
98
|
}.compact
|
|
86
99
|
response = @client.request(
|
|
87
100
|
method: :get,
|
|
@@ -91,7 +104,11 @@ module Retab
|
|
|
91
104
|
request_options: request_options
|
|
92
105
|
)
|
|
93
106
|
result = Retab::WorkflowRunStep.new(response.body)
|
|
94
|
-
result.last_response = Retab::Types::ApiResponse.new(
|
|
107
|
+
result.last_response = Retab::Types::ApiResponse.new(
|
|
108
|
+
http_status: response.code.to_i,
|
|
109
|
+
http_headers: response.each_header.to_h,
|
|
110
|
+
request_id: response["x-request-id"]
|
|
111
|
+
)
|
|
95
112
|
result
|
|
96
113
|
end
|
|
97
114
|
end
|
|
@@ -11,12 +11,14 @@ module Retab
|
|
|
11
11
|
details: :details
|
|
12
12
|
}.freeze
|
|
13
13
|
|
|
14
|
-
attr_accessor
|
|
14
|
+
attr_accessor(
|
|
15
15
|
:code,
|
|
16
16
|
:message,
|
|
17
17
|
:details
|
|
18
|
+
)
|
|
18
19
|
|
|
19
20
|
def initialize(json)
|
|
21
|
+
super()
|
|
20
22
|
hash = self.class.normalize(json)
|
|
21
23
|
@code = hash[:code]
|
|
22
24
|
@message = hash[:message]
|
|
@@ -18,7 +18,7 @@ module Retab
|
|
|
18
18
|
failure: :failure
|
|
19
19
|
}.freeze
|
|
20
20
|
|
|
21
|
-
attr_accessor
|
|
21
|
+
attr_accessor(
|
|
22
22
|
:assertion_id,
|
|
23
23
|
:condition_kind,
|
|
24
24
|
:outcome,
|
|
@@ -29,8 +29,10 @@ module Retab
|
|
|
29
29
|
:metric_kind,
|
|
30
30
|
:assertion_label,
|
|
31
31
|
:failure
|
|
32
|
+
)
|
|
32
33
|
|
|
33
34
|
def initialize(json)
|
|
35
|
+
super()
|
|
34
36
|
hash = self.class.normalize(json)
|
|
35
37
|
@assertion_id = hash[:assertion_id]
|
|
36
38
|
@condition_kind = hash[:condition_kind]
|
|
@@ -10,11 +10,13 @@ module Retab
|
|
|
10
10
|
document: :document
|
|
11
11
|
}.freeze
|
|
12
12
|
|
|
13
|
-
attr_accessor
|
|
13
|
+
attr_accessor(
|
|
14
14
|
:type,
|
|
15
15
|
:document
|
|
16
|
+
)
|
|
16
17
|
|
|
17
18
|
def initialize(json)
|
|
19
|
+
super()
|
|
18
20
|
hash = self.class.normalize(json)
|
|
19
21
|
@type = hash[:type]
|
|
20
22
|
@document = hash[:document] ? Retab::MaterializedDocument.new(hash[:document]) : nil
|
|
@@ -10,11 +10,13 @@ module Retab
|
|
|
10
10
|
handle_inputs: :handle_inputs
|
|
11
11
|
}.freeze
|
|
12
12
|
|
|
13
|
-
attr_accessor
|
|
13
|
+
attr_accessor(
|
|
14
14
|
:type,
|
|
15
15
|
:handle_inputs
|
|
16
|
+
)
|
|
16
17
|
|
|
17
18
|
def initialize(json)
|
|
19
|
+
super()
|
|
18
20
|
hash = self.class.normalize(json)
|
|
19
21
|
@type = hash[:type]
|
|
20
22
|
@handle_inputs = hash[:handle_inputs] || {}
|
|
@@ -14,15 +14,17 @@ module Retab
|
|
|
14
14
|
content_fingerprint: :content_fingerprint
|
|
15
15
|
}.freeze
|
|
16
16
|
|
|
17
|
-
attr_accessor
|
|
17
|
+
attr_accessor(
|
|
18
18
|
:original_id,
|
|
19
19
|
:filename,
|
|
20
20
|
:mime_type,
|
|
21
21
|
:gcs_uri,
|
|
22
22
|
:size_bytes,
|
|
23
23
|
:content_fingerprint
|
|
24
|
+
)
|
|
24
25
|
|
|
25
26
|
def initialize(json)
|
|
27
|
+
super()
|
|
26
28
|
hash = self.class.normalize(json)
|
|
27
29
|
@original_id = hash[:original_id]
|
|
28
30
|
@filename = hash[:filename]
|
|
@@ -11,12 +11,14 @@ module Retab
|
|
|
11
11
|
step_id: :step_id
|
|
12
12
|
}.freeze
|
|
13
13
|
|
|
14
|
-
attr_accessor
|
|
14
|
+
attr_accessor(
|
|
15
15
|
:type,
|
|
16
16
|
:run_id,
|
|
17
17
|
:step_id
|
|
18
|
+
)
|
|
18
19
|
|
|
19
20
|
def initialize(json)
|
|
21
|
+
super()
|
|
20
22
|
hash = self.class.normalize(json)
|
|
21
23
|
@type = hash[:type]
|
|
22
24
|
@run_id = hash[:run_id]
|
|
@@ -13,14 +13,16 @@ module Retab
|
|
|
13
13
|
failed_assertion_ids: :failed_assertion_ids
|
|
14
14
|
}.freeze
|
|
15
15
|
|
|
16
|
-
attr_accessor
|
|
16
|
+
attr_accessor(
|
|
17
17
|
:result,
|
|
18
18
|
:assertions_passed,
|
|
19
19
|
:assertions_failed,
|
|
20
20
|
:blocked_assertions,
|
|
21
21
|
:failed_assertion_ids
|
|
22
|
+
)
|
|
22
23
|
|
|
23
24
|
def initialize(json)
|
|
25
|
+
super()
|
|
24
26
|
hash = self.class.normalize(json)
|
|
25
27
|
@result = hash[:result]
|
|
26
28
|
@assertions_passed = hash[:assertions_passed]
|