Skip to content

Commit

Permalink
Merge branch 'dev' into feat/DEVTOOLING-714
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMoyles authored Jul 31, 2024
2 parents b97f8b0 + ceaeeb1 commit 0a7838e
Show file tree
Hide file tree
Showing 94 changed files with 4,824 additions and 3,775 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 10
steps:
- name: Set up Go
uses: actions/setup-go@v5
Expand Down
30 changes: 30 additions & 0 deletions docs/data-sources/conversations_messaging_supportedcontent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "genesyscloud_conversations_messaging_supportedcontent Data Source - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Genesys Cloud supported content data source. Select an supported content by name
---

# genesyscloud_conversations_messaging_supportedcontent (Data Source)

Genesys Cloud supported content data source. Select an supported content by name

## Example Usage

```terraform
data "genesyscloud_conversations_messaging_supportedcontent" "supported_content" {
name = "Test Supported Content"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) supported content name

### Read-Only

- `id` (String) The ID of this resource.
15 changes: 11 additions & 4 deletions docs/data-sources/task_management_worktype_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@
page_title: "genesyscloud_task_management_worktype_status Data Source - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Genesys Cloud task management worktype_status data source. Select a status by worktype name and status name
Genesys Cloud task management worktype status data source. Select an task management worktype status by name
---

# genesyscloud_task_management_worktype_status (Data Source)

Genesys Cloud task management worktype_status data source. Select a status by worktype name and status name
Genesys Cloud task management worktype status data source. Select an task management worktype status by name

## Example Usage

```terraform
data "genesyscloud_task_management_worktype_status" "status_sample" {
worktype_id = genesyscloud_task_management_worktype.example.id
name = "Worktype status"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `worktype_name` (String) Task management worktype name
- `worktype_status_name` (String) Task management worktype status name
- `name` (String) Task management worktype status name
- `worktype_id` (String) The id of the worktype the status belongs to

### Read-Only

Expand Down
84 changes: 84 additions & 0 deletions docs/resources/conversations_messaging_supportedcontent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
page_title: "genesyscloud_conversations_messaging_supportedcontent Resource - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Genesys Cloud supported content
---
# genesyscloud_conversations_messaging_supportedcontent (Resource)

Genesys Cloud supported content

## API Usage
The following Genesys Cloud APIs are used by this resource. Ensure your OAuth Client has been granted the necessary scopes and permissions to perform these operations:

* [POST /api/v2/conversations/messaging/supportedcontent](https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-conversations-messaging-supportedcontent)
* [GET /api/v2/conversations/messaging/supportedcontent/{supportedContentId}](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-supportedcontent--supportedContentId-)
* [PATCH /api/v2/conversations/messaging/supportedcontent/{supportedContentId}](https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-conversations-messaging-supportedcontent--supportedContentId-)
* [DELETE /api/v2/conversations/messaging/supportedcontent/{supportedContentId}](https://developer.genesys.cloud/devapps/api-explorer#delete-api-v2-conversations-messaging-supportedcontent--supportedContentId-)
* [GET /api/v2/conversations/messaging/supportedcontent](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-supportedcontent)



## Example Usage

```terraform
resource "genesyscloud_conversations_messaging_supportedcontent" "supported_content" {
name = "test supported_content"
media_types {
allow {
inbound {
type = "image/*"
}
outbound {
type = "video/mpeg"
}
}
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The name of the supported content profile

### Optional

- `media_types` (Block List, Max: 1) Defines the allowable media that may be accepted for an inbound message or to be sent in an outbound message. (see [below for nested schema](#nestedblock--media_types))

### Read-Only

- `id` (String) The ID of this resource.

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

Optional:

- `allow` (Block List, Max: 1) Specify allowed media types for inbound and outbound messages. If this field is empty, all inbound and outbound media will be blocked. (see [below for nested schema](#nestedblock--media_types--allow))

<a id="nestedblock--media_types--allow"></a>
### Nested Schema for `media_types.allow`

Optional:

- `inbound` (Block List) List of media types allowed for inbound messages from customers. If inbound messages from a customer contain media that is not in this list, the media will be dropped from the outbound message. (see [below for nested schema](#nestedblock--media_types--allow--inbound))
- `outbound` (Block List) List of media types allowed for outbound messages to customers. If an outbound message is sent that contains media that is not in this list, the message will not be sent. (see [below for nested schema](#nestedblock--media_types--allow--outbound))

<a id="nestedblock--media_types--allow--inbound"></a>
### Nested Schema for `media_types.allow.inbound`

Optional:

- `type` (String) The media type string as defined by RFC 2046. You can define specific types such as 'image/jpeg', 'video/mpeg', or specify wild cards for a range of types, 'image/*', or all types '*/*'. See https://www.iana.org/assignments/media-types/media-types.xhtml for a list of registered media types.


<a id="nestedblock--media_types--allow--outbound"></a>
### Nested Schema for `media_types.allow.outbound`

Optional:

- `type` (String) The media type string as defined by RFC 2046. You can define specific types such as 'image/jpeg', 'video/mpeg', or specify wild cards for a range of types, 'image/*', or all types '*/*'. See https://www.iana.org/assignments/media-types/media-types.xhtml for a list of registered media types.

58 changes: 0 additions & 58 deletions docs/resources/task_management_worktype.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ The following Genesys Cloud APIs are used by this resource. Ensure your OAuth Cl
* [PATCH /api/v2/taskmanagement/worktypes/{worktypeId}](https://developer.genesys.cloud/platform/preview-apis#patch-api-v2-taskmanagement-worktypes--worktypeId-)
* [DELETE /api/v2/taskmanagement/worktypes/{worktypeId}](https://developer.genesys.cloud/platform/preview-apis#delete-api-v2-taskmanagement-worktypes--worktypeId-)
* [POST /api/v2/taskmanagement/worktypes/query](https://developer.genesys.cloud/platform/preview-apis#post-api-v2-taskmanagement-worktypes-query)
* [POST /api/v2/taskmanagement/worktypes/{worktypeId}/statuses](https://developer.genesys.cloud/platform/preview-apis#post-api-v2-taskmanagement-worktypes--worktypeId--statuses)
* [GET /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/platform/preview-apis#get-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)
* [PATCH /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/platform/preview-apis#patch-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)
* [DELETE /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/platform/preview-apis#delete-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)



## Example Usage

Expand All @@ -45,36 +39,6 @@ resource "genesyscloud_task_management_worktype" "worktype_1" {
default_skills_ids = [genesyscloud_routing_skill.skill_1.id, genesyscloud_routing_skill.skill_2.id]
assignment_enabled = true
defaultStatusName = "Open Status"
statuses {
name = "Open Status"
description = "Description of open status"
category = "Open"
destination_status_names = ["WIP", "Waiting Status"]
default_destination_status_name = "WIP"
status_transition_delay_seconds = 86500
status_transition_time = "04:20:00"
}
statuses {
name = "WIP"
description = "Description of WIP status"
category = "InProgress"
}
statuses {
name = "Waiting Status"
description = "Description of waiting status"
category = "Waiting"
}
statuses {
name = "Close Status"
description = "Description of close status"
category = "Closed"
}
}
```

Expand All @@ -97,34 +61,12 @@ resource "genesyscloud_task_management_worktype" "worktype_1" {
- `default_priority` (Number) The default priority for Workitems created from the Worktype. The valid range is between -25,000,000 and 25,000,000.
- `default_queue_id` (String) The default queue for Workitems created from the Worktype.
- `default_skills_ids` (List of String) The default skills for Workitems created from the Worktype.
- `default_status_name` (String) The name of the default status for Workitems created from the Worktype. This status should be defined in 'statuses'.
- `default_ttl_seconds` (Number) The default time to time to live in seconds for Workitems created from the Worktype.
- `description` (String) The description of the Worktype.
- `division_id` (String) The division to which this entity belongs.
- `schema_version` (Number) Version of the workitem schema to use. If not provided, the worktype will use the latest version.
- `statuses` (Block Set) The list of possible statuses for Workitems created from the Worktype. (see [below for nested schema](#nestedblock--statuses))

### Read-Only

- `id` (String) The ID of this resource.

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

Required:

- `category` (String) The Category of the Status.
- `name` (String) Name of the status

Optional:

- `default_destination_status_name` (String) Name of the default destination status to which this Status will transition to if auto status transition enabled.
- `description` (String) The description of the Status.
- `destination_status_names` (List of String) The names of the Statuses the Status can transition to. If null, the status can transition to any other status.
- `status_transition_delay_seconds` (Number) Delay in seconds for auto status transition
- `status_transition_time` (String) Time (HH:MM:SS format) at which auto status transition will occur after statusTransitionDelaySeconds delay. To set Time, the statusTransitionDelaySeconds must be equal to or greater than 86400 i.e. a day

Read-Only:

- `id` (String) Read-only identifier of the workitem status

59 changes: 59 additions & 0 deletions docs/resources/task_management_worktype_status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
page_title: "genesyscloud_task_management_worktype_status Resource - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Genesys Cloud task management worktype status
---
# genesyscloud_task_management_worktype_status (Resource)

Genesys Cloud task management worktype status

## API Usage
The following Genesys Cloud APIs are used by this resource. Ensure your OAuth Client has been granted the necessary scopes and permissions to perform these operations:

* [GET /api/v2/taskmanagement/worktypes/{worktypeId}/statuses](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-taskmanagement-worktypes--worktypeId--statuses)
* [POST /api/v2/taskmanagement/worktypes/{worktypeId}/statuses](https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-taskmanagement-worktypes--worktypeId--statuses)
* [GET /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)
* [PATCH /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)
* [DELETE /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/devapps/api-explorer#delete-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)



## Example Usage

```terraform
resource "genesyscloud_task_management_worktype_status" "worktype_status" {
worktype_id = genesyscloud_task_management_worktype.example.id
name = "Open Status"
description = "Description of open status"
category = "Open"
destination_status_ids = [genesyscloud_task_management_worktype_status.status1.id, genesyscloud_task_management_worktype_status.status2.id]
default_destination_status_id = genesyscloud_task_management_worktype_status.status1.id
status_transition_delay_seconds = 86500
status_transition_time = "04:20:00"
default = false
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `category` (String) The Category of the Status. Changing the category will cause the resource to be dropped and recreated with a new id.
- `name` (String) Name of the status.
- `worktype_id` (String) The id of the worktype this status belongs to. Changing this attribute will cause the status to be dropped and recreated.

### Optional

- `default` (Boolean) This status is the default status for Workitems created from this Worktype. Only one status can be set as the default status at a time.
- `default_destination_status_id` (String) Default destination status to which this Status will transition to if auto status transition enabled.
- `description` (String) The description of the Status.
- `destination_status_ids` (List of String) A list of destination Statuses where a Workitem with this Status can transition to. If the list is empty Workitems with this Status can transition to all other Statuses defined on the Worktype. A Status can have a maximum of 24 destinations.
- `status_transition_delay_seconds` (Number) Delay in seconds for auto status transition. Required if default_destination_status_id is provided.
- `status_transition_time` (String) Time is represented as an ISO-8601 string without a timezone. For example: HH:mm:ss

### Read-Only

- `id` (String) The ID of this resource.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "genesyscloud_conversations_messaging_supportedcontent" "supported_content" {
name = "Test Supported Content"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "genesyscloud_task_management_worktype_status" "status_sample" {
worktype_id = genesyscloud_task_management_worktype.example.id
name = "Worktype status"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* [POST /api/v2/conversations/messaging/supportedcontent](https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-conversations-messaging-supportedcontent)
* [GET /api/v2/conversations/messaging/supportedcontent/{supportedContentId}](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-supportedcontent--supportedContentId-)
* [PATCH /api/v2/conversations/messaging/supportedcontent/{supportedContentId}](https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-conversations-messaging-supportedcontent--supportedContentId-)
* [DELETE /api/v2/conversations/messaging/supportedcontent/{supportedContentId}](https://developer.genesys.cloud/devapps/api-explorer#delete-api-v2-conversations-messaging-supportedcontent--supportedContentId-)
* [GET /api/v2/conversations/messaging/supportedcontent](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-supportedcontent)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resource "genesyscloud_conversations_messaging_supportedcontent" "supported_content" {
name = "test supported_content"
media_types {
allow {
inbound {
type = "image/*"
}
outbound {
type = "video/mpeg"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
inboundCall:
name: Terraform Emergency Test Flow 7fa2e8a9-b1d9-4d78-93b8-05b4465314a7
name: Terraform Flow Test-e678ea2e-2f37-4376-ab79-d70e7c7359b7
defaultLanguage: en-us
startUpRef: ./menus/menu[mainMenu]
initialGreeting:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
inboundEmail:
name: Terraform Flow Test-d0c40522-88e4-4b66-aa48-f237afb819e0
division: New Home
name: Terraform Flow Test-dabfb12a-6e7e-4e8c-ab21-7f8549959c48
division: New Home1
startUpRef: "/inboundEmail/states/state[Initial State_10]"
defaultLanguage: en-us
supportedLanguages:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
inboundCall:
name: Terraform Flow Test-e602c7ba-318e-4373-99bb-bdf69dcc7600
name: Terraform Flow Test-fa4dd927-bf74-4394-9b20-c3560a4b5f7f
defaultLanguage: en-us
startUpRef: ./menus/menu[mainMenu]
initialGreeting:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
* [GET /api/v2/taskmanagement/worktypes/{worktypeId}](https://developer.genesys.cloud/platform/preview-apis#get-api-v2-taskmanagement-worktypes--worktypeId-)
* [PATCH /api/v2/taskmanagement/worktypes/{worktypeId}](https://developer.genesys.cloud/platform/preview-apis#patch-api-v2-taskmanagement-worktypes--worktypeId-)
* [DELETE /api/v2/taskmanagement/worktypes/{worktypeId}](https://developer.genesys.cloud/platform/preview-apis#delete-api-v2-taskmanagement-worktypes--worktypeId-)
* [POST /api/v2/taskmanagement/worktypes/query](https://developer.genesys.cloud/platform/preview-apis#post-api-v2-taskmanagement-worktypes-query)
* [POST /api/v2/taskmanagement/worktypes/{worktypeId}/statuses](https://developer.genesys.cloud/platform/preview-apis#post-api-v2-taskmanagement-worktypes--worktypeId--statuses)
* [GET /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/platform/preview-apis#get-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)
* [PATCH /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/platform/preview-apis#patch-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)
* [DELETE /api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}](https://developer.genesys.cloud/platform/preview-apis#delete-api-v2-taskmanagement-worktypes--worktypeId--statuses--statusId-)

* [POST /api/v2/taskmanagement/worktypes/query](https://developer.genesys.cloud/platform/preview-apis#post-api-v2-taskmanagement-worktypes-query)
Loading

0 comments on commit 0a7838e

Please sign in to comment.