aboutsummaryrefslogtreecommitdiff
path: root/dhall/types/Config.dhall
blob: c522a8d94213cf8a9dea43dd1b7645483b816a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
let Person = ./Person.dhall

let Author = ./Author.dhall

let Character = ./Character.dhall

let Job = ./Job.dhall

let Link = ./Link.dhall

let NagMessage = ./NagMessage.dhall

let SeriesDescription = ./SeriesDescription.dhall

let VOD = ./StreamVOD.dhall

let PronounSet = ./PronounSet.dhall

let Prelude = ../Prelude.dhall

let Resume = ./Resume.dhall

let defaultPort = env:PORT ? 3030

let defaultWebMentionEndpoint =
        env:WEBMENTION_ENDPOINT
      ? "https://mi.within.website/api/webmention/accept"

in  { Type =
        { signalboost : List Person.Type
        , defaultAuthor : Author.Type
        , authors : Prelude.Map.Type Text Author.Type
        , port : Natural
        , clackSet : List Text
        , webMentionEndpoint : Text
        , miToken : Text
        , jobHistory : List Job.Type
        , seriesDescriptions : List SeriesDescription.Type
        , seriesDescMap : Prelude.Map.Type Text Text
        , notableProjects : List Link.Type
        , contactLinks : List Link.Type
        , pronouns : List PronounSet.Type
        , characters : List Character.Type
        , vods : List VOD.Type
        , resume : Resume.Type
        }
    , default =
      { signalboost = [] : List Person.Type
      , defaultAuthor = Author::{=}
      , authors = [] : List Author.Type
      , port = defaultPort
      , clackSet = [ "Ashlynn" ]
      , webMentionEndpoint = defaultWebMentionEndpoint
      , miToken = "${env:MI_TOKEN as Text ? ""}"
      , jobHistory = [] : List Job.Type
      , seriesDescriptions = [] : List SeriesDescription.Type
      , seriesDescMap = [] : Prelude.Map.Type Text Text
      , notableProjects = [] : List Link.Type
      , contactLinks = [] : List Link.Type
      , pronouns = [] : List PronounSet.Type
      , characters = [] : List Character.Type
      , vods = [] : List VOD.Type
      , resume = Resume::{=}
      }
    }