Skip to content

Commit

Permalink
refactor: rename Apple.Types.AppleDeveloper to Apple.Types.Developer
Browse files Browse the repository at this point in the history
  • Loading branch information
c4710n committed Oct 13, 2024
1 parent 366ab3e commit 20a6f5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions lib/apple/maps_server_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ defmodule Apple.MapsServerAPI do
"""

alias JOSE.{JWK, JWS, JWT}
alias Apple.Types.AppleDeveloper
alias Apple.Types.Developer

@typedoc """
Something like `"*.example.com"`.
"""
@type origin :: String.t()

@spec build_auth_token!(
AppleDeveloper.team_id(),
AppleDeveloper.key_id(),
AppleDeveloper.private_key(),
Developer.team_id(),
Developer.key_id(),
Developer.private_key(),
origin() | nil
) :: String.t()
def build_auth_token!(team_id, key_id, private_key, origin \\ nil)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Apple.Types.AppleDeveloper do
defmodule Apple.Types.Developer do
@moduledoc """
Provides Apple Developer related types.
"""
Expand Down
10 changes: 5 additions & 5 deletions lib/apple/weather_kit_rest_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Apple.WeatherKitRestAPI do
"""

alias JOSE.{JWK, JWS, JWT}
alias Apple.Types.AppleDeveloper
alias Apple.Types.Developer

@doc """
Builds a token to authorize HTTP requests.
Expand All @@ -19,10 +19,10 @@ defmodule Apple.WeatherKitRestAPI do
```
"""
@spec build_auth_token!(
AppleDeveloper.team_id(),
AppleDeveloper.key_id(),
AppleDeveloper.private_key(),
AppleDeveloper.service_id()
Developer.team_id(),
Developer.key_id(),
Developer.private_key(),
Developer.service_id()
) :: String.t()
def build_auth_token!(team_id, key_id, private_key, service_id)
when is_binary(team_id) and
Expand Down

0 comments on commit 20a6f5f

Please sign in to comment.