Skip to content

Commit b2f0804

Browse files
author
Nishu Goel
committed
Add resource for closing reasons in workflow provider
1 parent 1ff710d commit b2f0804

File tree

132 files changed

+2131
-532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+2131
-532
lines changed

.speakeasy/gen.lock

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 5a857039-7f4b-42d5-86fd-449767242ed2
33
management:
4-
docChecksum: cdc191ce1bf61d7565b6f4caa1ea7ff9
4+
docChecksum: 088d1c5acb62ad859574f77a4fa9cfe7
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.330.0
7-
generationVersion: 2.361.10
8-
releaseVersion: 0.11.0
9-
configChecksum: fe1f4f47e217555f3049bc6b86f7300b
6+
speakeasyVersion: 1.346.0
7+
generationVersion: 2.379.3
8+
releaseVersion: 0.12.0
9+
configChecksum: c0d92b66a873af7e8a44f04f3d7ceed7
1010
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-workflow.git
1111
repoSubDirectory: .
1212
published: true
@@ -21,12 +21,13 @@ features:
2121
unions: 2.85.0
2222
terraform:
2323
additionalDependencies: 0.1.0
24-
core: 3.23.3
24+
core: 3.24.3
2525
deprecations: 2.81.1
2626
globalSecurity: 2.81.6
2727
globalServerURLs: 2.82.1
2828
unions: 2.81.15
2929
generatedFiles:
30+
- internal/sdk/closingreason.go
3031
- internal/sdk/workflows.go
3132
- internal/sdk/sdk.go
3233
- internal/sdk/models/errors/sdkerror.go
@@ -46,14 +47,22 @@ generatedFiles:
4647
- internal/sdk/internal/utils/retries.go
4748
- internal/sdk/internal/utils/security.go
4849
- internal/sdk/internal/utils/utils.go
50+
- internal/sdk/models/operations/changereasonstatus.go
51+
- internal/sdk/models/operations/createclosingreason.go
52+
- internal/sdk/models/operations/getallclosingreasons.go
53+
- internal/sdk/models/operations/getclosingreason.go
4954
- internal/sdk/models/operations/createdefinition.go
5055
- internal/sdk/models/operations/deletedefinition.go
5156
- internal/sdk/models/operations/getdefinition.go
5257
- internal/sdk/models/operations/getdefinitions.go
5358
- internal/sdk/models/operations/getmaxallowedlimit.go
54-
- internal/sdk/models/operations/getworkflowclosingreasons.go
55-
- internal/sdk/models/operations/setworkflowclosingreasons.go
5659
- internal/sdk/models/operations/updatedefinition.go
60+
- internal/sdk/models/shared/errorresp.go
61+
- internal/sdk/models/shared/changereasonstatusreq.go
62+
- internal/sdk/models/shared/closingreasonsstatus.go
63+
- internal/sdk/models/shared/closingreason.go
64+
- internal/sdk/models/shared/closingreasons.go
65+
- internal/sdk/models/shared/closingreasonnotfoundresp.go
5766
- internal/sdk/models/shared/workflowdefinition.go
5867
- internal/sdk/models/shared/updateentityattributes.go
5968
- internal/sdk/models/shared/section.go
@@ -66,15 +75,15 @@ generatedFiles:
6675
- internal/sdk/models/shared/dynamicduedate.go
6776
- internal/sdk/models/shared/stepdescription.go
6877
- internal/sdk/models/shared/closingreasonid.go
69-
- internal/sdk/models/shared/errorresp.go
7078
- internal/sdk/models/shared/definitionnotfoundresp.go
7179
- internal/sdk/models/shared/maxallowedlimit.go
72-
- internal/sdk/models/shared/closingreasonsids.go
7380
- internal/sdk/models/shared/security.go
7481
- internal/sdk/.gitignore
82+
- internal/sdk/models/operations/options.go
7583
- internal/sdk/.gitattributes
7684
- internal/sdk/internal/hooks/registration.go
7785
- internal/sdk/internal/hooks/hooks.go
86+
- internal/sdk/CONTRIBUTING.md
7887
- examples/README.md
7988
- go.mod
8089
- go.sum
@@ -134,11 +143,19 @@ generatedFiles:
134143
- USAGE.md
135144
- internal/provider/provider.go
136145
- examples/provider/provider.tf
146+
- examples/resources/epilot-workflow_closing_reason/import.sh
147+
- internal/provider/closingreason_resource.go
148+
- internal/provider/closingreason_resource_sdk.go
149+
- examples/resources/epilot-workflow_closing_reason/resource.tf
137150
- examples/resources/epilot-workflow_workflow_definition/import.sh
138151
- internal/provider/workflowdefinition_resource.go
139152
- internal/provider/workflowdefinition_resource_sdk.go
140153
- examples/resources/epilot-workflow_workflow_definition/resource.tf
154+
- internal/provider/closingreason_data_source.go
155+
- internal/provider/closingreason_data_source_sdk.go
156+
- examples/data-sources/epilot-workflow_closing_reason/data-source.tf
141157
- internal/provider/workflowdefinition_data_source.go
142158
- internal/provider/workflowdefinition_data_source_sdk.go
143159
- examples/data-sources/epilot-workflow_workflow_definition/data-source.tf
144160
- .gitattributes
161+
- CONTRIBUTING.md

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ terraform {
6161
required_providers {
6262
epilot-workflow = {
6363
source = "epilot-dev/epilot-workflow"
64-
version = "0.11.0"
64+
version = "0.12.0"
6565
}
6666
}
6767
}

docs/data-sources/workflow_definition.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ data "epilot-workflow_workflow_definition" "my_workflowdefinition" {
2828
- `creation_time` (String) ISO String Date & Time
2929
- `description` (String)
3030
- `due_date` (String)
31-
- `dynamic_due_date` (String) set a Duedate for a step then a specific. Parsed as JSON.
31+
- `dynamic_due_date` (Attributes) set a Duedate for a step then a specific (see [below for nested schema](#nestedatt--dynamic_due_date))
3232
- `enable_ecp_workflow` (Boolean) Indicates whether this workflow is available for End Customer Portal or not. By default it's not.
3333
- `flow` (Attributes List) (see [below for nested schema](#nestedatt--flow))
3434
- `id` (String) The ID of this resource.
@@ -45,6 +45,17 @@ Read-Only:
4545
- `id` (String)
4646

4747

48+
<a id="nestedatt--dynamic_due_date"></a>
49+
### Nested Schema for `dynamic_due_date`
50+
51+
Read-Only:
52+
53+
- `action_type_condition` (String) must be one of ["WORKFLOW_STARTED", "STEP_CLOSED"]
54+
- `number_of_units` (Number)
55+
- `step_id` (String)
56+
- `time_period` (String) must be one of ["days", "weeks", "months"]
57+
58+
4859
<a id="nestedatt--flow"></a>
4960
### Nested Schema for `flow`
5061

@@ -73,7 +84,7 @@ Read-Only:
7384
- `automation_config` (Attributes) (see [below for nested schema](#nestedatt--flow--section--steps--automation_config))
7485
- `description` (Attributes) Longer information regarding Task (see [below for nested schema](#nestedatt--flow--section--steps--description))
7586
- `due_date` (String)
76-
- `dynamic_due_date` (String) set a Duedate for a step then a specific. Parsed as JSON.
87+
- `dynamic_due_date` (Attributes) set a Duedate for a step then a specific (see [below for nested schema](#nestedatt--flow--section--steps--dynamic_due_date))
7788
- `ecp` (Attributes) Details regarding ECP for the workflow step (see [below for nested schema](#nestedatt--flow--section--steps--ecp))
7889
- `execution_type` (String) must be one of ["MANUAL", "AUTOMATION"]
7990
- `id` (String)
@@ -102,6 +113,17 @@ Read-Only:
102113
- `value` (String)
103114

104115

116+
<a id="nestedatt--flow--section--steps--dynamic_due_date"></a>
117+
### Nested Schema for `flow.section.steps.user_ids`
118+
119+
Read-Only:
120+
121+
- `action_type_condition` (String) must be one of ["WORKFLOW_STARTED", "STEP_CLOSED"]
122+
- `number_of_units` (Number)
123+
- `step_id` (String)
124+
- `time_period` (String) must be one of ["days", "weeks", "months"]
125+
126+
105127
<a id="nestedatt--flow--section--steps--ecp"></a>
106128
### Nested Schema for `flow.section.steps.user_ids`
107129

@@ -175,7 +197,7 @@ Read-Only:
175197
- `automation_config` (Attributes) (see [below for nested schema](#nestedatt--flow--step--automation_config))
176198
- `description` (Attributes) Longer information regarding Task (see [below for nested schema](#nestedatt--flow--step--description))
177199
- `due_date` (String)
178-
- `dynamic_due_date` (String) set a Duedate for a step then a specific. Parsed as JSON.
200+
- `dynamic_due_date` (Attributes) set a Duedate for a step then a specific (see [below for nested schema](#nestedatt--flow--step--dynamic_due_date))
179201
- `ecp` (Attributes) Details regarding ECP for the workflow step (see [below for nested schema](#nestedatt--flow--step--ecp))
180202
- `execution_type` (String) must be one of ["MANUAL", "AUTOMATION"]
181203
- `id` (String)
@@ -204,6 +226,17 @@ Read-Only:
204226
- `value` (String)
205227

206228

229+
<a id="nestedatt--flow--step--dynamic_due_date"></a>
230+
### Nested Schema for `flow.step.dynamic_due_date`
231+
232+
Read-Only:
233+
234+
- `action_type_condition` (String) must be one of ["WORKFLOW_STARTED", "STEP_CLOSED"]
235+
- `number_of_units` (Number)
236+
- `step_id` (String)
237+
- `time_period` (String) must be one of ["days", "weeks", "months"]
238+
239+
207240
<a id="nestedatt--flow--step--ecp"></a>
208241
### Nested Schema for `flow.step.ecp`
209242

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ terraform {
1717
required_providers {
1818
epilot-workflow = {
1919
source = "epilot-dev/epilot-workflow"
20-
version = "0.10.0"
20+
version = "0.11.0"
2121
}
2222
}
2323
}

docs/resources/workflow_definition.md

Lines changed: 58 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ resource "epilot-workflow_workflow_definition" "my_workflowdefinition" {
1818
definition_id = "7hj28a"
1919
description = "...my_description..."
2020
due_date = "2021-04-27T12:00:00.000Z"
21-
dynamic_due_date = "{ \"see\": \"documentation\" }"
2221
enable_ecp_workflow = false
2322
flow = [
2423
{
@@ -38,57 +37,62 @@ resource "epilot-workflow_workflow_definition" "my_workflowdefinition" {
3837
enabled = true
3938
value = "...my_value..."
4039
}
41-
due_date = "2021-04-27T12:00:00.000Z"
42-
dynamic_due_date = "{ \"see\": \"documentation\" }"
40+
due_date = "2021-04-27T12:00:00.000Z"
41+
dynamic_due_date = {
42+
action_type_condition = "STEP_CLOSED"
43+
number_of_units = 73.8
44+
step_id = "...my_step_id..."
45+
time_period = "weeks"
46+
}
4347
ecp = {
4448
description = "...my_description..."
4549
enabled = false
4650
journey = {
47-
id = "b9364361-b277-46d7-98c7-5f3e120ea0dc"
51+
id = "64361b27-76d7-498c-b5f3-e120ea0dc9e1"
4852
journey_id = "...my_journey_id..."
49-
name = "Mrs. Grady Bins"
53+
name = "Lorraine Witting"
5054
}
5155
label = "...my_label..."
5256
}
5357
execution_type = "AUTOMATION"
54-
id = "f93f96aa-0e34-4085-b7db-1176521d792f"
58+
id = "3f96aa0e-3408-45f7-9b11-76521d792fea"
5559
installer = {
5660
description = "...my_description..."
5761
enabled = true
5862
journey = {
59-
id = "a4830af3-5ac0-4f05-96d8-6c6d56674fb2"
63+
id = "830af35a-c0f0-4516-986c-6d56674fb26d"
6064
journey_id = "...my_journey_id..."
61-
name = "Elena Kuhic"
65+
name = "Paulette O'Hara"
6266
}
6367
label = "...my_label..."
6468
}
6569
journey = {
66-
id = "9f9b2b84-e882-493d-9869-3f16fc9936c9"
70+
id = "9b2b84e8-8293-4d18-a93f-16fc9936c940"
6771
journey_id = "...my_journey_id..."
68-
name = "Kimberly Marvin"
72+
name = "Dr. Joel Hermann"
6973
}
70-
name = "Dr. Eloise Nader"
71-
order = 66.72
74+
name = "Lorene Denesik"
75+
order = 4.83
7276
requirements = [
7377
{
7478
condition = "CLOSED"
7579
definition_id = "...my_definition_id..."
76-
type = "SECTION"
80+
type = "STEP"
7781
},
7882
]
79-
type = "STEP"
83+
type = "SECTION"
8084
user_ids = [
81-
31.44,
85+
9.27,
8286
]
8387
},
8488
]
85-
type = "SECTION"
89+
type = "STEP"
8690
}
8791
},
8892
]
89-
id = "1470408a-193e-4721-a537-6b6381b5dd26"
93+
id = "70408a19-3e72-4165-b76b-6381b5dd263e"
9094
last_update_time = "2021-04-27T12:01:13.000Z"
91-
name = "Eloise Kreiger DVM"
95+
name = "Nina Bednar"
9296
}
9397
```
9498

@@ -107,7 +111,7 @@ resource "epilot-workflow_workflow_definition" "my_workflowdefinition" {
107111
- `creation_time` (String) ISO String Date & Time
108112
- `description` (String)
109113
- `due_date` (String)
110-
- `dynamic_due_date` (String) set a Duedate for a step then a specific. Parsed as JSON.
114+
- `dynamic_due_date` (Attributes) set a Duedate for a step then a specific (see [below for nested schema](#nestedatt--dynamic_due_date))
111115
- `enable_ecp_workflow` (Boolean) Indicates whether this workflow is available for End Customer Portal or not. By default it's not.
112116
- `last_update_time` (String) ISO String Date & Time
113117
- `update_entity_attributes` (Attributes List) (see [below for nested schema](#nestedatt--update_entity_attributes))
@@ -145,7 +149,7 @@ Optional:
145149
- `automation_config` (Attributes) (see [below for nested schema](#nestedatt--flow--section--steps--automation_config))
146150
- `description` (Attributes) Longer information regarding Task (see [below for nested schema](#nestedatt--flow--section--steps--description))
147151
- `due_date` (String)
148-
- `dynamic_due_date` (String) set a Duedate for a step then a specific. Parsed as JSON.
152+
- `dynamic_due_date` (Attributes) set a Duedate for a step then a specific (see [below for nested schema](#nestedatt--flow--section--steps--dynamic_due_date))
149153
- `ecp` (Attributes) Details regarding ECP for the workflow step (see [below for nested schema](#nestedatt--flow--section--steps--ecp))
150154
- `execution_type` (String) must be one of ["MANUAL", "AUTOMATION"]
151155
- `id` (String)
@@ -174,6 +178,17 @@ Optional:
174178
- `value` (String)
175179

176180

181+
<a id="nestedatt--flow--section--steps--dynamic_due_date"></a>
182+
### Nested Schema for `flow.section.steps.user_ids`
183+
184+
Optional:
185+
186+
- `action_type_condition` (String) must be one of ["WORKFLOW_STARTED", "STEP_CLOSED"]
187+
- `number_of_units` (Number)
188+
- `step_id` (String)
189+
- `time_period` (String) must be one of ["days", "weeks", "months"]
190+
191+
177192
<a id="nestedatt--flow--section--steps--ecp"></a>
178193
### Nested Schema for `flow.section.steps.user_ids`
179194

@@ -247,7 +262,7 @@ Optional:
247262
- `automation_config` (Attributes) (see [below for nested schema](#nestedatt--flow--step--automation_config))
248263
- `description` (Attributes) Longer information regarding Task (see [below for nested schema](#nestedatt--flow--step--description))
249264
- `due_date` (String)
250-
- `dynamic_due_date` (String) set a Duedate for a step then a specific. Parsed as JSON.
265+
- `dynamic_due_date` (Attributes) set a Duedate for a step then a specific (see [below for nested schema](#nestedatt--flow--step--dynamic_due_date))
251266
- `ecp` (Attributes) Details regarding ECP for the workflow step (see [below for nested schema](#nestedatt--flow--step--ecp))
252267
- `execution_type` (String) must be one of ["MANUAL", "AUTOMATION"]
253268
- `id` (String)
@@ -276,6 +291,17 @@ Optional:
276291
- `value` (String)
277292

278293

294+
<a id="nestedatt--flow--step--dynamic_due_date"></a>
295+
### Nested Schema for `flow.step.dynamic_due_date`
296+
297+
Optional:
298+
299+
- `action_type_condition` (String) must be one of ["WORKFLOW_STARTED", "STEP_CLOSED"]
300+
- `number_of_units` (Number)
301+
- `step_id` (String)
302+
- `time_period` (String) must be one of ["days", "weeks", "months"]
303+
304+
279305
<a id="nestedatt--flow--step--ecp"></a>
280306
### Nested Schema for `flow.step.ecp`
281307

@@ -348,6 +374,17 @@ Optional:
348374
- `id` (String) Not Null
349375

350376

377+
<a id="nestedatt--dynamic_due_date"></a>
378+
### Nested Schema for `dynamic_due_date`
379+
380+
Optional:
381+
382+
- `action_type_condition` (String) must be one of ["WORKFLOW_STARTED", "STEP_CLOSED"]
383+
- `number_of_units` (Number)
384+
- `step_id` (String)
385+
- `time_period` (String) must be one of ["days", "weeks", "months"]
386+
387+
351388
<a id="nestedatt--update_entity_attributes"></a>
352389
### Nested Schema for `update_entity_attributes`
353390

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data "epilot-workflow_closing_reason" "my_closingreason" {
2+
reason_id = "-poOAPBa-jFZA_AWV3zN0"
3+
}

0 commit comments

Comments
 (0)