Skip to content

Commit

Permalink
Merging dev to main for v1.46.0 (#1236)
Browse files Browse the repository at this point in the history
* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queue

* Removed log

* Add consistency checker back

* Fix group cache

* Fix Export cyclic deps (#968)

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Feat/devtooling-177: Refactored orgAuthorization_pairing  (#975)

* refactored orgauthorization_pairing

* Added exporter for response management response asset

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Fixed test

* using resource mutexes in init_test files & linting errors (#973)

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Feature/devtooling 63 (#978)

* Fix exports

* Feat/add flow log level resource (#948)

* add code changes

* add flow log level changes

* testing commit

* getting there, have a create test together

* still trying to get a passing test

* tests have passed! but getting the plan was not empty errors now

* flow log level test

* finally got tests passing

* remove debug logging

* rerun go generate

* rerun go generate

* apply suggestions from PR review

* address PR review

* remove characteristics

* address PR comments

* return total flow log levels when no more are found

---------

Co-authored-by: dginty4 <[email protected]>

* NO-JIRA: Small Change to flow log level (#984)

* Small Change to flow log level

* Fixing typo

* Merge hotfix changes on main into dev (#983)

* moving changes (#960)

* Revert "moving changes (#960)" (#963)

This reverts commit 70d8a8036c52ae2f91aee081fe0d1c4c5451a58f.

* Release Merge to Main (#977)

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queue

* Removed log

* Add consistency checker back

* Fix group cache

* Fix Export cyclic deps (#968)

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Feat/devtooling-177: Refactored orgAuthorization_pairing  (#975)

* refactored orgauthorization_pairing

* Added exporter for response management response asset

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Fixed test

* using resource mutexes in init_test files & linting errors (#973)

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Feature/devtooling 63 (#978)

* Fix exports

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Charlie Conneely <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Fix Exporter for non-flow resources (#982)

* Fix Exporter for non-flow resources

* Added check (#981)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: HemanthDogiparthi12 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Bump github.com/hashicorp/terraform-plugin-docs from 0.18.0 to 0.19.1 (#992)

* Bump github.com/hashicorp/terraform-plugin-docs from 0.18.0 to 0.19.1

Bumps [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) from 0.18.0 to 0.19.1.
- [Release notes](https://github.com/hashicorp/terraform-plugin-docs/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-docs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-docs/compare/v0.18.0...v0.19.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-docs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* rerunning go generate after tf-docs package upgrade

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charlie Conneely <[email protected]>

* Devtooling 432: Conditonal Group Routing (#970)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Added CGR and toggle

* Fixed some errors

* Added queue proxy to CGR

* Added toggle to get all

* Made some changes

* Added CGR toggle package

* Moved CGR toggle package

* Ran linter

* Checking queue id in tests

* Small change

* bug/Devtooling-458: media retention policy creation failing with error on time interval (#980)

* added checks

* Checks for time interval attributes

* Fixing TimeInterval

* Added BuildFunc for timeInterval

* Added returned errors for invalid time Interval

* Fixed buildFunctions

* Generate Docs

* Fixed exporter

* Getting rid of go vet warning about copying a lock value to a variable (#991)

* No jira: util function for getting cursor value from next uri  (#990)

* moving changes (#960)

* Revert "moving changes (#960)" (#963)

This reverts commit 70d8a8036c52ae2f91aee081fe0d1c4c5451a58f.

* Release Merge to Main (#977)

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queue

* Removed log

* Add consistency checker back

* Fix group cache

* Fix Export cyclic deps (#968)

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Feat/devtooling-177: Refactored orgAuthorization_pairing  (#975)

* refactored orgauthorization_pairing

* Added exporter for response management response asset

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Fixed test

* using resource mutexes in init_test files & linting errors (#973)

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Feature/devtooling 63 (#978)

* Fix exports

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Charlie Conneely <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Fix Exporter for non-flow resources (#982)

* Fix Exporter for non-flow resources

* Added check (#981)

* Made function for parsing cursor from next uri

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: HemanthDogiparthi12 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Fix acceptance tests (#979)

* fix acceptance test

fix test

fix test

fix test

fix test

fix tests

fix tests

fix tests

fix tests

fix tests

fix test

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix tests

fix tests

restore files

fix team test

* fix comments

* fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

* fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

* fix tests

fix tests

fix tests

* fix tests

* fix conditional routing test

fix conditional routing test

---------

Co-authored-by: Monisha Padmavathi Ragavan <[email protected]>

* Bump hashicorp/setup-terraform from 3.0.0 to 3.1.0 (#995)

Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/setup-terraform/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improvise exclude attributes to Regex (#988)

* Fix Media call back Read Attributes (#987)

* DEVTOOLING-445: User Roles not returning duplicate roles (#989)

* NO-JIRA-Upgrading-Go-SDK

* Fixed errors

* Fixed conditional group routing

* Fixed some tests

* feat/Devtooling 496: Routing queue Outbound email address independent resource (#954)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Removed accidental commits

* Rebased and fixed errors

* Added evaluated_queue_id

* Fixed some things

* Added CGR and toggle

* Made some changes

* Added CGR toggle package

* Moved CGR toggle package

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Routing queue outbound email address package

* Made changes

* Added tests

* Added more to test

* Fixed test

* Finished resource

* Finished resource

* Made some requested changes

* Added feature toggle stuff

* Added feature toggle

* Made changes

* Fixing change in queue exporter

---------

Co-authored-by: HemanthDogiparthi12 <[email protected]>

* bug/devtooling-498: [CX as Code] genesyscloud_outbound_settings export contains only null data (#996)

* Fixing null export

* Fixing Test

* Added check for export

* Added attribute and fixed test

* Removed Computed attribute

* Added check for reschedule_time_zone_skipped_contacts in test

* Update Export Guide (#971)

* update export uide

* update tf_export.md and resource.tf

* cross check resource.tf and schema, add missing attributes

* update

* update export.md.tmp

* Removed duplicate paragraph and ran go generate

---------

Co-authored-by: Charlie Conneely <[email protected]>

* NO-JIRA: Fixing dev (#1000)

* Fixing dev

* Fixes some errors

* Fixing flow outcome description (#998)

* Devtooling 561 - Members not being added correctly to teams (#1001)

* Fixed bug

* Fixed problem deleting members

* Removed print

* Fix Version Problem in WebDeployments (#997)

* Fix Version Problem in WebDeployments

* Add test cases

* Fix review comments

* no jira: Fixing merge conflicts on dev branch  (#1009)

* moving changes (#960)

* Revert "moving changes (#960)" (#963)

This reverts commit 70d8a8036c52ae2f91aee081fe0d1c4c5451a58f.

* Release Merge to Main (#977)

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queue

* Removed log

* Add consistency checker back

* Fix group cache

* Fix Export cyclic deps (#968)

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Feat/devtooling-177: Refactored orgAuthorization_pairing  (#975)

* refactored orgauthorization_pairing

* Added exporter for response management response asset

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Fixed test

* using resource mutexes in init_test files & linting errors (#973)

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Feature/devtooling 63 (#978)

* Fix exports

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Charlie Conneely <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Fix Exporter for non-flow resources (#982)

* Fix Exporter for non-flow resources

* Added check (#981)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: HemanthDogiparthi12 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Bump github.com/hashicorp/terraform-plugin-docs from 0.19.1 to 0.19.2 (#1008)

* Bump github.com/hashicorp/terraform-plugin-docs from 0.19.1 to 0.19.2

Bumps [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) from 0.19.1 to 0.19.2.
- [Release notes](https://github.com/hashicorp/terraform-plugin-docs/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-docs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-docs/compare/v0.19.1...v0.19.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-docs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* ran go generate

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charlie Conneely <[email protected]>

* DEVTOOLING-352 - provider oauth credential rate limit exceeded (#1004)

* Testing something

* Adding retry

* Fixed retry

* Moved functionality to retries package

* Fixed inport cycle

* Extending sleep

* Added retry to AuthorizeSdk

* Using with retries

* Remving old function

* Feat/devtooling 461 - WithRetries errors include improved logging (#1012)

* calling diag func

* Changed retryable functions to call Diagnostic function

* Converted all withRetries errors to have improved wrapper

* Made requested Changes

* fixing unit test

* Bump golang.org/x/net from 0.23.0 to 0.25.0 (#1017)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.25.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix for issue 993 : Changed message_column to optional and add verification logic (#1013)

* Changed message_column to optional and add verification logic

* applied safer nil value handling

* go generate (#1018)

* bug/devtooling 560 - Nil error in telephony_providers_edges_phone (#1015)

* Removed Print Statement that throws Nil error and added random id to test to prevent failing

* golint changes made

* Revert "bug/devtooling 560 - Nil error in telephony_providers_edges_phone (#1…" (#1019)

This reverts commit 3ff66d472071905b18b4f66f6ee4b3d3725600e7.

* bug/devtooling 560 - CX as Code crash when creating phones (#1020)

* Removed Print Statement that throws Nil error and added random id to test to prevent failing

* golint changes made

* Made requested Change

* feat/devtooling 579 - Improved Logging for Non-API errors (#1021)

* Adding improved non-api diag errors

* Pulling Merged PR

* Added improved error

* Added more logging

* Ran go vet

* Updated docs

* Bump hashicorp/setup-terraform from 3.1.0 to 3.1.1 (#1024)

Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/setup-terraform/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* bug/devtooling 362 - Evaluation forms incorrectly assigning published attribute (#1022)

* Correctly sets published feature

* Added functionality to set published field correctly

* Fixed docs

* Bug/devtooling 444: Custom resolver function for outbound campaign script_id (#1014)

* Resolving campaign script_id to default outbound script data source when appropriate

* Created constants package

* editing scripts proxy so that the datasource catches Default scripts

* Finished writing tests for new campaign field custom resolver

* Fixed linting errors in campaigns package

* implemented caching for campaigns exporter

* minor changes to a comment

* Add deleteCacheItem func + some refactoring work

* Refactoring call to resolveToDataSource function and added unit test

* Fixing script data source test

* Bump github.com/nyaruka/phonenumbers from 1.3.4 to 1.3.5 (#1026)

Bumps [github.com/nyaruka/phonenumbers](https://github.com/nyaruka/phonenumbers) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/nyaruka/phonenumbers/releases)
- [Changelog](https://github.com/nyaruka/phonenumbers/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nyaruka/phonenumbers/compare/v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: github.com/nyaruka/phonenumbers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Devtooling-162: Refactored idp salesforce (#999)

* Refactored idp salesforce

* Fixing docs

* Changed function name

* Removed original file

* Changed Build Function Call to fix type difference (#1029)

* fixing test for published attribute (#1030)

* No jira: fixing up a few acceptance tests (#1031)

* fixed journey segment update

* Adding check to journey segment tests to validate is feature is supported

* preventing panic in export helper function

* Adding sleep to milestone data source test

* Cleaning up fmt.Print statements appearing in export tests

* undoing changes to segment resource file

* Fix routing queue (#1028)

* README update (#1025)

* Pre-verify if the tfState is in sync with the exporter (#1027)

* Add state comapartors

* Upddate review comments

* Devtooling-591: Consistency Checker Refactor (#1032)

* Moved where consistency checker is created in resources

* Cleaned up consitency checker file

* Added resource name to message

* Conditionally adding name

* Made requested changes

* Feature/devtooling 589 1 (#1035)

* update doc

* fix reviews

* Fix acceptance tests - TCA and Prod (#1033)

* Fix edge,export,script test,Jenkin to run tca&prod

* Fix export & integration tests

* Fix auth tests

Fix auth tests

* fix tests

* resolve conflicts

* move assignregion func, remove commented function

modify to return empty string - assignregion func

return default region

---------

Co-authored-by: Monisha Padmavathi Ragavan <[email protected]>

* Bug/devtooling 597 - Routing email route test failing  (#1039)

* Added call to cleanup function

* linter

* adding hotfix to pr labeler config file (#1042)

* bug/DEVTOOLING-436 - Added cleanup function for webdeployments resources (#1038)

* Added cleanup function for webdeployments resources

* fixing conflict

* Made requested changes

* Made requested changes

* Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.33.0 to 2.34.0 (#1047)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.33.0 to 2.34.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.33.0...v2.34.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bug/devtooling 287 temp disable cchecker (#1037)

* removed consistency checker

* changed DID number

* phoneUpdated

* Merging dev to main for v1.38.0 (#1036)

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queue

* Removed log

* Add consistency checker back

* Fix group cache

* Fix Export cyclic deps (#968)

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Feat/devtooling-177: Refactored orgAuthorization_pairing  (#975)

* refactored orgauthorization_pairing

* Added exporter for response management response asset

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Fixed test

* using resource mutexes in init_test files & linting errors (#973)

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Feature/devtooling 63 (#978)

* Fix exports

* Feat/add flow log level resource (#948)

* add code changes

* add flow log level changes

* testing commit

* getting there, have a create test together

* still trying to get a passing test

* tests have passed! but getting the plan was not empty errors now

* flow log level test

* finally got tests passing

* remove debug logging

* rerun go generate

* rerun go generate

* apply suggestions from PR review

* address PR review

* remove characteristics

* address PR comments

* return total flow log levels when no more are found

---------

Co-authored-by: dginty4 <[email protected]>

* NO-JIRA: Small Change to flow log level (#984)

* Small Change to flow log level

* Fixing typo

* Merge hotfix changes on main into dev (#983)

* moving changes (#960)

* Revert "moving changes (#960)" (#963)

This reverts commit 70d8a8036c52ae2f91aee081fe0d1c4c5451a58f.

* Release Merge to Main (#977)

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queue

* Removed log

* Add consistency checker back

* Fix group cache

* Fix Export cyclic deps (#968)

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Feat/devtooling-177: Refactored orgAuthorization_pairing  (#975)

* refactored orgauthorization_pairing

* Added exporter for response management response asset

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Fixed test

* using resource mutexes in init_test files & linting errors (#973)

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Feature/devtooling 63 (#978)

* Fix exports

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Charlie Conneely <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Fix Exporter for non-flow resources (#982)

* Fix Exporter for non-flow resources

* Added check (#981)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: HemanthDogiparthi12 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Bump github.com/hashicorp/terraform-plugin-docs from 0.18.0 to 0.19.1 (#992)

* Bump github.com/hashicorp/terraform-plugin-docs from 0.18.0 to 0.19.1

Bumps [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) from 0.18.0 to 0.19.1.
- [Release notes](https://github.com/hashicorp/terraform-plugin-docs/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-docs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-docs/compare/v0.18.0...v0.19.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-docs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* rerunning go generate after tf-docs package upgrade

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charlie Conneely <[email protected]>

* Devtooling 432: Conditonal Group Routing (#970)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Added CGR and toggle

* Fixed some errors

* Added queue proxy to CGR

* Added toggle to get all

* Made some changes

* Added CGR toggle package

* Moved CGR toggle package

* Ran linter

* Checking queue id in tests

* Small change

* bug/Devtooling-458: media retention policy creation failing with error on time interval (#980)

* added checks

* Checks for time interval attributes

* Fixing TimeInterval

* Added BuildFunc for timeInterval

* Added returned errors for invalid time Interval

* Fixed buildFunctions

* Generate Docs

* Fixed exporter

* Getting rid of go vet warning about copying a lock value to a variable (#991)

* No jira: util function for getting cursor value from next uri  (#990)

* moving changes (#960)

* Revert "moving changes (#960)" (#963)

This reverts commit 70d8a8036c52ae2f91aee081fe0d1c4c5451a58f.

* Release Merge to Main (#977)

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queue

* Removed log

* Add consistency checker back

* Fix group cache

* Fix Export cyclic deps (#968)

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Feat/devtooling-177: Refactored orgAuthorization_pairing  (#975)

* refactored orgauthorization_pairing

* Added exporter for response management response asset

* Added refactor label to pr-labeler-config

* Feat/devtooling-499: Added getAll Functionality to ResponseManagement_ResponseAsset (#969)

* adding getALl functionality

* adding exporter

* adding export

* Added getAll functionality

* Update go.mod

* Added Caching

* Added file_content_hash

* Fixed test

* using resource mutexes in init_test files & linting errors (#973)

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Feature/devtooling 63 (#978)

* Fix exports

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Charlie Conneely <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Fix Exporter for non-flow resources (#982)

* Fix Exporter for non-flow resources

* Added check (#981)

* Made function for parsing cursor from next uri

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kavinbalagen <[email protected]>
Co-authored-by: HemanthDogiparthi12 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dginty4 <[email protected]>
Co-authored-by: Brian Moyles <[email protected]>
Co-authored-by: carnellj-genesys <[email protected]>
Co-authored-by: BrianMoyles <[email protected]>

* Fix acceptance tests (#979)

* fix acceptance test

fix test

fix test

fix test

fix test

fix tests

fix tests

fix tests

fix tests

fix tests

fix test

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix routing test

fix tests

fix tests

restore files

fix team test

* fix comments

* fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

* fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

fix tests

* fix tests

fix tests

fix tests

* fix tests

* fix conditional routing test

fix conditional routing test

---------

Co-authored-by: Monisha Padmavathi Ragavan <[email protected]>

* Bump hashicorp/setup-terraform from 3.0.0 to 3.1.0 (#995)

Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/setup-terraform/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improvise exclude attributes to Regex (#988)

* Fix Media call back Read Attributes (#987)

* DEVTOOLING-445: User Roles not returning duplicate roles (#989)

* NO-JIRA-Upgrading-Go-SDK

* Fixed errors

* Fixed conditional group routing

* Fixed some tests

* feat/Devtooling 496: Routing queue Outbound email address independent resource (#954)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Removed accidental commits

* Rebased and fixed errors

* Added evaluated_queue_id

* Fixed some things

* Added CGR and toggle

* Made some changes

* Added CGR toggle package

* Moved CGR toggle package

* Feature/devtooling 63 (#974)

* Introduce new Elements

* Update Attribs

* Introduce scoring Method

* Upgrade ssdk

* remove unwanted logs

* Routing queue outbound email address package

* Made changes

* Added tests

* Added more to test

* Fixed test

* Finished resource

* Finished resource

* Made some requested changes

* Added feature toggle stuff

* Added feature toggle

* Made changes

* Fixing change in queue exporter

---------

Co-authored-by: HemanthDogiparthi12 <[email protected]>

* bug/devtooling-498: [CX as Code] genesyscloud_outbound_settings export contains only null data (#996)

* Fixing null export

* Fixing Test

* Added check for export

* Added attribute and fixed test

* Removed Computed attribute

* Added check for reschedule_time_zone_skipped_contacts in test

* Update Export Guide (#971)

* update export uide

* update tf_export.md and resource.tf

* cross check resource.tf and schema, add missing attributes

* update

* update export.md.tmp

* Removed duplicate paragraph and ran go generate

---------

Co-authored-by: Charlie Conneely <[email protected]>

* NO-JIRA: Fixing dev (#1000)

* Fixing dev

* Fixes some errors

* Fixing flow outcome description (#998)

* Devtooling 561 - Members not being added correctly to teams (#1001)

* Fixed bug

* Fixed problem deleting members

* Removed print

* Fix Version Problem in WebDeployments (#997)

* Fix Version Problem in WebDeployments

* Add test cases

* Fix review comments

* no jira: Fixing merge conflicts on dev branch  (#1009)

* moving changes (#960)

* Revert "moving changes (#960)" (#963)

This reverts commit 70d8a8036c52ae2f91aee081fe0d1c4c5451a58f.

* Release Merge to Main (#977)

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#951)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add team to custom resolver (#950)

* Devtooling 432: Refactor Conditional Group Routing Rules into its own resource (#921)

* Added routing_queue_conditional_group_routing resource

* Rebased

* Fixed routing queue tests

* Removed accidental commits

* Rebased and fixed errors

* Made some requested changes

* Added evaluated_queue_id

* Added warning

* Fixed some things

* Fixed test

* Fixing exporter

* Fixed type

* Changing target branch of dependabot PRs to dev (#956)

* Fix User Resource Panics (#949)

* moving changes (#964)

* Reverting conditional group routing resoure (#965)

* Remove use_supported_content_profile (#962)

* bug/ DEVTOOLING-516: Allow Multiple inputs for BYMONTHDAY and BYMONTH (#953)

* Allow Multiple inputs for BYMONTHDAY and BYMONTH

* Update go.mod

* Added Error Message to Validator

* Bug/devtooling-530: Fixing panic during export caused by MemberGroupsResolver (#957)

* Changing groups.owner_ids to optional and computed

* Preventing panic inside MemberGroupsResolver with some refactoring

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag… (#946)

* DEVTOOLING-417: Removed the go:generate git restore docs/index.md tag.  This is pulling the index.md out of git hub and overriding what ever is being generated.

* DEVTOOLING-417: Fixed a mispelling in a package alias

* DEVTOOLING-417 Accidently added cache code

* avoiding infinite loop in flow data source read (#966)

* feat/Devtooling-448 oauth cred cache (#945)

* DEVTOOLING-448:  Initial commit of code

* DEVTOOLING-448:  Added caching while creating a Genesys Cloud OAuth Client specific so we dont have to force the user embed a secret

* DEVTOOLING-448: Refactored retrieveCachedOauthClientSecret code

* DEVTOOLING-448: Committing interm work

* DEVTOOLING-448:  Reworked how we handle the addition of roles for user credentials

* DEVTOOLING-448: Removed the ToPtrStr function

* Fixing go.mod and running go generate (#967)

* feat/Devtooling-459: Added BuildAPIDiagnosticError function calls (#959)

* added buildDiag function p1

* Adding call to BuildApiDiag

* BuildAPIDiag functions added

* Added util.BuildAPIDiag function to refactored resources

* Added call to BuildAPIDiag in resources

* Update go.mod

* Fixed tests

* Update go.mod

* Added err

* Added err

* Update go.mod

* Requested Changes

* Fix for BotFlows dependencies (#961)

* feat/Devtooling-531: Add proxy and cache to routing queue (#958)

* Added cache to routing queue

* Added proxy and caching to routing queu…
  • Loading branch information
1 parent 0ecdafb commit 8972cd7
Show file tree
Hide file tree
Showing 111 changed files with 3,071 additions and 818 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/go-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: go

- name: Setup Terraform CLI
uses: hashicorp/[email protected].1
uses: hashicorp/[email protected].2
with:
terraform_wrapper: false
terraform_version: ${{ matrix.terraform }}
Expand Down Expand Up @@ -45,6 +45,17 @@ jobs:
git status
exit 1
fi
- name: Fmt
run: |
go fmt ./genesyscloud/...
if [[ -n $(git status -s) ]]; then
echo "go fmt produced changes:\n"
git status
echo "Please run 'go fmt ./genesyscloud/...' with go version 1.20 and commit these changes."
exit 1
fi
- name: Vet
run: |
Expand Down
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_integrations_instagram Data Source - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Genesys Cloud conversations messaging integrations instagram data source. Select an conversations messaging integrations instagram by name
---

# genesyscloud_conversations_messaging_integrations_instagram (Data Source)

Genesys Cloud conversations messaging integrations instagram data source. Select an conversations messaging integrations instagram by name

## Example Usage

```terraform
data "genesyscloud_conversations_messaging_integrations_instagram" "integration_instagram" {
name = "integration_instagram data"
}
```

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

### Required

- `name` (String) conversations messaging integrations instagram name

### Read-Only

- `id` (String) The ID of this resource.
4 changes: 2 additions & 2 deletions docs/data-sources/telephony_providers_edges_did.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "genesyscloud_telephony_providers_edges_did Data Source - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Data source for Genesys Cloud DID. The identifier is the E-164 phone number.
Data source for Genesys Cloud DID. The identifier is the E.164 phone number.
---

# genesyscloud_telephony_providers_edges_did (Data Source)

Data source for Genesys Cloud DID. The identifier is the E-164 phone number.
Data source for Genesys Cloud DID. The identifier is the E.164 phone number.

## Example Usage

Expand Down
54 changes: 54 additions & 0 deletions docs/resources/conversations_messaging_integrations_instagram.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
page_title: "genesyscloud_conversations_messaging_integrations_instagram Resource - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Genesys Cloud conversations messaging integrations instagram
---
# genesyscloud_conversations_messaging_integrations_instagram (Resource)

Genesys Cloud conversations messaging integrations instagram

## 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/integrations/instagram](https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-conversations-messaging-integrations-instagram)
* [GET /api/v2/conversations/messaging/integrations/instagram/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-integrations-instagram--integrationId-)
* [PATCH /api/v2/conversations/messaging/integrations/instagram/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-conversations-messaging-integrations-instagram--integrationId-)
* [DELETE /api/v2/conversations/messaging/integrations/instagram/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#delete-api-v2-conversations-messaging-integrations-instagram--integrationId-)
* [GET /api/v2/conversations/messaging/integrations/instagram](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-integrations-instagram)



## Example Usage

```terraform
resource "genesyscloud_conversations_messaging_integrations_instagram" "test_sample" {
name = "Test Integration Instagram"
user_access_token = "1234567890"
page_id = "1"
messaging_setting_id = genesyscloud_conversations_messaging_settings.settings.id
supported_content_id = genesyscloud_conversations_messaging_supportedcontent.content.id
}
```

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

### Required

- `name` (String) The name of the Instagram Integration

### Optional

- `app_id` (String) The app ID of Facebook app. The appId is required when a customer wants to use their own approved Facebook app.
- `app_secret` (String) The app Secret of Facebook app. The appSecret is required when appId is provided.
- `messaging_setting_id` (String) Messaging Setting for messaging platform integrations
- `page_access_token` (String) The long-lived Page Access Token of Instagram page. See https://developers.facebook.com/docs/facebook-login/access-tokens. When a pageAccessToken is provided, pageId and userAccessToken are not required.
- `page_id` (String) The page ID of Instagram page. The pageId is required when userAccessToken is provided.
- `supported_content_id` (String) Reference to supported content profile associated with the integration
- `user_access_token` (String) The short-lived User Access Token of Instagram user logged into Facebook app. See https://developers.facebook.com/docs/facebook-login/access-tokens. When userAccessToken is provided, pageId is mandatory. When userAccessToken/pageId combination is provided, pageAccessToken is not required.

### Read-Only

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

2 changes: 1 addition & 1 deletion docs/resources/responsemanagement_responseasset.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "genesyscloud_responsemanagement_responseasset" "asset" {
### Required

- `file_content_hash` (String) Hash value of the response asset file content. Used to detect changes.
- `filename` (String) Name of the file to upload. Changing the name attribute will cause the existing response asset to be dropped and recreated with a new ID. It must not start with a dot and not end with a forward slash. Whitespace and the following characters are not allowed: \{^}%`]">[~<#|
- `filename` (String) Name of the file to upload. Changing the name attribute will cause the existing response asset to be dropped and recreated with a new ID. It must not start with a dot and not end with a forward slash. The following characters are not allowed: \{^}%`]">[~<#|

### Optional

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/routing_queue_outbound_email_address.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The following Genesys Cloud APIs are used by this resource. Ensure your OAuth Cl

```terraform
// To enable this resource, set ENABLE_STANDALONE_EMAIL_ADDRESS as an environment variable
resource "genesyscloud_routing_queue_conditional_group_routing" "example-name" {
resource "genesyscloud_routing_queue_outbound_email_address" "example-name" {
queue_id = genesyscloud_routing_queue.example-queue.id
domain_id = genesyscloud_routing_email_domain.main.id
route_id = genesyscloud_routing_email_route.support.id
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "genesyscloud_conversations_messaging_integrations_instagram" "integration_instagram" {
name = "integration_instagram data"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* [POST /api/v2/conversations/messaging/integrations/instagram](https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-conversations-messaging-integrations-instagram)
* [GET /api/v2/conversations/messaging/integrations/instagram/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-integrations-instagram--integrationId-)
* [PATCH /api/v2/conversations/messaging/integrations/instagram/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-conversations-messaging-integrations-instagram--integrationId-)
* [DELETE /api/v2/conversations/messaging/integrations/instagram/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#delete-api-v2-conversations-messaging-integrations-instagram--integrationId-)
* [GET /api/v2/conversations/messaging/integrations/instagram](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-integrations-instagram)

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "genesyscloud_conversations_messaging_integrations_instagram" "test_sample" {
name = "Test Integration Instagram"
user_access_token = "1234567890"
page_id = "1"
messaging_setting_id = genesyscloud_conversations_messaging_settings.settings.id
supported_content_id = genesyscloud_conversations_messaging_supportedcontent.content.id
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// To enable this resource, set ENABLE_STANDALONE_EMAIL_ADDRESS as an environment variable
resource "genesyscloud_routing_queue_conditional_group_routing" "example-name" {
resource "genesyscloud_routing_queue_outbound_email_address" "example-name" {
queue_id = genesyscloud_routing_queue.example-queue.id
domain_id = genesyscloud_routing_email_domain.main.id
route_id = genesyscloud_routing_email_route.support.id
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ func readIvrConfig(ctx context.Context, d *schema.ResourceData, meta interface{}
}

_ = d.Set("name", *ivrConfig.Name)
_ = d.Set("dnis", lists.StringListToSetOrNil(ivrConfig.Dnis))
if ivrConfig.Dnis == nil || *ivrConfig.Dnis == nil {
_ = d.Set("dnis", nil)
} else {
utilE164 := util.NewUtilE164Service()
dnis := lists.Map(*ivrConfig.Dnis, utilE164.FormatAsCalculatedE164Number)
_ = d.Set("dnis", lists.StringListToSetOrNil(&dnis))
}

resourcedata.SetNillableValue(d, "description", ivrConfig.Description)
resourcedata.SetNillableReference(d, "open_hours_flow_id", ivrConfig.OpenHoursFlow)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestUnitResourceArchitectRead(t *testing.T) {
tId := uuid.NewString()
tName := "My Unit Test IVR"
tDescription := "My Unit Test IVR"
tDnis := []string{"+920-555-2902", "+920-321-5463"}
tDnis := []string{"+192055529", "+192032154"}
tIDnis := make([]interface{}, len(tDnis))
for i, v := range tDnis {
tIDnis[i] = v
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestUnitResourceArchitectDeleteStandard(t *testing.T) {
tId := uuid.NewString()
tName := "My Unit Test IVR"
tDescription := "My Unit Test IVR"
tDnis := []string{"+920-555-2902", "+920-321-5463"}
tDnis := []string{"+192055529", "+192032154"}
tIDnis := make([]interface{}, len(tDnis))
for i, v := range tDnis {
tIDnis[i] = v
Expand Down Expand Up @@ -135,7 +135,7 @@ func TestUnitResourceArchitectDeleteSoftDelete(t *testing.T) {
tId := uuid.NewString()
tName := "My Unit Test IVR"
tDescription := "My Unit Test IVR"
tDnis := []string{"+920-555-2902", "+920-321-5463"}
tDnis := []string{"+192055529", "+192032154"}
tIDnis := make([]interface{}, len(tDnis))
for i, v := range tDnis {
tIDnis[i] = v
Expand Down Expand Up @@ -199,7 +199,7 @@ func TestUnitResourceArchitectCreate(t *testing.T) {
tId := uuid.NewString()
tName := "My Unit Test IVR"
tDescription := "My Unit Test IVR"
tDnis := []string{"+920-555-2902", "+920-321-5463"}
tDnis := []string{"+192055529", "+192032154"}
tIDnis := make([]interface{}, len(tDnis))
for i, v := range tDnis {
tIDnis[i] = v
Expand Down Expand Up @@ -270,7 +270,7 @@ func TestUnitResourceArchitectUpdate(t *testing.T) {
tId := uuid.NewString()
tName := "My Unit Test IVR"
tDescription := "My updated Unit Test IVR"
tDnis := []string{"+920-555-2902", "+920-321-5463"}
tDnis := []string{"+192055529", "+192032154"}
tIDnis := make([]interface{}, len(tDnis))
for i, v := range tDnis {
tIDnis[i] = v
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type createOrUpdateArchitectUserPromptResourcesFunc func(context.Context, *archi
type updateArchitectUserPromptResourceFunc func(ctx context.Context, p *architectUserPromptProxy, id string, languageCode string, body platformclientv2.Promptasset) (*platformclientv2.Promptasset, *platformclientv2.APIResponse, error)
type getArchitectUserPromptIdByNameFunc func(ctx context.Context, p *architectUserPromptProxy, name string) (string, *platformclientv2.APIResponse, error, bool)
type uploadPromptFileFunc func(ctx context.Context, p *architectUserPromptProxy, uploadUri, filename string) error
type getArchitectUserPromptResourcesFunc func(ctx context.Context, p *architectUserPromptProxy, promptId string) (*[]platformclientv2.Promptasset, *platformclientv2.APIResponse, error)

// ArchitectUserPromptProxy - proxy for Architect User Prompts
type architectUserPromptProxy struct {
Expand All @@ -45,6 +46,7 @@ type architectUserPromptProxy struct {
createOrUpdateArchitectUserPromptResourcesAttr createOrUpdateArchitectUserPromptResourcesFunc
getArchitectUserPromptIdByNameAttr getArchitectUserPromptIdByNameFunc
uploadPromptFileAttr uploadPromptFileFunc
getArchitectUserPromptResourcesAttr getArchitectUserPromptResourcesFunc
promptCache rc.CacheInterface[platformclientv2.Prompt]
}

Expand All @@ -64,6 +66,7 @@ func newArchitectUserPromptProxy(clientConfig *platformclientv2.Configuration) *
createOrUpdateArchitectUserPromptResourcesAttr: createOrUpdateArchitectUserPromptResourcesFn,
getArchitectUserPromptIdByNameAttr: getArchitectUserPromptIdByNameFn,
uploadPromptFileAttr: uploadPromptFileFn,
getArchitectUserPromptResourcesAttr: getArchitectUserPromptResourcesFn,
promptCache: promptCache,
}
}
Expand Down Expand Up @@ -120,6 +123,10 @@ func (p *architectUserPromptProxy) getArchitectUserPromptIdByName(ctx context.Co
return p.getArchitectUserPromptIdByNameAttr(ctx, p, name)
}

func (p *architectUserPromptProxy) getArchitectUserPromptResources(ctx context.Context, promptId string) (*[]platformclientv2.Promptasset, *platformclientv2.APIResponse, error) {
return p.getArchitectUserPromptResourcesAttr(ctx, p, promptId)
}

func (p *architectUserPromptProxy) uploadPromptFile(ctx context.Context, uploadUri, filename string) error {
return p.uploadPromptFileAttr(ctx, p, uploadUri, filename)
}
Expand Down Expand Up @@ -229,6 +236,33 @@ func createOrUpdateArchitectUserPromptResourcesFn(ctx context.Context, p *archit
return p.verifyPromptResourceFilesAreTranscoded(ctx, promptId, allLanguages)
}

func getArchitectUserPromptResourcesFn(ctx context.Context, p *architectUserPromptProxy, promptId string) (*[]platformclientv2.Promptasset, *platformclientv2.APIResponse, error) {
const pageSize = 100
var allResources []platformclientv2.Promptasset

data, resp, err := p.architectApi.GetArchitectPromptResources(promptId, 1, pageSize)
if err != nil {
return nil, resp, err
}
if data.Entities == nil || len(*data.Entities) == 0 {
return nil, nil, nil
}
allResources = append(allResources, *data.Entities...)

for pageNum := 2; pageNum <= *data.PageCount; pageNum++ {
data, resp, err := p.architectApi.GetArchitectPromptResources(promptId, pageNum, pageSize)
if err != nil {
return nil, resp, err
}
if data.Entities == nil || len(*data.Entities) == 0 {
break
}
allResources = append(allResources, *data.Entities...)
}

return &allResources, nil, nil
}

func (p *architectUserPromptProxy) verifyPromptResourceFilesAreTranscoded(ctx context.Context, promptId string, languages []string) (*platformclientv2.APIResponse, error) {
var response *platformclientv2.APIResponse

Expand Down
Loading

0 comments on commit 8972cd7

Please sign in to comment.