Skip to content

Commit

Permalink
Merge pull request #3 from epilot-dev/speakeasy-sdk-regen-1705712752
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
NishuGoel authored May 7, 2024
2 parents 2fc6cb1 + 6935038 commit d343816
Show file tree
Hide file tree
Showing 76 changed files with 1,729 additions and 858 deletions.
113 changes: 59 additions & 54 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,69 @@ id: 1afd37bc-cea9-4679-ac40-35ad5de414fc
management:
docChecksum: 25eb21ef4a0c170c431dedb3401afc84
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.230.1
releaseVersion: 0.2.7
configChecksum: ba1909901d42d5999d4327d01df604d8
speakeasyVersion: 1.280.1
generationVersion: 2.322.5
releaseVersion: 0.3.0
configChecksum: 91220056e36a4832e4098a1240151a7a
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-journey.git
repoSubDirectory: .
published: true
features:
terraform:
additionalProperties: 0.1.2
constsAndDefaults: 0.1.2
core: 3.8.1
globalSecurity: 2.81.2
constsAndDefaults: 0.1.4
core: 3.19.1
globalSecurity: 2.81.6
globalServerURLs: 2.82.1
retries: 2.81.1
generatedFiles:
- internal/sdk/journeys.go
- internal/sdk/journeysv2.go
- internal/sdk/sdk.go
- internal/sdk/models/errors/sdkerror.go
- internal/sdk/types/bigint.go
- internal/sdk/types/date.go
- internal/sdk/types/datetime.go
- internal/sdk/types/decimal.go
- internal/sdk/types/pointers.go
- internal/sdk/internal/utils/contenttype.go
- internal/sdk/internal/utils/form.go
- internal/sdk/internal/utils/headers.go
- internal/sdk/internal/utils/json.go
- internal/sdk/internal/utils/pathparams.go
- internal/sdk/internal/utils/queryparams.go
- internal/sdk/internal/utils/requestbody.go
- internal/sdk/internal/utils/retries.go
- internal/sdk/internal/utils/security.go
- internal/sdk/internal/utils/utils.go
- internal/sdk/models/operations/createjourney.go
- internal/sdk/models/operations/getjourney.go
- internal/sdk/models/operations/getjourneyproducts.go
- internal/sdk/models/operations/getjourneysbyorgid.go
- internal/sdk/models/operations/patchupdatejourney.go
- internal/sdk/models/operations/removejourney.go
- internal/sdk/models/operations/searchjourneys.go
- internal/sdk/models/operations/updatejourney.go
- internal/sdk/models/operations/createjourneyv2.go
- internal/sdk/models/operations/getjourneyv2.go
- internal/sdk/models/operations/patchupdatejourneyv2.go
- internal/sdk/models/operations/removejourneyv2.go
- internal/sdk/models/operations/updatejourneyv2.go
- internal/sdk/models/shared/journey.go
- internal/sdk/models/shared/journeycreationrequest.go
- internal/sdk/models/shared/journeyproductsresponse.go
- internal/sdk/models/shared/getjourneysresponse.go
- internal/sdk/models/shared/journeyresponse.go
- internal/sdk/models/shared/patchupdatejourneyrequest.go
- internal/sdk/models/shared/searchjourneysresponse.go
- internal/sdk/models/shared/searchjourneysqueryrequest.go
- internal/sdk/models/shared/journeycreationrequestv2.go
- internal/sdk/models/shared/security.go
- internal/sdk/.gitignore
- internal/sdk/models/operations/options.go
- internal/sdk/.gitattributes
- internal/sdk/internal/hooks/registration.go
- internal/sdk/internal/hooks/hooks.go
- examples/README.md
- go.mod
- go.sum
Expand Down Expand Up @@ -50,22 +94,6 @@ generatedFiles:
- internal/provider/reflect/slice.go
- internal/provider/reflect/struct.go
- internal/provider/utils.go
- internal/sdk/pkg/models/sdkerrors/sdkerror.go
- internal/sdk/pkg/types/bigint.go
- internal/sdk/pkg/types/date.go
- internal/sdk/pkg/types/datetime.go
- internal/sdk/pkg/types/decimal.go
- internal/sdk/pkg/types/pointers.go
- internal/sdk/pkg/utils/contenttype.go
- internal/sdk/pkg/utils/form.go
- internal/sdk/pkg/utils/headers.go
- internal/sdk/pkg/utils/json.go
- internal/sdk/pkg/utils/pathparams.go
- internal/sdk/pkg/utils/queryparams.go
- internal/sdk/pkg/utils/requestbody.go
- internal/sdk/pkg/utils/retries.go
- internal/sdk/pkg/utils/security.go
- internal/sdk/pkg/utils/utils.go
- internal/validators/DateValidator.go
- internal/validators/ExactlyOneChild.go
- internal/validators/JSONParseValidator.go
Expand All @@ -82,44 +110,21 @@ generatedFiles:
- main.go
- terraform-registry-manifest.json
- tools/tools.go
- internal/sdk/pkg/models/operations/createjourney.go
- internal/sdk/pkg/models/operations/getjourney.go
- internal/sdk/pkg/models/operations/getjourneyproducts.go
- internal/sdk/pkg/models/operations/getjourneysbyorgid.go
- internal/sdk/pkg/models/operations/patchupdatejourney.go
- internal/sdk/pkg/models/operations/removejourney.go
- internal/sdk/pkg/models/operations/searchjourneys.go
- internal/sdk/pkg/models/operations/updatejourney.go
- internal/sdk/pkg/models/operations/createjourneyv2.go
- internal/sdk/pkg/models/operations/getjourneyv2.go
- internal/sdk/pkg/models/operations/patchupdatejourneyv2.go
- internal/sdk/pkg/models/operations/removejourneyv2.go
- internal/sdk/pkg/models/operations/updatejourneyv2.go
- internal/sdk/pkg/models/shared/journey.go
- internal/sdk/pkg/models/shared/journeycreationrequest.go
- internal/sdk/pkg/models/shared/journeyproductsresponse.go
- internal/sdk/pkg/models/shared/getjourneysresponse.go
- internal/sdk/pkg/models/shared/journeyresponse.go
- internal/sdk/pkg/models/shared/patchupdatejourneyrequest.go
- internal/sdk/pkg/models/shared/searchjourneysresponse.go
- internal/sdk/pkg/models/shared/searchjourneysqueryrequest.go
- internal/sdk/pkg/models/shared/journeycreationrequestv2.go
- internal/sdk/pkg/models/shared/security.go
- internal/provider/type_journey_creation_request_v2_design.go
- internal/provider/type_journey_creation_request_v2_logics.go
- internal/provider/type_journey_creation_request_v2_rules.go
- internal/provider/type_journey_creation_request_v2_button.go
- internal/provider/type_journey_creation_request_v2_embed_options.go
- internal/provider/type_journey_creation_request_v2_settings.go
- internal/provider/type_journey_creation_request_v2_steps.go
- internal/provider/types/journey_creation_request_v2_design.go
- internal/provider/types/journey_creation_request_v2_logics.go
- internal/provider/types/journey_creation_request_v2_rules.go
- internal/provider/types/journey_creation_request_v2_button.go
- internal/provider/types/journey_creation_request_v2_embed_options.go
- internal/provider/types/journey_creation_request_v2_settings.go
- internal/provider/types/journey_creation_request_v2_steps.go
- USAGE.md
- internal/provider/provider.go
- examples/provider/provider.tf
- examples/resources/epilot-journey_journey/import.sh
- internal/provider/journey_resource.go
- internal/provider/journey_resource_sdk.go
- examples/resources/epilot-journey_journey/resource.tf
- internal/provider/journey_data_source.go
- internal/provider/journey_data_source_sdk.go
- examples/data-sources/epilot-journey_journey/data-source.tf
- internal/sdk/pkg/models/operations/options.go
- .gitattributes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ terraform {
required_providers {
epilot-journey = {
source = "epilot-dev/epilot-journey"
version = "0.2.7"
version = "0.3.0"
}
}
}
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.2.3] .
- [terraform v0.2.3] .

## 2024-05-07 00:17:08
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.280.1 (2.322.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.3.0] .
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ terraform {
required_providers {
epilot-journey = {
source = "epilot-dev/epilot-journey"
version = "0.2.7"
version = "0.3.0"
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions docs/resources/journey.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,10 @@ Optional:
- `align` (String) must be one of ["left", "center", "right"]
- `text` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import epilot-journey_journey.my_epilot-journey_journey "509cdffe-424f-457a-95c2-9708c304ce77"
```
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-journey = {
source = "epilot-dev/epilot-journey"
version = "0.2.7"
version = "0.3.0"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/resources/epilot-journey_journey/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import epilot-journey_journey.my_epilot-journey_journey "509cdffe-424f-457a-95c2-9708c304ce77"
39 changes: 19 additions & 20 deletions examples/resources/epilot-journey_journey/resource.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
resource "epilot-journey_journey" "my_journey" {
# brand_id = "...my_brand_id..."
# journey_id = "...my_journey_id..."
# name = "Dianne Kiehn"
# skip_automation = true
# steps = [
# {
# hide_next_button = false
# name = "Pearl Ondricka"
# schema = "{ \"see\": \"documentation\" }"
# show_step_name = true
# show_stepper = true
# show_stepper_labels = true
# show_step_subtitle = true
# step_id = "...my_step_id..."
# sub_title = "...my_sub_title..."
# title = "Ms."
# uischema = "{ \"see\": \"documentation\" }"
# },
# ]
}
brand_id = "...my_brand_id..."
journey_id = "...my_journey_id..."
name = "Dianne Kiehn"
steps = [
{
hide_next_button = false
name = "Pearl Ondricka"
schema = "{ \"see\": \"documentation\" }"
show_step_name = true
show_stepper = true
show_stepper_labels = true
show_step_subtitle = true
step_id = "...my_step_id..."
sub_title = "...my_sub_title..."
title = "Ms."
uischema = "{ \"see\": \"documentation\" }"
},
]
}
6 changes: 5 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ generation:
optionalPropertyRendering: withExample
fixes:
nameResolutionDec2023: false
parameterOrderingFeb2024: false
requestResponseComponentNamesFeb2024: false
auth:
oAuth2ClientCredentialsEnabled: false
sdkFlattening: true
telemetryEnabled: false
terraform:
version: 0.2.7
version: 0.3.0
author: epilot-dev
imports:
option: openapi
Expand Down
40 changes: 19 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
module github.com/epilot-dev/terraform-provider-epilot-journey

go 1.18
go 1.21

toolchain go1.21.9

require (
github.com/cenkalti/backoff/v4 v4.2.0
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05
github.com/hashicorp/terraform-plugin-framework v1.3.5
github.com/hashicorp/terraform-plugin-go v0.18.0
github.com/spyzhov/ajson v0.9.0
github.com/hashicorp/terraform-plugin-docs v0.13.0
github.com/hashicorp/terraform-plugin-framework v1.7.0
github.com/hashicorp/terraform-plugin-framework-validators v0.10.0
github.com/hashicorp/terraform-plugin-go v0.22.1
)

require (
Expand All @@ -19,21 +22,22 @@ require (
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.10 // indirect
github.com/hashicorp/go-plugin v1.6.0 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hc-install v0.4.0 // indirect
github.com/hashicorp/terraform-exec v0.17.2 // indirect
github.com/hashicorp/terraform-json v0.14.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.1 // indirect
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
Expand All @@ -47,20 +51,14 @@ require (
github.com/russross/blackfriday v1.6.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/zclconf/go-cty v1.13.1 // indirect
golang.org/x/crypto v0.10.0 // indirect
golang.org/x/net v0.11.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
google.golang.org/grpc v1.56.1 // indirect
google.golang.org/protobuf v1.31.0 // indirect
)

require (
github.com/hashicorp/terraform-plugin-docs v0.13.0
github.com/hashicorp/terraform-plugin-framework-validators v0.10.0
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
google.golang.org/grpc v1.62.1 // indirect
google.golang.org/protobuf v1.33.0 // indirect
)
Loading

0 comments on commit d343816

Please sign in to comment.