zyphr 0.1.17 → 0.1.19
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/README.md +12 -0
- data/docs/ExecutionCancelResponse.md +20 -0
- data/docs/ExecutionCancelResponseData.md +20 -0
- data/docs/ExecutionResponse.md +20 -0
- data/docs/ExecutionRetryResponse.md +20 -0
- data/docs/ExecutionRetryResponseData.md +22 -0
- data/docs/ExecutionsApi.md +223 -0
- data/docs/WorkflowExecution.md +46 -0
- data/docs/WorkflowExecutionStatus.md +15 -0
- data/docs/WorkflowStepExecution.md +40 -0
- data/docs/WorkflowStepExecutionStatus.md +15 -0
- data/lib/zyphr/api/executions_api.rb +211 -0
- data/lib/zyphr/models/execution_cancel_response.rb +229 -0
- data/lib/zyphr/models/execution_cancel_response_data.rb +263 -0
- data/lib/zyphr/models/execution_response.rb +229 -0
- data/lib/zyphr/models/execution_retry_response.rb +229 -0
- data/lib/zyphr/models/execution_retry_response_data.rb +315 -0
- data/lib/zyphr/models/workflow_execution.rb +497 -0
- data/lib/zyphr/models/workflow_execution_status.rb +43 -0
- data/lib/zyphr/models/workflow_step_execution.rb +445 -0
- data/lib/zyphr/models/workflow_step_execution_status.rb +44 -0
- data/lib/zyphr.rb +10 -0
- data/spec/api/executions_api_spec.rb +71 -0
- data/spec/models/execution_cancel_response_data_spec.rb +46 -0
- data/spec/models/execution_cancel_response_spec.rb +42 -0
- data/spec/models/execution_response_spec.rb +42 -0
- data/spec/models/execution_retry_response_data_spec.rb +52 -0
- data/spec/models/execution_retry_response_spec.rb +42 -0
- data/spec/models/workflow_execution_spec.rb +120 -0
- data/spec/models/workflow_execution_status_spec.rb +30 -0
- data/spec/models/workflow_step_execution_spec.rb +106 -0
- data/spec/models/workflow_step_execution_status_spec.rb +30 -0
- data/zyphr.gemspec +1 -1
- metadata +42 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7fdd3e435ef1d46a572b992085fb931fbcbcdd7bbbb5e7b18acd98a46026b2c3
|
|
4
|
+
data.tar.gz: 9fa61d3546fd88327740d55a0f043579ab2b14e381d5292c5ed9d380ff60c45b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75f321d8cf7847769c4c9f1a7f15936c2b55063046bc7be4c022a5cfd7493f89aedcab7d1e215a13c65d3cbf6f2026d98291b27a63b0cc482692d1811d85b748
|
|
7
|
+
data.tar.gz: b44f62bc08856f0a35e4978c932b1a12b4a712e53a375126ab2c40c53a81256574181a6bc5fe64114ab3afdade27b3339904e9e613b6b9050327c11eac96d055
|
data/README.md
CHANGED
|
@@ -186,6 +186,9 @@ Class | Method | HTTP request | Description
|
|
|
186
186
|
*Zyphr::EmailsApi* | [**list_emails**](docs/EmailsApi.md#list_emails) | **GET** /emails | List emails
|
|
187
187
|
*Zyphr::EmailsApi* | [**send_batch_email**](docs/EmailsApi.md#send_batch_email) | **POST** /emails/batch | Send batch emails
|
|
188
188
|
*Zyphr::EmailsApi* | [**send_email**](docs/EmailsApi.md#send_email) | **POST** /emails | Send an email
|
|
189
|
+
*Zyphr::ExecutionsApi* | [**cancel_execution**](docs/ExecutionsApi.md#cancel_execution) | **POST** /executions/{id}/cancel | Cancel a running execution
|
|
190
|
+
*Zyphr::ExecutionsApi* | [**get_execution**](docs/ExecutionsApi.md#get_execution) | **GET** /executions/{id} | Get a workflow execution
|
|
191
|
+
*Zyphr::ExecutionsApi* | [**retry_execution**](docs/ExecutionsApi.md#retry_execution) | **POST** /executions/{id}/retry | Retry a failed or cancelled execution
|
|
189
192
|
*Zyphr::InboxApi* | [**archive_inbox_notification**](docs/InboxApi.md#archive_inbox_notification) | **POST** /inbox/{id}/archive | Archive a notification
|
|
190
193
|
*Zyphr::InboxApi* | [**archive_subscriber_notification**](docs/InboxApi.md#archive_subscriber_notification) | **POST** /subscriber-inbox/{id}/archive | Archive a notification
|
|
191
194
|
*Zyphr::InboxApi* | [**delete_inbox_notification**](docs/InboxApi.md#delete_inbox_notification) | **DELETE** /inbox/{id} | Delete a notification
|
|
@@ -380,6 +383,11 @@ Class | Method | HTTP request | Description
|
|
|
380
383
|
- [Zyphr::EmailTrackingResponse](docs/EmailTrackingResponse.md)
|
|
381
384
|
- [Zyphr::EndUserDeleteResponse](docs/EndUserDeleteResponse.md)
|
|
382
385
|
- [Zyphr::EndUserDeleteResponseData](docs/EndUserDeleteResponseData.md)
|
|
386
|
+
- [Zyphr::ExecutionCancelResponse](docs/ExecutionCancelResponse.md)
|
|
387
|
+
- [Zyphr::ExecutionCancelResponseData](docs/ExecutionCancelResponseData.md)
|
|
388
|
+
- [Zyphr::ExecutionResponse](docs/ExecutionResponse.md)
|
|
389
|
+
- [Zyphr::ExecutionRetryResponse](docs/ExecutionRetryResponse.md)
|
|
390
|
+
- [Zyphr::ExecutionRetryResponseData](docs/ExecutionRetryResponseData.md)
|
|
383
391
|
- [Zyphr::ForgotPasswordRequest](docs/ForgotPasswordRequest.md)
|
|
384
392
|
- [Zyphr::GenerateSubscriberToken200Response](docs/GenerateSubscriberToken200Response.md)
|
|
385
393
|
- [Zyphr::GenerateSubscriberToken200ResponseData](docs/GenerateSubscriberToken200ResponseData.md)
|
|
@@ -650,6 +658,10 @@ Class | Method | HTTP request | Description
|
|
|
650
658
|
- [Zyphr::WebhookVersionsResponse](docs/WebhookVersionsResponse.md)
|
|
651
659
|
- [Zyphr::WebhookVersionsResponseData](docs/WebhookVersionsResponseData.md)
|
|
652
660
|
- [Zyphr::WithdrawSubscriberConsentRequest](docs/WithdrawSubscriberConsentRequest.md)
|
|
661
|
+
- [Zyphr::WorkflowExecution](docs/WorkflowExecution.md)
|
|
662
|
+
- [Zyphr::WorkflowExecutionStatus](docs/WorkflowExecutionStatus.md)
|
|
663
|
+
- [Zyphr::WorkflowStepExecution](docs/WorkflowStepExecution.md)
|
|
664
|
+
- [Zyphr::WorkflowStepExecutionStatus](docs/WorkflowStepExecutionStatus.md)
|
|
653
665
|
|
|
654
666
|
|
|
655
667
|
## Documentation for Authorization
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::ExecutionCancelResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**ExecutionCancelResponseData**](ExecutionCancelResponseData.md) | | [optional] |
|
|
8
|
+
| **meta** | [**RequestMeta**](RequestMeta.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::ExecutionCancelResponse.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::ExecutionCancelResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **status** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::ExecutionCancelResponseData.new(
|
|
16
|
+
id: null,
|
|
17
|
+
status: cancelled
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::ExecutionResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**WorkflowExecution**](WorkflowExecution.md) | | [optional] |
|
|
8
|
+
| **meta** | [**RequestMeta**](RequestMeta.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::ExecutionResponse.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zyphr::ExecutionRetryResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**ExecutionRetryResponseData**](ExecutionRetryResponseData.md) | | [optional] |
|
|
8
|
+
| **meta** | [**RequestMeta**](RequestMeta.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zyphr'
|
|
14
|
+
|
|
15
|
+
instance = Zyphr::ExecutionRetryResponse.new(
|
|
16
|
+
data: null,
|
|
17
|
+
meta: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Zyphr::ExecutionRetryResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The new execution created by the retry | |
|
|
8
|
+
| **original_execution_id** | **String** | The execution that was retried | |
|
|
9
|
+
| **status** | **String** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'zyphr'
|
|
15
|
+
|
|
16
|
+
instance = Zyphr::ExecutionRetryResponseData.new(
|
|
17
|
+
id: null,
|
|
18
|
+
original_execution_id: null,
|
|
19
|
+
status: pending
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Zyphr::ExecutionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.zyphr.dev/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**cancel_execution**](ExecutionsApi.md#cancel_execution) | **POST** /executions/{id}/cancel | Cancel a running execution |
|
|
8
|
+
| [**get_execution**](ExecutionsApi.md#get_execution) | **GET** /executions/{id} | Get a workflow execution |
|
|
9
|
+
| [**retry_execution**](ExecutionsApi.md#retry_execution) | **POST** /executions/{id}/retry | Retry a failed or cancelled execution |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## cancel_execution
|
|
13
|
+
|
|
14
|
+
> <ExecutionCancelResponse> cancel_execution(id)
|
|
15
|
+
|
|
16
|
+
Cancel a running execution
|
|
17
|
+
|
|
18
|
+
Cancel a workflow execution that is still pending or running. Already-terminal executions cannot be cancelled.
|
|
19
|
+
|
|
20
|
+
### Examples
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'time'
|
|
24
|
+
require 'zyphr'
|
|
25
|
+
# setup authorization
|
|
26
|
+
Zyphr.configure do |config|
|
|
27
|
+
# Configure API key authorization: ApiKeyAuth
|
|
28
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
30
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = Zyphr::ExecutionsApi.new
|
|
34
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Execution ID
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# Cancel a running execution
|
|
38
|
+
result = api_instance.cancel_execution(id)
|
|
39
|
+
p result
|
|
40
|
+
rescue Zyphr::ApiError => e
|
|
41
|
+
puts "Error when calling ExecutionsApi->cancel_execution: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the cancel_execution_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(<ExecutionCancelResponse>, Integer, Hash)> cancel_execution_with_http_info(id)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# Cancel a running execution
|
|
54
|
+
data, status_code, headers = api_instance.cancel_execution_with_http_info(id)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => <ExecutionCancelResponse>
|
|
58
|
+
rescue Zyphr::ApiError => e
|
|
59
|
+
puts "Error when calling ExecutionsApi->cancel_execution_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **id** | **String** | Execution ID | |
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**ExecutionCancelResponse**](ExecutionCancelResponse.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: Not defined
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## get_execution
|
|
84
|
+
|
|
85
|
+
> <ExecutionResponse> get_execution(id)
|
|
86
|
+
|
|
87
|
+
Get a workflow execution
|
|
88
|
+
|
|
89
|
+
Retrieve a workflow execution by ID, including its step execution details.
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'zyphr'
|
|
96
|
+
# setup authorization
|
|
97
|
+
Zyphr.configure do |config|
|
|
98
|
+
# Configure API key authorization: ApiKeyAuth
|
|
99
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
100
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
101
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
api_instance = Zyphr::ExecutionsApi.new
|
|
105
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Execution ID
|
|
106
|
+
|
|
107
|
+
begin
|
|
108
|
+
# Get a workflow execution
|
|
109
|
+
result = api_instance.get_execution(id)
|
|
110
|
+
p result
|
|
111
|
+
rescue Zyphr::ApiError => e
|
|
112
|
+
puts "Error when calling ExecutionsApi->get_execution: #{e}"
|
|
113
|
+
end
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
#### Using the get_execution_with_http_info variant
|
|
117
|
+
|
|
118
|
+
This returns an Array which contains the response data, status code and headers.
|
|
119
|
+
|
|
120
|
+
> <Array(<ExecutionResponse>, Integer, Hash)> get_execution_with_http_info(id)
|
|
121
|
+
|
|
122
|
+
```ruby
|
|
123
|
+
begin
|
|
124
|
+
# Get a workflow execution
|
|
125
|
+
data, status_code, headers = api_instance.get_execution_with_http_info(id)
|
|
126
|
+
p status_code # => 2xx
|
|
127
|
+
p headers # => { ... }
|
|
128
|
+
p data # => <ExecutionResponse>
|
|
129
|
+
rescue Zyphr::ApiError => e
|
|
130
|
+
puts "Error when calling ExecutionsApi->get_execution_with_http_info: #{e}"
|
|
131
|
+
end
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Parameters
|
|
135
|
+
|
|
136
|
+
| Name | Type | Description | Notes |
|
|
137
|
+
| ---- | ---- | ----------- | ----- |
|
|
138
|
+
| **id** | **String** | Execution ID | |
|
|
139
|
+
|
|
140
|
+
### Return type
|
|
141
|
+
|
|
142
|
+
[**ExecutionResponse**](ExecutionResponse.md)
|
|
143
|
+
|
|
144
|
+
### Authorization
|
|
145
|
+
|
|
146
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
147
|
+
|
|
148
|
+
### HTTP request headers
|
|
149
|
+
|
|
150
|
+
- **Content-Type**: Not defined
|
|
151
|
+
- **Accept**: application/json
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## retry_execution
|
|
155
|
+
|
|
156
|
+
> <ExecutionRetryResponse> retry_execution(id)
|
|
157
|
+
|
|
158
|
+
Retry a failed or cancelled execution
|
|
159
|
+
|
|
160
|
+
Create a new workflow execution that re-runs the same workflow with the original subscriber, payload, and sender. Only `failed` or `cancelled` executions can be retried.
|
|
161
|
+
|
|
162
|
+
### Examples
|
|
163
|
+
|
|
164
|
+
```ruby
|
|
165
|
+
require 'time'
|
|
166
|
+
require 'zyphr'
|
|
167
|
+
# setup authorization
|
|
168
|
+
Zyphr.configure do |config|
|
|
169
|
+
# Configure API key authorization: ApiKeyAuth
|
|
170
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
171
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
172
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
api_instance = Zyphr::ExecutionsApi.new
|
|
176
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | ID of the execution to retry
|
|
177
|
+
|
|
178
|
+
begin
|
|
179
|
+
# Retry a failed or cancelled execution
|
|
180
|
+
result = api_instance.retry_execution(id)
|
|
181
|
+
p result
|
|
182
|
+
rescue Zyphr::ApiError => e
|
|
183
|
+
puts "Error when calling ExecutionsApi->retry_execution: #{e}"
|
|
184
|
+
end
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
#### Using the retry_execution_with_http_info variant
|
|
188
|
+
|
|
189
|
+
This returns an Array which contains the response data, status code and headers.
|
|
190
|
+
|
|
191
|
+
> <Array(<ExecutionRetryResponse>, Integer, Hash)> retry_execution_with_http_info(id)
|
|
192
|
+
|
|
193
|
+
```ruby
|
|
194
|
+
begin
|
|
195
|
+
# Retry a failed or cancelled execution
|
|
196
|
+
data, status_code, headers = api_instance.retry_execution_with_http_info(id)
|
|
197
|
+
p status_code # => 2xx
|
|
198
|
+
p headers # => { ... }
|
|
199
|
+
p data # => <ExecutionRetryResponse>
|
|
200
|
+
rescue Zyphr::ApiError => e
|
|
201
|
+
puts "Error when calling ExecutionsApi->retry_execution_with_http_info: #{e}"
|
|
202
|
+
end
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Parameters
|
|
206
|
+
|
|
207
|
+
| Name | Type | Description | Notes |
|
|
208
|
+
| ---- | ---- | ----------- | ----- |
|
|
209
|
+
| **id** | **String** | ID of the execution to retry | |
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
[**ExecutionRetryResponse**](ExecutionRetryResponse.md)
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
218
|
+
|
|
219
|
+
### HTTP request headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: Not defined
|
|
222
|
+
- **Accept**: application/json
|
|
223
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Zyphr::WorkflowExecution
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **workflow_id** | **String** | | |
|
|
9
|
+
| **account_id** | **String** | | |
|
|
10
|
+
| **project_id** | **String** | | |
|
|
11
|
+
| **subscriber_id** | **String** | | |
|
|
12
|
+
| **topic_key** | **String** | | [optional] |
|
|
13
|
+
| **trigger_payload** | **Hash<String, Object>** | | [optional] |
|
|
14
|
+
| **transaction_id** | **String** | | [optional] |
|
|
15
|
+
| **sender_from** | **String** | | [optional] |
|
|
16
|
+
| **status** | [**WorkflowExecutionStatus**](WorkflowExecutionStatus.md) | | |
|
|
17
|
+
| **current_step_id** | **String** | | [optional] |
|
|
18
|
+
| **step_executions** | [**Array<WorkflowStepExecution>**](WorkflowStepExecution.md) | | [optional] |
|
|
19
|
+
| **started_at** | **Time** | | [optional] |
|
|
20
|
+
| **completed_at** | **Time** | | [optional] |
|
|
21
|
+
| **created_at** | **Time** | | |
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'zyphr'
|
|
27
|
+
|
|
28
|
+
instance = Zyphr::WorkflowExecution.new(
|
|
29
|
+
id: null,
|
|
30
|
+
workflow_id: null,
|
|
31
|
+
account_id: null,
|
|
32
|
+
project_id: null,
|
|
33
|
+
subscriber_id: null,
|
|
34
|
+
topic_key: null,
|
|
35
|
+
trigger_payload: null,
|
|
36
|
+
transaction_id: null,
|
|
37
|
+
sender_from: null,
|
|
38
|
+
status: null,
|
|
39
|
+
current_step_id: null,
|
|
40
|
+
step_executions: null,
|
|
41
|
+
started_at: null,
|
|
42
|
+
completed_at: null,
|
|
43
|
+
created_at: null
|
|
44
|
+
)
|
|
45
|
+
```
|
|
46
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Zyphr::WorkflowStepExecution
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **execution_id** | **String** | | |
|
|
9
|
+
| **step_id** | **String** | | |
|
|
10
|
+
| **status** | [**WorkflowStepExecutionStatus**](WorkflowStepExecutionStatus.md) | | |
|
|
11
|
+
| **result** | **Hash<String, Object>** | | [optional] |
|
|
12
|
+
| **started_at** | **Time** | | [optional] |
|
|
13
|
+
| **completed_at** | **Time** | | [optional] |
|
|
14
|
+
| **error** | **String** | | [optional] |
|
|
15
|
+
| **created_at** | **Time** | | |
|
|
16
|
+
| **step_key** | **String** | Step key from the workflow definition | [optional] |
|
|
17
|
+
| **step_name** | **String** | Human-readable step name | [optional] |
|
|
18
|
+
| **step_type** | **String** | | [optional] |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'zyphr'
|
|
24
|
+
|
|
25
|
+
instance = Zyphr::WorkflowStepExecution.new(
|
|
26
|
+
id: null,
|
|
27
|
+
execution_id: null,
|
|
28
|
+
step_id: null,
|
|
29
|
+
status: null,
|
|
30
|
+
result: null,
|
|
31
|
+
started_at: null,
|
|
32
|
+
completed_at: null,
|
|
33
|
+
error: null,
|
|
34
|
+
created_at: null,
|
|
35
|
+
step_key: null,
|
|
36
|
+
step_name: null,
|
|
37
|
+
step_type: null
|
|
38
|
+
)
|
|
39
|
+
```
|
|
40
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Zyphr::WorkflowStepExecutionStatus
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'zyphr'
|
|
12
|
+
|
|
13
|
+
instance = Zyphr::WorkflowStepExecutionStatus.new()
|
|
14
|
+
```
|
|
15
|
+
|