-
-
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 #1091 from ds-wizard/release/4.4.0
Release 4.4.0
- Loading branch information
Showing
64 changed files
with
2,104 additions
and
1,504 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Shared.Api.AppKeys exposing (deleteAppKey, getAppKeys) | ||
|
||
import Json.Decode as D | ||
import Registry.Common.Requests exposing (ToMsg) | ||
import Shared.AbstractAppState exposing (AbstractAppState) | ||
import Shared.Api exposing (jwtDelete, jwtGet) | ||
import Shared.Data.AppKey as AppKey exposing (AppKey) | ||
import Uuid exposing (Uuid) | ||
|
||
|
||
getAppKeys : AbstractAppState a -> ToMsg (List AppKey) msg -> Cmd msg | ||
getAppKeys = | ||
jwtGet "/app-keys" (D.list AppKey.decoder) | ||
|
||
|
||
deleteAppKey : Uuid -> AbstractAppState a -> ToMsg () msg -> Cmd msg | ||
deleteAppKey uuid = | ||
jwtDelete ("/app-keys/" ++ Uuid.toString uuid) |
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,22 @@ | ||
module Shared.Data.AppKey exposing (AppKey, decoder) | ||
|
||
import Json.Decode as D exposing (Decoder) | ||
import Json.Decode.Extra as D | ||
import Json.Decode.Pipeline as D | ||
import Time | ||
import Uuid exposing (Uuid) | ||
|
||
|
||
type alias AppKey = | ||
{ uuid : Uuid | ||
, name : String | ||
, createdAt : Time.Posix | ||
} | ||
|
||
|
||
decoder : Decoder AppKey | ||
decoder = | ||
D.succeed AppKey | ||
|> D.required "uuid" Uuid.decoder | ||
|> D.required "name" D.string | ||
|> D.required "createdAt" D.datetime |
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
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
Oops, something went wrong.