Skip to content

Commit

Permalink
Fix flow types in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishu Goel committed Aug 11, 2024
1 parent 20a4bff commit 59abdb1
Show file tree
Hide file tree
Showing 27 changed files with 44 additions and 2,691 deletions.
24 changes: 4 additions & 20 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 5a857039-7f4b-42d5-86fd-449767242ed2
management:
docChecksum: 088d1c5acb62ad859574f77a4fa9cfe7
docChecksum: cbe462f4a20d4b2a1273895979390e09
docVersion: 1.0.0
speakeasyVersion: 1.346.0
generationVersion: 2.379.3
releaseVersion: 0.12.0
configChecksum: c0d92b66a873af7e8a44f04f3d7ceed7
releaseVersion: 0.13.0
configChecksum: b0fe4d200caa906deca84fe07b9ca435
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-workflow.git
repoSubDirectory: .
published: true
Expand All @@ -25,7 +25,7 @@ features:
deprecations: 2.81.1
globalSecurity: 2.81.6
globalServerURLs: 2.82.1
unions: 2.81.15
typeOverrides: 2.81.1
generatedFiles:
- internal/sdk/closingreason.go
- internal/sdk/workflows.go
Expand Down Expand Up @@ -65,15 +65,7 @@ generatedFiles:
- internal/sdk/models/shared/closingreasonnotfoundresp.go
- internal/sdk/models/shared/workflowdefinition.go
- internal/sdk/models/shared/updateentityattributes.go
- internal/sdk/models/shared/section.go
- internal/sdk/models/shared/itemtype.go
- internal/sdk/models/shared/step.go
- internal/sdk/models/shared/steprequirement.go
- internal/sdk/models/shared/stepjourney.go
- internal/sdk/models/shared/ecpdetails.go
- internal/sdk/models/shared/steptype.go
- internal/sdk/models/shared/dynamicduedate.go
- internal/sdk/models/shared/stepdescription.go
- internal/sdk/models/shared/closingreasonid.go
- internal/sdk/models/shared/definitionnotfoundresp.go
- internal/sdk/models/shared/maxallowedlimit.go
Expand Down Expand Up @@ -130,14 +122,6 @@ generatedFiles:
- tools/tools.go
- internal/provider/types/closing_reason_id.go
- internal/provider/types/dynamic_due_date.go
- internal/provider/types/automation_config.go
- internal/provider/types/step_description.go
- internal/provider/types/step_journey.go
- internal/provider/types/ecp_details.go
- internal/provider/types/step_requirement.go
- internal/provider/types/step.go
- internal/provider/types/section.go
- internal/provider/types/flow.go
- internal/provider/types/target.go
- internal/provider/types/update_entity_attributes.go
- USAGE.md
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ terraform {
required_providers {
epilot-workflow = {
source = "epilot-dev/epilot-workflow"
version = "0.12.0"
version = "0.13.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
epilot-workflow = {
source = "epilot-dev/epilot-workflow"
version = "0.12.0"
version = "0.13.0"
}
}
}
Expand Down
78 changes: 4 additions & 74 deletions examples/resources/epilot-workflow_workflow_definition/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,78 +4,8 @@ resource "epilot-workflow_workflow_definition" "my_workflowdefinition" {
description = "...my_description..."
due_date = "2021-04-27T12:00:00.000Z"
enable_ecp_workflow = false
flow = [
{
section = {
id = "452e3f02-980e-44cf-845d-81d428f0e4f5"
name = "Luther Greenfelder"
order = 12.7
steps = [
{
assigned_to = [
"...",
]
automation_config = {
flow_id = "...my_flow_id..."
}
description = {
enabled = false
value = "...my_value..."
}
due_date = "2021-04-27T12:00:00.000Z"
dynamic_due_date = {
action_type_condition = "WORKFLOW_STARTED"
number_of_units = 95.2
step_id = "...my_step_id..."
time_period = "weeks"
}
ecp = {
description = "...my_description..."
enabled = true
journey = {
id = "56e082d1-2997-4428-b0e6-c4cc2bdf6697"
journey_id = "...my_journey_id..."
name = "Floyd Pacocha"
}
label = "...my_label..."
}
execution_type = "MANUAL"
id = "7a2ecac9-f13d-48a1-a6b9-dc969f95f0ea"
installer = {
description = "...my_description..."
enabled = true
journey = {
id = "4100e0ec-f324-443f-89bc-c4a7284764a3"
journey_id = "...my_journey_id..."
name = "Kara Hoppe"
}
label = "...my_label..."
}
journey = {
id = "eff3a06c-e7de-4f51-84a6-068ca5b78833"
journey_id = "...my_journey_id..."
name = "Brandy Senger"
}
name = "Sammy Gislason"
order = 14.54
requirements = [
{
condition = "CLOSED"
definition_id = "...my_definition_id..."
type = "STEP"
},
]
type = "STEP"
user_ids = [
94.55,
]
},
]
type = "SECTION"
}
},
]
id = "6301351b-2bbd-41bf-80cf-7a2f75db8f8a"
last_update_time = "2021-04-27T12:01:13.000Z"
name = "Dr. Matthew Cronin"
flow = "{ \"see\": \"documentation\" }"
id = "452e3f02-980e-44cf-845d-81d428f0e4f5"
last_update_time = "2021-04-27T12:01:13.000Z"
name = "Luther Greenfelder"
}
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ go:
outputModelSuffix: output
packageName: openapi
terraform:
version: 0.12.0
version: 0.13.0
additionalDataSources: []
additionalDependencies: {}
additionalResources: []
Expand Down
9 changes: 0 additions & 9 deletions internal/provider/types/automation_config.go

This file was deleted.

12 changes: 0 additions & 12 deletions internal/provider/types/ecp_details.go

This file was deleted.

8 changes: 0 additions & 8 deletions internal/provider/types/flow.go

This file was deleted.

13 changes: 0 additions & 13 deletions internal/provider/types/section.go

This file was deleted.

23 changes: 0 additions & 23 deletions internal/provider/types/step.go

This file was deleted.

10 changes: 0 additions & 10 deletions internal/provider/types/step_description.go

This file was deleted.

11 changes: 0 additions & 11 deletions internal/provider/types/step_journey.go

This file was deleted.

11 changes: 0 additions & 11 deletions internal/provider/types/step_requirement.go

This file was deleted.

Loading

0 comments on commit 59abdb1

Please sign in to comment.