{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AlexaBusiness.Types.SkillDetails
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AlexaBusiness.Types.SkillDetails where

import Amazonka.AlexaBusiness.Types.DeveloperInfo
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Granular information about the skill.
--
-- /See:/ 'newSkillDetails' smart constructor.
data SkillDetails = SkillDetails'
  { -- | The types of skills.
    SkillDetails -> Maybe [Text]
skillTypes :: Prelude.Maybe [Prelude.Text],
    -- | The description of the product.
    SkillDetails -> Maybe Text
productDescription :: Prelude.Maybe Prelude.Text,
    -- | The phrase used to trigger the skill.
    SkillDetails -> Maybe Text
invocationPhrase :: Prelude.Maybe Prelude.Text,
    -- | The details about the developer that published the skill.
    SkillDetails -> Maybe DeveloperInfo
developerInfo :: Prelude.Maybe DeveloperInfo,
    -- | The URL of the end user license agreement.
    SkillDetails -> Maybe Text
endUserLicenseAgreement :: Prelude.Maybe Prelude.Text,
    -- | The generic keywords associated with the skill that can be used to find
    -- a skill.
    SkillDetails -> Maybe [Text]
genericKeywords :: Prelude.Maybe [Prelude.Text],
    -- | /This member has been deprecated./
    --
    -- The list of reviews for the skill, including Key and Value pair.
    SkillDetails -> Maybe (HashMap Text Text)
reviews :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The date when the skill was released.
    SkillDetails -> Maybe Text
releaseDate :: Prelude.Maybe Prelude.Text,
    -- | The updates added in bullet points.
    SkillDetails -> Maybe [Text]
newInThisVersionBulletPoints' :: Prelude.Maybe [Prelude.Text],
    -- | The details about what the skill supports organized as bullet points.
    SkillDetails -> Maybe [Text]
bulletPoints :: Prelude.Maybe [Prelude.Text]
  }
  deriving (SkillDetails -> SkillDetails -> Bool
(SkillDetails -> SkillDetails -> Bool)
-> (SkillDetails -> SkillDetails -> Bool) -> Eq SkillDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SkillDetails -> SkillDetails -> Bool
$c/= :: SkillDetails -> SkillDetails -> Bool
== :: SkillDetails -> SkillDetails -> Bool
$c== :: SkillDetails -> SkillDetails -> Bool
Prelude.Eq, ReadPrec [SkillDetails]
ReadPrec SkillDetails
Int -> ReadS SkillDetails
ReadS [SkillDetails]
(Int -> ReadS SkillDetails)
-> ReadS [SkillDetails]
-> ReadPrec SkillDetails
-> ReadPrec [SkillDetails]
-> Read SkillDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SkillDetails]
$creadListPrec :: ReadPrec [SkillDetails]
readPrec :: ReadPrec SkillDetails
$creadPrec :: ReadPrec SkillDetails
readList :: ReadS [SkillDetails]
$creadList :: ReadS [SkillDetails]
readsPrec :: Int -> ReadS SkillDetails
$creadsPrec :: Int -> ReadS SkillDetails
Prelude.Read, Int -> SkillDetails -> ShowS
[SkillDetails] -> ShowS
SkillDetails -> String
(Int -> SkillDetails -> ShowS)
-> (SkillDetails -> String)
-> ([SkillDetails] -> ShowS)
-> Show SkillDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SkillDetails] -> ShowS
$cshowList :: [SkillDetails] -> ShowS
show :: SkillDetails -> String
$cshow :: SkillDetails -> String
showsPrec :: Int -> SkillDetails -> ShowS
$cshowsPrec :: Int -> SkillDetails -> ShowS
Prelude.Show, (forall x. SkillDetails -> Rep SkillDetails x)
-> (forall x. Rep SkillDetails x -> SkillDetails)
-> Generic SkillDetails
forall x. Rep SkillDetails x -> SkillDetails
forall x. SkillDetails -> Rep SkillDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SkillDetails x -> SkillDetails
$cfrom :: forall x. SkillDetails -> Rep SkillDetails x
Prelude.Generic)

-- |
-- Create a value of 'SkillDetails' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'skillTypes', 'skillDetails_skillTypes' - The types of skills.
--
-- 'productDescription', 'skillDetails_productDescription' - The description of the product.
--
-- 'invocationPhrase', 'skillDetails_invocationPhrase' - The phrase used to trigger the skill.
--
-- 'developerInfo', 'skillDetails_developerInfo' - The details about the developer that published the skill.
--
-- 'endUserLicenseAgreement', 'skillDetails_endUserLicenseAgreement' - The URL of the end user license agreement.
--
-- 'genericKeywords', 'skillDetails_genericKeywords' - The generic keywords associated with the skill that can be used to find
-- a skill.
--
-- 'reviews', 'skillDetails_reviews' - /This member has been deprecated./
--
-- The list of reviews for the skill, including Key and Value pair.
--
-- 'releaseDate', 'skillDetails_releaseDate' - The date when the skill was released.
--
-- 'newInThisVersionBulletPoints'', 'skillDetails_newInThisVersionBulletPoints' - The updates added in bullet points.
--
-- 'bulletPoints', 'skillDetails_bulletPoints' - The details about what the skill supports organized as bullet points.
newSkillDetails ::
  SkillDetails
newSkillDetails :: SkillDetails
newSkillDetails =
  SkillDetails' :: Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe DeveloperInfo
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> SkillDetails
SkillDetails'
    { $sel:skillTypes:SkillDetails' :: Maybe [Text]
skillTypes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:productDescription:SkillDetails' :: Maybe Text
productDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:invocationPhrase:SkillDetails' :: Maybe Text
invocationPhrase = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:developerInfo:SkillDetails' :: Maybe DeveloperInfo
developerInfo = Maybe DeveloperInfo
forall a. Maybe a
Prelude.Nothing,
      $sel:endUserLicenseAgreement:SkillDetails' :: Maybe Text
endUserLicenseAgreement = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:genericKeywords:SkillDetails' :: Maybe [Text]
genericKeywords = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:reviews:SkillDetails' :: Maybe (HashMap Text Text)
reviews = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:releaseDate:SkillDetails' :: Maybe Text
releaseDate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:newInThisVersionBulletPoints':SkillDetails' :: Maybe [Text]
newInThisVersionBulletPoints' = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:bulletPoints:SkillDetails' :: Maybe [Text]
bulletPoints = Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | The types of skills.
skillDetails_skillTypes :: Lens.Lens' SkillDetails (Prelude.Maybe [Prelude.Text])
skillDetails_skillTypes :: (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails -> f SkillDetails
skillDetails_skillTypes = (SkillDetails -> Maybe [Text])
-> (SkillDetails -> Maybe [Text] -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe [Text]
skillTypes :: Maybe [Text]
$sel:skillTypes:SkillDetails' :: SkillDetails -> Maybe [Text]
skillTypes} -> Maybe [Text]
skillTypes) (\s :: SkillDetails
s@SkillDetails' {} Maybe [Text]
a -> SkillDetails
s {$sel:skillTypes:SkillDetails' :: Maybe [Text]
skillTypes = Maybe [Text]
a} :: SkillDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> SkillDetails -> f SkillDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails
-> f SkillDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The description of the product.
skillDetails_productDescription :: Lens.Lens' SkillDetails (Prelude.Maybe Prelude.Text)
skillDetails_productDescription :: (Maybe Text -> f (Maybe Text)) -> SkillDetails -> f SkillDetails
skillDetails_productDescription = (SkillDetails -> Maybe Text)
-> (SkillDetails -> Maybe Text -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe Text
productDescription :: Maybe Text
$sel:productDescription:SkillDetails' :: SkillDetails -> Maybe Text
productDescription} -> Maybe Text
productDescription) (\s :: SkillDetails
s@SkillDetails' {} Maybe Text
a -> SkillDetails
s {$sel:productDescription:SkillDetails' :: Maybe Text
productDescription = Maybe Text
a} :: SkillDetails)

-- | The phrase used to trigger the skill.
skillDetails_invocationPhrase :: Lens.Lens' SkillDetails (Prelude.Maybe Prelude.Text)
skillDetails_invocationPhrase :: (Maybe Text -> f (Maybe Text)) -> SkillDetails -> f SkillDetails
skillDetails_invocationPhrase = (SkillDetails -> Maybe Text)
-> (SkillDetails -> Maybe Text -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe Text
invocationPhrase :: Maybe Text
$sel:invocationPhrase:SkillDetails' :: SkillDetails -> Maybe Text
invocationPhrase} -> Maybe Text
invocationPhrase) (\s :: SkillDetails
s@SkillDetails' {} Maybe Text
a -> SkillDetails
s {$sel:invocationPhrase:SkillDetails' :: Maybe Text
invocationPhrase = Maybe Text
a} :: SkillDetails)

-- | The details about the developer that published the skill.
skillDetails_developerInfo :: Lens.Lens' SkillDetails (Prelude.Maybe DeveloperInfo)
skillDetails_developerInfo :: (Maybe DeveloperInfo -> f (Maybe DeveloperInfo))
-> SkillDetails -> f SkillDetails
skillDetails_developerInfo = (SkillDetails -> Maybe DeveloperInfo)
-> (SkillDetails -> Maybe DeveloperInfo -> SkillDetails)
-> Lens
     SkillDetails
     SkillDetails
     (Maybe DeveloperInfo)
     (Maybe DeveloperInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe DeveloperInfo
developerInfo :: Maybe DeveloperInfo
$sel:developerInfo:SkillDetails' :: SkillDetails -> Maybe DeveloperInfo
developerInfo} -> Maybe DeveloperInfo
developerInfo) (\s :: SkillDetails
s@SkillDetails' {} Maybe DeveloperInfo
a -> SkillDetails
s {$sel:developerInfo:SkillDetails' :: Maybe DeveloperInfo
developerInfo = Maybe DeveloperInfo
a} :: SkillDetails)

-- | The URL of the end user license agreement.
skillDetails_endUserLicenseAgreement :: Lens.Lens' SkillDetails (Prelude.Maybe Prelude.Text)
skillDetails_endUserLicenseAgreement :: (Maybe Text -> f (Maybe Text)) -> SkillDetails -> f SkillDetails
skillDetails_endUserLicenseAgreement = (SkillDetails -> Maybe Text)
-> (SkillDetails -> Maybe Text -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe Text
endUserLicenseAgreement :: Maybe Text
$sel:endUserLicenseAgreement:SkillDetails' :: SkillDetails -> Maybe Text
endUserLicenseAgreement} -> Maybe Text
endUserLicenseAgreement) (\s :: SkillDetails
s@SkillDetails' {} Maybe Text
a -> SkillDetails
s {$sel:endUserLicenseAgreement:SkillDetails' :: Maybe Text
endUserLicenseAgreement = Maybe Text
a} :: SkillDetails)

-- | The generic keywords associated with the skill that can be used to find
-- a skill.
skillDetails_genericKeywords :: Lens.Lens' SkillDetails (Prelude.Maybe [Prelude.Text])
skillDetails_genericKeywords :: (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails -> f SkillDetails
skillDetails_genericKeywords = (SkillDetails -> Maybe [Text])
-> (SkillDetails -> Maybe [Text] -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe [Text]
genericKeywords :: Maybe [Text]
$sel:genericKeywords:SkillDetails' :: SkillDetails -> Maybe [Text]
genericKeywords} -> Maybe [Text]
genericKeywords) (\s :: SkillDetails
s@SkillDetails' {} Maybe [Text]
a -> SkillDetails
s {$sel:genericKeywords:SkillDetails' :: Maybe [Text]
genericKeywords = Maybe [Text]
a} :: SkillDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> SkillDetails -> f SkillDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails
-> f SkillDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | /This member has been deprecated./
--
-- The list of reviews for the skill, including Key and Value pair.
skillDetails_reviews :: Lens.Lens' SkillDetails (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
skillDetails_reviews :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> SkillDetails -> f SkillDetails
skillDetails_reviews = (SkillDetails -> Maybe (HashMap Text Text))
-> (SkillDetails -> Maybe (HashMap Text Text) -> SkillDetails)
-> Lens
     SkillDetails
     SkillDetails
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe (HashMap Text Text)
reviews :: Maybe (HashMap Text Text)
$sel:reviews:SkillDetails' :: SkillDetails -> Maybe (HashMap Text Text)
reviews} -> Maybe (HashMap Text Text)
reviews) (\s :: SkillDetails
s@SkillDetails' {} Maybe (HashMap Text Text)
a -> SkillDetails
s {$sel:reviews:SkillDetails' :: Maybe (HashMap Text Text)
reviews = Maybe (HashMap Text Text)
a} :: SkillDetails) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> SkillDetails -> f SkillDetails)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> SkillDetails
-> f SkillDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The date when the skill was released.
skillDetails_releaseDate :: Lens.Lens' SkillDetails (Prelude.Maybe Prelude.Text)
skillDetails_releaseDate :: (Maybe Text -> f (Maybe Text)) -> SkillDetails -> f SkillDetails
skillDetails_releaseDate = (SkillDetails -> Maybe Text)
-> (SkillDetails -> Maybe Text -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe Text
releaseDate :: Maybe Text
$sel:releaseDate:SkillDetails' :: SkillDetails -> Maybe Text
releaseDate} -> Maybe Text
releaseDate) (\s :: SkillDetails
s@SkillDetails' {} Maybe Text
a -> SkillDetails
s {$sel:releaseDate:SkillDetails' :: Maybe Text
releaseDate = Maybe Text
a} :: SkillDetails)

-- | The updates added in bullet points.
skillDetails_newInThisVersionBulletPoints :: Lens.Lens' SkillDetails (Prelude.Maybe [Prelude.Text])
skillDetails_newInThisVersionBulletPoints :: (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails -> f SkillDetails
skillDetails_newInThisVersionBulletPoints = (SkillDetails -> Maybe [Text])
-> (SkillDetails -> Maybe [Text] -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe [Text]
newInThisVersionBulletPoints' :: Maybe [Text]
$sel:newInThisVersionBulletPoints':SkillDetails' :: SkillDetails -> Maybe [Text]
newInThisVersionBulletPoints'} -> Maybe [Text]
newInThisVersionBulletPoints') (\s :: SkillDetails
s@SkillDetails' {} Maybe [Text]
a -> SkillDetails
s {$sel:newInThisVersionBulletPoints':SkillDetails' :: Maybe [Text]
newInThisVersionBulletPoints' = Maybe [Text]
a} :: SkillDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> SkillDetails -> f SkillDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails
-> f SkillDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The details about what the skill supports organized as bullet points.
skillDetails_bulletPoints :: Lens.Lens' SkillDetails (Prelude.Maybe [Prelude.Text])
skillDetails_bulletPoints :: (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails -> f SkillDetails
skillDetails_bulletPoints = (SkillDetails -> Maybe [Text])
-> (SkillDetails -> Maybe [Text] -> SkillDetails)
-> Lens SkillDetails SkillDetails (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SkillDetails' {Maybe [Text]
bulletPoints :: Maybe [Text]
$sel:bulletPoints:SkillDetails' :: SkillDetails -> Maybe [Text]
bulletPoints} -> Maybe [Text]
bulletPoints) (\s :: SkillDetails
s@SkillDetails' {} Maybe [Text]
a -> SkillDetails
s {$sel:bulletPoints:SkillDetails' :: Maybe [Text]
bulletPoints = Maybe [Text]
a} :: SkillDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> SkillDetails -> f SkillDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SkillDetails
-> f SkillDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON SkillDetails where
  parseJSON :: Value -> Parser SkillDetails
parseJSON =
    String
-> (Object -> Parser SkillDetails) -> Value -> Parser SkillDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"SkillDetails"
      ( \Object
x ->
          Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe DeveloperInfo
-> Maybe Text
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> SkillDetails
SkillDetails'
            (Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe DeveloperInfo
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe (HashMap Text Text)
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe [Text]
 -> SkillDetails)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe DeveloperInfo
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> SkillDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SkillTypes" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe DeveloperInfo
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> SkillDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe DeveloperInfo
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProductDescription")
            Parser
  (Maybe Text
   -> Maybe DeveloperInfo
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> SkillDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe DeveloperInfo
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InvocationPhrase")
            Parser
  (Maybe DeveloperInfo
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> SkillDetails)
-> Parser (Maybe DeveloperInfo)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeveloperInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeveloperInfo")
            Parser
  (Maybe Text
   -> Maybe [Text]
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> SkillDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EndUserLicenseAgreement")
            Parser
  (Maybe [Text]
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> SkillDetails)
-> Parser (Maybe [Text])
-> Parser
     (Maybe (HashMap Text Text)
      -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GenericKeywords"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe (HashMap Text Text)
   -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> SkillDetails)
-> Parser (Maybe (HashMap Text Text))
-> Parser
     (Maybe Text -> Maybe [Text] -> Maybe [Text] -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Reviews" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Parser (Maybe Text -> Maybe [Text] -> Maybe [Text] -> SkillDetails)
-> Parser (Maybe Text)
-> Parser (Maybe [Text] -> Maybe [Text] -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReleaseDate")
            Parser (Maybe [Text] -> Maybe [Text] -> SkillDetails)
-> Parser (Maybe [Text]) -> Parser (Maybe [Text] -> SkillDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NewInThisVersionBulletPoints"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser (Maybe [Text] -> SkillDetails)
-> Parser (Maybe [Text]) -> Parser SkillDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BulletPoints" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable SkillDetails

instance Prelude.NFData SkillDetails