retab 0.1.8 → 0.1.9

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/retab/classifications/file_ref.rb +1 -22
  3. data/lib/retab/experiment_run_results/pending_workflow_experiment_result.rb +1 -1
  4. data/lib/retab/experiment_run_results/queued_workflow_experiment_result.rb +1 -1
  5. data/lib/retab/experiment_run_results/running_workflow_experiment_result.rb +1 -1
  6. data/lib/retab/experiment_runs/pending_workflow_experiment_run.rb +1 -1
  7. data/lib/retab/experiment_runs/queued_workflow_experiment_run.rb +1 -1
  8. data/lib/retab/experiment_runs/running_workflow_experiment_run.rb +1 -1
  9. data/lib/retab/workflow_block_executions/block_exec_file_handle_input.rb +25 -0
  10. data/lib/retab/workflow_block_executions/block_exec_file_ref.rb +28 -0
  11. data/lib/retab/workflow_block_executions/block_exec_json_handle_input.rb +25 -0
  12. data/lib/retab/workflow_block_executions/cancelled_block_execution_lifecycle.rb +25 -0
  13. data/lib/retab/workflow_block_executions/pending_block_execution_lifecycle.rb +20 -0
  14. data/lib/retab/workflow_block_executions/queued_block_execution_lifecycle.rb +20 -0
  15. data/lib/retab/workflow_block_executions/running_block_execution_lifecycle.rb +20 -0
  16. data/lib/retab/workflow_block_executions/stored_block_execution.rb +29 -0
  17. data/lib/retab/workflow_experiments/file_handle_input.rb +1 -19
  18. data/lib/retab/workflow_experiments/json_handle_input.rb +1 -19
  19. data/lib/retab/workflow_runs/pending_run.rb +1 -14
  20. data/lib/retab/workflow_runs/running_run.rb +1 -14
  21. data/lib/retab/workflow_steps/pending_step_lifecycle.rb +1 -1
  22. data/lib/retab/workflow_steps/queued_step_lifecycle.rb +1 -14
  23. data/lib/retab/workflow_steps/running_step_lifecycle.rb +1 -1
  24. data/lib/retab/workflow_test_run_results/pending_workflow_test_run.rb +1 -1
  25. data/lib/retab/workflow_test_run_results/queued_workflow_test_run.rb +1 -1
  26. data/lib/retab/workflow_test_run_results/running_workflow_test_run.rb +1 -1
  27. data/lib/retab/workflow_test_run_results/workflow_test_result.rb +18 -27
  28. data/rbi/retab/block_exec_file_handle_input.rbi +30 -0
  29. data/rbi/retab/block_exec_file_ref.rbi +36 -0
  30. data/rbi/retab/block_exec_json_handle_input.rbi +30 -0
  31. data/rbi/retab/cancelled_block_execution_lifecycle.rbi +30 -0
  32. data/rbi/retab/pending_block_execution_lifecycle.rbi +24 -0
  33. data/rbi/retab/queued_block_execution_lifecycle.rbi +24 -0
  34. data/rbi/retab/running_block_execution_lifecycle.rbi +24 -0
  35. data/rbi/retab/stored_block_execution.rbi +48 -6
  36. data/rbi/retab/workflow_test_result.rbi +26 -26
  37. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d9fd0fbbfdf5fc2c58b483cc5d2fd0981d97d5f41f68d77f1c333944a2fc6dd
4
- data.tar.gz: b6984aca8ca57f563be3d839707c5846dcac45bbdfc03cf9888173a69df88383
3
+ metadata.gz: 0d50f014e5ec16d2e08abc96e80ba4c0765860ca7f55240dc7ada7eefc712a99
4
+ data.tar.gz: 67f1cb50dd4645965370155d9b5ddf3fa1e3310f2ada638c1a46ac1b02f6c5ef
5
5
  SHA512:
6
- metadata.gz: 9ac7596123c9d5073186740e0bb2e542f50d88c538cc478691fb28882f6d87a98477fd533eaf2c26b133c5efc18f9eeae536b844316d3a7aef30618dcfb22dec
7
- data.tar.gz: 40dae270f0ea4862db0bddd44fe79fc9f737c99c64d72f206e6ba9c85eabc067573a49f68f46b8dcbf727a3ef37c8b7fce27da802c74841848d9e7b5f4ab8ac9
6
+ metadata.gz: d4739b06f5ff47cc2f1042b943a82a8ec376188c83e1b745be1c55deb6bbd687b231abfd1be81010ef8b1fc714bb96c9648a10b6a65e62f491c5e55b2656ea17
7
+ data.tar.gz: b5ac3b608829b0ea8c057d28f79ab03e1b352ca86d85282c192bbc719160e635af2d04573b6cc7e170bf25cfa36d73c30ffdf65750e9e71dfbd2efd292f7eb5d
@@ -3,26 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class FileRef < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- id: :id,
10
- filename: :filename,
11
- mime_type: :mime_type
12
- }.freeze
13
-
14
- attr_accessor(
15
- :id,
16
- :filename,
17
- :mime_type
18
- )
19
-
20
- def initialize(json)
21
- super()
22
- hash = self.class.normalize(json)
23
- @id = hash[:id]
24
- @filename = hash[:filename]
25
- @mime_type = hash[:mime_type]
26
- end
27
- end
6
+ FileRef = BlockExecFileRef
28
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingWorkflowExperimentResult = PendingRun
6
+ PendingWorkflowExperimentResult = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- QueuedWorkflowExperimentResult = QueuedStepLifecycle
6
+ QueuedWorkflowExperimentResult = QueuedBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningWorkflowExperimentResult = RunningRun
6
+ RunningWorkflowExperimentResult = RunningBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingWorkflowExperimentRun = PendingRun
6
+ PendingWorkflowExperimentRun = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- QueuedWorkflowExperimentRun = QueuedStepLifecycle
6
+ QueuedWorkflowExperimentRun = QueuedBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningWorkflowExperimentRun = RunningRun
6
+ RunningWorkflowExperimentRun = RunningBlockExecutionLifecycle
7
7
  end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class BlockExecFileHandleInput < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ document: :document,
10
+ type: :type
11
+ }.freeze
12
+
13
+ attr_accessor(
14
+ :document,
15
+ :type
16
+ )
17
+
18
+ def initialize(json)
19
+ super()
20
+ hash = self.class.normalize(json)
21
+ @document = hash[:document] ? Retab::BlockExecFileRef.new(hash[:document]) : nil
22
+ @type = hash[:type].nil? ? "file" : hash[:type]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class BlockExecFileRef < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ id: :id,
10
+ filename: :filename,
11
+ mime_type: :mime_type
12
+ }.freeze
13
+
14
+ attr_accessor(
15
+ :id,
16
+ :filename,
17
+ :mime_type
18
+ )
19
+
20
+ def initialize(json)
21
+ super()
22
+ hash = self.class.normalize(json)
23
+ @id = hash[:id]
24
+ @filename = hash[:filename]
25
+ @mime_type = hash[:mime_type]
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class BlockExecJsonHandleInput < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ data: :data,
10
+ type: :type
11
+ }.freeze
12
+
13
+ attr_accessor(
14
+ :data,
15
+ :type
16
+ )
17
+
18
+ def initialize(json)
19
+ super()
20
+ hash = self.class.normalize(json)
21
+ @data = hash[:data]
22
+ @type = hash[:type].nil? ? "json" : hash[:type]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class CancelledBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status,
10
+ reason: :reason
11
+ }.freeze
12
+
13
+ attr_accessor(
14
+ :status,
15
+ :reason
16
+ )
17
+
18
+ def initialize(json)
19
+ super()
20
+ hash = self.class.normalize(json)
21
+ @status = hash[:status].nil? ? "cancelled" : hash[:status]
22
+ @reason = hash[:reason]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class PendingBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status
10
+ }.freeze
11
+
12
+ attr_accessor :status
13
+
14
+ def initialize(json)
15
+ super()
16
+ hash = self.class.normalize(json)
17
+ @status = hash[:status].nil? ? "pending" : hash[:status]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class QueuedBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status
10
+ }.freeze
11
+
12
+ attr_accessor :status
13
+
14
+ def initialize(json)
15
+ super()
16
+ hash = self.class.normalize(json)
17
+ @status = hash[:status].nil? ? "queued" : hash[:status]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class RunningBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status
10
+ }.freeze
11
+
12
+ attr_accessor :status
13
+
14
+ def initialize(json)
15
+ super()
16
+ hash = self.class.normalize(json)
17
+ @status = hash[:status].nil? ? "running" : hash[:status]
18
+ end
19
+ end
20
+ end
@@ -8,6 +8,7 @@ module Retab
8
8
  HASH_ATTRS = {
9
9
  id: :id,
10
10
  workflow_id: :workflow_id,
11
+ workflow_version_id: :workflow_version_id,
11
12
  source_run_id: :source_run_id,
12
13
  block_id: :block_id,
13
14
  block_type: :block_type,
@@ -18,6 +19,12 @@ module Retab
18
19
  routing_decisions: :routing_decisions,
19
20
  duration_ms: :duration_ms,
20
21
  created_at: :created_at,
22
+ started_at: :started_at,
23
+ completed_at: :completed_at,
24
+ handle_inputs_fingerprint: :handle_inputs_fingerprint,
25
+ workflow_draft_fingerprint: :workflow_draft_fingerprint,
26
+ block_config_fingerprint: :block_config_fingerprint,
27
+ execution_fingerprint: :execution_fingerprint,
21
28
  block_config: :block_config,
22
29
  source_step_id: :source_step_id,
23
30
  available_iterations: :available_iterations
@@ -26,6 +33,7 @@ module Retab
26
33
  attr_accessor(
27
34
  :id,
28
35
  :workflow_id,
36
+ :workflow_version_id,
29
37
  :source_run_id,
30
38
  :block_id,
31
39
  :block_type,
@@ -36,6 +44,12 @@ module Retab
36
44
  :routing_decisions,
37
45
  :duration_ms,
38
46
  :created_at,
47
+ :started_at,
48
+ :completed_at,
49
+ :handle_inputs_fingerprint,
50
+ :workflow_draft_fingerprint,
51
+ :block_config_fingerprint,
52
+ :execution_fingerprint,
39
53
  :block_config,
40
54
  :source_step_id,
41
55
  :available_iterations
@@ -46,15 +60,24 @@ module Retab
46
60
  hash = self.class.normalize(json)
47
61
  @id = hash[:id]
48
62
  @workflow_id = hash[:workflow_id]
63
+ @workflow_version_id = hash[:workflow_version_id]
49
64
  @source_run_id = hash[:source_run_id]
50
65
  @block_id = hash[:block_id]
51
66
  @block_type = hash[:block_type]
52
67
  @lifecycle = hash[:lifecycle] ? (
53
68
  case hash[:lifecycle][:status]
69
+ when "cancelled"
70
+ Retab::CancelledBlockExecutionLifecycle.new(hash[:lifecycle])
54
71
  when "completed"
55
72
  Retab::CompletedBlockExecutionLifecycle.new(hash[:lifecycle])
56
73
  when "error"
57
74
  Retab::ErrorBlockExecutionLifecycle.new(hash[:lifecycle])
75
+ when "pending"
76
+ Retab::PendingBlockExecutionLifecycle.new(hash[:lifecycle])
77
+ when "queued"
78
+ Retab::QueuedBlockExecutionLifecycle.new(hash[:lifecycle])
79
+ when "running"
80
+ Retab::RunningBlockExecutionLifecycle.new(hash[:lifecycle])
58
81
  when "skipped"
59
82
  Retab::SkippedBlockExecutionLifecycle.new(hash[:lifecycle])
60
83
  else
@@ -67,6 +90,12 @@ module Retab
67
90
  @routing_decisions = (hash[:routing_decisions] || [])
68
91
  @duration_ms = hash[:duration_ms]
69
92
  @created_at = hash[:created_at]
93
+ @started_at = hash[:started_at]
94
+ @completed_at = hash[:completed_at]
95
+ @handle_inputs_fingerprint = hash[:handle_inputs_fingerprint]
96
+ @workflow_draft_fingerprint = hash[:workflow_draft_fingerprint]
97
+ @block_config_fingerprint = hash[:block_config_fingerprint]
98
+ @execution_fingerprint = hash[:execution_fingerprint]
70
99
  @block_config = hash[:block_config] || {}
71
100
  @source_step_id = hash[:source_step_id]
72
101
  @available_iterations = (hash[:available_iterations] || []).map { |item| item || {} }
@@ -3,23 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class FileHandleInput < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- type: :type,
10
- document: :document
11
- }.freeze
12
-
13
- attr_accessor(
14
- :type,
15
- :document
16
- )
17
-
18
- def initialize(json)
19
- super()
20
- hash = self.class.normalize(json)
21
- @type = hash[:type].nil? ? "file" : hash[:type]
22
- @document = hash[:document] ? Retab::FileRef.new(hash[:document]) : nil
23
- end
24
- end
6
+ FileHandleInput = BlockExecFileHandleInput
25
7
  end
@@ -3,23 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class JsonHandleInput < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- type: :type,
10
- data: :data
11
- }.freeze
12
-
13
- attr_accessor(
14
- :type,
15
- :data
16
- )
17
-
18
- def initialize(json)
19
- super()
20
- hash = self.class.normalize(json)
21
- @type = hash[:type].nil? ? "json" : hash[:type]
22
- @data = hash[:data]
23
- end
24
- end
6
+ JsonHandleInput = BlockExecJsonHandleInput
25
7
  end
@@ -3,18 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class PendingRun < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- status: :status
10
- }.freeze
11
-
12
- attr_accessor :status
13
-
14
- def initialize(json)
15
- super()
16
- hash = self.class.normalize(json)
17
- @status = hash[:status].nil? ? "pending" : hash[:status]
18
- end
19
- end
6
+ PendingRun = PendingBlockExecutionLifecycle
20
7
  end
@@ -3,18 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class RunningRun < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- status: :status
10
- }.freeze
11
-
12
- attr_accessor :status
13
-
14
- def initialize(json)
15
- super()
16
- hash = self.class.normalize(json)
17
- @status = hash[:status].nil? ? "running" : hash[:status]
18
- end
19
- end
6
+ RunningRun = RunningBlockExecutionLifecycle
20
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingStepLifecycle = PendingRun
6
+ PendingStepLifecycle = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,18 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class QueuedStepLifecycle < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- status: :status
10
- }.freeze
11
-
12
- attr_accessor :status
13
-
14
- def initialize(json)
15
- super()
16
- hash = self.class.normalize(json)
17
- @status = hash[:status].nil? ? "queued" : hash[:status]
18
- end
19
- end
6
+ QueuedStepLifecycle = QueuedBlockExecutionLifecycle
20
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningStepLifecycle = RunningRun
6
+ RunningStepLifecycle = RunningBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingWorkflowTestRun = PendingRun
6
+ PendingWorkflowTestRun = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- QueuedWorkflowTestRun = QueuedStepLifecycle
6
+ QueuedWorkflowTestRun = QueuedBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningWorkflowTestRun = RunningRun
6
+ RunningWorkflowTestRun = RunningBlockExecutionLifecycle
7
7
  end
@@ -7,46 +7,46 @@ module Retab
7
7
 
8
8
  HASH_ATTRS = {
9
9
  id: :id,
10
- run_id: :run_id,
10
+ workflow_test_run_id: :workflow_test_run_id,
11
11
  test_id: :test_id,
12
12
  lifecycle: :lifecycle,
13
13
  timing: :timing,
14
14
  verdict: :verdict,
15
15
  workflow_id: :workflow_id,
16
- target: :target,
16
+ block_id: :block_id,
17
+ block_type: :block_type,
17
18
  execution_fingerprint: :execution_fingerprint,
18
19
  handle_inputs_fingerprint: :handle_inputs_fingerprint,
19
20
  workflow_draft_fingerprint: :workflow_draft_fingerprint,
20
21
  block_config_fingerprint: :block_config_fingerprint,
21
- source: :source,
22
- outputs: :outputs,
22
+ artifact: :artifact,
23
+ handle_inputs: :handle_inputs,
24
+ handle_outputs: :handle_outputs,
23
25
  routing_decisions: :routing_decisions,
24
26
  warnings: :warnings,
25
- error: :error,
26
- skipped: :skipped,
27
27
  assertion_result: :assertion_result,
28
28
  verdict_summary: :verdict_summary
29
29
  }.freeze
30
30
 
31
31
  attr_accessor(
32
32
  :id,
33
- :run_id,
33
+ :workflow_test_run_id,
34
34
  :test_id,
35
35
  :lifecycle,
36
36
  :timing,
37
37
  :verdict,
38
38
  :workflow_id,
39
- :target,
39
+ :block_id,
40
+ :block_type,
40
41
  :execution_fingerprint,
41
42
  :handle_inputs_fingerprint,
42
43
  :workflow_draft_fingerprint,
43
44
  :block_config_fingerprint,
44
- :source,
45
- :outputs,
45
+ :artifact,
46
+ :handle_inputs,
47
+ :handle_outputs,
46
48
  :routing_decisions,
47
49
  :warnings,
48
- :error,
49
- :skipped,
50
50
  :assertion_result,
51
51
  :verdict_summary
52
52
  )
@@ -55,7 +55,7 @@ module Retab
55
55
  super()
56
56
  hash = self.class.normalize(json)
57
57
  @id = hash[:id]
58
- @run_id = hash[:run_id]
58
+ @workflow_test_run_id = hash[:workflow_test_run_id]
59
59
  @test_id = hash[:test_id]
60
60
  @lifecycle = hash[:lifecycle] ? (
61
61
  case hash[:lifecycle][:status]
@@ -78,26 +78,17 @@ module Retab
78
78
  @timing = hash[:timing] ? Retab::WorkflowTestRunTiming.new(hash[:timing]) : nil
79
79
  @verdict = hash[:verdict]
80
80
  @workflow_id = hash[:workflow_id]
81
- @target = hash[:target] ? Retab::WorkflowTestBlockTarget.new(hash[:target]) : nil
81
+ @block_id = hash[:block_id]
82
+ @block_type = hash[:block_type]
82
83
  @execution_fingerprint = hash[:execution_fingerprint]
83
84
  @handle_inputs_fingerprint = hash[:handle_inputs_fingerprint]
84
85
  @workflow_draft_fingerprint = hash[:workflow_draft_fingerprint]
85
86
  @block_config_fingerprint = hash[:block_config_fingerprint]
86
- @source = hash[:source] ? (
87
- case hash[:source][:type]
88
- when "manual"
89
- Retab::ManualWorkflowTestSource.new(hash[:source])
90
- when "run_step"
91
- Retab::RunStepWorkflowTestSource.new(hash[:source])
92
- else
93
- hash[:source]
94
- end
95
- ) : nil
96
- @outputs = hash[:outputs] || {}
87
+ @artifact = hash[:artifact] ? Retab::StepArtifactRef.new(hash[:artifact]) : nil
88
+ @handle_inputs = hash[:handle_inputs] || {}
89
+ @handle_outputs = hash[:handle_outputs] || {}
97
90
  @routing_decisions = (hash[:routing_decisions] || [])
98
91
  @warnings = (hash[:warnings] || [])
99
- @error = hash[:error] ? Retab::ErrorDetails.new(hash[:error]) : nil
100
- @skipped = hash[:skipped].nil? ? false : hash[:skipped]
101
92
  @assertion_result = hash[:assertion_result] ? Retab::AssertionResult.new(hash[:assertion_result]) : nil
102
93
  @verdict_summary = hash[:verdict_summary] ? Retab::VerdictSummary.new(hash[:verdict_summary]) : nil
103
94
  end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class BlockExecFileHandleInput
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(Retab::BlockExecFileRef) }
13
+ def document; end
14
+
15
+ sig { params(value: Retab::BlockExecFileRef).returns(Retab::BlockExecFileRef) }
16
+ def document=(value); end
17
+
18
+ sig { returns(T.nilable(String)) }
19
+ def type; end
20
+
21
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
22
+ def type=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class BlockExecFileRef
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(String) }
13
+ def id; end
14
+
15
+ sig { params(value: String).returns(String) }
16
+ def id=(value); end
17
+
18
+ sig { returns(String) }
19
+ def filename; end
20
+
21
+ sig { params(value: String).returns(String) }
22
+ def filename=(value); end
23
+
24
+ sig { returns(String) }
25
+ def mime_type; end
26
+
27
+ sig { params(value: String).returns(String) }
28
+ def mime_type=(value); end
29
+
30
+ sig { returns(T::Hash[Symbol, T.untyped]) }
31
+ def to_h; end
32
+
33
+ sig { params(args: T.untyped).returns(String) }
34
+ def to_json(*args); end
35
+ end
36
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class BlockExecJsonHandleInput
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(T.untyped)) }
13
+ def data; end
14
+
15
+ sig { params(value: T.nilable(T.untyped)).returns(T.nilable(T.untyped)) }
16
+ def data=(value); end
17
+
18
+ sig { returns(T.nilable(String)) }
19
+ def type; end
20
+
21
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
22
+ def type=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class CancelledBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T.nilable(T.untyped)) }
19
+ def reason; end
20
+
21
+ sig { params(value: T.nilable(T.untyped)).returns(T.nilable(T.untyped)) }
22
+ def reason=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class PendingBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class QueuedBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class RunningBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -21,6 +21,12 @@ module Retab
21
21
  sig { params(value: String).returns(String) }
22
22
  def workflow_id=(value); end
23
23
 
24
+ sig { returns(T.nilable(String)) }
25
+ def workflow_version_id; end
26
+
27
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
28
+ def workflow_version_id=(value); end
29
+
24
30
  sig { returns(String) }
25
31
  def source_run_id; end
26
32
 
@@ -39,16 +45,16 @@ module Retab
39
45
  sig { params(value: String).returns(String) }
40
46
  def block_type=(value); end
41
47
 
42
- sig { returns(T.any(Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
48
+ sig { returns(T.any(Retab::PendingBlockExecutionLifecycle, Retab::QueuedBlockExecutionLifecycle, Retab::RunningBlockExecutionLifecycle, Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::CancelledBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
43
49
  def lifecycle; end
44
50
 
45
- sig { params(value: T.any(Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)).returns(T.any(Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
51
+ sig { params(value: T.any(Retab::PendingBlockExecutionLifecycle, Retab::QueuedBlockExecutionLifecycle, Retab::RunningBlockExecutionLifecycle, Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::CancelledBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)).returns(T.any(Retab::PendingBlockExecutionLifecycle, Retab::QueuedBlockExecutionLifecycle, Retab::RunningBlockExecutionLifecycle, Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::CancelledBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
46
52
  def lifecycle=(value); end
47
53
 
48
- sig { returns(T.nilable(T::Hash[String, T.untyped])) }
54
+ sig { returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
49
55
  def handle_inputs; end
50
56
 
51
- sig { params(value: T.nilable(T::Hash[String, T.untyped])).returns(T.nilable(T::Hash[String, T.untyped])) }
57
+ sig { params(value: T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))).returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
52
58
  def handle_inputs=(value); end
53
59
 
54
60
  sig { returns(T.nilable(Retab::StepArtifactRef)) }
@@ -57,10 +63,10 @@ module Retab
57
63
  sig { params(value: T.nilable(Retab::StepArtifactRef)).returns(T.nilable(Retab::StepArtifactRef)) }
58
64
  def artifact=(value); end
59
65
 
60
- sig { returns(T.nilable(T::Hash[String, T.untyped])) }
66
+ sig { returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
61
67
  def handle_outputs; end
62
68
 
63
- sig { params(value: T.nilable(T::Hash[String, T.untyped])).returns(T.nilable(T::Hash[String, T.untyped])) }
69
+ sig { params(value: T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))).returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
64
70
  def handle_outputs=(value); end
65
71
 
66
72
  sig { returns(T.nilable(T::Array[String])) }
@@ -81,6 +87,42 @@ module Retab
81
87
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
82
88
  def created_at=(value); end
83
89
 
90
+ sig { returns(T.nilable(String)) }
91
+ def started_at; end
92
+
93
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
94
+ def started_at=(value); end
95
+
96
+ sig { returns(T.nilable(String)) }
97
+ def completed_at; end
98
+
99
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
100
+ def completed_at=(value); end
101
+
102
+ sig { returns(T.nilable(String)) }
103
+ def handle_inputs_fingerprint; end
104
+
105
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
106
+ def handle_inputs_fingerprint=(value); end
107
+
108
+ sig { returns(T.nilable(String)) }
109
+ def workflow_draft_fingerprint; end
110
+
111
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
112
+ def workflow_draft_fingerprint=(value); end
113
+
114
+ sig { returns(T.nilable(String)) }
115
+ def block_config_fingerprint; end
116
+
117
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
118
+ def block_config_fingerprint=(value); end
119
+
120
+ sig { returns(T.nilable(String)) }
121
+ def execution_fingerprint; end
122
+
123
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
124
+ def execution_fingerprint=(value); end
125
+
84
126
  sig { returns(T.nilable(T::Hash[String, T.untyped])) }
85
127
  def block_config; end
86
128
 
@@ -16,10 +16,10 @@ module Retab
16
16
  def id=(value); end
17
17
 
18
18
  sig { returns(T.nilable(String)) }
19
- def run_id; end
19
+ def workflow_test_run_id; end
20
20
 
21
21
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
22
- def run_id=(value); end
22
+ def workflow_test_run_id=(value); end
23
23
 
24
24
  sig { returns(String) }
25
25
  def test_id; end
@@ -51,11 +51,17 @@ module Retab
51
51
  sig { params(value: String).returns(String) }
52
52
  def workflow_id=(value); end
53
53
 
54
- sig { returns(Retab::WorkflowTestBlockTarget) }
55
- def target; end
54
+ sig { returns(String) }
55
+ def block_id; end
56
+
57
+ sig { params(value: String).returns(String) }
58
+ def block_id=(value); end
56
59
 
57
- sig { params(value: Retab::WorkflowTestBlockTarget).returns(Retab::WorkflowTestBlockTarget) }
58
- def target=(value); end
60
+ sig { returns(String) }
61
+ def block_type; end
62
+
63
+ sig { params(value: String).returns(String) }
64
+ def block_type=(value); end
59
65
 
60
66
  sig { returns(T.nilable(String)) }
61
67
  def execution_fingerprint; end
@@ -81,17 +87,23 @@ module Retab
81
87
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
82
88
  def block_config_fingerprint=(value); end
83
89
 
84
- sig { returns(T.any(Retab::ManualWorkflowTestSource, Retab::RunStepWorkflowTestSource)) }
85
- def source; end
90
+ sig { returns(T.nilable(Retab::StepArtifactRef)) }
91
+ def artifact; end
86
92
 
87
- sig { params(value: T.any(Retab::ManualWorkflowTestSource, Retab::RunStepWorkflowTestSource)).returns(T.any(Retab::ManualWorkflowTestSource, Retab::RunStepWorkflowTestSource)) }
88
- def source=(value); end
93
+ sig { params(value: T.nilable(Retab::StepArtifactRef)).returns(T.nilable(Retab::StepArtifactRef)) }
94
+ def artifact=(value); end
89
95
 
90
- sig { returns(T.nilable(T::Hash[String, T.untyped])) }
91
- def outputs; end
96
+ sig { returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
97
+ def handle_inputs; end
92
98
 
93
- sig { params(value: T.nilable(T::Hash[String, T.untyped])).returns(T.nilable(T::Hash[String, T.untyped])) }
94
- def outputs=(value); end
99
+ sig { params(value: T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])).returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
100
+ def handle_inputs=(value); end
101
+
102
+ sig { returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
103
+ def handle_outputs; end
104
+
105
+ sig { params(value: T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])).returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
106
+ def handle_outputs=(value); end
95
107
 
96
108
  sig { returns(T.nilable(T::Array[String])) }
97
109
  def routing_decisions; end
@@ -105,18 +117,6 @@ module Retab
105
117
  sig { params(value: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
106
118
  def warnings=(value); end
107
119
 
108
- sig { returns(T.nilable(Retab::ErrorDetails)) }
109
- def error; end
110
-
111
- sig { params(value: T.nilable(Retab::ErrorDetails)).returns(T.nilable(Retab::ErrorDetails)) }
112
- def error=(value); end
113
-
114
- sig { returns(T.nilable(T::Boolean)) }
115
- def skipped; end
116
-
117
- sig { params(value: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
118
- def skipped=(value); end
119
-
120
120
  sig { returns(T.nilable(Retab::AssertionResult)) }
121
121
  def assertion_result; end
122
122
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Retab
@@ -323,9 +323,16 @@ files:
323
323
  - lib/retab/workflow_artifacts/while_loop_termination.rb
324
324
  - lib/retab/workflow_artifacts/workflow_artifact.rb
325
325
  - lib/retab/workflow_block_executions.rb
326
+ - lib/retab/workflow_block_executions/block_exec_file_handle_input.rb
327
+ - lib/retab/workflow_block_executions/block_exec_file_ref.rb
328
+ - lib/retab/workflow_block_executions/block_exec_json_handle_input.rb
329
+ - lib/retab/workflow_block_executions/cancelled_block_execution_lifecycle.rb
326
330
  - lib/retab/workflow_block_executions/completed_block_execution_lifecycle.rb
327
331
  - lib/retab/workflow_block_executions/create_block_execution_request.rb
328
332
  - lib/retab/workflow_block_executions/error_block_execution_lifecycle.rb
333
+ - lib/retab/workflow_block_executions/pending_block_execution_lifecycle.rb
334
+ - lib/retab/workflow_block_executions/queued_block_execution_lifecycle.rb
335
+ - lib/retab/workflow_block_executions/running_block_execution_lifecycle.rb
329
336
  - lib/retab/workflow_block_executions/skipped_block_execution_lifecycle.rb
330
337
  - lib/retab/workflow_block_executions/step_artifact_ref.rb
331
338
  - lib/retab/workflow_block_executions/stored_block_execution.rb
@@ -497,12 +504,16 @@ files:
497
504
  - rbi/retab/awaiting_review_step_lifecycle.rbi
498
505
  - rbi/retab/b_box.rbi
499
506
  - rbi/retab/between_condition.rbi
507
+ - rbi/retab/block_exec_file_handle_input.rbi
508
+ - rbi/retab/block_exec_file_ref.rbi
509
+ - rbi/retab/block_exec_json_handle_input.rbi
500
510
  - rbi/retab/block_test_batch_execution_counts.rbi
501
511
  - rbi/retab/block_test_lifecycle_counts.rbi
502
512
  - rbi/retab/block_test_outcome_counts.rbi
503
513
  - rbi/retab/cancel_workflow_experiment_run_response.rbi
504
514
  - rbi/retab/cancel_workflow_request.rbi
505
515
  - rbi/retab/cancel_workflow_response.rbi
516
+ - rbi/retab/cancelled_block_execution_lifecycle.rbi
506
517
  - rbi/retab/cancelled_step_lifecycle.rbi
507
518
  - rbi/retab/cancelled_terminal.rbi
508
519
  - rbi/retab/cancelled_workflow_experiment_result.rbi
@@ -640,6 +651,7 @@ files:
640
651
  - rbi/retab/partition_request.rbi
641
652
  - rbi/retab/partition_workflow_artifact.rbi
642
653
  - rbi/retab/partitions.rbi
654
+ - rbi/retab/pending_block_execution_lifecycle.rbi
643
655
  - rbi/retab/pending_run.rbi
644
656
  - rbi/retab/pending_step_lifecycle.rbi
645
657
  - rbi/retab/pending_workflow_experiment_result.rbi
@@ -649,6 +661,7 @@ files:
649
661
  - rbi/retab/public_handle_payload.rbi
650
662
  - rbi/retab/publish_workflow_request.rbi
651
663
  - rbi/retab/query_workflow_table_request.rbi
664
+ - rbi/retab/queued_block_execution_lifecycle.rbi
652
665
  - rbi/retab/queued_step_lifecycle.rbi
653
666
  - rbi/retab/queued_workflow_experiment_result.rbi
654
667
  - rbi/retab/queued_workflow_experiment_run.rbi
@@ -677,6 +690,7 @@ files:
677
690
  - rbi/retab/run_inputs.rbi
678
691
  - rbi/retab/run_step_workflow_test_source.rbi
679
692
  - rbi/retab/run_timing.rbi
693
+ - rbi/retab/running_block_execution_lifecycle.rbi
680
694
  - rbi/retab/running_run.rbi
681
695
  - rbi/retab/running_step_lifecycle.rbi
682
696
  - rbi/retab/running_workflow_experiment_result.rbi