Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…er-genesyscloud into feat/DEVTOOLING-712
  • Loading branch information
shrutisuryawanshigenesys committed Jul 16, 2024
2 parents 334b821 + 73e54eb commit d53636c
Show file tree
Hide file tree
Showing 37 changed files with 634 additions and 268 deletions.
16 changes: 15 additions & 1 deletion docs/resources/journey_action_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ resource "genesyscloud_journey_action_map" "example_journey_action_map" {
- `is_active` (Boolean) Whether the action map is active. Defaults to `true`.
- `page_url_conditions` (Block Set) URL conditions that a page must match for web actions to be displayable. (see [below for nested schema](#nestedblock--page_url_conditions))
- `trigger_with_event_conditions` (Block Set) List of event conditions that must be satisfied to trigger the action map. (see [below for nested schema](#nestedblock--trigger_with_event_conditions))
- `trigger_with_outcome_probability_conditions` (Block Set) Probability conditions for outcomes that must be satisfied to trigger the action map. (see [below for nested schema](#nestedblock--trigger_with_outcome_probability_conditions))
- `trigger_with_outcome_probability_conditions` (Block Set, Deprecated) Probability conditions for outcomes that must be satisfied to trigger the action map. (see [below for nested schema](#nestedblock--trigger_with_outcome_probability_conditions))
- `trigger_with_outcome_quantile_conditions` (Block Set) Quantile conditions for outcomes that must be satisfied to trigger the action map. (see [below for nested schema](#nestedblock--trigger_with_outcome_quantile_conditions))
- `trigger_with_segments` (Set of String) Trigger action map if any segment in the list is assigned to a given customer.
- `weight` (Number) Weight of the action map with higher number denoting higher weight. Low=1, Medium=2, High=3. Defaults to `2`.

Expand Down Expand Up @@ -192,3 +193,16 @@ Optional:

- `probability` (Number) Additional probability condition, where if set, the action map will trigger if the current outcome probability is lower or equal to the value.


<a id="nestedblock--trigger_with_outcome_quantile_conditions"></a>
### Nested Schema for `trigger_with_outcome_quantile_conditions`

Required:

- `max_quantile_threshold` (Number) This Outcome Quantile Condition is met when sessionMaxQuantile of the OutcomeScore is above this value, (unless fallbackQuantile is set). Range 0.00-1.00
- `outcome_id` (String) The outcome ID.

Optional:

- `fallback_quantile_threshold` (Number) If set, this Condition is met when max_quantile_threshold is met, AND the current quantile of the OutcomeScore is below this fallback_quantile_threshold. Range 0.00-1.00

59 changes: 0 additions & 59 deletions genesyscloud/data_source_genesyscloud_routing_language.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/architect_flow"
authRole "terraform-provider-genesyscloud/genesyscloud/auth_role"
"terraform-provider-genesyscloud/genesyscloud/provider"
routingLanguage "terraform-provider-genesyscloud/genesyscloud/routing_language"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"
userRoles "terraform-provider-genesyscloud/genesyscloud/user_roles"
Expand Down Expand Up @@ -170,7 +171,7 @@ func TestAccDataSourceRecordingMediaRetentionPolicy(t *testing.T) {
gcloud.GenerateEvaluationFormResource(evaluationFormResource1, &evaluationFormResourceBody) +
gcloud.GenerateSurveyFormResource(surveyFormResource1, &surveyFormResourceBody) +
integration.GenerateIntegrationResource(integrationResource1, strconv.Quote(integrationIntendedState), strconv.Quote(integrationType), "") +
gcloud.GenerateRoutingLanguageResource(languageResource1, languageName) +
routingLanguage.GenerateRoutingLanguageResource(languageResource1, languageName) +
gcloud.GenerateRoutingWrapupcodeResource(wrapupCodeResource1, wrapupCodeName) +
architect_flow.GenerateFlowResource(
flowResource1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
integration "terraform-provider-genesyscloud/genesyscloud/integration"
"terraform-provider-genesyscloud/genesyscloud/provider"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
routingLanguage "terraform-provider-genesyscloud/genesyscloud/routing_language"
userRoles "terraform-provider-genesyscloud/genesyscloud/user_roles"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"

Expand Down Expand Up @@ -53,7 +54,7 @@ func (r *registerTestInstance) registerTestResources() {
providerResources["genesyscloud_quality_forms_evaluation"] = gcloud.ResourceEvaluationForm()
providerResources["genesyscloud_quality_forms_survey"] = gcloud.ResourceSurveyForm()
providerResources["genesyscloud_integration"] = integration.ResourceIntegration()
providerResources["genesyscloud_routing_language"] = gcloud.ResourceRoutingLanguage()
providerResources["genesyscloud_routing_language"] = routingLanguage.ResourceRoutingLanguage()
providerResources["genesyscloud_routing_wrapupcode"] = gcloud.ResourceRoutingWrapupCode()
providerResources["genesyscloud_flow"] = flow.ResourceArchitectFlow()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/architect_flow"
authRole "terraform-provider-genesyscloud/genesyscloud/auth_role"
"terraform-provider-genesyscloud/genesyscloud/provider"
routingLanguage "terraform-provider-genesyscloud/genesyscloud/routing_language"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"
userRoles "terraform-provider-genesyscloud/genesyscloud/user_roles"
Expand Down Expand Up @@ -956,7 +957,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
gcloud.GenerateEvaluationFormResource(evaluationFormResource1, &evaluationFormResourceBody) +
gcloud.GenerateSurveyFormResource(surveyFormResource1, &surveyFormResourceBody) +
integration.GenerateIntegrationResource(integrationResource1, strconv.Quote(integrationIntendedState), strconv.Quote(integrationType), "") +
gcloud.GenerateRoutingLanguageResource(languageResource1, languageName) +
routingLanguage.GenerateRoutingLanguageResource(languageResource1, languageName) +
gcloud.GenerateRoutingWrapupcodeResource(wrapupCodeResource1, wrapupCodeName) +
architect_flow.GenerateFlowResource(
flowResource1,
Expand Down Expand Up @@ -1063,7 +1064,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
gcloud.GenerateEvaluationFormResource(evaluationFormResource1, &evaluationFormResourceBody) +
gcloud.GenerateSurveyFormResource(surveyFormResource1, &surveyFormResourceBody) +
integration.GenerateIntegrationResource(integrationResource1, strconv.Quote(integrationIntendedState), strconv.Quote(integrationType), "") +
gcloud.GenerateRoutingLanguageResource(languageResource1, languageName) +
routingLanguage.GenerateRoutingLanguageResource(languageResource1, languageName) +
gcloud.GenerateRoutingWrapupcodeResource(wrapupCodeResource1, wrapupCodeName) +
architect_flow.GenerateFlowResource(
flowResource1,
Expand Down Expand Up @@ -1170,7 +1171,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
gcloud.GenerateEvaluationFormResource(evaluationFormResource1, &evaluationFormResourceBody) +
gcloud.GenerateSurveyFormResource(surveyFormResource1, &surveyFormResourceBody) +
integration.GenerateIntegrationResource(integrationResource1, strconv.Quote(integrationIntendedState), strconv.Quote(integrationType), "") +
gcloud.GenerateRoutingLanguageResource(languageResource1, languageName) +
routingLanguage.GenerateRoutingLanguageResource(languageResource1, languageName) +
gcloud.GenerateRoutingWrapupcodeResource(wrapupCodeResource1, wrapupCodeName) +
architect_flow.GenerateFlowResource(
flowResource1,
Expand Down Expand Up @@ -1277,7 +1278,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
gcloud.GenerateEvaluationFormResource(evaluationFormResource1, &evaluationFormResourceBody) +
gcloud.GenerateSurveyFormResource(surveyFormResource1, &surveyFormResourceBody) +
integration.GenerateIntegrationResource(integrationResource1, strconv.Quote(integrationIntendedState), strconv.Quote(integrationType), "") +
gcloud.GenerateRoutingLanguageResource(languageResource1, languageName) +
routingLanguage.GenerateRoutingLanguageResource(languageResource1, languageName) +
gcloud.GenerateRoutingWrapupcodeResource(wrapupCodeResource1, wrapupCodeName) +
architect_flow.GenerateFlowResource(
flowResource1,
Expand Down
1 change: 0 additions & 1 deletion genesyscloud/resource_exporter/resource_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"strings"
"sync"


"github.com/hashicorp/go-cty/cty"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down
3 changes: 0 additions & 3 deletions genesyscloud/resource_genesyscloud_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func registerDataSources(l registrar.Registrar) {
l.RegisterDataSource("genesyscloud_organizations_me", DataSourceOrganizationsMe())
l.RegisterDataSource("genesyscloud_quality_forms_evaluation", DataSourceQualityFormsEvaluations())
l.RegisterDataSource("genesyscloud_quality_forms_survey", dataSourceQualityFormsSurvey())
l.RegisterDataSource("genesyscloud_routing_language", dataSourceRoutingLanguage())
l.RegisterDataSource("genesyscloud_routing_skill", dataSourceRoutingSkill())
l.RegisterDataSource("genesyscloud_routing_skill_group", dataSourceRoutingSkillGroup())
l.RegisterDataSource("genesyscloud_routing_wrapupcode", DataSourceRoutingWrapupcode())
Expand All @@ -55,7 +54,6 @@ func registerResources(l registrar.Registrar) {
l.RegisterResource("genesyscloud_location", ResourceLocation())
l.RegisterResource("genesyscloud_quality_forms_evaluation", ResourceEvaluationForm())
l.RegisterResource("genesyscloud_quality_forms_survey", ResourceSurveyForm())
l.RegisterResource("genesyscloud_routing_language", ResourceRoutingLanguage())
l.RegisterResource("genesyscloud_routing_skill", ResourceRoutingSkill())
l.RegisterResource("genesyscloud_routing_skill_group", ResourceRoutingSkillGroup())
l.RegisterResource("genesyscloud_routing_wrapupcode", ResourceRoutingWrapupCode())
Expand All @@ -76,7 +74,6 @@ func registerExporters(l registrar.Registrar) {
l.RegisterExporter("genesyscloud_location", LocationExporter())
l.RegisterExporter("genesyscloud_quality_forms_evaluation", EvaluationFormExporter())
l.RegisterExporter("genesyscloud_quality_forms_survey", SurveyFormExporter())
l.RegisterExporter("genesyscloud_routing_language", RoutingLanguageExporter())
l.RegisterExporter("genesyscloud_routing_skill", RoutingSkillExporter())
l.RegisterExporter("genesyscloud_routing_skill_group", ResourceSkillGroupExporter())
l.RegisterExporter("genesyscloud_routing_wrapupcode", RoutingWrapupCodeExporter())
Expand Down
5 changes: 3 additions & 2 deletions genesyscloud/resource_genesyscloud_init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
architectSchedules "terraform-provider-genesyscloud/genesyscloud/architect_schedules"
"terraform-provider-genesyscloud/genesyscloud/group"
"terraform-provider-genesyscloud/genesyscloud/provider"
routinglanguage "terraform-provider-genesyscloud/genesyscloud/routing_language"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
routingSettings "terraform-provider-genesyscloud/genesyscloud/routing_settings"
Expand Down Expand Up @@ -54,8 +55,8 @@ func (r *registerTestInstance) registerTestResources() {
providerResources["genesyscloud_location"] = ResourceLocation()
providerResources["genesyscloud_quality_forms_evaluation"] = ResourceEvaluationForm()
providerResources["genesyscloud_quality_forms_survey"] = ResourceSurveyForm()
providerResources["genesyscloud_routing_language"] = routinglanguage.ResourceRoutingLanguage()
providerResources["genesyscloud_routing_email_domain"] = routingEmailDomain.ResourceRoutingEmailDomain()
providerResources["genesyscloud_routing_language"] = ResourceRoutingLanguage()
providerResources["genesyscloud_routing_skill"] = ResourceRoutingSkill()
providerResources["genesyscloud_routing_skill_group"] = ResourceRoutingSkillGroup()
providerResources["genesyscloud_routing_settings"] = routingSettings.ResourceRoutingSettings()
Expand Down Expand Up @@ -93,7 +94,7 @@ func (r *registerTestInstance) registerTestDataSources() {
providerDataSources["genesyscloud_organizations_me"] = DataSourceOrganizationsMe()
providerDataSources["genesyscloud_quality_forms_evaluation"] = DataSourceQualityFormsEvaluations()
providerDataSources["genesyscloud_quality_forms_survey"] = dataSourceQualityFormsSurvey()
providerDataSources["genesyscloud_routing_language"] = dataSourceRoutingLanguage()
providerDataSources["genesyscloud_routing_language"] = routinglanguage.DataSourceRoutingLanguage()
providerDataSources["genesyscloud_routing_skill"] = dataSourceRoutingSkill()
providerDataSources["genesyscloud_routing_skill_group"] = dataSourceRoutingSkillGroup()
providerDataSources["genesyscloud_routing_email_domain"] = routingEmailDomain.DataSourceRoutingEmailDomain()
Expand Down
Loading

0 comments on commit d53636c

Please sign in to comment.