-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1301 from ds-wizard/release/4.14.0
Release 4.14.0
- Loading branch information
Showing
52 changed files
with
1,821 additions
and
741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module Shared.Data.BranchSuggestion exposing | ||
( BranchSuggestion | ||
, decoder | ||
) | ||
|
||
import Json.Decode as D exposing (Decoder) | ||
import Json.Decode.Pipeline as D | ||
import Uuid exposing (Uuid) | ||
|
||
|
||
type alias BranchSuggestion = | ||
{ uuid : Uuid | ||
, name : String | ||
} | ||
|
||
|
||
decoder : Decoder BranchSuggestion | ||
decoder = | ||
D.succeed BranchSuggestion | ||
|> D.required "uuid" Uuid.decoder | ||
|> D.required "name" D.string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
engine-shared/elm/Shared/Data/WebSockets/BranchAction/SetRepliesBranchAction.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module Shared.Data.WebSockets.BranchAction.SetRepliesBranchAction exposing | ||
( SetRepliesBranchAction | ||
, decoder | ||
, encode | ||
) | ||
|
||
import Dict exposing (Dict) | ||
import Json.Decode as D exposing (Decoder) | ||
import Json.Decode.Pipeline as D | ||
import Json.Encode as E | ||
import Shared.Data.QuestionnaireDetail.Reply as Reply exposing (Reply) | ||
import Uuid exposing (Uuid) | ||
|
||
|
||
type alias SetRepliesBranchAction = | ||
{ uuid : Uuid | ||
, replies : Dict String Reply | ||
} | ||
|
||
|
||
decoder : Decoder SetRepliesBranchAction | ||
decoder = | ||
D.succeed SetRepliesBranchAction | ||
|> D.required "uuid" Uuid.decoder | ||
|> D.required "replies" (D.dict Reply.decoder) | ||
|
||
|
||
encode : SetRepliesBranchAction -> E.Value | ||
encode action = | ||
E.object | ||
[ ( "uuid", Uuid.encode action.uuid ) | ||
, ( "replies", E.dict identity Reply.encode action.replies ) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.