diff --git a/.build b/.build
index 41bd2081c..00e632c1b 100644
--- a/.build
+++ b/.build
@@ -255,8 +255,8 @@ dist/merriweather-latin-ext-300-normal-K6L27CZ5.woff2
dist/merriweather-vietnamese-300-italic-EHHNZPUO.woff2
dist/merriweather-vietnamese-300-normal-U376L4Z4.woff2
dist/remixicon-NKANDIL5.woff2
-dist/search_data-96418B32.js
-dist/sidebar_items-C70141D1.js
+dist/search_data-45F81179.js
+dist/sidebar_items-9E4FD05F.js
index.html
readme.html
search.html
diff --git a/404.html b/404.html
index 71de683ac..4c8bb5b22 100644
--- a/404.html
+++ b/404.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Mix.Tasks.CleanClickhouse.html b/Mix.Tasks.CleanClickhouse.html
index 9c1001e76..1cdf4b66e 100644
--- a/Mix.Tasks.CleanClickhouse.html
+++ b/Mix.Tasks.CleanClickhouse.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Mix.Tasks.CreateFreeSubscription.html b/Mix.Tasks.CreateFreeSubscription.html
index 55d7ff741..e07b7357f 100644
--- a/Mix.Tasks.CreateFreeSubscription.html
+++ b/Mix.Tasks.CreateFreeSubscription.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Mix.Tasks.DownloadCountryDatabase.html b/Mix.Tasks.DownloadCountryDatabase.html
index 762103bc6..512677acd 100644
--- a/Mix.Tasks.DownloadCountryDatabase.html
+++ b/Mix.Tasks.DownloadCountryDatabase.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Mix.Tasks.GenerateReferrerFavicons.html b/Mix.Tasks.GenerateReferrerFavicons.html
index edd13c59c..dd161b1d9 100644
--- a/Mix.Tasks.GenerateReferrerFavicons.html
+++ b/Mix.Tasks.GenerateReferrerFavicons.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Mix.Tasks.PullSandboxSubscription.html b/Mix.Tasks.PullSandboxSubscription.html
index afd40af99..f320d9950 100644
--- a/Mix.Tasks.PullSandboxSubscription.html
+++ b/Mix.Tasks.PullSandboxSubscription.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Mix.Tasks.SendPageview.html b/Mix.Tasks.SendPageview.html
index 978e1170b..ca6bf090a 100644
--- a/Mix.Tasks.SendPageview.html
+++ b/Mix.Tasks.SendPageview.html
@@ -13,7 +13,7 @@
-
+
diff --git a/ObanErrorReporter.html b/ObanErrorReporter.html
index ade2688cf..2ad2e72bb 100644
--- a/ObanErrorReporter.html
+++ b/ObanErrorReporter.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.AsyncInsertRepo.html b/Plausible.AsyncInsertRepo.html
index 1c0c020ae..d3329c2c4 100644
--- a/Plausible.AsyncInsertRepo.html
+++ b/Plausible.AsyncInsertRepo.html
@@ -13,7 +13,7 @@
-
+
@@ -1114,23 +1114,23 @@ pool to disconnect within the given interval.
See
-Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
+Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
- defmodule Demo do
+ defmodule Demo do
use Ecto.Schema
@primary_key false
- schema "ecto_ch_demo" do
+ schema "ecto_ch_demo" do
field :a , Ch , type : "UInt64"
field :b , :string
- end
- end
+ end
+ end
- rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
- { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
+ rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
+ { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
# schemaless
- { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
+ { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
diff --git a/Plausible.Auth.ApiKey.html b/Plausible.Auth.ApiKey.html
index 87f766e2e..5482bd554 100644
--- a/Plausible.Auth.ApiKey.html
+++ b/Plausible.Auth.ApiKey.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.ApiKeyAdmin.html b/Plausible.Auth.ApiKeyAdmin.html
index 317f582cd..68c6f71b7 100644
--- a/Plausible.Auth.ApiKeyAdmin.html
+++ b/Plausible.Auth.ApiKeyAdmin.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.GracePeriod.html b/Plausible.Auth.GracePeriod.html
index 224f3856a..683648353 100644
--- a/Plausible.Auth.GracePeriod.html
+++ b/Plausible.Auth.GracePeriod.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.Invitation.html b/Plausible.Auth.Invitation.html
index cb6a18c67..852465757 100644
--- a/Plausible.Auth.Invitation.html
+++ b/Plausible.Auth.Invitation.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.Password.html b/Plausible.Auth.Password.html
index 152ac9bd1..970dbb81b 100644
--- a/Plausible.Auth.Password.html
+++ b/Plausible.Auth.Password.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.Token.html b/Plausible.Auth.Token.html
index 9ee378584..2dee6ebb6 100644
--- a/Plausible.Auth.Token.html
+++ b/Plausible.Auth.Token.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.User.html b/Plausible.Auth.User.html
index 6e9cb460f..6235b3d72 100644
--- a/Plausible.Auth.User.html
+++ b/Plausible.Auth.User.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.UserAdmin.html b/Plausible.Auth.UserAdmin.html
index 7d35da32a..1d4dd8498 100644
--- a/Plausible.Auth.UserAdmin.html
+++ b/Plausible.Auth.UserAdmin.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Auth.html b/Plausible.Auth.html
index bf5573515..06fa46bca 100644
--- a/Plausible.Auth.html
+++ b/Plausible.Auth.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Billing.EnterprisePlan.html b/Plausible.Billing.EnterprisePlan.html
index 9c8ceb1c4..e8d07278f 100644
--- a/Plausible.Billing.EnterprisePlan.html
+++ b/Plausible.Billing.EnterprisePlan.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Billing.EnterprisePlanAdmin.html b/Plausible.Billing.EnterprisePlanAdmin.html
index 423fa86a8..92c7ab01b 100644
--- a/Plausible.Billing.EnterprisePlanAdmin.html
+++ b/Plausible.Billing.EnterprisePlanAdmin.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Billing.PaddleApi.html b/Plausible.Billing.PaddleApi.html
index 50fcf8302..eb7c9ade0 100644
--- a/Plausible.Billing.PaddleApi.html
+++ b/Plausible.Billing.PaddleApi.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Billing.Plans.html b/Plausible.Billing.Plans.html
index 504a5d788..6169a4bd7 100644
--- a/Plausible.Billing.Plans.html
+++ b/Plausible.Billing.Plans.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Billing.Quota.html b/Plausible.Billing.Quota.html
index 4668074d4..d199283cc 100644
--- a/Plausible.Billing.Quota.html
+++ b/Plausible.Billing.Quota.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Billing.SiteLocker.html b/Plausible.Billing.SiteLocker.html
index 4474dd5a4..e22960ffe 100644
--- a/Plausible.Billing.SiteLocker.html
+++ b/Plausible.Billing.SiteLocker.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Billing.html b/Plausible.Billing.html
index cebc5c055..a694afc07 100644
--- a/Plausible.Billing.html
+++ b/Plausible.Billing.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.ChangesetHelpers.html b/Plausible.ChangesetHelpers.html
index 3380bbb2a..6bcba25b2 100644
--- a/Plausible.ChangesetHelpers.html
+++ b/Plausible.ChangesetHelpers.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Cldr.AcceptLanguage.html b/Plausible.Cldr.AcceptLanguage.html
index c26de2712..cfd17b851 100644
--- a/Plausible.Cldr.AcceptLanguage.html
+++ b/Plausible.Cldr.AcceptLanguage.html
@@ -13,7 +13,7 @@
-
+
@@ -119,7 +119,7 @@ Plausible
the set of natural languages that are preferred as a response to the request.
Language tags function are provided in Cldr.LanguageTag .
The format of an Accept-Language header is as follows in ABNF format:
Accept - Language = "Accept-Language" ":"
1 #( language-range [ ";" "q" "=" qvalue ] )
- language - range = ( ( 1 * 8 ALPHA * ( "-" 1 * 8 ALPHA ) ) | "*" ) Each language-range MAY be given an associated quality value which represents an
+ language - range = ( ( 1 * 8 ALPHA * ( "-" 1 * 8 ALPHA ) ) | "*" )
Each language-range MAY be given an associated quality value which represents an
estimate of the user's preference for the languages specified by that range. The
quality value defaults to "q=1". For example,
Accept - Language : da , en - gb ; q = 0.8 , en ; q = 0.7 would mean: "I prefer Danish, but will accept British English and other types of English."
@@ -232,54 +232,54 @@ a configured iex> Plausible.Cldr.AcceptLanguage . best_match ( "da;q=0.1,zh-TW;q=0.3" , TestBackend.Cldr )
- { :ok ,
- % Cldr.LanguageTag {
+iex> Plausible.Cldr.AcceptLanguage . best_match ( "da;q=0.1,zh-TW;q=0.3" , TestBackend.Cldr )
+ { :ok ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "zh-TW" ,
cldr_locale_name : :"zh-Hant" ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "zh" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :"zh-Hant" ,
requested_locale_name : "zh-TW" ,
script : :Hant ,
territory : :TW ,
- transform : %{ } ,
- language_variants : [ ]
- } }
+ transform : %{ } ,
+ language_variants : [ ]
+ } }
- iex> Plausible.Cldr.AcceptLanguage . best_match ( "da;q=0.1,zh-TW;q=0.3" , TestBackend.Cldr )
- { :ok ,
- % Cldr.LanguageTag {
+ iex> Plausible.Cldr.AcceptLanguage . best_match ( "da;q=0.1,zh-TW;q=0.3" , TestBackend.Cldr )
+ { :ok ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "zh-TW" ,
cldr_locale_name : :"zh-Hant" ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "zh" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :"zh-Hant" ,
requested_locale_name : "zh-TW" ,
script : :Hant ,
territory : :TW ,
- transform : %{ } ,
- language_variants : [ ]
- } }
-
- iex> Plausible.Cldr.AcceptLanguage . best_match ( "xx,yy;q=0.3" )
- { :error ,
- { Cldr.NoMatchingLocale ,
- "No configured locale could be matched to \" xx,yy;q=0.3 \" " } }
-
- iex> Plausible.Cldr.AcceptLanguage . best_match ( "invalid_tag" )
- { :error , { Cldr.LanguageTag.ParseError ,
- "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
+ transform : %{ } ,
+ language_variants : [ ]
+ } }
+
+ iex> Plausible.Cldr.AcceptLanguage . best_match ( "xx,yy;q=0.3" )
+ { :error ,
+ { Cldr.NoMatchingLocale ,
+ "No configured locale could be matched to \" xx,yy;q=0.3 \" " } }
+
+ iex> Plausible.Cldr.AcceptLanguage . best_match ( "invalid_tag" )
+ { :error , { Cldr.LanguageTag.ParseError ,
+ "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
@@ -340,95 +340,95 @@ wuth an error tuple for each invalid tag added at the end of the list.
-iex> Cldr.AcceptLanguage . parse ( "da,zh-TW;q=0.3" , TestBackend.Cldr )
- { :ok ,
- [
- { 1.0 ,
- % Cldr.LanguageTag {
+iex> Cldr.AcceptLanguage . parse ( "da,zh-TW;q=0.3" , TestBackend.Cldr )
+ { :ok ,
+ [
+ { 1.0 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "da" ,
cldr_locale_name : :da ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "da" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :da ,
requested_locale_name : "da" ,
script : :Latn ,
territory : :DK ,
- transform : %{ } ,
- language_variants : [ ]
- } } ,
- { 0.3 ,
- % Cldr.LanguageTag {
+ transform : %{ } ,
+ language_variants : [ ]
+ } } ,
+ { 0.3 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "zh-TW" ,
cldr_locale_name : :"zh-Hant" ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "zh" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :"zh-Hant" ,
requested_locale_name : "zh-TW" ,
script : :Hant ,
territory : :TW ,
- transform : %{ } ,
- language_variants : [ ]
- } }
- ] }
-
- iex> Plausible.Cldr.AcceptLanguage . parse ( "invalid_tag" )
- { :error ,
- { Cldr.LanguageTag.ParseError ,
- "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
-
- iex> Plausible.Cldr.AcceptLanguage . parse ( "da,zh-TW;q=0.3,invalid_tag" )
- { :ok ,
- [
- { 1.0 ,
- % Cldr.LanguageTag {
+ transform : %{ } ,
+ language_variants : [ ]
+ } }
+ ] }
+
+ iex> Plausible.Cldr.AcceptLanguage . parse ( "invalid_tag" )
+ { :error ,
+ { Cldr.LanguageTag.ParseError ,
+ "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
+
+ iex> Plausible.Cldr.AcceptLanguage . parse ( "da,zh-TW;q=0.3,invalid_tag" )
+ { :ok ,
+ [
+ { 1.0 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "da" ,
cldr_locale_name : :da ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "da" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :da ,
requested_locale_name : "da" ,
script : :Latn ,
territory : :DK ,
- transform : %{ } ,
- language_variants : [ ]
- } } ,
- { 0.3 ,
- % Cldr.LanguageTag {
+ transform : %{ } ,
+ language_variants : [ ]
+ } } ,
+ { 0.3 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "zh-TW" ,
cldr_locale_name : :"zh-Hant" ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "zh" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :"zh-Hant" ,
requested_locale_name : "zh-TW" ,
script : :Hant ,
territory : :TW ,
- transform : %{ } ,
- language_variants : [ ]
- } } ,
- { :error ,
- { Cldr.LanguageTag.ParseError ,
- "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
- ] }
+ transform : %{ } ,
+ language_variants : [ ]
+ } } ,
+ { :error ,
+ { Cldr.LanguageTag.ParseError ,
+ "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
+ ] }
@@ -473,92 +473,92 @@ wuth an error tuple for each invalid tag added at the end of the list.
-iex> Plausible.Cldr.AcceptLanguage . parse! ( "da,zh-TW;q=0.3" )
- [
- { 1.0 ,
- % Cldr.LanguageTag {
+iex> Plausible.Cldr.AcceptLanguage . parse! ( "da,zh-TW;q=0.3" )
+ [
+ { 1.0 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "da" ,
cldr_locale_name : :da ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "da" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :da ,
requested_locale_name : "da" ,
script : :Latn ,
territory : :DK ,
- transform : %{ } ,
- language_variants : [ ]
- } } ,
- { 0.3 ,
- % Cldr.LanguageTag {
+ transform : %{ } ,
+ language_variants : [ ]
+ } } ,
+ { 0.3 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "zh-TW" ,
cldr_locale_name : :"zh-Hant" ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "zh" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :"zh-Hant" ,
requested_locale_name : "zh-TW" ,
script : :Hant ,
territory : :TW ,
- transform : %{ } ,
- language_variants : [ ]
- } }
- ]
+ transform : %{ } ,
+ language_variants : [ ]
+ } }
+ ]
Plausible.Cldr.AcceptLanguage . parse! "invalid_tag"
** (Cldr.AcceptLanguageError) "Expected a BCP47 language tag. Could not parse the remaining "g" starting at position 11
(ex_cldr) lib/cldr/accept_language.ex:304: Cldr.AcceptLanguage.parse!/1
- iex> Plausible.Cldr.AcceptLanguage . parse! ( "da,zh-TW;q=0.3,invalid_tag" )
- [
- { 1.0 ,
- % Cldr.LanguageTag {
+ iex> Plausible.Cldr.AcceptLanguage . parse! ( "da,zh-TW;q=0.3,invalid_tag" )
+ [
+ { 1.0 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "da" ,
cldr_locale_name : :da ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "da" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :da ,
requested_locale_name : "da" ,
script : :Latn ,
territory : :DK ,
- transform : %{ } ,
- language_variants : [ ]
- } } ,
- { 0.3 ,
- % Cldr.LanguageTag {
+ transform : %{ } ,
+ language_variants : [ ]
+ } } ,
+ { 0.3 ,
+ % Cldr.LanguageTag {
backend : TestBackend.Cldr ,
canonical_locale_name : "zh-TW" ,
cldr_locale_name : :"zh-Hant" ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : nil ,
language : "zh" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :"zh-Hant" ,
requested_locale_name : "zh-TW" ,
script : :Hant ,
territory : :TW ,
- transform : %{ } ,
- language_variants : [ ]
- } } ,
- { :error ,
- { Cldr.LanguageTag.ParseError ,
- "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
- ]
+ transform : %{ } ,
+ language_variants : [ ]
+ } } ,
+ { :error ,
+ { Cldr.LanguageTag.ParseError ,
+ "Expected a BCP47 language tag. Could not parse the remaining \" g \" starting at position 11" } }
+ ]
diff --git a/Plausible.Cldr.Currency.html b/Plausible.Cldr.Currency.html
index 79b1f6e55..3da41ed7e 100644
--- a/Plausible.Cldr.Currency.html
+++ b/Plausible.Cldr.Currency.html
@@ -13,7 +13,7 @@
-
+
@@ -390,11 +390,11 @@ The default is :all. See FJD : % Cldr.Currency {
+ %{ FJD : % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "FJD" ,
- count : %{ one : "Fijian dollar" , other : "Fijian dollars" } ,
+ count : %{ one : "Fijian dollar" , other : "Fijian dollars" } ,
digits : 2 ,
from : nil ,
iso_digits : 2 ,
@@ -404,12 +404,12 @@ The default is :all. See symbol : "FJD" ,
tender : true ,
to : nil
- } ,
- SUR : % Cldr.Currency {
+ } ,
+ SUR : % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "SUR" ,
- count : %{ one : "Soviet rouble" , other : "Soviet roubles" } ,
+ count : %{ one : "Soviet rouble" , other : "Soviet roubles" } ,
digits : 2 ,
from : nil ,
iso_digits : nil ,
@@ -419,7 +419,7 @@ The default is :all. See symbol : "SUR" ,
tender : true ,
to : nil
- } ,
+ } ,
...
} }
@@ -470,11 +470,11 @@ The default is :all. See FJD : % Cldr.Currency {
+ => %{FJD : % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "FJD" ,
- count : %{ one : "Fijian dollar" , other : "Fijian dollars" } ,
+ count : %{ one : "Fijian dollar" , other : "Fijian dollars" } ,
digits : 2 ,
from : nil ,
iso_digits : 2 ,
@@ -484,12 +484,12 @@ The default is :all. See symbol : "FJD" ,
tender : true ,
to : nil
- } ,
- SUR : % Cldr.Currency {
+ } ,
+ SUR : % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "SUR" ,
- count : %{ one : "Soviet rouble" , other : "Soviet roubles" } ,
+ count : %{ one : "Soviet rouble" , other : "Soviet roubles" } ,
digits : 2 ,
from : nil ,
iso_digits : nil ,
@@ -499,7 +499,7 @@ The default is :all. See symbol : "SUR" ,
tender : true ,
to : nil
- } ,
+ } ,
... }
@@ -557,13 +557,13 @@ or a
-iex> Plausible.Cldr.Currency . currency_for_code ( "AUD" )
- { :ok ,
- % Cldr.Currency {
+iex> Plausible.Cldr.Currency . currency_for_code ( "AUD" )
+ { :ok ,
+ % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "AUD" ,
- count : %{ one : "Australian dollar" , other : "Australian dollars" } ,
+ count : %{ one : "Australian dollar" , other : "Australian dollars" } ,
digits : 2 ,
iso_digits : 2 ,
name : "Australian Dollar" ,
@@ -571,15 +571,15 @@ or a rounding : 0 ,
symbol : "A$" ,
tender : true
- } }
+ } }
- iex> Plausible.Cldr.Currency . currency_for_code ( "THB" )
- { :ok ,
- % Cldr.Currency {
+ iex> Plausible.Cldr.Currency . currency_for_code ( "THB" )
+ { :ok ,
+ % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "THB" ,
- count : %{ one : "Thai baht" , other : "Thai baht" } ,
+ count : %{ one : "Thai baht" , other : "Thai baht" } ,
digits : 2 ,
iso_digits : 2 ,
name : "Thai Baht" ,
@@ -587,7 +587,7 @@ or a rounding : 0 ,
symbol : "THB" ,
tender : true
- } }
+ } }
@@ -646,12 +646,12 @@ or a
-iex> Plausible.Cldr.Currency . currency_for_code! ( "AUD" )
- % Cldr.Currency {
+iex> Plausible.Cldr.Currency . currency_for_code! ( "AUD" )
+ % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "AUD" ,
- count : %{ one : "Australian dollar" , other : "Australian dollars" } ,
+ count : %{ one : "Australian dollar" , other : "Australian dollars" } ,
digits : 2 ,
iso_digits : 2 ,
name : "Australian Dollar" ,
@@ -659,14 +659,14 @@ or a rounding : 0 ,
symbol : "A$" ,
tender : true
- }
+ }
- iex> Plausible.Cldr.Currency . currency_for_code! ( "THB" )
- % Cldr.Currency {
+ iex> Plausible.Cldr.Currency . currency_for_code! ( "THB" )
+ % Cldr.Currency {
cash_digits : 2 ,
cash_rounding : 0 ,
code : "THB" ,
- count : %{ one : "Thai baht" , other : "Thai baht" } ,
+ count : %{ one : "Thai baht" , other : "Thai baht" } ,
digits : 2 ,
iso_digits : 2 ,
name : "Thai Baht" ,
@@ -674,7 +674,7 @@ or a rounding : 0 ,
symbol : "THB" ,
tender : true
- }
+ }
@@ -715,11 +715,11 @@ or a
-iex> { :ok , locale } = Plausible.Cldr . validate_locale "en"
+iex> { :ok , locale } = Plausible.Cldr . validate_locale "en"
iex> Plausible.Cldr.Currency . currency_from_locale locale
:USD
- iex> { :ok , locale } = Plausible.Cldr . validate_locale "en-AU"
+ iex> { :ok , locale } = Plausible.Cldr . validate_locale "en-AU"
iex> Plausible.Cldr.Currency . currency_from_locale locale
:AUD
@@ -768,13 +768,13 @@ or a
iex> MyApp.Cldr.Currency . currency_history_for_locale "en"
- { :ok ,
- %{
- USD : %{ from : ~D[1792-01-01] , to : nil } ,
- USN : %{ tender : false } ,
- USS : %{ from : nil , tender : false , to : ~D[2014-03-01] }
- }
- }
+ { :ok ,
+ %{
+ USD : %{ from : ~D[1792-01-01] , to : nil } ,
+ USN : %{ tender : false } ,
+ USS : %{ from : nil , tender : false , to : ~D[2014-03-01] }
+ }
+ }
@@ -834,8 +834,8 @@ The default is :all. See MyApp.Cldr.Currency . currency_strings "en"
- => { :ok ,
- %{
+ => { :ok ,
+ %{
"mexican silver pesos" => :MXP ,
"sudanese dinar" => :SDD ,
"bad" => :BAD ,
@@ -845,7 +845,7 @@ The default is :all. See "guyanaese dollars" => :GYD ,
"equatorial guinean ekwele" => :GQE ,
...
- } }
+ } }
}
@@ -1004,7 +1004,7 @@ mapping is returned for that territory.iex> Plausible.Cldr.Currency . current_territory_currencies ( )
+iex> Plausible.Cldr.Currency . current_territory_currencies ( )
@@ -1097,10 +1097,10 @@ currency codeiex> Plausible.Cldr.Currency . known_currency_code "AUD"
- { :ok , :AUD }
+ { :ok , :AUD }
iex> Plausible.Cldr.Currency . known_currency_code "GGG"
- { :error , { Cldr.UnknownCurrencyError , "The currency \" GGG \" is invalid" } }
+{ :error , { Cldr.UnknownCurrencyError , "The currency \" GGG \" is invalid" } }
@@ -1247,14 +1247,14 @@ such as 0.05. Optional.iex> Plausible.Cldr.Currency . new ( :XAE , name : "Custom Name" , digits : 0 )
- { :ok ,
- % Cldr.Currency {
+iex> Plausible.Cldr.Currency . new ( :XAE , name : "Custom Name" , digits : 0 )
+ { :ok ,
+ % Cldr.Currency {
alt_code : :XAE ,
cash_digits : 0 ,
cash_rounding : nil ,
code : :XAE ,
- count : %{ other : "Custom Name" } ,
+ count : %{ other : "Custom Name" } ,
digits : 0 ,
from : nil ,
iso_digits : 0 ,
@@ -1264,11 +1264,11 @@ such as 0.05. Optional.symbol : "XAE" ,
tender : false ,
to : nil
- } }
- iex> MyApp.Cldr.Currency . new ( :XAH , name : "Custom Name" )
- { :error , "Required options are missing. Required options are [:name, :digits]" }
- iex> Plausible.Cldr.Currency . new ( :XAE , name : "XAE" , digits : 0 )
- { :error , { Cldr.CurrencyAlreadyDefined , "Currency :XAE is already defined." } }
+ } }
+ iex> MyApp.Cldr.Currency . new ( :XAH , name : "Custom Name" )
+ { :error , "Required options are missing. Required options are [:name, :digits]" }
+ iex> Plausible.Cldr.Currency . new ( :XAE , name : "XAE" , digits : 0 )
+ { :error , { Cldr.CurrencyAlreadyDefined , "Currency :XAE is already defined." } }
@@ -1327,19 +1327,19 @@ default is Plaus
iex> Plausible.Cldr.Currency . pluralize 1 , :USD
- { :ok , "US dollar" }
+ { :ok , "US dollar" }
iex> Plausible.Cldr.Currency . pluralize 3 , :USD
- { :ok , "US dollars" }
+ { :ok , "US dollars" }
iex> Plausible.Cldr.Currency . pluralize 12 , :USD , locale : "zh"
- { :ok , "美元" }
+ { :ok , "美元" }
iex> Plausible.Cldr.Currency . pluralize 12 , :USD , locale : "fr"
- { :ok , "dollars des États-Unis" }
+ { :ok , "dollars des États-Unis" }
iex> Plausible.Cldr.Currency . pluralize 1 , :USD , locale : "fr"
- { :ok , "dollar des États-Unis" }
+{ :ok , "dollar des États-Unis" }
diff --git a/Plausible.Cldr.Locale.html b/Plausible.Cldr.Locale.html
index 1f391240a..857c2fbfb 100644
--- a/Plausible.Cldr.Locale.html
+++ b/Plausible.Cldr.Locale.html
@@ -13,7 +13,7 @@
-
+
@@ -297,16 +297,16 @@ this specific locale..iex> Plausible.Cldr.Locale . fallback_locale_names ( :"fr-CA" )
- { :ok , [ :"fr-CA" , :fr , :und ] }
+iex> Plausible.Cldr.Locale . fallback_locale_names ( :"fr-CA" )
+ { :ok , [ :"fr-CA" , :fr , :und ] }
# Fallbacks are typically formed by progressively
# stripping variant, territory and script from the
# given locale name. But not always - there are
# certain fallbacks that take a different path.
- iex> Plausible.Cldr.Locale . fallback_locale_names ( :nb )
- { :ok , [ :nb , :no , :und ] }
+ iex> Plausible.Cldr.Locale . fallback_locale_names ( :nb )
+ { :ok , [ :nb , :no , :und ] }
@@ -360,20 +360,20 @@ this specific locale.Plausible.Cldr.Locale . fallback_locales ( :"fr-CA" )
- => { :ok ,
- [ # Cldr.LanguageTag < fr - CA [ validated ] > , # Cldr.LanguageTag < fr [ validated ] > ,
- # Cldr.LanguageTag < und [ validated ] > ] }
+Plausible.Cldr.Locale . fallback_locales ( :"fr-CA" )
+ => { :ok ,
+ [ # Cldr.LanguageTag < fr - CA [ validated ] > , # Cldr.LanguageTag < fr [ validated ] > ,
+ # Cldr.LanguageTag < und [ validated ] > ] }
# Fallbacks are typically formed by progressively
# stripping variant, territory and script from the
# given locale name. But not always - there are
# certain fallbacks that take a different path.
- Plausible.Cldr.Locale . fallback_locales ( :nb ) )
- => { :ok ,
- [ # Cldr.LanguageTag < nb [ validated ] > , # Cldr.LanguageTag < no [ validated ] > ,
- # Cldr.LanguageTag < und [ validated ] > ] }
+ Plausible.Cldr.Locale . fallback_locales ( :nb ) )
+ => { :ok ,
+ [ # Cldr.LanguageTag < nb [ validated ] > , # Cldr.LanguageTag < no [ validated ] > ,
+ # Cldr.LanguageTag < und [ validated ] > ] }
@@ -504,15 +504,15 @@ generic top-level domain names.iex> Plausible.Cldr.Locale . locale_from_host "a.b.com.au"
- Elixir.Plausible.Cldr . validate_locale ( :"en-AU" )
+ Elixir.Plausible.Cldr . validate_locale ( :"en-AU" )
- iex> Plausible.Cldr.Locale . locale_from_host ( "a.b.com.tv" )
- { :error ,
- { Cldr.UnknownLocaleError , "No locale was identified for territory \" tv \" " } }
+ iex> Plausible.Cldr.Locale . locale_from_host ( "a.b.com.tv" )
+ { :error ,
+ { Cldr.UnknownLocaleError , "No locale was identified for territory \" tv \" " } }
- iex> Plausible.Cldr.Locale . locale_from_host ( "a.b.com" )
- { :error ,
- { Cldr.UnknownLocaleError , "No locale was identified for territory \" com \" " } }
+iex> Plausible.Cldr.Locale . locale_from_host ( "a.b.com" )
+ { :error ,
+ { Cldr.UnknownLocaleError , "No locale was identified for territory \" com \" " } }
@@ -654,12 +654,12 @@ be a territory.iex> Cldr.Locale . territory_from_host ( "a.b.com.au" )
- { :ok , :AU }
+iex> Cldr.Locale . territory_from_host ( "a.b.com.au" )
+ { :ok , :AU }
- iex> Cldr.Locale . territory_from_host ( "a.b.com" )
- { :error ,
- { Cldr.UnknownLocaleError , "No locale was identified for territory \" com \" " } }
+ iex> Cldr.Locale . territory_from_host ( "a.b.com" )
+ { :error ,
+ { Cldr.UnknownLocaleError , "No locale was identified for territory \" com \" " } }
diff --git a/Plausible.Cldr.Number.Cardinal.html b/Plausible.Cldr.Number.Cardinal.html
index f4fd968fe..71fc5f844 100644
--- a/Plausible.Cldr.Number.Cardinal.html
+++ b/Plausible.Cldr.Number.Cardinal.html
@@ -13,7 +13,7 @@
-
+
@@ -426,31 +426,31 @@ The valid substitution keys are :zero, iex> Plausible.Cldr.Number.Cardinal . pluralize 1 , "en" , %{ one : "one" }
+iex> Plausible.Cldr.Number.Cardinal . pluralize 1 , "en" , %{ one : "one" }
"one"
- iex> Plausible.Cldr.Number.Cardinal . pluralize 2 , "en" , %{ one : "one" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize 2 , "en" , %{ one : "one" }
nil
- iex> Plausible.Cldr.Number.Cardinal . pluralize 2 , "en" , %{ one : "one" , two : "two" , other : "other" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize 2 , "en" , %{ one : "one" , two : "two" , other : "other" }
"other"
- iex> Plausible.Cldr.Number.Cardinal . pluralize 22 , "en" , %{ one : "one" , two : "two" , other : "other" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize 22 , "en" , %{ one : "one" , two : "two" , other : "other" }
"other"
- iex> Plausible.Cldr.Number.Cardinal . pluralize Decimal . new ( 1 ) , "en" , %{ one : "one" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize Decimal . new ( 1 ) , "en" , %{ one : "one" }
"one"
- iex> Plausible.Cldr.Number.Cardinal . pluralize Decimal . new ( 2 ) , "en" , %{ one : "one" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize Decimal . new ( 2 ) , "en" , %{ one : "one" }
nil
- iex> Plausible.Cldr.Number.Cardinal . pluralize Decimal . new ( 2 ) , "en" , %{ one : "one" , two : "two" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize Decimal . new ( 2 ) , "en" , %{ one : "one" , two : "two" }
nil
- iex> Plausible.Cldr.Number.Cardinal . pluralize 1 .. 10 , "ar" , %{ one : "one" , few : "few" , other : "other" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize 1 .. 10 , "ar" , %{ one : "one" , few : "few" , other : "other" }
"few"
- iex> Plausible.Cldr.Number.Cardinal . pluralize 1 .. 10 , "en" , %{ one : "one" , few : "few" , other : "other" }
+ iex> Plausible.Cldr.Number.Cardinal . pluralize 1 .. 10 , "en" , %{ one : "one" , few : "few" , other : "other" }
"other"
diff --git a/Plausible.Cldr.Number.Format.html b/Plausible.Cldr.Number.Format.html
index 57c3894f0..8d732d916 100644
--- a/Plausible.Cldr.Number.Format.html
+++ b/Plausible.Cldr.Number.Format.html
@@ -13,7 +13,7 @@
-
+
@@ -439,7 +439,7 @@ to precompile all the known formats at compile time.
-iex> Plausible.Cldr.Number.Format . default_grouping_for ( :en )
- { :ok , %{ fraction : %{ first : 0 , rest : 0 } , integer : %{ first : 3 , rest : 3 } } }
+iex> Plausible.Cldr.Number.Format . default_grouping_for ( :en )
+ { :ok , %{ fraction : %{ first : 0 , rest : 0 } , integer : %{ first : 3 , rest : 3 } } }
-iex> Plausible.Cldr.Number.Format . default_grouping_for! ( :en )
- %{ fraction : %{ first : 0 , rest : 0 } , integer : %{ first : 3 , rest : 3 } }
+iex> Plausible.Cldr.Number.Format . default_grouping_for! ( :en )
+ %{ fraction : %{ first : 0 , rest : 0 } , integer : %{ first : 3 , rest : 3 } }
@@ -772,8 +772,8 @@ is Plausible.Cld
Examples
-iex> Plausible.Cldr.Number.Format . minimum_grouping_digits_for ( "en" )
- { :ok , 1 }
+iex> Plausible.Cldr.Number.Format . minimum_grouping_digits_for ( "en" )
+ { :ok , 1 }
@@ -825,7 +825,7 @@ is Plausible.Cld
Examples
-iex> Plausible.Cldr.Number.Format . minimum_grouping_digits_for! ( "en" )
+iex> Plausible.Cldr.Number.Format . minimum_grouping_digits_for! ( "en" )
1
diff --git a/Plausible.Cldr.Number.Formatter.Decimal.html b/Plausible.Cldr.Number.Formatter.Decimal.html
index a0a238f2e..8b35f7a35 100644
--- a/Plausible.Cldr.Number.Formatter.Decimal.html
+++ b/Plausible.Cldr.Number.Formatter.Decimal.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Cldr.Number.Ordinal.html b/Plausible.Cldr.Number.Ordinal.html
index 09e6b8928..eb2637683 100644
--- a/Plausible.Cldr.Number.Ordinal.html
+++ b/Plausible.Cldr.Number.Ordinal.html
@@ -13,7 +13,7 @@
-
+
@@ -429,31 +429,31 @@ The valid substitution keys are :zero, iex> Plausible.Cldr.Number.Ordinal . pluralize 1 , :en , %{ one : "one" }
+iex> Plausible.Cldr.Number.Ordinal . pluralize 1 , :en , %{ one : "one" }
"one"
- iex> Plausible.Cldr.Number.Ordinal . pluralize 2 , :en , %{ one : "one" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize 2 , :en , %{ one : "one" }
nil
- iex> Plausible.Cldr.Number.Ordinal . pluralize 2 , :en , %{ one : "one" , two : "two" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize 2 , :en , %{ one : "one" , two : "two" }
"two"
- iex> Plausible.Cldr.Number.Ordinal . pluralize 22 , :en , %{ one : "one" , two : "two" , other : "other" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize 22 , :en , %{ one : "one" , two : "two" , other : "other" }
"two"
- iex> Plausible.Cldr.Number.Ordinal . pluralize Decimal . new ( 1 ) , :en , %{ one : "one" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize Decimal . new ( 1 ) , :en , %{ one : "one" }
"one"
- iex> Plausible.Cldr.Number.Ordinal . pluralize Decimal . new ( 2 ) , :en , %{ one : "one" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize Decimal . new ( 2 ) , :en , %{ one : "one" }
nil
- iex> Plausible.Cldr.Number.Ordinal . pluralize Decimal . new ( 2 ) , :en , %{ one : "one" , two : "two" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize Decimal . new ( 2 ) , :en , %{ one : "one" , two : "two" }
"two"
- iex> Plausible.Cldr.Number.Ordinal . pluralize 1 .. 10 , "ar" , %{ one : "one" , few : "few" , other : "other" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize 1 .. 10 , "ar" , %{ one : "one" , few : "few" , other : "other" }
"other"
- iex> Plausible.Cldr.Number.Ordinal . pluralize 1 .. 10 , "en" , %{ one : "one" , few : "few" , other : "other" }
+ iex> Plausible.Cldr.Number.Ordinal . pluralize 1 .. 10 , "en" , %{ one : "one" , few : "few" , other : "other" }
"other"
diff --git a/Plausible.Cldr.Number.PluralRule.Range.html b/Plausible.Cldr.Number.PluralRule.Range.html
index 121f9c778..2a2eb4e69 100644
--- a/Plausible.Cldr.Number.PluralRule.Range.html
+++ b/Plausible.Cldr.Number.PluralRule.Range.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Cldr.Number.Symbol.html b/Plausible.Cldr.Number.Symbol.html
index 281ea7949..59333615e 100644
--- a/Plausible.Cldr.Number.Symbol.html
+++ b/Plausible.Cldr.Number.Symbol.html
@@ -13,7 +13,7 @@
-
+
@@ -349,9 +349,9 @@ is Plausible.Cld
Example:
-iex> Plausible.Cldr.Number.Symbol . number_symbols_for ( :th )
- { :ok , %{
- latn : % Cldr.Number.Symbol {
+iex> Plausible.Cldr.Number.Symbol . number_symbols_for ( :th )
+ { :ok , %{
+ latn : % Cldr.Number.Symbol {
decimal : "." ,
exponential : "E" ,
group : "," ,
@@ -364,8 +364,8 @@ is Plausible.Cld
plus_sign : "+" ,
superscripting_exponent : "×" ,
time_separator : ":"
- } ,
- thai : % Cldr.Number.Symbol {
+ } ,
+ thai : % Cldr.Number.Symbol {
decimal : "." ,
exponential : "E" ,
group : "," ,
@@ -378,8 +378,8 @@ is Plausible.Cld
plus_sign : "+" ,
superscripting_exponent : "×" ,
time_separator : ":"
- }
- } }
+ }
+ } }
diff --git a/Plausible.Cldr.Number.System.html b/Plausible.Cldr.Number.System.html
index 9b574afc4..19c694c53 100644
--- a/Plausible.Cldr.Number.System.html
+++ b/Plausible.Cldr.Number.System.html
@@ -13,7 +13,7 @@
-
+
@@ -288,23 +288,23 @@ it is returned as is.iex> Plausible.Cldr.Number.System . number_system_for "th" , :latn
- { :ok , %{ digits : "0123456789" , type : :numeric } }
+ { :ok , %{ digits : "0123456789" , type : :numeric } }
iex> Plausible.Cldr.Number.System . number_system_for "en" , :default
- { :ok , %{ digits : "0123456789" , type : :numeric } }
+ { :ok , %{ digits : "0123456789" , type : :numeric } }
iex> Plausible.Cldr.Number.System . number_system_for "he" , :traditional
- { :ok , %{ rules : "hebrew" , type : :algorithmic } }
+ { :ok , %{ rules : "hebrew" , type : :algorithmic } }
iex> Plausible.Cldr.Number.System . number_system_for "en" , :native
- { :ok , %{ digits : "0123456789" , type : :numeric } }
+ { :ok , %{ digits : "0123456789" , type : :numeric } }
iex> Plausible.Cldr.Number.System . number_system_for "en" , :finance
- {
+ {
:error ,
- { Cldr.UnknownNumberSystemError ,
- "The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}" }
- }
+ { Cldr.UnknownNumberSystemError ,
+ "The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}" }
+ }
@@ -480,13 +480,13 @@ or a
iex> Plausible.Cldr.Number.System . number_systems_for "en"
- { :ok , %{ default : :latn , native : :latn } }
+ { :ok , %{ default : :latn , native : :latn } }
iex> Plausible.Cldr.Number.System . number_systems_for "th"
- { :ok , %{ default : :latn , native : :thai } }
+ { :ok , %{ default : :latn , native : :thai } }
iex> Plausible.Cldr.Number.System . number_systems_for "zz"
- { :error , { Cldr.InvalidLanguageError , "The language \" zz \" is invalid" } }
+{ :error , { Cldr.InvalidLanguageError , "The language \" zz \" is invalid" } }
@@ -584,20 +584,20 @@ actual system name.ex > Plausible.Cldr.Number.System . system_name_from ( :default , "en" )
- { :ok , :latn }
+ex > Plausible.Cldr.Number.System . system_name_from ( :default , "en" )
+ { :ok , :latn }
- iex> Plausible.Cldr.Number.System . system_name_from ( "latn" , "en" )
- { :ok , :latn }
+ iex> Plausible.Cldr.Number.System . system_name_from ( "latn" , "en" )
+ { :ok , :latn }
- iex> Plausible.Cldr.Number.System . system_name_from ( :native , "en" )
- { :ok , :latn }
+ iex> Plausible.Cldr.Number.System . system_name_from ( :native , "en" )
+ { :ok , :latn }
- iex> Plausible.Cldr.Number.System . system_name_from ( :nope , "en" )
- {
+ iex> Plausible.Cldr.Number.System . system_name_from ( :nope , "en" )
+ {
:error ,
- { Cldr.UnknownNumberSystemError , "The number system :nope is unknown" }
- } Note that return value is not guaranteed to be a valid
+
{ Cldr.UnknownNumberSystemError , "The number system :nope is unknown" }
+ } Note that return value is not guaranteed to be a valid
number system for the given locale as demonstrated in the third example.
@@ -644,16 +644,16 @@ is recommended.iex> Plausible.Cldr.Number.System . to_system 123456 , :hebr
- { :ok , "קכ״ג׳תנ״ו" }
+ { :ok , "קכ״ג׳תנ״ו" }
iex> Plausible.Cldr.Number.System . to_system 123 , :hans
- { :ok , "一百二十三" }
+ { :ok , "一百二十三" }
iex> Plausible.Cldr.Number.System . to_system 123 , :hant
- { :ok , "一百二十三" }
+ { :ok , "一百二十三" }
iex> Plausible.Cldr.Number.System . to_system 123 , :hansfin
- { :ok , "壹佰贰拾叁" }
+{ :ok , "壹佰贰拾叁" }
diff --git a/Plausible.Cldr.Number.Transliterate.html b/Plausible.Cldr.Number.Transliterate.html
index d64675e6d..4fc935bdf 100644
--- a/Plausible.Cldr.Number.Transliterate.html
+++ b/Plausible.Cldr.Number.Transliterate.html
@@ -13,7 +13,7 @@
-
+
@@ -133,12 +133,12 @@ digits between number systems. For example from :arabic to :latn. Since genera
transliteration map is slow, pairs of transliterations can be configured so that the
transliteration map is created at compile time and therefore speeding up transliteration at
run time.To configure these transliteration pairs, add the to the use Cldr configuration
-in a backend module:
defmodule MyApp.Cldr do
+in a backend module:defmodule MyApp.Cldr do
use Cldr ,
- locale : [ "en" , "fr" , "th" ] ,
+ locale : [ "en" , "fr" , "th" ] ,
default_locale : "en" ,
- precompile_transliterations : [ { :latn , :thai } , { :arab , :thai } ]
- end Where each tuple in the list configures one transliteration map. In this example, two maps are
+
precompile_transliterations : [ { :latn , :thai } , { :arab , :thai } ]
+ end Where each tuple in the list configures one transliteration map. In this example, two maps are
configured: from :latn to :thai and from :arab to :thai.
A list of configurable number systems is returned by Cldr.Number.System.systems_with_digits/0 .
If a transliteration is requested between two number pairs that have not been configured for
precompilation, a warning is logged.
@@ -252,22 +252,22 @@ and
-iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" )
+iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" )
"123556"
- iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123,556.000" , "fr" , :default )
+ iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123,556.000" , "fr" , :default )
"123 556,000"
- iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" , "th" , :default )
+ iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" , "th" , :default )
"123556"
- iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" , "th" , "thai" )
+ iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" , "th" , "thai" )
"๑๒๓๕๕๖"
- iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" , "th" , :native )
+ iex> Plausible.Cldr.Number.Transliterate . transliterate ( "123556" , "th" , :native )
"๑๒๓๕๕๖"
- iex> Plausible.Cldr.Number.Transliterate . transliterate ( "Some number is: 123556" , "th" , "thai" )
+ iex> Plausible.Cldr.Number.Transliterate . transliterate ( "Some number is: 123556" , "th" , "thai" )
"Some number is: ๑๒๓๕๕๖"
diff --git a/Plausible.Cldr.Number.html b/Plausible.Cldr.Number.html
index 359024a7b..1d0bb5b4f 100644
--- a/Plausible.Cldr.Number.html
+++ b/Plausible.Cldr.Number.html
@@ -13,7 +13,7 @@
-
+
@@ -412,19 +412,19 @@ using the Elixir standard library functions.
-iex> Plausible.Cldr.Number . parse ( "+1.000,34" , locale : "de" )
- { :ok , 1000.34 }
+iex> Plausible.Cldr.Number . parse ( "+1.000,34" , locale : "de" )
+ { :ok , 1000.34 }
- iex> Plausible.Cldr.Number . parse ( "-1_000_000.34" )
- { :ok , - 1000000.34 }
+ iex> Plausible.Cldr.Number . parse ( "-1_000_000.34" )
+ { :ok , - 1000000.34 }
- iex> Plausible.Cldr.Number . parse ( "1.000" , locale : "de" , number : :integer )
- { :ok , 1000 }
+ iex> Plausible.Cldr.Number . parse ( "1.000" , locale : "de" , number : :integer )
+ { :ok , 1000 }
- iex> Plausible.Cldr.Number . parse ( "+1.000,34" , locale : "de" , number : :integer )
- { :error ,
- { Cldr.Number.ParseError ,
- "The string \" +1.000,34 \" could not be parsed as a number" } }
+ iex> Plausible.Cldr.Number . parse ( "+1.000,34" , locale : "de" , number : :integer )
+ { :error ,
+ { Cldr.Number.ParseError ,
+ "The string \" +1.000,34 \" could not be parsed as a number" } }
@@ -496,17 +496,17 @@ financial instruments.
-iex> Plausible.Cldr.Number . scan ( "100 US dollars" )
+iex> Plausible.Cldr.Number . scan ( "100 US dollars" )
...> |> Plausible.Cldr.Number . resolve_currencies
- [ 100 , :USD ]
+ [ 100 , :USD ]
- iex> Plausible.Cldr.Number . scan ( "100 eurosports" )
- ...> |> Plausible.Cldr.Number . resolve_currencies ( fuzzy : 0.75 )
- [ 100 , :EUR ]
+ iex> Plausible.Cldr.Number . scan ( "100 eurosports" )
+ ...> |> Plausible.Cldr.Number . resolve_currencies ( fuzzy : 0.75 )
+ [ 100 , :EUR ]
- iex> Plausible.Cldr.Number . scan ( "100 dollars des États-Unis" )
- ...> |> Plausible.Cldr.Number . resolve_currencies ( locale : "fr" )
- [ 100 , :USD ]
+ iex> Plausible.Cldr.Number . scan ( "100 dollars des États-Unis" )
+ ...> |> Plausible.Cldr.Number . resolve_currencies ( locale : "fr" )
+ [ 100 , :USD ]
@@ -583,19 +583,19 @@ financial instruments.iex> Plausible.Cldr.Number . resolve_currency ( "US dollars" )
- [ :USD ]
+iex> Plausible.Cldr.Number . resolve_currency ( "US dollars" )
+ [ :USD ]
- iex> Plausible.Cldr.Number . resolve_currency ( "100 eurosports" , fuzzy : 0.75 )
- [ :EUR ]
+ iex> Plausible.Cldr.Number . resolve_currency ( "100 eurosports" , fuzzy : 0.75 )
+ [ :EUR ]
- iex> Plausible.Cldr.Number . resolve_currency ( "dollars des États-Unis" , locale : "fr" )
- [ :USD ]
+ iex> Plausible.Cldr.Number . resolve_currency ( "dollars des États-Unis" , locale : "fr" )
+ [ :USD ]
- iex> Plausible.Cldr.Number . resolve_currency ( "not a known currency" , locale : "fr" )
- { :error ,
- { Cldr.UnknownCurrencyError ,
- "The currency \" not a known currency \" is unknown or not supported" } }
+ iex> Plausible.Cldr.Number . resolve_currency ( "not a known currency" , locale : "fr" )
+ { :error ,
+ { Cldr.UnknownCurrencyError ,
+ "The currency \" not a known currency \" is unknown or not supported" } }
@@ -659,13 +659,13 @@ The default is options[:backend].get_locale()
iex> Plausible.Cldr.Number . resolve_per "11%"
- [ "11" , :percent ]
+ [ "11" , :percent ]
iex> Plausible.Cldr.Number . resolve_per "% of linguists"
- [ :percent , " of linguists" ]
+ [ :percent , " of linguists" ]
iex> Plausible.Cldr.Number . resolve_per "% of linguists %"
- [ :percent , " of linguists " , :percent ]
+[ :percent , " of linguists " , :percent ]
@@ -722,9 +722,9 @@ The default is options[:backend].get_locale()
Examples
-iex> Plausible.Cldr.Number . scan ( "100%" )
- ...> |> Plausible.Cldr.Number . resolve_pers ( )
- [ 100 , :percent ]
+iex> Plausible.Cldr.Number . scan ( "100%" )
+ ...> |> Plausible.Cldr.Number . resolve_pers ( )
+ [ 100 , :percent ]
@@ -784,20 +784,20 @@ and any options provided are passed to that function.iex> Plausible.Cldr.Number . scan ( "£1_000_000.34" )
- [ "£" , 1000000.34 ]
+iex> Plausible.Cldr.Number . scan ( "£1_000_000.34" )
+ [ "£" , 1000000.34 ]
- iex> Plausible.Cldr.Number . scan ( "I want £1_000_000 dollars" )
- [ "I want £" , 1000000 , " dollars" ]
+ iex> Plausible.Cldr.Number . scan ( "I want £1_000_000 dollars" )
+ [ "I want £" , 1000000 , " dollars" ]
- iex> Plausible.Cldr.Number . scan ( "The prize is 23" )
- [ "The prize is " , 23 ]
+ iex> Plausible.Cldr.Number . scan ( "The prize is 23" )
+ [ "The prize is " , 23 ]
- iex> Plausible.Cldr.Number . scan ( "The lottery number is 23 for the next draw" )
- [ "The lottery number is " , 23 , " for the next draw" ]
+ iex> Plausible.Cldr.Number . scan ( "The lottery number is 23 for the next draw" )
+ [ "The lottery number is " , 23 , " for the next draw" ]
- iex> Plausible.Cldr.Number . scan ( "The loss is -1.000 euros" , locale : "de" , number : :integer )
- [ "The loss is " , - 1000 , " euros" ]
+ iex> Plausible.Cldr.Number . scan ( "The loss is -1.000 euros" , locale : "de" , number : :integer )
+ [ "The loss is " , - 1000 , " euros" ]
@@ -844,7 +844,7 @@ options.iex> Plausible.Cldr.Number . to_approx_string 1234
- { :ok , "~1,234" }
+{ :ok , "~1,234" }
@@ -891,7 +891,7 @@ options.iex> Plausible.Cldr.Number . to_at_least_string 1234
- { :ok , "1,234+" }
+{ :ok , "1,234+" }
@@ -938,7 +938,7 @@ options.iex> Plausible.Cldr.Number . to_at_most_string 1234
- { :ok , "≤1,234" }
+{ :ok , "≤1,234" }
@@ -985,7 +985,7 @@ options.
iex> Plausible.Cldr.Number . to_range_string 1234 .. 5678
- { :ok , "1,234–5,678" }
+{ :ok , "1,234–5,678" }
@@ -1104,21 +1104,21 @@ extensions.iex> Cldr.Number . to_string ( 100 , format : :currency , currency : :USD , wrapper : fn
+applied to the symbol than the number. For example:iex> Cldr.Number . to_string ( 100 , format : :currency , currency : :USD , wrapper : fn
...> string , :currency_symbol -> "<span class= \" symbol \" >" <> string <> "</span>"
...> string , :number -> "<span class= \" number \" >" <> string <> "</span>"
...> string , :currency_space -> "<span>" <> string <> "</span>"
...> string , _other -> string
- ...> end )
- { :ok , "<span class= \" symbol \" >$</span><span class= \" number \" >100.00</span>" } It is also possible and recommended to use the Phoenix.HTML.Tag.content_tag/3
+
...> end )
+ { :ok , "<span class= \" symbol \" >$</span><span class= \" number \" >100.00</span>" } It is also possible and recommended to use the Phoenix.HTML.Tag.content_tag/3
function if wrapping HTML tags since these will ensure HTML entities are
-correctly encoded. For example:
iex> Cldr.Number . to_string ( 100 , format : :currency , currency : :USD , wrapper : fn
- ...> string , :currency_symbol -> Phoenix.HTML.Tag . content_tag ( :span , string , class : "symbol" )
- ...> string , :number -> Phoenix.HTML.Tag . content_tag ( :span , string , class : "number" )
- ...> string , :currency_space -> Phoenix.HTML.Tag . content_tag ( :span , string )
+correctly encoded. For example:iex> Cldr.Number . to_string ( 100 , format : :currency , currency : :USD , wrapper : fn
+ ...> string , :currency_symbol -> Phoenix.HTML.Tag . content_tag ( :span , string , class : "symbol" )
+ ...> string , :number -> Phoenix.HTML.Tag . content_tag ( :span , string , class : "number" )
+ ...> string , :currency_space -> Phoenix.HTML.Tag . content_tag ( :span , string )
...> string , _other -> string
- ...> end )
- { :ok , "<span class= \" symbol \" >$</span><span class= \" number \" >100.00</span>" } When formatting a number the format is parsed into format elements that might include
+
...> end )
+ { :ok , "<span class= \" symbol \" >$</span><span class= \" number \" >100.00</span>" } When formatting a number the format is parsed into format elements that might include
a currency symbol, a literal string, inserted text between a currency symbol and the
currency amount, a percent sign, the number itself and several other elements. In
some cases it is helpful to be apply specific formatting to each element.
@@ -1139,80 +1139,80 @@ inserted in the final formatted number.
iex> Plausible.Cldr.Number . to_string 12345
- { :ok , "12,345" }
+ { :ok , "12,345" }
iex> Plausible.Cldr.Number . to_string 12345 , locale : "fr"
- { :ok , "12 345" }
+ { :ok , "12 345" }
iex> Plausible.Cldr.Number . to_string 1345.32 , currency : :EUR , locale : "es" , minimum_grouping_digits : 1
- { :ok , "1.345,32 €" }
+ { :ok , "1.345,32 €" }
iex> Plausible.Cldr.Number . to_string 1345.32 , currency : :EUR , locale : "es"
- { :ok , "1345,32 €" }
+ { :ok , "1345,32 €" }
iex> Plausible.Cldr.Number . to_string 12345 , locale : "fr" , currency : "USD"
- { :ok , "12 345,00 $US" }
+ { :ok , "12 345,00 $US" }
iex> Plausible.Cldr.Number . to_string 12345 , format : "#E0"
- { :ok , "1.2345E4" }
+ { :ok , "1.2345E4" }
iex> Plausible.Cldr.Number . to_string 12345 , format : :accounting , currency : "THB"
- { :ok , "THB 12,345.00" }
+ { :ok , "THB 12,345.00" }
iex> Plausible.Cldr.Number . to_string - 12345 , format : :accounting , currency : "THB"
- { :ok , "(THB 12,345.00)" }
+ { :ok , "(THB 12,345.00)" }
iex> Plausible.Cldr.Number . to_string 12345 , format : :accounting , currency : "THB" ,
...> locale : "th"
- { :ok , "฿12,345.00" }
+ { :ok , "฿12,345.00" }
iex> Plausible.Cldr.Number . to_string 12345 , format : :accounting , currency : "THB" ,
...> locale : "th" , number_system : :native
- { :ok , "฿๑๒,๓๔๕.๐๐" }
+ { :ok , "฿๑๒,๓๔๕.๐๐" }
iex> Plausible.Cldr.Number . to_string 1244.30 , format : :long
- { :ok , "1 thousand" }
+ { :ok , "1 thousand" }
iex> Plausible.Cldr.Number . to_string 1244.30 , format : :long , currency : "USD"
- { :ok , "1,244 US dollars" }
+ { :ok , "1,244 US dollars" }
iex> Plausible.Cldr.Number . to_string 1244.30 , format : :short
- { :ok , "1K" }
+ { :ok , "1K" }
iex> Plausible.Cldr.Number . to_string 1244.30 , format : :short , currency : "EUR"
- { :ok , "€1K" }
+ { :ok , "€1K" }
iex> Plausible.Cldr.Number . to_string 1234 , format : :spellout
- { :ok , "one thousand two hundred thirty-four" }
+ { :ok , "one thousand two hundred thirty-four" }
iex> Plausible.Cldr.Number . to_string 1234 , format : :spellout_verbose
- { :ok , "one thousand two hundred and thirty-four" }
+ { :ok , "one thousand two hundred and thirty-four" }
iex> Plausible.Cldr.Number . to_string 1989 , format : :spellout_year
- { :ok , "nineteen eighty-nine" }
+ { :ok , "nineteen eighty-nine" }
iex> Plausible.Cldr.Number . to_string 123 , format : :ordinal
- { :ok , "123rd" }
+ { :ok , "123rd" }
iex> Plausible.Cldr.Number . to_string 123 , format : :roman
- { :ok , "CXXIII" }
+ { :ok , "CXXIII" }
iex> Plausible.Cldr.Number . to_string 123 , locale : "th-u-nu-thai"
- { :ok , "๑๒๓" }
+{ :ok , "๑๒๓" }
Errors
An error tuple {:error, reason} will be returned if an error is detected.
-The two most likely causes of an error return are:
A format cannot be compiled. In this case the error tuple will look like: iex> Plausible.Cldr.Number . to_string ( 12345 , format : "0#" )
- { :error , { Cldr.FormatCompileError ,
- "Decimal format compiler: syntax error before: \" # \" " } } The format style requested is not defined for the locale and
+The two most likely causes of an error return are:A format cannot be compiled. In this case the error tuple will look like: iex> Plausible.Cldr.Number . to_string ( 12345 , format : "0#" )
+ { :error , { Cldr.FormatCompileError ,
+ "Decimal format compiler: syntax error before: \" # \" " } } The format style requested is not defined for the locale and
number_system. This happens typically when the number system is
:algorithmic rather than the more common :numeric. In this case the error
-return looks like: iex> Plausible.Cldr.Number . to_string ( 1234 , locale : "he" , number_system : "hebr" )
- { :error , { Cldr.UnknownFormatError ,
- "The locale :he with number system :hebr does not define a format :standard" } }
+return looks like: iex> Plausible.Cldr.Number . to_string ( 1234 , locale : "he" , number_system : "hebr" )
+ { :error , { Cldr.UnknownFormatError ,
+ "The locale :he with number system :hebr does not define a format :standard" } }
@@ -1316,17 +1316,17 @@ returned by iex> Plausible.Cldr.Number . validate_number_system "en" , :latn
- { :ok , :latn }
+ { :ok , :latn }
iex> Plausible.Cldr.Number . validate_number_system "en" , :default
- { :ok , :latn }
+ { :ok , :latn }
iex> Plausible.Cldr.Number . validate_number_system "en" , :unknown
- { :error ,
- { Cldr.UnknownNumberSystemError , "The number system :unknown is unknown" } }
+ { :error ,
+ { Cldr.UnknownNumberSystemError , "The number system :unknown is unknown" } }
iex> Plausible.Cldr.Number . validate_number_system "zz" , :default
- { :error , { Cldr.InvalidLanguageError , "The language \" zz \" is invalid" } }
+{ :error , { Cldr.InvalidLanguageError , "The language \" zz \" is invalid" } }
diff --git a/Plausible.Cldr.Rbnf.NumberSystem.html b/Plausible.Cldr.Rbnf.NumberSystem.html
index a106bfa20..4f724d7f8 100644
--- a/Plausible.Cldr.Rbnf.NumberSystem.html
+++ b/Plausible.Cldr.Rbnf.NumberSystem.html
@@ -13,7 +13,7 @@
-
+
@@ -116,9 +116,9 @@ Plausible
Functions to implement the number system rule-based-number-format rules of CLDR.
These rules are defined only on the "und" locale and represent specialised
number formatting.
The standard public API for RBNF is via the Cldr.Number.to_string/2 function.
The functions on this module are defined at compile time based upon the RBNF rules
-defined in the Unicode CLDR data repository. Available rules are identified by:
iex> Plausible.Cldr.Rbnf.NumberSystem . rule_sets ( :und )
- ...> |> Enum . sort ( )
- [
+defined in the Unicode CLDR data repository. Available rules are identified by:iex> Plausible.Cldr.Rbnf.NumberSystem . rule_sets ( :und )
+ ...> |> Enum . sort ( )
+ [
:armenian_lower ,
:armenian_upper ,
:cyrillic_lower ,
@@ -132,9 +132,9 @@ defined in the Unicode CLDR data repository. Available rules are identified by:
:roman_upper ,
:tamil ,
:zz_default
- ] A rule can then be invoked on an available rule_set. For example
iex> Plausible.Cldr.Rbnf.NumberSystem . roman_upper ( 123 , :und )
- "CXXIII" This particular call is equivalent to the call through the public API of:
iex> Plausible.Cldr.Number . to_string ( 123 , format : :roman )
- { :ok , "CXXIII" }
+ ] A rule can then be invoked on an available rule_set. For example
iex> Plausible.Cldr.Rbnf.NumberSystem . roman_upper ( 123 , :und )
+ "CXXIII" This particular call is equivalent to the call through the public API of:
iex> Plausible.Cldr.Number . to_string ( 123 , format : :roman )
+ { :ok , "CXXIII" }
diff --git a/Plausible.Cldr.Rbnf.Ordinal.html b/Plausible.Cldr.Rbnf.Ordinal.html
index 64c653ad9..94ff86527 100644
--- a/Plausible.Cldr.Rbnf.Ordinal.html
+++ b/Plausible.Cldr.Rbnf.Ordinal.html
@@ -13,7 +13,7 @@
-
+
@@ -116,20 +116,20 @@ Plausible
Functions to implement the ordinal rule-based-number-format rules of CLDR.
As CLDR notes, the data is incomplete or non-existent for many languages. It
is considered complete for English however.
The standard public API for RBNF is via the Cldr.Number.to_string/2 function.
The functions on this module are defined at compile time based upon the RBNF rules
-defined in the Unicode CLDR data repository. Available rules are identified by:
iex> Plausible.Cldr.Rbnf.Ordinal . rule_sets ( :en )
- [ :digits_ordinal ]
+defined in the Unicode CLDR data repository. Available rules are identified by:iex> Plausible.Cldr.Rbnf.Ordinal . rule_sets ( :en )
+ [ :digits_ordinal ]
- iex> Plausible.Cldr.Rbnf.Ordinal . rule_sets ( "fr" )
- ...> |> Enum . sort ( )
- [
+ iex> Plausible.Cldr.Rbnf.Ordinal . rule_sets ( "fr" )
+ ...> |> Enum . sort ( )
+ [
:digits_ordinal ,
:digits_ordinal_feminine ,
:digits_ordinal_feminine_plural ,
:digits_ordinal_masculine ,
:digits_ordinal_masculine_plural
- ] A rule can then be invoked on an available rule_set. For example
iex> Plausible.Cldr.Rbnf.Ordinal . digits_ordinal ( 123 , :en )
- "123rd" This call is equivalent to the call through the public API of:
iex> Plausible.Cldr.Number . to_string ( 123 , format : :ordinal )
- { :ok , "123rd" }
+ ] A rule can then be invoked on an available rule_set. For example
iex> Plausible.Cldr.Rbnf.Ordinal . digits_ordinal ( 123 , :en )
+ "123rd" This call is equivalent to the call through the public API of:
iex> Plausible.Cldr.Number . to_string ( 123 , format : :ordinal )
+ { :ok , "123rd" }
diff --git a/Plausible.Cldr.Rbnf.Spellout.html b/Plausible.Cldr.Rbnf.Spellout.html
index 72673957a..984e12547 100644
--- a/Plausible.Cldr.Rbnf.Spellout.html
+++ b/Plausible.Cldr.Rbnf.Spellout.html
@@ -13,7 +13,7 @@
-
+
@@ -116,9 +116,9 @@ Plausible
Functions to implement the spellout rule-based-number-format rules of CLDR.
As CLDR notes, the data is incomplete or non-existent for many languages. It
is considered complete for English however.
The standard public API for RBNF is via the Cldr.Number.to_string/2 function.
The functions on this module are defined at compile time based upon the RBNF rules
-defined in the Unicode CLDR data repository. Available rules are identified by:
iex> Plausible.Cldr.Rbnf.Spellout . rule_sets ( "en" )
- ...> |> Enum . sort ( )
- [
+defined in the Unicode CLDR data repository. Available rules are identified by:iex> Plausible.Cldr.Rbnf.Spellout . rule_sets ( "en" )
+ ...> |> Enum . sort ( )
+ [
:spellout_cardinal ,
:spellout_cardinal_verbose ,
:spellout_numbering ,
@@ -126,9 +126,9 @@ defined in the Unicode CLDR data repository. Available rules are identified by:
:spellout_numbering_year ,
:spellout_ordinal ,
:spellout_ordinal_verbose
- ] A rule can then be invoked on an available rule_set. For example:
iex> Plausible.Cldr.Rbnf.Spellout . spellout_ordinal ( 123 , "en" )
- "one hundred twenty-third" This call is equivalent to the call through the public API of:
iex> Plausible.Cldr.Number . to_string ( 123 , format : :spellout )
- { :ok , "one hundred twenty-three" }
+ ] A rule can then be invoked on an available rule_set. For example:
iex> Plausible.Cldr.Rbnf.Spellout . spellout_ordinal ( 123 , "en" )
+ "one hundred twenty-third" This call is equivalent to the call through the public API of:
iex> Plausible.Cldr.Number . to_string ( 123 , format : :spellout )
+ { :ok , "one hundred twenty-three" }
diff --git a/Plausible.Cldr.html b/Plausible.Cldr.html
index 1fbf7d8e0..007e73fb2 100644
--- a/Plausible.Cldr.html
+++ b/Plausible.Cldr.html
@@ -13,7 +13,7 @@
-
+
@@ -518,24 +518,24 @@ Functions
Example
-iex> Plausible.Cldr . default_locale ( )
- % Cldr.LanguageTag {
+iex> Plausible.Cldr . default_locale ( )
+ % Cldr.LanguageTag {
backend : Plausible.Cldr ,
canonical_locale_name : "en-001" ,
cldr_locale_name : :"en-001" ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : "en" ,
language : "en" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :en ,
requested_locale_name : "en-001" ,
script : :Latn ,
territory : :"001" ,
- transform : %{ } ,
- language_variants : [ ]
- }
+ transform : %{ } ,
+ language_variants : [ ]
+ }
@@ -570,7 +570,7 @@ does not specify one and none can be inferred.iex> Plausible.Cldr . default_territory ( )
+iex> Plausible.Cldr . default_territory ( )
:"001"
@@ -633,13 +633,13 @@ is inserted between words or sentences. The valid options are
iex> Plausible.Cldr . ellipsis "And furthermore"
"And furthermore…"
- iex> Plausible.Cldr . ellipsis [ "And furthermore" , "there is much to be done" ] , locale : :ja
+ iex> Plausible.Cldr . ellipsis [ "And furthermore" , "there is much to be done" ] , locale : :ja
"And furthermore…there is much to be done"
iex> Plausible.Cldr . ellipsis "And furthermore" , format : :word
"And furthermore …"
- iex> Plausible.Cldr . ellipsis [ "And furthermore" , "there is much to be done" ] , locale : :ja , format : :word
+ iex> Plausible.Cldr . ellipsis [ "And furthermore" , "there is much to be done" ] , locale : :ja , format : :word
"And furthermore … there is much to be done"
@@ -675,23 +675,23 @@ take an optional locale parameter for which a locale is not supplied.
-iex> Plausible.Cldr . put_locale ( "pl" )
+iex> Plausible.Cldr . put_locale ( "pl" )
iex> Plausible.Cldr . get_locale
- % Cldr.LanguageTag {
+ % Cldr.LanguageTag {
backend : Elixir.Plausible.Cldr ,
canonical_locale_name : "pl" ,
cldr_locale_name : :pl ,
- extensions : %{ } ,
+ extensions : %{ } ,
language : "pl" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :pl ,
territory : :PL ,
requested_locale_name : "pl" ,
script : :Latn ,
- transform : %{ } ,
- language_variants : [ ]
- }
+ transform : %{ } ,
+ language_variants : [ ]
+ }
@@ -824,10 +824,10 @@ name is configured and available in Gettext.iex> Plausible.Cldr . known_gettext_locale_name? ( "en" )
+iex> Plausible.Cldr . known_gettext_locale_name? ( "en" )
true
- iex> Plausible.Cldr . known_gettext_locale_name? ( "!!" )
+ iex> Plausible.Cldr . known_gettext_locale_name? ( "!!" )
false
@@ -946,10 +946,10 @@ name is configured and available in Cldr.iex> Plausible.Cldr . known_locale_name? ( :en )
+iex> Plausible.Cldr . known_locale_name? ( :en )
true
- iex> Plausible.Cldr . known_locale_name? ( :"!!" )
+ iex> Plausible.Cldr . known_locale_name? ( :"!!" )
false
@@ -1004,7 +1004,7 @@ in this module or in
iex> Plausible.Cldr . known_number_system_types
- [ :default , :finance , :native , :traditional ]
+[ :default , :finance , :native , :traditional ]
@@ -1115,10 +1115,10 @@ rules based number formats (RBNF).iex> Plausible.Cldr . known_rbnf_locale_name? ( :en )
+iex> Plausible.Cldr . known_rbnf_locale_name? ( :en )
true
- iex> Plausible.Cldr . known_rbnf_locale_name? ( :"!!" )
+ iex> Plausible.Cldr . known_rbnf_locale_name? ( :"!!" )
false
@@ -1239,29 +1239,29 @@ of a language tag.
Examples
-iex> Plausible.Cldr . put_locale ( "en" )
- { :ok ,
- % Cldr.LanguageTag {
+iex> Plausible.Cldr . put_locale ( "en" )
+ { :ok ,
+ % Cldr.LanguageTag {
backend : Plausible.Cldr ,
canonical_locale_name : "en" ,
cldr_locale_name : :en ,
- language_subtags : [ ] ,
- extensions : %{ } ,
+ language_subtags : [ ] ,
+ extensions : %{ } ,
gettext_locale_name : "en" ,
language : "en" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :en ,
requested_locale_name : "en" ,
script : :Latn ,
territory : :US ,
- transform : %{ } ,
- language_variants : [ ]
- } }
+ transform : %{ } ,
+ language_variants : [ ]
+ } }
- iex> Plausible.Cldr . put_locale ( "invalid-locale!" )
- { :error , { Cldr.LanguageTag.ParseError ,
- "Expected a BCP47 language tag. Could not parse the remaining \" ! \" starting at position 15" } }
+ iex> Plausible.Cldr . put_locale ( "invalid-locale!" )
+ { :error , { Cldr.LanguageTag.ParseError ,
+ "Expected a BCP47 language tag. Could not parse the remaining \" ! \" starting at position 15" } }
@@ -1444,47 +1444,47 @@ of a language tag.iex> Plausible.Cldr . validate_locale ( :en )
- { :ok ,
- % Cldr.LanguageTag {
+iex> Plausible.Cldr . validate_locale ( :en )
+ { :ok ,
+ % Cldr.LanguageTag {
backend : Plausible.Cldr ,
canonical_locale_name : "en" ,
cldr_locale_name : :en ,
- extensions : %{ } ,
+ extensions : %{ } ,
gettext_locale_name : "en" ,
language : "en" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :en ,
requested_locale_name : "en" ,
script : :Latn ,
territory : :US ,
- transform : %{ } ,
- language_variants : [ ]
- } }
+ transform : %{ } ,
+ language_variants : [ ]
+ } }
- iex> Plausible.Cldr . validate_locale Plausible.Cldr . default_locale ( )
- { :ok ,
- % Cldr.LanguageTag {
+ iex> Plausible.Cldr . validate_locale Plausible.Cldr . default_locale ( )
+ { :ok ,
+ % Cldr.LanguageTag {
backend : Plausible.Cldr ,
canonical_locale_name : "en-001" ,
cldr_locale_name : :"en-001" ,
- extensions : %{ } ,
+ extensions : %{ } ,
gettext_locale_name : "en" ,
language : "en" ,
- locale : %{ } ,
- private_use : [ ] ,
+ locale : %{ } ,
+ private_use : [ ] ,
rbnf_locale_name : :en ,
requested_locale_name : "en-001" ,
script : :Latn ,
territory : :"001" ,
- transform : %{ } ,
- language_variants : [ ]
- } }
+ transform : %{ } ,
+ language_variants : [ ]
+ } }
- iex> Plausible.Cldr . validate_locale ( "zzz" )
- { :error , { Cldr.InvalidLanguageError , "The language \" zzz \" is invalid" } }
+ iex> Plausible.Cldr . validate_locale ( "zzz" )
+ { :error , { Cldr.InvalidLanguageError , "The language \" zzz \" is invalid" } }
@@ -1555,22 +1555,22 @@ of a language tag.iex> Plausible.Cldr . validate_number_system_type :default
- { :ok , :default }
+ { :ok , :default }
iex> Plausible.Cldr . validate_number_system_type :traditional
- { :ok , :traditional }
+ { :ok , :traditional }
iex> Plausible.Cldr . validate_number_system_type :latn
- {
+ {
:error ,
- { Cldr.UnknownNumberSystemTypeError , "The number system type :latn is unknown" }
- }
+ { Cldr.UnknownNumberSystemTypeError , "The number system type :latn is unknown" }
+ }
iex> Plausible.Cldr . validate_number_system_type "bork"
- {
+ {
:error ,
- { Cldr.UnknownNumberSystemTypeError , "The number system type \" bork \" is invalid" }
- }
+ { Cldr.UnknownNumberSystemTypeError , "The number system type \" bork \" is invalid" }
+ }
diff --git a/Plausible.ClickhouseEventV2.html b/Plausible.ClickhouseEventV2.html
index 9383cfa96..358334f03 100644
--- a/Plausible.ClickhouseEventV2.html
+++ b/Plausible.ClickhouseEventV2.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.ClickhouseRepo.html b/Plausible.ClickhouseRepo.html
index 0f6f6c606..d708116e4 100644
--- a/Plausible.ClickhouseRepo.html
+++ b/Plausible.ClickhouseRepo.html
@@ -13,7 +13,7 @@
-
+
@@ -816,23 +816,23 @@ pool to disconnect within the given interval.See
-Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
+Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
- defmodule Demo do
+ defmodule Demo do
use Ecto.Schema
@primary_key false
- schema "ecto_ch_demo" do
+ schema "ecto_ch_demo" do
field :a , Ch , type : "UInt64"
field :b , :string
- end
- end
+ end
+ end
- rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
- { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
+ rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
+ { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
# schemaless
- { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
+ { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
diff --git a/Plausible.ClickhouseSessionV2.BoolUInt8.html b/Plausible.ClickhouseSessionV2.BoolUInt8.html
index 66b865d8a..817a61206 100644
--- a/Plausible.ClickhouseSessionV2.BoolUInt8.html
+++ b/Plausible.ClickhouseSessionV2.BoolUInt8.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.ClickhouseSessionV2.html b/Plausible.ClickhouseSessionV2.html
index 06b7d8fae..518d5c820 100644
--- a/Plausible.ClickhouseSessionV2.html
+++ b/Plausible.ClickhouseSessionV2.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.ConfigHelpers.html b/Plausible.ConfigHelpers.html
index 873047e66..d57df62fa 100644
--- a/Plausible.ConfigHelpers.html
+++ b/Plausible.ConfigHelpers.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.DataCase.html b/Plausible.DataCase.html
index 1eb1817dc..f9743674c 100644
--- a/Plausible.DataCase.html
+++ b/Plausible.DataCase.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.DataMigration.NumericIDs.html b/Plausible.DataMigration.NumericIDs.html
index d65af6d1e..c7bf7502d 100644
--- a/Plausible.DataMigration.NumericIDs.html
+++ b/Plausible.DataMigration.NumericIDs.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.DataMigration.Repo.html b/Plausible.DataMigration.Repo.html
index 6dc8e69d5..a921eccd8 100644
--- a/Plausible.DataMigration.Repo.html
+++ b/Plausible.DataMigration.Repo.html
@@ -13,7 +13,7 @@
-
+
@@ -1123,23 +1123,23 @@ pool to disconnect within the given interval.See
-Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
+Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
- defmodule Demo do
+ defmodule Demo do
use Ecto.Schema
@primary_key false
- schema "ecto_ch_demo" do
+ schema "ecto_ch_demo" do
field :a , Ch , type : "UInt64"
field :b , :string
- end
- end
+ end
+ end
- rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
- { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
+ rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
+ { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
# schemaless
- { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
+ { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
diff --git a/Plausible.DataMigration.RewriteFunnelDupes.html b/Plausible.DataMigration.RewriteFunnelDupes.html
index 42a24eef3..8418d33e5 100644
--- a/Plausible.DataMigration.RewriteFunnelDupes.html
+++ b/Plausible.DataMigration.RewriteFunnelDupes.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.DataMigration.html b/Plausible.DataMigration.html
index 58a835ed1..77854c9bb 100644
--- a/Plausible.DataMigration.html
+++ b/Plausible.DataMigration.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.DebugReplayInfo.html b/Plausible.DebugReplayInfo.html
index 5509fb013..947c88468 100644
--- a/Plausible.DebugReplayInfo.html
+++ b/Plausible.DebugReplayInfo.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Ecto.EventName.html b/Plausible.Ecto.EventName.html
index 3910cf7f3..5f47bce41 100644
--- a/Plausible.Ecto.EventName.html
+++ b/Plausible.Ecto.EventName.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Event.WriteBuffer.html b/Plausible.Event.WriteBuffer.html
index e5dc98907..bf7916377 100644
--- a/Plausible.Event.WriteBuffer.html
+++ b/Plausible.Event.WriteBuffer.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Factory.html b/Plausible.Factory.html
index 6fdbffa32..e611271f7 100644
--- a/Plausible.Factory.html
+++ b/Plausible.Factory.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Funnel.Step.html b/Plausible.Funnel.Step.html
index caf78138d..abdc8d3ac 100644
--- a/Plausible.Funnel.Step.html
+++ b/Plausible.Funnel.Step.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Funnel.html b/Plausible.Funnel.html
index 2a727f1b7..235e146ed 100644
--- a/Plausible.Funnel.html
+++ b/Plausible.Funnel.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Funnels.html b/Plausible.Funnels.html
index 3879462d5..d75d8d009 100644
--- a/Plausible.Funnels.html
+++ b/Plausible.Funnels.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Geo.html b/Plausible.Geo.html
index e387c80cf..1c64a21bc 100644
--- a/Plausible.Geo.html
+++ b/Plausible.Geo.html
@@ -13,7 +13,7 @@
-
+
@@ -231,8 +231,8 @@ Functions
Examples
- In the case of a DB-IP database:
iex> database_type ( )
- "DBIP-City-Lite" In the case of a MaxMind database:
iex> database_type ( )
+ In the case of a DB-IP database:
iex> database_type ( )
+ "DBIP-City-Lite" In the case of a MaxMind database:
iex> database_type ( )
"GeoLite2-City"
@@ -272,8 +272,8 @@ asynchronously.
- Loading from a local file:
iex> load_db ( path : "/etc/plausible/dbip-city.mmdb" )
- :ok Downloading a MaxMind DB (this license key is no longer active):
iex> load_db ( license_key : "LNpsJCCKPis6XvBP" , edition : "GeoLite2-City" , async : true )
+ Loading from a local file:
iex> load_db ( path : "/etc/plausible/dbip-city.mmdb" )
+ :ok Downloading a MaxMind DB (this license key is no longer active):
iex> load_db ( license_key : "LNpsJCCKPis6XvBP" , edition : "GeoLite2-City" , async : true )
:ok
@@ -302,21 +302,21 @@ asynchronously.
-iex> lookup ( "8.7.6.5" )
- %{
- "city" => %{
+iex> lookup ( "8.7.6.5" )
+ %{
+ "city" => %{
"geoname_id" => 5349755 ,
- "names" => %{
+ "names" => %{
"de" => "Fontana" ,
"en" => "Fontana" ,
"ja" => "フォンタナ" ,
"ru" => "Фонтана"
- }
- } ,
- "continent" => %{
+ }
+ } ,
+ "continent" => %{
"code" => "NA" ,
"geoname_id" => 6255149 ,
- "names" => %{
+ "names" => %{
"de" => "Nordamerika" ,
"en" => "North America" ,
"es" => "Norteamérica" ,
@@ -325,12 +325,12 @@ asynchronously."pt-BR" => "América do Norte" ,
"ru" => "Северная Америка" ,
"zh-CN" => "北美洲"
- }
- } ,
- "country" => %{
+ }
+ } ,
+ "country" => %{
"geoname_id" => 6252001 ,
"iso_code" => "US" ,
- "names" => %{
+ "names" => %{
"de" => "Vereinigte Staaten" ,
"en" => "United States" ,
"es" => "Estados Unidos" ,
@@ -339,20 +339,20 @@ asynchronously."pt-BR" => "EUA" ,
"ru" => "США" ,
"zh-CN" => "美国"
- }
- } ,
- "location" => %{
+ }
+ } ,
+ "location" => %{
"accuracy_radius" => 50 ,
"latitude" => 34.1211 ,
"longitude" => - 117.4362 ,
"metro_code" => 803 ,
"time_zone" => "America/Los_Angeles"
- } ,
- "postal" => %{ "code" => "92336" } ,
- "registered_country" => %{
+ } ,
+ "postal" => %{ "code" => "92336" } ,
+ "registered_country" => %{
"geoname_id" => 6252001 ,
"iso_code" => "US" ,
- "names" => %{
+ "names" => %{
"de" => "Vereinigte Staaten" ,
"en" => "United States" ,
"es" => "Estados Unidos" ,
@@ -361,13 +361,13 @@ asynchronously."pt-BR" => "EUA" ,
"ru" => "США" ,
"zh-CN" => "美国"
- }
- } ,
- "subdivisions" => [
- %{
+ }
+ } ,
+ "subdivisions" => [
+ %{
"geoname_id" => 5332921 ,
"iso_code" => "CA" ,
- "names" => %{
+ "names" => %{
"de" => "Kalifornien" ,
"en" => "California" ,
"es" => "California" ,
@@ -376,10 +376,10 @@ asynchronously."pt-BR" => "Califórnia" ,
"ru" => "Калифорния" ,
"zh-CN" => "加州"
- }
- }
- ]
- }
+ }
+ }
+ ]
+ }
diff --git a/Plausible.Goal.html b/Plausible.Goal.html
index af43372e1..d058ef20b 100644
--- a/Plausible.Goal.html
+++ b/Plausible.Goal.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Goals.html b/Plausible.Goals.html
index 0ad6fffc5..4acc1f5bd 100644
--- a/Plausible.Goals.html
+++ b/Plausible.Goals.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Google.Api.Mock.html b/Plausible.Google.Api.Mock.html
index 33de6c960..20421675e 100644
--- a/Plausible.Google.Api.Mock.html
+++ b/Plausible.Google.Api.Mock.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Google.Api.html b/Plausible.Google.Api.html
index f205e7708..20dfe7a8c 100644
--- a/Plausible.Google.Api.html
+++ b/Plausible.Google.Api.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Google.Buffer.html b/Plausible.Google.Buffer.html
index 414b5040e..3870da53a 100644
--- a/Plausible.Google.Buffer.html
+++ b/Plausible.Google.Buffer.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Google.HTTP.html b/Plausible.Google.HTTP.html
index d654a69ac..6a8b41fbd 100644
--- a/Plausible.Google.HTTP.html
+++ b/Plausible.Google.HTTP.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Google.ReportRequest.html b/Plausible.Google.ReportRequest.html
index df75c7807..f9a312c46 100644
--- a/Plausible.Google.ReportRequest.html
+++ b/Plausible.Google.ReportRequest.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.HTTPClient.Interface.html b/Plausible.HTTPClient.Interface.html
index f108f5b09..d009eaa2f 100644
--- a/Plausible.HTTPClient.Interface.html
+++ b/Plausible.HTTPClient.Interface.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.HTTPClient.Non200Error.html b/Plausible.HTTPClient.Non200Error.html
index 8341e6dcc..1b7731db4 100644
--- a/Plausible.HTTPClient.Non200Error.html
+++ b/Plausible.HTTPClient.Non200Error.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.HTTPClient.html b/Plausible.HTTPClient.html
index 717bd1860..3889468fa 100644
--- a/Plausible.HTTPClient.html
+++ b/Plausible.HTTPClient.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.ImportDeletionRepo.html b/Plausible.ImportDeletionRepo.html
index 6bf8bbc39..88dc434e4 100644
--- a/Plausible.ImportDeletionRepo.html
+++ b/Plausible.ImportDeletionRepo.html
@@ -13,7 +13,7 @@
-
+
@@ -1114,23 +1114,23 @@ pool to disconnect within the given interval.See
-Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
+Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
- defmodule Demo do
+ defmodule Demo do
use Ecto.Schema
@primary_key false
- schema "ecto_ch_demo" do
+ schema "ecto_ch_demo" do
field :a , Ch , type : "UInt64"
field :b , :string
- end
- end
+ end
+ end
- rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
- { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
+ rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
+ { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
# schemaless
- { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
+ { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
diff --git a/Plausible.Imported.html b/Plausible.Imported.html
index 6277eb72d..6a25c90a7 100644
--- a/Plausible.Imported.html
+++ b/Plausible.Imported.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.IngestRepo.html b/Plausible.IngestRepo.html
index 7cc323f53..c2f6c486e 100644
--- a/Plausible.IngestRepo.html
+++ b/Plausible.IngestRepo.html
@@ -13,7 +13,7 @@
-
+
@@ -1114,23 +1114,23 @@ pool to disconnect within the given interval.
See
-Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
+Similar to insert_all/2 but with the following differences:
accepts rows as streams or lists sends rows as a chunked request doesn't autogenerate ids or does any other preprocessing Example:
Repo . query! ( "create table ecto_ch_demo(a UInt64, b String) engine Null" )
- defmodule Demo do
+ defmodule Demo do
use Ecto.Schema
@primary_key false
- schema "ecto_ch_demo" do
+ schema "ecto_ch_demo" do
field :a , Ch , type : "UInt64"
field :b , :string
- end
- end
+ end
+ end
- rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
- { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
+ rows = Stream . map ( 1 .. 100_000 , fn i -> %{ a : i , b : to_string ( i ) } end )
+ { 100_000 , nil } = Repo . insert_stream ( Demo , rows )
# schemaless
- { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
+ { 100_000 , nil } = Repo . insert_stream ( "ecto_ch_demo" , rows , types : [ a : Ch.Types . u64 ( ) , b : :string ] )
diff --git a/Plausible.Ingestion.Counters.Buffer.html b/Plausible.Ingestion.Counters.Buffer.html
index a4fab67a8..0d0a747ce 100644
--- a/Plausible.Ingestion.Counters.Buffer.html
+++ b/Plausible.Ingestion.Counters.Buffer.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Ingestion.Counters.Record.html b/Plausible.Ingestion.Counters.Record.html
index 315fbfc3d..f1d590356 100644
--- a/Plausible.Ingestion.Counters.Record.html
+++ b/Plausible.Ingestion.Counters.Record.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Ingestion.Counters.TelemetryHandler.html b/Plausible.Ingestion.Counters.TelemetryHandler.html
index 23d4de120..c8e8aec3c 100644
--- a/Plausible.Ingestion.Counters.TelemetryHandler.html
+++ b/Plausible.Ingestion.Counters.TelemetryHandler.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Ingestion.Counters.html b/Plausible.Ingestion.Counters.html
index 4d761d177..36456db4e 100644
--- a/Plausible.Ingestion.Counters.html
+++ b/Plausible.Ingestion.Counters.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Ingestion.Event.html b/Plausible.Ingestion.Event.html
index cde682ed3..2a14dfedf 100644
--- a/Plausible.Ingestion.Event.html
+++ b/Plausible.Ingestion.Event.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Ingestion.Request.html b/Plausible.Ingestion.Request.html
index 4c108434e..46d04c7db 100644
--- a/Plausible.Ingestion.Request.html
+++ b/Plausible.Ingestion.Request.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Mailer.html b/Plausible.Mailer.html
index 3b44f093f..680d10d14 100644
--- a/Plausible.Mailer.html
+++ b/Plausible.Mailer.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.OpenTelemetry.Sampler.html b/Plausible.OpenTelemetry.Sampler.html
index 349c86bb6..30c343183 100644
--- a/Plausible.OpenTelemetry.Sampler.html
+++ b/Plausible.OpenTelemetry.Sampler.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.PaddleApi.Mock.html b/Plausible.PaddleApi.Mock.html
index badd3d5cd..8e7f46eea 100644
--- a/Plausible.PaddleApi.Mock.html
+++ b/Plausible.PaddleApi.Mock.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Plugins.API.Token.html b/Plausible.Plugins.API.Token.html
index 2f9f2ad0b..a12192fe8 100644
--- a/Plausible.Plugins.API.Token.html
+++ b/Plausible.Plugins.API.Token.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Plugins.API.Tokens.html b/Plausible.Plugins.API.Tokens.html
index 2577fee5f..5363d42e3 100644
--- a/Plausible.Plugins.API.Tokens.html
+++ b/Plausible.Plugins.API.Tokens.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.PromEx.Plugins.PlausibleMetrics.html b/Plausible.PromEx.Plugins.PlausibleMetrics.html
index fc6e3471f..704e1a16d 100644
--- a/Plausible.PromEx.Plugins.PlausibleMetrics.html
+++ b/Plausible.PromEx.Plugins.PlausibleMetrics.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.PromEx.html b/Plausible.PromEx.html
index d22d83f4e..81dea6e63 100644
--- a/Plausible.PromEx.html
+++ b/Plausible.PromEx.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Props.html b/Plausible.Props.html
index b10b2243b..47ff2d34c 100644
--- a/Plausible.Props.html
+++ b/Plausible.Props.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Purge.html b/Plausible.Purge.html
index 9e5577e1a..885135f10 100644
--- a/Plausible.Purge.html
+++ b/Plausible.Purge.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Release.html b/Plausible.Release.html
index f337aae1f..d16884866 100644
--- a/Plausible.Release.html
+++ b/Plausible.Release.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Repo.html b/Plausible.Repo.html
index a8be751d8..b0cb1e02e 100644
--- a/Plausible.Repo.html
+++ b/Plausible.Repo.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Sentry.Client.html b/Plausible.Sentry.Client.html
index 0d9aabb3b..1ba32d595 100644
--- a/Plausible.Sentry.Client.html
+++ b/Plausible.Sentry.Client.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.SentryFilter.html b/Plausible.SentryFilter.html
index 722ff5b04..53f11f57b 100644
--- a/Plausible.SentryFilter.html
+++ b/Plausible.SentryFilter.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Session.CacheStore.html b/Plausible.Session.CacheStore.html
index e43b970fc..a45975814 100644
--- a/Plausible.Session.CacheStore.html
+++ b/Plausible.Session.CacheStore.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Session.Salts.html b/Plausible.Session.Salts.html
index 3386fa81b..647884c62 100644
--- a/Plausible.Session.Salts.html
+++ b/Plausible.Session.Salts.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Session.WriteBuffer.html b/Plausible.Session.WriteBuffer.html
index bee4f714e..967299160 100644
--- a/Plausible.Session.WriteBuffer.html
+++ b/Plausible.Session.WriteBuffer.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.Cache.Warmer.All.html b/Plausible.Site.Cache.Warmer.All.html
index 43bd6fe8c..68d288684 100644
--- a/Plausible.Site.Cache.Warmer.All.html
+++ b/Plausible.Site.Cache.Warmer.All.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.Cache.Warmer.RecentlyUpdated.html b/Plausible.Site.Cache.Warmer.RecentlyUpdated.html
index 6bb686a01..bb168fd36 100644
--- a/Plausible.Site.Cache.Warmer.RecentlyUpdated.html
+++ b/Plausible.Site.Cache.Warmer.RecentlyUpdated.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.Cache.Warmer.html b/Plausible.Site.Cache.Warmer.html
index 1f65fbef3..41bd2d534 100644
--- a/Plausible.Site.Cache.Warmer.html
+++ b/Plausible.Site.Cache.Warmer.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.Cache.html b/Plausible.Site.Cache.html
index c55fe8cc1..ba52a97a9 100644
--- a/Plausible.Site.Cache.html
+++ b/Plausible.Site.Cache.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.CustomDomain.html b/Plausible.Site.CustomDomain.html
index 4c5156875..bcc46186e 100644
--- a/Plausible.Site.CustomDomain.html
+++ b/Plausible.Site.CustomDomain.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.Domain.html b/Plausible.Site.Domain.html
index 487d9926b..77c96bf04 100644
--- a/Plausible.Site.Domain.html
+++ b/Plausible.Site.Domain.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.GateKeeper.html b/Plausible.Site.GateKeeper.html
index 6feacc85f..4c481a87f 100644
--- a/Plausible.Site.GateKeeper.html
+++ b/Plausible.Site.GateKeeper.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.GoogleAuth.html b/Plausible.Site.GoogleAuth.html
index dd868ff10..753e2e03e 100644
--- a/Plausible.Site.GoogleAuth.html
+++ b/Plausible.Site.GoogleAuth.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.ImportedData.html b/Plausible.Site.ImportedData.html
index 8738dc7c8..4a09c544c 100644
--- a/Plausible.Site.ImportedData.html
+++ b/Plausible.Site.ImportedData.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.Membership.html b/Plausible.Site.Membership.html
index 544473ccc..aba9ea8f8 100644
--- a/Plausible.Site.Membership.html
+++ b/Plausible.Site.Membership.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.MonthlyReport.html b/Plausible.Site.MonthlyReport.html
index ec9ac4761..8328dbae0 100644
--- a/Plausible.Site.MonthlyReport.html
+++ b/Plausible.Site.MonthlyReport.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.Removal.html b/Plausible.Site.Removal.html
index e3a997706..26fc1a153 100644
--- a/Plausible.Site.Removal.html
+++ b/Plausible.Site.Removal.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.SharedLink.html b/Plausible.Site.SharedLink.html
index 9bc896454..bee52d3c3 100644
--- a/Plausible.Site.SharedLink.html
+++ b/Plausible.Site.SharedLink.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.SpikeNotification.html b/Plausible.Site.SpikeNotification.html
index cc97d92f5..cb78bf3b7 100644
--- a/Plausible.Site.SpikeNotification.html
+++ b/Plausible.Site.SpikeNotification.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.WeeklyReport.html b/Plausible.Site.WeeklyReport.html
index 0420f94ee..78838082f 100644
--- a/Plausible.Site.WeeklyReport.html
+++ b/Plausible.Site.WeeklyReport.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Site.html b/Plausible.Site.html
index b6de7cc77..968b03db5 100644
--- a/Plausible.Site.html
+++ b/Plausible.Site.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.SiteAdmin.html b/Plausible.SiteAdmin.html
index abe5b4eda..56223c995 100644
--- a/Plausible.SiteAdmin.html
+++ b/Plausible.SiteAdmin.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Sites.html b/Plausible.Sites.html
index 99ebb89f4..37cc7c0f6 100644
--- a/Plausible.Sites.html
+++ b/Plausible.Sites.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Aggregate.html b/Plausible.Stats.Aggregate.html
index 60c212dc1..011d1de84 100644
--- a/Plausible.Stats.Aggregate.html
+++ b/Plausible.Stats.Aggregate.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Base.html b/Plausible.Stats.Base.html
index bd65f3928..1addd7b1b 100644
--- a/Plausible.Stats.Base.html
+++ b/Plausible.Stats.Base.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Breakdown.html b/Plausible.Stats.Breakdown.html
index d6621d071..f951a6718 100644
--- a/Plausible.Stats.Breakdown.html
+++ b/Plausible.Stats.Breakdown.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Clickhouse.html b/Plausible.Stats.Clickhouse.html
index 8b4c3484b..2a51b4390 100644
--- a/Plausible.Stats.Clickhouse.html
+++ b/Plausible.Stats.Clickhouse.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Compare.html b/Plausible.Stats.Compare.html
index 41bb9795c..c66c11661 100644
--- a/Plausible.Stats.Compare.html
+++ b/Plausible.Stats.Compare.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Comparisons.html b/Plausible.Stats.Comparisons.html
index 53dffd0be..0c07a6496 100644
--- a/Plausible.Stats.Comparisons.html
+++ b/Plausible.Stats.Comparisons.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.CurrentVisitors.html b/Plausible.Stats.CurrentVisitors.html
index 95fce0d38..de8d080f9 100644
--- a/Plausible.Stats.CurrentVisitors.html
+++ b/Plausible.Stats.CurrentVisitors.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.CustomProps.html b/Plausible.Stats.CustomProps.html
index 717a1ec76..701c261b2 100644
--- a/Plausible.Stats.CustomProps.html
+++ b/Plausible.Stats.CustomProps.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.FilterParser.html b/Plausible.Stats.FilterParser.html
index e82d3d986..54f4dbb23 100644
--- a/Plausible.Stats.FilterParser.html
+++ b/Plausible.Stats.FilterParser.html
@@ -13,7 +13,7 @@
-
+
@@ -178,14 +178,14 @@ Functions
Examples:
-
iex> FilterParser . parse_filters ( "{ \" page \" : \" /blog/** \" }" )
- %{ "page" => "/blog/**" }
+iex> FilterParser . parse_filters ( "{ \" page \" : \" /blog/** \" }" )
+ %{ "page" => "/blog/**" }
- iex> FilterParser . parse_filters ( "visit:browser!=Chrome" )
- %{ "visit:browser" => { :is_not , "Chrome" } }
+ iex> FilterParser . parse_filters ( "visit:browser!=Chrome" )
+ %{ "visit:browser" => { :is_not , "Chrome" } }
- iex> FilterParser . parse_filters ( nil )
- %{ }
+ iex> FilterParser . parse_filters ( nil )
+ %{ }
diff --git a/Plausible.Stats.FilterSuggestions.html b/Plausible.Stats.FilterSuggestions.html
index 1a8d40e3b..8f71a54c4 100644
--- a/Plausible.Stats.FilterSuggestions.html
+++ b/Plausible.Stats.FilterSuggestions.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Filters.html b/Plausible.Stats.Filters.html
index 6dc4c519a..ce065abfa 100644
--- a/Plausible.Stats.Filters.html
+++ b/Plausible.Stats.Filters.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Fragments.html b/Plausible.Stats.Fragments.html
index bd5948ae7..1ba77bd26 100644
--- a/Plausible.Stats.Fragments.html
+++ b/Plausible.Stats.Fragments.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Funnel.html b/Plausible.Stats.Funnel.html
index 98fab4b0e..a5dee3631 100644
--- a/Plausible.Stats.Funnel.html
+++ b/Plausible.Stats.Funnel.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Imported.html b/Plausible.Stats.Imported.html
index b0a5206b3..0c5c3254c 100644
--- a/Plausible.Stats.Imported.html
+++ b/Plausible.Stats.Imported.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Interval.html b/Plausible.Stats.Interval.html
index 193f0479d..9ffb29b9f 100644
--- a/Plausible.Stats.Interval.html
+++ b/Plausible.Stats.Interval.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Props.html b/Plausible.Stats.Props.html
index 6066d00ce..f2f6b32cc 100644
--- a/Plausible.Stats.Props.html
+++ b/Plausible.Stats.Props.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Query.html b/Plausible.Stats.Query.html
index 06683b286..e1ae6f250 100644
--- a/Plausible.Stats.Query.html
+++ b/Plausible.Stats.Query.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Timeseries.html b/Plausible.Stats.Timeseries.html
index 798ea330e..16796211d 100644
--- a/Plausible.Stats.Timeseries.html
+++ b/Plausible.Stats.Timeseries.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.Util.html b/Plausible.Stats.Util.html
index cd59b30ac..3b131fa6d 100644
--- a/Plausible.Stats.Util.html
+++ b/Plausible.Stats.Util.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Stats.html b/Plausible.Stats.html
index 4c15495a7..e61aecd53 100644
--- a/Plausible.Stats.html
+++ b/Plausible.Stats.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Test.Support.HTML.html b/Plausible.Test.Support.HTML.html
index 856f73ed2..735a7d816 100644
--- a/Plausible.Test.Support.HTML.html
+++ b/Plausible.Test.Support.HTML.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.TestUtils.html b/Plausible.TestUtils.html
index a7489d444..c69ba2418 100644
--- a/Plausible.TestUtils.html
+++ b/Plausible.TestUtils.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Themes.html b/Plausible.Themes.html
index 41c8bec96..bf43b78cc 100644
--- a/Plausible.Themes.html
+++ b/Plausible.Themes.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Timezones.html b/Plausible.Timezones.html
index 9706eca2c..828ec269c 100644
--- a/Plausible.Timezones.html
+++ b/Plausible.Timezones.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Users.html b/Plausible.Users.html
index 3b4b78ff1..bf547efcd 100644
--- a/Plausible.Users.html
+++ b/Plausible.Users.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.CheckUsage.html b/Plausible.Workers.CheckUsage.html
index 09fd4e103..40d9046d6 100644
--- a/Plausible.Workers.CheckUsage.html
+++ b/Plausible.Workers.CheckUsage.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.CleanEmailVerificationCodes.html b/Plausible.Workers.CleanEmailVerificationCodes.html
index 1a7e053a7..95621283a 100644
--- a/Plausible.Workers.CleanEmailVerificationCodes.html
+++ b/Plausible.Workers.CleanEmailVerificationCodes.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.CleanInvitations.html b/Plausible.Workers.CleanInvitations.html
index b62365398..65962d2f1 100644
--- a/Plausible.Workers.CleanInvitations.html
+++ b/Plausible.Workers.CleanInvitations.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.ExpireDomainChangeTransitions.html b/Plausible.Workers.ExpireDomainChangeTransitions.html
index a2374aebc..29fd060a6 100644
--- a/Plausible.Workers.ExpireDomainChangeTransitions.html
+++ b/Plausible.Workers.ExpireDomainChangeTransitions.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.ImportGoogleAnalytics.html b/Plausible.Workers.ImportGoogleAnalytics.html
index 6314baea7..b83a20ca3 100644
--- a/Plausible.Workers.ImportGoogleAnalytics.html
+++ b/Plausible.Workers.ImportGoogleAnalytics.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.LockSites.html b/Plausible.Workers.LockSites.html
index ac288178d..60505f23f 100644
--- a/Plausible.Workers.LockSites.html
+++ b/Plausible.Workers.LockSites.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.NotifyAnnualRenewal.html b/Plausible.Workers.NotifyAnnualRenewal.html
index 4933ce508..4f8fa63ff 100644
--- a/Plausible.Workers.NotifyAnnualRenewal.html
+++ b/Plausible.Workers.NotifyAnnualRenewal.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.RotateSalts.html b/Plausible.Workers.RotateSalts.html
index 3ac9f2606..583cb5b38 100644
--- a/Plausible.Workers.RotateSalts.html
+++ b/Plausible.Workers.RotateSalts.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.ScheduleEmailReports.html b/Plausible.Workers.ScheduleEmailReports.html
index 522d5905e..855ce09aa 100644
--- a/Plausible.Workers.ScheduleEmailReports.html
+++ b/Plausible.Workers.ScheduleEmailReports.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.SendCheckStatsEmails.html b/Plausible.Workers.SendCheckStatsEmails.html
index 20900b8b8..0030d1c95 100644
--- a/Plausible.Workers.SendCheckStatsEmails.html
+++ b/Plausible.Workers.SendCheckStatsEmails.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.SendEmailReport.html b/Plausible.Workers.SendEmailReport.html
index 90dcdbc99..ca4413ef0 100644
--- a/Plausible.Workers.SendEmailReport.html
+++ b/Plausible.Workers.SendEmailReport.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.SendSiteSetupEmails.html b/Plausible.Workers.SendSiteSetupEmails.html
index 711555621..e0571f9af 100644
--- a/Plausible.Workers.SendSiteSetupEmails.html
+++ b/Plausible.Workers.SendSiteSetupEmails.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.SendTrialNotifications.html b/Plausible.Workers.SendTrialNotifications.html
index cd9eece6a..26a65a0f1 100644
--- a/Plausible.Workers.SendTrialNotifications.html
+++ b/Plausible.Workers.SendTrialNotifications.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.Workers.SpikeNotifier.html b/Plausible.Workers.SpikeNotifier.html
index fe70c59db..b2e6a472e 100644
--- a/Plausible.Workers.SpikeNotifier.html
+++ b/Plausible.Workers.SpikeNotifier.html
@@ -13,7 +13,7 @@
-
+
diff --git a/Plausible.epub b/Plausible.epub
index c3db79f75..f88a2f747 100644
Binary files a/Plausible.epub and b/Plausible.epub differ
diff --git a/Plausible.html b/Plausible.html
index cc1a9a818..0da1c4d63 100644
--- a/Plausible.html
+++ b/Plausible.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Api.ExternalController.html b/PlausibleWeb.Api.ExternalController.html
index b4ef9e316..9b0d3a19b 100644
--- a/PlausibleWeb.Api.ExternalController.html
+++ b/PlausibleWeb.Api.ExternalController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Api.ExternalSitesController.html b/PlausibleWeb.Api.ExternalSitesController.html
index 685b32382..12b339b09 100644
--- a/PlausibleWeb.Api.ExternalSitesController.html
+++ b/PlausibleWeb.Api.ExternalSitesController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Api.ExternalStatsController.html b/PlausibleWeb.Api.ExternalStatsController.html
index 0dba5967d..33bffaaf8 100644
--- a/PlausibleWeb.Api.ExternalStatsController.html
+++ b/PlausibleWeb.Api.ExternalStatsController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Api.Helpers.html b/PlausibleWeb.Api.Helpers.html
index febb30cbe..a42677616 100644
--- a/PlausibleWeb.Api.Helpers.html
+++ b/PlausibleWeb.Api.Helpers.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Api.InternalController.html b/PlausibleWeb.Api.InternalController.html
index a7451b515..6385d8f9c 100644
--- a/PlausibleWeb.Api.InternalController.html
+++ b/PlausibleWeb.Api.InternalController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Api.PaddleController.html b/PlausibleWeb.Api.PaddleController.html
index 929eddbbd..2940120d8 100644
--- a/PlausibleWeb.Api.PaddleController.html
+++ b/PlausibleWeb.Api.PaddleController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Api.StatsController.html b/PlausibleWeb.Api.StatsController.html
index 352d7de6d..6adbfc4ec 100644
--- a/PlausibleWeb.Api.StatsController.html
+++ b/PlausibleWeb.Api.StatsController.html
@@ -13,7 +13,7 @@
-
+
@@ -654,13 +654,13 @@ and month. The default depends on the Plausible.Query.from/2 for each default.filters - optional filters to drill down data. See the Stats API
"Filtering" section for
more details.
with_imported - boolean indicating whether to include Google Analytics
-imported data or not. Defaults to false.
Full example:
%{
+imported data or not. Defaults to false.Full example:
%{
"from" => "2021-09-06" ,
"interval" => "month" ,
"metric" => "visitors" ,
"period" => "custom" ,
"to" => "2021-12-13"
- }
+ }
Response
@@ -675,20 +675,20 @@ cut off by the requested date range or not. For example, if looking at a
month week-by-week, some weeks may be cut off by the month boundaries.
It's useful to adjust the graph display slightly in case the interval is
not 'full' so that the user understands why the numbers might be lower for
-those partial periods.Full example:
%{
- "full_intervals" => %{
+those partial periods.Full example:
%{
+ "full_intervals" => %{
"2021-09-01" => false ,
"2021-10-01" => true ,
"2021-11-01" => true ,
"2021-12-01" => false
- } ,
+ } ,
"imported_source" => nil ,
"interval" => "month" ,
- "labels" => [ "2021-09-01" , "2021-10-01" , "2021-11-01" , "2021-12-01" ] ,
- "plot" => [ 0 , 0 , 0 , 0 ] ,
+ "labels" => [ "2021-09-01" , "2021-10-01" , "2021-11-01" , "2021-12-01" ] ,
+ "plot" => [ 0 , 0 , 0 , 0 ] ,
"present_index" => nil ,
"with_imported" => false
- }
+ }
diff --git a/PlausibleWeb.AuthController.html b/PlausibleWeb.AuthController.html
index d5c8cc240..8c9170587 100644
--- a/PlausibleWeb.AuthController.html
+++ b/PlausibleWeb.AuthController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.AuthPlug.html b/PlausibleWeb.AuthPlug.html
index 4eb031798..a183ec2f3 100644
--- a/PlausibleWeb.AuthPlug.html
+++ b/PlausibleWeb.AuthPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.AuthView.html b/PlausibleWeb.AuthView.html
index a938707ad..66eb61a99 100644
--- a/PlausibleWeb.AuthView.html
+++ b/PlausibleWeb.AuthView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.AuthorizeSiteAccess.html b/PlausibleWeb.AuthorizeSiteAccess.html
index 3fd2e6f99..4e1d4dab8 100644
--- a/PlausibleWeb.AuthorizeSiteAccess.html
+++ b/PlausibleWeb.AuthorizeSiteAccess.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.AuthorizeSitesApiPlug.html b/PlausibleWeb.AuthorizeSitesApiPlug.html
index d707d33a0..632f016da 100644
--- a/PlausibleWeb.AuthorizeSitesApiPlug.html
+++ b/PlausibleWeb.AuthorizeSitesApiPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.AuthorizeStatsApiPlug.html b/PlausibleWeb.AuthorizeStatsApiPlug.html
index 55bb5d30e..f50ea7aca 100644
--- a/PlausibleWeb.AuthorizeStatsApiPlug.html
+++ b/PlausibleWeb.AuthorizeStatsApiPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.BillingController.html b/PlausibleWeb.BillingController.html
index 7642c61dd..92de06767 100644
--- a/PlausibleWeb.BillingController.html
+++ b/PlausibleWeb.BillingController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.BillingView.html b/PlausibleWeb.BillingView.html
index 359b11cb7..b68e11cdd 100644
--- a/PlausibleWeb.BillingView.html
+++ b/PlausibleWeb.BillingView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.CRMAuthPlug.html b/PlausibleWeb.CRMAuthPlug.html
index 63021f0ed..776a8c020 100644
--- a/PlausibleWeb.CRMAuthPlug.html
+++ b/PlausibleWeb.CRMAuthPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Captcha.html b/PlausibleWeb.Captcha.html
index 52fb8cad3..5a9200988 100644
--- a/PlausibleWeb.Captcha.html
+++ b/PlausibleWeb.Captcha.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Components.Generic.html b/PlausibleWeb.Components.Generic.html
index 1f76897b3..7f0982b52 100644
--- a/PlausibleWeb.Components.Generic.html
+++ b/PlausibleWeb.Components.Generic.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Components.Site.Feature.html b/PlausibleWeb.Components.Site.Feature.html
index df8ce52d6..d1e6f229d 100644
--- a/PlausibleWeb.Components.Site.Feature.html
+++ b/PlausibleWeb.Components.Site.Feature.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.ConnCase.html b/PlausibleWeb.ConnCase.html
index df99ed6ce..93baf93ee 100644
--- a/PlausibleWeb.ConnCase.html
+++ b/PlausibleWeb.ConnCase.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.ControllerHelpers.html b/PlausibleWeb.ControllerHelpers.html
index ed943d43d..6b402fdc8 100644
--- a/PlausibleWeb.ControllerHelpers.html
+++ b/PlausibleWeb.ControllerHelpers.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Email.html b/PlausibleWeb.Email.html
index 85d93ed9c..3bd1ebd54 100644
--- a/PlausibleWeb.Email.html
+++ b/PlausibleWeb.Email.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.EmailView.html b/PlausibleWeb.EmailView.html
index 38275300a..0dbd16fc3 100644
--- a/PlausibleWeb.EmailView.html
+++ b/PlausibleWeb.EmailView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Endpoint.html b/PlausibleWeb.Endpoint.html
index 3c1c52c41..d6222d290 100644
--- a/PlausibleWeb.Endpoint.html
+++ b/PlausibleWeb.Endpoint.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.ErrorHelpers.html b/PlausibleWeb.ErrorHelpers.html
index acffb09d7..565a07f19 100644
--- a/PlausibleWeb.ErrorHelpers.html
+++ b/PlausibleWeb.ErrorHelpers.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.ErrorReportController.html b/PlausibleWeb.ErrorReportController.html
index 02855681f..1be5b5d46 100644
--- a/PlausibleWeb.ErrorReportController.html
+++ b/PlausibleWeb.ErrorReportController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.ErrorView.html b/PlausibleWeb.ErrorView.html
index ea61ae924..345f30cce 100644
--- a/PlausibleWeb.ErrorView.html
+++ b/PlausibleWeb.ErrorView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Favicon.html b/PlausibleWeb.Favicon.html
index 3649a953f..a5928f26a 100644
--- a/PlausibleWeb.Favicon.html
+++ b/PlausibleWeb.Favicon.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.FirstLaunchPlug.html b/PlausibleWeb.FirstLaunchPlug.html
index c05e3be86..14dc6c3e7 100644
--- a/PlausibleWeb.FirstLaunchPlug.html
+++ b/PlausibleWeb.FirstLaunchPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.FormHelpers.html b/PlausibleWeb.FormHelpers.html
index 2ec869c0a..dd7bac9ce 100644
--- a/PlausibleWeb.FormHelpers.html
+++ b/PlausibleWeb.FormHelpers.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.InvitationController.html b/PlausibleWeb.InvitationController.html
index fdb250460..a50129fb9 100644
--- a/PlausibleWeb.InvitationController.html
+++ b/PlausibleWeb.InvitationController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.LastSeenPlug.html b/PlausibleWeb.LastSeenPlug.html
index 037678434..f7afeb365 100644
--- a/PlausibleWeb.LastSeenPlug.html
+++ b/PlausibleWeb.LastSeenPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.LayoutView.html b/PlausibleWeb.LayoutView.html
index 238670947..62acbd64a 100644
--- a/PlausibleWeb.LayoutView.html
+++ b/PlausibleWeb.LayoutView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.Components.ComboBox.StaticSearch.html b/PlausibleWeb.Live.Components.ComboBox.StaticSearch.html
index d26542b0d..e3ca2a166 100644
--- a/PlausibleWeb.Live.Components.ComboBox.StaticSearch.html
+++ b/PlausibleWeb.Live.Components.ComboBox.StaticSearch.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.Components.ComboBox.html b/PlausibleWeb.Live.Components.ComboBox.html
index 09f0bd7eb..64bcbe773 100644
--- a/PlausibleWeb.Live.Components.ComboBox.html
+++ b/PlausibleWeb.Live.Components.ComboBox.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.Components.Form.html b/PlausibleWeb.Live.Components.Form.html
index a34e2d1cb..373dd6a6e 100644
--- a/PlausibleWeb.Live.Components.Form.html
+++ b/PlausibleWeb.Live.Components.Form.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.Flash.html b/PlausibleWeb.Live.Flash.html
index 2e15f4939..949134198 100644
--- a/PlausibleWeb.Live.Flash.html
+++ b/PlausibleWeb.Live.Flash.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.FunnelSettings.Form.html b/PlausibleWeb.Live.FunnelSettings.Form.html
index 077369efa..0fb3f9c2f 100644
--- a/PlausibleWeb.Live.FunnelSettings.Form.html
+++ b/PlausibleWeb.Live.FunnelSettings.Form.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.FunnelSettings.List.html b/PlausibleWeb.Live.FunnelSettings.List.html
index 96e03cdf6..605ee4ee6 100644
--- a/PlausibleWeb.Live.FunnelSettings.List.html
+++ b/PlausibleWeb.Live.FunnelSettings.List.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.FunnelSettings.html b/PlausibleWeb.Live.FunnelSettings.html
index 6ffbb4c5e..362c925cd 100644
--- a/PlausibleWeb.Live.FunnelSettings.html
+++ b/PlausibleWeb.Live.FunnelSettings.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.GoalSettings.Form.html b/PlausibleWeb.Live.GoalSettings.Form.html
index a7338a1bc..2a5d503a1 100644
--- a/PlausibleWeb.Live.GoalSettings.Form.html
+++ b/PlausibleWeb.Live.GoalSettings.Form.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.GoalSettings.List.html b/PlausibleWeb.Live.GoalSettings.List.html
index 551712af1..e66659699 100644
--- a/PlausibleWeb.Live.GoalSettings.List.html
+++ b/PlausibleWeb.Live.GoalSettings.List.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.GoalSettings.html b/PlausibleWeb.Live.GoalSettings.html
index 106ad6fbb..0da8d235f 100644
--- a/PlausibleWeb.Live.GoalSettings.html
+++ b/PlausibleWeb.Live.GoalSettings.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.PropsSettings.Form.html b/PlausibleWeb.Live.PropsSettings.Form.html
index 6fbad5c35..b10ea9590 100644
--- a/PlausibleWeb.Live.PropsSettings.Form.html
+++ b/PlausibleWeb.Live.PropsSettings.Form.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.PropsSettings.List.html b/PlausibleWeb.Live.PropsSettings.List.html
index 8aac7af46..5aabc9d9c 100644
--- a/PlausibleWeb.Live.PropsSettings.List.html
+++ b/PlausibleWeb.Live.PropsSettings.List.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.PropsSettings.html b/PlausibleWeb.Live.PropsSettings.html
index 0d0201d7c..a7b56b165 100644
--- a/PlausibleWeb.Live.PropsSettings.html
+++ b/PlausibleWeb.Live.PropsSettings.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.RegisterForm.html b/PlausibleWeb.Live.RegisterForm.html
index c70f851f5..06f813eed 100644
--- a/PlausibleWeb.Live.RegisterForm.html
+++ b/PlausibleWeb.Live.RegisterForm.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Live.ResetPasswordForm.html b/PlausibleWeb.Live.ResetPasswordForm.html
index 2ce89e370..c93861766 100644
--- a/PlausibleWeb.Live.ResetPasswordForm.html
+++ b/PlausibleWeb.Live.ResetPasswordForm.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.LiveSocket.html b/PlausibleWeb.LiveSocket.html
index 116dcd004..faf950a64 100644
--- a/PlausibleWeb.LiveSocket.html
+++ b/PlausibleWeb.LiveSocket.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.MJML.WeeklyReport.html b/PlausibleWeb.MJML.WeeklyReport.html
index ca8bda9a3..bf6923bf3 100644
--- a/PlausibleWeb.MJML.WeeklyReport.html
+++ b/PlausibleWeb.MJML.WeeklyReport.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.PageController.html b/PlausibleWeb.PageController.html
index 0135c0f01..f86ebafad 100644
--- a/PlausibleWeb.PageController.html
+++ b/PlausibleWeb.PageController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.PageView.html b/PlausibleWeb.PageView.html
index 7ed3b18b0..b03c633f3 100644
--- a/PlausibleWeb.PageView.html
+++ b/PlausibleWeb.PageView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Plugins.API.Errors.html b/PlausibleWeb.Plugins.API.Errors.html
index 1618bd65f..4917ae97f 100644
--- a/PlausibleWeb.Plugins.API.Errors.html
+++ b/PlausibleWeb.Plugins.API.Errors.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Plugs.AuthorizePluginsAPI.html b/PlausibleWeb.Plugs.AuthorizePluginsAPI.html
index 8c583cb5e..22cc23717 100644
--- a/PlausibleWeb.Plugs.AuthorizePluginsAPI.html
+++ b/PlausibleWeb.Plugs.AuthorizePluginsAPI.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Plugs.MaybeDisableRegistration.html b/PlausibleWeb.Plugs.MaybeDisableRegistration.html
index 9e04b0c30..dd7e491ba 100644
--- a/PlausibleWeb.Plugs.MaybeDisableRegistration.html
+++ b/PlausibleWeb.Plugs.MaybeDisableRegistration.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Plugs.NoRobots.html b/PlausibleWeb.Plugs.NoRobots.html
index 4f5a5849e..79dfb412d 100644
--- a/PlausibleWeb.Plugs.NoRobots.html
+++ b/PlausibleWeb.Plugs.NoRobots.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Plugs.RuntimeSessionAdapter.html b/PlausibleWeb.Plugs.RuntimeSessionAdapter.html
index 7d95ad79f..2bd87287b 100644
--- a/PlausibleWeb.Plugs.RuntimeSessionAdapter.html
+++ b/PlausibleWeb.Plugs.RuntimeSessionAdapter.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.RefInspector.html b/PlausibleWeb.RefInspector.html
index 80ea66ea3..663537284 100644
--- a/PlausibleWeb.RefInspector.html
+++ b/PlausibleWeb.RefInspector.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.RemoteIp.html b/PlausibleWeb.RemoteIp.html
index 601f85cdb..82cfd8b8b 100644
--- a/PlausibleWeb.RemoteIp.html
+++ b/PlausibleWeb.RemoteIp.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.RequireAccountPlug.html b/PlausibleWeb.RequireAccountPlug.html
index c393a26a5..2ce7ab1b8 100644
--- a/PlausibleWeb.RequireAccountPlug.html
+++ b/PlausibleWeb.RequireAccountPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.RequireLoggedOutPlug.html b/PlausibleWeb.RequireLoggedOutPlug.html
index f7b2b4e20..71cba513f 100644
--- a/PlausibleWeb.RequireLoggedOutPlug.html
+++ b/PlausibleWeb.RequireLoggedOutPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Router.html b/PlausibleWeb.Router.html
index 419df9706..31f63b123 100644
--- a/PlausibleWeb.Router.html
+++ b/PlausibleWeb.Router.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.SessionTimeoutPlug.html b/PlausibleWeb.SessionTimeoutPlug.html
index 14f843b25..bd15c7ac8 100644
--- a/PlausibleWeb.SessionTimeoutPlug.html
+++ b/PlausibleWeb.SessionTimeoutPlug.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Site.MembershipController.html b/PlausibleWeb.Site.MembershipController.html
index 224dcc9d8..5a781c385 100644
--- a/PlausibleWeb.Site.MembershipController.html
+++ b/PlausibleWeb.Site.MembershipController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Site.MembershipView.html b/PlausibleWeb.Site.MembershipView.html
index 2c73d5e1a..ffebadefc 100644
--- a/PlausibleWeb.Site.MembershipView.html
+++ b/PlausibleWeb.Site.MembershipView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.SiteController.html b/PlausibleWeb.SiteController.html
index 5c9f8435e..aac27cf0f 100644
--- a/PlausibleWeb.SiteController.html
+++ b/PlausibleWeb.SiteController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.SiteView.html b/PlausibleWeb.SiteView.html
index 91bfd9186..524fb363f 100644
--- a/PlausibleWeb.SiteView.html
+++ b/PlausibleWeb.SiteView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.StatsController.html b/PlausibleWeb.StatsController.html
index 5ae0ca3c6..4cb71b150 100644
--- a/PlausibleWeb.StatsController.html
+++ b/PlausibleWeb.StatsController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.StatsView.html b/PlausibleWeb.StatsView.html
index bd48da600..783dcc442 100644
--- a/PlausibleWeb.StatsView.html
+++ b/PlausibleWeb.StatsView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.Tracker.html b/PlausibleWeb.Tracker.html
index e26c24df7..f4c326ea6 100644
--- a/PlausibleWeb.Tracker.html
+++ b/PlausibleWeb.Tracker.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.UnsubscribeController.html b/PlausibleWeb.UnsubscribeController.html
index 451b179ef..d8a319f89 100644
--- a/PlausibleWeb.UnsubscribeController.html
+++ b/PlausibleWeb.UnsubscribeController.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.UnsubscribeView.html b/PlausibleWeb.UnsubscribeView.html
index c73138a13..1812100f7 100644
--- a/PlausibleWeb.UnsubscribeView.html
+++ b/PlausibleWeb.UnsubscribeView.html
@@ -13,7 +13,7 @@
-
+
diff --git a/PlausibleWeb.html b/PlausibleWeb.html
index e7de60465..ca6471ac1 100644
--- a/PlausibleWeb.html
+++ b/PlausibleWeb.html
@@ -13,7 +13,7 @@
-
+
diff --git a/account-locking.html b/account-locking.html
index d0cac0a1c..1094cebc0 100644
--- a/account-locking.html
+++ b/account-locking.html
@@ -13,7 +13,7 @@
-
+
diff --git a/api-reference.html b/api-reference.html
index c79942370..233c9cafe 100644
--- a/api-reference.html
+++ b/api-reference.html
@@ -13,7 +13,7 @@
-
+
diff --git a/contributing.html b/contributing.html
index 44ea7bc48..325af28dc 100644
--- a/contributing.html
+++ b/contributing.html
@@ -13,7 +13,7 @@
-
+
diff --git a/dist/search_data-96418B32.js b/dist/search_data-45F81179.js
similarity index 97%
rename from dist/search_data-96418B32.js
rename to dist/search_data-45F81179.js
index 01409b193..c7ee4c607 100644
--- a/dist/search_data-96418B32.js
+++ b/dist/search_data-45F81179.js
@@ -1 +1 @@
-searchData={"content_type":"text/markdown","items":[{"doc":"","ref":"Mix.Tasks.CleanClickhouse.html","title":"mix clean_clickhouse","type":"task"},{"doc":"","ref":"Mix.Tasks.CleanClickhouse.html#run/1","title":"Mix.Tasks.CleanClickhouse.run/1","type":"function"},{"doc":"","ref":"Mix.Tasks.CreateFreeSubscription.html","title":"mix create_free_subscription","type":"task"},{"doc":"","ref":"Mix.Tasks.CreateFreeSubscription.html#execute/1","title":"Mix.Tasks.CreateFreeSubscription.execute/1","type":"function"},{"doc":"","ref":"Mix.Tasks.CreateFreeSubscription.html#run/1","title":"Mix.Tasks.CreateFreeSubscription.run/1","type":"function"},{"doc":"This task downloads the Country Lite database from DB-IP for self-hosted or development purposes.\nPlausible Cloud runs a paid version of DB-IP with more detailed geolocation data.","ref":"Mix.Tasks.DownloadCountryDatabase.html","title":"mix download_country_database","type":"task"},{"doc":"","ref":"Mix.Tasks.DownloadCountryDatabase.html#run/1","title":"Mix.Tasks.DownloadCountryDatabase.run/1","type":"function"},{"doc":"","ref":"Mix.Tasks.GenerateReferrerFavicons.html","title":"mix generate_referrer_favicons","type":"task"},{"doc":"","ref":"Mix.Tasks.GenerateReferrerFavicons.html#run/1","title":"Mix.Tasks.GenerateReferrerFavicons.run/1","type":"function"},{"doc":"","ref":"Mix.Tasks.PullSandboxSubscription.html","title":"mix pull_sandbox_subscription","type":"task"},{"doc":"","ref":"Mix.Tasks.PullSandboxSubscription.html#run/1","title":"Mix.Tasks.PullSandboxSubscription.run/1","type":"function"},{"doc":"It's often necessary to generate fake events for development and testing purposes. This Mix Task provides a quick and easy\nway to generate a pageview or custom event, either in your development environment or a remote Plausible instance.\n\nSee Mix.Tasks.SendPageview.usage/1 for more detailed documentation.","ref":"Mix.Tasks.SendPageview.html","title":"mix send_pageview","type":"task"},{"doc":"","ref":"Mix.Tasks.SendPageview.html#run/1","title":"Mix.Tasks.SendPageview.run/1","type":"function"},{"doc":"","ref":"ObanErrorReporter.html","title":"ObanErrorReporter","type":"module"},{"doc":"","ref":"ObanErrorReporter.html#handle_event/4","title":"ObanErrorReporter.handle_event/4","type":"function"},{"doc":"Plausible keeps the contexts that define your domain\nand business logic.\n\nContexts are also responsible for managing your data, regardless\nif it comes from the database, an external API or others.","ref":"Plausible.html","title":"Plausible","type":"module"},{"doc":"Clickhouse access with async inserts enabled","ref":"Plausible.AsyncInsertRepo.html","title":"Plausible.AsyncInsertRepo","type":"module"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#aggregate/3","title":"Plausible.AsyncInsertRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#aggregate/4","title":"Plausible.AsyncInsertRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#all/2","title":"Plausible.AsyncInsertRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#checked_out?/0","title":"Plausible.AsyncInsertRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#checkout/2","title":"Plausible.AsyncInsertRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#child_spec/1","title":"Plausible.AsyncInsertRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#config/0","title":"Plausible.AsyncInsertRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#default_options/1","title":"Plausible.AsyncInsertRepo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#delete/2","title":"Plausible.AsyncInsertRepo.delete/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#delete!/2","title":"Plausible.AsyncInsertRepo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#delete_all/2","title":"Plausible.AsyncInsertRepo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.AsyncInsertRepo.html#disconnect_all/2","title":"Plausible.AsyncInsertRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#exists?/2","title":"Plausible.AsyncInsertRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get/3","title":"Plausible.AsyncInsertRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get!/3","title":"Plausible.AsyncInsertRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get_by/3","title":"Plausible.AsyncInsertRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get_by!/3","title":"Plausible.AsyncInsertRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get_dynamic_repo/0","title":"Plausible.AsyncInsertRepo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert/2","title":"Plausible.AsyncInsertRepo.insert/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert!/2","title":"Plausible.AsyncInsertRepo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert_all/3","title":"Plausible.AsyncInsertRepo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert_or_update/2","title":"Plausible.AsyncInsertRepo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert_or_update!/2","title":"Plausible.AsyncInsertRepo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.AsyncInsertRepo.html#insert_stream/3","title":"Plausible.AsyncInsertRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#load/2","title":"Plausible.AsyncInsertRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#one/2","title":"Plausible.AsyncInsertRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#one!/2","title":"Plausible.AsyncInsertRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#preload/3","title":"Plausible.AsyncInsertRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#prepare_query/3","title":"Plausible.AsyncInsertRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#put_dynamic_repo/1","title":"Plausible.AsyncInsertRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.AsyncInsertRepo.html#query/3","title":"Plausible.AsyncInsertRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.AsyncInsertRepo.html#query!/3","title":"Plausible.AsyncInsertRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#reload/2","title":"Plausible.AsyncInsertRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#reload!/2","title":"Plausible.AsyncInsertRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#start_link/1","title":"Plausible.AsyncInsertRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#stop/1","title":"Plausible.AsyncInsertRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#stream/2","title":"Plausible.AsyncInsertRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.AsyncInsertRepo.html#to_sql/2","title":"Plausible.AsyncInsertRepo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#update/2","title":"Plausible.AsyncInsertRepo.update/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#update!/2","title":"Plausible.AsyncInsertRepo.update!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#update_all/3","title":"Plausible.AsyncInsertRepo.update_all/3","type":"function"},{"doc":"","ref":"Plausible.Auth.html","title":"Plausible.Auth","type":"module"},{"doc":"","ref":"Plausible.Auth.html#create_user/3","title":"Plausible.Auth.create_user/3","type":"function"},{"doc":"","ref":"Plausible.Auth.html#delete_user/1","title":"Plausible.Auth.delete_user/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#enterprise?/1","title":"Plausible.Auth.enterprise?/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#find_user_by/1","title":"Plausible.Auth.find_user_by/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#has_active_sites?/2","title":"Plausible.Auth.has_active_sites?/2","type":"function"},{"doc":"","ref":"Plausible.Auth.html#is_super_admin?/1","title":"Plausible.Auth.is_super_admin?/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#issue_email_verification/1","title":"Plausible.Auth.issue_email_verification/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#user_owns_sites?/1","title":"Plausible.Auth.user_owns_sites?/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#verify_email/2","title":"Plausible.Auth.verify_email/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html","title":"Plausible.Auth.ApiKey","type":"module"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#changeset/2","title":"Plausible.Auth.ApiKey.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#do_hash/1","title":"Plausible.Auth.ApiKey.do_hash/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#process_key/1","title":"Plausible.Auth.ApiKey.process_key/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#update/2","title":"Plausible.Auth.ApiKey.update/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html","title":"Plausible.Auth.ApiKeyAdmin","type":"module"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#create_changeset/2","title":"Plausible.Auth.ApiKeyAdmin.create_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#custom_index_query/3","title":"Plausible.Auth.ApiKeyAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#form_fields/1","title":"Plausible.Auth.ApiKeyAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#index/1","title":"Plausible.Auth.ApiKeyAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#search_fields/1","title":"Plausible.Auth.ApiKeyAdmin.search_fields/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#update_changeset/2","title":"Plausible.Auth.ApiKeyAdmin.update_changeset/2","type":"function"},{"doc":"This embedded schema stores information about the account locking grace\nperiod.\n\nUsers are given this 7-day grace period to upgrade their account after\noutgrowing their subscriptions. The actual account locking happens in\nbackground with `Plausible.Workers.LockSites`.\n\nThe grace period can also be manual, without an end date, being controlled\nmanually from the CRM, and not by the background site locker job. This is \nuseful for enterprise subscriptions.","ref":"Plausible.Auth.GracePeriod.html","title":"Plausible.Auth.GracePeriod","type":"module"},{"doc":"Returns whether the grace period is still active for a User. Defaults to\nfalse if the user is nil or there is no grace period.","ref":"Plausible.Auth.GracePeriod.html#active?/1","title":"Plausible.Auth.GracePeriod.active?/1","type":"function"},{"doc":"Ends an existing grace period by `setting users.grace_period.is_over` to true.\nThis means the grace period has expired.","ref":"Plausible.Auth.GracePeriod.html#end_changeset/1","title":"Plausible.Auth.GracePeriod.end_changeset/1","type":"function"},{"doc":"Returns whether the grace period has already expired for a User. Defaults to\nfalse if the user is nil or there is no grace period.","ref":"Plausible.Auth.GracePeriod.html#expired?/1","title":"Plausible.Auth.GracePeriod.expired?/1","type":"function"},{"doc":"Removes the grace period from the User completely.","ref":"Plausible.Auth.GracePeriod.html#remove_changeset/1","title":"Plausible.Auth.GracePeriod.remove_changeset/1","type":"function"},{"doc":"Starts a account locking grace period of 7 days by changing the User struct.","ref":"Plausible.Auth.GracePeriod.html#start_changeset/2","title":"Plausible.Auth.GracePeriod.start_changeset/2","type":"function"},{"doc":"Starts a manual account locking grace period by changing the User struct. \nManual locking means the grace period can only be removed manually from the\nCRM.","ref":"Plausible.Auth.GracePeriod.html#start_manual_lock_changeset/2","title":"Plausible.Auth.GracePeriod.start_manual_lock_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.GracePeriod.html#t:t/0","title":"Plausible.Auth.GracePeriod.t/0","type":"type"},{"doc":"","ref":"Plausible.Auth.Invitation.html","title":"Plausible.Auth.Invitation","type":"module"},{"doc":"","ref":"Plausible.Auth.Invitation.html#new/1","title":"Plausible.Auth.Invitation.new/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Invitation.html#t:t/0","title":"Plausible.Auth.Invitation.t/0","type":"type"},{"doc":"","ref":"Plausible.Auth.Password.html","title":"Plausible.Auth.Password","type":"module"},{"doc":"","ref":"Plausible.Auth.Password.html#dummy_calculation/0","title":"Plausible.Auth.Password.dummy_calculation/0","type":"function"},{"doc":"","ref":"Plausible.Auth.Password.html#hash/1","title":"Plausible.Auth.Password.hash/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Password.html#match?/2","title":"Plausible.Auth.Password.match?/2","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html","title":"Plausible.Auth.Token","type":"module"},{"doc":"","ref":"Plausible.Auth.Token.html#sign_password_reset/1","title":"Plausible.Auth.Token.sign_password_reset/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html#sign_shared_link/1","title":"Plausible.Auth.Token.sign_shared_link/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html#verify_password_reset/1","title":"Plausible.Auth.Token.verify_password_reset/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html#verify_shared_link/1","title":"Plausible.Auth.Token.verify_shared_link/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html","title":"Plausible.Auth.User","type":"module"},{"doc":"","ref":"Plausible.Auth.User.html#changeset/2","title":"Plausible.Auth.User.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#end_trial/1","title":"Plausible.Auth.User.end_trial/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#hash_password/1","title":"Plausible.Auth.User.hash_password/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#new/1","title":"Plausible.Auth.User.new/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#password_strength/1","title":"Plausible.Auth.User.password_strength/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#remove_trial_expiry/1","title":"Plausible.Auth.User.remove_trial_expiry/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#set_password/2","title":"Plausible.Auth.User.set_password/2","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#start_trial/1","title":"Plausible.Auth.User.start_trial/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#t:t/0","title":"Plausible.Auth.User.t/0","type":"type"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html","title":"Plausible.Auth.UserAdmin","type":"module"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#custom_index_query/3","title":"Plausible.Auth.UserAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#delete/2","title":"Plausible.Auth.UserAdmin.delete/2","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#form_fields/1","title":"Plausible.Auth.UserAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#index/1","title":"Plausible.Auth.UserAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#resource_actions/1","title":"Plausible.Auth.UserAdmin.resource_actions/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html","title":"Plausible.Billing","type":"module"},{"doc":"","ref":"Plausible.Billing.html#active_subscription_for/1","title":"Plausible.Billing.active_subscription_for/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#change_plan/2","title":"Plausible.Billing.change_plan/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#change_plan_preview/2","title":"Plausible.Billing.change_plan_preview/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#has_active_subscription?/1","title":"Plausible.Billing.has_active_subscription?/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#last_two_billing_cycles/2","title":"Plausible.Billing.last_two_billing_cycles/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#last_two_billing_months_usage/2","title":"Plausible.Billing.last_two_billing_months_usage/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#needs_to_upgrade?/1","title":"Plausible.Billing.needs_to_upgrade?/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#on_trial?/1","title":"Plausible.Billing.on_trial?/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#paddle_api/0","title":"Plausible.Billing.paddle_api/0","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_cancelled/1","title":"Plausible.Billing.subscription_cancelled/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_created/1","title":"Plausible.Billing.subscription_created/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_payment_succeeded/1","title":"Plausible.Billing.subscription_payment_succeeded/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_updated/1","title":"Plausible.Billing.subscription_updated/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#trial_days_left/1","title":"Plausible.Billing.trial_days_left/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#usage_breakdown/1","title":"Plausible.Billing.usage_breakdown/1","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlan.html","title":"Plausible.Billing.EnterprisePlan","type":"module"},{"doc":"","ref":"Plausible.Billing.EnterprisePlan.html#changeset/2","title":"Plausible.Billing.EnterprisePlan.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html","title":"Plausible.Billing.EnterprisePlanAdmin","type":"module"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#custom_index_query/3","title":"Plausible.Billing.EnterprisePlanAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#form_fields/1","title":"Plausible.Billing.EnterprisePlanAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#index/1","title":"Plausible.Billing.EnterprisePlanAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#search_fields/1","title":"Plausible.Billing.EnterprisePlanAdmin.search_fields/1","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html","title":"Plausible.Billing.PaddleApi","type":"module"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#checkout_domain/0","title":"Plausible.Billing.PaddleApi.checkout_domain/0","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#get_invoices/1","title":"Plausible.Billing.PaddleApi.get_invoices/1","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#get_subscription/1","title":"Plausible.Billing.PaddleApi.get_subscription/1","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#update_subscription/2","title":"Plausible.Billing.PaddleApi.update_subscription/2","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#update_subscription_preview/2","title":"Plausible.Billing.PaddleApi.update_subscription_preview/2","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#vendors_domain/0","title":"Plausible.Billing.PaddleApi.vendors_domain/0","type":"function"},{"doc":"","ref":"Plausible.Billing.Plans.html","title":"Plausible.Billing.Plans","type":"module"},{"doc":"Finds a plan by product ID.\n\nReturns nil when plan can't be found.","ref":"Plausible.Billing.Plans.html#find/2","title":"Plausible.Billing.Plans.find/2","type":"function"},{"doc":"Returns a list of plans available for the user to choose.\n\nAs new versions of plans are introduced, users who were on old plans can\nstill choose from old plans.","ref":"Plausible.Billing.Plans.html#for_user/1","title":"Plausible.Billing.Plans.for_user/1","type":"function"},{"doc":"","ref":"Plausible.Billing.Plans.html#get_subscription_plan/1","title":"Plausible.Billing.Plans.get_subscription_plan/1","type":"function"},{"doc":"","ref":"Plausible.Billing.Plans.html#subscription_interval/1","title":"Plausible.Billing.Plans.subscription_interval/1","type":"function"},{"doc":"Returns the most appropriate plan for a user based on their usage during a\ngiven cycle.\n\nIf the usage during the cycle exceeds the enterprise-level threshold, or if\nthe user already belongs to an enterprise plan, it suggests the :enterprise\nplan.\n\nOtherwise, it recommends the plan where the cycle usage falls just under the\nplan's limit from the available options for the user.","ref":"Plausible.Billing.Plans.html#suggest/2","title":"Plausible.Billing.Plans.suggest/2","type":"function"},{"doc":"List yearly plans product IDs.","ref":"Plausible.Billing.Plans.html#yearly_product_ids/0","title":"Plausible.Billing.Plans.yearly_product_ids/0","type":"function"},{"doc":"This module provides functions to work with plans usage and limits.","ref":"Plausible.Billing.Quota.html","title":"Plausible.Billing.Quota","type":"module"},{"doc":"Returns the limit of pageviews for a subscription.","ref":"Plausible.Billing.Quota.html#monthly_pageview_limit/1","title":"Plausible.Billing.Quota.monthly_pageview_limit/1","type":"function"},{"doc":"Returns the amount of pageviews sent by the sites the user owns in last 30 days.","ref":"Plausible.Billing.Quota.html#monthly_pageview_usage/1","title":"Plausible.Billing.Quota.monthly_pageview_usage/1","type":"function"},{"doc":"Returns the limit of sites a user can have.\n\nFor enterprise customers, returns :unlimited. The site limit is checked in a\nbackground job so as to avoid service disruption.","ref":"Plausible.Billing.Quota.html#site_limit/1","title":"Plausible.Billing.Quota.site_limit/1","type":"function"},{"doc":"Returns the number of sites the given user owns.","ref":"Plausible.Billing.Quota.html#site_usage/1","title":"Plausible.Billing.Quota.site_usage/1","type":"function"},{"doc":"Returns the limit of team members a user can have in their sites.","ref":"Plausible.Billing.Quota.html#team_member_limit/1","title":"Plausible.Billing.Quota.team_member_limit/1","type":"function"},{"doc":"Returns the total count of team members and pending invitations associated\nwith the user's sites.","ref":"Plausible.Billing.Quota.html#team_member_usage/1","title":"Plausible.Billing.Quota.team_member_usage/1","type":"function"},{"doc":"Returns whether the limit has been exceeded or not.","ref":"Plausible.Billing.Quota.html#within_limit?/2","title":"Plausible.Billing.Quota.within_limit?/2","type":"function"},{"doc":"","ref":"Plausible.Billing.SiteLocker.html","title":"Plausible.Billing.SiteLocker","type":"module"},{"doc":"","ref":"Plausible.Billing.SiteLocker.html#check_sites_for/1","title":"Plausible.Billing.SiteLocker.check_sites_for/1","type":"function"},{"doc":"","ref":"Plausible.Billing.SiteLocker.html#set_lock_status_for/2","title":"Plausible.Billing.SiteLocker.set_lock_status_for/2","type":"function"},{"doc":"Helper function for working with Ecto changesets","ref":"Plausible.ChangesetHelpers.html","title":"Plausible.ChangesetHelpers","type":"module"},{"doc":"","ref":"Plausible.ChangesetHelpers.html#traverse_errors/1","title":"Plausible.ChangesetHelpers.traverse_errors/1","type":"function"},{"doc":"Provides the core functions to retrieve and manage\nthe CLDR data that supports formatting and localisation.\n\nIt provides the core functions to access formatted\nCLDR data, set and retrieve a current locale and validate\ncertain core data types such as locales, currencies and\nterritories.","ref":"Plausible.Cldr.html","title":"Plausible.Cldr","type":"module"},{"doc":"","ref":"Plausible.Cldr.html#available_locale_name?/1","title":"Plausible.Cldr.available_locale_name?/1","type":"function"},{"doc":"Returns the default `locale`.","ref":"Plausible.Cldr.html#default_locale/0","title":"Plausible.Cldr.default_locale/0","type":"function"},{"doc":"iex> Plausible.Cldr.default_locale()\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en-001\",\n cldr_locale_name: :\"en-001\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en-001\",\n script: :Latn,\n territory: :\"001\",\n transform: %{},\n language_variants: []\n }","ref":"Plausible.Cldr.html#default_locale/0-example","title":"Example - Plausible.Cldr.default_locale/0","type":"function"},{"doc":"Returns the default territory when a locale\ndoes not specify one and none can be inferred.","ref":"Plausible.Cldr.html#default_territory/0","title":"Plausible.Cldr.default_territory/0","type":"function"},{"doc":"iex> Plausible.Cldr.default_territory()\n :\"001\"","ref":"Plausible.Cldr.html#default_territory/0-example","title":"Example - Plausible.Cldr.default_territory/0","type":"function"},{"doc":"Add locale-specific ellipsis to a string.","ref":"Plausible.Cldr.html#ellipsis/2","title":"Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"* `string` is any `String.t` or a 2-element list\n of `String.t` between which the ellipsis is inserted.\n\n* `backend` is any module that includes `use Cldr` and therefore\n is a `Cldr` backend module. The default is `Cldr.default_backend!/0`.\n Note that `Cldr.default_backend!/0` will raise an exception if\n no `:default_backend` is configured under the `:ex_cldr` key in\n `config.exs`.\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.html#ellipsis/2-arguments","title":"Arguments - Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"* `:locale` is any valid locale name returned by `Cldr.known_locale_names/1`.\n The default is `Cldr.get_locale/0`.\n\n* `:location` determines where to place the ellipsis. The options are\n `:after` (the default for a single string argument), `:between`\n (the default and only valid location for an argument that is a list\n of two strings) and `:before`.\n\n* `:format` formats based upon whether the ellipsis\n is inserted between words or sentences. The valid options are\n `:word` or `:sentence`. The default is `:sentence`.","ref":"Plausible.Cldr.html#ellipsis/2-options","title":"Options - Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"iex> Plausible.Cldr.ellipsis \"And furthermore\"\n \"And furthermore…\"\n\n iex> Plausible.Cldr.ellipsis [\"And furthermore\", \"there is much to be done\"], locale: :ja\n \"And furthermore…there is much to be done\"\n\n iex> Plausible.Cldr.ellipsis \"And furthermore\", format: :word\n \"And furthermore …\"\n\n iex> Plausible.Cldr.ellipsis [\"And furthermore\", \"there is much to be done\"], locale: :ja, format: :word\n \"And furthermore … there is much to be done\"","ref":"Plausible.Cldr.html#ellipsis/2-examples","title":"Examples - Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"Return the current locale to be used for `Cldr` functions that\ntake an optional locale parameter for which a locale is not supplied.","ref":"Plausible.Cldr.html#get_locale/0","title":"Plausible.Cldr.get_locale/0","type":"function"},{"doc":"iex> Plausible.Cldr.put_locale(\"pl\")\n iex> Plausible.Cldr.get_locale\n %Cldr.LanguageTag{\n backend: Elixir.Plausible.Cldr,\n canonical_locale_name: \"pl\",\n cldr_locale_name: :pl,\n extensions: %{},\n language: \"pl\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :pl,\n territory: :PL,\n requested_locale_name: \"pl\",\n script: :Latn,\n transform: %{},\n language_variants: []\n }","ref":"Plausible.Cldr.html#get_locale/0-example","title":"Example - Plausible.Cldr.get_locale/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_calendars/0","title":"Plausible.Cldr.known_calendars/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_currencies/0","title":"Plausible.Cldr.known_currencies/0","type":"function"},{"doc":"Returns either the Gettext `locale_name` in Cldr format or\n`false` based upon whether the locale name is configured in\n`Gettext`.","ref":"Plausible.Cldr.html#known_gettext_locale_name/1","title":"Plausible.Cldr.known_gettext_locale_name/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_gettext_locale_names/0`","ref":"Plausible.Cldr.html#known_gettext_locale_name/1-arguments","title":"Arguments - Plausible.Cldr.known_gettext_locale_name/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_gettext_locale_name \"en\"\n \"en\"\n\n iex> Plausible.Cldr.known_gettext_locale_name \"en-SA\"\n false","ref":"Plausible.Cldr.html#known_gettext_locale_name/1-examples","title":"Examples - Plausible.Cldr.known_gettext_locale_name/1","type":"function"},{"doc":"Returns a boolean indicating if the specified locale\nname is configured and available in Gettext.","ref":"Plausible.Cldr.html#known_gettext_locale_name?/1","title":"Plausible.Cldr.known_gettext_locale_name?/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_gettext_locale_name?/1-arguments","title":"Arguments - Plausible.Cldr.known_gettext_locale_name?/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_gettext_locale_name?(\"en\")\n true\n\n iex> Plausible.Cldr.known_gettext_locale_name?(\"!!\")\n false","ref":"Plausible.Cldr.html#known_gettext_locale_name?/1-examples","title":"Examples - Plausible.Cldr.known_gettext_locale_name?/1","type":"function"},{"doc":"Returns a list of Gettext locale names but in CLDR format with\nunderscore replaced by hyphen in order to facilitate comparisons\nwith `Cldr` locale names.","ref":"Plausible.Cldr.html#known_gettext_locale_names/0","title":"Plausible.Cldr.known_gettext_locale_names/0","type":"function"},{"doc":"Returns either the `locale_name` or `false` based upon\nwhether the locale name is configured in `Cldr`.\n\nThis is helpful when building a list of `or` expressions\nto return the first known locale name from a list.","ref":"Plausible.Cldr.html#known_locale_name/1","title":"Plausible.Cldr.known_locale_name/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_locale_name/1-arguments","title":"Arguments - Plausible.Cldr.known_locale_name/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_locale_name :\"en-AU\"\n :\"en-AU\"\n\n iex> Plausible.Cldr.known_locale_name :\"en-SA\"\n false","ref":"Plausible.Cldr.html#known_locale_name/1-examples","title":"Examples - Plausible.Cldr.known_locale_name/1","type":"function"},{"doc":"Returns a boolean indicating if the specified locale\nname is configured and available in Cldr.","ref":"Plausible.Cldr.html#known_locale_name?/1","title":"Plausible.Cldr.known_locale_name?/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_locale_name?/1-arguments","title":"Arguments - Plausible.Cldr.known_locale_name?/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_locale_name?(:en)\n true\n\n iex> Plausible.Cldr.known_locale_name?(:\"!!\")\n false","ref":"Plausible.Cldr.html#known_locale_name?/1-examples","title":"Examples - Plausible.Cldr.known_locale_name?/1","type":"function"},{"doc":"Returns a list of the known locale names.\n\nKnown locales are those locales which\nare the subset of all CLDR locales that\nhave been configured for use either\nin this module or in `Gettext`.","ref":"Plausible.Cldr.html#known_locale_names/0","title":"Plausible.Cldr.known_locale_names/0","type":"function"},{"doc":"Returns a list of atoms representing the number systems types known to `Cldr`.","ref":"Plausible.Cldr.html#known_number_system_types/0","title":"Plausible.Cldr.known_number_system_types/0","type":"function"},{"doc":"iex> Plausible.Cldr.known_number_system_types\n [:default, :finance, :native, :traditional]","ref":"Plausible.Cldr.html#known_number_system_types/0-example","title":"Example - Plausible.Cldr.known_number_system_types/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_number_systems/0","title":"Plausible.Cldr.known_number_systems/0","type":"function"},{"doc":"Returns either the RBNF `locale_name` or `false` based upon\nwhether the locale name is configured in `Cldr`\nand has RBNF rules defined.","ref":"Plausible.Cldr.html#known_rbnf_locale_name/1","title":"Plausible.Cldr.known_rbnf_locale_name/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_rbnf_locale_name/1-arguments","title":"Arguments - Plausible.Cldr.known_rbnf_locale_name/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_rbnf_locale_name :en\n :en\n\n iex> Plausible.Cldr.known_rbnf_locale_name :\"en-SA\"\n false","ref":"Plausible.Cldr.html#known_rbnf_locale_name/1-examples","title":"Examples - Plausible.Cldr.known_rbnf_locale_name/1","type":"function"},{"doc":"Returns a boolean indicating if the specified locale\nname is configured and available in Cldr and supports\nrules based number formats (RBNF).","ref":"Plausible.Cldr.html#known_rbnf_locale_name?/1","title":"Plausible.Cldr.known_rbnf_locale_name?/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_rbnf_locale_name?/1-arguments","title":"Arguments - Plausible.Cldr.known_rbnf_locale_name?/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_rbnf_locale_name?(:en)\n true\n\n iex> Plausible.Cldr.known_rbnf_locale_name?(:\"!!\")\n false","ref":"Plausible.Cldr.html#known_rbnf_locale_name?/1-examples","title":"Examples - Plausible.Cldr.known_rbnf_locale_name?/1","type":"function"},{"doc":"Returns a list of locale names which have rules-based number\nformats (RBNF).","ref":"Plausible.Cldr.html#known_rbnf_locale_names/0","title":"Plausible.Cldr.known_rbnf_locale_names/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_territories/0","title":"Plausible.Cldr.known_territories/0","type":"function"},{"doc":"Normalizes a string by applying transliteration\nof common symbols in numbers, currencies and dates","ref":"Plausible.Cldr.html#normalize_lenient_parse/3","title":"Plausible.Cldr.normalize_lenient_parse/3","type":"function"},{"doc":"Set the current locale to be used for `Cldr` functions that\ntake an optional locale parameter for which a locale is not supplied.","ref":"Plausible.Cldr.html#put_locale/1","title":"Plausible.Cldr.put_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `t:Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`\n\nSee [rfc5646](https://tools.ietf.org/html/rfc5646) for the specification\nof a language tag.","ref":"Plausible.Cldr.html#put_locale/1-arguments","title":"Arguments - Plausible.Cldr.put_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.put_locale(\"en\")\n {:ok,\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en\",\n cldr_locale_name: :en,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en\",\n script: :Latn,\n territory: :US,\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.put_locale(\"invalid-locale!\")\n {:error, {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"!\\\" starting at position 15\"}}","ref":"Plausible.Cldr.html#put_locale/1-examples","title":"Examples - Plausible.Cldr.put_locale/1","type":"function"},{"doc":"Add locale-specific quotation marks around a string.","ref":"Plausible.Cldr.html#quote/2","title":"Plausible.Cldr.quote/2","type":"function"},{"doc":"* `string` is any valid Elixir string\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.html#quote/2-arguments","title":"Arguments - Plausible.Cldr.quote/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Cldr.known_locale_names/1`.\n The default is `Cldr.get_locale/0`","ref":"Plausible.Cldr.html#quote/2-options","title":"Options - Plausible.Cldr.quote/2","type":"function"},{"doc":"iex> Plausible.Cldr.quote \"Quoted String\"\n \"“Quoted String”\"\n\n iex> Plausible.Cldr.quote \"Quoted String\", locale: :ja\n \"「Quoted String」\"","ref":"Plausible.Cldr.html#quote/2-examples","title":"Examples - Plausible.Cldr.quote/2","type":"function"},{"doc":"Returns a list of the locales names that are configured,\nbut not known in CLDR.\n\nSince there is a compile-time exception raised if there are\nany unknown locales this function should always\nreturn an empty list.","ref":"Plausible.Cldr.html#unknown_locale_names/0","title":"Plausible.Cldr.unknown_locale_names/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_calendar/1","title":"Plausible.Cldr.validate_calendar/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_currency/1","title":"Plausible.Cldr.validate_currency/1","type":"function"},{"doc":"Normalise and validate a locale name.","ref":"Plausible.Cldr.html#validate_locale/1","title":"Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.html#validate_locale/1-arguments","title":"Arguments - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"* `{:ok, language_tag}`\n\n* `{:error, reason}`","ref":"Plausible.Cldr.html#validate_locale/1-returns","title":"Returns - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"See [rfc5646](https://tools.ietf.org/html/rfc5646) for the specification\nof a language tag.","ref":"Plausible.Cldr.html#validate_locale/1-notes","title":"Notes - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.validate_locale(:en)\n {:ok,\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en\",\n cldr_locale_name: :en,\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en\",\n script: :Latn,\n territory: :US,\n transform: %{},\n language_variants: []\n }}\n\n\n iex> Plausible.Cldr.validate_locale Plausible.Cldr.default_locale()\n {:ok,\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en-001\",\n cldr_locale_name: :\"en-001\",\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en-001\",\n script: :Latn,\n territory: :\"001\",\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.validate_locale(\"zzz\")\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zzz\\\" is invalid\"}}","ref":"Plausible.Cldr.html#validate_locale/1-examples","title":"Examples - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_number_system/1","title":"Plausible.Cldr.validate_number_system/1","type":"function"},{"doc":"Normalise and validate a number system type.","ref":"Plausible.Cldr.html#validate_number_system_type/1","title":"Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"* `number_system_type` is any number system type returned by\n `Cldr.known_number_system_types/1`","ref":"Plausible.Cldr.html#validate_number_system_type/1-arguments","title":"Arguments - Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"* `{:ok, normalized_number_system_type}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.html#validate_number_system_type/1-returns","title":"Returns - Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"iex> Plausible.Cldr.validate_number_system_type :default\n {:ok, :default}\n\n iex> Plausible.Cldr.validate_number_system_type :traditional\n {:ok, :traditional}\n\n iex> Plausible.Cldr.validate_number_system_type :latn\n {\n :error,\n {Cldr.UnknownNumberSystemTypeError, \"The number system type :latn is unknown\"}\n }\n\n iex> Plausible.Cldr.validate_number_system_type \"bork\"\n {\n :error,\n {Cldr.UnknownNumberSystemTypeError, \"The number system type \\\"bork\\\" is invalid\"}\n }","ref":"Plausible.Cldr.html#validate_number_system_type/1-examples","title":"Examples - Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_territory/1","title":"Plausible.Cldr.validate_territory/1","type":"function"},{"doc":"Execute a function with a locale ensuring that the\ncurrent locale is restored after the function.","ref":"Plausible.Cldr.html#with_locale/2","title":"Plausible.Cldr.with_locale/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Cldr.known_locale_names/1`.\n\n* `fun` is any 0-arity function or function capture.","ref":"Plausible.Cldr.html#with_locale/2-arguments","title":"Arguments - Plausible.Cldr.with_locale/2","type":"function"},{"doc":"* The value returned by the function `fun/0` or\n\n* `{:error, {exception, reason}}` if the locale is invalid or\n\n* raises an exception if the current locale cannot be\n identified.","ref":"Plausible.Cldr.html#with_locale/2-returns","title":"Returns - Plausible.Cldr.with_locale/2","type":"function"},{"doc":"Parses HTTP `Accept-Language` header values as defined in\n[rfc2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4).\n\nThe Accept-Language request-header field is similar to Accept, but restricts\nthe set of natural languages that are preferred as a response to the request.\nLanguage tags function are provided in `Cldr.LanguageTag`.\n\nThe format of an `Accept-Language` header is as follows in `ABNF` format:\n\n Accept-Language = \"Accept-Language\" \":\"\n 1#( language-range [ \";\" \"q\" \"=\" qvalue ] )\n language-range = ( ( 1*8ALPHA *( \"-\" 1*8ALPHA ) ) | \"*\" )\n\nEach language-range MAY be given an associated quality value which represents an\nestimate of the user's preference for the languages specified by that range. The\nquality value defaults to \"q=1\". For example,\n\n Accept-Language: da, en-gb;q=0.8, en;q=0.7\n\nwould mean: \"I prefer Danish, but will accept British English and other types of English.\"","ref":"Plausible.Cldr.AcceptLanguage.html","title":"Plausible.Cldr.AcceptLanguage","type":"module"},{"doc":"Parse an `Accept-Language` string and return the best match for\na configured `Cldr` locale.","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1","title":"Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"* `accept_langauge` is a string representing an accept language header","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1-arguments","title":"Arguments - Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"* `{:ok, language_tag}` or\n\n* `{:error, reason}`","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1-returns","title":"Returns - Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"iex> Plausible.Cldr.AcceptLanguage.best_match(\"da;q=0.1,zh-TW;q=0.3\", TestBackend.Cldr)\n {:ok,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.AcceptLanguage.best_match(\"da;q=0.1,zh-TW;q=0.3\", TestBackend.Cldr)\n {:ok,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.AcceptLanguage.best_match(\"xx,yy;q=0.3\")\n {:error,\n {Cldr.NoMatchingLocale,\n \"No configured locale could be matched to \\\"xx,yy;q=0.3\\\"\"}}\n\n iex> Plausible.Cldr.AcceptLanguage.best_match(\"invalid_tag\")\n {:error, {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1-examples","title":"Examples - Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"Parses an `Accept-Language` header value in its string\nor tokenized form to return a tuple of the form\n`{:ok, [{quality, %Cldr.LanguageTag{}}, ...]}` sorted by quality.","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1","title":"Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"* `accept-language` is any string in the format defined by\n [rfc2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)\n\n* `backend` is any module that includes `use Cldr` and therefore\n is a `Cldr` backend module","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1-arguments","title":"Arguments - Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"* `{:ok, [{quality, language_tag}, ...]}` or\n\n* `{:error, {Cldr.AcceptLanguageError, String.t}}`\n\nIf at least one valid language tag is found but errors are also\ndetected on one more more tags, an `{ok, list}` tuple is returned\nwuth an error tuple for each invalid tag added at the end of the list.","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1-returns","title":"Returns - Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"iex> Cldr.AcceptLanguage.parse(\"da,zh-TW;q=0.3\", TestBackend.Cldr)\n {:ok,\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n ]}\n\n iex> Plausible.Cldr.AcceptLanguage.parse(\"invalid_tag\")\n {:error,\n {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}\n\n iex> Plausible.Cldr.AcceptLanguage.parse(\"da,zh-TW;q=0.3,invalid_tag\")\n {:ok,\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }},\n {:error,\n {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}\n ]}","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1-example","title":"Example - Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"Parses an `Accept-Language` header value in its string\nor tokenized form to produce a list of tuples of the form\n`[{quality, %Cldr.LanguageTag{}}, ...]` sorted by quality\nin descending order.","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1","title":"Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"* `accept-language` is any string in the format defined by [rfc2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1-arguments","title":"Arguments - Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"* `{:ok, [{quality, language_tag}, ...]}` or\n\n* raises a `Cldr.AcceptLanguageError` exception\n\nIf at least one valid language tag is found but errors are also\ndetected on one more more tags, an `{ok, list}` tuple is returned\nwuth an error tuple for each invalid tag added at the end of the list.","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1-returns","title":"Returns - Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"iex> Plausible.Cldr.AcceptLanguage.parse!(\"da,zh-TW;q=0.3\")\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n ]\n\n Plausible.Cldr.AcceptLanguage.parse! \"invalid_tag\"\n ** (Cldr.AcceptLanguageError) \"Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11\n (ex_cldr) lib/cldr/accept_language.ex:304: Cldr.AcceptLanguage.parse!/1\n\n iex> Plausible.Cldr.AcceptLanguage.parse!(\"da,zh-TW;q=0.3,invalid_tag\")\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }},\n {:error,\n {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}\n ]","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1-example","title":"Example - Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Currency.html","title":"Plausible.Cldr.Currency","type":"module"},{"doc":"Returns a map of the metadata for all currencies for\na given locale.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3","title":"Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"* `{:ok, currency_map}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3-returns","title":"Returns - Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currencies_for_locale \"en\"\n => {:ok,\n %{\n FJD: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"FJD\",\n count: %{one: \"Fijian dollar\", other: \"Fijian dollars\"},\n digits: 2,\n from: nil,\n iso_digits: 2,\n name: \"Fijian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"FJD\",\n tender: true,\n to: nil\n },\n SUR: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"SUR\",\n count: %{one: \"Soviet rouble\", other: \"Soviet roubles\"},\n digits: 2,\n from: nil,\n iso_digits: nil,\n name: \"Soviet Rouble\",\n narrow_symbol: nil,\n rounding: 0,\n symbol: \"SUR\",\n tender: true,\n to: nil\n },\n ...\n }}","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3-example","title":"Example - Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"Returns a map of the metadata for all currencies for\na given locale and raises on error.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3","title":"Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"* `{:ok, currency_map}` or\n\n* raises an exception","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3-returns","title":"Returns - Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currencies_for_locale! \"en\"\n => %{\n FJD: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"FJD\",\n count: %{one: \"Fijian dollar\", other: \"Fijian dollars\"},\n digits: 2,\n from: nil,\n iso_digits: 2,\n name: \"Fijian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"FJD\",\n tender: true,\n to: nil\n },\n SUR: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"SUR\",\n count: %{one: \"Soviet rouble\", other: \"Soviet roubles\"},\n digits: 2,\n from: nil,\n iso_digits: nil,\n name: \"Soviet Rouble\",\n narrow_symbol: nil,\n rounding: 0,\n symbol: \"SUR\",\n tender: true,\n to: nil\n },\n ...\n }","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3-example","title":"Example - Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"Returns the currency metadata for the requested currency code.","ref":"Plausible.Cldr.Currency.html#currency_for_code/2","title":"Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"* `currency_or_currency_code` is a `binary` or `atom` representation\n of an ISO 4217 currency code, or a `%Cldr.Currency{}` struct.","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"* `:locale` is any valid locale name returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-options","title":"Options - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"* A `{:ok, currency}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-returns","title":"Returns - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.currency_for_code(\"AUD\")\n {:ok,\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"AUD\",\n count: %{one: \"Australian dollar\", other: \"Australian dollars\"},\n digits: 2,\n iso_digits: 2,\n name: \"Australian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"A$\",\n tender: true\n }}\n\n iex> Plausible.Cldr.Currency.currency_for_code(\"THB\")\n {:ok,\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"THB\",\n count: %{one: \"Thai baht\", other: \"Thai baht\"},\n digits: 2,\n iso_digits: 2,\n name: \"Thai Baht\",\n narrow_symbol: \"฿\",\n rounding: 0,\n symbol: \"THB\",\n tender: true\n }}","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-examples","title":"Examples - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"Returns the currency metadata for the requested currency code.","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2","title":"Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"* `currency_or_currency_code` is a `binary` or `atom` representation\n of an ISO 4217 currency code, or a `%Cldr.Currency{}` struct.","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"* `:locale` is any valid locale name returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-options","title":"Options - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"* A `t:Cldr.Current.t/0` or\n\n* raises an exception","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-returns","title":"Returns - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.currency_for_code!(\"AUD\")\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"AUD\",\n count: %{one: \"Australian dollar\", other: \"Australian dollars\"},\n digits: 2,\n iso_digits: 2,\n name: \"Australian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"A$\",\n tender: true\n }\n\n iex> Plausible.Cldr.Currency.currency_for_code!(\"THB\")\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"THB\",\n count: %{one: \"Thai baht\", other: \"Thai baht\"},\n digits: 2,\n iso_digits: 2,\n name: \"Thai Baht\",\n narrow_symbol: \"฿\",\n rounding: 0,\n symbol: \"THB\",\n tender: true\n }","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-examples","title":"Examples - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"Returns the effective currency for a given locale","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1","title":"Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"* `locale` is a `Cldr.LanguageTag` struct returned by\n `Cldr.Locale.new!/2`","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"* A ISO 4217 currency code as an upcased atom","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1-returns","title":"Returns - Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"iex> {:ok, locale} = Plausible.Cldr.validate_locale \"en\"\n iex> Plausible.Cldr.Currency.currency_from_locale locale\n :USD\n\n iex> {:ok, locale} = Plausible.Cldr.validate_locale \"en-AU\"\n iex> Plausible.Cldr.Currency.currency_from_locale locale\n :AUD\n\n iex> Plausible.Cldr.Currency.currency_from_locale \"en-GB\"\n :GBP","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1-examples","title":"Examples - Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"Returns a list of historic and the current\ncurrency for a given locale.","ref":"Plausible.Cldr.Currency.html#currency_history_for_locale/1","title":"Plausible.Cldr.Currency.currency_history_for_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Currency.html#currency_history_for_locale/1-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_history_for_locale/1","type":"function"},{"doc":"iex> MyApp.Cldr.Currency.currency_history_for_locale \"en\"\n {:ok,\n %{\n USD: %{from: ~D[1792-01-01], to: nil},\n USN: %{tender: false},\n USS: %{from: nil, tender: false, to: ~D[2014-03-01]}\n }\n }","ref":"Plausible.Cldr.Currency.html#currency_history_for_locale/1-example","title":"Example - Plausible.Cldr.Currency.currency_history_for_locale/1","type":"function"},{"doc":"Returns a map that matches a currency string to a\ncurrency code.\n\nA currency string is a localised name or symbol\nrepresenting a currency in a locale-specific manner.","ref":"Plausible.Cldr.Currency.html#currency_strings/3","title":"Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currency_strings/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"* `{:ok, currency_string_map}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#currency_strings/3-returns","title":"Returns - Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currency_strings \"en\"\n => {:ok,\n %{\n \"mexican silver pesos\" => :MXP,\n \"sudanese dinar\" => :SDD,\n \"bad\" => :BAD,\n \"rsd\" => :RSD,\n \"swazi lilangeni\" => :SZL,\n \"zairean new zaire\" => :ZRN,\n \"guyanaese dollars\" => :GYD,\n \"equatorial guinean ekwele\" => :GQE,\n ...\n }}","ref":"Plausible.Cldr.Currency.html#currency_strings/3-example","title":"Example - Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"Returns a map that matches a currency string to a\ncurrency code or raises an exception.\n\nA currency string is a localised name or symbol\nrepresenting a currency in a locale-specific manner.","ref":"Plausible.Cldr.Currency.html#currency_strings!/3","title":"Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currency_strings!/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"* `{:ok, currency_string_map}` or\n\n* raises an exception","ref":"Plausible.Cldr.Currency.html#currency_strings!/3-returns","title":"Returns - Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currency_strings! \"en\"\n => %{\n \"mexican silver pesos\" => :MXP,\n \"sudanese dinar\" => :SDD,\n \"bad\" => :BAD,\n \"rsd\" => :RSD,\n \"swazi lilangeni\" => :SZL,\n \"zairean new zaire\" => :ZRN,\n \"guyanaese dollars\" => :GYD,\n \"equatorial guinean ekwele\" => :GQE,\n ...\n }","ref":"Plausible.Cldr.Currency.html#currency_strings!/3-example","title":"Example - Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"Returns the current currency for a given locale.\n\nThis function does not consider the `U` extenion\nparameters `cu` or `rg`. It is recommended to us\n`Cldr.Currency.currency_from_locale/1` in most\ncircumstances.","ref":"Plausible.Cldr.Currency.html#current_currency_from_locale/1","title":"Plausible.Cldr.Currency.current_currency_from_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Currency.html#current_currency_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Currency.current_currency_from_locale/1","type":"function"},{"doc":"iex> MyApp.Cldr.Currency.current_currency_from_locale \"en\"\n :USD\n\n iex> MyApp.Cldr.Currency.current_currency_from_locale \"en-AU\"\n :AUD","ref":"Plausible.Cldr.Currency.html#current_currency_from_locale/1-example","title":"Example - Plausible.Cldr.Currency.current_currency_from_locale/1","type":"function"},{"doc":"Returns a mapping from a territory code to its\ncurrent currency code.\n\nIf a territory has no current currency (like\nAntartica, territory code `:AQ`) then no\nmapping is returned for that territory.","ref":"Plausible.Cldr.Currency.html#current_territory_currencies/0","title":"Plausible.Cldr.Currency.current_territory_currencies/0","type":"function"},{"doc":"* A map of `{territory_code => Cldr.Currency.t}`","ref":"Plausible.Cldr.Currency.html#current_territory_currencies/0-returns","title":"Returns - Plausible.Cldr.Currency.current_territory_currencies/0","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.current_territory_currencies()","ref":"Plausible.Cldr.Currency.html#current_territory_currencies/0-example","title":"Example - Plausible.Cldr.Currency.current_territory_currencies/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Currency.html#known_currencies/0","title":"Plausible.Cldr.Currency.known_currencies/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Currency.html#known_currency?/1","title":"Plausible.Cldr.Currency.known_currency?/1","type":"function"},{"doc":"Returns a 2-tuple indicating if the supplied currency code is known.","ref":"Plausible.Cldr.Currency.html#known_currency_code/1","title":"Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"* `currency_code` is a `binary` or `atom` representing an ISO4217\n currency code","ref":"Plausible.Cldr.Currency.html#known_currency_code/1-arguments","title":"Arguments - Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"* `{:ok, currency_code}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#known_currency_code/1-returns","title":"Returns - Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.known_currency_code \"AUD\"\n {:ok, :AUD}\n\n iex> Plausible.Cldr.Currency.known_currency_code \"GGG\"\n {:error, {Cldr.UnknownCurrencyError, \"The currency \\\"GGG\\\" is invalid\"}}","ref":"Plausible.Cldr.Currency.html#known_currency_code/1-examples","title":"Examples - Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"Returns a boolean indicating if the supplied currency code is known.","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1","title":"Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"* `currency_code` is a `binary` or `atom` representing an ISO4217\n currency code","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1-arguments","title":"Arguments - Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"* `true` or `false`","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1-returns","title":"Returns - Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.known_currency_code? \"AUD\"\n true\n\n iex> Plausible.Cldr.Currency.known_currency_code? \"GGG\"\n false\n\n iex> Plausible.Cldr.Currency.known_currency_code? :XCV\n false","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1-examples","title":"Examples - Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"Returns a list of all known currency codes.","ref":"Plausible.Cldr.Currency.html#known_currency_codes/0","title":"Plausible.Cldr.Currency.known_currency_codes/0","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.known_currency_codes","ref":"Plausible.Cldr.Currency.html#known_currency_codes/0-example","title":"Example - Plausible.Cldr.Currency.known_currency_codes/0","type":"function"},{"doc":"Returns a `Currency` struct created from the arguments.","ref":"Plausible.Cldr.Currency.html#new/2","title":"Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"* `currency` is a private use currency code in a format defined by\n [ISO4217](https://en.wikipedia.org/wiki/ISO_4217)\n which is `X` followed by two alphanumeric characters.\n\n* `options` is a map of options representing the optional elements of\n the `Cldr.Currency.t` struct.","ref":"Plausible.Cldr.Currency.html#new/2-arguments","title":"Arguments - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"* `:name` is the name of the currency. Required.\n* `:digits` is the precision of the currency. Required.\n* `:symbol` is the currency symbol. Optional.\n* `:narrow_symbol` is an alternative narrow symbol. Optional.\n* `:round_nearest` is the rounding precision such as `0.05`. Optional.\n* `:alt_code` is an alternative currency code for application use.\n* `:cash_digits` is the precision of the currency when used as cash. Optional.\n* `:cash_rounding_nearest` is the rounding precision when used as cash\n such as `0.05`. Optional.","ref":"Plausible.Cldr.Currency.html#new/2-options","title":"Options - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"* `{:ok, Cldr.Currency.t}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Currency.html#new/2-returns","title":"Returns - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.new(:XAE, name: \"Custom Name\", digits: 0)\n {:ok,\n %Cldr.Currency{\n alt_code: :XAE,\n cash_digits: 0,\n cash_rounding: nil,\n code: :XAE,\n count: %{other: \"Custom Name\"},\n digits: 0,\n from: nil,\n iso_digits: 0,\n name: \"Custom Name\",\n narrow_symbol: nil,\n rounding: 0,\n symbol: \"XAE\",\n tender: false,\n to: nil\n }}\n iex> MyApp.Cldr.Currency.new(:XAH, name: \"Custom Name\")\n {:error, \"Required options are missing. Required options are [:name, :digits]\"}\n iex> Plausible.Cldr.Currency.new(:XAE, name: \"XAE\", digits: 0)\n {:error, {Cldr.CurrencyAlreadyDefined, \"Currency :XAE is already defined.\"}}","ref":"Plausible.Cldr.Currency.html#new/2-example","title":"Example - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"Returns the appropriate currency display name for the `currency`, based\non the plural rules in effect for the `locale`.","ref":"Plausible.Cldr.Currency.html#pluralize/3","title":"Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"* `number` is an integer, float or `Decimal`\n\n* `currency` is any currency returned by `Cldr.Currency.known_currencies/0`\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Currency.html#pluralize/3-arguments","title":"Arguments - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`. The\n default is `Plausible.Cldr.get_locale/0`","ref":"Plausible.Cldr.Currency.html#pluralize/3-options","title":"Options - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"* `{:ok, plural_string}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Currency.html#pluralize/3-returns","title":"Returns - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.pluralize 1, :USD\n {:ok, \"US dollar\"}\n\n iex> Plausible.Cldr.Currency.pluralize 3, :USD\n {:ok, \"US dollars\"}\n\n iex> Plausible.Cldr.Currency.pluralize 12, :USD, locale: \"zh\"\n {:ok, \"美元\"}\n\n iex> Plausible.Cldr.Currency.pluralize 12, :USD, locale: \"fr\"\n {:ok, \"dollars des États-Unis\"}\n\n iex> Plausible.Cldr.Currency.pluralize 1, :USD, locale: \"fr\"\n {:ok, \"dollar des États-Unis\"}","ref":"Plausible.Cldr.Currency.html#pluralize/3-examples","title":"Examples - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"Returns the strings associated with a currency\nin a given locale.","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2","title":"Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"* `currency` is an ISO4217 currency code\n\n* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2-arguments","title":"Arguments - Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"* A list of strings or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2-returns","title":"Returns - Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"iex> MyApp.Cldr.Currency.strings_for_currency :AUD, \"en\"\n [\"a$\", \"australian dollars\", \"aud\", \"australian dollar\"]","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2-example","title":"Example - Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"Backend module that provides functions\nto define new locales and display human-readable\nlocale names for presentation purposes.","ref":"Plausible.Cldr.Locale.html","title":"Plausible.Cldr.Locale","type":"module"},{"doc":"Returns the list of fallback locale names, starting\nwith the provided locale name.\n\nFallbacks are a list of locate names which can\nbe used to resolve translation or other localization\ndata if such localised data does not exist for\nthis specific locale..","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1","title":"Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"* `locale_name` is any locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1-arguments","title":"Arguments - Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"* `{:ok, list_of_locale_names}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1-returns","title":"Returns - Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.fallback_locale_names(:\"fr-CA\")\n {:ok, [:\"fr-CA\", :fr, :und]}\n\n # Fallbacks are typically formed by progressively\n # stripping variant, territory and script from the\n # given locale name. But not always - there are\n # certain fallbacks that take a different path.\n\n iex> Plausible.Cldr.Locale.fallback_locale_names(:nb)\n {:ok, [:nb, :no, :und]}","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1-examples","title":"Examples - Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"Returns the list of fallback locales, starting\nwith the provided locale name.\n\nFallbacks are a list of locate names which can\nbe used to resolve translation or other localization\ndata if such localised data does not exist for\nthis specific locale.","ref":"Plausible.Cldr.Locale.html#fallback_locales/1","title":"Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"* `locale_name` is any locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#fallback_locales/1-arguments","title":"Arguments - Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"* `{:ok, list_of_locales}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#fallback_locales/1-returns","title":"Returns - Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"Plausible.Cldr.Locale.fallback_locales(:\"fr-CA\")\n => {:ok,\n [#Cldr.LanguageTag , #Cldr.LanguageTag ,\n #Cldr.LanguageTag ]}\n\n # Fallbacks are typically formed by progressively\n # stripping variant, territory and script from the\n # given locale name. But not always - there are\n # certain fallbacks that take a different path.\n\n Plausible.Cldr.Locale.fallback_locales(:nb))\n => {:ok,\n [#Cldr.LanguageTag , #Cldr.LanguageTag ,\n #Cldr.LanguageTag ]}","ref":"Plausible.Cldr.Locale.html#fallback_locales/1-examples","title":"Examples - Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"Returns the \"best fit\" locale for a given territory.\n\nUsing the population percentage data from CLDR, the\nlanguage most commonly spoken in the given territory\nis used to form a locale name which is then validated\nagainst the given backend.\n\nFirst a territory-specific locale is validated and if\nthat fails, the base language only is validate.\n\nFor example, if the territory is `AU` then then the\nlanguage most spoken is \"en\". First, the locale \"en-AU\"\nis validated and if that fails, \"en\" is validated.","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1","title":"Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"* `territory` is any ISO 3166 Alpha-2 territory\n code that can be validated by `Cldr.validate_territory/1`","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1-arguments","title":"Arguments - Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"* `{:ok, language_tag}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1-returns","title":"Returns - Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.locale_for_territory(:AU)\n Elixir.Plausible.Cldr.validate_locale(:\"en-AU\")\n\n iex> Plausible.Cldr.Locale.locale_for_territory(:US)\n Elixir.Plausible.Cldr.validate_locale(:\"en-US\")\n\n iex> Plausible.Cldr.Locale.locale_for_territory(:ZZ)\n {:error, {Cldr.UnknownTerritoryError, \"The territory :ZZ is unknown\"}}","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1-examples","title":"Examples - Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"Returns a \"best fit\" locale for a host name.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2","title":"Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"* `host` is any valid host name\n\n* `options` is a keyword list of options. The default\n is `[]`.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-arguments","title":"Arguments - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"* `:tlds` is a list of territory codes as upper-cased\n atoms that are to be considered as top-level domains.\n See `Cldr.Locale.locale_from_host/2` for the default\n list.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-options","title":"Options - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"* `{:ok, langauge_tag}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-returns","title":"Returns - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"Certain top-level domains have become associated with content\nunderlated to the territory for who the domain is registered.\nTherefore Google (and perhaps others) do not associate these\nTLDs as belonging to the territory but rather are considered\ngeneric top-level domain names.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-notes","title":"Notes - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.locale_from_host \"a.b.com.au\"\n Elixir.Plausible.Cldr.validate_locale(:\"en-AU\")\n\n iex> Plausible.Cldr.Locale.locale_from_host(\"a.b.com.tv\")\n {:error,\n {Cldr.UnknownLocaleError, \"No locale was identified for territory \\\"tv\\\"\"}}\n\n iex> Plausible.Cldr.Locale.locale_from_host(\"a.b.com\")\n {:error,\n {Cldr.UnknownLocaleError, \"No locale was identified for territory \\\"com\\\"\"}}","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-examples","title":"Examples - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Locale.html#new/1","title":"Plausible.Cldr.Locale.new/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Locale.html#new!/1","title":"Plausible.Cldr.Locale.new!/1","type":"function"},{"doc":"Returns the script direction for a locale.","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1","title":"Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"* `language_tag` is any language tag returned by `Cldr.Locale.new/2`\n or any `locale_name` returned by `Cldr.known_locale_names/1`.","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"* The script direction which is either `:ltr` (for left-to-right\n scripts) or `:rtl` (for right-to-left scripts).","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1-returns","title":"Returns - Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.script_direction_from_locale \"en-US\"\n :ltr\n\n iex> Plausible.Cldr.Locale.script_direction_from_locale :ar\n :rtl","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1-examples","title":"Examples - Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"Returns the last segment of a host that might\nbe a territory.","ref":"Plausible.Cldr.Locale.html#territory_from_host/1","title":"Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"* `host` is any valid host name","ref":"Plausible.Cldr.Locale.html#territory_from_host/1-arguments","title":"Arguments - Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"* `{:ok, territory}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#territory_from_host/1-returns","title":"Returns - Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"iex> Cldr.Locale.territory_from_host(\"a.b.com.au\")\n {:ok, :AU}\n\n iex> Cldr.Locale.territory_from_host(\"a.b.com\")\n {:error,\n {Cldr.UnknownLocaleError, \"No locale was identified for territory \\\"com\\\"\"}}","ref":"Plausible.Cldr.Locale.html#territory_from_host/1-examples","title":"Examples - Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"Returns the territory from a language tag or\nlocale name.","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1","title":"Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"* `locale` is any language tag returned by\n `Plausible.Cldr.Locale.new/1`\n or a locale name in the list returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"* A territory code as an atom","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1-returns","title":"Returns - Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.territory_from_locale \"en-US\"\n :US\n\n iex> Plausible.Cldr.Locale.territory_from_locale \"en-US-u-rg-GBzzzz\"\n :GB","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1-examples","title":"Examples - Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"Returns the time zone from a language tag or\nlocale name.","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1","title":"Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"* `locale` is any language tag returned by\n `Plausible.Cldr.Locale.new/1`\n or a locale name in the list returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"* A time zone ID as a string or\n\n* `:error` if no time zone can be determined","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1-returns","title":"Returns - Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.timezone_from_locale \"en-US-u-tz-ausyd\"\n \"Australia/Sydney\"","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1-examples","title":"Examples - Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"Formats numbers and currencies based upon CLDR's decimal formats specification.\n\nThe format specification is documentated in [Unicode TR35](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Formats).\nThere are several classes of formatting including non-scientific, scientific,\nrules based (for spelling and ordinal formats), compact formats that display `1k`\nrather than `1,000` and so on. See `Cldr.Number.to_string/2` for specific formatting\noptions.\n\n#","ref":"Plausible.Cldr.Number.html","title":"Plausible.Cldr.Number","type":"module"},{"doc":"The following description applies to formats that do not use scientific\nnotation or significant digits:\n\n* If the number of actual integer digits exceeds the maximum integer digits,\n then only the least significant digits are shown. For example, 1997 is\n formatted as \"97\" if the maximum integer digits is set to 2.\n\n* If the number of actual integer digits is less than the minimum integer\n digits, then leading zeros are added. For example, 1997 is formatted as\n \"01997\" if the minimum integer digits is set to 5.\n\n* If the number of actual fraction digits exceeds the maximum fraction\n digits, then half-even rounding it performed to the maximum fraction\n digits. For example, 0.125 is formatted as \"0.12\" if the maximum fraction\n digits is 2. This behavior can be changed by specifying a rounding\n increment and a rounding mode.\n\n* If the number of actual fraction digits is less than the minimum fraction\n digits, then trailing zeros are added. For example, 0.125 is formatted as\n \"0.1250\" if the minimum fraction digits is set to 4.\n\n* Trailing fractional zeros are not displayed if they occur j positions after\n the decimal, where j is less than the maximum fraction digits. For example,\n 0.10004 is formatted as \"0.1\" if the maximum fraction digits is four or\n less.\n\n#","ref":"Plausible.Cldr.Number.html#module-non-scientific-notation-formatting","title":"Non-Scientific Notation Formatting - Plausible.Cldr.Number","type":"module"},{"doc":"Numbers in scientific notation are expressed as the product of a mantissa and\na power of ten, for example, 1234 can be expressed as 1.234 x 10^3. The\nmantissa is typically in the half-open interval [1.0, 10.0) or sometimes\n[0.0, 1.0), but it need not be. In a pattern, the exponent character\nimmediately followed by one or more digit characters indicates scientific\nnotation. Example: \"0.###E0\" formats the number 1234 as \"1.234E3\".\n\n* The number of digit characters after the exponent character gives the\n minimum exponent digit count. There is no maximum. Negative exponents are\n formatted using the localized minus sign, not the prefix and suffix from\n the pattern. This allows patterns such as \"0.###E0 m/s\". To prefix positive\n exponents with a localized plus sign, specify '+' between the exponent and\n the digits: \"0.###E+0\" will produce formats \"1E+1\", \"1E+0\", \"1E-1\", and so\n on. (In localized patterns, use the localized plus sign rather than '+'.)\n\n* The minimum number of integer digits is achieved by adjusting the exponent.\n Example: 0.00123 formatted with \"00.###E0\" yields \"12.3E-4\". This only\n happens if there is no maximum number of integer digits. If there is a\n maximum, then the minimum number of integer digits is fixed at one.\n\n* The maximum number of integer digits, if present, specifies the exponent\n grouping. The most common use of this is to generate engineering notation,\n in which the exponent is a multiple of three, for example, \"##0.###E0\". The\n number 12345 is formatted using \"##0.####E0\" as \"12.345E3\".\n\n* When using scientific notation, the formatter controls the digit counts\n using significant digits logic. The maximum number of significant digits\n limits the total number of integer and fraction digits that will be shown\n in the mantissa; it does not affect parsing. For example, 12345 formatted\n with \"##0.##E0\" is \"12.3E3\". Exponential patterns may not contain grouping\n separators.\n\n#","ref":"Plausible.Cldr.Number.html#module-scientific-notation-formatting","title":"Scientific Notation Formatting - Plausible.Cldr.Number","type":"module"},{"doc":"There are two ways of controlling how many digits are shows: (a)\nsignificant digits counts, or (b) integer and fraction digit counts. Integer\nand fraction digit counts are described above. When a formatter is using\nsignificant digits counts, it uses however many integer and fraction digits\nare required to display the specified number of significant digits. It may\nignore min/max integer/fraction digits, or it may use them to the extent\npossible.","ref":"Plausible.Cldr.Number.html#module-significant-digits","title":"Significant Digits - Plausible.Cldr.Number","type":"module"},{"doc":"Parse a string locale-aware manner and return\na number.","ref":"Plausible.Cldr.Number.html#parse/2","title":"Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"* `string` is any `String.t`\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#parse/2-arguments","title":"Arguments - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"* `:number` is one of `:integer`, `:float`,\n `:decimal` or `nil`. The default is `nil`\n meaning that the type auto-detected as either\n an `integer` or a `float`.\n\n* `:locale` is any locale returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag.t`. The default is\n `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.html#parse/2-options","title":"Options - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"* A number of the requested or default type or\n\n* `{:error, {exception, error}}` if no number could be determined","ref":"Plausible.Cldr.Number.html#parse/2-returns","title":"Returns - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"This function parses a string to return a number but\nin a locale-aware manner. It will normalise grouping\ncharacters and decimal separators, different forms of\nthe `+` and `-` symbols that appear in Unicode and\nstrips any `_` characters that might be used for\nformatting in a string. It then parses the number\nusing the Elixir standard library functions.","ref":"Plausible.Cldr.Number.html#parse/2-notes","title":"Notes - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.parse(\"+1.000,34\", locale: \"de\")\n {:ok, 1000.34}\n\n iex> Plausible.Cldr.Number.parse(\"-1_000_000.34\")\n {:ok, -1000000.34}\n\n iex> Plausible.Cldr.Number.parse(\"1.000\", locale: \"de\", number: :integer)\n {:ok, 1000}\n\n iex> Plausible.Cldr.Number.parse(\"+1.000,34\", locale: \"de\", number: :integer)\n {:error,\n {Cldr.Number.ParseError,\n \"The string \\\"+1.000,34\\\" could not be parsed as a number\"}}","ref":"Plausible.Cldr.Number.html#parse/2-examples","title":"Examples - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"Resolve curencies from strings within\na list.","ref":"Plausible.Cldr.Number.html#resolve_currencies/2","title":"Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"* `list` is any list in which currency\n names and symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `Plausible.Cldr.get_locale()`\n\n* `:only` is an `atom` or list of `atoms` representing the\n currencies or currency types to be considered for a match.\n The equates to a list of acceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:except` is an `atom` or list of `atoms` representing the\n currencies or currency types to be not considered for a match.\n This equates to a list of unacceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:fuzzy` is a float greater than `0.0` and less than or\n equal to `1.0` which is used as input to\n `String.jaro_distance/2` to determine is the provided\n currency string is *close enough* to a known currency\n string for it to identify definitively a currency code.\n It is recommended to use numbers greater than `0.8` in\n order to reduce false positives.","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-options","title":"Options - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"The `:only` and `:except` options accept a list of\ncurrency codes and/or currency types. The following\ntypes are recognised.\n\nIf both `:only` and `:except` are specified,\nthe `:except` entries take priority - that means\nany entries in `:except` are removed from the `:only`\nentries.\n\n * `:all`, the default, considers all currencies\n\n * `:current` considers those currencies that have a `:to`\n date of nil and which also is a known ISO4217 currency\n\n * `:historic` is the opposite of `:current`\n\n * `:tender` considers currencies that are legal tender\n\n * `:unannotated` considers currencies that don't have\n \"(some string)\" in their names. These are usually\n financial instruments.","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-notes","title":"Notes - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.scan(\"100 US dollars\")\n ...> |> Plausible.Cldr.Number.resolve_currencies\n [100, :USD]\n\n iex> Plausible.Cldr.Number.scan(\"100 eurosports\")\n ...> |> Plausible.Cldr.Number.resolve_currencies(fuzzy: 0.75)\n [100, :EUR]\n\n iex> Plausible.Cldr.Number.scan(\"100 dollars des États-Unis\")\n ...> |> Plausible.Cldr.Number.resolve_currencies(locale: \"fr\")\n [100, :USD]","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"Resolve a currency from a string","ref":"Plausible.Cldr.Number.html#resolve_currency/2","title":"Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"* `list` is any list in which currency\n names and symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_currency/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `Plausible.Cldr.get_locale()`\n\n* `:only` is an `atom` or list of `atoms` representing the\n currencies or currency types to be considered for a match.\n The equates to a list of acceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:except` is an `atom` or list of `atoms` representing the\n currencies or currency types to be not considered for a match.\n This equates to a list of unacceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:fuzzy` is a float greater than `0.0` and less than or\n equal to `1.0` which is used as input to\n `String.jaro_distance/2` to determine is the provided\n currency string is *close enough* to a known currency\n string for it to identify definitively a currency code.\n It is recommended to use numbers greater than `0.8` in\n order to reduce false positives.","ref":"Plausible.Cldr.Number.html#resolve_currency/2-options","title":"Options - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"* An ISO4217 currency code as an atom or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.html#resolve_currency/2-returns","title":"Returns - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"The `:only` and `:except` options accept a list of\ncurrency codes and/or currency types. The following\ntypes are recognised.\n\nIf both `:only` and `:except` are specified,\nthe `:except` entries take priority - that means\nany entries in `:except` are removed from the `:only`\nentries.\n\n * `:all`, the default, considers all currencies\n\n * `:current` considers those currencies that have a `:to`\n date of nil and which also is a known ISO4217 currency\n\n * `:historic` is the opposite of `:current`\n\n * `:tender` considers currencies that are legal tender\n\n * `:unannotated` considers currencies that don't have\n \"(some string)\" in their names. These are usually\n financial instruments.","ref":"Plausible.Cldr.Number.html#resolve_currency/2-notes","title":"Notes - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.resolve_currency(\"US dollars\")\n [:USD]\n\n iex> Plausible.Cldr.Number.resolve_currency(\"100 eurosports\", fuzzy: 0.75)\n [:EUR]\n\n iex> Plausible.Cldr.Number.resolve_currency(\"dollars des États-Unis\", locale: \"fr\")\n [:USD]\n\n iex> Plausible.Cldr.Number.resolve_currency(\"not a known currency\", locale: \"fr\")\n {:error,\n {Cldr.UnknownCurrencyError,\n \"The currency \\\"not a known currency\\\" is unknown or not supported\"}}","ref":"Plausible.Cldr.Number.html#resolve_currency/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"Resolve and tokenize percent or permille\nfrom the beginning and/or the end of a string","ref":"Plausible.Cldr.Number.html#resolve_per/2","title":"Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"* `list` is any list in which percent\n and permille symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_per/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `options[:backend].get_locale()`","ref":"Plausible.Cldr.Number.html#resolve_per/2-options","title":"Options - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"* An `:percent` or `permille` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.html#resolve_per/2-returns","title":"Returns - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.resolve_per \"11%\"\n [\"11\", :percent]\n\n iex> Plausible.Cldr.Number.resolve_per \"% of linguists\"\n [:percent, \" of linguists\"]\n\n iex> Plausible.Cldr.Number.resolve_per \"% of linguists %\"\n [:percent, \" of linguists \", :percent]","ref":"Plausible.Cldr.Number.html#resolve_per/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"Resolve and tokenize percent and permille\nsybols from strings within a list.\n\nPercent and permille symbols can be identified\nat the beginning and/or the end of a string.","ref":"Plausible.Cldr.Number.html#resolve_pers/2","title":"Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"* `list` is any list in which percent and\n permille symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_pers/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `t:Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `options[:backend].get_locale()`","ref":"Plausible.Cldr.Number.html#resolve_pers/2-options","title":"Options - Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.scan(\"100%\")\n ...> |> Plausible.Cldr.Number.resolve_pers()\n [100, :percent]","ref":"Plausible.Cldr.Number.html#resolve_pers/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"Scans a string locale-aware manner and returns\na list of strings and numbers.","ref":"Plausible.Cldr.Number.html#scan/2","title":"Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"* `string` is any `String.t`\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#scan/2-arguments","title":"Arguments - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"* `:number` is one of `:integer`, `:float`,\n `:decimal` or `nil`. The default is `nil`\n meaning that the type auto-detected as either\n an `integer` or a `float`.\n\n* `:locale` is any locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag.t`. The default is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.html#scan/2-options","title":"Options - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"* A list of strings and numbers","ref":"Plausible.Cldr.Number.html#scan/2-returns","title":"Returns - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"Number parsing is performed by `Cldr.Number.Parser.parse/2`\nand any options provided are passed to that function.","ref":"Plausible.Cldr.Number.html#scan/2-notes","title":"Notes - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.scan(\"£1_000_000.34\")\n [\"£\", 1000000.34]\n\n iex> Plausible.Cldr.Number.scan(\"I want £1_000_000 dollars\")\n [\"I want £\", 1000000, \" dollars\"]\n\n iex> Plausible.Cldr.Number.scan(\"The prize is 23\")\n [\"The prize is \", 23]\n\n iex> Plausible.Cldr.Number.scan(\"The lottery number is 23 for the next draw\")\n [\"The lottery number is \", 23, \" for the next draw\"]\n\n iex> Plausible.Cldr.Number.scan(\"The loss is -1.000 euros\", locale: \"de\", number: :integer)\n [\"The loss is \", -1000, \" euros\"]","ref":"Plausible.Cldr.Number.html#scan/2-examples","title":"Examples - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"Formats a number and applies the `:approximately` format for\na locale and number system.","ref":"Plausible.Cldr.Number.html#to_approx_string/2","title":"Plausible.Cldr.Number.to_approx_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Cldr.Number.to_string/3` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_approx_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_approx_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_approx_string 1234\n {:ok, \"~1,234\"}","ref":"Plausible.Cldr.Number.html#to_approx_string/2-example","title":"Example - Plausible.Cldr.Number.to_approx_string/2","type":"function"},{"doc":"Formats a number and applies the `:at_least` format for\na locale and number system.","ref":"Plausible.Cldr.Number.html#to_at_least_string/2","title":"Plausible.Cldr.Number.to_at_least_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Plausible.Cldr.Number.to_string/2` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_at_least_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_at_least_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_at_least_string 1234\n {:ok, \"1,234+\"}","ref":"Plausible.Cldr.Number.html#to_at_least_string/2-example","title":"Example - Plausible.Cldr.Number.to_at_least_string/2","type":"function"},{"doc":"Formats a number and applies the `:at_most` format for\na locale and number system.","ref":"Plausible.Cldr.Number.html#to_at_most_string/2","title":"Plausible.Cldr.Number.to_at_most_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Cldr.Number.to_string/3` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_at_most_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_at_most_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_at_most_string 1234\n {:ok, \"≤1,234\"}","ref":"Plausible.Cldr.Number.html#to_at_most_string/2-example","title":"Example - Plausible.Cldr.Number.to_at_most_string/2","type":"function"},{"doc":"Formats the first and last numbers of a range and applies\nthe `:range` format for a locale and number system.","ref":"Plausible.Cldr.Number.html#to_range_string/2","title":"Plausible.Cldr.Number.to_range_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Cldr.Number.to_string/3` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_range_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_range_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_range_string 1234..5678\n {:ok, \"1,234–5,678\"}","ref":"Plausible.Cldr.Number.html#to_range_string/2-example","title":"Example - Plausible.Cldr.Number.to_range_string/2","type":"function"},{"doc":"Returns a number formatted into a string according to a format pattern and options.","ref":"Plausible.Cldr.Number.html#to_string/2","title":"Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.","ref":"Plausible.Cldr.Number.html#to_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"* `format`: the format style or a format string defining how the number is\n formatted. See `Cldr.Number.Format` for how format strings can be constructed.\n See `Cldr.Number.Format.format_styles_for/3` to return available format styles\n for a locale. The default `format` is `:standard`.\n\n* If `:format` is set to `:long` or `:short` then the formatting depends on\n whether `:currency` is specified. If not specified then the number is\n formatted as `:decimal_long` or `:decimal_short`. If `:currency` is\n specified the number is formatted as `:currency_long` or\n `:currency_short` and `:fractional_digits` is set to 0 as a default.\n\n* `:format` may also be a format defined by CLDR's Rules Based Number\n Formats (RBNF). Further information is found in the module `Cldr.Rbnf`.\n The most commonly used formats in this category are to spell out the\n number in a the locales language. The applicable formats are `:spellout`,\n `:spellout_year`, `:ordinal`. A number can also be formatted as roman\n numbers by using the format `:roman` or `:roman_lower`.\n\n* `currency`: is the currency for which the number is formatted. For\n available currencies see `Cldr.Currency.known_currencies/0`. This option\n is required if `:format` is set to `:currency`. If `currency` is set\n and no `:format` is set, `:format` will be set to `:currency` as well.\n\n* `currency_symbol`: Allows overriding a currency symbol. The alternatives\n are:\n * `:iso` the ISO currency code will be used instead of the default\n currency symbol.\n * `:narrow` uses the narrow symbol defined for the locale. The same\n narrow symbol can be defined for more than one currency and therefore this\n should be used with care. If no narrow symbol is defined, the standard\n symbol is used.\n * `:symbol` uses the standard symbol defined in CLDR. A symbol is unique\n for each currency and can be safely used.\n * \"string\" uses `string` as the currency symbol\n * `:standard` (the default and recommended) uses the CLDR-defined symbol\n based upon the currency format for the locale.\n\n* `:cash`: a boolean which indicates whether a number being formatted as a\n `:currency` is to be considered a cash value or not. Currencies can be\n rounded differently depending on whether `:cash` is `true` or `false`.\n *This option is deprecated in favour of `currency_digits: :cash`.\n\n* `:currency_digits` indicates which of the rounding and digits should be\n used. The options are `:accounting` which is the default, `:cash` or\n `:iso`\n\n* `:rounding_mode`: determines how a number is rounded to meet the precision\n of the format requested. The available rounding modes are `:down`,\n :half_up, :half_even, :ceiling, :floor, :half_down, :up. The default is\n `:half_even`.\n\n* `:number_system`: determines which of the number systems for a locale\n should be used to define the separators and digits for the formatted\n number. If `number_system` is an `atom` then `number_system` is\n interpreted as a number system. If the `:number_system` is\n `binary` then it is interpreted as a number system name. See\n `Cldr.Number.System.number_system_names_for/2`. The default is `:default`.\n\n* `:locale`: determines the locale in which the number is formatted. See\n `Cldr.known_locale_names/0`. The default is`Cldr.get_locale/0` which is the\n locale currently in affect for this `Process` and which is set by\n `Cldr.put_locale/1`.\n\n* If `:fractional_digits` is set to a positive integer value then the number\n will be rounded to that number of digits and displayed accordingly - overriding\n settings that would be applied by default. For example, currencies have\n fractional digits defined reflecting each currencies minor unit. Setting\n `:fractional_digits` will override that setting.\n\n* If `:maximum_integer_digits` is set to a positive integer value then the\n number is left truncated before formatting. For example if the number `1234`\n is formatted with the option `maximum_integer_digits: 2`, the number is\n truncated to `34` and formatted.\n\n* If `:round_nearest` is set to a positive integer value then the number\n will be rounded to nearest increment of that value - overriding\n settings that would be applied by default.\n\n* `:minimum_grouping_digits` overrides the CLDR definition of minimum grouping\n digits. For example in the locale `es` the number `1234` is formatted by default\n as `1345` because the locale defines the `minimium_grouping_digits` as `2`. If\n `minimum_grouping_digits: 1` is set as an option the number is formatting as\n `1.345`. The `:minimum_grouping_digits` is added to the grouping defined by\n the number format. If the sum of these two digits is greater than the number\n of digits in the integer (or fractional) part of the number then no grouping\n is performed.\n\n* `:wrapper` is a 2-arity function that will be called for each number component\n with parameters `string` and `tag` where `tag` is one of `:number`,\n `:currency_symbol`, `:currency_space`, `:literal`, `:quote`, `:percent`,\n `:permille`, `:minus` or `:plus`. The function must return a string. The\n function can be used to wrap format elements in HTML or other tags.","ref":"Plausible.Cldr.Number.html#to_string/2-options","title":"Options - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"A locale identifier can specify options that affect number formatting.\nThese options are:\n\n* `nu`: defines the number system to be used if none is specified by the `:number_system`\n option to `to_string/2`\n\nThis key is part of the [u extension](https://unicode.org/reports/tr35/#u_Extension) and\nthat document should be consulted for details on how to construct a locale identifier with these\nextensions.","ref":"Plausible.Cldr.Number.html#to_string/2-locale-extensions-affecting-formatting","title":"Locale extensions affecting formatting - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"Wrapping elements is particularly useful when formatting a number with a\ncurrency symbol and the requirement is to have different HTML formatting\napplied to the symbol than the number. For example:\n\n iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn\n ...> string, :currency_symbol -> \" \" string \" \"\n ...> string, :number -> \" \" string \" \"\n ...> string, :currency_space -> \" \" string \" \"\n ...> string, _other -> string\n ...> end)\n {:ok, \" $ 100.00 \"}\n\nIt is also possible and recommended to use the `Phoenix.HTML.Tag.content_tag/3`\nfunction if wrapping HTML tags since these will ensure HTML entities are\ncorrectly encoded. For example:\n\n iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn\n ...> string, :currency_symbol -> Phoenix.HTML.Tag.content_tag(:span, string, class: \"symbol\")\n ...> string, :number -> Phoenix.HTML.Tag.content_tag(:span, string, class: \"number\")\n ...> string, :currency_space -> Phoenix.HTML.Tag.content_tag(:span, string)\n ...> string, _other -> string\n ...> end)\n {:ok, \" $ 100.00 \"}\n\nWhen formatting a number the format is parsed into format elements that might include\na currency symbol, a literal string, inserted text between a currency symbol and the\ncurrency amount, a percent sign, the number itself and several other elements. In\nsome cases it is helpful to be apply specific formatting to each element.\nThis can be achieved by specifying a `:wrapper` option. This option takes a 2-arity\nfunction as an argument. For each element of the format the wrapper function is called\nwith two parameters: the format element as a string and an atom representing the\nelement type. The wrapper function is required to return a string that is then\ninserted in the final formatted number.","ref":"Plausible.Cldr.Number.html#to_string/2-wrapping-format-elements","title":"Wrapping format elements - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"* `{:ok, string}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.html#to_string/2-returns","title":"Returns - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_string 12345\n {:ok, \"12,345\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, locale: \"fr\"\n {:ok, \"12 345\"}\n\n iex> Plausible.Cldr.Number.to_string 1345.32, currency: :EUR, locale: \"es\", minimum_grouping_digits: 1\n {:ok, \"1.345,32 €\"}\n\n iex> Plausible.Cldr.Number.to_string 1345.32, currency: :EUR, locale: \"es\"\n {:ok, \"1345,32 €\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, locale: \"fr\", currency: \"USD\"\n {:ok, \"12 345,00 $US\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: \"#E0\"\n {:ok, \"1.2345E4\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: \"THB\"\n {:ok, \"THB 12,345.00\"}\n\n iex> Plausible.Cldr.Number.to_string -12345, format: :accounting, currency: \"THB\"\n {:ok, \"(THB 12,345.00)\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: \"THB\",\n ...> locale: \"th\"\n {:ok, \"฿12,345.00\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: \"THB\",\n ...> locale: \"th\", number_system: :native\n {:ok, \"฿๑๒,๓๔๕.๐๐\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :long\n {:ok, \"1 thousand\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :long, currency: \"USD\"\n {:ok, \"1,244 US dollars\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :short\n {:ok, \"1K\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :short, currency: \"EUR\"\n {:ok, \"€1K\"}\n\n iex> Plausible.Cldr.Number.to_string 1234, format: :spellout\n {:ok, \"one thousand two hundred thirty-four\"}\n\n iex> Plausible.Cldr.Number.to_string 1234, format: :spellout_verbose\n {:ok, \"one thousand two hundred and thirty-four\"}\n\n iex> Plausible.Cldr.Number.to_string 1989, format: :spellout_year\n {:ok, \"nineteen eighty-nine\"}\n\n iex> Plausible.Cldr.Number.to_string 123, format: :ordinal\n {:ok, \"123rd\"}\n\n iex> Plausible.Cldr.Number.to_string 123, format: :roman\n {:ok, \"CXXIII\"}\n\n iex> Plausible.Cldr.Number.to_string 123, locale: \"th-u-nu-thai\"\n {:ok, \"๑๒๓\"}","ref":"Plausible.Cldr.Number.html#to_string/2-examples","title":"Examples - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"An error tuple `{:error, reason}` will be returned if an error is detected.\nThe two most likely causes of an error return are:\n\n * A format cannot be compiled. In this case the error tuple will look like:\n\n```\n iex> Plausible.Cldr.Number.to_string(12345, format: \"0#\")\n {:error, {Cldr.FormatCompileError,\n \"Decimal format compiler: syntax error before: \\\"#\\\"\"}}\n```\n\n * The format style requested is not defined for the `locale` and\n `number_system`. This happens typically when the number system is\n `:algorithmic` rather than the more common `:numeric`. In this case the error\n return looks like:\n\n```\n iex> Plausible.Cldr.Number.to_string(1234, locale: \"he\", number_system: \"hebr\")\n {:error, {Cldr.UnknownFormatError,\n \"The locale :he with number system :hebr does not define a format :standard\"}}\n```","ref":"Plausible.Cldr.Number.html#to_string/2-errors","title":"Errors - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"Same as the execution of `to_string/2` but raises an exception if an error would be\nreturned.","ref":"Plausible.Cldr.Number.html#to_string!/2","title":"Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted. See\n `Plausible.Cldr.Number.to_string/2`","ref":"Plausible.Cldr.Number.html#to_string!/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"* a formatted number as a string or\n\n* raises an exception","ref":"Plausible.Cldr.Number.html#to_string!/2-returns","title":"Returns - Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_string! 12345\n \"12,345\"\n\n iex> Plausible.Cldr.Number.to_string! 12345, locale: \"fr\"\n \"12 345\"","ref":"Plausible.Cldr.Number.html#to_string!/2-examples","title":"Examples - Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"Return a valid number system from a provided locale and number\nsystem name or type.\n\nThe number system or number system type must be valid for the\ngiven locale. If a number system type is provided, the\nunderlying number system is returned.","ref":"Plausible.Cldr.Number.html#validate_number_system/2","title":"Plausible.Cldr.Number.validate_number_system/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n\n* `system_name` is any number system name returned by\n `Cldr.known_number_systems/0` or a number system type\n returned by `Cldr.known_number_system_types/0`","ref":"Plausible.Cldr.Number.html#validate_number_system/2-arguments","title":"Arguments - Plausible.Cldr.Number.validate_number_system/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.validate_number_system \"en\", :latn\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.validate_number_system \"en\", :default\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.validate_number_system \"en\", :unknown\n {:error,\n {Cldr.UnknownNumberSystemError, \"The number system :unknown is unknown\"}}\n\n iex> Plausible.Cldr.Number.validate_number_system \"zz\", :default\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zz\\\" is invalid\"}}","ref":"Plausible.Cldr.Number.html#validate_number_system/2-examples","title":"Examples - Plausible.Cldr.Number.validate_number_system/2","type":"function"},{"doc":"Implements cardinal plural rules for numbers.","ref":"Plausible.Cldr.Number.Cardinal.html","title":"Plausible.Cldr.Number.Cardinal","type":"module"},{"doc":"The locale names for which plural rules are defined.","ref":"Plausible.Cldr.Number.Cardinal.html#available_locale_names/0","title":"Plausible.Cldr.Number.Cardinal.available_locale_names/0","type":"function"},{"doc":"The configured locales for which plural rules are defined.\n\nReturns the intersection of `Plausible.Cldr.known_locale_names/0` and\nthe locales for which Cardinal plural rules are defined.\n\nThere are many `Cldr` locales which don't have their own plural\nrules so this list is the intersection of `Cldr`'s configured\nlocales and those that have rules.","ref":"Plausible.Cldr.Number.Cardinal.html#known_locale_names/0","title":"Plausible.Cldr.Number.Cardinal.known_locale_names/0","type":"function"},{"doc":"Return the plural key for a given number in a given locale\n\nReturns which plural key (`:zero`, `:one`, `:two`, `:few`,\n`:many` or `:other`) a given number fits into within the\ncontext of a given locale.\n\nNote that these key names should not be interpreted\nliterally. For example, the key returned from\n`Cldr.Number.Ordinal.plural_rule(0, \"en\")` is actually\n`:other`, not `:zero`.\n\nThis key can then be used to format a number, date, time, unit,\nlist or other content in a plural-sensitive way.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rule/3","title":"Plausible.Cldr.Number.Cardinal.plural_rule/3","type":"function"},{"doc":"* `number` is any `integer`, `float` or `Decimal`\n\n* `locale` is any locale returned by `Cldr.Locale.new!/2` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `rounding` is one of `[:down, :up, :ceiling, :floor, :half_even, :half_up, :half_down]`. The\n default is `:half_even`.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rule/3-arguments","title":"Arguments - Plausible.Cldr.Number.Cardinal.plural_rule/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Cardinal.plural_rule 0, \"fr\"\n :one\n\n iex> Plausible.Cldr.Number.Cardinal.plural_rule 0, \"en\"\n :other","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rule/3-examples","title":"Examples - Plausible.Cldr.Number.Cardinal.plural_rule/3","type":"function"},{"doc":"Returns all the plural rules defined in CLDR.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rules/0","title":"Plausible.Cldr.Number.Cardinal.plural_rules/0","type":"function"},{"doc":"Return the plural rules for a locale.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rules_for/1","title":"Plausible.Cldr.Number.Cardinal.plural_rules_for/1","type":"function"},{"doc":"* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\nThe rules are returned in AST form after parsing.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rules_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Cardinal.plural_rules_for/1","type":"function"},{"doc":"Pluralize a number using cardinal plural rules\nand a substitution map.","ref":"Plausible.Cldr.Number.Cardinal.html#pluralize/3","title":"Plausible.Cldr.Number.Cardinal.pluralize/3","type":"function"},{"doc":"* `number` is an integer, float or Decimal\n\n* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `substitutions` is a map that maps plural keys to a string.\n The valid substitution keys are `:zero`, `:one`, `:two`,\n `:few`, `:many` and `:other`.\n\nSee also `Plausible.Cldr.Number.Cardinal.Cardinal.plural_rule/3`.","ref":"Plausible.Cldr.Number.Cardinal.html#pluralize/3-arguments","title":"Arguments - Plausible.Cldr.Number.Cardinal.pluralize/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Cardinal.pluralize 1, \"en\", %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 2, \"en\", %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 2, \"en\", %{one: \"one\", two: \"two\", other: \"other\"}\n \"other\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 22, \"en\", %{one: \"one\", two: \"two\", other: \"other\"}\n \"other\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(1), \"en\", %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), \"en\", %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), \"en\", %{one: \"one\", two: \"two\"}\n nil\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, \"ar\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"few\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, \"en\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"other\"","ref":"Plausible.Cldr.Number.Cardinal.html#pluralize/3-examples","title":"Examples - Plausible.Cldr.Number.Cardinal.pluralize/3","type":"function"},{"doc":"Functions to manage the collection of number patterns defined in Cldr.\n\nNumber patterns affect how numbers are interpreted in a localized context.\nHere are some examples, based on the French locale. The \".\" shows where the\ndecimal point should go. The \",\" shows where the thousands separator should\ngo. A \"0\" indicates zero-padding: if the number is too short, a zero (in the\nlocale's numeric set) will go there. A \"#\" indicates no padding: if the\nnumber is too short, nothing goes there. A \"¤\" shows where the currency sign\nwill go. The following illustrates the effects of different patterns for the\nFrench locale, with the number \"1234.567\". Notice how the pattern characters\n',' and '.' are replaced by the characters appropriate for the locale.","ref":"Plausible.Cldr.Number.Format.html","title":"Plausible.Cldr.Number.Format","type":"module"},{"doc":"| Pattern\t | Currency\t | Text |\n| ------------- | :-------------: | ----------: |\n| #,##0.##\t | n/a\t | 1 234,57 |\n| #,##0.###\t | n/a\t | 1 234,567 |\n| ###0.#####\t | n/a\t | 1234,567 |\n| ###0.0000#\t | n/a\t | 1234,5670 |\n| 00000.0000\t | n/a\t | 01234,5670 |\n| #,##0.00 ¤\t | EUR\t | 1 234,57 € |\n\nThe number of # placeholder characters before the decimal do not matter,\nsince no limit is placed on the maximum number of digits. There should,\nhowever, be at least one zero some place in the pattern. In currency formats,\nthe number of digits after the decimal also do not matter, since the\ninformation in the supplemental data (see Supplemental Currency Data) is used\nto override the number of decimal places — and the rounding — according to\nthe currency that is being formatted. That can be seen in the above chart,\nwith the difference between Yen and Euro formatting.\n\nDetails of the number formats are described in the\n[Unicode documentation](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Format_Patterns)","ref":"Plausible.Cldr.Number.Format.html#module-number-pattern-examples","title":"Number Pattern Examples - Plausible.Cldr.Number.Format","type":"module"},{"doc":"Returns the decimal formats defined for a given locale.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for/1","title":"Plausible.Cldr.Number.Format.all_formats_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.all_formats_for/1","type":"function"},{"doc":"* `{:ok, map}` where map is a map of decimal formats\n keyed by number system or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.Format.html#all_formats_for/1-returns","title":"Returns - Plausible.Cldr.Number.Format.all_formats_for/1","type":"function"},{"doc":"Returns the decimal formats defined for a given locale.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for!/1","title":"Plausible.Cldr.Number.Format.all_formats_for!/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for!/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.all_formats_for!/1","type":"function"},{"doc":"* `{:ok, map}` where map is a map of decimal formats\n keyed by number system or\n\n* raises an exception\n\nSee `Plausible.Cldr.Number.Format.Number.Format.all_formats_for/1` for further information.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for!/1-returns","title":"Returns - Plausible.Cldr.Number.Format.all_formats_for!/1","type":"function"},{"doc":"Returns the currency space for a given locale and\nnumber system.","ref":"Plausible.Cldr.Number.Format.html#currency_spacing/2","title":"Plausible.Cldr.Number.Format.currency_spacing/2","type":"function"},{"doc":"Returns the list of decimal formats in the configured locales including\nthe list of locales configured for precompilation in `config.exs`.\n\nThis function exists to allow the decimal formatter\nto precompile all the known formats at compile time.","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list/0","title":"Plausible.Cldr.Number.Format.decimal_format_list/0","type":"function"},{"doc":"#=> Plausible.Cldr.Number.Format.Format.decimal_format_list\n [\"#\", \"#,##,##0%\",\n \"#,##,##0.###\", \"#,##,##0.00¤\", \"#,##,##0.00¤;(#,##,##0.00¤)\",\n \"#,##,##0 %\", \"#,##0%\", \"#,##0.###\", \"#,##0.00 ¤\",\n \"#,##0.00 ¤;(#,##0.00 ¤)\", \"#,##0.00¤\", \"#,##0.00¤;(#,##0.00¤)\",\n \"#,##0 %\", \"#0%\", \"#0.######\", \"#0.00 ¤\", \"#E0\", \"%#,##0\", \"% #,##0\",\n \"0\", \"0.000000E+000\", \"0000 M ¤\", \"0000¤\", \"000G ¤\", \"000K ¤\", \"000M ¤\",\n \"000T ¤\", \"000mM ¤\", \"000m ¤\", \"000 Bio'.' ¤\", \"000 Bln ¤\", \"000 Bn ¤\",\n \"000 B ¤\", \"000 E ¤\", \"000 K ¤\", \"000 MRD ¤\", \"000 Md ¤\", \"000 Mio'.' ¤\",\n \"000 Mio ¤\", \"000 Mld ¤\", \"000 Mln ¤\", \"000 Mn ¤\", \"000 Mrd'.' ¤\",\n \"000 Mrd ¤\", \"000 Mr ¤\", \"000 M ¤\", \"000 NT ¤\", \"000 N ¤\", \"000 Tn ¤\",\n \"000 Tr ¤\", ...]","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list/0-example","title":"Example - Plausible.Cldr.Number.Format.decimal_format_list/0","type":"function"},{"doc":"Returns the list of decimal formats for a configured locale.","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list_for/1","title":"Plausible.Cldr.Number.Format.decimal_format_list_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.\n\nThis function exists to allow the decimal formatter to precompile all\nthe known formats at compile time. Its use is not otherwise recommended.","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.decimal_format_list_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.decimal_format_list_for(:en)\n {:ok, [\"#,##0%\", \"#,##0.###\", \"#,##0.00\", \"#,##0.00;(#,##0.00)\",\"#E0\",\n \"0 billion\", \"0 million\", \"0 thousand\",\n \"0 trillion\", \"00 billion\", \"00 million\", \"00 thousand\", \"00 trillion\",\n \"000 billion\", \"000 million\", \"000 thousand\", \"000 trillion\", \"000B\", \"000K\",\n \"000M\", \"000T\", \"00B\", \"00K\", \"00M\", \"00T\", \"0B\", \"0K\", \"0M\", \"0T\",\n \"¤#,##0.00\", \"¤#,##0.00;(¤#,##0.00)\", \"¤000B\", \"¤000K\", \"¤000M\",\n \"¤000T\", \"¤00B\", \"¤00K\", \"¤00M\", \"¤00T\", \"¤0B\", \"¤0K\", \"¤0M\", \"¤0T\",\n \"¤ #,##0.00\", \"¤ #,##0.00;(¤ #,##0.00)\", \"¤ 000B\", \"¤ 000K\", \"¤ 000M\",\n \"¤ 000T\", \"¤ 00B\", \"¤ 00K\", \"¤ 00M\", \"¤ 00T\", \"¤ 0B\", \"¤ 0K\", \"¤ 0M\", \"¤ 0T\"]}","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list_for/1-example","title":"Example - Plausible.Cldr.Number.Format.decimal_format_list_for/1","type":"function"},{"doc":"Returns the default grouping for a locale as a map.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1","title":"Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"* `{:ok, grouping}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1-returns","title":"Returns - Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.default_grouping_for(:en)\n {:ok, %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}}","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1-examples","title":"Examples - Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"Returns the default grouping for a locale\nor raises on error.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1","title":"Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"* `grouping` as a map or\n\n* raises an exception","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1-returns","title":"Returns - Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.default_grouping_for!(:en)\n %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1-examples","title":"Examples - Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"Return the predfined formats for a given `locale` and `number_system`.","ref":"Plausible.Cldr.Number.Format.html#formats_for/2","title":"Plausible.Cldr.Number.Format.formats_for/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.\n\n* `number_system` is any valid number system or number system type returned\n by `Plausible.Cldr.Number.System.number_systems_for/1`.","ref":"Plausible.Cldr.Number.Format.html#formats_for/2-arguments","title":"Arguments - Plausible.Cldr.Number.Format.formats_for/2","type":"function"},{"doc":"Plausible.Cldr.Number.Format.formats_for :fr, :native\n #=> %Cldr.Number.Format{\n accounting: \"#,##0.00 ¤;(#,##0.00 ¤)\",\n currency: \"#,##0.00 ¤\",\n percent: \"#,##0 %\",\n scientific: \"#E0\",\n standard: \"#,##0.###\"\n currency_short: [{\"1000\", [one: \"0 k ¤\", other: \"0 k ¤\"]},\n {\"10000\", [one: \"00 k ¤\", other: \"00 k ¤\"]},\n {\"100000\", [one: \"000 k ¤\", other: \"000 k ¤\"]},\n {\"1000000\", [one: \"0 M ¤\", other: \"0 M ¤\"]},\n {\"10000000\", [one: \"00 M ¤\", other: \"00 M ¤\"]},\n {\"100000000\", [one: \"000 M ¤\", other: \"000 M ¤\"]},\n {\"1000000000\", [one: \"0 Md ¤\", other: \"0 Md ¤\"]},\n {\"10000000000\", [one: \"00 Md ¤\", other: \"00 Md ¤\"]},\n {\"100000000000\", [one: \"000 Md ¤\", other: \"000 Md ¤\"]},\n {\"1000000000000\", [one: \"0 Bn ¤\", other: \"0 Bn ¤\"]},\n {\"10000000000000\", [one: \"00 Bn ¤\", other: \"00 Bn ¤\"]},\n {\"100000000000000\", [one: \"000 Bn ¤\", other: \"000 Bn ¤\"]}],\n ...\n }","ref":"Plausible.Cldr.Number.Format.html#formats_for/2-example","title":"Example - Plausible.Cldr.Number.Format.formats_for/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Format.html#formats_for!/2","title":"Plausible.Cldr.Number.Format.formats_for!/2","type":"function"},{"doc":"Returns the minimum grouping digits for a locale.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1","title":"Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"* `{:ok, minumum_digits}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1-returns","title":"Returns - Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for(\"en\")\n {:ok, 1}","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1-examples","title":"Examples - Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"Returns the minimum grouping digits for a locale\nor raises on error.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1","title":"Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"* `minumum_digits` or\n\n* raises an exception","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1-returns","title":"Returns - Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for!(\"en\")\n 1","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1-examples","title":"Examples - Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Formatter.Decimal.html","title":"Plausible.Cldr.Number.Formatter.Decimal","type":"module"},{"doc":"","ref":"Plausible.Cldr.Number.Formatter.Decimal.html#metadata!/1","title":"Plausible.Cldr.Number.Formatter.Decimal.metadata!/1","type":"function"},{"doc":"Formats a number according to a decimal format string.","ref":"Plausible.Cldr.Number.Formatter.Decimal.html#to_string/3","title":"Plausible.Cldr.Number.Formatter.Decimal.to_string/3","type":"function"},{"doc":"* `number` is an integer, float or Decimal\n\n* `format` is a format string. See `Plausible.Cldr.Number` for further information.\n\n* `options` is a map of options. See `Plausible.Cldr.Number.to_string/2`\n for further information.","ref":"Plausible.Cldr.Number.Formatter.Decimal.html#to_string/3-arguments","title":"Arguments - Plausible.Cldr.Number.Formatter.Decimal.to_string/3","type":"function"},{"doc":"Implements ordinal plural rules for numbers.","ref":"Plausible.Cldr.Number.Ordinal.html","title":"Plausible.Cldr.Number.Ordinal","type":"module"},{"doc":"The locale names for which plural rules are defined.","ref":"Plausible.Cldr.Number.Ordinal.html#available_locale_names/0","title":"Plausible.Cldr.Number.Ordinal.available_locale_names/0","type":"function"},{"doc":"The configured locales for which plural rules are defined.\n\nReturns the intersection of `Plausible.Cldr.known_locale_names/0` and\nthe locales for which Ordinal plural rules are defined.\n\nThere are many `Cldr` locales which don't have their own plural\nrules so this list is the intersection of `Cldr`'s configured\nlocales and those that have rules.","ref":"Plausible.Cldr.Number.Ordinal.html#known_locale_names/0","title":"Plausible.Cldr.Number.Ordinal.known_locale_names/0","type":"function"},{"doc":"Return the plural key for a given number in a given locale\n\nReturns which plural key (`:zero`, `:one`, `:two`, `:few`,\n`:many` or `:other`) a given number fits into within the\ncontext of a given locale.\n\nNote that these key names should not be interpreted\nliterally. For example, the key returned from\n`Cldr.Number.Ordinal.plural_rule(0, \"en\")` is actually\n`:other`, not `:zero`.\n\nThis key can then be used to format a number, date, time, unit,\nlist or other content in a plural-sensitive way.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rule/3","title":"Plausible.Cldr.Number.Ordinal.plural_rule/3","type":"function"},{"doc":"* `number` is any `integer`, `float` or `Decimal`\n\n* `locale` is any locale returned by `Cldr.Locale.new!/2` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `rounding` is one of `[:down, :up, :ceiling, :floor, :half_even, :half_up, :half_down]`. The\n default is `:half_even`.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rule/3-arguments","title":"Arguments - Plausible.Cldr.Number.Ordinal.plural_rule/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Ordinal.plural_rule 0, \"fr\"\n :other\n\n iex> Plausible.Cldr.Number.Ordinal.plural_rule 1, \"en\"\n :one","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rule/3-examples","title":"Examples - Plausible.Cldr.Number.Ordinal.plural_rule/3","type":"function"},{"doc":"Returns all the plural rules defined in CLDR.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rules/0","title":"Plausible.Cldr.Number.Ordinal.plural_rules/0","type":"function"},{"doc":"Return the plural rules for a locale.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rules_for/1","title":"Plausible.Cldr.Number.Ordinal.plural_rules_for/1","type":"function"},{"doc":"* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\nThe rules are returned in AST form after parsing.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rules_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Ordinal.plural_rules_for/1","type":"function"},{"doc":"Pluralize a number using ordinal plural rules\nand a substitution map.","ref":"Plausible.Cldr.Number.Ordinal.html#pluralize/3","title":"Plausible.Cldr.Number.Ordinal.pluralize/3","type":"function"},{"doc":"* `number` is an integer, float or Decimal or a `Range.t{}`. When a range, The\n is that in any usage, the start value is strictly less than the end value,\n and that no values are negative. Results for any cases that do not meet\n these criteria are undefined.\n\n* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `substitutions` is a map that maps plural keys to a string.\n The valid substitution keys are `:zero`, `:one`, `:two`,\n `:few`, `:many` and `:other`.\n\nSee also `Plausible.Cldr.Number.Ordinal.Ordinal.plural_rule/3`.","ref":"Plausible.Cldr.Number.Ordinal.html#pluralize/3-arguments","title":"Arguments - Plausible.Cldr.Number.Ordinal.pluralize/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Ordinal.pluralize 1, :en, %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: \"one\", two: \"two\"}\n \"two\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 22, :en, %{one: \"one\", two: \"two\", other: \"other\"}\n \"two\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(1), :en, %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: \"one\", two: \"two\"}\n \"two\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, \"ar\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"other\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, \"en\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"other\"","ref":"Plausible.Cldr.Number.Ordinal.html#pluralize/3-examples","title":"Examples - Plausible.Cldr.Number.Ordinal.pluralize/3","type":"function"},{"doc":"Implements plural rules for ranges","ref":"Plausible.Cldr.Number.PluralRule.Range.html","title":"Plausible.Cldr.Number.PluralRule.Range","type":"module"},{"doc":"Returns a final plural type for a start-of-range plural\ntype, an end-of-range plural type and a locale.","ref":"Plausible.Cldr.Number.PluralRule.Range.html#plural_rule/3","title":"Plausible.Cldr.Number.PluralRule.Range.plural_rule/3","type":"function"},{"doc":"* `first` is a plural type for the start of a range\n\n* `last` is a plural type for the end of a range\n\n* `locale` is any `Cldr.LanguageTag.t` or a language name\n (not locale name)","ref":"Plausible.Cldr.Number.PluralRule.Range.html#plural_rule/3-arguments","title":"Arguments - Plausible.Cldr.Number.PluralRule.Range.plural_rule/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.PluralRule.Range.plural_rule :other, :few, \"ar\"\n :few","ref":"Plausible.Cldr.Number.PluralRule.Range.html#plural_rule/3-example","title":"Example - Plausible.Cldr.Number.PluralRule.Range.plural_rule/3","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Symbol.html","title":"Plausible.Cldr.Number.Symbol","type":"module"},{"doc":"Returns a list of all decimal symbols defined\nby the locales configured in this backend as\na list.","ref":"Plausible.Cldr.Number.Symbol.html#all_decimal_symbols/0","title":"Plausible.Cldr.Number.Symbol.all_decimal_symbols/0","type":"function"},{"doc":"Returns a list of all decimal symbols defined\nby the locales configured in this backend as\na string.\n\nThis string can be used as a character class\nwhen builing a regular expression.","ref":"Plausible.Cldr.Number.Symbol.html#all_decimal_symbols_class/0","title":"Plausible.Cldr.Number.Symbol.all_decimal_symbols_class/0","type":"function"},{"doc":"Returns a list of all grouping symbols defined\nby the locales configured in this backend as\na list.","ref":"Plausible.Cldr.Number.Symbol.html#all_grouping_symbols/0","title":"Plausible.Cldr.Number.Symbol.all_grouping_symbols/0","type":"function"},{"doc":"Returns a list of all grouping symbols defined\nby the locales configured in this backend as\na string.\n\nThis string can be used as a character class\nwhen builing a regular expression.","ref":"Plausible.Cldr.Number.Symbol.html#all_grouping_symbols_class/0","title":"Plausible.Cldr.Number.Symbol.all_grouping_symbols_class/0","type":"function"},{"doc":"Returns a map of `Cldr.Number.Symbol.t` structs of the number symbols for each\nof the number systems of a locale.","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/1","title":"Plausible.Cldr.Number.Symbol.number_symbols_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/1-options","title":"Options - Plausible.Cldr.Number.Symbol.number_symbols_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Symbol.number_symbols_for(:th)\n {:ok, %{\n latn: %Cldr.Number.Symbol{\n decimal: \".\",\n exponential: \"E\",\n group: \",\",\n infinity: \"∞\",\n list: \";\",\n minus_sign: \"-\",\n nan: \"NaN\",\n per_mille: \"‰\",\n percent_sign: \"%\",\n plus_sign: \"+\",\n superscripting_exponent: \"×\",\n time_separator: \":\"\n },\n thai: %Cldr.Number.Symbol{\n decimal: \".\",\n exponential: \"E\",\n group: \",\",\n infinity: \"∞\",\n list: \";\",\n minus_sign: \"-\",\n nan: \"NaN\",\n per_mille: \"‰\",\n percent_sign: \"%\",\n plus_sign: \"+\",\n superscripting_exponent: \"×\",\n time_separator: \":\"\n }\n }}","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/1-example","title":"Example: - Plausible.Cldr.Number.Symbol.number_symbols_for/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/2","title":"Plausible.Cldr.Number.Symbol.number_symbols_for/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html","title":"Plausible.Cldr.Number.System","type":"module"},{"doc":"Returns the actual number system from a number system type.\n\n* `locale` is any valid locale name returned by `Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by ``Cldr.Locale.new!/2``\n\n* `system_name` is any number system name returned by\n `Cldr.known_number_systems/0` or a number system type\n returned by `Cldr.known_number_system_types/0`\n\nThis function will decode a number system type into the actual\nnumber system. If the number system provided can't be decoded\nit is returned as is.","ref":"Plausible.Cldr.Number.System.html#number_system_for/2","title":"Plausible.Cldr.Number.System.number_system_for/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_system_for \"th\", :latn\n {:ok, %{digits: \"0123456789\", type: :numeric}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"en\", :default\n {:ok, %{digits: \"0123456789\", type: :numeric}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"he\", :traditional\n {:ok, %{rules: \"hebrew\", type: :algorithmic}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"en\", :native\n {:ok, %{digits: \"0123456789\", type: :numeric}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"en\", :finance\n {\n :error,\n {Cldr.UnknownNumberSystemError,\n \"The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}\"}\n }","ref":"Plausible.Cldr.Number.System.html#number_system_for/2-examples","title":"Examples - Plausible.Cldr.Number.System.number_system_for/2","type":"function"},{"doc":"Returns the number system from a language tag or\nlocale name.","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1","title":"Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"* `locale` is any language tag returned be `Cldr.Locale.new/2`\n or a locale name in the list returned by `Cldr.known_locale_names/1`","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"* A number system name as an atom","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1-returns","title":"Returns - Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_system_from_locale \"en-US-u-nu-thai\"\n :thai\n\n iex> Plausible.Cldr.Number.System.number_system_from_locale \"en-US\"\n :latn","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1-examples","title":"Examples - Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"Returns the number systems available for a locale\nor `{:error, message}` if the locale is not known.\n\n* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Number.System.html#number_system_names_for/1","title":"Plausible.Cldr.Number.System.number_system_names_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_system_names_for \"en\"\n {:ok, [:latn]}\n\n iex> Plausible.Cldr.Number.System.number_system_names_for \"zz\"\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zz\\\" is invalid\"}}","ref":"Plausible.Cldr.Number.System.html#number_system_names_for/1-examples","title":"Examples - Plausible.Cldr.Number.System.number_system_names_for/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_system_names_for!/1","title":"Plausible.Cldr.Number.System.number_system_names_for!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_system_types_for/1","title":"Plausible.Cldr.Number.System.number_system_types_for/1","type":"function"},{"doc":"Returns the number systems available for a locale\nor `{:error, message}` if the locale is not known.\n\n* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Number.System.html#number_systems_for/1","title":"Plausible.Cldr.Number.System.number_systems_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_systems_for \"en\"\n {:ok, %{default: :latn, native: :latn}}\n\n iex> Plausible.Cldr.Number.System.number_systems_for \"th\"\n {:ok, %{default: :latn, native: :thai}}\n\n iex> Plausible.Cldr.Number.System.number_systems_for \"zz\"\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zz\\\" is invalid\"}}","ref":"Plausible.Cldr.Number.System.html#number_systems_for/1-examples","title":"Examples - Plausible.Cldr.Number.System.number_systems_for/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_systems_for!/1","title":"Plausible.Cldr.Number.System.number_systems_for!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_systems_like/2","title":"Plausible.Cldr.Number.System.number_systems_like/2","type":"function"},{"doc":"Returns a number system name for a given locale and number system reference.\n\n* `system_name` is any number system name returned by\n `Plausible.Cldr.known_number_systems/0` or a number system type\n returned by `Plausible.Cldr.known_number_system_types/0`\n\n* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`\n\nNumber systems can be references in one of two ways:\n\n* As a number system type such as :default, :native, :traditional and\n :finance. This allows references to a number system for a locale in a\n consistent fashion for a given use\n\n* WIth the number system name directly, such as :latn, :arab or any of the\n other 70 or so\n\nThis function dereferences the supplied `system_name` and returns the\nactual system name.","ref":"Plausible.Cldr.Number.System.html#system_name_from/2","title":"Plausible.Cldr.Number.System.system_name_from/2","type":"function"},{"doc":"ex> Plausible.Cldr.Number.System.system_name_from(:default, \"en\")\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.System.system_name_from(\"latn\", \"en\")\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.System.system_name_from(:native, \"en\")\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.System.system_name_from(:nope, \"en\")\n {\n :error,\n {Cldr.UnknownNumberSystemError, \"The number system :nope is unknown\"}\n }\n\nNote that return value is not guaranteed to be a valid\nnumber system for the given locale as demonstrated in the third example.","ref":"Plausible.Cldr.Number.System.html#system_name_from/2-examples","title":"Examples - Plausible.Cldr.Number.System.system_name_from/2","type":"function"},{"doc":"Converts a number into the representation of\na non-latin number system.\n\nThis function converts numbers to a known\nnumber system only, it does not provide number\nformatting.\n\n* `number` is a `float`, `integer` or `Decimal`\n\n* `system_name` is any number system name returned by\n `Cldr.known_number_systems/0` or a number system type\n returned by `Cldr.known_number_system_types/0`\n\nThere are two types of number systems in CLDR:\n\n* `:numeric` in which the number system defines\n a direct mapping between the latin digits `0..9`\n into a the number system equivalent. In this case,\n` to_system/2` invokes `Cldr.Number.Transliterate.transliterate_digits/3`\n for the given number.\n\n* `:algorithmic` in which the number system\n does not have the same structure as the `:latn`\n number system and therefore the conversion is\n done algorithmically. For CLDR the algorithm\n is implemented through `Cldr.Rbnf` rulesets.\n These rulesets are considered by CLDR to be\n less rigorous than the `:numeric` number systems\n and caution and testing for a specific use case\n is recommended.","ref":"Plausible.Cldr.Number.System.html#to_system/2","title":"Plausible.Cldr.Number.System.to_system/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.to_system 123456, :hebr\n {:ok, \"קכ״ג׳תנ״ו\"}\n\n iex> Plausible.Cldr.Number.System.to_system 123, :hans\n {:ok, \"一百二十三\"}\n\n iex> Plausible.Cldr.Number.System.to_system 123, :hant\n {:ok, \"一百二十三\"}\n\n iex> Plausible.Cldr.Number.System.to_system 123, :hansfin\n {:ok, \"壹佰贰拾叁\"}","ref":"Plausible.Cldr.Number.System.html#to_system/2-examples","title":"Examples - Plausible.Cldr.Number.System.to_system/2","type":"function"},{"doc":"Converts a number into the representation of\na non-latin number system. Returns a converted\nstring or raises on error.\n\n* `number` is a `float`, `integer` or `Decimal`\n\n* `system_name` is any number system name returned by\n `Plausible.Cldr.known_number_systems/0` or a number system type\n returned by `Plausible.Cldr.known_number_system_types/0`\n\nSee `Plausible.Cldr.Number.System.to_system/2` for further\ninformation.","ref":"Plausible.Cldr.Number.System.html#to_system!/2","title":"Plausible.Cldr.Number.System.to_system!/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.to_system! 123, :hans\n \"一百二十三\"\n\n iex> Plausible.Cldr.Number.System.to_system! 123, :hant\n \"一百二十三\"\n\n iex> Plausible.Cldr.Number.System.to_system! 123, :hansfin\n \"壹佰贰拾叁\"","ref":"Plausible.Cldr.Number.System.html#to_system!/2-examples","title":"Examples - Plausible.Cldr.Number.System.to_system!/2","type":"function"},{"doc":"Transliteration for digits and separators.\n\nTransliterating a string is an expensive business. First the string has to\nbe exploded into its component graphemes. Then for each grapheme we have\nto map to the equivalent in the other `{locale, number_system}`. Then we\nhave to reassemble the string.\n\nEffort is made to short circuit where possible. Transliteration is not\nrequired for any `{locale, number_system}` that is the same as `{\"en\",\n\"latn\"}` since the implementation uses this combination for the placeholders during\nformatting already. When short circuiting is possible (typically the en-*\nlocales with \"latn\" number_system - the total number of short circuited\nlocales is 211 of the 537 in CLDR) the overall number formatting is twice as\nfast than when formal transliteration is required.\n\n#","ref":"Plausible.Cldr.Number.Transliterate.html","title":"Plausible.Cldr.Number.Transliterate","type":"module"},{"doc":"This module includes `Cldr.Number.Transliterate.transliterate_digits/3` which transliterates\ndigits between number systems. For example from :arabic to :latn. Since generating a\ntransliteration map is slow, pairs of transliterations can be configured so that the\ntransliteration map is created at compile time and therefore speeding up transliteration at\nrun time.\n\nTo configure these transliteration pairs, add the to the `use Cldr` configuration\nin a backend module:\n\n defmodule MyApp.Cldr do\n use Cldr,\n locale: [\"en\", \"fr\", \"th\"],\n default_locale: \"en\",\n precompile_transliterations: [{:latn, :thai}, {:arab, :thai}]\n end\n\nWhere each tuple in the list configures one transliteration map. In this example, two maps are\nconfigured: from `:latn` to `:thai` and from `:arab` to `:thai`.\n\nA list of configurable number systems is returned by `Cldr.Number.System.systems_with_digits/0`.\n\nIf a transliteration is requested between two number pairs that have not been configured for\nprecompilation, a warning is logged.","ref":"Plausible.Cldr.Number.Transliterate.html#module-configuring-precompilation-of-digit-transliterations","title":"Configuring precompilation of digit transliterations - Plausible.Cldr.Number.Transliterate","type":"module"},{"doc":"Transliterates from latin digits to another number system's digits.\n\nTransliterates the latin digits 0..9 to their equivalents in\nanother number system. Also transliterates the decimal and grouping\nseparators as well as the plus, minus and exponent symbols. Any other character\nin the string will be returned \"as is\".","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate/3","title":"Plausible.Cldr.Number.Transliterate.transliterate/3","type":"function"},{"doc":"* `sequence` is the string to be transliterated.\n\n* `locale` is any known locale, defaulting to `Plausible.Cldr.get_locale/0`.\n\n* `number_system` is any known number system. If expressed as a `string` it\n is the actual name of a known number system. If epressed as an `atom` it is\n used as a key to look up a number system for the locale (the usual keys are\n `:default` and `:native` but :traditional and :finance are also part of the\n standard). See `Plausible.Cldr.Number.System.number_systems_for/1` for a locale to\n see what number system types are defined. The default is `:default`.\n\nFor available number systems see `Cldr.Number.System.number_systems/0`\nand `Plausible.Cldr.Number.System.number_systems_for/1`. Also see\n`Plausible.Cldr.Number.Symbol.number_symbols_for/1`.","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate/3-arguments","title":"Arguments - Plausible.Cldr.Number.Transliterate.transliterate/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\")\n \"123556\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123,556.000\", \"fr\", :default)\n \"123 556,000\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\", \"th\", :default)\n \"123556\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\", \"th\", \"thai\")\n \"๑๒๓๕๕๖\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\", \"th\", :native)\n \"๑๒๓๕๕๖\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"Some number is: 123556\", \"th\", \"thai\")\n \"Some number is: ๑๒๓๕๕๖\"","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate/3-examples","title":"Examples - Plausible.Cldr.Number.Transliterate.transliterate/3","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate!/3","title":"Plausible.Cldr.Number.Transliterate.transliterate!/3","type":"function"},{"doc":"Transliterates digits from one number system to another number system\n\n* `digits` is binary representation of a number\n\n* `from_system` and `to_system` are number system names in atom form. See\n`Cldr.Number.System.systems_with_digits/0` for available number systems.","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate_digits/3","title":"Plausible.Cldr.Number.Transliterate.transliterate_digits/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Transliterate.transliterate_digits \"٠١٢٣٤٥٦٧٨٩\", :arab, :latn\n \"0123456789\"","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate_digits/3-example","title":"Example - Plausible.Cldr.Number.Transliterate.transliterate_digits/3","type":"function"},{"doc":"Functions to implement the number system rule-based-number-format rules of CLDR.\n\nThese rules are defined only on the \"und\" locale and represent specialised\nnumber formatting.\n\nThe standard public API for RBNF is via the `Cldr.Number.to_string/2` function.\n\nThe functions on this module are defined at compile time based upon the RBNF rules\ndefined in the Unicode CLDR data repository. Available rules are identified by:\n\n iex> Plausible.Cldr.Rbnf.NumberSystem.rule_sets(:und)\n ...> |> Enum.sort()\n [\n :armenian_lower,\n :armenian_upper,\n :cyrillic_lower,\n :ethiopic,\n :georgian,\n :greek_lower,\n :greek_upper,\n :hebrew,\n :hebrew_item,\n :roman_lower,\n :roman_upper,\n :tamil,\n :zz_default\n ]\n\nA rule can then be invoked on an available rule_set. For example\n\n iex> Plausible.Cldr.Rbnf.NumberSystem.roman_upper(123, :und)\n \"CXXIII\"\n\nThis particular call is equivalent to the call through the public API of:\n\n iex> Plausible.Cldr.Number.to_string(123, format: :roman)\n {:ok, \"CXXIII\"}","ref":"Plausible.Cldr.Rbnf.NumberSystem.html","title":"Plausible.Cldr.Rbnf.NumberSystem","type":"module"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#all_rule_sets/0","title":"Plausible.Cldr.Rbnf.NumberSystem.all_rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_upper/1","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_upper/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_upper/2","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_upper/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_1_10/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_1_10/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_final/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_final/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_post/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_post/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_thousands/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_thousands/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic/1","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p1/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p1/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p2/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p2/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p3/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p3/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#georgian/1","title":"Plausible.Cldr.Rbnf.NumberSystem.georgian/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#georgian/2","title":"Plausible.Cldr.Rbnf.NumberSystem.georgian/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_numeral_majuscules/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_numeral_majuscules/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_numeral_minuscules/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_numeral_minuscules/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_upper/1","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_upper/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_upper/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_upper/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew/1","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_0_99/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_0_99/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_item/1","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_item/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_item/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_item/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_item_hundreds/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_item_hundreds/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_thousands/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_thousands/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_upper/1","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_upper/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_upper/2","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_upper/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#rule_sets/0","title":"Plausible.Cldr.Rbnf.NumberSystem.rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#rule_sets/1","title":"Plausible.Cldr.Rbnf.NumberSystem.rule_sets/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#tamil/1","title":"Plausible.Cldr.Rbnf.NumberSystem.tamil/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#tamil/2","title":"Plausible.Cldr.Rbnf.NumberSystem.tamil/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#tamil_thousands/2","title":"Plausible.Cldr.Rbnf.NumberSystem.tamil_thousands/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#zz_default/1","title":"Plausible.Cldr.Rbnf.NumberSystem.zz_default/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#zz_default/2","title":"Plausible.Cldr.Rbnf.NumberSystem.zz_default/2","type":"function"},{"doc":"Functions to implement the ordinal rule-based-number-format rules of CLDR.\n\nAs CLDR notes, the data is incomplete or non-existent for many languages. It\nis considered complete for English however.\n\nThe standard public API for RBNF is via the `Cldr.Number.to_string/2` function.\n\nThe functions on this module are defined at compile time based upon the RBNF rules\ndefined in the Unicode CLDR data repository. Available rules are identified by:\n\n iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets(:en)\n [:digits_ordinal]\n\n iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets(\"fr\")\n ...> |> Enum.sort()\n [\n :digits_ordinal,\n :digits_ordinal_feminine,\n :digits_ordinal_feminine_plural,\n :digits_ordinal_masculine,\n :digits_ordinal_masculine_plural\n ]\n\nA rule can then be invoked on an available rule_set. For example\n\n iex> Plausible.Cldr.Rbnf.Ordinal.digits_ordinal(123, :en)\n \"123rd\"\n\nThis call is equivalent to the call through the public API of:\n\n iex> Plausible.Cldr.Number.to_string(123, format: :ordinal)\n {:ok, \"123rd\"}","ref":"Plausible.Cldr.Rbnf.Ordinal.html","title":"Plausible.Cldr.Rbnf.Ordinal","type":"module"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#all_rule_sets/0","title":"Plausible.Cldr.Rbnf.Ordinal.all_rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#digits_ordinal/2","title":"Plausible.Cldr.Rbnf.Ordinal.digits_ordinal/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#rule_sets/0","title":"Plausible.Cldr.Rbnf.Ordinal.rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#rule_sets/1","title":"Plausible.Cldr.Rbnf.Ordinal.rule_sets/1","type":"function"},{"doc":"Functions to implement the spellout rule-based-number-format rules of CLDR.\n\nAs CLDR notes, the data is incomplete or non-existent for many languages. It\nis considered complete for English however.\n\nThe standard public API for RBNF is via the `Cldr.Number.to_string/2` function.\n\nThe functions on this module are defined at compile time based upon the RBNF rules\ndefined in the Unicode CLDR data repository. Available rules are identified by:\n\n iex> Plausible.Cldr.Rbnf.Spellout.rule_sets(\"en\")\n ...> |> Enum.sort()\n [\n :spellout_cardinal,\n :spellout_cardinal_verbose,\n :spellout_numbering,\n :spellout_numbering_verbose,\n :spellout_numbering_year,\n :spellout_ordinal,\n :spellout_ordinal_verbose\n ]\n\nA rule can then be invoked on an available rule_set. For example:\n\n iex> Plausible.Cldr.Rbnf.Spellout.spellout_ordinal(123, \"en\")\n \"one hundred twenty-third\"\n\nThis call is equivalent to the call through the public API of:\n\n iex> Plausible.Cldr.Number.to_string(123, format: :spellout)\n {:ok, \"one hundred twenty-three\"}","ref":"Plausible.Cldr.Rbnf.Spellout.html","title":"Plausible.Cldr.Rbnf.Spellout","type":"module"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#all_rule_sets/0","title":"Plausible.Cldr.Rbnf.Spellout.all_rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#and/2","title":"Plausible.Cldr.Rbnf.Spellout.and/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#and_o/2","title":"Plausible.Cldr.Rbnf.Spellout.and_o/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#commas/2","title":"Plausible.Cldr.Rbnf.Spellout.commas/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#commas_o/2","title":"Plausible.Cldr.Rbnf.Spellout.commas_o/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#r2d_year/2","title":"Plausible.Cldr.Rbnf.Spellout.r2d_year/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#rule_sets/0","title":"Plausible.Cldr.Rbnf.Spellout.rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#rule_sets/1","title":"Plausible.Cldr.Rbnf.Spellout.rule_sets/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_cardinal/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_cardinal/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_cardinal_verbose/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_cardinal_verbose/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_numbering/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_numbering/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_numbering_verbose/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_numbering_verbose/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_numbering_year/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_numbering_year/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_ordinal/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_ordinal/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_ordinal_verbose/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_ordinal_verbose/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#th/2","title":"Plausible.Cldr.Rbnf.Spellout.th/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#tieth/2","title":"Plausible.Cldr.Rbnf.Spellout.tieth/2","type":"function"},{"doc":"Event schema for when NumericIDs migration is complete","ref":"Plausible.ClickhouseEventV2.html","title":"Plausible.ClickhouseEventV2","type":"module"},{"doc":"","ref":"Plausible.ClickhouseEventV2.html#new/1","title":"Plausible.ClickhouseEventV2.new/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html","title":"Plausible.ClickhouseRepo","type":"module"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#aggregate/3","title":"Plausible.ClickhouseRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#aggregate/4","title":"Plausible.ClickhouseRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#all/2","title":"Plausible.ClickhouseRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#checked_out?/0","title":"Plausible.ClickhouseRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#checkout/2","title":"Plausible.ClickhouseRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#child_spec/1","title":"Plausible.ClickhouseRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#config/0","title":"Plausible.ClickhouseRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#default_options/1","title":"Plausible.ClickhouseRepo.default_options/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.ClickhouseRepo.html#disconnect_all/2","title":"Plausible.ClickhouseRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#exists?/2","title":"Plausible.ClickhouseRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get/3","title":"Plausible.ClickhouseRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get!/3","title":"Plausible.ClickhouseRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get_by/3","title":"Plausible.ClickhouseRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get_by!/3","title":"Plausible.ClickhouseRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get_dynamic_repo/0","title":"Plausible.ClickhouseRepo.get_dynamic_repo/0","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.ClickhouseRepo.html#insert_stream/3","title":"Plausible.ClickhouseRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#load/2","title":"Plausible.ClickhouseRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#one/2","title":"Plausible.ClickhouseRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#one!/2","title":"Plausible.ClickhouseRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#parallel_tasks/1","title":"Plausible.ClickhouseRepo.parallel_tasks/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#preload/3","title":"Plausible.ClickhouseRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#prepare_query/3","title":"Plausible.ClickhouseRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#put_dynamic_repo/1","title":"Plausible.ClickhouseRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.ClickhouseRepo.html#query/3","title":"Plausible.ClickhouseRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.ClickhouseRepo.html#query!/3","title":"Plausible.ClickhouseRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#reload/2","title":"Plausible.ClickhouseRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#reload!/2","title":"Plausible.ClickhouseRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#start_link/1","title":"Plausible.ClickhouseRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#stop/1","title":"Plausible.ClickhouseRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#stream/2","title":"Plausible.ClickhouseRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.ClickhouseRepo.html#to_sql/2","title":"Plausible.ClickhouseRepo.to_sql/2","type":"function"},{"doc":"Session schema for when NumericIDs migration is complete","ref":"Plausible.ClickhouseSessionV2.html","title":"Plausible.ClickhouseSessionV2","type":"module"},{"doc":"","ref":"Plausible.ClickhouseSessionV2.html#random_uint64/0","title":"Plausible.ClickhouseSessionV2.random_uint64/0","type":"function"},{"doc":"Custom type to cast Bool as UInt8","ref":"Plausible.ClickhouseSessionV2.BoolUInt8.html","title":"Plausible.ClickhouseSessionV2.BoolUInt8","type":"module"},{"doc":"","ref":"Plausible.ClickhouseSessionV2.BoolUInt8.html#embed_as/1","title":"Plausible.ClickhouseSessionV2.BoolUInt8.embed_as/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseSessionV2.BoolUInt8.html#equal?/2","title":"Plausible.ClickhouseSessionV2.BoolUInt8.equal?/2","type":"function"},{"doc":"","ref":"Plausible.ConfigHelpers.html","title":"Plausible.ConfigHelpers","type":"module"},{"doc":"","ref":"Plausible.ConfigHelpers.html#get_int_from_path_or_env/3","title":"Plausible.ConfigHelpers.get_int_from_path_or_env/3","type":"function"},{"doc":"","ref":"Plausible.ConfigHelpers.html#get_var_from_path_or_env/3","title":"Plausible.ConfigHelpers.get_var_from_path_or_env/3","type":"function"},{"doc":"This module defines the setup for tests requiring\naccess to the application's data layer.\n\nYou may define functions here to be used as helpers in\nyour tests.\n\nFinally, if the test case interacts with the database,\nit cannot be async. For this reason, every test runs\ninside a transaction which is reset at the beginning\nof the test unless the test case is marked as async.","ref":"Plausible.DataCase.html","title":"Plausible.DataCase","type":"module"},{"doc":"Base module for coordinated Clickhouse data migrations\nrun via remote shell or otherwise (TBD).","ref":"Plausible.DataMigration.html","title":"Plausible.DataMigration","type":"module"},{"doc":"Numeric IDs migration, SQL files available at:\npriv/data_migrations/NumericIDs/sql","ref":"Plausible.DataMigration.NumericIDs.html","title":"Plausible.DataMigration.NumericIDs","type":"module"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#confirm/3","title":"Plausible.DataMigration.NumericIDs.confirm/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#run/1","title":"Plausible.DataMigration.NumericIDs.run/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#run_sql/2","title":"Plausible.DataMigration.NumericIDs.run_sql/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#run_sql_confirm/2","title":"Plausible.DataMigration.NumericIDs.run_sql_confirm/2","type":"function"},{"doc":"Ecto.Repo for Clickhouse data migrations, to be started manually,\noutside of the main application supervision tree.","ref":"Plausible.DataMigration.Repo.html","title":"Plausible.DataMigration.Repo","type":"module"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#aggregate/3","title":"Plausible.DataMigration.Repo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#aggregate/4","title":"Plausible.DataMigration.Repo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#all/2","title":"Plausible.DataMigration.Repo.all/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#checked_out?/0","title":"Plausible.DataMigration.Repo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#checkout/2","title":"Plausible.DataMigration.Repo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#child_spec/1","title":"Plausible.DataMigration.Repo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#config/0","title":"Plausible.DataMigration.Repo.config/0","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#default_options/1","title":"Plausible.DataMigration.Repo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#delete/2","title":"Plausible.DataMigration.Repo.delete/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#delete!/2","title":"Plausible.DataMigration.Repo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#delete_all/2","title":"Plausible.DataMigration.Repo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.DataMigration.Repo.html#disconnect_all/2","title":"Plausible.DataMigration.Repo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#exists?/2","title":"Plausible.DataMigration.Repo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get/3","title":"Plausible.DataMigration.Repo.get/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get!/3","title":"Plausible.DataMigration.Repo.get!/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get_by/3","title":"Plausible.DataMigration.Repo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get_by!/3","title":"Plausible.DataMigration.Repo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get_dynamic_repo/0","title":"Plausible.DataMigration.Repo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert/2","title":"Plausible.DataMigration.Repo.insert/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert!/2","title":"Plausible.DataMigration.Repo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert_all/3","title":"Plausible.DataMigration.Repo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert_or_update/2","title":"Plausible.DataMigration.Repo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert_or_update!/2","title":"Plausible.DataMigration.Repo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.DataMigration.Repo.html#insert_stream/3","title":"Plausible.DataMigration.Repo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#load/2","title":"Plausible.DataMigration.Repo.load/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#one/2","title":"Plausible.DataMigration.Repo.one/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#one!/2","title":"Plausible.DataMigration.Repo.one!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#preload/3","title":"Plausible.DataMigration.Repo.preload/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#prepare_query/3","title":"Plausible.DataMigration.Repo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#put_dynamic_repo/1","title":"Plausible.DataMigration.Repo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.DataMigration.Repo.html#query/3","title":"Plausible.DataMigration.Repo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.DataMigration.Repo.html#query!/3","title":"Plausible.DataMigration.Repo.query!/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#reload/2","title":"Plausible.DataMigration.Repo.reload/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#reload!/2","title":"Plausible.DataMigration.Repo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#start/2","title":"Plausible.DataMigration.Repo.start/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#start_link/1","title":"Plausible.DataMigration.Repo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#stop/1","title":"Plausible.DataMigration.Repo.stop/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#stream/2","title":"Plausible.DataMigration.Repo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.DataMigration.Repo.html#to_sql/2","title":"Plausible.DataMigration.Repo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#update/2","title":"Plausible.DataMigration.Repo.update/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#update!/2","title":"Plausible.DataMigration.Repo.update!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#update_all/3","title":"Plausible.DataMigration.Repo.update_all/3","type":"function"},{"doc":"A data fix migration that seeks funnels having steps\nwhose goals are equally named.\nIt then tries to rewrite the duplicate goals using the\noldest goal available. In extreme cases, e.g. when multiple\nduplicates are found for a single funnel, it will either\nreduce or completely remove the funnel.\nThis enables us to run a migration later on that will\ndelete duplicate goals and enforce goal uniqueness at the\ndatabase level via a CHECK constraint.\n\nTo run, just call the `run` function.","ref":"Plausible.DataMigration.RewriteFunnelDupes.html","title":"Plausible.DataMigration.RewriteFunnelDupes","type":"module"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#apply_change/2","title":"Plausible.DataMigration.RewriteFunnelDupes.apply_change/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#confirm/3","title":"Plausible.DataMigration.RewriteFunnelDupes.confirm/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#execute/1","title":"Plausible.DataMigration.RewriteFunnelDupes.execute/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#run/1","title":"Plausible.DataMigration.RewriteFunnelDupes.run/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#run_sql/2","title":"Plausible.DataMigration.RewriteFunnelDupes.run_sql/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#run_sql_confirm/2","title":"Plausible.DataMigration.RewriteFunnelDupes.run_sql_confirm/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#to_db_ops/1","title":"Plausible.DataMigration.RewriteFunnelDupes.to_db_ops/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#to_map/1","title":"Plausible.DataMigration.RewriteFunnelDupes.to_map/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#translate_to_db_ops/1","title":"Plausible.DataMigration.RewriteFunnelDupes.translate_to_db_ops/1","type":"function"},{"doc":"Function execution context (with arguments) to Sentry reports.","ref":"Plausible.DebugReplayInfo.html","title":"Plausible.DebugReplayInfo","type":"module"},{"doc":"","ref":"Plausible.DebugReplayInfo.html#deserialize/1","title":"Plausible.DebugReplayInfo.deserialize/1","type":"function"},{"doc":"","ref":"Plausible.DebugReplayInfo.html#include_sentry_replay_info/0","title":"Plausible.DebugReplayInfo.include_sentry_replay_info/0","type":"macro"},{"doc":"Custom type for event name. Accepts Strings and Integers and stores them as String. Returns\n cast error if any other type is provided. Accepting integers is important for 404 tracking.","ref":"Plausible.Ecto.EventName.html","title":"Plausible.Ecto.EventName","type":"module"},{"doc":"","ref":"Plausible.Ecto.EventName.html#cast/1","title":"Plausible.Ecto.EventName.cast/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#dump/1","title":"Plausible.Ecto.EventName.dump/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#embed_as/1","title":"Plausible.Ecto.EventName.embed_as/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#equal?/2","title":"Plausible.Ecto.EventName.equal?/2","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#load/1","title":"Plausible.Ecto.EventName.load/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#type/0","title":"Plausible.Ecto.EventName.type/0","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html","title":"Plausible.Event.WriteBuffer","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Event.WriteBuffer.html#child_spec/1","title":"Plausible.Event.WriteBuffer.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#flush/0","title":"Plausible.Event.WriteBuffer.flush/0","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#init/1","title":"Plausible.Event.WriteBuffer.init/1","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#insert/1","title":"Plausible.Event.WriteBuffer.insert/1","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#start_link/1","title":"Plausible.Event.WriteBuffer.start_link/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html","title":"Plausible.Factory","type":"module"},{"doc":"","ref":"Plausible.Factory.html#api_key_factory/0","title":"Plausible.Factory.api_key_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#build/2","title":"Plausible.Factory.build/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#build_list/3","title":"Plausible.Factory.build_list/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#build_pair/2","title":"Plausible.Factory.build_pair/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#ch_session_factory/0","title":"Plausible.Factory.ch_session_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create/1","title":"Plausible.Factory.create/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create/2","title":"Plausible.Factory.create/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create_list/3","title":"Plausible.Factory.create_list/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create_pair/2","title":"Plausible.Factory.create_pair/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#custom_domain_factory/0","title":"Plausible.Factory.custom_domain_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#enterprise_plan_factory/0","title":"Plausible.Factory.enterprise_plan_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#event_factory/0","title":"Plausible.Factory.event_factory/0","type":"function"},{"doc":"Raises a helpful error if no factory is defined.","ref":"Plausible.Factory.html#factory/1","title":"Plausible.Factory.factory/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#goal_factory/0","title":"Plausible.Factory.goal_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#google_auth_factory/0","title":"Plausible.Factory.google_auth_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_browsers_factory/0","title":"Plausible.Factory.imported_browsers_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_devices_factory/0","title":"Plausible.Factory.imported_devices_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_entry_pages_factory/0","title":"Plausible.Factory.imported_entry_pages_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_exit_pages_factory/0","title":"Plausible.Factory.imported_exit_pages_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_locations_factory/0","title":"Plausible.Factory.imported_locations_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_operating_systems_factory/0","title":"Plausible.Factory.imported_operating_systems_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_pages_factory/0","title":"Plausible.Factory.imported_pages_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_sources_factory/0","title":"Plausible.Factory.imported_sources_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_visitors_factory/0","title":"Plausible.Factory.imported_visitors_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert/1","title":"Plausible.Factory.insert/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert/2","title":"Plausible.Factory.insert/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert/3","title":"Plausible.Factory.insert/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_list/3","title":"Plausible.Factory.insert_list/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_list/4","title":"Plausible.Factory.insert_list/4","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_pair/2","title":"Plausible.Factory.insert_pair/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_pair/3","title":"Plausible.Factory.insert_pair/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#invitation_factory/0","title":"Plausible.Factory.invitation_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#monthly_report_factory/0","title":"Plausible.Factory.monthly_report_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#pageview_factory/0","title":"Plausible.Factory.pageview_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#params_for/2","title":"Plausible.Factory.params_for/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#params_with_assocs/2","title":"Plausible.Factory.params_with_assocs/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#shared_link_factory/0","title":"Plausible.Factory.shared_link_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#site_factory/0","title":"Plausible.Factory.site_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#site_membership_factory/0","title":"Plausible.Factory.site_membership_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#spike_notification_factory/0","title":"Plausible.Factory.spike_notification_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#string_params_for/2","title":"Plausible.Factory.string_params_for/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#string_params_with_assocs/2","title":"Plausible.Factory.string_params_with_assocs/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#subscription_factory/0","title":"Plausible.Factory.subscription_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#user_factory/1","title":"Plausible.Factory.user_factory/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#weekly_report_factory/0","title":"Plausible.Factory.weekly_report_factory/0","type":"function"},{"doc":"A funnel is a marketing term used to capture and describe the journey\nthat users go through, from initial step to conversion.\nA funnel consists of several steps (here: 2..8).\n\nThis module defines the database schema for storing funnels\nand changeset helpers for enumerating the steps within.\n\nEach step references a goal (either a Custom Event or Visit)\n- see: `Plausible.Goal`.","ref":"Plausible.Funnel.html","title":"Plausible.Funnel","type":"module"},{"doc":"","ref":"Plausible.Funnel.html#changeset/2","title":"Plausible.Funnel.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Funnel.html#max_steps/0","title":"Plausible.Funnel.max_steps/0","type":"macro"},{"doc":"","ref":"Plausible.Funnel.html#min_steps/0","title":"Plausible.Funnel.min_steps/0","type":"macro"},{"doc":"","ref":"Plausible.Funnel.html#put_step_orders/1","title":"Plausible.Funnel.put_step_orders/1","type":"function"},{"doc":"","ref":"Plausible.Funnel.html#t:t/0","title":"Plausible.Funnel.t/0","type":"type"},{"doc":"This module defines the database schema for a single Funnel step.\nSee: `Plausible.Funnel` for more information.","ref":"Plausible.Funnel.Step.html","title":"Plausible.Funnel.Step","type":"module"},{"doc":"","ref":"Plausible.Funnel.Step.html#changeset/2","title":"Plausible.Funnel.Step.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Funnel.Step.html#t:t/0","title":"Plausible.Funnel.Step.t/0","type":"type"},{"doc":"This module implements contextual Funnel interface, allowing listing,\ncreating and deleting funnel definitions.\n\nFor brief explanation of what a Funnel is, please see `Plausible.Funnel` schema.\nSee `Plausible.Stats.Funnel` for the evaluation logic.","ref":"Plausible.Funnels.html","title":"Plausible.Funnels","type":"module"},{"doc":"","ref":"Plausible.Funnels.html#create/3","title":"Plausible.Funnels.create/3","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#create_changeset/3","title":"Plausible.Funnels.create_changeset/3","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#delete/2","title":"Plausible.Funnels.delete/2","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#ephemeral_definition/3","title":"Plausible.Funnels.ephemeral_definition/3","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#get/2","title":"Plausible.Funnels.get/2","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#list/1","title":"Plausible.Funnels.list/1","type":"function"},{"doc":"This module provides an API for fetching IP geolocation.","ref":"Plausible.Geo.html","title":"Plausible.Geo","type":"module"},{"doc":"Waits for the database to start after calling `load_db/1` with the async option.","ref":"Plausible.Geo.html#await_loader/0","title":"Plausible.Geo.await_loader/0","type":"function"},{"doc":"Returns geodatabase type.\n\nUsed for deciding whether to show the DB-IP disclaimer or not.","ref":"Plausible.Geo.html#database_type/0","title":"Plausible.Geo.database_type/0","type":"function"},{"doc":"In the case of a DB-IP database:\n\n iex> database_type()\n \"DBIP-City-Lite\"\n\n In the case of a MaxMind database:\n\n iex> database_type()\n \"GeoLite2-City\"","ref":"Plausible.Geo.html#database_type/0-examples","title":"Examples - Plausible.Geo.database_type/0","type":"function"},{"doc":"Starts the geodatabase loading process. Two modes are supported: local file\nand MaxMind license key.","ref":"Plausible.Geo.html#load_db/1","title":"Plausible.Geo.load_db/1","type":"function"},{"doc":"* `:path` - the path to the .mmdb database local file. When present,\n `:license_key` and `:edition` are not required.\n\n * `:license_key` - the [license key](https://support.maxmind.com/hc/en-us/articles/4407111582235-Generate-a-License-Key)\n from MaxMind to authenticate requests to MaxMind.\n\n * `:edition` - the name of the MaxMind database to be downloaded from MaxMind\n servers. Defaults to `GeoLite2-City`.\n\n * `:async` - when used, configures the database loading to run\n asynchronously.","ref":"Plausible.Geo.html#load_db/1-options","title":"Options - Plausible.Geo.load_db/1","type":"function"},{"doc":"Loading from a local file:\n\n iex> load_db(path: \"/etc/plausible/dbip-city.mmdb\")\n :ok\n\n Downloading a MaxMind DB (this license key is no longer active):\n\n iex> load_db(license_key: \"LNpsJCCKPis6XvBP\", edition: \"GeoLite2-City\", async: true)\n :ok","ref":"Plausible.Geo.html#load_db/1-examples","title":"Examples - Plausible.Geo.load_db/1","type":"function"},{"doc":"Looks up geo info about an IP address.","ref":"Plausible.Geo.html#lookup/1","title":"Plausible.Geo.lookup/1","type":"function"},{"doc":"iex> lookup(\"8.7.6.5\")\n %{\n \"city\" => %{\n \"geoname_id\" => 5349755,\n \"names\" => %{\n \"de\" => \"Fontana\",\n \"en\" => \"Fontana\",\n \"ja\" => \"フォンタナ\",\n \"ru\" => \"Фонтана\"\n }\n },\n \"continent\" => %{\n \"code\" => \"NA\",\n \"geoname_id\" => 6255149,\n \"names\" => %{\n \"de\" => \"Nordamerika\",\n \"en\" => \"North America\",\n \"es\" => \"Norteamérica\",\n \"fr\" => \"Amérique du Nord\",\n \"ja\" => \"北アメリカ\",\n \"pt-BR\" => \"América do Norte\",\n \"ru\" => \"Северная Америка\",\n \"zh-CN\" => \"北美洲\"\n }\n },\n \"country\" => %{\n \"geoname_id\" => 6252001,\n \"iso_code\" => \"US\",\n \"names\" => %{\n \"de\" => \"Vereinigte Staaten\",\n \"en\" => \"United States\",\n \"es\" => \"Estados Unidos\",\n \"fr\" => \"États Unis\",\n \"ja\" => \"アメリカ\",\n \"pt-BR\" => \"EUA\",\n \"ru\" => \"США\",\n \"zh-CN\" => \"美国\"\n }\n },\n \"location\" => %{\n \"accuracy_radius\" => 50,\n \"latitude\" => 34.1211,\n \"longitude\" => -117.4362,\n \"metro_code\" => 803,\n \"time_zone\" => \"America/Los_Angeles\"\n },\n \"postal\" => %{\"code\" => \"92336\"},\n \"registered_country\" => %{\n \"geoname_id\" => 6252001,\n \"iso_code\" => \"US\",\n \"names\" => %{\n \"de\" => \"Vereinigte Staaten\",\n \"en\" => \"United States\",\n \"es\" => \"Estados Unidos\",\n \"fr\" => \"États Unis\",\n \"ja\" => \"アメリカ\",\n \"pt-BR\" => \"EUA\",\n \"ru\" => \"США\",\n \"zh-CN\" => \"美国\"\n }\n },\n \"subdivisions\" => [\n %{\n \"geoname_id\" => 5332921,\n \"iso_code\" => \"CA\",\n \"names\" => %{\n \"de\" => \"Kalifornien\",\n \"en\" => \"California\",\n \"es\" => \"California\",\n \"fr\" => \"Californie\",\n \"ja\" => \"カリフォルニア州\",\n \"pt-BR\" => \"Califórnia\",\n \"ru\" => \"Калифорния\",\n \"zh-CN\" => \"加州\"\n }\n }\n ]\n }","ref":"Plausible.Geo.html#lookup/1-examples","title":"Examples - Plausible.Geo.lookup/1","type":"function"},{"doc":"","ref":"Plausible.Goal.html","title":"Plausible.Goal","type":"module"},{"doc":"","ref":"Plausible.Goal.html#changeset/2","title":"Plausible.Goal.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Goal.html#currency_options/0","title":"Plausible.Goal.currency_options/0","type":"function"},{"doc":"","ref":"Plausible.Goal.html#revenue?/1","title":"Plausible.Goal.revenue?/1","type":"function"},{"doc":"","ref":"Plausible.Goal.html#valid_currencies/0","title":"Plausible.Goal.valid_currencies/0","type":"function"},{"doc":"","ref":"Plausible.Goal.html#t:t/0","title":"Plausible.Goal.t/0","type":"type"},{"doc":"","ref":"Plausible.Goals.html","title":"Plausible.Goals","type":"module"},{"doc":"","ref":"Plausible.Goals.html#count/1","title":"Plausible.Goals.count/1","type":"function"},{"doc":"Creates a Goal for a site.\n\nIf the created goal is a revenue goal, it sets site.updated_at to be\nrefreshed by the sites cache, as revenue goals are used during ingestion.","ref":"Plausible.Goals.html#create/3","title":"Plausible.Goals.create/3","type":"function"},{"doc":"If a goal belongs to funnel(s), we need to inspect their number of steps.\n\nIf it exceeds the minimum allowed (defined via `Plausible.Funnel.min_steps/0`),\nthe funnel will be reduced (i.e. a step associated with the goal to be deleted\nis removed), so that the minimum number of steps is preserved. This is done\nimplicitly, by postgres, as per on_delete: :delete_all.\n\nOtherwise, for associated funnel(s) consisting of minimum number steps only,\nfunnel record(s) are removed completely along with the targeted goal.","ref":"Plausible.Goals.html#delete/2","title":"Plausible.Goals.delete/2","type":"function"},{"doc":"","ref":"Plausible.Goals.html#find_or_create/2","title":"Plausible.Goals.find_or_create/2","type":"function"},{"doc":"","ref":"Plausible.Goals.html#for_site/2","title":"Plausible.Goals.for_site/2","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html","title":"Plausible.Google.Api","type":"module"},{"doc":"","ref":"Plausible.Google.Api.html#fetch_and_persist/3","title":"Plausible.Google.Api.fetch_and_persist/3","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#fetch_stats/3","title":"Plausible.Google.Api.fetch_stats/3","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#fetch_verified_properties/1","title":"Plausible.Google.Api.fetch_verified_properties/1","type":"function"},{"doc":"Returns a single Google Analytics view if the user has access to it.","ref":"Plausible.Google.Api.html#get_view/2","title":"Plausible.Google.Api.get_view/2","type":"function"},{"doc":"Imports stats from a Google Analytics UA view to a Plausible site.\n\nThis function fetches Google Analytics reports in batches of 7500 per\nrequest. The batches are then buffered to Clickhouse by the\n`Plausible.Google.Buffer` process.\n\nRequests to Google Analytics can fail, and are retried at most\n5 times with an exponential backoff. Returns `:ok` when\nimporting has finished or `{:error, term()}` when a request to GA failed too \nmany times.\n\nUseful links:\n\n- [Feature documentation](https://plausible.io/docs/google-analytics-import)\n- [GA API reference](https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#ReportRequest)\n- [GA Dimensions reference](https://ga-dev-tools.web.app/dimensions-metrics-explorer)","ref":"Plausible.Google.Api.html#import_analytics/4","title":"Plausible.Google.Api.import_analytics/4","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#import_authorize_url/2","title":"Plausible.Google.Api.import_authorize_url/2","type":"function"},{"doc":"Lists Google Analytics views grouped by hostname.","ref":"Plausible.Google.Api.html#list_views/1","title":"Plausible.Google.Api.list_views/1","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#search_console_authorize_url/2","title":"Plausible.Google.Api.search_console_authorize_url/2","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#t:google_analytics_view/0","title":"Plausible.Google.Api.google_analytics_view/0","type":"type"},{"doc":"","ref":"Plausible.Google.Api.html#t:import_auth/0","title":"Plausible.Google.Api.import_auth/0","type":"type"},{"doc":"","ref":"Plausible.Google.Api.Mock.html","title":"Plausible.Google.Api.Mock","type":"module"},{"doc":"","ref":"Plausible.Google.Api.Mock.html#fetch_stats/3","title":"Plausible.Google.Api.Mock.fetch_stats/3","type":"function"},{"doc":"This GenServer inserts records into Clickhouse `imported_*` tables. Multiple buffers are\nautomatically created for each table. Records are flushed when the table buffer reaches the\nmaximum size, defined by `max_buffer_size/0`.","ref":"Plausible.Google.Buffer.html","title":"Plausible.Google.Buffer","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Google.Buffer.html#child_spec/1","title":"Plausible.Google.Buffer.child_spec/1","type":"function"},{"doc":"Flushes all table buffers to Clickhouse.","ref":"Plausible.Google.Buffer.html#flush/2","title":"Plausible.Google.Buffer.flush/2","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#handle_continue/2","title":"Plausible.Google.Buffer.handle_continue/2","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#init/1","title":"Plausible.Google.Buffer.init/1","type":"function"},{"doc":"Puts the given records into the table buffer.","ref":"Plausible.Google.Buffer.html#insert_many/3","title":"Plausible.Google.Buffer.insert_many/3","type":"function"},{"doc":"Returns the total count of items in the given table buffer.","ref":"Plausible.Google.Buffer.html#size/2","title":"Plausible.Google.Buffer.size/2","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#start_link/0","title":"Plausible.Google.Buffer.start_link/0","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#stop/1","title":"Plausible.Google.Buffer.stop/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html","title":"Plausible.Google.HTTP","type":"module"},{"doc":"","ref":"Plausible.Google.HTTP.html#fetch_access_token/1","title":"Plausible.Google.HTTP.fetch_access_token/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#get_analytics_start_date/2","title":"Plausible.Google.HTTP.get_analytics_start_date/2","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#get_report/1","title":"Plausible.Google.HTTP.get_report/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#list_sites/1","title":"Plausible.Google.HTTP.list_sites/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#list_stats/5","title":"Plausible.Google.HTTP.list_stats/5","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#list_views_for_user/1","title":"Plausible.Google.HTTP.list_views_for_user/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#refresh_auth_token/1","title":"Plausible.Google.HTTP.refresh_auth_token/1","type":"function"},{"doc":"","ref":"Plausible.Google.ReportRequest.html","title":"Plausible.Google.ReportRequest","type":"module"},{"doc":"","ref":"Plausible.Google.ReportRequest.html#full_report/0","title":"Plausible.Google.ReportRequest.full_report/0","type":"function"},{"doc":"","ref":"Plausible.Google.ReportRequest.html#t:t/0","title":"Plausible.Google.ReportRequest.t/0","type":"type"},{"doc":"HTTP Client built on top of Finch.\n\nBy default, request parameters are json-encoded.\n\nIf a raw binary value is supplied, no encoding is performed.\nIf x-www-form-urlencoded content-type is set in headers,\nURL encoding is invoked.","ref":"Plausible.HTTPClient.html","title":"Plausible.HTTPClient","type":"module"},{"doc":"Make a GET request","ref":"Plausible.HTTPClient.html#get/2","title":"Plausible.HTTPClient.get/2","type":"function"},{"doc":"","ref":"Plausible.HTTPClient.html#impl/0","title":"Plausible.HTTPClient.impl/0","type":"function"},{"doc":"Make a POST request","ref":"Plausible.HTTPClient.html#post/4","title":"Plausible.HTTPClient.post/4","type":"function"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html","title":"Plausible.HTTPClient.Interface","type":"behaviour"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:get/1","title":"Plausible.HTTPClient.Interface.get/1","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:get/2","title":"Plausible.HTTPClient.Interface.get/2","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:post/3","title":"Plausible.HTTPClient.Interface.post/3","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:post/4","title":"Plausible.HTTPClient.Interface.post/4","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:finch_request_opts/0","title":"Plausible.HTTPClient.Interface.finch_request_opts/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:headers/0","title":"Plausible.HTTPClient.Interface.headers/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:params/0","title":"Plausible.HTTPClient.Interface.params/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:response/0","title":"Plausible.HTTPClient.Interface.response/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:url/0","title":"Plausible.HTTPClient.Interface.url/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Non200Error.html","title":"Plausible.HTTPClient.Non200Error","type":"module"},{"doc":"","ref":"Plausible.HTTPClient.Non200Error.html#new/1","title":"Plausible.HTTPClient.Non200Error.new/1","type":"function"},{"doc":"","ref":"Plausible.HTTPClient.Non200Error.html#t:t/0","title":"Plausible.HTTPClient.Non200Error.t/0","type":"type"},{"doc":"A dedicated repo for import related mutations","ref":"Plausible.ImportDeletionRepo.html","title":"Plausible.ImportDeletionRepo","type":"module"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#aggregate/3","title":"Plausible.ImportDeletionRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#aggregate/4","title":"Plausible.ImportDeletionRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#all/2","title":"Plausible.ImportDeletionRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#checked_out?/0","title":"Plausible.ImportDeletionRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#checkout/2","title":"Plausible.ImportDeletionRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#child_spec/1","title":"Plausible.ImportDeletionRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#config/0","title":"Plausible.ImportDeletionRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#default_options/1","title":"Plausible.ImportDeletionRepo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#delete/2","title":"Plausible.ImportDeletionRepo.delete/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#delete!/2","title":"Plausible.ImportDeletionRepo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#delete_all/2","title":"Plausible.ImportDeletionRepo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.ImportDeletionRepo.html#disconnect_all/2","title":"Plausible.ImportDeletionRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#exists?/2","title":"Plausible.ImportDeletionRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get/3","title":"Plausible.ImportDeletionRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get!/3","title":"Plausible.ImportDeletionRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get_by/3","title":"Plausible.ImportDeletionRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get_by!/3","title":"Plausible.ImportDeletionRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get_dynamic_repo/0","title":"Plausible.ImportDeletionRepo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert/2","title":"Plausible.ImportDeletionRepo.insert/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert!/2","title":"Plausible.ImportDeletionRepo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert_all/3","title":"Plausible.ImportDeletionRepo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert_or_update/2","title":"Plausible.ImportDeletionRepo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert_or_update!/2","title":"Plausible.ImportDeletionRepo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.ImportDeletionRepo.html#insert_stream/3","title":"Plausible.ImportDeletionRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#load/2","title":"Plausible.ImportDeletionRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#one/2","title":"Plausible.ImportDeletionRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#one!/2","title":"Plausible.ImportDeletionRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#preload/3","title":"Plausible.ImportDeletionRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#prepare_query/3","title":"Plausible.ImportDeletionRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#put_dynamic_repo/1","title":"Plausible.ImportDeletionRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.ImportDeletionRepo.html#query/3","title":"Plausible.ImportDeletionRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.ImportDeletionRepo.html#query!/3","title":"Plausible.ImportDeletionRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#reload/2","title":"Plausible.ImportDeletionRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#reload!/2","title":"Plausible.ImportDeletionRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#start_link/1","title":"Plausible.ImportDeletionRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#stop/1","title":"Plausible.ImportDeletionRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#stream/2","title":"Plausible.ImportDeletionRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.ImportDeletionRepo.html#to_sql/2","title":"Plausible.ImportDeletionRepo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#update/2","title":"Plausible.ImportDeletionRepo.update/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#update!/2","title":"Plausible.ImportDeletionRepo.update!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#update_all/3","title":"Plausible.ImportDeletionRepo.update_all/3","type":"function"},{"doc":"","ref":"Plausible.Imported.html","title":"Plausible.Imported","type":"module"},{"doc":"","ref":"Plausible.Imported.html#forget/1","title":"Plausible.Imported.forget/1","type":"function"},{"doc":"","ref":"Plausible.Imported.html#from_google_analytics/3","title":"Plausible.Imported.from_google_analytics/3","type":"function"},{"doc":"","ref":"Plausible.Imported.html#tables/0","title":"Plausible.Imported.tables/0","type":"function"},{"doc":"Write-centric Clickhouse access interface","ref":"Plausible.IngestRepo.html","title":"Plausible.IngestRepo","type":"module"},{"doc":"","ref":"Plausible.IngestRepo.html#aggregate/3","title":"Plausible.IngestRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#aggregate/4","title":"Plausible.IngestRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#all/2","title":"Plausible.IngestRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#checked_out?/0","title":"Plausible.IngestRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#checkout/2","title":"Plausible.IngestRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#child_spec/1","title":"Plausible.IngestRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#config/0","title":"Plausible.IngestRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#default_options/1","title":"Plausible.IngestRepo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#delete/2","title":"Plausible.IngestRepo.delete/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#delete!/2","title":"Plausible.IngestRepo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#delete_all/2","title":"Plausible.IngestRepo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.IngestRepo.html#disconnect_all/2","title":"Plausible.IngestRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#exists?/2","title":"Plausible.IngestRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get/3","title":"Plausible.IngestRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get!/3","title":"Plausible.IngestRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get_by/3","title":"Plausible.IngestRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get_by!/3","title":"Plausible.IngestRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get_dynamic_repo/0","title":"Plausible.IngestRepo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert/2","title":"Plausible.IngestRepo.insert/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert!/2","title":"Plausible.IngestRepo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert_all/3","title":"Plausible.IngestRepo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert_or_update/2","title":"Plausible.IngestRepo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert_or_update!/2","title":"Plausible.IngestRepo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.IngestRepo.html#insert_stream/3","title":"Plausible.IngestRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#load/2","title":"Plausible.IngestRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#one/2","title":"Plausible.IngestRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#one!/2","title":"Plausible.IngestRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#preload/3","title":"Plausible.IngestRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#prepare_query/3","title":"Plausible.IngestRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#put_dynamic_repo/1","title":"Plausible.IngestRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.IngestRepo.html#query/3","title":"Plausible.IngestRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.IngestRepo.html#query!/3","title":"Plausible.IngestRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#reload/2","title":"Plausible.IngestRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#reload!/2","title":"Plausible.IngestRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#start_link/1","title":"Plausible.IngestRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#stop/1","title":"Plausible.IngestRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#stream/2","title":"Plausible.IngestRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.IngestRepo.html#to_sql/2","title":"Plausible.IngestRepo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#update/2","title":"Plausible.IngestRepo.update/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#update!/2","title":"Plausible.IngestRepo.update!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#update_all/3","title":"Plausible.IngestRepo.update_all/3","type":"function"},{"doc":"This is instrumentation necessary for keeping track of per-domain\ninternal metrics. Due to metric labels cardinality (domain x metric_name),\nthese statistics are not suitable for prometheus/grafana exposure,\nhence an internal storage is used.\n\nThe module installs `Counters.TelemetryHandler` and periodically\nflushes the internal counter aggregates via `Counters.Buffer` interface.\n\nThe underlying database schema is running `SummingMergeTree` engine.\nTo take advantage of automatic roll-ups it provides, upon dispatching the\nbuffered records to Clickhouse this module transforms each `event_timebucket`\naggregate into a 1-minute resolution.\n\nClickhouse connection is set to insert counters asynchronously every time\na pool checkout is made. Those properties are reverted once the insert is done\n(or naturally, if the connection crashes).","ref":"Plausible.Ingestion.Counters.html","title":"Plausible.Ingestion.Counters","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.html#child_spec/1","title":"Plausible.Ingestion.Counters.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.html#enabled?/0","title":"Plausible.Ingestion.Counters.enabled?/0","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.html#stop/1","title":"Plausible.Ingestion.Counters.stop/1","type":"function"},{"doc":"A buffer aggregating counters for internal metrics, within 10 seconds time buckets.\n\nSee `Plausible.Ingestion.Counters` for integration.\n\nFlushing is by default possible only once the 10s bucket is complete\n(its window has moved). This is to avoid race conditions \nwhen clearing up the buffer on dequeue - because there is no atomic \"get and delete\",\nand items are buffered concurrently, there is a gap between get and delete\nin which items written may disappear otherwise.\n\n`aggregate_bucket_fn` and `flush_boundary_fn` control that semantics and\nare configurable only for test purposes.","ref":"Plausible.Ingestion.Counters.Buffer.html","title":"Plausible.Ingestion.Counters.Buffer","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#aggregate/4","title":"Plausible.Ingestion.Counters.Buffer.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#bucket_10s/1","title":"Plausible.Ingestion.Counters.Buffer.bucket_10s/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#flush/2","title":"Plausible.Ingestion.Counters.Buffer.flush/2","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#new/2","title":"Plausible.Ingestion.Counters.Buffer.new/2","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#previous_10s/1","title":"Plausible.Ingestion.Counters.Buffer.previous_10s/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#t:bucket_fn_opt/0","title":"Plausible.Ingestion.Counters.Buffer.bucket_fn_opt/0","type":"type"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#t:t/0","title":"Plausible.Ingestion.Counters.Buffer.t/0","type":"type"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#t:unix_timestamp/0","title":"Plausible.Ingestion.Counters.Buffer.unix_timestamp/0","type":"type"},{"doc":"Clickhouse schema for storing ingest counter metrics","ref":"Plausible.Ingestion.Counters.Record.html","title":"Plausible.Ingestion.Counters.Record","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.Record.html#t:t/0","title":"Plausible.Ingestion.Counters.Record.t/0","type":"type"},{"doc":"Susbcribes to telemetry events emitted by `Plausible.Ingestion.Event`.\nEvery time a request derived event is either dispatched to clickhouse or dropped,\na telemetry event is emitted respectively. That event is captured here,\nits metadata is extracted and sent for internal stats aggregation via\n`Counters.Buffer` interface.","ref":"Plausible.Ingestion.Counters.TelemetryHandler.html","title":"Plausible.Ingestion.Counters.TelemetryHandler","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.TelemetryHandler.html#handle_event/4","title":"Plausible.Ingestion.Counters.TelemetryHandler.handle_event/4","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.TelemetryHandler.html#install/1","title":"Plausible.Ingestion.Counters.TelemetryHandler.install/1","type":"function"},{"doc":"This module exposes the `build_and_buffer/1` function capable of\nturning %Plausible.Ingestion.Request{} into a series of events that in turn\nare uniformly either buffered in batches (to Clickhouse) or dropped\n(e.g. due to spam blocklist) from the processing pipeline.","ref":"Plausible.Ingestion.Event.html","title":"Plausible.Ingestion.Event","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Event.html#build_and_buffer/1","title":"Plausible.Ingestion.Event.build_and_buffer/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#emit_telemetry_buffered/1","title":"Plausible.Ingestion.Event.emit_telemetry_buffered/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#emit_telemetry_dropped/2","title":"Plausible.Ingestion.Event.emit_telemetry_dropped/2","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#telemetry_event_buffered/0","title":"Plausible.Ingestion.Event.telemetry_event_buffered/0","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#telemetry_event_dropped/0","title":"Plausible.Ingestion.Event.telemetry_event_dropped/0","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#t:drop_reason/0","title":"Plausible.Ingestion.Event.drop_reason/0","type":"type"},{"doc":"","ref":"Plausible.Ingestion.Event.html#t:t/0","title":"Plausible.Ingestion.Event.t/0","type":"type"},{"doc":"The %Plausible.Ingestion.Request{} struct stores all needed fields\nto create an event downstream. Pre-eliminary validation is made\nto detect user errors early.","ref":"Plausible.Ingestion.Request.html","title":"Plausible.Ingestion.Request","type":"module"},{"doc":"Builds and initially validates %Plausible.Ingestion.Request{} struct from %Plug.Conn{}.","ref":"Plausible.Ingestion.Request.html#build/2","title":"Plausible.Ingestion.Request.build/2","type":"function"},{"doc":"Removes the \"www\" part of a hostname.","ref":"Plausible.Ingestion.Request.html#sanitize_hostname/1","title":"Plausible.Ingestion.Request.sanitize_hostname/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Request.html#t:t/0","title":"Plausible.Ingestion.Request.t/0","type":"type"},{"doc":"","ref":"Plausible.Mailer.html","title":"Plausible.Mailer","type":"module"},{"doc":"","ref":"Plausible.Mailer.html#deliver/1","title":"Plausible.Mailer.deliver/1","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_later/2","title":"Plausible.Mailer.deliver_later/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_later!/2","title":"Plausible.Mailer.deliver_later!/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_now/2","title":"Plausible.Mailer.deliver_now/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_now!/2","title":"Plausible.Mailer.deliver_now!/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#send/1","title":"Plausible.Mailer.send/1","type":"function"},{"doc":"[Custom OpenTelemetry sampler](https://hexdocs.pm/opentelemetry/readme.html#samplers)\nimplementation that ignores particular traces to reduce noise. Ingestion\nHTTP requests and queries to Oban tables are ignored, for example.","ref":"Plausible.OpenTelemetry.Sampler.html","title":"Plausible.OpenTelemetry.Sampler","type":"module"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html","title":"Plausible.PaddleApi.Mock","type":"module"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html#get_invoices/1","title":"Plausible.PaddleApi.Mock.get_invoices/1","type":"function"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html#get_subscription/1","title":"Plausible.PaddleApi.Mock.get_subscription/1","type":"function"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html#update_subscription/2","title":"Plausible.PaddleApi.Mock.update_subscription/2","type":"function"},{"doc":"Ecto schema for Plugins API Tokens.\nTokens are stored hashed and require a description.\n\nTokens are considered secret, although the Plugins API\nby nature will expose very little, if any, destructive/insecure operations.\n\nThe raw token version is meant to be presented to the user upon creation.\nIt is prefixed with a plain text identifier allowing source scanning\nfor leaked secrets.","ref":"Plausible.Plugins.API.Token.html","title":"Plausible.Plugins.API.Token","type":"module"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#generate/1","title":"Plausible.Plugins.API.Token.generate/1","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#hash/1","title":"Plausible.Plugins.API.Token.hash/1","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#insert_changeset/3","title":"Plausible.Plugins.API.Token.insert_changeset/3","type":"function"},{"doc":"Raw tokens are prefixed so that tools like\nhttps://docs.github.com/en/code-security/secret-scanning/about-secret-scanning\ncan scan repositories for accidental secret commits.","ref":"Plausible.Plugins.API.Token.html#prefix/0","title":"Plausible.Plugins.API.Token.prefix/0","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#t:t/0","title":"Plausible.Plugins.API.Token.t/0","type":"type"},{"doc":"Context module for Plugins API Tokens.\nExposes high-level operation for token-based authentication flows.","ref":"Plausible.Plugins.API.Tokens.html","title":"Plausible.Plugins.API.Tokens","type":"module"},{"doc":"","ref":"Plausible.Plugins.API.Tokens.html#create/2","title":"Plausible.Plugins.API.Tokens.create/2","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Tokens.html#find/2","title":"Plausible.Plugins.API.Tokens.find/2","type":"function"},{"doc":"","ref":"Plausible.PromEx.html","title":"Plausible.PromEx","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.PromEx.html#child_spec/1","title":"Plausible.PromEx.child_spec/1","type":"function"},{"doc":"Custom PromEx plugin for instrumenting code within Plausible app.","ref":"Plausible.PromEx.Plugins.PlausibleMetrics.html","title":"Plausible.PromEx.Plugins.PlausibleMetrics","type":"module"},{"doc":"Add telemetry events for Cachex user agents and sessions","ref":"Plausible.PromEx.Plugins.PlausibleMetrics.html#execute_cache_metrics/0","title":"Plausible.PromEx.Plugins.PlausibleMetrics.execute_cache_metrics/0","type":"function"},{"doc":"Add telemetry events for Session and Event write buffers","ref":"Plausible.PromEx.Plugins.PlausibleMetrics.html#execute_write_buffer_metrics/0","title":"Plausible.PromEx.Plugins.PlausibleMetrics.execute_write_buffer_metrics/0","type":"function"},{"doc":"Context module for handling custom event props.","ref":"Plausible.Props.html","title":"Plausible.Props","type":"module"},{"doc":"Allows a prop key or a list of props keys to be included in ClickHouse\nqueries. Allowing prop keys does not affect ingestion, as we don't want any\ndata to be dropped or lost.","ref":"Plausible.Props.html#allow/2","title":"Plausible.Props.allow/2","type":"function"},{"doc":"","ref":"Plausible.Props.html#allow_changeset/2","title":"Plausible.Props.allow_changeset/2","type":"function"},{"doc":"Allows the 300 most frequent props keys for a specific site over\nthe past 6 months.","ref":"Plausible.Props.html#allow_existing_props/1","title":"Plausible.Props.allow_existing_props/1","type":"function"},{"doc":"Returns whether the site has configured custom props or not.","ref":"Plausible.Props.html#configured?/1","title":"Plausible.Props.configured?/1","type":"function"},{"doc":"Removes a previously allowed prop key from the allow list. This means this\nprop key won't be included in ClickHouse queries. This doesn't drop any\nClickHouse data, nor affects ingestion.","ref":"Plausible.Props.html#disallow/2","title":"Plausible.Props.disallow/2","type":"function"},{"doc":"Lists prop keys used internally.\n\nThese props should be allowed by default, and should not be displayed in the\nprops settings page. For example, `url` is a special prop key used for file\ndownloads and outbound links. It doesn't make sense to remove this prop key\nfrom the allow list, or to suggest users to add this prop key.","ref":"Plausible.Props.html#internal_keys/0","title":"Plausible.Props.internal_keys/0","type":"function"},{"doc":"","ref":"Plausible.Props.html#max_prop_key_length/0","title":"Plausible.Props.max_prop_key_length/0","type":"function"},{"doc":"","ref":"Plausible.Props.html#max_prop_value_length/0","title":"Plausible.Props.max_prop_value_length/0","type":"function"},{"doc":"","ref":"Plausible.Props.html#max_props/0","title":"Plausible.Props.max_props/0","type":"function"},{"doc":"Queries the events table to fetch the 300 most frequent prop keys\nfor a specific site over the past 6 months, excluding keys that are already\nallowed.","ref":"Plausible.Props.html#suggest_keys_to_allow/2","title":"Plausible.Props.suggest_keys_to_allow/2","type":"function"},{"doc":"","ref":"Plausible.Props.html#t:prop/0","title":"Plausible.Props.prop/0","type":"type"},{"doc":"Deletes data from a site.\n\nStats are stored on Clickhouse, and unlike other databases data deletion is\ndone asynchronously.\n\n- [Clickhouse `ALTER TABLE ... DELETE` Statement](https://clickhouse.com/docs/en/sql-reference/statements/alter/delete)\n- [Synchronicity of `ALTER` Queries](https://clickhouse.com/docs/en/sql-reference/statements/alter/#synchronicity-of-alter-queries)","ref":"Plausible.Purge.html","title":"Plausible.Purge","type":"module"},{"doc":"Deletes imported stats from Google Analytics, and clears the\n`stats_start_date` field.","ref":"Plausible.Purge.html#delete_imported_stats!/1","title":"Plausible.Purge.delete_imported_stats!/1","type":"function"},{"doc":"Move stats pointers so that no historical stats are available.","ref":"Plausible.Purge.html#delete_native_stats!/1","title":"Plausible.Purge.delete_native_stats!/1","type":"function"},{"doc":"","ref":"Plausible.Purge.html#reset!/1","title":"Plausible.Purge.reset!/1","type":"function"},{"doc":"","ref":"Plausible.Release.html","title":"Plausible.Release","type":"module"},{"doc":"","ref":"Plausible.Release.html#configure_ref_inspector/0","title":"Plausible.Release.configure_ref_inspector/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#configure_ua_inspector/0","title":"Plausible.Release.configure_ua_inspector/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#createdb/0","title":"Plausible.Release.createdb/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#migrate/0","title":"Plausible.Release.migrate/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#rollback/0","title":"Plausible.Release.rollback/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#seed/0","title":"Plausible.Release.seed/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#selfhost?/0","title":"Plausible.Release.selfhost?/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#should_be_first_launch?/0","title":"Plausible.Release.should_be_first_launch?/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html","title":"Plausible.Repo","type":"module"},{"doc":"","ref":"Plausible.Repo.html#aggregate/3","title":"Plausible.Repo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#aggregate/4","title":"Plausible.Repo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.Repo.html#all/2","title":"Plausible.Repo.all/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#checked_out?/0","title":"Plausible.Repo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#checkout/2","title":"Plausible.Repo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#child_spec/1","title":"Plausible.Repo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#config/0","title":"Plausible.Repo.config/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#default_options/1","title":"Plausible.Repo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#delete/2","title":"Plausible.Repo.delete/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#delete!/2","title":"Plausible.Repo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#delete_all/2","title":"Plausible.Repo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.Repo.html#disconnect_all/2","title":"Plausible.Repo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#exists?/2","title":"Plausible.Repo.exists?/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes an EXPLAIN statement or similar\ndepending on the adapter to obtain statistics for the given query.\n\nSee `Ecto.Adapters.SQL.explain/4` for more information.","ref":"Plausible.Repo.html#explain/3","title":"Plausible.Repo.explain/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get/3","title":"Plausible.Repo.get/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get!/3","title":"Plausible.Repo.get!/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get_by/3","title":"Plausible.Repo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get_by!/3","title":"Plausible.Repo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get_dynamic_repo/0","title":"Plausible.Repo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#in_transaction?/0","title":"Plausible.Repo.in_transaction?/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert/2","title":"Plausible.Repo.insert/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert!/2","title":"Plausible.Repo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert_all/3","title":"Plausible.Repo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert_or_update/2","title":"Plausible.Repo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert_or_update!/2","title":"Plausible.Repo.insert_or_update!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#load/2","title":"Plausible.Repo.load/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#one/2","title":"Plausible.Repo.one/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#one!/2","title":"Plausible.Repo.one!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#paginate/3","title":"Plausible.Repo.paginate/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#preload/3","title":"Plausible.Repo.preload/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#prepare_query/3","title":"Plausible.Repo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#put_dynamic_repo/1","title":"Plausible.Repo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.Repo.html#query/3","title":"Plausible.Repo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.Repo.html#query!/3","title":"Plausible.Repo.query!/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given multi-result query.\n\nSee `Ecto.Adapters.SQL.query_many/4` for more information.","ref":"Plausible.Repo.html#query_many/3","title":"Plausible.Repo.query_many/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given multi-result query.\n\nSee `Ecto.Adapters.SQL.query_many!/4` for more information.","ref":"Plausible.Repo.html#query_many!/3","title":"Plausible.Repo.query_many!/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#reload/2","title":"Plausible.Repo.reload/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#reload!/2","title":"Plausible.Repo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#rollback/1","title":"Plausible.Repo.rollback/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#start_link/1","title":"Plausible.Repo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#stop/1","title":"Plausible.Repo.stop/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#stream/2","title":"Plausible.Repo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.Repo.html#to_sql/2","title":"Plausible.Repo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#transaction/2","title":"Plausible.Repo.transaction/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#update/2","title":"Plausible.Repo.update/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#update!/2","title":"Plausible.Repo.update!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#update_all/3","title":"Plausible.Repo.update_all/3","type":"function"},{"doc":"","ref":"Plausible.Sentry.Client.html","title":"Plausible.Sentry.Client","type":"module"},{"doc":"The Sentry.HTTPClient behaviour requires a child spec to be supplied.\nIn this case we don't want Sentry to manage our Finch instances, hence it's fed\nwith a dummy module for the sake of the contract.\n\nXXX: Submit a Sentry PR making the child spec callback optional.","ref":"Plausible.Sentry.Client.html#child_spec/0","title":"Plausible.Sentry.Client.child_spec/0","type":"function"},{"doc":"","ref":"Plausible.Sentry.Client.html#post/3","title":"Plausible.Sentry.Client.post/3","type":"function"},{"doc":"Sentry callbacks for filtering and grouping events","ref":"Plausible.SentryFilter.html","title":"Plausible.SentryFilter","type":"module"},{"doc":"","ref":"Plausible.SentryFilter.html#before_send/1","title":"Plausible.SentryFilter.before_send/1","type":"function"},{"doc":"","ref":"Plausible.SentryFilter.html#exclude_exception?/2","title":"Plausible.SentryFilter.exclude_exception?/2","type":"function"},{"doc":"","ref":"Plausible.Session.CacheStore.html","title":"Plausible.Session.CacheStore","type":"module"},{"doc":"","ref":"Plausible.Session.CacheStore.html#on_event/3","title":"Plausible.Session.CacheStore.on_event/3","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html","title":"Plausible.Session.Salts","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Session.Salts.html#child_spec/1","title":"Plausible.Session.Salts.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html#fetch/0","title":"Plausible.Session.Salts.fetch/0","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html#rotate/0","title":"Plausible.Session.Salts.rotate/0","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html#start_link/1","title":"Plausible.Session.Salts.start_link/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html","title":"Plausible.Session.WriteBuffer","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Session.WriteBuffer.html#child_spec/1","title":"Plausible.Session.WriteBuffer.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#flush/0","title":"Plausible.Session.WriteBuffer.flush/0","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#init/1","title":"Plausible.Session.WriteBuffer.init/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#insert/1","title":"Plausible.Session.WriteBuffer.insert/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#start_link/1","title":"Plausible.Session.WriteBuffer.start_link/1","type":"function"},{"doc":"Site schema","ref":"Plausible.Site.html","title":"Plausible.Site","type":"module"},{"doc":"","ref":"Plausible.Site.html#changeset/2","title":"Plausible.Site.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#crm_changeset/2","title":"Plausible.Site.crm_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#feature_toggle_change/3","title":"Plausible.Site.feature_toggle_change/3","type":"function"},{"doc":"","ref":"Plausible.Site.html#import_failure/1","title":"Plausible.Site.import_failure/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#import_success/1","title":"Plausible.Site.import_success/1","type":"function"},{"doc":"Returns the date of the first recorded stat in the timezone configured by the user.\nThis function does 2 transformations:\n UTC %NaiveDateTime{} -> Local %DateTime{} -> Local %Date","ref":"Plausible.Site.html#local_start_date/1","title":"Plausible.Site.local_start_date/1","type":"function"},{"doc":"iex> Plausible.Site.local_start_date(%Plausible.Site{stats_start_date: nil})\n nil\n\n iex> utc_start = ~N[2022-09-28 00:00:00]\n iex> tz = \"Europe/Helsinki\"\n iex> site = %Plausible.Site{stats_start_date: utc_start, timezone: tz}\n iex> Plausible.Site.local_start_date(site)\n ~D[2022-09-28]\n\n iex> utc_start = ~N[2022-09-28 00:00:00]\n iex> tz = \"America/Los_Angeles\"\n iex> site = %Plausible.Site{stats_start_date: utc_start, timezone: tz}\n iex> Plausible.Site.local_start_date(site)\n ~D[2022-09-27]","ref":"Plausible.Site.html#local_start_date/1-examples","title":"Examples - Plausible.Site.local_start_date/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#make_private/1","title":"Plausible.Site.make_private/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#make_public/1","title":"Plausible.Site.make_public/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#remove_imported_data/1","title":"Plausible.Site.remove_imported_data/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#set_imported_source/2","title":"Plausible.Site.set_imported_source/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#set_native_stats_start_at/2","title":"Plausible.Site.set_native_stats_start_at/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#set_stats_start_date/2","title":"Plausible.Site.set_stats_start_date/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#start_import/5","title":"Plausible.Site.start_import/5","type":"function"},{"doc":"","ref":"Plausible.Site.html#tz_offset/2","title":"Plausible.Site.tz_offset/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#update_changeset/3","title":"Plausible.Site.update_changeset/3","type":"function"},{"doc":"","ref":"Plausible.Site.html#t:t/0","title":"Plausible.Site.t/0","type":"type"},{"doc":"A \"sites by domain\" caching interface.\n\nServes as a thin wrapper around Cachex, but the underlying\nimplementation can be transparently swapped.\n\nEven though the Cachex process is started, cache access is disabled\nduring tests via the `:sites_by_domain_cache_enabled` application env key.\nThis can be overridden on case by case basis, using the child specs options.\n\nNOTE: the cache allows lookups by both `domain` and `domain_changed_from`\nfields - this is to allow traffic from sites whose domains changed within a certain\ngrace period (see: `Plausible.Site.Transfer`).\n\nWhen Cache is disabled via application env, the `get/1` function\nfalls back to pure database lookups. This should help with introducing\ncached lookups in existing code, so that no existing tests should break.\n\nTo differentiate cached Site structs from those retrieved directly from the\ndatabase, a virtual schema field `from_cache?: true` is set.\nThis indicates the `Plausible.Site` struct is incomplete in comparison to its\ndatabase counterpart -- to spare bandwidth and query execution time,\nonly selected database columns are retrieved and cached.\n\nThere are two modes of refreshing the cache: `:all` and `:updated_recently`.\n\n * `:all` means querying the database for all Site entries and should be done\n periodically (via `Cache.Warmer`). All stale Cache entries are cleared\n upon persisting the new batch.\n\n * `:updated_recently` attempts to re-query sites updated within the last\n 15 minutes only, to account for most recent changes. This refresh\n is lighter on the database and is meant to be executed more frequently\n (via `Cache.Warmer.RecentlyUpdated`).\n\nRefreshing the cache emits telemetry event defined as per `telemetry_event_refresh/2`.\n\nThe `@cached_schema_fields` attribute defines the list of DB columns\nqueried on each cache refresh.\n\nAlso see tests for more comprehensive examples.","ref":"Plausible.Site.Cache.html","title":"Plausible.Site.Cache","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.html#child_spec/1","title":"Plausible.Site.Cache.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#enabled?/0","title":"Plausible.Site.Cache.enabled?/0","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#get/2","title":"Plausible.Site.Cache.get/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#get_site_id/2","title":"Plausible.Site.Cache.get_site_id/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#hit_rate/1","title":"Plausible.Site.Cache.hit_rate/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#merge/2","title":"Plausible.Site.Cache.merge/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#name/0","title":"Plausible.Site.Cache.name/0","type":"function"},{"doc":"Ensures the cache has non-zero size unless no sites exist.\nUseful for orchestrating app startup to prevent the service\ngoing up asynchronously with an empty cache.","ref":"Plausible.Site.Cache.html#ready?/1","title":"Plausible.Site.Cache.ready?/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#refresh_all/1","title":"Plausible.Site.Cache.refresh_all/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#refresh_updated_recently/1","title":"Plausible.Site.Cache.refresh_updated_recently/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#size/1","title":"Plausible.Site.Cache.size/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#telemetry_event_refresh/2","title":"Plausible.Site.Cache.telemetry_event_refresh/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#t:t/0","title":"Plausible.Site.Cache.t/0","type":"type"},{"doc":"A periodic cache warmer.\nQueries all Sites from Postgres, every `interval` and pre-populates the cache.\nAfter each run the process is hibernated, triggering garbage collection.\n\nCurrently Cachex is used, but the underlying implementation can be transparently swapped.\n\nChild specification options available:\n\n * `interval` - the number of milliseconds for each warm-up cycle, defaults\n to `:sites_by_domain_cache_refresh_interval` application env value\n with random jitter added, for which the maximum is stored under\n `:sites_by_domain_cache_refresh_interval_max_jitter` key.\n * `cache_name` - defaults to Cache.name() but can be overriden for testing\n * `force_start?` - enforcess process startup for testing, even if it's barred\n by `Cache.enabled?`. This is useful for avoiding issues with DB ownership\n and async tests.\n * `warmer_fn` - used for testing, a custom function to retrieve the items meant\n to be cached during the warm-up cycle.\n\nSee tests for more comprehensive examples.","ref":"Plausible.Site.Cache.Warmer.html","title":"Plausible.Site.Cache.Warmer","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.html#child_spec/1","title":"Plausible.Site.Cache.Warmer.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.html#interval/0","title":"Plausible.Site.Cache.Warmer.interval/0","type":"function"},{"doc":"A Cache.Warmer adapter that refreshes the Sites Cache fully.\nThis module exists only to make it explicit what the warmer\nrefreshes, to be used in the supervisor tree.","ref":"Plausible.Site.Cache.Warmer.All.html","title":"Plausible.Site.Cache.Warmer.All","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.All.html#child_spec/1","title":"Plausible.Site.Cache.Warmer.All.child_spec/1","type":"function"},{"doc":"A Cache.Warmer adapter that only refreshes the Cache\nwith recently updated sites every 30 seconds.","ref":"Plausible.Site.Cache.Warmer.RecentlyUpdated.html","title":"Plausible.Site.Cache.Warmer.RecentlyUpdated","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.RecentlyUpdated.html#child_spec/1","title":"Plausible.Site.Cache.Warmer.RecentlyUpdated.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Site.CustomDomain.html","title":"Plausible.Site.CustomDomain","type":"module"},{"doc":"Basic interface for domain changes.\n\nOnce `Plausible.DataMigration.NumericIDs` schema migration is ready, \ndomain change operation will be enabled, accessible to the users.\n\nWe will set a transition period of 72 hours\nduring which, both old and new domains, will be accepted as traffic\nidentifiers to the same site. \n\nA periodic worker will call the `expire/0` function to end it where applicable.\nSee: `Plausible.Workers.ExpireDomainChangeTransitions`.\n\nThe underlying changeset for domain change (see: `Plausible.Site`) relies\non database trigger installed via `Plausible.Repo.Migrations.AllowDomainChange`\nPostgres migration. The trigger checks if either `domain` or `domain_changed_from`\nexist to ensure unicity.","ref":"Plausible.Site.Domain.html","title":"Plausible.Site.Domain","type":"module"},{"doc":"","ref":"Plausible.Site.Domain.html#change/3","title":"Plausible.Site.Domain.change/3","type":"function"},{"doc":"","ref":"Plausible.Site.Domain.html#expire_change_transitions/1","title":"Plausible.Site.Domain.expire_change_transitions/1","type":"function"},{"doc":"Thin wrapper around Hammer for gate keeping domain-specific events\nduring the ingestion phase. When the site is allowed, gate keeping\ncheck returns `:allow`, otherwise a `:deny` tagged tuple is returned\nwith one of the following policy markers:\n * `:not_found` (indicates site not found in cache)\n * `:block` (indicates disabled sites)\n * `:throttle` (indicates rate limiting)\n\nRate Limiting buckets are configured per site (externally via the CRM).\nSee: `Plausible.Site`\n\nTo look up each site's configuration, the RateLimiter fetches\na Site by domain using `Plausible.Cache` interface.\n\nThe module defines two policies outside the regular bucket inspection:\n * when the the site is not found in cache: not_found\n * when the underlying rate limiting mechanism returns\n an internal error: :allow","ref":"Plausible.Site.GateKeeper.html","title":"Plausible.Site.GateKeeper","type":"module"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#check/2","title":"Plausible.Site.GateKeeper.check/2","type":"function"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#key/1","title":"Plausible.Site.GateKeeper.key/1","type":"function"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#t:policy/0","title":"Plausible.Site.GateKeeper.policy/0","type":"type"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#t:t/0","title":"Plausible.Site.GateKeeper.t/0","type":"type"},{"doc":"","ref":"Plausible.Site.GoogleAuth.html","title":"Plausible.Site.GoogleAuth","type":"module"},{"doc":"","ref":"Plausible.Site.GoogleAuth.html#changeset/2","title":"Plausible.Site.GoogleAuth.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.GoogleAuth.html#set_property/2","title":"Plausible.Site.GoogleAuth.set_property/2","type":"function"},{"doc":"Embedded schema for Google Analytics imports","ref":"Plausible.Site.ImportedData.html","title":"Plausible.Site.ImportedData","type":"module"},{"doc":"","ref":"Plausible.Site.Membership.html","title":"Plausible.Site.Membership","type":"module"},{"doc":"","ref":"Plausible.Site.Membership.html#changeset/2","title":"Plausible.Site.Membership.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html","title":"Plausible.Site.MonthlyReport","type":"module"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html#add_recipient/2","title":"Plausible.Site.MonthlyReport.add_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html#changeset/2","title":"Plausible.Site.MonthlyReport.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html#remove_recipient/2","title":"Plausible.Site.MonthlyReport.remove_recipient/2","type":"function"},{"doc":"A site deletion service stub.","ref":"Plausible.Site.Removal.html","title":"Plausible.Site.Removal","type":"module"},{"doc":"","ref":"Plausible.Site.Removal.html#run/1","title":"Plausible.Site.Removal.run/1","type":"function"},{"doc":"","ref":"Plausible.Site.SharedLink.html","title":"Plausible.Site.SharedLink","type":"module"},{"doc":"","ref":"Plausible.Site.SharedLink.html#changeset/2","title":"Plausible.Site.SharedLink.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html","title":"Plausible.Site.SpikeNotification","type":"module"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#add_recipient/2","title":"Plausible.Site.SpikeNotification.add_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#changeset/2","title":"Plausible.Site.SpikeNotification.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#remove_recipient/2","title":"Plausible.Site.SpikeNotification.remove_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#was_sent/1","title":"Plausible.Site.SpikeNotification.was_sent/1","type":"function"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html","title":"Plausible.Site.WeeklyReport","type":"module"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html#add_recipient/2","title":"Plausible.Site.WeeklyReport.add_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html#changeset/2","title":"Plausible.Site.WeeklyReport.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html#remove_recipient/2","title":"Plausible.Site.WeeklyReport.remove_recipient/2","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html","title":"Plausible.SiteAdmin","type":"module"},{"doc":"","ref":"Plausible.SiteAdmin.html#create_changeset/2","title":"Plausible.SiteAdmin.create_changeset/2","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#custom_index_query/3","title":"Plausible.SiteAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#form_fields/1","title":"Plausible.SiteAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#get_struct_fields/1","title":"Plausible.SiteAdmin.get_struct_fields/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#index/1","title":"Plausible.SiteAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#list_actions/1","title":"Plausible.SiteAdmin.list_actions/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#ordering/1","title":"Plausible.SiteAdmin.ordering/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#search_fields/1","title":"Plausible.SiteAdmin.search_fields/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#update_changeset/2","title":"Plausible.SiteAdmin.update_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html","title":"Plausible.Sites","type":"module"},{"doc":"","ref":"Plausible.Sites.html#bulk_transfer_ownership/4","title":"Plausible.Sites.bulk_transfer_ownership/4","type":"function"},{"doc":"","ref":"Plausible.Sites.html#create/2","title":"Plausible.Sites.create/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#create_shared_link/3","title":"Plausible.Sites.create_shared_link/3","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_by_domain/1","title":"Plausible.Sites.get_by_domain/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_by_domain!/1","title":"Plausible.Sites.get_by_domain!/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_for_user/3","title":"Plausible.Sites.get_for_user/3","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_for_user!/3","title":"Plausible.Sites.get_for_user!/3","type":"function"},{"doc":"","ref":"Plausible.Sites.html#has_admin_access?/2","title":"Plausible.Sites.has_admin_access?/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#has_goals?/1","title":"Plausible.Sites.has_goals?/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#has_stats?/1","title":"Plausible.Sites.has_stats?/1","type":"function"},{"doc":"Invites a new team member to the given site. Returns a\n%Plausible.Auth.Invitation{} struct and sends the invitee an email to accept\nthis invitation.\n\nThe inviter must have enough permissions to invite the new team member,\notherwise this function returns `{:error, :forbidden}`.\n\nIf the new team member role is `:owner`, this function handles the invitation\nas an ownership transfer and requires the inviter to be the owner of the site.","ref":"Plausible.Sites.html#invite/4","title":"Plausible.Sites.invite/4","type":"function"},{"doc":"","ref":"Plausible.Sites.html#is_member?/2","title":"Plausible.Sites.is_member?/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#locked?/1","title":"Plausible.Sites.locked?/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owned_site_ids/1","title":"Plausible.Sites.owned_site_ids/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owned_sites_count/1","title":"Plausible.Sites.owned_sites_count/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owned_sites_domains/1","title":"Plausible.Sites.owned_sites_domains/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owner_for/1","title":"Plausible.Sites.owner_for/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#role/2","title":"Plausible.Sites.role/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#shared_link_url/2","title":"Plausible.Sites.shared_link_url/2","type":"function"},{"doc":"Returns the date of the first event of the given site, or `nil` if the site\ndoes not have stats yet.\n\nIf this is the first time the function is called for the site, it queries\nClickhouse and saves the date in the sites table.","ref":"Plausible.Sites.html#stats_start_date/1","title":"Plausible.Sites.stats_start_date/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#t:invite_error/0","title":"Plausible.Sites.invite_error/0","type":"type"},{"doc":"","ref":"Plausible.Stats.html","title":"Plausible.Stats","type":"module"},{"doc":"","ref":"Plausible.Stats.html#aggregate/3","title":"Plausible.Stats.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.Stats.html#breakdown/5","title":"Plausible.Stats.breakdown/5","type":"function"},{"doc":"","ref":"Plausible.Stats.html#current_visitors/1","title":"Plausible.Stats.current_visitors/1","type":"function"},{"doc":"","ref":"Plausible.Stats.html#filter_suggestions/4","title":"Plausible.Stats.filter_suggestions/4","type":"function"},{"doc":"","ref":"Plausible.Stats.html#funnel/3","title":"Plausible.Stats.funnel/3","type":"function"},{"doc":"","ref":"Plausible.Stats.html#timeseries/3","title":"Plausible.Stats.timeseries/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Aggregate.html","title":"Plausible.Stats.Aggregate","type":"module"},{"doc":"","ref":"Plausible.Stats.Aggregate.html#aggregate/3","title":"Plausible.Stats.Aggregate.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html","title":"Plausible.Stats.Base","type":"module"},{"doc":"","ref":"Plausible.Stats.Base.html#apply_entry_prop_filter/3","title":"Plausible.Stats.Base.apply_entry_prop_filter/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#base_event_query/2","title":"Plausible.Stats.Base.base_event_query/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#filter_by_entry_props/2","title":"Plausible.Stats.Base.filter_by_entry_props/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#filter_converted_sessions/3","title":"Plausible.Stats.Base.filter_converted_sessions/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#page_regex/1","title":"Plausible.Stats.Base.page_regex/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#query_events/2","title":"Plausible.Stats.Base.query_events/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#query_sessions/2","title":"Plausible.Stats.Base.query_sessions/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#select_event_metrics/2","title":"Plausible.Stats.Base.select_event_metrics/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#select_session_metrics/3","title":"Plausible.Stats.Base.select_session_metrics/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#utc_boundaries/2","title":"Plausible.Stats.Base.utc_boundaries/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Breakdown.html","title":"Plausible.Stats.Breakdown","type":"module"},{"doc":"","ref":"Plausible.Stats.Breakdown.html#breakdown/5","title":"Plausible.Stats.Breakdown.breakdown/5","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html","title":"Plausible.Stats.Clickhouse","type":"module"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#current_visitors/2","title":"Plausible.Stats.Clickhouse.current_visitors/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#has_pageviews?/1","title":"Plausible.Stats.Clickhouse.has_pageviews?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#imported_pageview_count/1","title":"Plausible.Stats.Clickhouse.imported_pageview_count/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#last_24h_visitors/1","title":"Plausible.Stats.Clickhouse.last_24h_visitors/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#pageview_start_date_local/1","title":"Plausible.Stats.Clickhouse.pageview_start_date_local/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#top_sources/6","title":"Plausible.Stats.Clickhouse.top_sources/6","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#usage_breakdown/1","title":"Plausible.Stats.Clickhouse.usage_breakdown/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#usage_breakdown/2","title":"Plausible.Stats.Clickhouse.usage_breakdown/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Compare.html","title":"Plausible.Stats.Compare","type":"module"},{"doc":"","ref":"Plausible.Stats.Compare.html#calculate_change/3","title":"Plausible.Stats.Compare.calculate_change/3","type":"function"},{"doc":"This module provides functions for comparing query periods.\n\nIt allows you to compare a given period with a previous period or with the\nsame period from the previous year. For example, you can compare this month's\nmain graph with last month or with the same month from last year.","ref":"Plausible.Stats.Comparisons.html","title":"Plausible.Stats.Comparisons","type":"module"},{"doc":"Generates a comparison query based on the source query and comparison mode.\n\nThe mode parameter specifies the type of comparison and can be one of the\nfollowing:\n\n * `\"previous_period\"` - shifts back the query by the same number of days the\n source query has.\n\n * `\"year_over_year\"` - shifts back the query by 1 year.\n\n * `\"custom\"` - compares the query using a custom date range. See options for\n more details.\n\nThe comparison query returned by the function has its end date restricted to\nthe current day. This can be overriden by the `now` option, described below.","ref":"Plausible.Stats.Comparisons.html#compare/4","title":"Plausible.Stats.Comparisons.compare/4","type":"function"},{"doc":"* `:now` - a `NaiveDateTime` struct with the current date and time. This is\n optional and used for testing purposes.\n\n * `:from` - a ISO-8601 date string used when mode is `\"custom\"`.\n\n * `:to` - a ISO-8601 date string used when mode is `\"custom\"`. Must be\n after `from`.\n\n * `:match_day_of_week?` - determines whether the comparison query should be\n adjusted to match the day of the week of the source query. When this option\n is set to true, the comparison query is shifted to start on the same day of\n the week as the source query, rather than on the exact same date. For\n example, if the source query starts on Sunday, January 1st, 2023 and the\n `year_over_year` comparison query is configured to `match_day_of_week?`,\n it will be shifted to start on Sunday, January 2nd, 2022 instead of\n January 1st. Defaults to false.","ref":"Plausible.Stats.Comparisons.html#compare/4-options","title":"Options - Plausible.Stats.Comparisons.compare/4","type":"function"},{"doc":"","ref":"Plausible.Stats.Comparisons.html#t:mode/0","title":"Plausible.Stats.Comparisons.mode/0","type":"type"},{"doc":"","ref":"Plausible.Stats.CurrentVisitors.html","title":"Plausible.Stats.CurrentVisitors","type":"module"},{"doc":"","ref":"Plausible.Stats.CurrentVisitors.html#current_visitors/1","title":"Plausible.Stats.CurrentVisitors.current_visitors/1","type":"function"},{"doc":"Module for querying user defined 'custom properties'.","ref":"Plausible.Stats.CustomProps.html","title":"Plausible.Stats.CustomProps","type":"module"},{"doc":"","ref":"Plausible.Stats.CustomProps.html#fetch_prop_names/2","title":"Plausible.Stats.CustomProps.fetch_prop_names/2","type":"function"},{"doc":"","ref":"Plausible.Stats.CustomProps.html#maybe_allowed_props_only/2","title":"Plausible.Stats.CustomProps.maybe_allowed_props_only/2","type":"function"},{"doc":"Returns a breakdown of event names with all existing custom\nproperties for each event name.","ref":"Plausible.Stats.CustomProps.html#props_for_all_event_names/2","title":"Plausible.Stats.CustomProps.props_for_all_event_names/2","type":"function"},{"doc":"A module for parsing filters used in stat queries.","ref":"Plausible.Stats.FilterParser.html","title":"Plausible.Stats.FilterParser","type":"module"},{"doc":"Parses different filter formats.\n\nDepending on the format and type of the `filters` argument, returns:\n\n * a decoded map, when `filters` is encoded JSON\n * a parsed filter map, when `filters` is a filter expression string\n * the same map, when `filters` is a map\n\nReturns an empty map when argument type is unexpected (e.g. `nil`).\n\n#","ref":"Plausible.Stats.FilterParser.html#parse_filters/1","title":"Plausible.Stats.FilterParser.parse_filters/1","type":"function"},{"doc":"iex> FilterParser.parse_filters(\"{\\\"page\\\":\\\"/blog/**\\\"}\")\n %{\"page\" => \"/blog/**\"}\n\n iex> FilterParser.parse_filters(\"visit:browser!=Chrome\")\n %{\"visit:browser\" => {:is_not, \"Chrome\"}}\n\n iex> FilterParser.parse_filters(nil)\n %{}","ref":"Plausible.Stats.FilterParser.html#parse_filters/1-examples","title":"Examples: - Plausible.Stats.FilterParser.parse_filters/1","type":"function"},{"doc":"","ref":"Plausible.Stats.FilterSuggestions.html","title":"Plausible.Stats.FilterSuggestions","type":"module"},{"doc":"","ref":"Plausible.Stats.FilterSuggestions.html#filter_suggestions/4","title":"Plausible.Stats.FilterSuggestions.filter_suggestions/4","type":"function"},{"doc":"","ref":"Plausible.Stats.Filters.html","title":"Plausible.Stats.Filters","type":"module"},{"doc":"","ref":"Plausible.Stats.Filters.html#add_prefix/1","title":"Plausible.Stats.Filters.add_prefix/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Filters.html#visit_props/0","title":"Plausible.Stats.Filters.visit_props/0","type":"function"},{"doc":"","ref":"Plausible.Stats.Fragments.html","title":"Plausible.Stats.Fragments","type":"module"},{"doc":"","ref":"Plausible.Stats.Fragments.html#bounce_rate/0","title":"Plausible.Stats.Fragments.bounce_rate/0","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#coalesce_string/2","title":"Plausible.Stats.Fragments.coalesce_string/2","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#sample_percent/0","title":"Plausible.Stats.Fragments.sample_percent/0","type":"macro"},{"doc":"Converts time or date and time to the specified timezone.\n\nReference: https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions/#totimezone","ref":"Plausible.Stats.Fragments.html#to_timezone/2","title":"Plausible.Stats.Fragments.to_timezone/2","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#total/0","title":"Plausible.Stats.Fragments.total/0","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#uniq/1","title":"Plausible.Stats.Fragments.uniq/1","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#visit_duration/0","title":"Plausible.Stats.Fragments.visit_duration/0","type":"macro"},{"doc":"Returns the weekstart for `date`. If the weekstart is before the `not_before`\nboundary, `not_before` is returned.","ref":"Plausible.Stats.Fragments.html#weekstart_not_before/2","title":"Plausible.Stats.Fragments.weekstart_not_before/2","type":"macro"},{"doc":"In this pseudo-code example, the fragment returns the weekstart. The\n`not_before` boundary is set to the past Saturday, which is before the\nweekstart, therefore the cap does not apply.\n\n iex> this_wednesday = ~D[2022-11-09]\n ...> past_saturday = ~D[2022-11-05]\n ...> weekstart_not_before(this_wednesday, past_saturday)\n ~D[2022-11-07]\n\n\nIn this other example, the fragment returns Tuesday and not the weekstart.\nThe `not_before` boundary is set to Tuesday, which is past the weekstart,\ntherefore the cap applies.\n\n iex> this_wednesday = ~D[2022-11-09]\n ...> this_tuesday = ~D[2022-11-08]\n ...> weekstart_not_before(this_wednesday, this_tuesday)\n ~D[2022-11-08]","ref":"Plausible.Stats.Fragments.html#weekstart_not_before/2-examples","title":"Examples - Plausible.Stats.Fragments.weekstart_not_before/2","type":"macro"},{"doc":"Same as Plausible.Stats.Fragments.weekstart_not_before/2 but converts dates to\nthe specified timezone.","ref":"Plausible.Stats.Fragments.html#weekstart_not_before/3","title":"Plausible.Stats.Fragments.weekstart_not_before/3","type":"macro"},{"doc":"Module responsible for funnel evaluation, i.e. building and executing\nClickHouse funnel query based on `Plausible.Funnel` definition.","ref":"Plausible.Stats.Funnel.html","title":"Plausible.Stats.Funnel","type":"module"},{"doc":"","ref":"Plausible.Stats.Funnel.html#funnel/3","title":"Plausible.Stats.Funnel.funnel/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Imported.html","title":"Plausible.Stats.Imported","type":"module"},{"doc":"","ref":"Plausible.Stats.Imported.html#merge_imported/5","title":"Plausible.Stats.Imported.merge_imported/5","type":"function"},{"doc":"","ref":"Plausible.Stats.Imported.html#merge_imported_timeseries/4","title":"Plausible.Stats.Imported.merge_imported_timeseries/4","type":"function"},{"doc":"Collection of functions to work with intervals.\n\nThe interval of a query defines the granularity of the data. You can think of\nit as a `GROUP BY` clause. Possible values are `minute`, `hour`, `date`,\n`week`, and `month`.","ref":"Plausible.Stats.Interval.html","title":"Plausible.Stats.Interval","type":"module"},{"doc":"Returns the suggested interval for the given `Date.Range` struct.","ref":"Plausible.Stats.Interval.html#default_for_date_range/1","title":"Plausible.Stats.Interval.default_for_date_range/1","type":"function"},{"doc":"Returns the suggested interval for the given time period.","ref":"Plausible.Stats.Interval.html#default_for_period/1","title":"Plausible.Stats.Interval.default_for_period/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#list/0","title":"Plausible.Stats.Interval.list/0","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#valid?/1","title":"Plausible.Stats.Interval.valid?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#valid_by_period/1","title":"Plausible.Stats.Interval.valid_by_period/1","type":"function"},{"doc":"Returns whether the given interval is valid for a time period.\n\nIntervals longer than periods are not supported, e.g. current month stats with\na month interval, or today stats with a week interval.\n\nThere are two dynamic states:\n* `custom` period is only applicable with `month` or `week` intervals,\n if the `opts[:from]` and `opts[:to]` range difference exceeds 12 months\n* `all` period's interval options depend on particular site's `stats_start_date`\n - daily interval is excluded if the all-time range exceeds 12 months","ref":"Plausible.Stats.Interval.html#valid_for_period?/3","title":"Plausible.Stats.Interval.valid_for_period?/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#t:opt/0","title":"Plausible.Stats.Interval.opt/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Interval.html#t:opts/0","title":"Plausible.Stats.Interval.opts/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Interval.html#t:t/0","title":"Plausible.Stats.Interval.t/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Props.html","title":"Plausible.Stats.Props","type":"module"},{"doc":"","ref":"Plausible.Stats.Props.html#event_props/0","title":"Plausible.Stats.Props.event_props/0","type":"function"},{"doc":"","ref":"Plausible.Stats.Props.html#valid_prop?/1","title":"Plausible.Stats.Props.valid_prop?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html","title":"Plausible.Stats.Query","type":"module"},{"doc":"","ref":"Plausible.Stats.Query.html#from/2","title":"Plausible.Stats.Query.from/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#get_filter_by_prefix/2","title":"Plausible.Stats.Query.get_filter_by_prefix/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#has_event_filters?/1","title":"Plausible.Stats.Query.has_event_filters?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#include_imported?/3","title":"Plausible.Stats.Query.include_imported?/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#put_filter/3","title":"Plausible.Stats.Query.put_filter/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#remove_event_filters/2","title":"Plausible.Stats.Query.remove_event_filters/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#trace/1","title":"Plausible.Stats.Query.trace/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#t:t/0","title":"Plausible.Stats.Query.t/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Timeseries.html","title":"Plausible.Stats.Timeseries","type":"module"},{"doc":"","ref":"Plausible.Stats.Timeseries.html#timeseries/3","title":"Plausible.Stats.Timeseries.timeseries/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Timeseries.html#t:results/0","title":"Plausible.Stats.Timeseries.results/0","type":"type"},{"doc":"Utilities for modifying stat results","ref":"Plausible.Stats.Util.html","title":"Plausible.Stats.Util","type":"module"},{"doc":"","ref":"Plausible.Stats.Util.html#cast_revenue_metrics_to_money/2","title":"Plausible.Stats.Util.cast_revenue_metrics_to_money/2","type":"function"},{"doc":"Returns the common currency for the goal filters in a query. If there are no\ngoal filters, or multiple currencies, `nil` is returned and revenue metrics\nare dropped.\n\nAggregating revenue data works only for same currency goals. If the query is\nfiltered by goals with different currencies, for example, one USD and other\nEUR, revenue metrics are dropped.","ref":"Plausible.Stats.Util.html#get_revenue_tracking_currency/3","title":"Plausible.Stats.Util.get_revenue_tracking_currency/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Util.html#remove_internal_visits_metric/1","title":"Plausible.Stats.Util.remove_internal_visits_metric/1","type":"function"},{"doc":"`__internal_visits` is fetched when querying bounce rate and visit duration, as it\nis needed to calculate these from imported data. This function removes that metric\nfrom all entries in the results list.","ref":"Plausible.Stats.Util.html#remove_internal_visits_metric/2","title":"Plausible.Stats.Util.remove_internal_visits_metric/2","type":"function"},{"doc":"Floki wrappers to help make assertions about HTML/DOM structures","ref":"Plausible.Test.Support.HTML.html","title":"Plausible.Test.Support.HTML","type":"module"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#element_exists?/2","title":"Plausible.Test.Support.HTML.element_exists?/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#find/2","title":"Plausible.Test.Support.HTML.find/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#form_exists?/2","title":"Plausible.Test.Support.HTML.form_exists?/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#name_of/1","title":"Plausible.Test.Support.HTML.name_of/1","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#submit_button/2","title":"Plausible.Test.Support.HTML.submit_button/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#text/1","title":"Plausible.Test.Support.HTML.text/1","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#text_of_attr/2","title":"Plausible.Test.Support.HTML.text_of_attr/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#text_of_element/2","title":"Plausible.Test.Support.HTML.text_of_element/2","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html","title":"Plausible.TestUtils","type":"module"},{"doc":"","ref":"Plausible.TestUtils.html#add_imported_data/1","title":"Plausible.TestUtils.add_imported_data/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#await_clickhouse_count/2","title":"Plausible.TestUtils.await_clickhouse_count/2","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_api_key/1","title":"Plausible.TestUtils.create_api_key/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_events/1","title":"Plausible.TestUtils.create_events/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_new_site/1","title":"Plausible.TestUtils.create_new_site/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_pageviews/1","title":"Plausible.TestUtils.create_pageviews/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_sessions/1","title":"Plausible.TestUtils.create_sessions/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_site/1","title":"Plausible.TestUtils.create_site/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_user/1","title":"Plausible.TestUtils.create_user/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#eventually/3","title":"Plausible.TestUtils.eventually/3","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#init_session/1","title":"Plausible.TestUtils.init_session/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#log_in/1","title":"Plausible.TestUtils.log_in/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#patch_env/2","title":"Plausible.TestUtils.patch_env/2","type":"macro"},{"doc":"","ref":"Plausible.TestUtils.html#populate_stats/1","title":"Plausible.TestUtils.populate_stats/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#populate_stats/2","title":"Plausible.TestUtils.populate_stats/2","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#random_ip/0","title":"Plausible.TestUtils.random_ip/0","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#relative_time/1","title":"Plausible.TestUtils.relative_time/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#setup_patch_env/2","title":"Plausible.TestUtils.setup_patch_env/2","type":"macro"},{"doc":"","ref":"Plausible.TestUtils.html#to_naive_truncate/1","title":"Plausible.TestUtils.to_naive_truncate/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#use_api_key/1","title":"Plausible.TestUtils.use_api_key/1","type":"function"},{"doc":"","ref":"Plausible.Themes.html","title":"Plausible.Themes","type":"module"},{"doc":"","ref":"Plausible.Themes.html#options/0","title":"Plausible.Themes.options/0","type":"function"},{"doc":"","ref":"Plausible.Timezones.html","title":"Plausible.Timezones","type":"module"},{"doc":"","ref":"Plausible.Timezones.html#options/1","title":"Plausible.Timezones.options/1","type":"function"},{"doc":"User context","ref":"Plausible.Users.html","title":"Plausible.Users","type":"module"},{"doc":"","ref":"Plausible.Users.html#with_subscription/1","title":"Plausible.Users.with_subscription/1","type":"function"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html","title":"Plausible.Workers.CheckUsage","type":"module"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#check_enterprise_subscriber/2","title":"Plausible.Workers.CheckUsage.check_enterprise_subscriber/2","type":"function"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#day_of_month/1","title":"Plausible.Workers.CheckUsage.day_of_month/1","type":"macro"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#last_day_of_month/1","title":"Plausible.Workers.CheckUsage.last_day_of_month/1","type":"macro"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#least/2","title":"Plausible.Workers.CheckUsage.least/2","type":"macro"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#yesterday/0","title":"Plausible.Workers.CheckUsage.yesterday/0","type":"macro"},{"doc":"","ref":"Plausible.Workers.CleanEmailVerificationCodes.html","title":"Plausible.Workers.CleanEmailVerificationCodes","type":"module"},{"doc":"","ref":"Plausible.Workers.CleanInvitations.html","title":"Plausible.Workers.CleanInvitations","type":"module"},{"doc":"Periodic worker that expires domain change transition period.\nOld domains are frozen for a given time, so users can still access them\nbefore redeploying their scripts and integrations.","ref":"Plausible.Workers.ExpireDomainChangeTransitions.html","title":"Plausible.Workers.ExpireDomainChangeTransitions","type":"module"},{"doc":"","ref":"Plausible.Workers.ImportGoogleAnalytics.html","title":"Plausible.Workers.ImportGoogleAnalytics","type":"module"},{"doc":"","ref":"Plausible.Workers.ImportGoogleAnalytics.html#import_failed/1","title":"Plausible.Workers.ImportGoogleAnalytics.import_failed/1","type":"function"},{"doc":"","ref":"Plausible.Workers.LockSites.html","title":"Plausible.Workers.LockSites","type":"module"},{"doc":"","ref":"Plausible.Workers.NotifyAnnualRenewal.html","title":"Plausible.Workers.NotifyAnnualRenewal","type":"module"},{"doc":"Sends a notification at most 7 days and at least 1 day before the renewal of an annual subscription","ref":"Plausible.Workers.NotifyAnnualRenewal.html#perform/1","title":"Plausible.Workers.NotifyAnnualRenewal.perform/1","type":"function"},{"doc":"","ref":"Plausible.Workers.RotateSalts.html","title":"Plausible.Workers.RotateSalts","type":"module"},{"doc":"","ref":"Plausible.Workers.ScheduleEmailReports.html","title":"Plausible.Workers.ScheduleEmailReports","type":"module"},{"doc":"","ref":"Plausible.Workers.ScheduleEmailReports.html#first_of_month_9am/1","title":"Plausible.Workers.ScheduleEmailReports.first_of_month_9am/1","type":"function"},{"doc":"","ref":"Plausible.Workers.ScheduleEmailReports.html#monday_9am/1","title":"Plausible.Workers.ScheduleEmailReports.monday_9am/1","type":"function"},{"doc":"Email reports should be sent on Monday at 9am according to the timezone\nof a site. This job runs every day at midnight to ensure that all sites\nhave a scheduled job for email reports.","ref":"Plausible.Workers.ScheduleEmailReports.html#perform/1","title":"Plausible.Workers.ScheduleEmailReports.perform/1","type":"function"},{"doc":"","ref":"Plausible.Workers.SendCheckStatsEmails.html","title":"Plausible.Workers.SendCheckStatsEmails","type":"module"},{"doc":"","ref":"Plausible.Workers.SendEmailReport.html","title":"Plausible.Workers.SendEmailReport","type":"module"},{"doc":"","ref":"Plausible.Workers.SendSiteSetupEmails.html","title":"Plausible.Workers.SendSiteSetupEmails","type":"module"},{"doc":"","ref":"Plausible.Workers.SendTrialNotifications.html","title":"Plausible.Workers.SendTrialNotifications","type":"module"},{"doc":"","ref":"Plausible.Workers.SpikeNotifier.html","title":"Plausible.Workers.SpikeNotifier","type":"module"},{"doc":"","ref":"PlausibleWeb.html","title":"PlausibleWeb","type":"module"},{"doc":"When used, dispatch to the appropriate controller/view/etc.","ref":"PlausibleWeb.html#__using__/1","title":"PlausibleWeb.__using__/1","type":"macro"},{"doc":"","ref":"PlausibleWeb.html#channel/0","title":"PlausibleWeb.channel/0","type":"function"},{"doc":"","ref":"PlausibleWeb.html#controller/0","title":"PlausibleWeb.controller/0","type":"function"},{"doc":"","ref":"PlausibleWeb.html#router/0","title":"PlausibleWeb.router/0","type":"function"},{"doc":"","ref":"PlausibleWeb.html#view/0","title":"PlausibleWeb.view/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html","title":"PlausibleWeb.Api.ExternalController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#error/2","title":"PlausibleWeb.Api.ExternalController.error/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#event/2","title":"PlausibleWeb.Api.ExternalController.event/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#health/2","title":"PlausibleWeb.Api.ExternalController.health/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#info/2","title":"PlausibleWeb.Api.ExternalController.info/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html","title":"PlausibleWeb.Api.ExternalSitesController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#create_site/2","title":"PlausibleWeb.Api.ExternalSitesController.create_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#delete_goal/2","title":"PlausibleWeb.Api.ExternalSitesController.delete_goal/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#delete_site/2","title":"PlausibleWeb.Api.ExternalSitesController.delete_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#find_or_create_goal/2","title":"PlausibleWeb.Api.ExternalSitesController.find_or_create_goal/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#find_or_create_shared_link/2","title":"PlausibleWeb.Api.ExternalSitesController.find_or_create_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#get_site/2","title":"PlausibleWeb.Api.ExternalSitesController.get_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#update_site/2","title":"PlausibleWeb.Api.ExternalSitesController.update_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html","title":"PlausibleWeb.Api.ExternalStatsController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#aggregate/2","title":"PlausibleWeb.Api.ExternalStatsController.aggregate/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#breakdown/2","title":"PlausibleWeb.Api.ExternalStatsController.breakdown/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#realtime_visitors/2","title":"PlausibleWeb.Api.ExternalStatsController.realtime_visitors/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#timeseries/2","title":"PlausibleWeb.Api.ExternalStatsController.timeseries/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html","title":"PlausibleWeb.Api.Helpers","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#bad_request/2","title":"PlausibleWeb.Api.Helpers.bad_request/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#not_found/2","title":"PlausibleWeb.Api.Helpers.not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#payment_required/2","title":"PlausibleWeb.Api.Helpers.payment_required/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#too_many_requests/2","title":"PlausibleWeb.Api.Helpers.too_many_requests/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#unauthorized/2","title":"PlausibleWeb.Api.Helpers.unauthorized/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html","title":"PlausibleWeb.Api.InternalController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html#disable_feature/2","title":"PlausibleWeb.Api.InternalController.disable_feature/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html#domain_status/2","title":"PlausibleWeb.Api.InternalController.domain_status/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html#sites/2","title":"PlausibleWeb.Api.InternalController.sites/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html","title":"PlausibleWeb.Api.PaddleController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html#verified_signature?/1","title":"PlausibleWeb.Api.PaddleController.verified_signature?/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html#verify_signature/2","title":"PlausibleWeb.Api.PaddleController.verify_signature/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html#webhook/2","title":"PlausibleWeb.Api.PaddleController.webhook/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html","title":"PlausibleWeb.Api.StatsController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#all_custom_prop_values/2","title":"PlausibleWeb.Api.StatsController.all_custom_prop_values/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#browser_versions/2","title":"PlausibleWeb.Api.StatsController.browser_versions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#browsers/2","title":"PlausibleWeb.Api.StatsController.browsers/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#cities/2","title":"PlausibleWeb.Api.StatsController.cities/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#conversions/2","title":"PlausibleWeb.Api.StatsController.conversions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#countries/2","title":"PlausibleWeb.Api.StatsController.countries/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#current_visitors/2","title":"PlausibleWeb.Api.StatsController.current_visitors/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#custom_prop_values/2","title":"PlausibleWeb.Api.StatsController.custom_prop_values/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#entry_pages/2","title":"PlausibleWeb.Api.StatsController.entry_pages/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#exit_pages/2","title":"PlausibleWeb.Api.StatsController.exit_pages/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#filter_suggestions/2","title":"PlausibleWeb.Api.StatsController.filter_suggestions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#funnel/2","title":"PlausibleWeb.Api.StatsController.funnel/2","type":"function"},{"doc":"Returns a time-series based on given parameters.","ref":"PlausibleWeb.Api.StatsController.html#main_graph/2","title":"PlausibleWeb.Api.StatsController.main_graph/2","type":"function"},{"doc":"This API accepts the following parameters:\n\n * `period` - x-axis of the graph, e.g. `12mo`, `day`, `custom`.\n\n * `metric` - y-axis of the graph, e.g. `visits`, `visitors`, `pageviews`.\n See the Stats API [\"Metrics\"](https://plausible.io/docs/stats-api#metrics)\n section for more details. Defaults to `visitors`.\n\n * `interval` - granularity of the time-series data. You can think of it as\n a `GROUP BY` clause. Possible values are `minute`, `hour`, `date`, `week`,\n and `month`. The default depends on the `period` parameter. Check\n `Plausible.Query.from/2` for each default.\n\n * `filters` - optional filters to drill down data. See the Stats API\n [\"Filtering\"](https://plausible.io/docs/stats-api#filtering) section for\n more details.\n\n * `with_imported` - boolean indicating whether to include Google Analytics\n imported data or not. Defaults to `false`.\n\nFull example:\n```elixir\n%{\n \"from\" => \"2021-09-06\",\n \"interval\" => \"month\",\n \"metric\" => \"visitors\",\n \"period\" => \"custom\",\n \"to\" => \"2021-12-13\"\n}\n```","ref":"PlausibleWeb.Api.StatsController.html#main_graph/2-parameters","title":"Parameters - PlausibleWeb.Api.StatsController.main_graph/2","type":"function"},{"doc":"Returns a map with the following keys:\n\n * `plot` - list of values for the requested metric representing the y-axis\n of the graph.\n\n * `labels` - list of date times representing the x-axis of the graph.\n\n * `present_index` - index of the element representing the current date in\n `labels` and `plot` lists.\n\n * `interval` - the interval used for querying.\n\n * `with_imported` - boolean indicating whether the Google Analytics data\n was queried or not.\n\n * `imported_source` - the source of the imported data, when applicable.\n Currently only Google Analytics is supported.\n\n * `full_intervals` - map of dates indicating whether the interval has been\n cut off by the requested date range or not. For example, if looking at a\n month week-by-week, some weeks may be cut off by the month boundaries.\n It's useful to adjust the graph display slightly in case the interval is\n not 'full' so that the user understands why the numbers might be lower for\n those partial periods.\n\nFull example:\n```elixir\n%{\n \"full_intervals\" => %{\n \"2021-09-01\" => false,\n \"2021-10-01\" => true,\n \"2021-11-01\" => true,\n \"2021-12-01\" => false\n },\n \"imported_source\" => nil,\n \"interval\" => \"month\",\n \"labels\" => [\"2021-09-01\", \"2021-10-01\", \"2021-11-01\", \"2021-12-01\"],\n \"plot\" => [0, 0, 0, 0],\n \"present_index\" => nil,\n \"with_imported\" => false\n}\n```","ref":"PlausibleWeb.Api.StatsController.html#main_graph/2-response","title":"Response - PlausibleWeb.Api.StatsController.main_graph/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#operating_system_versions/2","title":"PlausibleWeb.Api.StatsController.operating_system_versions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#operating_systems/2","title":"PlausibleWeb.Api.StatsController.operating_systems/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#pages/2","title":"PlausibleWeb.Api.StatsController.pages/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#referrer_drilldown/2","title":"PlausibleWeb.Api.StatsController.referrer_drilldown/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#referrers/2","title":"PlausibleWeb.Api.StatsController.referrers/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#regions/2","title":"PlausibleWeb.Api.StatsController.regions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#screen_sizes/2","title":"PlausibleWeb.Api.StatsController.screen_sizes/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#sources/2","title":"PlausibleWeb.Api.StatsController.sources/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#top_stats/2","title":"PlausibleWeb.Api.StatsController.top_stats/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_campaigns/2","title":"PlausibleWeb.Api.StatsController.utm_campaigns/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_contents/2","title":"PlausibleWeb.Api.StatsController.utm_contents/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_mediums/2","title":"PlausibleWeb.Api.StatsController.utm_mediums/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_sources/2","title":"PlausibleWeb.Api.StatsController.utm_sources/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_terms/2","title":"PlausibleWeb.Api.StatsController.utm_terms/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html","title":"PlausibleWeb.AuthController","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthController.html#activate/2","title":"PlausibleWeb.AuthController.activate/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#activate_form/2","title":"PlausibleWeb.AuthController.activate_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#create_api_key/2","title":"PlausibleWeb.AuthController.create_api_key/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#delete_api_key/2","title":"PlausibleWeb.AuthController.delete_api_key/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#delete_me/2","title":"PlausibleWeb.AuthController.delete_me/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#google_auth_callback/2","title":"PlausibleWeb.AuthController.google_auth_callback/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#login/2","title":"PlausibleWeb.AuthController.login/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#login_form/2","title":"PlausibleWeb.AuthController.login_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#logout/2","title":"PlausibleWeb.AuthController.logout/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#new_api_key/2","title":"PlausibleWeb.AuthController.new_api_key/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset/2","title":"PlausibleWeb.AuthController.password_reset/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset_form/2","title":"PlausibleWeb.AuthController.password_reset_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset_request/2","title":"PlausibleWeb.AuthController.password_reset_request/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset_request_form/2","title":"PlausibleWeb.AuthController.password_reset_request_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#register/2","title":"PlausibleWeb.AuthController.register/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#register_form/2","title":"PlausibleWeb.AuthController.register_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#register_from_invitation/2","title":"PlausibleWeb.AuthController.register_from_invitation/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#request_activation_code/2","title":"PlausibleWeb.AuthController.request_activation_code/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#save_settings/2","title":"PlausibleWeb.AuthController.save_settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#user_settings/2","title":"PlausibleWeb.AuthController.user_settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthPlug.html","title":"PlausibleWeb.AuthPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthPlug.html#call/2","title":"PlausibleWeb.AuthPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthPlug.html#init/1","title":"PlausibleWeb.AuthPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html","title":"PlausibleWeb.AuthView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.AuthView.html#__resource__/0","title":"PlausibleWeb.AuthView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#activate.html/1","title":"PlausibleWeb.AuthView.activate.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#base_domain/0","title":"PlausibleWeb.AuthView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#delimit_integer/1","title":"PlausibleWeb.AuthView.delimit_integer/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#format_invoices/1","title":"PlausibleWeb.AuthView.format_invoices/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#login_form.html/1","title":"PlausibleWeb.AuthView.login_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#new_api_key.html/1","title":"PlausibleWeb.AuthView.new_api_key.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#password_reset_form.html/1","title":"PlausibleWeb.AuthView.password_reset_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#password_reset_request_form.html/1","title":"PlausibleWeb.AuthView.password_reset_request_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#password_reset_request_success.html/1","title":"PlausibleWeb.AuthView.password_reset_request_success.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#plausible_url/0","title":"PlausibleWeb.AuthView.plausible_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#present_subscription_status/1","title":"PlausibleWeb.AuthView.present_subscription_status/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#register_success.html/1","title":"PlausibleWeb.AuthView.register_success.html/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.AuthView.html#render/2","title":"PlausibleWeb.AuthView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#subscription_colors/1","title":"PlausibleWeb.AuthView.subscription_colors/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#subscription_interval/1","title":"PlausibleWeb.AuthView.subscription_interval/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#subscription_quota/1","title":"PlausibleWeb.AuthView.subscription_quota/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.AuthView.html#template_not_found/2","title":"PlausibleWeb.AuthView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#user_settings.html/1","title":"PlausibleWeb.AuthView.user_settings.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSiteAccess.html","title":"PlausibleWeb.AuthorizeSiteAccess","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthorizeSiteAccess.html#call/2","title":"PlausibleWeb.AuthorizeSiteAccess.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSiteAccess.html#init/1","title":"PlausibleWeb.AuthorizeSiteAccess.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSitesApiPlug.html","title":"PlausibleWeb.AuthorizeSitesApiPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthorizeSitesApiPlug.html#call/2","title":"PlausibleWeb.AuthorizeSitesApiPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSitesApiPlug.html#init/1","title":"PlausibleWeb.AuthorizeSitesApiPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeStatsApiPlug.html","title":"PlausibleWeb.AuthorizeStatsApiPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthorizeStatsApiPlug.html#call/2","title":"PlausibleWeb.AuthorizeStatsApiPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeStatsApiPlug.html#init/1","title":"PlausibleWeb.AuthorizeStatsApiPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html","title":"PlausibleWeb.BillingController","type":"module"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_enterprise_plan/2","title":"PlausibleWeb.BillingController.change_enterprise_plan/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_plan/2","title":"PlausibleWeb.BillingController.change_plan/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_plan_form/2","title":"PlausibleWeb.BillingController.change_plan_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_plan_preview/2","title":"PlausibleWeb.BillingController.change_plan_preview/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#ping_subscription/2","title":"PlausibleWeb.BillingController.ping_subscription/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#preview_susbcription/2","title":"PlausibleWeb.BillingController.preview_susbcription/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#upgrade/2","title":"PlausibleWeb.BillingController.upgrade/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#upgrade_enterprise_plan/2","title":"PlausibleWeb.BillingController.upgrade_enterprise_plan/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#upgrade_success/2","title":"PlausibleWeb.BillingController.upgrade_success/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html","title":"PlausibleWeb.BillingView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.BillingView.html#__resource__/0","title":"PlausibleWeb.BillingView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#base_domain/0","title":"PlausibleWeb.BillingView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_enterprise_plan.html/1","title":"PlausibleWeb.BillingView.change_enterprise_plan.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_enterprise_plan_contact_us.html/1","title":"PlausibleWeb.BillingView.change_enterprise_plan_contact_us.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_plan.html/1","title":"PlausibleWeb.BillingView.change_plan.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_plan_preview.html/1","title":"PlausibleWeb.BillingView.change_plan_preview.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#plausible_url/0","title":"PlausibleWeb.BillingView.plausible_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#present_currency/1","title":"PlausibleWeb.BillingView.present_currency/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#present_date/1","title":"PlausibleWeb.BillingView.present_date/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#reccommended_plan/1","title":"PlausibleWeb.BillingView.reccommended_plan/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.BillingView.html#render/2","title":"PlausibleWeb.BillingView.render/2","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.BillingView.html#template_not_found/2","title":"PlausibleWeb.BillingView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#upgrade.html/1","title":"PlausibleWeb.BillingView.upgrade.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#upgrade_success.html/1","title":"PlausibleWeb.BillingView.upgrade_success.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#upgrade_to_plan.html/1","title":"PlausibleWeb.BillingView.upgrade_to_plan.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.CRMAuthPlug.html","title":"PlausibleWeb.CRMAuthPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.CRMAuthPlug.html#call/2","title":"PlausibleWeb.CRMAuthPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.CRMAuthPlug.html#init/1","title":"PlausibleWeb.CRMAuthPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Captcha.html","title":"PlausibleWeb.Captcha","type":"module"},{"doc":"","ref":"PlausibleWeb.Captcha.html#enabled?/0","title":"PlausibleWeb.Captcha.enabled?/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Captcha.html#sitekey/0","title":"PlausibleWeb.Captcha.sitekey/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Captcha.html#verify/1","title":"PlausibleWeb.Captcha.verify/1","type":"function"},{"doc":"Generic reusable components","ref":"PlausibleWeb.Components.Generic.html","title":"PlausibleWeb.Components.Generic","type":"module"},{"doc":"","ref":"PlausibleWeb.Components.Generic.html#notice/1","title":"PlausibleWeb.Components.Generic.notice/1","type":"function"},{"doc":"* `title` (`:string`) - Defaults to `\"Notice\"`.\n* `class` (`:string`) - Defaults to `\"\"`.","ref":"PlausibleWeb.Components.Generic.html#notice/1-attributes","title":"Attributes - PlausibleWeb.Components.Generic.notice/1","type":"function"},{"doc":"* `inner_block`","ref":"PlausibleWeb.Components.Generic.html#notice/1-slots","title":"Slots - PlausibleWeb.Components.Generic.notice/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Generic.html#styled_link/1","title":"PlausibleWeb.Components.Generic.styled_link/1","type":"function"},{"doc":"* `href` (`:string`) (required)\n* `new_tab` (`:boolean`)\n* `class` (`:string`) - Defaults to `\"\"`.","ref":"PlausibleWeb.Components.Generic.html#styled_link/1-attributes","title":"Attributes - PlausibleWeb.Components.Generic.styled_link/1","type":"function"},{"doc":"* `inner_block`","ref":"PlausibleWeb.Components.Generic.html#styled_link/1-slots","title":"Slots - PlausibleWeb.Components.Generic.styled_link/1","type":"function"},{"doc":"Phoenix Component for rendering a user-facing feature toggle\ncapable of flipping booleans in `Plausible.Site` via the `toggle_feature` controller action.","ref":"PlausibleWeb.Components.Site.Feature.html","title":"PlausibleWeb.Components.Site.Feature","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.Components.Site.Feature.html#__resource__/0","title":"PlausibleWeb.Components.Site.Feature.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#button_active/1","title":"PlausibleWeb.Components.Site.Feature.button_active/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#button_inactive/1","title":"PlausibleWeb.Components.Site.Feature.button_inactive/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.Components.Site.Feature.html#render/2","title":"PlausibleWeb.Components.Site.Feature.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#target/4","title":"PlausibleWeb.Components.Site.Feature.target/4","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.Components.Site.Feature.html#template_not_found/2","title":"PlausibleWeb.Components.Site.Feature.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#toggle/1","title":"PlausibleWeb.Components.Site.Feature.toggle/1","type":"function"},{"doc":"* `site` (`Plausible.Site`) (required)\n* `setting` (`:atom`) (required)\n* `label` (`:string`) (required)\n* `conn` (`Plug.Conn`) (required)","ref":"PlausibleWeb.Components.Site.Feature.html#toggle/1-attributes","title":"Attributes - PlausibleWeb.Components.Site.Feature.toggle/1","type":"function"},{"doc":"* `inner_block`","ref":"PlausibleWeb.Components.Site.Feature.html#toggle/1-slots","title":"Slots - PlausibleWeb.Components.Site.Feature.toggle/1","type":"function"},{"doc":"This module defines the test case to be used by\ntests that require setting up a connection.\n\nSuch tests rely on `Phoenix.ConnTest` and also\nimport other functionality to make it easier\nto build common data structures and query the data layer.\n\nFinally, if the test case interacts with the database,\nit cannot be async. For this reason, every test runs\ninside a transaction which is reset at the beginning\nof the test unless the test case is marked as async.","ref":"PlausibleWeb.ConnCase.html","title":"PlausibleWeb.ConnCase","type":"module"},{"doc":"","ref":"PlausibleWeb.ControllerHelpers.html","title":"PlausibleWeb.ControllerHelpers","type":"module"},{"doc":"","ref":"PlausibleWeb.ControllerHelpers.html#render_error/2","title":"PlausibleWeb.ControllerHelpers.render_error/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ControllerHelpers.html#render_error/3","title":"PlausibleWeb.ControllerHelpers.render_error/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html","title":"PlausibleWeb.Email","type":"module"},{"doc":"","ref":"PlausibleWeb.Email.html#activation_email/2","title":"PlausibleWeb.Email.activation_email/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#base_email/0","title":"PlausibleWeb.Email.base_email/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#base_email/1","title":"PlausibleWeb.Email.base_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#cancellation_email/1","title":"PlausibleWeb.Email.cancellation_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#check_stats_email/1","title":"PlausibleWeb.Email.check_stats_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#create_site_email/1","title":"PlausibleWeb.Email.create_site_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#dashboard_locked/4","title":"PlausibleWeb.Email.dashboard_locked/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#enterprise_over_limit_internal_email/5","title":"PlausibleWeb.Email.enterprise_over_limit_internal_email/5","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#error_report/3","title":"PlausibleWeb.Email.error_report/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#existing_user_invitation/1","title":"PlausibleWeb.Email.existing_user_invitation/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#import_failure/2","title":"PlausibleWeb.Email.import_failure/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#import_success/2","title":"PlausibleWeb.Email.import_success/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#invitation_accepted/1","title":"PlausibleWeb.Email.invitation_accepted/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#invitation_rejected/1","title":"PlausibleWeb.Email.invitation_rejected/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#mailer_email_from/0","title":"PlausibleWeb.Email.mailer_email_from/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#new_user_invitation/1","title":"PlausibleWeb.Email.new_user_invitation/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#over_limit_email/4","title":"PlausibleWeb.Email.over_limit_email/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#ownership_transfer_accepted/1","title":"PlausibleWeb.Email.ownership_transfer_accepted/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#ownership_transfer_rejected/1","title":"PlausibleWeb.Email.ownership_transfer_rejected/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#ownership_transfer_request/2","title":"PlausibleWeb.Email.ownership_transfer_request/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#password_reset_email/2","title":"PlausibleWeb.Email.password_reset_email/2","type":"function"},{"doc":"Unlike the default 'base' emails, priority emails cannot be unsubscribed from. This is achieved\n by sending them through a dedicated 'priority' message stream in Postmark.","ref":"PlausibleWeb.Email.html#priority_email/0","title":"PlausibleWeb.Email.priority_email/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#priority_email/1","title":"PlausibleWeb.Email.priority_email/1","type":"function"},{"doc":"Render an Phoenix template and set the body on the email.\n\nPass an atom as the template name (:welcome_email) to render HTML *and* plain\ntext emails. Use a string if you only want to render one type, e.g.\n\"welcome_email.text\" or \"welcome_email.html\". Scroll to the top for more examples.","ref":"PlausibleWeb.Email.html#render/3","title":"PlausibleWeb.Email.render/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#site_member_removed/1","title":"PlausibleWeb.Email.site_member_removed/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#site_setup_help/2","title":"PlausibleWeb.Email.site_setup_help/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#site_setup_success/2","title":"PlausibleWeb.Email.site_setup_success/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#spike_notification/5","title":"PlausibleWeb.Email.spike_notification/5","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#trial_one_week_reminder/1","title":"PlausibleWeb.Email.trial_one_week_reminder/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#trial_over_email/1","title":"PlausibleWeb.Email.trial_over_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#trial_upgrade_email/3","title":"PlausibleWeb.Email.trial_upgrade_email/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#weekly_report/3","title":"PlausibleWeb.Email.weekly_report/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#welcome_email/1","title":"PlausibleWeb.Email.welcome_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#yearly_expiration_notification/1","title":"PlausibleWeb.Email.yearly_expiration_notification/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#yearly_renewal_notification/1","title":"PlausibleWeb.Email.yearly_renewal_notification/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html","title":"PlausibleWeb.EmailView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.EmailView.html#__resource__/0","title":"PlausibleWeb.EmailView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#activation_email.html/1","title":"PlausibleWeb.EmailView.activation_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#base_domain/0","title":"PlausibleWeb.EmailView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#cancellation_email.html/1","title":"PlausibleWeb.EmailView.cancellation_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#check_stats_email.html/1","title":"PlausibleWeb.EmailView.check_stats_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#create_site_email.html/1","title":"PlausibleWeb.EmailView.create_site_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#dashboard_locked.html/1","title":"PlausibleWeb.EmailView.dashboard_locked.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#date_format/1","title":"PlausibleWeb.EmailView.date_format/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#enterprise_over_limit_internal.html/1","title":"PlausibleWeb.EmailView.enterprise_over_limit_internal.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#error_report_email.html/1","title":"PlausibleWeb.EmailView.error_report_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#existing_user_invitation.html/1","title":"PlausibleWeb.EmailView.existing_user_invitation.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#google_analytics_import.html/1","title":"PlausibleWeb.EmailView.google_analytics_import.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#greet_recipient/1","title":"PlausibleWeb.EmailView.greet_recipient/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#invitation_accepted.html/1","title":"PlausibleWeb.EmailView.invitation_accepted.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#invitation_rejected.html/1","title":"PlausibleWeb.EmailView.invitation_rejected.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#new_user_invitation.html/1","title":"PlausibleWeb.EmailView.new_user_invitation.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#over_limit.html/1","title":"PlausibleWeb.EmailView.over_limit.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#ownership_transfer_accepted.html/1","title":"PlausibleWeb.EmailView.ownership_transfer_accepted.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#ownership_transfer_rejected.html/1","title":"PlausibleWeb.EmailView.ownership_transfer_rejected.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#ownership_transfer_request.html/1","title":"PlausibleWeb.EmailView.ownership_transfer_request.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#password_reset_email.html/1","title":"PlausibleWeb.EmailView.password_reset_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#plausible_url/0","title":"PlausibleWeb.EmailView.plausible_url/0","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.EmailView.html#render/2","title":"PlausibleWeb.EmailView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#sentry_link/2","title":"PlausibleWeb.EmailView.sentry_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#site_member_removed.html/1","title":"PlausibleWeb.EmailView.site_member_removed.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#site_setup_help_email.html/1","title":"PlausibleWeb.EmailView.site_setup_help_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#site_setup_success_email.html/1","title":"PlausibleWeb.EmailView.site_setup_success_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#spike_notification.html/1","title":"PlausibleWeb.EmailView.spike_notification.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.EmailView.html#template_not_found/2","title":"PlausibleWeb.EmailView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#trial_one_week_reminder.html/1","title":"PlausibleWeb.EmailView.trial_one_week_reminder.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#trial_over_email.html/1","title":"PlausibleWeb.EmailView.trial_over_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#trial_upgrade_email.html/1","title":"PlausibleWeb.EmailView.trial_upgrade_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#welcome_email.html/1","title":"PlausibleWeb.EmailView.welcome_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#yearly_expiration_notification.html/1","title":"PlausibleWeb.EmailView.yearly_expiration_notification.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#yearly_renewal_notification.html/1","title":"PlausibleWeb.EmailView.yearly_renewal_notification.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html","title":"PlausibleWeb.Endpoint","type":"module"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast/3","title":"PlausibleWeb.Endpoint.broadcast/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast!/3","title":"PlausibleWeb.Endpoint.broadcast!/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast_from/4","title":"PlausibleWeb.Endpoint.broadcast_from/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast_from!/4","title":"PlausibleWeb.Endpoint.broadcast_from!/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#call/2","title":"PlausibleWeb.Endpoint.call/2","type":"function"},{"doc":"Returns the child specification to start the endpoint\nunder a supervision tree.","ref":"PlausibleWeb.Endpoint.html#child_spec/1","title":"PlausibleWeb.Endpoint.child_spec/1","type":"function"},{"doc":"Returns the endpoint configuration for `key`\n\nReturns `default` if the key does not exist.","ref":"PlausibleWeb.Endpoint.html#config/2","title":"PlausibleWeb.Endpoint.config/2","type":"function"},{"doc":"Reloads the configuration given the application environment changes.","ref":"PlausibleWeb.Endpoint.html#config_change/2","title":"PlausibleWeb.Endpoint.config_change/2","type":"function"},{"doc":"Returns the host for the given endpoint.","ref":"PlausibleWeb.Endpoint.html#host/0","title":"PlausibleWeb.Endpoint.host/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#init/1","title":"PlausibleWeb.Endpoint.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#local_broadcast/3","title":"PlausibleWeb.Endpoint.local_broadcast/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#local_broadcast_from/4","title":"PlausibleWeb.Endpoint.local_broadcast_from/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#patch_session_opts/0","title":"PlausibleWeb.Endpoint.patch_session_opts/0","type":"function"},{"doc":"Generates the path information when routing to this endpoint.","ref":"PlausibleWeb.Endpoint.html#path/1","title":"PlausibleWeb.Endpoint.path/1","type":"function"},{"doc":"Generates the script name.","ref":"PlausibleWeb.Endpoint.html#script_name/0","title":"PlausibleWeb.Endpoint.script_name/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#secure_cookie?/0","title":"PlausibleWeb.Endpoint.secure_cookie?/0","type":"function"},{"doc":"Starts the endpoint supervision tree.\n\nAll other options are merged into the endpoint configuration.","ref":"PlausibleWeb.Endpoint.html#start_link/1","title":"PlausibleWeb.Endpoint.start_link/1","type":"function"},{"doc":"Generates a base64-encoded cryptographic hash (sha512) to a static file\nin `priv/static`. Meant to be used for Subresource Integrity with CDNs.","ref":"PlausibleWeb.Endpoint.html#static_integrity/1","title":"PlausibleWeb.Endpoint.static_integrity/1","type":"function"},{"doc":"Returns a two item tuple with the first item being the `static_path`\nand the second item being the `static_integrity`.","ref":"PlausibleWeb.Endpoint.html#static_lookup/1","title":"PlausibleWeb.Endpoint.static_lookup/1","type":"function"},{"doc":"Generates a route to a static file in `priv/static`.","ref":"PlausibleWeb.Endpoint.html#static_path/1","title":"PlausibleWeb.Endpoint.static_path/1","type":"function"},{"doc":"Generates the static URL without any path information.\n\nIt uses the configuration under `:static_url` to generate\nsuch. It falls back to `:url` if `:static_url` is not set.","ref":"PlausibleWeb.Endpoint.html#static_url/0","title":"PlausibleWeb.Endpoint.static_url/0","type":"function"},{"doc":"Generates the endpoint base URL but as a `URI` struct.\n\nIt uses the configuration under `:url` to generate such.\nUseful for manipulating the URL data and passing it to\nURL helpers.","ref":"PlausibleWeb.Endpoint.html#struct_url/0","title":"PlausibleWeb.Endpoint.struct_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#subscribe/2","title":"PlausibleWeb.Endpoint.subscribe/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#unsubscribe/1","title":"PlausibleWeb.Endpoint.unsubscribe/1","type":"function"},{"doc":"Generates the endpoint base URL without any path information.\n\nIt uses the configuration under `:url` to generate such.","ref":"PlausibleWeb.Endpoint.html#url/0","title":"PlausibleWeb.Endpoint.url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#websocket_url/0","title":"PlausibleWeb.Endpoint.websocket_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorHelpers.html","title":"PlausibleWeb.ErrorHelpers","type":"module"},{"doc":"","ref":"PlausibleWeb.ErrorHelpers.html#error_tag/2","title":"PlausibleWeb.ErrorHelpers.error_tag/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorHelpers.html#translate_error/1","title":"PlausibleWeb.ErrorHelpers.translate_error/1","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorReportController.html","title":"PlausibleWeb.ErrorReportController","type":"module"},{"doc":"","ref":"PlausibleWeb.ErrorReportController.html#submit_error_report/2","title":"PlausibleWeb.ErrorReportController.submit_error_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html","title":"PlausibleWeb.ErrorView","type":"module"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#404_error.html/1","title":"PlausibleWeb.ErrorView.404_error.html/1","type":"function"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.ErrorView.html#__resource__/0","title":"PlausibleWeb.ErrorView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#generic_error.html/1","title":"PlausibleWeb.ErrorView.generic_error.html/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.ErrorView.html#render/2","title":"PlausibleWeb.ErrorView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#server_error.html/1","title":"PlausibleWeb.ErrorView.server_error.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#server_error_report_thanks.html/1","title":"PlausibleWeb.ErrorView.server_error_report_thanks.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.ErrorView.html#template_not_found/2","title":"PlausibleWeb.ErrorView.template_not_found/2","type":"function"},{"doc":"A Plug that fetches favicon images from DuckDuckGo and returns them\nto the Plausible frontend.\n\nThe proxying is there so we can reduce the number of third-party domains that\nthe browser clients need to connect to. Our goal is to have 0 third-party domain\nconnections on the website for privacy reasons.\n\nThis module also maps between categorized sources and their respective URLs for favicons.\nWhat does that mean exactly? During ingestion we use `PlausibleWeb.RefInspector.parse/1` to\ncategorize our referrer sources like so:\n\ngoogle.com -> Google\ngoogle.co.uk -> Google\ngoogle.com.au -> Google\n\nSo when we show Google as a source in the dashboard, the request to this plug will come as:\nhttps://plausible/io/favicon/sources/Google\n\nNow, when we want to show a favicon for Google, we need to convert Google -> google.com or\nsome other hostname owned by Google:\nhttps://icons.duckduckgo.com/ip3/google.com.ico\n\nThe mapping from source category -> source hostname is stored in \"priv/referer_favicon_domains.json\" and\nmanaged by `Mix.Tasks.GenerateReferrerFavicons.run/1`","ref":"PlausibleWeb.Favicon.html","title":"PlausibleWeb.Favicon","type":"module"},{"doc":"Proxies HTTP request to DuckDuckGo favicon service. Swallows hop-by-hop HTTP\nheaders that should not be forwarded as defined in [RFC 2616](https://www.rfc-editor.org/rfc/rfc2616#section-13.5.1)","ref":"PlausibleWeb.Favicon.html#call/2","title":"PlausibleWeb.Favicon.call/2","type":"function"},{"doc":"Cases where we show a placeholder icon instead:\n\n1. In case of network error to DuckDuckGo\n2. In case of non-2xx status code from DuckDuckGo\n3. In case of broken image response body from DuckDuckGo\n\nI'm not sure why DDG sometimes returns a broken PNG image in their response\nbut we filter that out. When the icon request fails, we show a placeholder\nfavicon instead. The placeholder is an emoji from\n[https://favicon.io/emoji-favicons/](https://favicon.io/emoji-favicons/)\n\nDuckDuckGo favicon service has some issues with [SVG favicons](https://css-tricks.com/svg-favicons-and-all-the-fun-things-we-can-do-with-them/).\nFor some reason, they return them with `content-type=image/x-icon` whereas SVG\nicons should be returned with `content-type=image/svg+xml`. This Plug detects\nwhen the response body starts with ` People. It's important to enforce permissions in this controller.\n\n Owner - Can manage users, can trigger a 'transfer ownership' request\n Admin - Can manage users\n Viewer - Can not access user management settings\n Anyone - Can accept invitations\n\n Everything else should be explicitly disallowed.","ref":"PlausibleWeb.Site.MembershipController.html","title":"PlausibleWeb.Site.MembershipController","type":"module"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#invite_member/2","title":"PlausibleWeb.Site.MembershipController.invite_member/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#invite_member_form/2","title":"PlausibleWeb.Site.MembershipController.invite_member_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#remove_member/2","title":"PlausibleWeb.Site.MembershipController.remove_member/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#transfer_ownership/2","title":"PlausibleWeb.Site.MembershipController.transfer_ownership/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#transfer_ownership_form/2","title":"PlausibleWeb.Site.MembershipController.transfer_ownership_form/2","type":"function"},{"doc":"Updates the role of a user. The user being updated could be the same or different from the user taking\n the action. When updating the role, it's important to enforce permissions:\n\n Owner - Can update anyone's role except for themselves. If they want to change their own role, they have to use the 'transfer ownership' feature.\n Admin - Can update anyone's role except for owners. Can downgrade their own access to 'viewer'. Can promote a viewer to admin.","ref":"PlausibleWeb.Site.MembershipController.html#update_role/2","title":"PlausibleWeb.Site.MembershipController.update_role/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipView.html","title":"PlausibleWeb.Site.MembershipView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.Site.MembershipView.html#__resource__/0","title":"PlausibleWeb.Site.MembershipView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipView.html#invite_member_form.html/1","title":"PlausibleWeb.Site.MembershipView.invite_member_form.html/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.Site.MembershipView.html#render/2","title":"PlausibleWeb.Site.MembershipView.render/2","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.Site.MembershipView.html#template_not_found/2","title":"PlausibleWeb.Site.MembershipView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipView.html#transfer_ownership_form.html/1","title":"PlausibleWeb.Site.MembershipView.transfer_ownership_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html","title":"PlausibleWeb.SiteController","type":"module"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_monthly_report_recipient/2","title":"PlausibleWeb.SiteController.add_monthly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_snippet/2","title":"PlausibleWeb.SiteController.add_snippet/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_snippet_after_domain_change/2","title":"PlausibleWeb.SiteController.add_snippet_after_domain_change/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_spike_notification_recipient/2","title":"PlausibleWeb.SiteController.add_spike_notification_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_weekly_report_recipient/2","title":"PlausibleWeb.SiteController.add_weekly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#change_domain/2","title":"PlausibleWeb.SiteController.change_domain/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#change_domain_submit/2","title":"PlausibleWeb.SiteController.change_domain_submit/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#create_shared_link/2","title":"PlausibleWeb.SiteController.create_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#create_site/2","title":"PlausibleWeb.SiteController.create_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_custom_domain/2","title":"PlausibleWeb.SiteController.delete_custom_domain/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_google_auth/2","title":"PlausibleWeb.SiteController.delete_google_auth/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_shared_link/2","title":"PlausibleWeb.SiteController.delete_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_site/2","title":"PlausibleWeb.SiteController.delete_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#disable_monthly_report/2","title":"PlausibleWeb.SiteController.disable_monthly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#disable_spike_notification/2","title":"PlausibleWeb.SiteController.disable_spike_notification/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#disable_weekly_report/2","title":"PlausibleWeb.SiteController.disable_weekly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#edit_shared_link/2","title":"PlausibleWeb.SiteController.edit_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#enable_monthly_report/2","title":"PlausibleWeb.SiteController.enable_monthly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#enable_spike_notification/2","title":"PlausibleWeb.SiteController.enable_spike_notification/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#enable_weekly_report/2","title":"PlausibleWeb.SiteController.enable_weekly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#forget_imported/2","title":"PlausibleWeb.SiteController.forget_imported/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google/2","title":"PlausibleWeb.SiteController.import_from_google/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_confirm/2","title":"PlausibleWeb.SiteController.import_from_google_confirm/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_user_metric_notice/2","title":"PlausibleWeb.SiteController.import_from_google_user_metric_notice/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_view_id/2","title":"PlausibleWeb.SiteController.import_from_google_view_id/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_view_id_form/2","title":"PlausibleWeb.SiteController.import_from_google_view_id_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#index/2","title":"PlausibleWeb.SiteController.index/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#make_private/2","title":"PlausibleWeb.SiteController.make_private/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#make_public/2","title":"PlausibleWeb.SiteController.make_public/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#new/2","title":"PlausibleWeb.SiteController.new/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#new_shared_link/2","title":"PlausibleWeb.SiteController.new_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#remove_monthly_report_recipient/2","title":"PlausibleWeb.SiteController.remove_monthly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#remove_spike_notification_recipient/2","title":"PlausibleWeb.SiteController.remove_spike_notification_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#remove_weekly_report_recipient/2","title":"PlausibleWeb.SiteController.remove_weekly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#reset_stats/2","title":"PlausibleWeb.SiteController.reset_stats/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings/2","title":"PlausibleWeb.SiteController.settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_custom_domain/2","title":"PlausibleWeb.SiteController.settings_custom_domain/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_danger_zone/2","title":"PlausibleWeb.SiteController.settings_danger_zone/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_email_reports/2","title":"PlausibleWeb.SiteController.settings_email_reports/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_funnels/2","title":"PlausibleWeb.SiteController.settings_funnels/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_general/2","title":"PlausibleWeb.SiteController.settings_general/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_goals/2","title":"PlausibleWeb.SiteController.settings_goals/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_people/2","title":"PlausibleWeb.SiteController.settings_people/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_props/2","title":"PlausibleWeb.SiteController.settings_props/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_search_console/2","title":"PlausibleWeb.SiteController.settings_search_console/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_visibility/2","title":"PlausibleWeb.SiteController.settings_visibility/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_feature_visibility/2","title":"PlausibleWeb.SiteController.update_feature_visibility/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_google_auth/2","title":"PlausibleWeb.SiteController.update_google_auth/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_settings/2","title":"PlausibleWeb.SiteController.update_settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_shared_link/2","title":"PlausibleWeb.SiteController.update_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_spike_notification/2","title":"PlausibleWeb.SiteController.update_spike_notification/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html","title":"PlausibleWeb.SiteView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.SiteView.html#__resource__/0","title":"PlausibleWeb.SiteView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#base_domain/0","title":"PlausibleWeb.SiteView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#change_domain.html/1","title":"PlausibleWeb.SiteView.change_domain.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#edit_shared_link.html/1","title":"PlausibleWeb.SiteView.edit_shared_link.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#goal_name/1","title":"PlausibleWeb.SiteView.goal_name/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#google_logo/1","title":"PlausibleWeb.SiteView.google_logo/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#gravatar/2","title":"PlausibleWeb.SiteView.gravatar/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#import_from_google_confirm.html/1","title":"PlausibleWeb.SiteView.import_from_google_confirm.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#import_from_google_user_metric_form.html/1","title":"PlausibleWeb.SiteView.import_from_google_user_metric_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#import_from_google_view_id_form.html/1","title":"PlausibleWeb.SiteView.import_from_google_view_id_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#index.html/1","title":"PlausibleWeb.SiteView.index.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#new.html/1","title":"PlausibleWeb.SiteView.new.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#new_shared_link.html/1","title":"PlausibleWeb.SiteView.new_shared_link.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#plausible_url/0","title":"PlausibleWeb.SiteView.plausible_url/0","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.SiteView.html#render/2","title":"PlausibleWeb.SiteView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#render_snippet/1","title":"PlausibleWeb.SiteView.render_snippet/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_custom_domain.html/1","title":"PlausibleWeb.SiteView.settings_custom_domain.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_danger_zone.html/1","title":"PlausibleWeb.SiteView.settings_danger_zone.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_email_reports.html/1","title":"PlausibleWeb.SiteView.settings_email_reports.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_funnels.html/1","title":"PlausibleWeb.SiteView.settings_funnels.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_general.html/1","title":"PlausibleWeb.SiteView.settings_general.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_goals.html/1","title":"PlausibleWeb.SiteView.settings_goals.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_people.html/1","title":"PlausibleWeb.SiteView.settings_people.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_props.html/1","title":"PlausibleWeb.SiteView.settings_props.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_search_console.html/1","title":"PlausibleWeb.SiteView.settings_search_console.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_visibility.html/1","title":"PlausibleWeb.SiteView.settings_visibility.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#shared_link_dest/2","title":"PlausibleWeb.SiteView.shared_link_dest/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#snippet.html/1","title":"PlausibleWeb.SiteView.snippet.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#snippet_after_domain_change.html/1","title":"PlausibleWeb.SiteView.snippet_after_domain_change.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.SiteView.html#template_not_found/2","title":"PlausibleWeb.SiteView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#with_indefinite_article/1","title":"PlausibleWeb.SiteView.with_indefinite_article/1","type":"function"},{"doc":"This controller is responsible for rendering stats dashboards.\n\nThe stats dashboards are currently the only part of the app that uses client-side\nrendering. Since the dashboards are heavily interactive, they are built with React\nwhich is an appropriate choice for highly interactive browser UIs.\n\n \nsequenceDiagram\n Browser->>StatsController: GET /mydomain.com\n StatsController-->>Browser: StatsView.render(\"stats.html\")\n Note left of Browser: ReactDom.render(Dashboard)\n\n Browser -) Api.StatsController: GET /api/stats/mydomain.com/top-stats\n Api.StatsController --) Browser: {\"top_stats\": [...]}\n Note left of Browser: TopStats.render()\n\n Browser -) Api.StatsController: GET /api/stats/mydomain.com/main-graph\n Api.StatsController --) Browser: [{\"plot\": [...], \"labels\": [...]}, ...]\n Note left of Browser: VisitorGraph.render()\n\n Browser -) Api.StatsController: GET /api/stats/mydomain.com/sources\n Api.StatsController --) Browser: [{\"name\": \"Google\", \"visitors\": 292150}, ...]\n Note left of Browser: Sources.render()\n\n Note over Browser,StatsController: And so on, for all reports in the viewport\n \n\nThis reasoning for this sequence is as follows:\n 1. First paint is fast because it doesn't do any data aggregation yet - good UX\n 2. The basic structure of the dashboard is rendered with spinners before reports are ready - good UX\n 2. Rendering on the frontend allows for maximum interactivity. Re-rendering and re-fetching can be as granular as needed.\n 3. Routing on the frontend allows the user to navigate the dashboard without reloading the page and losing context\n 4. Rendering on the frontend allows caching results in the browser to reduce pressure on backends and storage\n 3.1 No client-side caching has been implemented yet. This is still theoretical. See https://github.com/plausible/analytics/discussions/1278\n 3.2 This is a big potential opportunity, because analytics data is mostly immutable. Clients can cache all historical data.\n 5. Since frontend rendering & navigation is harder to build and maintain than regular server-rendered HTML, we don't use SPA-style rendering anywhere else\n .The only place currently where the benefits outweigh the costs is the dashboard.","ref":"PlausibleWeb.StatsController.html","title":"PlausibleWeb.StatsController","type":"module"},{"doc":"","ref":"PlausibleWeb.StatsController.html#authenticate_shared_link/2","title":"PlausibleWeb.StatsController.authenticate_shared_link/2","type":"function"},{"doc":"The export is limited to 300 entries for other reports and 100 entries for pages because bigger result sets\nstart causing failures. Since we request data like time on page or bounce_rate for pages in a separate query\nusing the IN filter, it causes the requests to balloon in payload size.","ref":"PlausibleWeb.StatsController.html#csv_export/2","title":"PlausibleWeb.StatsController.csv_export/2","type":"function"},{"doc":"Authorizes and renders a shared link:\n 1. Shared link with no password protection: needs to just make sure the shared link entry is still\n in our database. This check makes sure shared link access can be revoked by the site admins. If the\n shared link exists, render it directly.\n\n 2. Shared link with password protection: Same checks as without the password, but an extra step is taken to\n protect the page with a password. When the user passes the password challenge, a cookie is set with Plausible.Auth.Token.sign_shared_link().\n The cookie allows the user to access the dashboard for 24 hours without entering the password again.\n\n #","ref":"PlausibleWeb.StatsController.html#shared_link/2","title":"PlausibleWeb.StatsController.shared_link/2","type":"function"},{"doc":"The URL format for shared links was changed in [this pull request](https://github.com/plausible/analytics/pull/752) in order\n to make the URLs easier to bookmark. The old format is supported along with the new in order to not break old links.\n\n See: https://plausible.io/docs/shared-links","ref":"PlausibleWeb.StatsController.html#shared_link/2-backwards-compatibility","title":"Backwards compatibility - PlausibleWeb.StatsController.shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsController.html#stats/2","title":"PlausibleWeb.StatsController.stats/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html","title":"PlausibleWeb.StatsView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.StatsView.html#__resource__/0","title":"PlausibleWeb.StatsView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#base_domain/0","title":"PlausibleWeb.StatsView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#large_number_format/1","title":"PlausibleWeb.StatsView.large_number_format/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#plausible_url/0","title":"PlausibleWeb.StatsView.plausible_url/0","type":"function"},{"doc":"Returns a readable stats URL.\n\nNative Phoenix router functions percent-encode all diacritics, resulting in\nugly URLs, e.g. `https://plausible.io/café.com` transforms into\n`https://plausible.io/caf%C3%A9.com`.\n\nThis function encodes only the slash (`/`) character from the site's domain.","ref":"PlausibleWeb.StatsView.html#pretty_stats_url/1","title":"PlausibleWeb.StatsView.pretty_stats_url/1","type":"function"},{"doc":"iex> PlausibleWeb.StatsView.pretty_stats_url(%Plausible.Site{domain: \"user.gittea.io/repo\"})\n \"http://localhost:8000/user.gittea.io%2Frepo\"\n\n iex> PlausibleWeb.StatsView.pretty_stats_url(%Plausible.Site{domain: \"anakin.test\"})\n \"http://localhost:8000/anakin.test\"\n\n iex> PlausibleWeb.StatsView.pretty_stats_url(%Plausible.Site{domain: \"café.test\"})\n \"http://localhost:8000/café.test\"","ref":"PlausibleWeb.StatsView.html#pretty_stats_url/1-examples","title":"Examples - PlausibleWeb.StatsView.pretty_stats_url/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.StatsView.html#render/2","title":"PlausibleWeb.StatsView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#shared_link_password.html/1","title":"PlausibleWeb.StatsView.shared_link_password.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#site_locked.html/1","title":"PlausibleWeb.StatsView.site_locked.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#stats.html/1","title":"PlausibleWeb.StatsView.stats.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#stats_container_class/1","title":"PlausibleWeb.StatsView.stats_container_class/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.StatsView.html#template_not_found/2","title":"PlausibleWeb.StatsView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#waiting_first_pageview.html/1","title":"PlausibleWeb.StatsView.waiting_first_pageview.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Tracker.html","title":"PlausibleWeb.Tracker","type":"module"},{"doc":"","ref":"PlausibleWeb.Tracker.html#call/2","title":"PlausibleWeb.Tracker.call/2","type":"function"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"PlausibleWeb.Tracker.html#child_spec/1","title":"PlausibleWeb.Tracker.child_spec/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Tracker.html#init/1","title":"PlausibleWeb.Tracker.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeController.html","title":"PlausibleWeb.UnsubscribeController","type":"module"},{"doc":"","ref":"PlausibleWeb.UnsubscribeController.html#monthly_report/2","title":"PlausibleWeb.UnsubscribeController.monthly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeController.html#weekly_report/2","title":"PlausibleWeb.UnsubscribeController.weekly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeView.html","title":"PlausibleWeb.UnsubscribeView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.UnsubscribeView.html#__resource__/0","title":"PlausibleWeb.UnsubscribeView.__resource__/0","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.UnsubscribeView.html#render/2","title":"PlausibleWeb.UnsubscribeView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeView.html#success.html/1","title":"PlausibleWeb.UnsubscribeView.success.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.UnsubscribeView.html#template_not_found/2","title":"PlausibleWeb.UnsubscribeView.template_not_found/2","type":"function"},{"doc":"# Plausible Analytics\n\n \n \n \n \n \n \n Simple Metrics |\n Lightweight Script |\n Privacy Focused |\n Open Source |\n Docs |\n Contributing \n \n \n\n[Plausible Analytics](https://plausible.io/) is an easy to use, lightweight (< 1 KB), open source and privacy-friendly alternative to Google Analytics. It doesn’t use cookies and is fully compliant with GDPR, CCPA and PECR. You can self-host or have us run Plausible for you in the cloud. Here's [the live demo of our own website stats](https://plausible.io/plausible.io). Made and hosted in the EU 🇪🇺\n\nWe are dedicated to making web analytics more privacy-friendly. Our mission is to reduce corporate surveillance by providing an alternative web analytics tool which doesn’t come from the AdTech world. We are completely independent and solely funded by our subscribers.\n\n","ref":"readme.html","title":"Introduction","type":"extras"},{"doc":"Here's what makes Plausible a great Google Analytics alternative and why we're trusted by 11,000+ paying subscribers to deliver their website and business insights:\n\n- **Clutter Free**: Plausible Analytics provides [simple web analytics](https://plausible.io/simple-web-analytics) and it cuts through the noise. No layers of menus, no need for custom reports. Get all the important insights on one single page. No training necessary.\n- **GDPR/CCPA/PECR compliant**: Measure traffic, not individuals. No personal data or IP addresses are ever stored in our database. We don't use cookies or any other persistent identifiers. [Read more about our data policy](https://plausible.io/data-policy)\n- **Lightweight**: Plausible Analytics works by loading a script on your website, like Google Analytics. Our script is [45x smaller](https://plausible.io/lightweight-web-analytics), making your website quicker to load. You can also send events directly to our [events API](https://plausible.io/docs/events-api).\n- **Email or Slack reports**: Keep an eye on your traffic with weekly and/or monthly email or Slack reports. You can also get traffic spike notifications.\n- **Invite team members and share stats**: You have the option to be transparent and open your web analytics to everyone. Your website stats are private by default but you can choose to make them public so anyone with your custom link can view them. You can [invite team members](https://plausible.io/docs/users-roles) and assign user roles too.\n- **Define key goals and track conversions**: Create custom events with custom dimensions to track conversions and attribution to understand and identify the trends that matter. Includes easy ways to track outbound link clicks, file downloads and 404 error pages.\n- **Search keywords**: Integrate your dashboard with Google Search Console to get the most accurate reporting on your search keywords.\n- **SPA support**: Plausible is built with modern web frameworks in mind and it works automatically with any pushState based router on the frontend. We also support frameworks that use the URL hash for routing. See [our documentation](https://plausible.io/docs/hash-based-routing).\n- **Smooth transition from Google Analytics**: There's a realtime dashboard, entry pages report and integration with Search Console. You can track your paid campaigns and conversions. You can invite team members. You can even [import your historical Google Analytics stats](https://plausible.io/docs/google-analytics-import). Learn how to [get the most out of your Plausible experience](https://plausible.io/docs/your-plausible-experience) and join thousands who have already migrated from Google Analytics.\n\nInterested to learn more? [Read more on our website](https://plausible.io), learn more about the team and the goals of the project on [our about page](https://plausible.io/about) or explore [the documentation](https://plausible.io/docs).","ref":"readme.html#why-plausible","title":"Why Plausible? - Introduction","type":"extras"},{"doc":"Plausible Analytics is an independently owned and actively developed project. To keep the project development going, to stay in business, to continue putting effort into building a better product and to cover our costs, we need to charge a fee.\n\nGoogle Analytics is free because Google has built their company and their wealth by collecting and analyzing huge amounts of personal information from web users and using these personal and behavioral insights to sell advertisements.\n\nPlausible has no part in that business model. No personal data is being collected and analyzed either. With Plausible, you 100% own and control all of your website data. This data is not being shared with or sold to any third-parties.\n\nWe choose the subscription business model rather than the business model of surveillance capitalism. See reasons why we believe you should [stop using Google Analytics on your website](https://plausible.io/blog/remove-google-analytics).","ref":"readme.html#why-is-plausible-analytics-cloud-not-free-like-google-analytics","title":"Why is Plausible Analytics Cloud not free like Google Analytics? - Introduction","type":"extras"},{"doc":"The easiest way to get started with Plausible is with [our official managed service in the cloud](https://plausible.io/#pricing). It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us.\n\nIn order to be compliant with the GDPR and the Schrems II ruling, all visitor data for our managed service in the cloud is exclusively processed on servers and cloud infrastructure owned and operated by European providers. Your website data never leaves the EU.\n\nOur managed hosting can save a substantial amount of developer time and resources. For most sites this ends up being the best value option and the revenue goes to funding the maintenance and further development of Plausible. So you’ll be supporting open source software and getting a great service!\n\n#","ref":"readme.html#getting-started-with-plausible","title":"Getting started with Plausible - Introduction","type":"extras"},{"doc":"Plausible is [open source web analytics](https://plausible.io/open-source-website-analytics) and we have a free as in beer [self-hosted solution](https://plausible.io/self-hosted-web-analytics). Here are the differences between Plausible Analytics managed hosting in the cloud and the self-hosting:\n\n| | Plausible Cloud | Self-Hosting |\n| ------------- | ------------- | ------------- |\n| Hosting | Easy and convenient. It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us. We manage everything so you don’t have to worry about anything and can focus on your stats. | You do it all yourself. You need to get a server and you need to manage your infrastructure. You are responsible for installation, maintenance, upgrades, server capacity, uptime, backup, security, stability, consistency, loading time and so on. |\n| Storage | All visitor data is exclusively processed on EU-owned cloud infrastructure. We keep your site data on a secure, encrypted and green energy powered server in Germany. This ensures that your site data is protected by the strict European Union data privacy laws and ensures compliance with GDPR. Your website data never leaves the EU. | You have full control and can host your instance on any server in any country that you wish. Host it on a server in your basement or host it with any cloud provider wherever you want, even those that are not GDPR compliant. |\n| Releases | Continuously developed and improved with new features and updates multiple times per week. | [It's a long term release](https://plausible.io/blog/building-open-source) published twice per year. Selected enterprise features are not available as we aim to ensure a protective barrier around our cloud offering. |\n| Raw data | You see all your site stats and metrics on our modern-looking, simple to use and fast loading dashboard. You can only see the stats aggregated in the dashboard. You can download the stats using the [CSV export](https://plausible.io/docs/export-stats), [stats API](https://plausible.io/docs/stats-api) or tools such as the [Data Studio Connector](https://plausible.io/docs/integration-guides#google-data-studio). | Do you want access to the raw data? Self-hosting gives you that option. You can take the data directly from the ClickHouse database. |\n| Premium Support | Real support delivered by real human beings who build and maintain Plausible. | Premium support is not included. Self-hosting is community supported only. |\n| Costs | There's a cost associated with providing an analytics service so we charge a subscription fee. We choose the subscription business model rather than the business model of surveillance capitalism. Your money funds further development of Plausible. | You need to pay for your server, CDN, backups and whatever other cost there is associated with running the infrastructure. You never have to pay any fees to us. Your money goes to 3rd party companies with no connection to us.|\n\nInterested in self-hosting Plausible on your server? Take a look at our [self-hosting installation instructions](https://plausible.io/docs/self-hosting).\n\nPlausible Self-Hosted is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a [community supported forum](https://github.com/plausible/analytics/discussions/categories/self-hosted-support) where you can ask for help.\n\nOur only source of funding is our premium, managed service for running Plausible in the cloud. If you're looking for an alternative way to support the project, we've put together some sponsorship packages. If you choose to self-host Plausible you can [become a sponsor](https://github.com/sponsors/plausible) which is a great way to give back to the community and to contribute to the long-term sustainability of the project.","ref":"readme.html#can-plausible-analytics-be-self-hosted","title":"Can Plausible Analytics be self-hosted? - Introduction","type":"extras"},{"doc":"Plausible Analytics is a standard Elixir/Phoenix application backed by a PostgreSQL database for general data and a Clickhouse\ndatabase for stats. On the frontend we use [TailwindCSS](https://tailwindcss.com/) for styling and React to make the dashboard interactive.","ref":"readme.html#technology","title":"Technology - Introduction","type":"extras"},{"doc":"For anyone wishing to contribute to Plausible, we recommend taking a look at [our contributor guide](https://github.com/plausible/analytics/blob/master/CONTRIBUTING.md).","ref":"readme.html#contributors","title":"Contributors - Introduction","type":"extras"},{"doc":"We welcome feedback from our community. We have a public roadmap driven by the features suggested by the community members. Take a look at our [feedback board](https://plausible.io/feedback). Please let us know if you have any requests and vote on open issues so we can better prioritize.\n\nTo stay up to date with all the latest news and product updates, make sure to follow us on [X (formerly Twitter)](https://twitter.com/plausiblehq), [LinkedIn](https://www.linkedin.com/company/plausible-analytics/) or [Mastodon](https://fosstodon.org/@plausible).","ref":"readme.html#feedback-roadmap","title":"Feedback & Roadmap - Introduction","type":"extras"},{"doc":"Plausible is open source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can [find it here](https://github.com/plausible/analytics/blob/master/LICENSE.md).\n\nTo avoid issues with AGPL virality, we've released the JavaScript tracker which gets included on your website under the MIT license. You can [find it here](https://github.com/plausible/analytics/blob/master/tracker/LICENSE.md).","ref":"readme.html#license","title":"License - Introduction","type":"extras"},{"doc":"# Contributing\n\nWe welcome everyone to contribute to Plausible. This document is to help you on setting up your environment, finding a task, and opening pull requests.","ref":"contributing.html","title":"Contributing","type":"extras"},{"doc":"The easiest way to get up and running is to [install](https://docs.docker.com/get-docker/) and use Docker for running both Postgres and Clickhouse.\n\nMake sure Docker, Elixir, Erlang and Node.js are all installed on your development machine. The [`.tool-versions`](https://github.com/plausible/analytics/blob/master/.tool-versions) file is available to use with [asdf](https://github.com/asdf-vm/asdf) or similar tools.\n\n#","ref":"contributing.html#development-setup","title":"Development setup - Contributing","type":"extras"},{"doc":"1. Run both `make postgres` and `make clickhouse`.\n2. You can set up everything with `make install`, alternatively run each command separately:\n 1. Run `mix deps.get`. This will download the required Elixir dependencies.\n 2. Run `mix ecto.create`. This will create the required databases in both Postgres and Clickhouse.\n 3. Run `mix ecto.migrate` to build the database schema.\n 4. Run `mix run priv/repo/seeds.exs` to seed the database. Check the [Seeds](#Seeds) section for more.\n 5. Run `npm ci --prefix assets` to install the required client-side dependencies.\n 6. Run `npm ci --prefix tracker` to install the required tracker dependencies.\n 7. Run `npm run deploy --prefix tracker` to generate tracker files in `priv/tracker/js`\n 8. Run `mix download_country_database` to fetch geolocation database\n3. Run `make server` or `mix phx.server` to start the Phoenix server.\n4. The system is now available on `localhost:8000`.\n\n#","ref":"contributing.html#start-the-environment","title":"Start the environment - Contributing","type":"extras"},{"doc":"You can optionally seed your database to automatically create an account and a site with stats:\n\n1. Run `mix run priv/repo/seeds.exs` to seed the database.\n2. Start the server with `make server` and navigate to `http://localhost:8000/login`.\n3. Log in with the following e-mail and password combination: `user@plausible.test` and `plausible`.\n4. You should now have a `dummy.site` site with generated stats.\n\nAlternatively, you can manually create a new account:\n\n1. Navigate to `http://localhost:8000/register` and fill in the form.\n2. Fill in the rest of the forms and for the domain use `dummy.site`\n3. Skip the JS snippet and click start collecting data.\n4. Run `mix send_pageview` from the terminal to generate a fake pageview event for the dummy site.\n5. You should now be all set!\n\n#","ref":"contributing.html#seeds","title":"Seeds - Contributing","type":"extras"},{"doc":"1. Stop and remove the Postgres container with `make postgres-stop`.\n2. Stop and remove the Clickhouse container with `make clickhouse-stop`.\n\nVolumes are preserved. You'll find that the Postgres and Clickhouse state are retained when you bring them up again the next time: no need to re-register and so on.\n\nNote: Since we are deleting the containers, be careful when deleting volumes with `docker volume prune`. You might accidentally delete the database and would have to go through re-registration process.\n\n#","ref":"contributing.html#stopping-docker-containers","title":"Stopping Docker containers - Contributing","type":"extras"},{"doc":"`pre-commit` requires Python to be available locally and covers Elixir, JavaScript, and CSS. Set up with `pip install --user pre-commit` followed by `pre-commit install`. Conversely, if the prompts are far too bothersome, remove with `pre-commit uninstall`.","ref":"contributing.html#pre-commit-hooks","title":"Pre-commit hooks - Contributing","type":"extras"},{"doc":"Bugs can be found in our [issue tracker](https://github.com/plausible/analytics/issues). Issues are usually up for grabs.\n\nNew features need to be discussed with the core team and the community first. If you're tackling a feature, please make sure it has been already discussed in the [Discussions tab](https://github.com/plausible/analytics/discussions). We kindly ask contributors to use the discussion comment section to propose a solution before opening a pull request.\n\nPull requests without an associated issue or discussion may still be merged, but we will focus on changes that have already been talked through.","ref":"contributing.html#finding-a-task","title":"Finding a task - Contributing","type":"extras"},{"doc":"# Account locking\nThis document explains the account locking feature from a technical perspective. Account locking happens when users have outgrown their accounts, and despite e-mail and dashboard alerts, don't upgrade after a grace period.","ref":"account-locking.html","title":"Account locking","type":"extras"},{"doc":"The `Plausible.Workers.CheckUsage` daily background job alerts users they have reached their subscription limits. This runs for outgrown users one day after their last billing date.\n\nWhen users reach the number of sites limit, or use >110% of their pageview limit for 2 consecutive billing cycles, the background job sends them an e-mail alert. The e-mail suggests a suitable subscription plan based on usage. For enterprise users, only an internal e-mail is sent to `enterprise@plausible.io`.\n\nThe user is given 7 days to upgrade their account after the alert, and this is called grace period. The background starts this grace period by adding a `users.grace_period` JSON to the user record:\n\n```json\n// SELECT grace_period FROM users LIMIT 1\n\n{\n \"id\": \"1aa855bd-022d-4dfc-b572-6853442c3f19\",\n \"is_over\": true,\n \"end_date\": \"2022-03-09\",\n \"allowance_required\": 100,\n \"manual_lock\": false\n}\n```\n\n\nDuring this period, the following alert pops up on the dashboard for both standard and enterprise users:\n\n\n\nIf the user upgrades to a suitable plan, the grace period is removed (check `Plausible.Billing.subscription_updated/1`), otherwise [Account locking](#Account\\ locking) follows. For enterprise users, the grace period has a manual lock flag set to true, meaning enterprise accounts can only be locked/unlocked through the internal CRM.","ref":"account-locking.html#usage-alert-and-grace-period","title":"Usage alert and grace period - Account locking","type":"extras"},{"doc":"The grace period is checked daily by the `Plausible.Workers.LockSites` background job.\n\nFor users that expired their grace period, `sites.locked` is is set to `true`, restricting access to dashboards. This does not stop event ingestion, so users can have their stats up to date when they finally upgrade.\n\n","ref":"account-locking.html#account-locking","title":"Account locking - Account locking","type":"extras"}]}
\ No newline at end of file
+searchData={"content_type":"text/markdown","items":[{"doc":"","ref":"Mix.Tasks.CleanClickhouse.html","title":"mix clean_clickhouse","type":"task"},{"doc":"","ref":"Mix.Tasks.CleanClickhouse.html#run/1","title":"Mix.Tasks.CleanClickhouse.run/1","type":"function"},{"doc":"","ref":"Mix.Tasks.CreateFreeSubscription.html","title":"mix create_free_subscription","type":"task"},{"doc":"","ref":"Mix.Tasks.CreateFreeSubscription.html#execute/1","title":"Mix.Tasks.CreateFreeSubscription.execute/1","type":"function"},{"doc":"","ref":"Mix.Tasks.CreateFreeSubscription.html#run/1","title":"Mix.Tasks.CreateFreeSubscription.run/1","type":"function"},{"doc":"This task downloads the Country Lite database from DB-IP for self-hosted or development purposes.\nPlausible Cloud runs a paid version of DB-IP with more detailed geolocation data.","ref":"Mix.Tasks.DownloadCountryDatabase.html","title":"mix download_country_database","type":"task"},{"doc":"","ref":"Mix.Tasks.DownloadCountryDatabase.html#run/1","title":"Mix.Tasks.DownloadCountryDatabase.run/1","type":"function"},{"doc":"","ref":"Mix.Tasks.GenerateReferrerFavicons.html","title":"mix generate_referrer_favicons","type":"task"},{"doc":"","ref":"Mix.Tasks.GenerateReferrerFavicons.html#run/1","title":"Mix.Tasks.GenerateReferrerFavicons.run/1","type":"function"},{"doc":"","ref":"Mix.Tasks.PullSandboxSubscription.html","title":"mix pull_sandbox_subscription","type":"task"},{"doc":"","ref":"Mix.Tasks.PullSandboxSubscription.html#run/1","title":"Mix.Tasks.PullSandboxSubscription.run/1","type":"function"},{"doc":"It's often necessary to generate fake events for development and testing purposes. This Mix Task provides a quick and easy\nway to generate a pageview or custom event, either in your development environment or a remote Plausible instance.\n\nSee Mix.Tasks.SendPageview.usage/1 for more detailed documentation.","ref":"Mix.Tasks.SendPageview.html","title":"mix send_pageview","type":"task"},{"doc":"","ref":"Mix.Tasks.SendPageview.html#run/1","title":"Mix.Tasks.SendPageview.run/1","type":"function"},{"doc":"","ref":"ObanErrorReporter.html","title":"ObanErrorReporter","type":"module"},{"doc":"","ref":"ObanErrorReporter.html#handle_event/4","title":"ObanErrorReporter.handle_event/4","type":"function"},{"doc":"Plausible keeps the contexts that define your domain\nand business logic.\n\nContexts are also responsible for managing your data, regardless\nif it comes from the database, an external API or others.","ref":"Plausible.html","title":"Plausible","type":"module"},{"doc":"Clickhouse access with async inserts enabled","ref":"Plausible.AsyncInsertRepo.html","title":"Plausible.AsyncInsertRepo","type":"module"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#aggregate/3","title":"Plausible.AsyncInsertRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#aggregate/4","title":"Plausible.AsyncInsertRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#all/2","title":"Plausible.AsyncInsertRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#checked_out?/0","title":"Plausible.AsyncInsertRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#checkout/2","title":"Plausible.AsyncInsertRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#child_spec/1","title":"Plausible.AsyncInsertRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#config/0","title":"Plausible.AsyncInsertRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#default_options/1","title":"Plausible.AsyncInsertRepo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#delete/2","title":"Plausible.AsyncInsertRepo.delete/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#delete!/2","title":"Plausible.AsyncInsertRepo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#delete_all/2","title":"Plausible.AsyncInsertRepo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.AsyncInsertRepo.html#disconnect_all/2","title":"Plausible.AsyncInsertRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#exists?/2","title":"Plausible.AsyncInsertRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get/3","title":"Plausible.AsyncInsertRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get!/3","title":"Plausible.AsyncInsertRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get_by/3","title":"Plausible.AsyncInsertRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get_by!/3","title":"Plausible.AsyncInsertRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#get_dynamic_repo/0","title":"Plausible.AsyncInsertRepo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert/2","title":"Plausible.AsyncInsertRepo.insert/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert!/2","title":"Plausible.AsyncInsertRepo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert_all/3","title":"Plausible.AsyncInsertRepo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert_or_update/2","title":"Plausible.AsyncInsertRepo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#insert_or_update!/2","title":"Plausible.AsyncInsertRepo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.AsyncInsertRepo.html#insert_stream/3","title":"Plausible.AsyncInsertRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#load/2","title":"Plausible.AsyncInsertRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#one/2","title":"Plausible.AsyncInsertRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#one!/2","title":"Plausible.AsyncInsertRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#preload/3","title":"Plausible.AsyncInsertRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#prepare_query/3","title":"Plausible.AsyncInsertRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#put_dynamic_repo/1","title":"Plausible.AsyncInsertRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.AsyncInsertRepo.html#query/3","title":"Plausible.AsyncInsertRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.AsyncInsertRepo.html#query!/3","title":"Plausible.AsyncInsertRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#reload/2","title":"Plausible.AsyncInsertRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#reload!/2","title":"Plausible.AsyncInsertRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#start_link/1","title":"Plausible.AsyncInsertRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#stop/1","title":"Plausible.AsyncInsertRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#stream/2","title":"Plausible.AsyncInsertRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.AsyncInsertRepo.html#to_sql/2","title":"Plausible.AsyncInsertRepo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#update/2","title":"Plausible.AsyncInsertRepo.update/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#update!/2","title":"Plausible.AsyncInsertRepo.update!/2","type":"function"},{"doc":"","ref":"Plausible.AsyncInsertRepo.html#update_all/3","title":"Plausible.AsyncInsertRepo.update_all/3","type":"function"},{"doc":"","ref":"Plausible.Auth.html","title":"Plausible.Auth","type":"module"},{"doc":"","ref":"Plausible.Auth.html#create_user/3","title":"Plausible.Auth.create_user/3","type":"function"},{"doc":"","ref":"Plausible.Auth.html#delete_user/1","title":"Plausible.Auth.delete_user/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#enterprise?/1","title":"Plausible.Auth.enterprise?/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#find_user_by/1","title":"Plausible.Auth.find_user_by/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#has_active_sites?/2","title":"Plausible.Auth.has_active_sites?/2","type":"function"},{"doc":"","ref":"Plausible.Auth.html#is_super_admin?/1","title":"Plausible.Auth.is_super_admin?/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#issue_email_verification/1","title":"Plausible.Auth.issue_email_verification/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#user_owns_sites?/1","title":"Plausible.Auth.user_owns_sites?/1","type":"function"},{"doc":"","ref":"Plausible.Auth.html#verify_email/2","title":"Plausible.Auth.verify_email/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html","title":"Plausible.Auth.ApiKey","type":"module"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#changeset/2","title":"Plausible.Auth.ApiKey.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#do_hash/1","title":"Plausible.Auth.ApiKey.do_hash/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#process_key/1","title":"Plausible.Auth.ApiKey.process_key/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKey.html#update/2","title":"Plausible.Auth.ApiKey.update/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html","title":"Plausible.Auth.ApiKeyAdmin","type":"module"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#create_changeset/2","title":"Plausible.Auth.ApiKeyAdmin.create_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#custom_index_query/3","title":"Plausible.Auth.ApiKeyAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#form_fields/1","title":"Plausible.Auth.ApiKeyAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#index/1","title":"Plausible.Auth.ApiKeyAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#search_fields/1","title":"Plausible.Auth.ApiKeyAdmin.search_fields/1","type":"function"},{"doc":"","ref":"Plausible.Auth.ApiKeyAdmin.html#update_changeset/2","title":"Plausible.Auth.ApiKeyAdmin.update_changeset/2","type":"function"},{"doc":"This embedded schema stores information about the account locking grace\nperiod.\n\nUsers are given this 7-day grace period to upgrade their account after\noutgrowing their subscriptions. The actual account locking happens in\nbackground with `Plausible.Workers.LockSites`.\n\nThe grace period can also be manual, without an end date, being controlled\nmanually from the CRM, and not by the background site locker job. This is \nuseful for enterprise subscriptions.","ref":"Plausible.Auth.GracePeriod.html","title":"Plausible.Auth.GracePeriod","type":"module"},{"doc":"Returns whether the grace period is still active for a User. Defaults to\nfalse if the user is nil or there is no grace period.","ref":"Plausible.Auth.GracePeriod.html#active?/1","title":"Plausible.Auth.GracePeriod.active?/1","type":"function"},{"doc":"Ends an existing grace period by `setting users.grace_period.is_over` to true.\nThis means the grace period has expired.","ref":"Plausible.Auth.GracePeriod.html#end_changeset/1","title":"Plausible.Auth.GracePeriod.end_changeset/1","type":"function"},{"doc":"Returns whether the grace period has already expired for a User. Defaults to\nfalse if the user is nil or there is no grace period.","ref":"Plausible.Auth.GracePeriod.html#expired?/1","title":"Plausible.Auth.GracePeriod.expired?/1","type":"function"},{"doc":"Removes the grace period from the User completely.","ref":"Plausible.Auth.GracePeriod.html#remove_changeset/1","title":"Plausible.Auth.GracePeriod.remove_changeset/1","type":"function"},{"doc":"Starts a account locking grace period of 7 days by changing the User struct.","ref":"Plausible.Auth.GracePeriod.html#start_changeset/2","title":"Plausible.Auth.GracePeriod.start_changeset/2","type":"function"},{"doc":"Starts a manual account locking grace period by changing the User struct. \nManual locking means the grace period can only be removed manually from the\nCRM.","ref":"Plausible.Auth.GracePeriod.html#start_manual_lock_changeset/2","title":"Plausible.Auth.GracePeriod.start_manual_lock_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.GracePeriod.html#t:t/0","title":"Plausible.Auth.GracePeriod.t/0","type":"type"},{"doc":"","ref":"Plausible.Auth.Invitation.html","title":"Plausible.Auth.Invitation","type":"module"},{"doc":"","ref":"Plausible.Auth.Invitation.html#new/1","title":"Plausible.Auth.Invitation.new/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Invitation.html#t:t/0","title":"Plausible.Auth.Invitation.t/0","type":"type"},{"doc":"","ref":"Plausible.Auth.Password.html","title":"Plausible.Auth.Password","type":"module"},{"doc":"","ref":"Plausible.Auth.Password.html#dummy_calculation/0","title":"Plausible.Auth.Password.dummy_calculation/0","type":"function"},{"doc":"","ref":"Plausible.Auth.Password.html#hash/1","title":"Plausible.Auth.Password.hash/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Password.html#match?/2","title":"Plausible.Auth.Password.match?/2","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html","title":"Plausible.Auth.Token","type":"module"},{"doc":"","ref":"Plausible.Auth.Token.html#sign_password_reset/1","title":"Plausible.Auth.Token.sign_password_reset/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html#sign_shared_link/1","title":"Plausible.Auth.Token.sign_shared_link/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html#verify_password_reset/1","title":"Plausible.Auth.Token.verify_password_reset/1","type":"function"},{"doc":"","ref":"Plausible.Auth.Token.html#verify_shared_link/1","title":"Plausible.Auth.Token.verify_shared_link/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html","title":"Plausible.Auth.User","type":"module"},{"doc":"","ref":"Plausible.Auth.User.html#changeset/2","title":"Plausible.Auth.User.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#end_trial/1","title":"Plausible.Auth.User.end_trial/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#hash_password/1","title":"Plausible.Auth.User.hash_password/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#new/1","title":"Plausible.Auth.User.new/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#password_strength/1","title":"Plausible.Auth.User.password_strength/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#remove_trial_expiry/1","title":"Plausible.Auth.User.remove_trial_expiry/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#set_password/2","title":"Plausible.Auth.User.set_password/2","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#start_trial/1","title":"Plausible.Auth.User.start_trial/1","type":"function"},{"doc":"","ref":"Plausible.Auth.User.html#t:t/0","title":"Plausible.Auth.User.t/0","type":"type"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html","title":"Plausible.Auth.UserAdmin","type":"module"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#custom_index_query/3","title":"Plausible.Auth.UserAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#delete/2","title":"Plausible.Auth.UserAdmin.delete/2","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#form_fields/1","title":"Plausible.Auth.UserAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#index/1","title":"Plausible.Auth.UserAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.Auth.UserAdmin.html#resource_actions/1","title":"Plausible.Auth.UserAdmin.resource_actions/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html","title":"Plausible.Billing","type":"module"},{"doc":"","ref":"Plausible.Billing.html#active_subscription_for/1","title":"Plausible.Billing.active_subscription_for/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#change_plan/2","title":"Plausible.Billing.change_plan/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#change_plan_preview/2","title":"Plausible.Billing.change_plan_preview/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#has_active_subscription?/1","title":"Plausible.Billing.has_active_subscription?/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#last_two_billing_cycles/2","title":"Plausible.Billing.last_two_billing_cycles/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#last_two_billing_months_usage/2","title":"Plausible.Billing.last_two_billing_months_usage/2","type":"function"},{"doc":"","ref":"Plausible.Billing.html#needs_to_upgrade?/1","title":"Plausible.Billing.needs_to_upgrade?/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#on_trial?/1","title":"Plausible.Billing.on_trial?/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#paddle_api/0","title":"Plausible.Billing.paddle_api/0","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_cancelled/1","title":"Plausible.Billing.subscription_cancelled/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_created/1","title":"Plausible.Billing.subscription_created/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_payment_succeeded/1","title":"Plausible.Billing.subscription_payment_succeeded/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#subscription_updated/1","title":"Plausible.Billing.subscription_updated/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#trial_days_left/1","title":"Plausible.Billing.trial_days_left/1","type":"function"},{"doc":"","ref":"Plausible.Billing.html#usage_breakdown/1","title":"Plausible.Billing.usage_breakdown/1","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlan.html","title":"Plausible.Billing.EnterprisePlan","type":"module"},{"doc":"","ref":"Plausible.Billing.EnterprisePlan.html#changeset/2","title":"Plausible.Billing.EnterprisePlan.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html","title":"Plausible.Billing.EnterprisePlanAdmin","type":"module"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#custom_index_query/3","title":"Plausible.Billing.EnterprisePlanAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#form_fields/1","title":"Plausible.Billing.EnterprisePlanAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#index/1","title":"Plausible.Billing.EnterprisePlanAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.Billing.EnterprisePlanAdmin.html#search_fields/1","title":"Plausible.Billing.EnterprisePlanAdmin.search_fields/1","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html","title":"Plausible.Billing.PaddleApi","type":"module"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#checkout_domain/0","title":"Plausible.Billing.PaddleApi.checkout_domain/0","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#get_invoices/1","title":"Plausible.Billing.PaddleApi.get_invoices/1","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#get_subscription/1","title":"Plausible.Billing.PaddleApi.get_subscription/1","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#update_subscription/2","title":"Plausible.Billing.PaddleApi.update_subscription/2","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#update_subscription_preview/2","title":"Plausible.Billing.PaddleApi.update_subscription_preview/2","type":"function"},{"doc":"","ref":"Plausible.Billing.PaddleApi.html#vendors_domain/0","title":"Plausible.Billing.PaddleApi.vendors_domain/0","type":"function"},{"doc":"","ref":"Plausible.Billing.Plans.html","title":"Plausible.Billing.Plans","type":"module"},{"doc":"Finds a plan by product ID.\n\nReturns nil when plan can't be found.","ref":"Plausible.Billing.Plans.html#find/2","title":"Plausible.Billing.Plans.find/2","type":"function"},{"doc":"Returns a list of plans available for the user to choose.\n\nAs new versions of plans are introduced, users who were on old plans can\nstill choose from old plans.","ref":"Plausible.Billing.Plans.html#for_user/1","title":"Plausible.Billing.Plans.for_user/1","type":"function"},{"doc":"","ref":"Plausible.Billing.Plans.html#get_subscription_plan/1","title":"Plausible.Billing.Plans.get_subscription_plan/1","type":"function"},{"doc":"","ref":"Plausible.Billing.Plans.html#subscription_interval/1","title":"Plausible.Billing.Plans.subscription_interval/1","type":"function"},{"doc":"Returns the most appropriate plan for a user based on their usage during a\ngiven cycle.\n\nIf the usage during the cycle exceeds the enterprise-level threshold, or if\nthe user already belongs to an enterprise plan, it suggests the :enterprise\nplan.\n\nOtherwise, it recommends the plan where the cycle usage falls just under the\nplan's limit from the available options for the user.","ref":"Plausible.Billing.Plans.html#suggest/2","title":"Plausible.Billing.Plans.suggest/2","type":"function"},{"doc":"List yearly plans product IDs.","ref":"Plausible.Billing.Plans.html#yearly_product_ids/0","title":"Plausible.Billing.Plans.yearly_product_ids/0","type":"function"},{"doc":"This module provides functions to work with plans usage and limits.","ref":"Plausible.Billing.Quota.html","title":"Plausible.Billing.Quota","type":"module"},{"doc":"Returns the limit of pageviews for a subscription.","ref":"Plausible.Billing.Quota.html#monthly_pageview_limit/1","title":"Plausible.Billing.Quota.monthly_pageview_limit/1","type":"function"},{"doc":"Returns the amount of pageviews sent by the sites the user owns in last 30 days.","ref":"Plausible.Billing.Quota.html#monthly_pageview_usage/1","title":"Plausible.Billing.Quota.monthly_pageview_usage/1","type":"function"},{"doc":"Returns the limit of sites a user can have.\n\nFor enterprise customers, returns :unlimited. The site limit is checked in a\nbackground job so as to avoid service disruption.","ref":"Plausible.Billing.Quota.html#site_limit/1","title":"Plausible.Billing.Quota.site_limit/1","type":"function"},{"doc":"Returns the number of sites the given user owns.","ref":"Plausible.Billing.Quota.html#site_usage/1","title":"Plausible.Billing.Quota.site_usage/1","type":"function"},{"doc":"Returns the limit of team members a user can have in their sites.","ref":"Plausible.Billing.Quota.html#team_member_limit/1","title":"Plausible.Billing.Quota.team_member_limit/1","type":"function"},{"doc":"Returns the total count of team members and pending invitations associated\nwith the user's sites.","ref":"Plausible.Billing.Quota.html#team_member_usage/1","title":"Plausible.Billing.Quota.team_member_usage/1","type":"function"},{"doc":"Returns whether the limit has been exceeded or not.","ref":"Plausible.Billing.Quota.html#within_limit?/2","title":"Plausible.Billing.Quota.within_limit?/2","type":"function"},{"doc":"","ref":"Plausible.Billing.SiteLocker.html","title":"Plausible.Billing.SiteLocker","type":"module"},{"doc":"","ref":"Plausible.Billing.SiteLocker.html#check_sites_for/1","title":"Plausible.Billing.SiteLocker.check_sites_for/1","type":"function"},{"doc":"","ref":"Plausible.Billing.SiteLocker.html#set_lock_status_for/2","title":"Plausible.Billing.SiteLocker.set_lock_status_for/2","type":"function"},{"doc":"Helper function for working with Ecto changesets","ref":"Plausible.ChangesetHelpers.html","title":"Plausible.ChangesetHelpers","type":"module"},{"doc":"","ref":"Plausible.ChangesetHelpers.html#traverse_errors/1","title":"Plausible.ChangesetHelpers.traverse_errors/1","type":"function"},{"doc":"Provides the core functions to retrieve and manage\nthe CLDR data that supports formatting and localisation.\n\nIt provides the core functions to access formatted\nCLDR data, set and retrieve a current locale and validate\ncertain core data types such as locales, currencies and\nterritories.","ref":"Plausible.Cldr.html","title":"Plausible.Cldr","type":"module"},{"doc":"","ref":"Plausible.Cldr.html#available_locale_name?/1","title":"Plausible.Cldr.available_locale_name?/1","type":"function"},{"doc":"Returns the default `locale`.","ref":"Plausible.Cldr.html#default_locale/0","title":"Plausible.Cldr.default_locale/0","type":"function"},{"doc":"iex> Plausible.Cldr.default_locale()\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en-001\",\n cldr_locale_name: :\"en-001\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en-001\",\n script: :Latn,\n territory: :\"001\",\n transform: %{},\n language_variants: []\n }","ref":"Plausible.Cldr.html#default_locale/0-example","title":"Example - Plausible.Cldr.default_locale/0","type":"function"},{"doc":"Returns the default territory when a locale\ndoes not specify one and none can be inferred.","ref":"Plausible.Cldr.html#default_territory/0","title":"Plausible.Cldr.default_territory/0","type":"function"},{"doc":"iex> Plausible.Cldr.default_territory()\n :\"001\"","ref":"Plausible.Cldr.html#default_territory/0-example","title":"Example - Plausible.Cldr.default_territory/0","type":"function"},{"doc":"Add locale-specific ellipsis to a string.","ref":"Plausible.Cldr.html#ellipsis/2","title":"Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"* `string` is any `String.t` or a 2-element list\n of `String.t` between which the ellipsis is inserted.\n\n* `backend` is any module that includes `use Cldr` and therefore\n is a `Cldr` backend module. The default is `Cldr.default_backend!/0`.\n Note that `Cldr.default_backend!/0` will raise an exception if\n no `:default_backend` is configured under the `:ex_cldr` key in\n `config.exs`.\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.html#ellipsis/2-arguments","title":"Arguments - Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"* `:locale` is any valid locale name returned by `Cldr.known_locale_names/1`.\n The default is `Cldr.get_locale/0`.\n\n* `:location` determines where to place the ellipsis. The options are\n `:after` (the default for a single string argument), `:between`\n (the default and only valid location for an argument that is a list\n of two strings) and `:before`.\n\n* `:format` formats based upon whether the ellipsis\n is inserted between words or sentences. The valid options are\n `:word` or `:sentence`. The default is `:sentence`.","ref":"Plausible.Cldr.html#ellipsis/2-options","title":"Options - Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"iex> Plausible.Cldr.ellipsis \"And furthermore\"\n \"And furthermore…\"\n\n iex> Plausible.Cldr.ellipsis [\"And furthermore\", \"there is much to be done\"], locale: :ja\n \"And furthermore…there is much to be done\"\n\n iex> Plausible.Cldr.ellipsis \"And furthermore\", format: :word\n \"And furthermore …\"\n\n iex> Plausible.Cldr.ellipsis [\"And furthermore\", \"there is much to be done\"], locale: :ja, format: :word\n \"And furthermore … there is much to be done\"","ref":"Plausible.Cldr.html#ellipsis/2-examples","title":"Examples - Plausible.Cldr.ellipsis/2","type":"function"},{"doc":"Return the current locale to be used for `Cldr` functions that\ntake an optional locale parameter for which a locale is not supplied.","ref":"Plausible.Cldr.html#get_locale/0","title":"Plausible.Cldr.get_locale/0","type":"function"},{"doc":"iex> Plausible.Cldr.put_locale(\"pl\")\n iex> Plausible.Cldr.get_locale\n %Cldr.LanguageTag{\n backend: Elixir.Plausible.Cldr,\n canonical_locale_name: \"pl\",\n cldr_locale_name: :pl,\n extensions: %{},\n language: \"pl\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :pl,\n territory: :PL,\n requested_locale_name: \"pl\",\n script: :Latn,\n transform: %{},\n language_variants: []\n }","ref":"Plausible.Cldr.html#get_locale/0-example","title":"Example - Plausible.Cldr.get_locale/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_calendars/0","title":"Plausible.Cldr.known_calendars/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_currencies/0","title":"Plausible.Cldr.known_currencies/0","type":"function"},{"doc":"Returns either the Gettext `locale_name` in Cldr format or\n`false` based upon whether the locale name is configured in\n`Gettext`.","ref":"Plausible.Cldr.html#known_gettext_locale_name/1","title":"Plausible.Cldr.known_gettext_locale_name/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_gettext_locale_names/0`","ref":"Plausible.Cldr.html#known_gettext_locale_name/1-arguments","title":"Arguments - Plausible.Cldr.known_gettext_locale_name/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_gettext_locale_name \"en\"\n \"en\"\n\n iex> Plausible.Cldr.known_gettext_locale_name \"en-SA\"\n false","ref":"Plausible.Cldr.html#known_gettext_locale_name/1-examples","title":"Examples - Plausible.Cldr.known_gettext_locale_name/1","type":"function"},{"doc":"Returns a boolean indicating if the specified locale\nname is configured and available in Gettext.","ref":"Plausible.Cldr.html#known_gettext_locale_name?/1","title":"Plausible.Cldr.known_gettext_locale_name?/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_gettext_locale_name?/1-arguments","title":"Arguments - Plausible.Cldr.known_gettext_locale_name?/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_gettext_locale_name?(\"en\")\n true\n\n iex> Plausible.Cldr.known_gettext_locale_name?(\"!!\")\n false","ref":"Plausible.Cldr.html#known_gettext_locale_name?/1-examples","title":"Examples - Plausible.Cldr.known_gettext_locale_name?/1","type":"function"},{"doc":"Returns a list of Gettext locale names but in CLDR format with\nunderscore replaced by hyphen in order to facilitate comparisons\nwith `Cldr` locale names.","ref":"Plausible.Cldr.html#known_gettext_locale_names/0","title":"Plausible.Cldr.known_gettext_locale_names/0","type":"function"},{"doc":"Returns either the `locale_name` or `false` based upon\nwhether the locale name is configured in `Cldr`.\n\nThis is helpful when building a list of `or` expressions\nto return the first known locale name from a list.","ref":"Plausible.Cldr.html#known_locale_name/1","title":"Plausible.Cldr.known_locale_name/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_locale_name/1-arguments","title":"Arguments - Plausible.Cldr.known_locale_name/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_locale_name :\"en-AU\"\n :\"en-AU\"\n\n iex> Plausible.Cldr.known_locale_name :\"en-SA\"\n false","ref":"Plausible.Cldr.html#known_locale_name/1-examples","title":"Examples - Plausible.Cldr.known_locale_name/1","type":"function"},{"doc":"Returns a boolean indicating if the specified locale\nname is configured and available in Cldr.","ref":"Plausible.Cldr.html#known_locale_name?/1","title":"Plausible.Cldr.known_locale_name?/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_locale_name?/1-arguments","title":"Arguments - Plausible.Cldr.known_locale_name?/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_locale_name?(:en)\n true\n\n iex> Plausible.Cldr.known_locale_name?(:\"!!\")\n false","ref":"Plausible.Cldr.html#known_locale_name?/1-examples","title":"Examples - Plausible.Cldr.known_locale_name?/1","type":"function"},{"doc":"Returns a list of the known locale names.\n\nKnown locales are those locales which\nare the subset of all CLDR locales that\nhave been configured for use either\nin this module or in `Gettext`.","ref":"Plausible.Cldr.html#known_locale_names/0","title":"Plausible.Cldr.known_locale_names/0","type":"function"},{"doc":"Returns a list of atoms representing the number systems types known to `Cldr`.","ref":"Plausible.Cldr.html#known_number_system_types/0","title":"Plausible.Cldr.known_number_system_types/0","type":"function"},{"doc":"iex> Plausible.Cldr.known_number_system_types\n [:default, :finance, :native, :traditional]","ref":"Plausible.Cldr.html#known_number_system_types/0-example","title":"Example - Plausible.Cldr.known_number_system_types/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_number_systems/0","title":"Plausible.Cldr.known_number_systems/0","type":"function"},{"doc":"Returns either the RBNF `locale_name` or `false` based upon\nwhether the locale name is configured in `Cldr`\nand has RBNF rules defined.","ref":"Plausible.Cldr.html#known_rbnf_locale_name/1","title":"Plausible.Cldr.known_rbnf_locale_name/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_rbnf_locale_name/1-arguments","title":"Arguments - Plausible.Cldr.known_rbnf_locale_name/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_rbnf_locale_name :en\n :en\n\n iex> Plausible.Cldr.known_rbnf_locale_name :\"en-SA\"\n false","ref":"Plausible.Cldr.html#known_rbnf_locale_name/1-examples","title":"Examples - Plausible.Cldr.known_rbnf_locale_name/1","type":"function"},{"doc":"Returns a boolean indicating if the specified locale\nname is configured and available in Cldr and supports\nrules based number formats (RBNF).","ref":"Plausible.Cldr.html#known_rbnf_locale_name?/1","title":"Plausible.Cldr.known_rbnf_locale_name?/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.html#known_rbnf_locale_name?/1-arguments","title":"Arguments - Plausible.Cldr.known_rbnf_locale_name?/1","type":"function"},{"doc":"iex> Plausible.Cldr.known_rbnf_locale_name?(:en)\n true\n\n iex> Plausible.Cldr.known_rbnf_locale_name?(:\"!!\")\n false","ref":"Plausible.Cldr.html#known_rbnf_locale_name?/1-examples","title":"Examples - Plausible.Cldr.known_rbnf_locale_name?/1","type":"function"},{"doc":"Returns a list of locale names which have rules-based number\nformats (RBNF).","ref":"Plausible.Cldr.html#known_rbnf_locale_names/0","title":"Plausible.Cldr.known_rbnf_locale_names/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#known_territories/0","title":"Plausible.Cldr.known_territories/0","type":"function"},{"doc":"Normalizes a string by applying transliteration\nof common symbols in numbers, currencies and dates","ref":"Plausible.Cldr.html#normalize_lenient_parse/3","title":"Plausible.Cldr.normalize_lenient_parse/3","type":"function"},{"doc":"Set the current locale to be used for `Cldr` functions that\ntake an optional locale parameter for which a locale is not supplied.","ref":"Plausible.Cldr.html#put_locale/1","title":"Plausible.Cldr.put_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `t:Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`\n\nSee [rfc5646](https://tools.ietf.org/html/rfc5646) for the specification\nof a language tag.","ref":"Plausible.Cldr.html#put_locale/1-arguments","title":"Arguments - Plausible.Cldr.put_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.put_locale(\"en\")\n {:ok,\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en\",\n cldr_locale_name: :en,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en\",\n script: :Latn,\n territory: :US,\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.put_locale(\"invalid-locale!\")\n {:error, {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"!\\\" starting at position 15\"}}","ref":"Plausible.Cldr.html#put_locale/1-examples","title":"Examples - Plausible.Cldr.put_locale/1","type":"function"},{"doc":"Add locale-specific quotation marks around a string.","ref":"Plausible.Cldr.html#quote/2","title":"Plausible.Cldr.quote/2","type":"function"},{"doc":"* `string` is any valid Elixir string\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.html#quote/2-arguments","title":"Arguments - Plausible.Cldr.quote/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Cldr.known_locale_names/1`.\n The default is `Cldr.get_locale/0`","ref":"Plausible.Cldr.html#quote/2-options","title":"Options - Plausible.Cldr.quote/2","type":"function"},{"doc":"iex> Plausible.Cldr.quote \"Quoted String\"\n \"“Quoted String”\"\n\n iex> Plausible.Cldr.quote \"Quoted String\", locale: :ja\n \"「Quoted String」\"","ref":"Plausible.Cldr.html#quote/2-examples","title":"Examples - Plausible.Cldr.quote/2","type":"function"},{"doc":"Returns a list of the locales names that are configured,\nbut not known in CLDR.\n\nSince there is a compile-time exception raised if there are\nany unknown locales this function should always\nreturn an empty list.","ref":"Plausible.Cldr.html#unknown_locale_names/0","title":"Plausible.Cldr.unknown_locale_names/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_calendar/1","title":"Plausible.Cldr.validate_calendar/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_currency/1","title":"Plausible.Cldr.validate_currency/1","type":"function"},{"doc":"Normalise and validate a locale name.","ref":"Plausible.Cldr.html#validate_locale/1","title":"Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.html#validate_locale/1-arguments","title":"Arguments - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"* `{:ok, language_tag}`\n\n* `{:error, reason}`","ref":"Plausible.Cldr.html#validate_locale/1-returns","title":"Returns - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"See [rfc5646](https://tools.ietf.org/html/rfc5646) for the specification\nof a language tag.","ref":"Plausible.Cldr.html#validate_locale/1-notes","title":"Notes - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.validate_locale(:en)\n {:ok,\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en\",\n cldr_locale_name: :en,\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en\",\n script: :Latn,\n territory: :US,\n transform: %{},\n language_variants: []\n }}\n\n\n iex> Plausible.Cldr.validate_locale Plausible.Cldr.default_locale()\n {:ok,\n %Cldr.LanguageTag{\n backend: Plausible.Cldr,\n canonical_locale_name: \"en-001\",\n cldr_locale_name: :\"en-001\",\n extensions: %{},\n gettext_locale_name: \"en\",\n language: \"en\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :en,\n requested_locale_name: \"en-001\",\n script: :Latn,\n territory: :\"001\",\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.validate_locale(\"zzz\")\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zzz\\\" is invalid\"}}","ref":"Plausible.Cldr.html#validate_locale/1-examples","title":"Examples - Plausible.Cldr.validate_locale/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_number_system/1","title":"Plausible.Cldr.validate_number_system/1","type":"function"},{"doc":"Normalise and validate a number system type.","ref":"Plausible.Cldr.html#validate_number_system_type/1","title":"Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"* `number_system_type` is any number system type returned by\n `Cldr.known_number_system_types/1`","ref":"Plausible.Cldr.html#validate_number_system_type/1-arguments","title":"Arguments - Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"* `{:ok, normalized_number_system_type}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.html#validate_number_system_type/1-returns","title":"Returns - Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"iex> Plausible.Cldr.validate_number_system_type :default\n {:ok, :default}\n\n iex> Plausible.Cldr.validate_number_system_type :traditional\n {:ok, :traditional}\n\n iex> Plausible.Cldr.validate_number_system_type :latn\n {\n :error,\n {Cldr.UnknownNumberSystemTypeError, \"The number system type :latn is unknown\"}\n }\n\n iex> Plausible.Cldr.validate_number_system_type \"bork\"\n {\n :error,\n {Cldr.UnknownNumberSystemTypeError, \"The number system type \\\"bork\\\" is invalid\"}\n }","ref":"Plausible.Cldr.html#validate_number_system_type/1-examples","title":"Examples - Plausible.Cldr.validate_number_system_type/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.html#validate_territory/1","title":"Plausible.Cldr.validate_territory/1","type":"function"},{"doc":"Execute a function with a locale ensuring that the\ncurrent locale is restored after the function.","ref":"Plausible.Cldr.html#with_locale/2","title":"Plausible.Cldr.with_locale/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Cldr.known_locale_names/1`.\n\n* `fun` is any 0-arity function or function capture.","ref":"Plausible.Cldr.html#with_locale/2-arguments","title":"Arguments - Plausible.Cldr.with_locale/2","type":"function"},{"doc":"* The value returned by the function `fun/0` or\n\n* `{:error, {exception, reason}}` if the locale is invalid or\n\n* raises an exception if the current locale cannot be\n identified.","ref":"Plausible.Cldr.html#with_locale/2-returns","title":"Returns - Plausible.Cldr.with_locale/2","type":"function"},{"doc":"Parses HTTP `Accept-Language` header values as defined in\n[rfc2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4).\n\nThe Accept-Language request-header field is similar to Accept, but restricts\nthe set of natural languages that are preferred as a response to the request.\nLanguage tags function are provided in `Cldr.LanguageTag`.\n\nThe format of an `Accept-Language` header is as follows in `ABNF` format:\n\n Accept-Language = \"Accept-Language\" \":\"\n 1#( language-range [ \";\" \"q\" \"=\" qvalue ] )\n language-range = ( ( 1*8ALPHA *( \"-\" 1*8ALPHA ) ) | \"*\" )\n\nEach language-range MAY be given an associated quality value which represents an\nestimate of the user's preference for the languages specified by that range. The\nquality value defaults to \"q=1\". For example,\n\n Accept-Language: da, en-gb;q=0.8, en;q=0.7\n\nwould mean: \"I prefer Danish, but will accept British English and other types of English.\"","ref":"Plausible.Cldr.AcceptLanguage.html","title":"Plausible.Cldr.AcceptLanguage","type":"module"},{"doc":"Parse an `Accept-Language` string and return the best match for\na configured `Cldr` locale.","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1","title":"Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"* `accept_langauge` is a string representing an accept language header","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1-arguments","title":"Arguments - Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"* `{:ok, language_tag}` or\n\n* `{:error, reason}`","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1-returns","title":"Returns - Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"iex> Plausible.Cldr.AcceptLanguage.best_match(\"da;q=0.1,zh-TW;q=0.3\", TestBackend.Cldr)\n {:ok,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.AcceptLanguage.best_match(\"da;q=0.1,zh-TW;q=0.3\", TestBackend.Cldr)\n {:ok,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n\n iex> Plausible.Cldr.AcceptLanguage.best_match(\"xx,yy;q=0.3\")\n {:error,\n {Cldr.NoMatchingLocale,\n \"No configured locale could be matched to \\\"xx,yy;q=0.3\\\"\"}}\n\n iex> Plausible.Cldr.AcceptLanguage.best_match(\"invalid_tag\")\n {:error, {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}","ref":"Plausible.Cldr.AcceptLanguage.html#best_match/1-examples","title":"Examples - Plausible.Cldr.AcceptLanguage.best_match/1","type":"function"},{"doc":"Parses an `Accept-Language` header value in its string\nor tokenized form to return a tuple of the form\n`{:ok, [{quality, %Cldr.LanguageTag{}}, ...]}` sorted by quality.","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1","title":"Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"* `accept-language` is any string in the format defined by\n [rfc2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)\n\n* `backend` is any module that includes `use Cldr` and therefore\n is a `Cldr` backend module","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1-arguments","title":"Arguments - Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"* `{:ok, [{quality, language_tag}, ...]}` or\n\n* `{:error, {Cldr.AcceptLanguageError, String.t}}`\n\nIf at least one valid language tag is found but errors are also\ndetected on one more more tags, an `{ok, list}` tuple is returned\nwuth an error tuple for each invalid tag added at the end of the list.","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1-returns","title":"Returns - Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"iex> Cldr.AcceptLanguage.parse(\"da,zh-TW;q=0.3\", TestBackend.Cldr)\n {:ok,\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n ]}\n\n iex> Plausible.Cldr.AcceptLanguage.parse(\"invalid_tag\")\n {:error,\n {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}\n\n iex> Plausible.Cldr.AcceptLanguage.parse(\"da,zh-TW;q=0.3,invalid_tag\")\n {:ok,\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }},\n {:error,\n {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}\n ]}","ref":"Plausible.Cldr.AcceptLanguage.html#parse/1-example","title":"Example - Plausible.Cldr.AcceptLanguage.parse/1","type":"function"},{"doc":"Parses an `Accept-Language` header value in its string\nor tokenized form to produce a list of tuples of the form\n`[{quality, %Cldr.LanguageTag{}}, ...]` sorted by quality\nin descending order.","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1","title":"Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"* `accept-language` is any string in the format defined by [rfc2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1-arguments","title":"Arguments - Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"* `{:ok, [{quality, language_tag}, ...]}` or\n\n* raises a `Cldr.AcceptLanguageError` exception\n\nIf at least one valid language tag is found but errors are also\ndetected on one more more tags, an `{ok, list}` tuple is returned\nwuth an error tuple for each invalid tag added at the end of the list.","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1-returns","title":"Returns - Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"iex> Plausible.Cldr.AcceptLanguage.parse!(\"da,zh-TW;q=0.3\")\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }}\n ]\n\n Plausible.Cldr.AcceptLanguage.parse! \"invalid_tag\"\n ** (Cldr.AcceptLanguageError) \"Expected a BCP47 language tag. Could not parse the remaining \"g\" starting at position 11\n (ex_cldr) lib/cldr/accept_language.ex:304: Cldr.AcceptLanguage.parse!/1\n\n iex> Plausible.Cldr.AcceptLanguage.parse!(\"da,zh-TW;q=0.3,invalid_tag\")\n [\n {1.0,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"da\",\n cldr_locale_name: :da,\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"da\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :da,\n requested_locale_name: \"da\",\n script: :Latn,\n territory: :DK,\n transform: %{},\n language_variants: []\n }},\n {0.3,\n %Cldr.LanguageTag{\n backend: TestBackend.Cldr,\n canonical_locale_name: \"zh-TW\",\n cldr_locale_name: :\"zh-Hant\",\n language_subtags: [],\n extensions: %{},\n gettext_locale_name: nil,\n language: \"zh\",\n locale: %{},\n private_use: [],\n rbnf_locale_name: :\"zh-Hant\",\n requested_locale_name: \"zh-TW\",\n script: :Hant,\n territory: :TW,\n transform: %{},\n language_variants: []\n }},\n {:error,\n {Cldr.LanguageTag.ParseError,\n \"Expected a BCP47 language tag. Could not parse the remaining \\\"g\\\" starting at position 11\"}}\n ]","ref":"Plausible.Cldr.AcceptLanguage.html#parse!/1-example","title":"Example - Plausible.Cldr.AcceptLanguage.parse!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Currency.html","title":"Plausible.Cldr.Currency","type":"module"},{"doc":"Returns a map of the metadata for all currencies for\na given locale.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3","title":"Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"* `{:ok, currency_map}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3-returns","title":"Returns - Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currencies_for_locale \"en\"\n => {:ok,\n %{\n FJD: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"FJD\",\n count: %{one: \"Fijian dollar\", other: \"Fijian dollars\"},\n digits: 2,\n from: nil,\n iso_digits: 2,\n name: \"Fijian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"FJD\",\n tender: true,\n to: nil\n },\n SUR: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"SUR\",\n count: %{one: \"Soviet rouble\", other: \"Soviet roubles\"},\n digits: 2,\n from: nil,\n iso_digits: nil,\n name: \"Soviet Rouble\",\n narrow_symbol: nil,\n rounding: 0,\n symbol: \"SUR\",\n tender: true,\n to: nil\n },\n ...\n }}","ref":"Plausible.Cldr.Currency.html#currencies_for_locale/3-example","title":"Example - Plausible.Cldr.Currency.currencies_for_locale/3","type":"function"},{"doc":"Returns a map of the metadata for all currencies for\na given locale and raises on error.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3","title":"Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"* `{:ok, currency_map}` or\n\n* raises an exception","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3-returns","title":"Returns - Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currencies_for_locale! \"en\"\n => %{\n FJD: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"FJD\",\n count: %{one: \"Fijian dollar\", other: \"Fijian dollars\"},\n digits: 2,\n from: nil,\n iso_digits: 2,\n name: \"Fijian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"FJD\",\n tender: true,\n to: nil\n },\n SUR: %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"SUR\",\n count: %{one: \"Soviet rouble\", other: \"Soviet roubles\"},\n digits: 2,\n from: nil,\n iso_digits: nil,\n name: \"Soviet Rouble\",\n narrow_symbol: nil,\n rounding: 0,\n symbol: \"SUR\",\n tender: true,\n to: nil\n },\n ...\n }","ref":"Plausible.Cldr.Currency.html#currencies_for_locale!/3-example","title":"Example - Plausible.Cldr.Currency.currencies_for_locale!/3","type":"function"},{"doc":"Returns the currency metadata for the requested currency code.","ref":"Plausible.Cldr.Currency.html#currency_for_code/2","title":"Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"* `currency_or_currency_code` is a `binary` or `atom` representation\n of an ISO 4217 currency code, or a `%Cldr.Currency{}` struct.","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"* `:locale` is any valid locale name returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-options","title":"Options - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"* A `{:ok, currency}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-returns","title":"Returns - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.currency_for_code(\"AUD\")\n {:ok,\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"AUD\",\n count: %{one: \"Australian dollar\", other: \"Australian dollars\"},\n digits: 2,\n iso_digits: 2,\n name: \"Australian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"A$\",\n tender: true\n }}\n\n iex> Plausible.Cldr.Currency.currency_for_code(\"THB\")\n {:ok,\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"THB\",\n count: %{one: \"Thai baht\", other: \"Thai baht\"},\n digits: 2,\n iso_digits: 2,\n name: \"Thai Baht\",\n narrow_symbol: \"฿\",\n rounding: 0,\n symbol: \"THB\",\n tender: true\n }}","ref":"Plausible.Cldr.Currency.html#currency_for_code/2-examples","title":"Examples - Plausible.Cldr.Currency.currency_for_code/2","type":"function"},{"doc":"Returns the currency metadata for the requested currency code.","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2","title":"Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"* `currency_or_currency_code` is a `binary` or `atom` representation\n of an ISO 4217 currency code, or a `%Cldr.Currency{}` struct.","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"* `:locale` is any valid locale name returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-options","title":"Options - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"* A `t:Cldr.Current.t/0` or\n\n* raises an exception","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-returns","title":"Returns - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.currency_for_code!(\"AUD\")\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"AUD\",\n count: %{one: \"Australian dollar\", other: \"Australian dollars\"},\n digits: 2,\n iso_digits: 2,\n name: \"Australian Dollar\",\n narrow_symbol: \"$\",\n rounding: 0,\n symbol: \"A$\",\n tender: true\n }\n\n iex> Plausible.Cldr.Currency.currency_for_code!(\"THB\")\n %Cldr.Currency{\n cash_digits: 2,\n cash_rounding: 0,\n code: \"THB\",\n count: %{one: \"Thai baht\", other: \"Thai baht\"},\n digits: 2,\n iso_digits: 2,\n name: \"Thai Baht\",\n narrow_symbol: \"฿\",\n rounding: 0,\n symbol: \"THB\",\n tender: true\n }","ref":"Plausible.Cldr.Currency.html#currency_for_code!/2-examples","title":"Examples - Plausible.Cldr.Currency.currency_for_code!/2","type":"function"},{"doc":"Returns the effective currency for a given locale","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1","title":"Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"* `locale` is a `Cldr.LanguageTag` struct returned by\n `Cldr.Locale.new!/2`","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"* A ISO 4217 currency code as an upcased atom","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1-returns","title":"Returns - Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"iex> {:ok, locale} = Plausible.Cldr.validate_locale \"en\"\n iex> Plausible.Cldr.Currency.currency_from_locale locale\n :USD\n\n iex> {:ok, locale} = Plausible.Cldr.validate_locale \"en-AU\"\n iex> Plausible.Cldr.Currency.currency_from_locale locale\n :AUD\n\n iex> Plausible.Cldr.Currency.currency_from_locale \"en-GB\"\n :GBP","ref":"Plausible.Cldr.Currency.html#currency_from_locale/1-examples","title":"Examples - Plausible.Cldr.Currency.currency_from_locale/1","type":"function"},{"doc":"Returns a list of historic and the current\ncurrency for a given locale.","ref":"Plausible.Cldr.Currency.html#currency_history_for_locale/1","title":"Plausible.Cldr.Currency.currency_history_for_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Currency.html#currency_history_for_locale/1-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_history_for_locale/1","type":"function"},{"doc":"iex> MyApp.Cldr.Currency.currency_history_for_locale \"en\"\n {:ok,\n %{\n USD: %{from: ~D[1792-01-01], to: nil},\n USN: %{tender: false},\n USS: %{from: nil, tender: false, to: ~D[2014-03-01]}\n }\n }","ref":"Plausible.Cldr.Currency.html#currency_history_for_locale/1-example","title":"Example - Plausible.Cldr.Currency.currency_history_for_locale/1","type":"function"},{"doc":"Returns a map that matches a currency string to a\ncurrency code.\n\nA currency string is a localised name or symbol\nrepresenting a currency in a locale-specific manner.","ref":"Plausible.Cldr.Currency.html#currency_strings/3","title":"Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currency_strings/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"* `{:ok, currency_string_map}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#currency_strings/3-returns","title":"Returns - Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currency_strings \"en\"\n => {:ok,\n %{\n \"mexican silver pesos\" => :MXP,\n \"sudanese dinar\" => :SDD,\n \"bad\" => :BAD,\n \"rsd\" => :RSD,\n \"swazi lilangeni\" => :SZL,\n \"zairean new zaire\" => :ZRN,\n \"guyanaese dollars\" => :GYD,\n \"equatorial guinean ekwele\" => :GQE,\n ...\n }}","ref":"Plausible.Cldr.Currency.html#currency_strings/3-example","title":"Example - Plausible.Cldr.Currency.currency_strings/3","type":"function"},{"doc":"Returns a map that matches a currency string to a\ncurrency code or raises an exception.\n\nA currency string is a localised name or symbol\nrepresenting a currency in a locale-specific manner.","ref":"Plausible.Cldr.Currency.html#currency_strings!/3","title":"Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`\n\n* `currency_status` is `:all`, `:current`, `:historic`,\n `unannotated` or `:tender`; or a list of one or more status.\n The default is `:all`. See `Cldr.Currency.currency_filter/2`.","ref":"Plausible.Cldr.Currency.html#currency_strings!/3-arguments","title":"Arguments - Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"* `{:ok, currency_string_map}` or\n\n* raises an exception","ref":"Plausible.Cldr.Currency.html#currency_strings!/3-returns","title":"Returns - Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"MyApp.Cldr.Currency.currency_strings! \"en\"\n => %{\n \"mexican silver pesos\" => :MXP,\n \"sudanese dinar\" => :SDD,\n \"bad\" => :BAD,\n \"rsd\" => :RSD,\n \"swazi lilangeni\" => :SZL,\n \"zairean new zaire\" => :ZRN,\n \"guyanaese dollars\" => :GYD,\n \"equatorial guinean ekwele\" => :GQE,\n ...\n }","ref":"Plausible.Cldr.Currency.html#currency_strings!/3-example","title":"Example - Plausible.Cldr.Currency.currency_strings!/3","type":"function"},{"doc":"Returns the current currency for a given locale.\n\nThis function does not consider the `U` extenion\nparameters `cu` or `rg`. It is recommended to us\n`Cldr.Currency.currency_from_locale/1` in most\ncircumstances.","ref":"Plausible.Cldr.Currency.html#current_currency_from_locale/1","title":"Plausible.Cldr.Currency.current_currency_from_locale/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Currency.html#current_currency_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Currency.current_currency_from_locale/1","type":"function"},{"doc":"iex> MyApp.Cldr.Currency.current_currency_from_locale \"en\"\n :USD\n\n iex> MyApp.Cldr.Currency.current_currency_from_locale \"en-AU\"\n :AUD","ref":"Plausible.Cldr.Currency.html#current_currency_from_locale/1-example","title":"Example - Plausible.Cldr.Currency.current_currency_from_locale/1","type":"function"},{"doc":"Returns a mapping from a territory code to its\ncurrent currency code.\n\nIf a territory has no current currency (like\nAntartica, territory code `:AQ`) then no\nmapping is returned for that territory.","ref":"Plausible.Cldr.Currency.html#current_territory_currencies/0","title":"Plausible.Cldr.Currency.current_territory_currencies/0","type":"function"},{"doc":"* A map of `{territory_code => Cldr.Currency.t}`","ref":"Plausible.Cldr.Currency.html#current_territory_currencies/0-returns","title":"Returns - Plausible.Cldr.Currency.current_territory_currencies/0","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.current_territory_currencies()","ref":"Plausible.Cldr.Currency.html#current_territory_currencies/0-example","title":"Example - Plausible.Cldr.Currency.current_territory_currencies/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Currency.html#known_currencies/0","title":"Plausible.Cldr.Currency.known_currencies/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Currency.html#known_currency?/1","title":"Plausible.Cldr.Currency.known_currency?/1","type":"function"},{"doc":"Returns a 2-tuple indicating if the supplied currency code is known.","ref":"Plausible.Cldr.Currency.html#known_currency_code/1","title":"Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"* `currency_code` is a `binary` or `atom` representing an ISO4217\n currency code","ref":"Plausible.Cldr.Currency.html#known_currency_code/1-arguments","title":"Arguments - Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"* `{:ok, currency_code}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#known_currency_code/1-returns","title":"Returns - Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.known_currency_code \"AUD\"\n {:ok, :AUD}\n\n iex> Plausible.Cldr.Currency.known_currency_code \"GGG\"\n {:error, {Cldr.UnknownCurrencyError, \"The currency \\\"GGG\\\" is invalid\"}}","ref":"Plausible.Cldr.Currency.html#known_currency_code/1-examples","title":"Examples - Plausible.Cldr.Currency.known_currency_code/1","type":"function"},{"doc":"Returns a boolean indicating if the supplied currency code is known.","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1","title":"Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"* `currency_code` is a `binary` or `atom` representing an ISO4217\n currency code","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1-arguments","title":"Arguments - Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"* `true` or `false`","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1-returns","title":"Returns - Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.known_currency_code? \"AUD\"\n true\n\n iex> Plausible.Cldr.Currency.known_currency_code? \"GGG\"\n false\n\n iex> Plausible.Cldr.Currency.known_currency_code? :XCV\n false","ref":"Plausible.Cldr.Currency.html#known_currency_code?/1-examples","title":"Examples - Plausible.Cldr.Currency.known_currency_code?/1","type":"function"},{"doc":"Returns a list of all known currency codes.","ref":"Plausible.Cldr.Currency.html#known_currency_codes/0","title":"Plausible.Cldr.Currency.known_currency_codes/0","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.known_currency_codes","ref":"Plausible.Cldr.Currency.html#known_currency_codes/0-example","title":"Example - Plausible.Cldr.Currency.known_currency_codes/0","type":"function"},{"doc":"Returns a `Currency` struct created from the arguments.","ref":"Plausible.Cldr.Currency.html#new/2","title":"Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"* `currency` is a private use currency code in a format defined by\n [ISO4217](https://en.wikipedia.org/wiki/ISO_4217)\n which is `X` followed by two alphanumeric characters.\n\n* `options` is a map of options representing the optional elements of\n the `Cldr.Currency.t` struct.","ref":"Plausible.Cldr.Currency.html#new/2-arguments","title":"Arguments - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"* `:name` is the name of the currency. Required.\n* `:digits` is the precision of the currency. Required.\n* `:symbol` is the currency symbol. Optional.\n* `:narrow_symbol` is an alternative narrow symbol. Optional.\n* `:round_nearest` is the rounding precision such as `0.05`. Optional.\n* `:alt_code` is an alternative currency code for application use.\n* `:cash_digits` is the precision of the currency when used as cash. Optional.\n* `:cash_rounding_nearest` is the rounding precision when used as cash\n such as `0.05`. Optional.","ref":"Plausible.Cldr.Currency.html#new/2-options","title":"Options - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"* `{:ok, Cldr.Currency.t}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Currency.html#new/2-returns","title":"Returns - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.new(:XAE, name: \"Custom Name\", digits: 0)\n {:ok,\n %Cldr.Currency{\n alt_code: :XAE,\n cash_digits: 0,\n cash_rounding: nil,\n code: :XAE,\n count: %{other: \"Custom Name\"},\n digits: 0,\n from: nil,\n iso_digits: 0,\n name: \"Custom Name\",\n narrow_symbol: nil,\n rounding: 0,\n symbol: \"XAE\",\n tender: false,\n to: nil\n }}\n iex> MyApp.Cldr.Currency.new(:XAH, name: \"Custom Name\")\n {:error, \"Required options are missing. Required options are [:name, :digits]\"}\n iex> Plausible.Cldr.Currency.new(:XAE, name: \"XAE\", digits: 0)\n {:error, {Cldr.CurrencyAlreadyDefined, \"Currency :XAE is already defined.\"}}","ref":"Plausible.Cldr.Currency.html#new/2-example","title":"Example - Plausible.Cldr.Currency.new/2","type":"function"},{"doc":"Returns the appropriate currency display name for the `currency`, based\non the plural rules in effect for the `locale`.","ref":"Plausible.Cldr.Currency.html#pluralize/3","title":"Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"* `number` is an integer, float or `Decimal`\n\n* `currency` is any currency returned by `Cldr.Currency.known_currencies/0`\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Currency.html#pluralize/3-arguments","title":"Arguments - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`. The\n default is `Plausible.Cldr.get_locale/0`","ref":"Plausible.Cldr.Currency.html#pluralize/3-options","title":"Options - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"* `{:ok, plural_string}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Currency.html#pluralize/3-returns","title":"Returns - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"iex> Plausible.Cldr.Currency.pluralize 1, :USD\n {:ok, \"US dollar\"}\n\n iex> Plausible.Cldr.Currency.pluralize 3, :USD\n {:ok, \"US dollars\"}\n\n iex> Plausible.Cldr.Currency.pluralize 12, :USD, locale: \"zh\"\n {:ok, \"美元\"}\n\n iex> Plausible.Cldr.Currency.pluralize 12, :USD, locale: \"fr\"\n {:ok, \"dollars des États-Unis\"}\n\n iex> Plausible.Cldr.Currency.pluralize 1, :USD, locale: \"fr\"\n {:ok, \"dollar des États-Unis\"}","ref":"Plausible.Cldr.Currency.html#pluralize/3-examples","title":"Examples - Plausible.Cldr.Currency.pluralize/3","type":"function"},{"doc":"Returns the strings associated with a currency\nin a given locale.","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2","title":"Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"* `currency` is an ISO4217 currency code\n\n* `locale` is any valid locale name returned by `MyApp.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `MyApp.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2-arguments","title":"Arguments - Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"* A list of strings or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2-returns","title":"Returns - Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"iex> MyApp.Cldr.Currency.strings_for_currency :AUD, \"en\"\n [\"a$\", \"australian dollars\", \"aud\", \"australian dollar\"]","ref":"Plausible.Cldr.Currency.html#strings_for_currency/2-example","title":"Example - Plausible.Cldr.Currency.strings_for_currency/2","type":"function"},{"doc":"Backend module that provides functions\nto define new locales and display human-readable\nlocale names for presentation purposes.","ref":"Plausible.Cldr.Locale.html","title":"Plausible.Cldr.Locale","type":"module"},{"doc":"Returns the list of fallback locale names, starting\nwith the provided locale name.\n\nFallbacks are a list of locate names which can\nbe used to resolve translation or other localization\ndata if such localised data does not exist for\nthis specific locale..","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1","title":"Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"* `locale_name` is any locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1-arguments","title":"Arguments - Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"* `{:ok, list_of_locale_names}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1-returns","title":"Returns - Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.fallback_locale_names(:\"fr-CA\")\n {:ok, [:\"fr-CA\", :fr, :und]}\n\n # Fallbacks are typically formed by progressively\n # stripping variant, territory and script from the\n # given locale name. But not always - there are\n # certain fallbacks that take a different path.\n\n iex> Plausible.Cldr.Locale.fallback_locale_names(:nb)\n {:ok, [:nb, :no, :und]}","ref":"Plausible.Cldr.Locale.html#fallback_locale_names/1-examples","title":"Examples - Plausible.Cldr.Locale.fallback_locale_names/1","type":"function"},{"doc":"Returns the list of fallback locales, starting\nwith the provided locale name.\n\nFallbacks are a list of locate names which can\nbe used to resolve translation or other localization\ndata if such localised data does not exist for\nthis specific locale.","ref":"Plausible.Cldr.Locale.html#fallback_locales/1","title":"Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"* `locale_name` is any locale name returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#fallback_locales/1-arguments","title":"Arguments - Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"* `{:ok, list_of_locales}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#fallback_locales/1-returns","title":"Returns - Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"Plausible.Cldr.Locale.fallback_locales(:\"fr-CA\")\n => {:ok,\n [#Cldr.LanguageTag , #Cldr.LanguageTag ,\n #Cldr.LanguageTag ]}\n\n # Fallbacks are typically formed by progressively\n # stripping variant, territory and script from the\n # given locale name. But not always - there are\n # certain fallbacks that take a different path.\n\n Plausible.Cldr.Locale.fallback_locales(:nb))\n => {:ok,\n [#Cldr.LanguageTag , #Cldr.LanguageTag ,\n #Cldr.LanguageTag ]}","ref":"Plausible.Cldr.Locale.html#fallback_locales/1-examples","title":"Examples - Plausible.Cldr.Locale.fallback_locales/1","type":"function"},{"doc":"Returns the \"best fit\" locale for a given territory.\n\nUsing the population percentage data from CLDR, the\nlanguage most commonly spoken in the given territory\nis used to form a locale name which is then validated\nagainst the given backend.\n\nFirst a territory-specific locale is validated and if\nthat fails, the base language only is validate.\n\nFor example, if the territory is `AU` then then the\nlanguage most spoken is \"en\". First, the locale \"en-AU\"\nis validated and if that fails, \"en\" is validated.","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1","title":"Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"* `territory` is any ISO 3166 Alpha-2 territory\n code that can be validated by `Cldr.validate_territory/1`","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1-arguments","title":"Arguments - Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"* `{:ok, language_tag}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1-returns","title":"Returns - Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.locale_for_territory(:AU)\n Elixir.Plausible.Cldr.validate_locale(:\"en-AU\")\n\n iex> Plausible.Cldr.Locale.locale_for_territory(:US)\n Elixir.Plausible.Cldr.validate_locale(:\"en-US\")\n\n iex> Plausible.Cldr.Locale.locale_for_territory(:ZZ)\n {:error, {Cldr.UnknownTerritoryError, \"The territory :ZZ is unknown\"}}","ref":"Plausible.Cldr.Locale.html#locale_for_territory/1-examples","title":"Examples - Plausible.Cldr.Locale.locale_for_territory/1","type":"function"},{"doc":"Returns a \"best fit\" locale for a host name.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2","title":"Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"* `host` is any valid host name\n\n* `options` is a keyword list of options. The default\n is `[]`.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-arguments","title":"Arguments - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"* `:tlds` is a list of territory codes as upper-cased\n atoms that are to be considered as top-level domains.\n See `Cldr.Locale.locale_from_host/2` for the default\n list.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-options","title":"Options - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"* `{:ok, langauge_tag}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-returns","title":"Returns - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"Certain top-level domains have become associated with content\nunderlated to the territory for who the domain is registered.\nTherefore Google (and perhaps others) do not associate these\nTLDs as belonging to the territory but rather are considered\ngeneric top-level domain names.","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-notes","title":"Notes - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.locale_from_host \"a.b.com.au\"\n Elixir.Plausible.Cldr.validate_locale(:\"en-AU\")\n\n iex> Plausible.Cldr.Locale.locale_from_host(\"a.b.com.tv\")\n {:error,\n {Cldr.UnknownLocaleError, \"No locale was identified for territory \\\"tv\\\"\"}}\n\n iex> Plausible.Cldr.Locale.locale_from_host(\"a.b.com\")\n {:error,\n {Cldr.UnknownLocaleError, \"No locale was identified for territory \\\"com\\\"\"}}","ref":"Plausible.Cldr.Locale.html#locale_from_host/2-examples","title":"Examples - Plausible.Cldr.Locale.locale_from_host/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Locale.html#new/1","title":"Plausible.Cldr.Locale.new/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Locale.html#new!/1","title":"Plausible.Cldr.Locale.new!/1","type":"function"},{"doc":"Returns the script direction for a locale.","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1","title":"Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"* `language_tag` is any language tag returned by `Cldr.Locale.new/2`\n or any `locale_name` returned by `Cldr.known_locale_names/1`.","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"* The script direction which is either `:ltr` (for left-to-right\n scripts) or `:rtl` (for right-to-left scripts).","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1-returns","title":"Returns - Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.script_direction_from_locale \"en-US\"\n :ltr\n\n iex> Plausible.Cldr.Locale.script_direction_from_locale :ar\n :rtl","ref":"Plausible.Cldr.Locale.html#script_direction_from_locale/1-examples","title":"Examples - Plausible.Cldr.Locale.script_direction_from_locale/1","type":"function"},{"doc":"Returns the last segment of a host that might\nbe a territory.","ref":"Plausible.Cldr.Locale.html#territory_from_host/1","title":"Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"* `host` is any valid host name","ref":"Plausible.Cldr.Locale.html#territory_from_host/1-arguments","title":"Arguments - Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"* `{:ok, territory}` or\n\n* `{:error, {exception, reason}}`","ref":"Plausible.Cldr.Locale.html#territory_from_host/1-returns","title":"Returns - Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"iex> Cldr.Locale.territory_from_host(\"a.b.com.au\")\n {:ok, :AU}\n\n iex> Cldr.Locale.territory_from_host(\"a.b.com\")\n {:error,\n {Cldr.UnknownLocaleError, \"No locale was identified for territory \\\"com\\\"\"}}","ref":"Plausible.Cldr.Locale.html#territory_from_host/1-examples","title":"Examples - Plausible.Cldr.Locale.territory_from_host/1","type":"function"},{"doc":"Returns the territory from a language tag or\nlocale name.","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1","title":"Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"* `locale` is any language tag returned by\n `Plausible.Cldr.Locale.new/1`\n or a locale name in the list returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"* A territory code as an atom","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1-returns","title":"Returns - Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.territory_from_locale \"en-US\"\n :US\n\n iex> Plausible.Cldr.Locale.territory_from_locale \"en-US-u-rg-GBzzzz\"\n :GB","ref":"Plausible.Cldr.Locale.html#territory_from_locale/1-examples","title":"Examples - Plausible.Cldr.Locale.territory_from_locale/1","type":"function"},{"doc":"Returns the time zone from a language tag or\nlocale name.","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1","title":"Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"* `locale` is any language tag returned by\n `Plausible.Cldr.Locale.new/1`\n or a locale name in the list returned by\n `Plausible.Cldr.known_locale_names/0`","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"* A time zone ID as a string or\n\n* `:error` if no time zone can be determined","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1-returns","title":"Returns - Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Locale.timezone_from_locale \"en-US-u-tz-ausyd\"\n \"Australia/Sydney\"","ref":"Plausible.Cldr.Locale.html#timezone_from_locale/1-examples","title":"Examples - Plausible.Cldr.Locale.timezone_from_locale/1","type":"function"},{"doc":"Formats numbers and currencies based upon CLDR's decimal formats specification.\n\nThe format specification is documentated in [Unicode TR35](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Formats).\nThere are several classes of formatting including non-scientific, scientific,\nrules based (for spelling and ordinal formats), compact formats that display `1k`\nrather than `1,000` and so on. See `Cldr.Number.to_string/2` for specific formatting\noptions.\n\n#","ref":"Plausible.Cldr.Number.html","title":"Plausible.Cldr.Number","type":"module"},{"doc":"The following description applies to formats that do not use scientific\nnotation or significant digits:\n\n* If the number of actual integer digits exceeds the maximum integer digits,\n then only the least significant digits are shown. For example, 1997 is\n formatted as \"97\" if the maximum integer digits is set to 2.\n\n* If the number of actual integer digits is less than the minimum integer\n digits, then leading zeros are added. For example, 1997 is formatted as\n \"01997\" if the minimum integer digits is set to 5.\n\n* If the number of actual fraction digits exceeds the maximum fraction\n digits, then half-even rounding it performed to the maximum fraction\n digits. For example, 0.125 is formatted as \"0.12\" if the maximum fraction\n digits is 2. This behavior can be changed by specifying a rounding\n increment and a rounding mode.\n\n* If the number of actual fraction digits is less than the minimum fraction\n digits, then trailing zeros are added. For example, 0.125 is formatted as\n \"0.1250\" if the minimum fraction digits is set to 4.\n\n* Trailing fractional zeros are not displayed if they occur j positions after\n the decimal, where j is less than the maximum fraction digits. For example,\n 0.10004 is formatted as \"0.1\" if the maximum fraction digits is four or\n less.\n\n#","ref":"Plausible.Cldr.Number.html#module-non-scientific-notation-formatting","title":"Non-Scientific Notation Formatting - Plausible.Cldr.Number","type":"module"},{"doc":"Numbers in scientific notation are expressed as the product of a mantissa and\na power of ten, for example, 1234 can be expressed as 1.234 x 10^3. The\nmantissa is typically in the half-open interval [1.0, 10.0) or sometimes\n[0.0, 1.0), but it need not be. In a pattern, the exponent character\nimmediately followed by one or more digit characters indicates scientific\nnotation. Example: \"0.###E0\" formats the number 1234 as \"1.234E3\".\n\n* The number of digit characters after the exponent character gives the\n minimum exponent digit count. There is no maximum. Negative exponents are\n formatted using the localized minus sign, not the prefix and suffix from\n the pattern. This allows patterns such as \"0.###E0 m/s\". To prefix positive\n exponents with a localized plus sign, specify '+' between the exponent and\n the digits: \"0.###E+0\" will produce formats \"1E+1\", \"1E+0\", \"1E-1\", and so\n on. (In localized patterns, use the localized plus sign rather than '+'.)\n\n* The minimum number of integer digits is achieved by adjusting the exponent.\n Example: 0.00123 formatted with \"00.###E0\" yields \"12.3E-4\". This only\n happens if there is no maximum number of integer digits. If there is a\n maximum, then the minimum number of integer digits is fixed at one.\n\n* The maximum number of integer digits, if present, specifies the exponent\n grouping. The most common use of this is to generate engineering notation,\n in which the exponent is a multiple of three, for example, \"##0.###E0\". The\n number 12345 is formatted using \"##0.####E0\" as \"12.345E3\".\n\n* When using scientific notation, the formatter controls the digit counts\n using significant digits logic. The maximum number of significant digits\n limits the total number of integer and fraction digits that will be shown\n in the mantissa; it does not affect parsing. For example, 12345 formatted\n with \"##0.##E0\" is \"12.3E3\". Exponential patterns may not contain grouping\n separators.\n\n#","ref":"Plausible.Cldr.Number.html#module-scientific-notation-formatting","title":"Scientific Notation Formatting - Plausible.Cldr.Number","type":"module"},{"doc":"There are two ways of controlling how many digits are shows: (a)\nsignificant digits counts, or (b) integer and fraction digit counts. Integer\nand fraction digit counts are described above. When a formatter is using\nsignificant digits counts, it uses however many integer and fraction digits\nare required to display the specified number of significant digits. It may\nignore min/max integer/fraction digits, or it may use them to the extent\npossible.","ref":"Plausible.Cldr.Number.html#module-significant-digits","title":"Significant Digits - Plausible.Cldr.Number","type":"module"},{"doc":"Parse a string locale-aware manner and return\na number.","ref":"Plausible.Cldr.Number.html#parse/2","title":"Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"* `string` is any `String.t`\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#parse/2-arguments","title":"Arguments - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"* `:number` is one of `:integer`, `:float`,\n `:decimal` or `nil`. The default is `nil`\n meaning that the type auto-detected as either\n an `integer` or a `float`.\n\n* `:locale` is any locale returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag.t`. The default is\n `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.html#parse/2-options","title":"Options - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"* A number of the requested or default type or\n\n* `{:error, {exception, error}}` if no number could be determined","ref":"Plausible.Cldr.Number.html#parse/2-returns","title":"Returns - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"This function parses a string to return a number but\nin a locale-aware manner. It will normalise grouping\ncharacters and decimal separators, different forms of\nthe `+` and `-` symbols that appear in Unicode and\nstrips any `_` characters that might be used for\nformatting in a string. It then parses the number\nusing the Elixir standard library functions.","ref":"Plausible.Cldr.Number.html#parse/2-notes","title":"Notes - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.parse(\"+1.000,34\", locale: \"de\")\n {:ok, 1000.34}\n\n iex> Plausible.Cldr.Number.parse(\"-1_000_000.34\")\n {:ok, -1000000.34}\n\n iex> Plausible.Cldr.Number.parse(\"1.000\", locale: \"de\", number: :integer)\n {:ok, 1000}\n\n iex> Plausible.Cldr.Number.parse(\"+1.000,34\", locale: \"de\", number: :integer)\n {:error,\n {Cldr.Number.ParseError,\n \"The string \\\"+1.000,34\\\" could not be parsed as a number\"}}","ref":"Plausible.Cldr.Number.html#parse/2-examples","title":"Examples - Plausible.Cldr.Number.parse/2","type":"function"},{"doc":"Resolve curencies from strings within\na list.","ref":"Plausible.Cldr.Number.html#resolve_currencies/2","title":"Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"* `list` is any list in which currency\n names and symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `Plausible.Cldr.get_locale()`\n\n* `:only` is an `atom` or list of `atoms` representing the\n currencies or currency types to be considered for a match.\n The equates to a list of acceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:except` is an `atom` or list of `atoms` representing the\n currencies or currency types to be not considered for a match.\n This equates to a list of unacceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:fuzzy` is a float greater than `0.0` and less than or\n equal to `1.0` which is used as input to\n `String.jaro_distance/2` to determine is the provided\n currency string is *close enough* to a known currency\n string for it to identify definitively a currency code.\n It is recommended to use numbers greater than `0.8` in\n order to reduce false positives.","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-options","title":"Options - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"The `:only` and `:except` options accept a list of\ncurrency codes and/or currency types. The following\ntypes are recognised.\n\nIf both `:only` and `:except` are specified,\nthe `:except` entries take priority - that means\nany entries in `:except` are removed from the `:only`\nentries.\n\n * `:all`, the default, considers all currencies\n\n * `:current` considers those currencies that have a `:to`\n date of nil and which also is a known ISO4217 currency\n\n * `:historic` is the opposite of `:current`\n\n * `:tender` considers currencies that are legal tender\n\n * `:unannotated` considers currencies that don't have\n \"(some string)\" in their names. These are usually\n financial instruments.","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-notes","title":"Notes - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.scan(\"100 US dollars\")\n ...> |> Plausible.Cldr.Number.resolve_currencies\n [100, :USD]\n\n iex> Plausible.Cldr.Number.scan(\"100 eurosports\")\n ...> |> Plausible.Cldr.Number.resolve_currencies(fuzzy: 0.75)\n [100, :EUR]\n\n iex> Plausible.Cldr.Number.scan(\"100 dollars des États-Unis\")\n ...> |> Plausible.Cldr.Number.resolve_currencies(locale: \"fr\")\n [100, :USD]","ref":"Plausible.Cldr.Number.html#resolve_currencies/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_currencies/2","type":"function"},{"doc":"Resolve a currency from a string","ref":"Plausible.Cldr.Number.html#resolve_currency/2","title":"Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"* `list` is any list in which currency\n names and symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_currency/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `Plausible.Cldr.get_locale()`\n\n* `:only` is an `atom` or list of `atoms` representing the\n currencies or currency types to be considered for a match.\n The equates to a list of acceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:except` is an `atom` or list of `atoms` representing the\n currencies or currency types to be not considered for a match.\n This equates to a list of unacceptable currencies for parsing.\n See the notes below for currency types.\n\n* `:fuzzy` is a float greater than `0.0` and less than or\n equal to `1.0` which is used as input to\n `String.jaro_distance/2` to determine is the provided\n currency string is *close enough* to a known currency\n string for it to identify definitively a currency code.\n It is recommended to use numbers greater than `0.8` in\n order to reduce false positives.","ref":"Plausible.Cldr.Number.html#resolve_currency/2-options","title":"Options - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"* An ISO4217 currency code as an atom or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.html#resolve_currency/2-returns","title":"Returns - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"The `:only` and `:except` options accept a list of\ncurrency codes and/or currency types. The following\ntypes are recognised.\n\nIf both `:only` and `:except` are specified,\nthe `:except` entries take priority - that means\nany entries in `:except` are removed from the `:only`\nentries.\n\n * `:all`, the default, considers all currencies\n\n * `:current` considers those currencies that have a `:to`\n date of nil and which also is a known ISO4217 currency\n\n * `:historic` is the opposite of `:current`\n\n * `:tender` considers currencies that are legal tender\n\n * `:unannotated` considers currencies that don't have\n \"(some string)\" in their names. These are usually\n financial instruments.","ref":"Plausible.Cldr.Number.html#resolve_currency/2-notes","title":"Notes - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.resolve_currency(\"US dollars\")\n [:USD]\n\n iex> Plausible.Cldr.Number.resolve_currency(\"100 eurosports\", fuzzy: 0.75)\n [:EUR]\n\n iex> Plausible.Cldr.Number.resolve_currency(\"dollars des États-Unis\", locale: \"fr\")\n [:USD]\n\n iex> Plausible.Cldr.Number.resolve_currency(\"not a known currency\", locale: \"fr\")\n {:error,\n {Cldr.UnknownCurrencyError,\n \"The currency \\\"not a known currency\\\" is unknown or not supported\"}}","ref":"Plausible.Cldr.Number.html#resolve_currency/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_currency/2","type":"function"},{"doc":"Resolve and tokenize percent or permille\nfrom the beginning and/or the end of a string","ref":"Plausible.Cldr.Number.html#resolve_per/2","title":"Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"* `list` is any list in which percent\n and permille symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_per/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `options[:backend].get_locale()`","ref":"Plausible.Cldr.Number.html#resolve_per/2-options","title":"Options - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"* An `:percent` or `permille` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.html#resolve_per/2-returns","title":"Returns - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.resolve_per \"11%\"\n [\"11\", :percent]\n\n iex> Plausible.Cldr.Number.resolve_per \"% of linguists\"\n [:percent, \" of linguists\"]\n\n iex> Plausible.Cldr.Number.resolve_per \"% of linguists %\"\n [:percent, \" of linguists \", :percent]","ref":"Plausible.Cldr.Number.html#resolve_per/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_per/2","type":"function"},{"doc":"Resolve and tokenize percent and permille\nsybols from strings within a list.\n\nPercent and permille symbols can be identified\nat the beginning and/or the end of a string.","ref":"Plausible.Cldr.Number.html#resolve_pers/2","title":"Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"* `list` is any list in which percent and\n permille symbols are expected\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#resolve_pers/2-arguments","title":"Arguments - Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"* `:locale` is any valid locale returned by `Cldr.known_locale_names/1`\n or a `t:Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n The default is `options[:backend].get_locale()`","ref":"Plausible.Cldr.Number.html#resolve_pers/2-options","title":"Options - Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.scan(\"100%\")\n ...> |> Plausible.Cldr.Number.resolve_pers()\n [100, :percent]","ref":"Plausible.Cldr.Number.html#resolve_pers/2-examples","title":"Examples - Plausible.Cldr.Number.resolve_pers/2","type":"function"},{"doc":"Scans a string locale-aware manner and returns\na list of strings and numbers.","ref":"Plausible.Cldr.Number.html#scan/2","title":"Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"* `string` is any `String.t`\n\n* `options` is a keyword list of options","ref":"Plausible.Cldr.Number.html#scan/2-arguments","title":"Arguments - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"* `:number` is one of `:integer`, `:float`,\n `:decimal` or `nil`. The default is `nil`\n meaning that the type auto-detected as either\n an `integer` or a `float`.\n\n* `:locale` is any locale returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag.t`. The default is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.html#scan/2-options","title":"Options - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"* A list of strings and numbers","ref":"Plausible.Cldr.Number.html#scan/2-returns","title":"Returns - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"Number parsing is performed by `Cldr.Number.Parser.parse/2`\nand any options provided are passed to that function.","ref":"Plausible.Cldr.Number.html#scan/2-notes","title":"Notes - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.scan(\"£1_000_000.34\")\n [\"£\", 1000000.34]\n\n iex> Plausible.Cldr.Number.scan(\"I want £1_000_000 dollars\")\n [\"I want £\", 1000000, \" dollars\"]\n\n iex> Plausible.Cldr.Number.scan(\"The prize is 23\")\n [\"The prize is \", 23]\n\n iex> Plausible.Cldr.Number.scan(\"The lottery number is 23 for the next draw\")\n [\"The lottery number is \", 23, \" for the next draw\"]\n\n iex> Plausible.Cldr.Number.scan(\"The loss is -1.000 euros\", locale: \"de\", number: :integer)\n [\"The loss is \", -1000, \" euros\"]","ref":"Plausible.Cldr.Number.html#scan/2-examples","title":"Examples - Plausible.Cldr.Number.scan/2","type":"function"},{"doc":"Formats a number and applies the `:approximately` format for\na locale and number system.","ref":"Plausible.Cldr.Number.html#to_approx_string/2","title":"Plausible.Cldr.Number.to_approx_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Cldr.Number.to_string/3` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_approx_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_approx_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_approx_string 1234\n {:ok, \"~1,234\"}","ref":"Plausible.Cldr.Number.html#to_approx_string/2-example","title":"Example - Plausible.Cldr.Number.to_approx_string/2","type":"function"},{"doc":"Formats a number and applies the `:at_least` format for\na locale and number system.","ref":"Plausible.Cldr.Number.html#to_at_least_string/2","title":"Plausible.Cldr.Number.to_at_least_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Plausible.Cldr.Number.to_string/2` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_at_least_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_at_least_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_at_least_string 1234\n {:ok, \"1,234+\"}","ref":"Plausible.Cldr.Number.html#to_at_least_string/2-example","title":"Example - Plausible.Cldr.Number.to_at_least_string/2","type":"function"},{"doc":"Formats a number and applies the `:at_most` format for\na locale and number system.","ref":"Plausible.Cldr.Number.html#to_at_most_string/2","title":"Plausible.Cldr.Number.to_at_most_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Cldr.Number.to_string/3` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_at_most_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_at_most_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_at_most_string 1234\n {:ok, \"≤1,234\"}","ref":"Plausible.Cldr.Number.html#to_at_most_string/2-example","title":"Example - Plausible.Cldr.Number.to_at_most_string/2","type":"function"},{"doc":"Formats the first and last numbers of a range and applies\nthe `:range` format for a locale and number system.","ref":"Plausible.Cldr.Number.html#to_range_string/2","title":"Plausible.Cldr.Number.to_range_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.\n See `Cldr.Number.to_string/3` for a description of the available\n options.","ref":"Plausible.Cldr.Number.html#to_range_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_range_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_range_string 1234..5678\n {:ok, \"1,234–5,678\"}","ref":"Plausible.Cldr.Number.html#to_range_string/2-example","title":"Example - Plausible.Cldr.Number.to_range_string/2","type":"function"},{"doc":"Returns a number formatted into a string according to a format pattern and options.","ref":"Plausible.Cldr.Number.html#to_string/2","title":"Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted.","ref":"Plausible.Cldr.Number.html#to_string/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"* `format`: the format style or a format string defining how the number is\n formatted. See `Cldr.Number.Format` for how format strings can be constructed.\n See `Cldr.Number.Format.format_styles_for/3` to return available format styles\n for a locale. The default `format` is `:standard`.\n\n* If `:format` is set to `:long` or `:short` then the formatting depends on\n whether `:currency` is specified. If not specified then the number is\n formatted as `:decimal_long` or `:decimal_short`. If `:currency` is\n specified the number is formatted as `:currency_long` or\n `:currency_short` and `:fractional_digits` is set to 0 as a default.\n\n* `:format` may also be a format defined by CLDR's Rules Based Number\n Formats (RBNF). Further information is found in the module `Cldr.Rbnf`.\n The most commonly used formats in this category are to spell out the\n number in a the locales language. The applicable formats are `:spellout`,\n `:spellout_year`, `:ordinal`. A number can also be formatted as roman\n numbers by using the format `:roman` or `:roman_lower`.\n\n* `currency`: is the currency for which the number is formatted. For\n available currencies see `Cldr.Currency.known_currencies/0`. This option\n is required if `:format` is set to `:currency`. If `currency` is set\n and no `:format` is set, `:format` will be set to `:currency` as well.\n\n* `currency_symbol`: Allows overriding a currency symbol. The alternatives\n are:\n * `:iso` the ISO currency code will be used instead of the default\n currency symbol.\n * `:narrow` uses the narrow symbol defined for the locale. The same\n narrow symbol can be defined for more than one currency and therefore this\n should be used with care. If no narrow symbol is defined, the standard\n symbol is used.\n * `:symbol` uses the standard symbol defined in CLDR. A symbol is unique\n for each currency and can be safely used.\n * \"string\" uses `string` as the currency symbol\n * `:standard` (the default and recommended) uses the CLDR-defined symbol\n based upon the currency format for the locale.\n\n* `:cash`: a boolean which indicates whether a number being formatted as a\n `:currency` is to be considered a cash value or not. Currencies can be\n rounded differently depending on whether `:cash` is `true` or `false`.\n *This option is deprecated in favour of `currency_digits: :cash`.\n\n* `:currency_digits` indicates which of the rounding and digits should be\n used. The options are `:accounting` which is the default, `:cash` or\n `:iso`\n\n* `:rounding_mode`: determines how a number is rounded to meet the precision\n of the format requested. The available rounding modes are `:down`,\n :half_up, :half_even, :ceiling, :floor, :half_down, :up. The default is\n `:half_even`.\n\n* `:number_system`: determines which of the number systems for a locale\n should be used to define the separators and digits for the formatted\n number. If `number_system` is an `atom` then `number_system` is\n interpreted as a number system. If the `:number_system` is\n `binary` then it is interpreted as a number system name. See\n `Cldr.Number.System.number_system_names_for/2`. The default is `:default`.\n\n* `:locale`: determines the locale in which the number is formatted. See\n `Cldr.known_locale_names/0`. The default is`Cldr.get_locale/0` which is the\n locale currently in affect for this `Process` and which is set by\n `Cldr.put_locale/1`.\n\n* If `:fractional_digits` is set to a positive integer value then the number\n will be rounded to that number of digits and displayed accordingly - overriding\n settings that would be applied by default. For example, currencies have\n fractional digits defined reflecting each currencies minor unit. Setting\n `:fractional_digits` will override that setting.\n\n* If `:maximum_integer_digits` is set to a positive integer value then the\n number is left truncated before formatting. For example if the number `1234`\n is formatted with the option `maximum_integer_digits: 2`, the number is\n truncated to `34` and formatted.\n\n* If `:round_nearest` is set to a positive integer value then the number\n will be rounded to nearest increment of that value - overriding\n settings that would be applied by default.\n\n* `:minimum_grouping_digits` overrides the CLDR definition of minimum grouping\n digits. For example in the locale `es` the number `1234` is formatted by default\n as `1345` because the locale defines the `minimium_grouping_digits` as `2`. If\n `minimum_grouping_digits: 1` is set as an option the number is formatting as\n `1.345`. The `:minimum_grouping_digits` is added to the grouping defined by\n the number format. If the sum of these two digits is greater than the number\n of digits in the integer (or fractional) part of the number then no grouping\n is performed.\n\n* `:wrapper` is a 2-arity function that will be called for each number component\n with parameters `string` and `tag` where `tag` is one of `:number`,\n `:currency_symbol`, `:currency_space`, `:literal`, `:quote`, `:percent`,\n `:permille`, `:minus` or `:plus`. The function must return a string. The\n function can be used to wrap format elements in HTML or other tags.","ref":"Plausible.Cldr.Number.html#to_string/2-options","title":"Options - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"A locale identifier can specify options that affect number formatting.\nThese options are:\n\n* `nu`: defines the number system to be used if none is specified by the `:number_system`\n option to `to_string/2`\n\nThis key is part of the [u extension](https://unicode.org/reports/tr35/#u_Extension) and\nthat document should be consulted for details on how to construct a locale identifier with these\nextensions.","ref":"Plausible.Cldr.Number.html#to_string/2-locale-extensions-affecting-formatting","title":"Locale extensions affecting formatting - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"Wrapping elements is particularly useful when formatting a number with a\ncurrency symbol and the requirement is to have different HTML formatting\napplied to the symbol than the number. For example:\n\n iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn\n ...> string, :currency_symbol -> \" \" string \" \"\n ...> string, :number -> \" \" string \" \"\n ...> string, :currency_space -> \" \" string \" \"\n ...> string, _other -> string\n ...> end)\n {:ok, \" $ 100.00 \"}\n\nIt is also possible and recommended to use the `Phoenix.HTML.Tag.content_tag/3`\nfunction if wrapping HTML tags since these will ensure HTML entities are\ncorrectly encoded. For example:\n\n iex> Cldr.Number.to_string(100, format: :currency, currency: :USD, wrapper: fn\n ...> string, :currency_symbol -> Phoenix.HTML.Tag.content_tag(:span, string, class: \"symbol\")\n ...> string, :number -> Phoenix.HTML.Tag.content_tag(:span, string, class: \"number\")\n ...> string, :currency_space -> Phoenix.HTML.Tag.content_tag(:span, string)\n ...> string, _other -> string\n ...> end)\n {:ok, \" $ 100.00 \"}\n\nWhen formatting a number the format is parsed into format elements that might include\na currency symbol, a literal string, inserted text between a currency symbol and the\ncurrency amount, a percent sign, the number itself and several other elements. In\nsome cases it is helpful to be apply specific formatting to each element.\nThis can be achieved by specifying a `:wrapper` option. This option takes a 2-arity\nfunction as an argument. For each element of the format the wrapper function is called\nwith two parameters: the format element as a string and an atom representing the\nelement type. The wrapper function is required to return a string that is then\ninserted in the final formatted number.","ref":"Plausible.Cldr.Number.html#to_string/2-wrapping-format-elements","title":"Wrapping format elements - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"* `{:ok, string}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.html#to_string/2-returns","title":"Returns - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_string 12345\n {:ok, \"12,345\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, locale: \"fr\"\n {:ok, \"12 345\"}\n\n iex> Plausible.Cldr.Number.to_string 1345.32, currency: :EUR, locale: \"es\", minimum_grouping_digits: 1\n {:ok, \"1.345,32 €\"}\n\n iex> Plausible.Cldr.Number.to_string 1345.32, currency: :EUR, locale: \"es\"\n {:ok, \"1345,32 €\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, locale: \"fr\", currency: \"USD\"\n {:ok, \"12 345,00 $US\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: \"#E0\"\n {:ok, \"1.2345E4\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: \"THB\"\n {:ok, \"THB 12,345.00\"}\n\n iex> Plausible.Cldr.Number.to_string -12345, format: :accounting, currency: \"THB\"\n {:ok, \"(THB 12,345.00)\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: \"THB\",\n ...> locale: \"th\"\n {:ok, \"฿12,345.00\"}\n\n iex> Plausible.Cldr.Number.to_string 12345, format: :accounting, currency: \"THB\",\n ...> locale: \"th\", number_system: :native\n {:ok, \"฿๑๒,๓๔๕.๐๐\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :long\n {:ok, \"1 thousand\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :long, currency: \"USD\"\n {:ok, \"1,244 US dollars\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :short\n {:ok, \"1K\"}\n\n iex> Plausible.Cldr.Number.to_string 1244.30, format: :short, currency: \"EUR\"\n {:ok, \"€1K\"}\n\n iex> Plausible.Cldr.Number.to_string 1234, format: :spellout\n {:ok, \"one thousand two hundred thirty-four\"}\n\n iex> Plausible.Cldr.Number.to_string 1234, format: :spellout_verbose\n {:ok, \"one thousand two hundred and thirty-four\"}\n\n iex> Plausible.Cldr.Number.to_string 1989, format: :spellout_year\n {:ok, \"nineteen eighty-nine\"}\n\n iex> Plausible.Cldr.Number.to_string 123, format: :ordinal\n {:ok, \"123rd\"}\n\n iex> Plausible.Cldr.Number.to_string 123, format: :roman\n {:ok, \"CXXIII\"}\n\n iex> Plausible.Cldr.Number.to_string 123, locale: \"th-u-nu-thai\"\n {:ok, \"๑๒๓\"}","ref":"Plausible.Cldr.Number.html#to_string/2-examples","title":"Examples - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"An error tuple `{:error, reason}` will be returned if an error is detected.\nThe two most likely causes of an error return are:\n\n * A format cannot be compiled. In this case the error tuple will look like:\n\n```\n iex> Plausible.Cldr.Number.to_string(12345, format: \"0#\")\n {:error, {Cldr.FormatCompileError,\n \"Decimal format compiler: syntax error before: \\\"#\\\"\"}}\n```\n\n * The format style requested is not defined for the `locale` and\n `number_system`. This happens typically when the number system is\n `:algorithmic` rather than the more common `:numeric`. In this case the error\n return looks like:\n\n```\n iex> Plausible.Cldr.Number.to_string(1234, locale: \"he\", number_system: \"hebr\")\n {:error, {Cldr.UnknownFormatError,\n \"The locale :he with number system :hebr does not define a format :standard\"}}\n```","ref":"Plausible.Cldr.Number.html#to_string/2-errors","title":"Errors - Plausible.Cldr.Number.to_string/2","type":"function"},{"doc":"Same as the execution of `to_string/2` but raises an exception if an error would be\nreturned.","ref":"Plausible.Cldr.Number.html#to_string!/2","title":"Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"* `number` is an integer, float or Decimal to be formatted\n\n* `options` is a keyword list defining how the number is to be formatted. See\n `Plausible.Cldr.Number.to_string/2`","ref":"Plausible.Cldr.Number.html#to_string!/2-arguments","title":"Arguments - Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"* a formatted number as a string or\n\n* raises an exception","ref":"Plausible.Cldr.Number.html#to_string!/2-returns","title":"Returns - Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.to_string! 12345\n \"12,345\"\n\n iex> Plausible.Cldr.Number.to_string! 12345, locale: \"fr\"\n \"12 345\"","ref":"Plausible.Cldr.Number.html#to_string!/2-examples","title":"Examples - Plausible.Cldr.Number.to_string!/2","type":"function"},{"doc":"Return a valid number system from a provided locale and number\nsystem name or type.\n\nThe number system or number system type must be valid for the\ngiven locale. If a number system type is provided, the\nunderlying number system is returned.","ref":"Plausible.Cldr.Number.html#validate_number_system/2","title":"Plausible.Cldr.Number.validate_number_system/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by `Cldr.known_locale_names/1`\n or a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`\n\n* `system_name` is any number system name returned by\n `Cldr.known_number_systems/0` or a number system type\n returned by `Cldr.known_number_system_types/0`","ref":"Plausible.Cldr.Number.html#validate_number_system/2-arguments","title":"Arguments - Plausible.Cldr.Number.validate_number_system/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.validate_number_system \"en\", :latn\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.validate_number_system \"en\", :default\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.validate_number_system \"en\", :unknown\n {:error,\n {Cldr.UnknownNumberSystemError, \"The number system :unknown is unknown\"}}\n\n iex> Plausible.Cldr.Number.validate_number_system \"zz\", :default\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zz\\\" is invalid\"}}","ref":"Plausible.Cldr.Number.html#validate_number_system/2-examples","title":"Examples - Plausible.Cldr.Number.validate_number_system/2","type":"function"},{"doc":"Implements cardinal plural rules for numbers.","ref":"Plausible.Cldr.Number.Cardinal.html","title":"Plausible.Cldr.Number.Cardinal","type":"module"},{"doc":"The locale names for which plural rules are defined.","ref":"Plausible.Cldr.Number.Cardinal.html#available_locale_names/0","title":"Plausible.Cldr.Number.Cardinal.available_locale_names/0","type":"function"},{"doc":"The configured locales for which plural rules are defined.\n\nReturns the intersection of `Plausible.Cldr.known_locale_names/0` and\nthe locales for which Cardinal plural rules are defined.\n\nThere are many `Cldr` locales which don't have their own plural\nrules so this list is the intersection of `Cldr`'s configured\nlocales and those that have rules.","ref":"Plausible.Cldr.Number.Cardinal.html#known_locale_names/0","title":"Plausible.Cldr.Number.Cardinal.known_locale_names/0","type":"function"},{"doc":"Return the plural key for a given number in a given locale\n\nReturns which plural key (`:zero`, `:one`, `:two`, `:few`,\n`:many` or `:other`) a given number fits into within the\ncontext of a given locale.\n\nNote that these key names should not be interpreted\nliterally. For example, the key returned from\n`Cldr.Number.Ordinal.plural_rule(0, \"en\")` is actually\n`:other`, not `:zero`.\n\nThis key can then be used to format a number, date, time, unit,\nlist or other content in a plural-sensitive way.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rule/3","title":"Plausible.Cldr.Number.Cardinal.plural_rule/3","type":"function"},{"doc":"* `number` is any `integer`, `float` or `Decimal`\n\n* `locale` is any locale returned by `Cldr.Locale.new!/2` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `rounding` is one of `[:down, :up, :ceiling, :floor, :half_even, :half_up, :half_down]`. The\n default is `:half_even`.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rule/3-arguments","title":"Arguments - Plausible.Cldr.Number.Cardinal.plural_rule/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Cardinal.plural_rule 0, \"fr\"\n :one\n\n iex> Plausible.Cldr.Number.Cardinal.plural_rule 0, \"en\"\n :other","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rule/3-examples","title":"Examples - Plausible.Cldr.Number.Cardinal.plural_rule/3","type":"function"},{"doc":"Returns all the plural rules defined in CLDR.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rules/0","title":"Plausible.Cldr.Number.Cardinal.plural_rules/0","type":"function"},{"doc":"Return the plural rules for a locale.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rules_for/1","title":"Plausible.Cldr.Number.Cardinal.plural_rules_for/1","type":"function"},{"doc":"* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\nThe rules are returned in AST form after parsing.","ref":"Plausible.Cldr.Number.Cardinal.html#plural_rules_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Cardinal.plural_rules_for/1","type":"function"},{"doc":"Pluralize a number using cardinal plural rules\nand a substitution map.","ref":"Plausible.Cldr.Number.Cardinal.html#pluralize/3","title":"Plausible.Cldr.Number.Cardinal.pluralize/3","type":"function"},{"doc":"* `number` is an integer, float or Decimal\n\n* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `substitutions` is a map that maps plural keys to a string.\n The valid substitution keys are `:zero`, `:one`, `:two`,\n `:few`, `:many` and `:other`.\n\nSee also `Plausible.Cldr.Number.Cardinal.Cardinal.plural_rule/3`.","ref":"Plausible.Cldr.Number.Cardinal.html#pluralize/3-arguments","title":"Arguments - Plausible.Cldr.Number.Cardinal.pluralize/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Cardinal.pluralize 1, \"en\", %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 2, \"en\", %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 2, \"en\", %{one: \"one\", two: \"two\", other: \"other\"}\n \"other\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 22, \"en\", %{one: \"one\", two: \"two\", other: \"other\"}\n \"other\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(1), \"en\", %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), \"en\", %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize Decimal.new(2), \"en\", %{one: \"one\", two: \"two\"}\n nil\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, \"ar\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"few\"\n\n iex> Plausible.Cldr.Number.Cardinal.pluralize 1..10, \"en\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"other\"","ref":"Plausible.Cldr.Number.Cardinal.html#pluralize/3-examples","title":"Examples - Plausible.Cldr.Number.Cardinal.pluralize/3","type":"function"},{"doc":"Functions to manage the collection of number patterns defined in Cldr.\n\nNumber patterns affect how numbers are interpreted in a localized context.\nHere are some examples, based on the French locale. The \".\" shows where the\ndecimal point should go. The \",\" shows where the thousands separator should\ngo. A \"0\" indicates zero-padding: if the number is too short, a zero (in the\nlocale's numeric set) will go there. A \"#\" indicates no padding: if the\nnumber is too short, nothing goes there. A \"¤\" shows where the currency sign\nwill go. The following illustrates the effects of different patterns for the\nFrench locale, with the number \"1234.567\". Notice how the pattern characters\n',' and '.' are replaced by the characters appropriate for the locale.","ref":"Plausible.Cldr.Number.Format.html","title":"Plausible.Cldr.Number.Format","type":"module"},{"doc":"| Pattern\t | Currency\t | Text |\n| ------------- | :-------------: | ----------: |\n| #,##0.##\t | n/a\t | 1 234,57 |\n| #,##0.###\t | n/a\t | 1 234,567 |\n| ###0.#####\t | n/a\t | 1234,567 |\n| ###0.0000#\t | n/a\t | 1234,5670 |\n| 00000.0000\t | n/a\t | 01234,5670 |\n| #,##0.00 ¤\t | EUR\t | 1 234,57 € |\n\nThe number of # placeholder characters before the decimal do not matter,\nsince no limit is placed on the maximum number of digits. There should,\nhowever, be at least one zero some place in the pattern. In currency formats,\nthe number of digits after the decimal also do not matter, since the\ninformation in the supplemental data (see Supplemental Currency Data) is used\nto override the number of decimal places — and the rounding — according to\nthe currency that is being formatted. That can be seen in the above chart,\nwith the difference between Yen and Euro formatting.\n\nDetails of the number formats are described in the\n[Unicode documentation](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Format_Patterns)","ref":"Plausible.Cldr.Number.Format.html#module-number-pattern-examples","title":"Number Pattern Examples - Plausible.Cldr.Number.Format","type":"module"},{"doc":"Returns the decimal formats defined for a given locale.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for/1","title":"Plausible.Cldr.Number.Format.all_formats_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.all_formats_for/1","type":"function"},{"doc":"* `{:ok, map}` where map is a map of decimal formats\n keyed by number system or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.Format.html#all_formats_for/1-returns","title":"Returns - Plausible.Cldr.Number.Format.all_formats_for/1","type":"function"},{"doc":"Returns the decimal formats defined for a given locale.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for!/1","title":"Plausible.Cldr.Number.Format.all_formats_for!/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for!/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.all_formats_for!/1","type":"function"},{"doc":"* `{:ok, map}` where map is a map of decimal formats\n keyed by number system or\n\n* raises an exception\n\nSee `Plausible.Cldr.Number.Format.Number.Format.all_formats_for/1` for further information.","ref":"Plausible.Cldr.Number.Format.html#all_formats_for!/1-returns","title":"Returns - Plausible.Cldr.Number.Format.all_formats_for!/1","type":"function"},{"doc":"Returns the currency space for a given locale and\nnumber system.","ref":"Plausible.Cldr.Number.Format.html#currency_spacing/2","title":"Plausible.Cldr.Number.Format.currency_spacing/2","type":"function"},{"doc":"Returns the list of decimal formats in the configured locales including\nthe list of locales configured for precompilation in `config.exs`.\n\nThis function exists to allow the decimal formatter\nto precompile all the known formats at compile time.","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list/0","title":"Plausible.Cldr.Number.Format.decimal_format_list/0","type":"function"},{"doc":"#=> Plausible.Cldr.Number.Format.Format.decimal_format_list\n [\"#\", \"#,##,##0%\",\n \"#,##,##0.###\", \"#,##,##0.00¤\", \"#,##,##0.00¤;(#,##,##0.00¤)\",\n \"#,##,##0 %\", \"#,##0%\", \"#,##0.###\", \"#,##0.00 ¤\",\n \"#,##0.00 ¤;(#,##0.00 ¤)\", \"#,##0.00¤\", \"#,##0.00¤;(#,##0.00¤)\",\n \"#,##0 %\", \"#0%\", \"#0.######\", \"#0.00 ¤\", \"#E0\", \"%#,##0\", \"% #,##0\",\n \"0\", \"0.000000E+000\", \"0000 M ¤\", \"0000¤\", \"000G ¤\", \"000K ¤\", \"000M ¤\",\n \"000T ¤\", \"000mM ¤\", \"000m ¤\", \"000 Bio'.' ¤\", \"000 Bln ¤\", \"000 Bn ¤\",\n \"000 B ¤\", \"000 E ¤\", \"000 K ¤\", \"000 MRD ¤\", \"000 Md ¤\", \"000 Mio'.' ¤\",\n \"000 Mio ¤\", \"000 Mld ¤\", \"000 Mln ¤\", \"000 Mn ¤\", \"000 Mrd'.' ¤\",\n \"000 Mrd ¤\", \"000 Mr ¤\", \"000 M ¤\", \"000 NT ¤\", \"000 N ¤\", \"000 Tn ¤\",\n \"000 Tr ¤\", ...]","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list/0-example","title":"Example - Plausible.Cldr.Number.Format.decimal_format_list/0","type":"function"},{"doc":"Returns the list of decimal formats for a configured locale.","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list_for/1","title":"Plausible.Cldr.Number.Format.decimal_format_list_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.\n\nThis function exists to allow the decimal formatter to precompile all\nthe known formats at compile time. Its use is not otherwise recommended.","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.decimal_format_list_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.decimal_format_list_for(:en)\n {:ok, [\"#,##0%\", \"#,##0.###\", \"#,##0.00\", \"#,##0.00;(#,##0.00)\",\"#E0\",\n \"0 billion\", \"0 million\", \"0 thousand\",\n \"0 trillion\", \"00 billion\", \"00 million\", \"00 thousand\", \"00 trillion\",\n \"000 billion\", \"000 million\", \"000 thousand\", \"000 trillion\", \"000B\", \"000K\",\n \"000M\", \"000T\", \"00B\", \"00K\", \"00M\", \"00T\", \"0B\", \"0K\", \"0M\", \"0T\",\n \"¤#,##0.00\", \"¤#,##0.00;(¤#,##0.00)\", \"¤000B\", \"¤000K\", \"¤000M\",\n \"¤000T\", \"¤00B\", \"¤00K\", \"¤00M\", \"¤00T\", \"¤0B\", \"¤0K\", \"¤0M\", \"¤0T\",\n \"¤ #,##0.00\", \"¤ #,##0.00;(¤ #,##0.00)\", \"¤ 000B\", \"¤ 000K\", \"¤ 000M\",\n \"¤ 000T\", \"¤ 00B\", \"¤ 00K\", \"¤ 00M\", \"¤ 00T\", \"¤ 0B\", \"¤ 0K\", \"¤ 0M\", \"¤ 0T\"]}","ref":"Plausible.Cldr.Number.Format.html#decimal_format_list_for/1-example","title":"Example - Plausible.Cldr.Number.Format.decimal_format_list_for/1","type":"function"},{"doc":"Returns the default grouping for a locale as a map.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1","title":"Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"* `{:ok, grouping}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1-returns","title":"Returns - Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.default_grouping_for(:en)\n {:ok, %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}}","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for/1-examples","title":"Examples - Plausible.Cldr.Number.Format.default_grouping_for/1","type":"function"},{"doc":"Returns the default grouping for a locale\nor raises on error.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1","title":"Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"* `grouping` as a map or\n\n* raises an exception","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1-returns","title":"Returns - Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.default_grouping_for!(:en)\n %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}","ref":"Plausible.Cldr.Number.Format.html#default_grouping_for!/1-examples","title":"Examples - Plausible.Cldr.Number.Format.default_grouping_for!/1","type":"function"},{"doc":"Return the predfined formats for a given `locale` and `number_system`.","ref":"Plausible.Cldr.Number.Format.html#formats_for/2","title":"Plausible.Cldr.Number.Format.formats_for/2","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.\n\n* `number_system` is any valid number system or number system type returned\n by `Plausible.Cldr.Number.System.number_systems_for/1`.","ref":"Plausible.Cldr.Number.Format.html#formats_for/2-arguments","title":"Arguments - Plausible.Cldr.Number.Format.formats_for/2","type":"function"},{"doc":"Plausible.Cldr.Number.Format.formats_for :fr, :native\n #=> %Cldr.Number.Format{\n accounting: \"#,##0.00 ¤;(#,##0.00 ¤)\",\n currency: \"#,##0.00 ¤\",\n percent: \"#,##0 %\",\n scientific: \"#E0\",\n standard: \"#,##0.###\"\n currency_short: [{\"1000\", [one: \"0 k ¤\", other: \"0 k ¤\"]},\n {\"10000\", [one: \"00 k ¤\", other: \"00 k ¤\"]},\n {\"100000\", [one: \"000 k ¤\", other: \"000 k ¤\"]},\n {\"1000000\", [one: \"0 M ¤\", other: \"0 M ¤\"]},\n {\"10000000\", [one: \"00 M ¤\", other: \"00 M ¤\"]},\n {\"100000000\", [one: \"000 M ¤\", other: \"000 M ¤\"]},\n {\"1000000000\", [one: \"0 Md ¤\", other: \"0 Md ¤\"]},\n {\"10000000000\", [one: \"00 Md ¤\", other: \"00 Md ¤\"]},\n {\"100000000000\", [one: \"000 Md ¤\", other: \"000 Md ¤\"]},\n {\"1000000000000\", [one: \"0 Bn ¤\", other: \"0 Bn ¤\"]},\n {\"10000000000000\", [one: \"00 Bn ¤\", other: \"00 Bn ¤\"]},\n {\"100000000000000\", [one: \"000 Bn ¤\", other: \"000 Bn ¤\"]}],\n ...\n }","ref":"Plausible.Cldr.Number.Format.html#formats_for/2-example","title":"Example - Plausible.Cldr.Number.Format.formats_for/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Format.html#formats_for!/2","title":"Plausible.Cldr.Number.Format.formats_for!/2","type":"function"},{"doc":"Returns the minimum grouping digits for a locale.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1","title":"Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"* `{:ok, minumum_digits}` or\n\n* `{:error, {exception, message}}`","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1-returns","title":"Returns - Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for(\"en\")\n {:ok, 1}","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for/1-examples","title":"Examples - Plausible.Cldr.Number.Format.minimum_grouping_digits_for/1","type":"function"},{"doc":"Returns the minimum grouping digits for a locale\nor raises on error.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1","title":"Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1-arguments","title":"Arguments - Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"* `minumum_digits` or\n\n* raises an exception","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1-returns","title":"Returns - Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Format.minimum_grouping_digits_for!(\"en\")\n 1","ref":"Plausible.Cldr.Number.Format.html#minimum_grouping_digits_for!/1-examples","title":"Examples - Plausible.Cldr.Number.Format.minimum_grouping_digits_for!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Formatter.Decimal.html","title":"Plausible.Cldr.Number.Formatter.Decimal","type":"module"},{"doc":"","ref":"Plausible.Cldr.Number.Formatter.Decimal.html#metadata!/1","title":"Plausible.Cldr.Number.Formatter.Decimal.metadata!/1","type":"function"},{"doc":"Formats a number according to a decimal format string.","ref":"Plausible.Cldr.Number.Formatter.Decimal.html#to_string/3","title":"Plausible.Cldr.Number.Formatter.Decimal.to_string/3","type":"function"},{"doc":"* `number` is an integer, float or Decimal\n\n* `format` is a format string. See `Plausible.Cldr.Number` for further information.\n\n* `options` is a map of options. See `Plausible.Cldr.Number.to_string/2`\n for further information.","ref":"Plausible.Cldr.Number.Formatter.Decimal.html#to_string/3-arguments","title":"Arguments - Plausible.Cldr.Number.Formatter.Decimal.to_string/3","type":"function"},{"doc":"Implements ordinal plural rules for numbers.","ref":"Plausible.Cldr.Number.Ordinal.html","title":"Plausible.Cldr.Number.Ordinal","type":"module"},{"doc":"The locale names for which plural rules are defined.","ref":"Plausible.Cldr.Number.Ordinal.html#available_locale_names/0","title":"Plausible.Cldr.Number.Ordinal.available_locale_names/0","type":"function"},{"doc":"The configured locales for which plural rules are defined.\n\nReturns the intersection of `Plausible.Cldr.known_locale_names/0` and\nthe locales for which Ordinal plural rules are defined.\n\nThere are many `Cldr` locales which don't have their own plural\nrules so this list is the intersection of `Cldr`'s configured\nlocales and those that have rules.","ref":"Plausible.Cldr.Number.Ordinal.html#known_locale_names/0","title":"Plausible.Cldr.Number.Ordinal.known_locale_names/0","type":"function"},{"doc":"Return the plural key for a given number in a given locale\n\nReturns which plural key (`:zero`, `:one`, `:two`, `:few`,\n`:many` or `:other`) a given number fits into within the\ncontext of a given locale.\n\nNote that these key names should not be interpreted\nliterally. For example, the key returned from\n`Cldr.Number.Ordinal.plural_rule(0, \"en\")` is actually\n`:other`, not `:zero`.\n\nThis key can then be used to format a number, date, time, unit,\nlist or other content in a plural-sensitive way.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rule/3","title":"Plausible.Cldr.Number.Ordinal.plural_rule/3","type":"function"},{"doc":"* `number` is any `integer`, `float` or `Decimal`\n\n* `locale` is any locale returned by `Cldr.Locale.new!/2` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `rounding` is one of `[:down, :up, :ceiling, :floor, :half_even, :half_up, :half_down]`. The\n default is `:half_even`.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rule/3-arguments","title":"Arguments - Plausible.Cldr.Number.Ordinal.plural_rule/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Ordinal.plural_rule 0, \"fr\"\n :other\n\n iex> Plausible.Cldr.Number.Ordinal.plural_rule 1, \"en\"\n :one","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rule/3-examples","title":"Examples - Plausible.Cldr.Number.Ordinal.plural_rule/3","type":"function"},{"doc":"Returns all the plural rules defined in CLDR.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rules/0","title":"Plausible.Cldr.Number.Ordinal.plural_rules/0","type":"function"},{"doc":"Return the plural rules for a locale.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rules_for/1","title":"Plausible.Cldr.Number.Ordinal.plural_rules_for/1","type":"function"},{"doc":"* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\nThe rules are returned in AST form after parsing.","ref":"Plausible.Cldr.Number.Ordinal.html#plural_rules_for/1-arguments","title":"Arguments - Plausible.Cldr.Number.Ordinal.plural_rules_for/1","type":"function"},{"doc":"Pluralize a number using ordinal plural rules\nand a substitution map.","ref":"Plausible.Cldr.Number.Ordinal.html#pluralize/3","title":"Plausible.Cldr.Number.Ordinal.pluralize/3","type":"function"},{"doc":"* `number` is an integer, float or Decimal or a `Range.t{}`. When a range, The\n is that in any usage, the start value is strictly less than the end value,\n and that no values are negative. Results for any cases that do not meet\n these criteria are undefined.\n\n* `locale` is any locale returned by `Plausible.Cldr.Locale.new!/1` or any\n `locale_name` returned by `Plausible.Cldr.known_locale_names/0`\n\n* `substitutions` is a map that maps plural keys to a string.\n The valid substitution keys are `:zero`, `:one`, `:two`,\n `:few`, `:many` and `:other`.\n\nSee also `Plausible.Cldr.Number.Ordinal.Ordinal.plural_rule/3`.","ref":"Plausible.Cldr.Number.Ordinal.html#pluralize/3-arguments","title":"Arguments - Plausible.Cldr.Number.Ordinal.pluralize/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Ordinal.pluralize 1, :en, %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 2, :en, %{one: \"one\", two: \"two\"}\n \"two\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 22, :en, %{one: \"one\", two: \"two\", other: \"other\"}\n \"two\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(1), :en, %{one: \"one\"}\n \"one\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: \"one\"}\n nil\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize Decimal.new(2), :en, %{one: \"one\", two: \"two\"}\n \"two\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, \"ar\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"other\"\n\n iex> Plausible.Cldr.Number.Ordinal.pluralize 1..10, \"en\", %{one: \"one\", few: \"few\", other: \"other\"}\n \"other\"","ref":"Plausible.Cldr.Number.Ordinal.html#pluralize/3-examples","title":"Examples - Plausible.Cldr.Number.Ordinal.pluralize/3","type":"function"},{"doc":"Implements plural rules for ranges","ref":"Plausible.Cldr.Number.PluralRule.Range.html","title":"Plausible.Cldr.Number.PluralRule.Range","type":"module"},{"doc":"Returns a final plural type for a start-of-range plural\ntype, an end-of-range plural type and a locale.","ref":"Plausible.Cldr.Number.PluralRule.Range.html#plural_rule/3","title":"Plausible.Cldr.Number.PluralRule.Range.plural_rule/3","type":"function"},{"doc":"* `first` is a plural type for the start of a range\n\n* `last` is a plural type for the end of a range\n\n* `locale` is any `Cldr.LanguageTag.t` or a language name\n (not locale name)","ref":"Plausible.Cldr.Number.PluralRule.Range.html#plural_rule/3-arguments","title":"Arguments - Plausible.Cldr.Number.PluralRule.Range.plural_rule/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.PluralRule.Range.plural_rule :other, :few, \"ar\"\n :few","ref":"Plausible.Cldr.Number.PluralRule.Range.html#plural_rule/3-example","title":"Example - Plausible.Cldr.Number.PluralRule.Range.plural_rule/3","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Symbol.html","title":"Plausible.Cldr.Number.Symbol","type":"module"},{"doc":"Returns a list of all decimal symbols defined\nby the locales configured in this backend as\na list.","ref":"Plausible.Cldr.Number.Symbol.html#all_decimal_symbols/0","title":"Plausible.Cldr.Number.Symbol.all_decimal_symbols/0","type":"function"},{"doc":"Returns a list of all decimal symbols defined\nby the locales configured in this backend as\na string.\n\nThis string can be used as a character class\nwhen builing a regular expression.","ref":"Plausible.Cldr.Number.Symbol.html#all_decimal_symbols_class/0","title":"Plausible.Cldr.Number.Symbol.all_decimal_symbols_class/0","type":"function"},{"doc":"Returns a list of all grouping symbols defined\nby the locales configured in this backend as\na list.","ref":"Plausible.Cldr.Number.Symbol.html#all_grouping_symbols/0","title":"Plausible.Cldr.Number.Symbol.all_grouping_symbols/0","type":"function"},{"doc":"Returns a list of all grouping symbols defined\nby the locales configured in this backend as\na string.\n\nThis string can be used as a character class\nwhen builing a regular expression.","ref":"Plausible.Cldr.Number.Symbol.html#all_grouping_symbols_class/0","title":"Plausible.Cldr.Number.Symbol.all_grouping_symbols_class/0","type":"function"},{"doc":"Returns a map of `Cldr.Number.Symbol.t` structs of the number symbols for each\nof the number systems of a locale.","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/1","title":"Plausible.Cldr.Number.Symbol.number_symbols_for/1","type":"function"},{"doc":"* `locale` is any valid locale name returned by\n `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by\n `Plausible.Cldr.Locale.new!/1`. The default\n is `Plausible.Cldr.get_locale/0`.","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/1-options","title":"Options - Plausible.Cldr.Number.Symbol.number_symbols_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Symbol.number_symbols_for(:th)\n {:ok, %{\n latn: %Cldr.Number.Symbol{\n decimal: \".\",\n exponential: \"E\",\n group: \",\",\n infinity: \"∞\",\n list: \";\",\n minus_sign: \"-\",\n nan: \"NaN\",\n per_mille: \"‰\",\n percent_sign: \"%\",\n plus_sign: \"+\",\n superscripting_exponent: \"×\",\n time_separator: \":\"\n },\n thai: %Cldr.Number.Symbol{\n decimal: \".\",\n exponential: \"E\",\n group: \",\",\n infinity: \"∞\",\n list: \";\",\n minus_sign: \"-\",\n nan: \"NaN\",\n per_mille: \"‰\",\n percent_sign: \"%\",\n plus_sign: \"+\",\n superscripting_exponent: \"×\",\n time_separator: \":\"\n }\n }}","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/1-example","title":"Example: - Plausible.Cldr.Number.Symbol.number_symbols_for/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Symbol.html#number_symbols_for/2","title":"Plausible.Cldr.Number.Symbol.number_symbols_for/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html","title":"Plausible.Cldr.Number.System","type":"module"},{"doc":"Returns the actual number system from a number system type.\n\n* `locale` is any valid locale name returned by `Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by ``Cldr.Locale.new!/2``\n\n* `system_name` is any number system name returned by\n `Cldr.known_number_systems/0` or a number system type\n returned by `Cldr.known_number_system_types/0`\n\nThis function will decode a number system type into the actual\nnumber system. If the number system provided can't be decoded\nit is returned as is.","ref":"Plausible.Cldr.Number.System.html#number_system_for/2","title":"Plausible.Cldr.Number.System.number_system_for/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_system_for \"th\", :latn\n {:ok, %{digits: \"0123456789\", type: :numeric}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"en\", :default\n {:ok, %{digits: \"0123456789\", type: :numeric}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"he\", :traditional\n {:ok, %{rules: \"hebrew\", type: :algorithmic}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"en\", :native\n {:ok, %{digits: \"0123456789\", type: :numeric}}\n\n iex> Plausible.Cldr.Number.System.number_system_for \"en\", :finance\n {\n :error,\n {Cldr.UnknownNumberSystemError,\n \"The number system :finance is unknown for the locale named :en. Valid number systems are %{default: :latn, native: :latn}\"}\n }","ref":"Plausible.Cldr.Number.System.html#number_system_for/2-examples","title":"Examples - Plausible.Cldr.Number.System.number_system_for/2","type":"function"},{"doc":"Returns the number system from a language tag or\nlocale name.","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1","title":"Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"* `locale` is any language tag returned be `Cldr.Locale.new/2`\n or a locale name in the list returned by `Cldr.known_locale_names/1`","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1-arguments","title":"Arguments - Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"* A number system name as an atom","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1-returns","title":"Returns - Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_system_from_locale \"en-US-u-nu-thai\"\n :thai\n\n iex> Plausible.Cldr.Number.System.number_system_from_locale \"en-US\"\n :latn","ref":"Plausible.Cldr.Number.System.html#number_system_from_locale/1-examples","title":"Examples - Plausible.Cldr.Number.System.number_system_from_locale/1","type":"function"},{"doc":"Returns the number systems available for a locale\nor `{:error, message}` if the locale is not known.\n\n* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Number.System.html#number_system_names_for/1","title":"Plausible.Cldr.Number.System.number_system_names_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_system_names_for \"en\"\n {:ok, [:latn]}\n\n iex> Plausible.Cldr.Number.System.number_system_names_for \"zz\"\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zz\\\" is invalid\"}}","ref":"Plausible.Cldr.Number.System.html#number_system_names_for/1-examples","title":"Examples - Plausible.Cldr.Number.System.number_system_names_for/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_system_names_for!/1","title":"Plausible.Cldr.Number.System.number_system_names_for!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_system_types_for/1","title":"Plausible.Cldr.Number.System.number_system_types_for/1","type":"function"},{"doc":"Returns the number systems available for a locale\nor `{:error, message}` if the locale is not known.\n\n* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`","ref":"Plausible.Cldr.Number.System.html#number_systems_for/1","title":"Plausible.Cldr.Number.System.number_systems_for/1","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.number_systems_for \"en\"\n {:ok, %{default: :latn, native: :latn}}\n\n iex> Plausible.Cldr.Number.System.number_systems_for \"th\"\n {:ok, %{default: :latn, native: :thai}}\n\n iex> Plausible.Cldr.Number.System.number_systems_for \"zz\"\n {:error, {Cldr.InvalidLanguageError, \"The language \\\"zz\\\" is invalid\"}}","ref":"Plausible.Cldr.Number.System.html#number_systems_for/1-examples","title":"Examples - Plausible.Cldr.Number.System.number_systems_for/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_systems_for!/1","title":"Plausible.Cldr.Number.System.number_systems_for!/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.System.html#number_systems_like/2","title":"Plausible.Cldr.Number.System.number_systems_like/2","type":"function"},{"doc":"Returns a number system name for a given locale and number system reference.\n\n* `system_name` is any number system name returned by\n `Plausible.Cldr.known_number_systems/0` or a number system type\n returned by `Plausible.Cldr.known_number_system_types/0`\n\n* `locale` is any valid locale name returned by `Plausible.Cldr.known_locale_names/0`\n or a `Cldr.LanguageTag` struct returned by `Plausible.Cldr.Locale.new!/1`\n\nNumber systems can be references in one of two ways:\n\n* As a number system type such as :default, :native, :traditional and\n :finance. This allows references to a number system for a locale in a\n consistent fashion for a given use\n\n* WIth the number system name directly, such as :latn, :arab or any of the\n other 70 or so\n\nThis function dereferences the supplied `system_name` and returns the\nactual system name.","ref":"Plausible.Cldr.Number.System.html#system_name_from/2","title":"Plausible.Cldr.Number.System.system_name_from/2","type":"function"},{"doc":"ex> Plausible.Cldr.Number.System.system_name_from(:default, \"en\")\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.System.system_name_from(\"latn\", \"en\")\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.System.system_name_from(:native, \"en\")\n {:ok, :latn}\n\n iex> Plausible.Cldr.Number.System.system_name_from(:nope, \"en\")\n {\n :error,\n {Cldr.UnknownNumberSystemError, \"The number system :nope is unknown\"}\n }\n\nNote that return value is not guaranteed to be a valid\nnumber system for the given locale as demonstrated in the third example.","ref":"Plausible.Cldr.Number.System.html#system_name_from/2-examples","title":"Examples - Plausible.Cldr.Number.System.system_name_from/2","type":"function"},{"doc":"Converts a number into the representation of\na non-latin number system.\n\nThis function converts numbers to a known\nnumber system only, it does not provide number\nformatting.\n\n* `number` is a `float`, `integer` or `Decimal`\n\n* `system_name` is any number system name returned by\n `Cldr.known_number_systems/0` or a number system type\n returned by `Cldr.known_number_system_types/0`\n\nThere are two types of number systems in CLDR:\n\n* `:numeric` in which the number system defines\n a direct mapping between the latin digits `0..9`\n into a the number system equivalent. In this case,\n` to_system/2` invokes `Cldr.Number.Transliterate.transliterate_digits/3`\n for the given number.\n\n* `:algorithmic` in which the number system\n does not have the same structure as the `:latn`\n number system and therefore the conversion is\n done algorithmically. For CLDR the algorithm\n is implemented through `Cldr.Rbnf` rulesets.\n These rulesets are considered by CLDR to be\n less rigorous than the `:numeric` number systems\n and caution and testing for a specific use case\n is recommended.","ref":"Plausible.Cldr.Number.System.html#to_system/2","title":"Plausible.Cldr.Number.System.to_system/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.to_system 123456, :hebr\n {:ok, \"קכ״ג׳תנ״ו\"}\n\n iex> Plausible.Cldr.Number.System.to_system 123, :hans\n {:ok, \"一百二十三\"}\n\n iex> Plausible.Cldr.Number.System.to_system 123, :hant\n {:ok, \"一百二十三\"}\n\n iex> Plausible.Cldr.Number.System.to_system 123, :hansfin\n {:ok, \"壹佰贰拾叁\"}","ref":"Plausible.Cldr.Number.System.html#to_system/2-examples","title":"Examples - Plausible.Cldr.Number.System.to_system/2","type":"function"},{"doc":"Converts a number into the representation of\na non-latin number system. Returns a converted\nstring or raises on error.\n\n* `number` is a `float`, `integer` or `Decimal`\n\n* `system_name` is any number system name returned by\n `Plausible.Cldr.known_number_systems/0` or a number system type\n returned by `Plausible.Cldr.known_number_system_types/0`\n\nSee `Plausible.Cldr.Number.System.to_system/2` for further\ninformation.","ref":"Plausible.Cldr.Number.System.html#to_system!/2","title":"Plausible.Cldr.Number.System.to_system!/2","type":"function"},{"doc":"iex> Plausible.Cldr.Number.System.to_system! 123, :hans\n \"一百二十三\"\n\n iex> Plausible.Cldr.Number.System.to_system! 123, :hant\n \"一百二十三\"\n\n iex> Plausible.Cldr.Number.System.to_system! 123, :hansfin\n \"壹佰贰拾叁\"","ref":"Plausible.Cldr.Number.System.html#to_system!/2-examples","title":"Examples - Plausible.Cldr.Number.System.to_system!/2","type":"function"},{"doc":"Transliteration for digits and separators.\n\nTransliterating a string is an expensive business. First the string has to\nbe exploded into its component graphemes. Then for each grapheme we have\nto map to the equivalent in the other `{locale, number_system}`. Then we\nhave to reassemble the string.\n\nEffort is made to short circuit where possible. Transliteration is not\nrequired for any `{locale, number_system}` that is the same as `{\"en\",\n\"latn\"}` since the implementation uses this combination for the placeholders during\nformatting already. When short circuiting is possible (typically the en-*\nlocales with \"latn\" number_system - the total number of short circuited\nlocales is 211 of the 537 in CLDR) the overall number formatting is twice as\nfast than when formal transliteration is required.\n\n#","ref":"Plausible.Cldr.Number.Transliterate.html","title":"Plausible.Cldr.Number.Transliterate","type":"module"},{"doc":"This module includes `Cldr.Number.Transliterate.transliterate_digits/3` which transliterates\ndigits between number systems. For example from :arabic to :latn. Since generating a\ntransliteration map is slow, pairs of transliterations can be configured so that the\ntransliteration map is created at compile time and therefore speeding up transliteration at\nrun time.\n\nTo configure these transliteration pairs, add the to the `use Cldr` configuration\nin a backend module:\n\n defmodule MyApp.Cldr do\n use Cldr,\n locale: [\"en\", \"fr\", \"th\"],\n default_locale: \"en\",\n precompile_transliterations: [{:latn, :thai}, {:arab, :thai}]\n end\n\nWhere each tuple in the list configures one transliteration map. In this example, two maps are\nconfigured: from `:latn` to `:thai` and from `:arab` to `:thai`.\n\nA list of configurable number systems is returned by `Cldr.Number.System.systems_with_digits/0`.\n\nIf a transliteration is requested between two number pairs that have not been configured for\nprecompilation, a warning is logged.","ref":"Plausible.Cldr.Number.Transliterate.html#module-configuring-precompilation-of-digit-transliterations","title":"Configuring precompilation of digit transliterations - Plausible.Cldr.Number.Transliterate","type":"module"},{"doc":"Transliterates from latin digits to another number system's digits.\n\nTransliterates the latin digits 0..9 to their equivalents in\nanother number system. Also transliterates the decimal and grouping\nseparators as well as the plus, minus and exponent symbols. Any other character\nin the string will be returned \"as is\".","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate/3","title":"Plausible.Cldr.Number.Transliterate.transliterate/3","type":"function"},{"doc":"* `sequence` is the string to be transliterated.\n\n* `locale` is any known locale, defaulting to `Plausible.Cldr.get_locale/0`.\n\n* `number_system` is any known number system. If expressed as a `string` it\n is the actual name of a known number system. If epressed as an `atom` it is\n used as a key to look up a number system for the locale (the usual keys are\n `:default` and `:native` but :traditional and :finance are also part of the\n standard). See `Plausible.Cldr.Number.System.number_systems_for/1` for a locale to\n see what number system types are defined. The default is `:default`.\n\nFor available number systems see `Cldr.Number.System.number_systems/0`\nand `Plausible.Cldr.Number.System.number_systems_for/1`. Also see\n`Plausible.Cldr.Number.Symbol.number_symbols_for/1`.","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate/3-arguments","title":"Arguments - Plausible.Cldr.Number.Transliterate.transliterate/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\")\n \"123556\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123,556.000\", \"fr\", :default)\n \"123 556,000\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\", \"th\", :default)\n \"123556\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\", \"th\", \"thai\")\n \"๑๒๓๕๕๖\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"123556\", \"th\", :native)\n \"๑๒๓๕๕๖\"\n\n iex> Plausible.Cldr.Number.Transliterate.transliterate(\"Some number is: 123556\", \"th\", \"thai\")\n \"Some number is: ๑๒๓๕๕๖\"","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate/3-examples","title":"Examples - Plausible.Cldr.Number.Transliterate.transliterate/3","type":"function"},{"doc":"","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate!/3","title":"Plausible.Cldr.Number.Transliterate.transliterate!/3","type":"function"},{"doc":"Transliterates digits from one number system to another number system\n\n* `digits` is binary representation of a number\n\n* `from_system` and `to_system` are number system names in atom form. See\n`Cldr.Number.System.systems_with_digits/0` for available number systems.","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate_digits/3","title":"Plausible.Cldr.Number.Transliterate.transliterate_digits/3","type":"function"},{"doc":"iex> Plausible.Cldr.Number.Transliterate.transliterate_digits \"٠١٢٣٤٥٦٧٨٩\", :arab, :latn\n \"0123456789\"","ref":"Plausible.Cldr.Number.Transliterate.html#transliterate_digits/3-example","title":"Example - Plausible.Cldr.Number.Transliterate.transliterate_digits/3","type":"function"},{"doc":"Functions to implement the number system rule-based-number-format rules of CLDR.\n\nThese rules are defined only on the \"und\" locale and represent specialised\nnumber formatting.\n\nThe standard public API for RBNF is via the `Cldr.Number.to_string/2` function.\n\nThe functions on this module are defined at compile time based upon the RBNF rules\ndefined in the Unicode CLDR data repository. Available rules are identified by:\n\n iex> Plausible.Cldr.Rbnf.NumberSystem.rule_sets(:und)\n ...> |> Enum.sort()\n [\n :armenian_lower,\n :armenian_upper,\n :cyrillic_lower,\n :ethiopic,\n :georgian,\n :greek_lower,\n :greek_upper,\n :hebrew,\n :hebrew_item,\n :roman_lower,\n :roman_upper,\n :tamil,\n :zz_default\n ]\n\nA rule can then be invoked on an available rule_set. For example\n\n iex> Plausible.Cldr.Rbnf.NumberSystem.roman_upper(123, :und)\n \"CXXIII\"\n\nThis particular call is equivalent to the call through the public API of:\n\n iex> Plausible.Cldr.Number.to_string(123, format: :roman)\n {:ok, \"CXXIII\"}","ref":"Plausible.Cldr.Rbnf.NumberSystem.html","title":"Plausible.Cldr.Rbnf.NumberSystem","type":"module"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#all_rule_sets/0","title":"Plausible.Cldr.Rbnf.NumberSystem.all_rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_upper/1","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_upper/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#armenian_upper/2","title":"Plausible.Cldr.Rbnf.NumberSystem.armenian_upper/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_1_10/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_1_10/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_final/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_final/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_post/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_post/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#cyrillic_lower_thousands/2","title":"Plausible.Cldr.Rbnf.NumberSystem.cyrillic_lower_thousands/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic/1","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p1/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p1/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p2/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p2/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p3/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p3/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#ethiopic_p/2","title":"Plausible.Cldr.Rbnf.NumberSystem.ethiopic_p/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#georgian/1","title":"Plausible.Cldr.Rbnf.NumberSystem.georgian/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#georgian/2","title":"Plausible.Cldr.Rbnf.NumberSystem.georgian/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_numeral_majuscules/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_numeral_majuscules/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_numeral_minuscules/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_numeral_minuscules/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_upper/1","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_upper/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#greek_upper/2","title":"Plausible.Cldr.Rbnf.NumberSystem.greek_upper/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew/1","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_0_99/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_0_99/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_item/1","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_item/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_item/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_item/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_item_hundreds/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_item_hundreds/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#hebrew_thousands/2","title":"Plausible.Cldr.Rbnf.NumberSystem.hebrew_thousands/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_lower/1","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_lower/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_lower/2","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_lower/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_upper/1","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_upper/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#roman_upper/2","title":"Plausible.Cldr.Rbnf.NumberSystem.roman_upper/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#rule_sets/0","title":"Plausible.Cldr.Rbnf.NumberSystem.rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#rule_sets/1","title":"Plausible.Cldr.Rbnf.NumberSystem.rule_sets/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#tamil/1","title":"Plausible.Cldr.Rbnf.NumberSystem.tamil/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#tamil/2","title":"Plausible.Cldr.Rbnf.NumberSystem.tamil/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#tamil_thousands/2","title":"Plausible.Cldr.Rbnf.NumberSystem.tamil_thousands/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#zz_default/1","title":"Plausible.Cldr.Rbnf.NumberSystem.zz_default/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.NumberSystem.html#zz_default/2","title":"Plausible.Cldr.Rbnf.NumberSystem.zz_default/2","type":"function"},{"doc":"Functions to implement the ordinal rule-based-number-format rules of CLDR.\n\nAs CLDR notes, the data is incomplete or non-existent for many languages. It\nis considered complete for English however.\n\nThe standard public API for RBNF is via the `Cldr.Number.to_string/2` function.\n\nThe functions on this module are defined at compile time based upon the RBNF rules\ndefined in the Unicode CLDR data repository. Available rules are identified by:\n\n iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets(:en)\n [:digits_ordinal]\n\n iex> Plausible.Cldr.Rbnf.Ordinal.rule_sets(\"fr\")\n ...> |> Enum.sort()\n [\n :digits_ordinal,\n :digits_ordinal_feminine,\n :digits_ordinal_feminine_plural,\n :digits_ordinal_masculine,\n :digits_ordinal_masculine_plural\n ]\n\nA rule can then be invoked on an available rule_set. For example\n\n iex> Plausible.Cldr.Rbnf.Ordinal.digits_ordinal(123, :en)\n \"123rd\"\n\nThis call is equivalent to the call through the public API of:\n\n iex> Plausible.Cldr.Number.to_string(123, format: :ordinal)\n {:ok, \"123rd\"}","ref":"Plausible.Cldr.Rbnf.Ordinal.html","title":"Plausible.Cldr.Rbnf.Ordinal","type":"module"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#all_rule_sets/0","title":"Plausible.Cldr.Rbnf.Ordinal.all_rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#digits_ordinal/2","title":"Plausible.Cldr.Rbnf.Ordinal.digits_ordinal/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#rule_sets/0","title":"Plausible.Cldr.Rbnf.Ordinal.rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Ordinal.html#rule_sets/1","title":"Plausible.Cldr.Rbnf.Ordinal.rule_sets/1","type":"function"},{"doc":"Functions to implement the spellout rule-based-number-format rules of CLDR.\n\nAs CLDR notes, the data is incomplete or non-existent for many languages. It\nis considered complete for English however.\n\nThe standard public API for RBNF is via the `Cldr.Number.to_string/2` function.\n\nThe functions on this module are defined at compile time based upon the RBNF rules\ndefined in the Unicode CLDR data repository. Available rules are identified by:\n\n iex> Plausible.Cldr.Rbnf.Spellout.rule_sets(\"en\")\n ...> |> Enum.sort()\n [\n :spellout_cardinal,\n :spellout_cardinal_verbose,\n :spellout_numbering,\n :spellout_numbering_verbose,\n :spellout_numbering_year,\n :spellout_ordinal,\n :spellout_ordinal_verbose\n ]\n\nA rule can then be invoked on an available rule_set. For example:\n\n iex> Plausible.Cldr.Rbnf.Spellout.spellout_ordinal(123, \"en\")\n \"one hundred twenty-third\"\n\nThis call is equivalent to the call through the public API of:\n\n iex> Plausible.Cldr.Number.to_string(123, format: :spellout)\n {:ok, \"one hundred twenty-three\"}","ref":"Plausible.Cldr.Rbnf.Spellout.html","title":"Plausible.Cldr.Rbnf.Spellout","type":"module"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#all_rule_sets/0","title":"Plausible.Cldr.Rbnf.Spellout.all_rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#and/2","title":"Plausible.Cldr.Rbnf.Spellout.and/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#and_o/2","title":"Plausible.Cldr.Rbnf.Spellout.and_o/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#commas/2","title":"Plausible.Cldr.Rbnf.Spellout.commas/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#commas_o/2","title":"Plausible.Cldr.Rbnf.Spellout.commas_o/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#r2d_year/2","title":"Plausible.Cldr.Rbnf.Spellout.r2d_year/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#rule_sets/0","title":"Plausible.Cldr.Rbnf.Spellout.rule_sets/0","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#rule_sets/1","title":"Plausible.Cldr.Rbnf.Spellout.rule_sets/1","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_cardinal/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_cardinal/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_cardinal_verbose/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_cardinal_verbose/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_numbering/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_numbering/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_numbering_verbose/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_numbering_verbose/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_numbering_year/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_numbering_year/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_ordinal/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_ordinal/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#spellout_ordinal_verbose/2","title":"Plausible.Cldr.Rbnf.Spellout.spellout_ordinal_verbose/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#th/2","title":"Plausible.Cldr.Rbnf.Spellout.th/2","type":"function"},{"doc":"","ref":"Plausible.Cldr.Rbnf.Spellout.html#tieth/2","title":"Plausible.Cldr.Rbnf.Spellout.tieth/2","type":"function"},{"doc":"Event schema for when NumericIDs migration is complete","ref":"Plausible.ClickhouseEventV2.html","title":"Plausible.ClickhouseEventV2","type":"module"},{"doc":"","ref":"Plausible.ClickhouseEventV2.html#new/1","title":"Plausible.ClickhouseEventV2.new/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html","title":"Plausible.ClickhouseRepo","type":"module"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#aggregate/3","title":"Plausible.ClickhouseRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#aggregate/4","title":"Plausible.ClickhouseRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#all/2","title":"Plausible.ClickhouseRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#checked_out?/0","title":"Plausible.ClickhouseRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#checkout/2","title":"Plausible.ClickhouseRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#child_spec/1","title":"Plausible.ClickhouseRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#config/0","title":"Plausible.ClickhouseRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#default_options/1","title":"Plausible.ClickhouseRepo.default_options/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.ClickhouseRepo.html#disconnect_all/2","title":"Plausible.ClickhouseRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#exists?/2","title":"Plausible.ClickhouseRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get/3","title":"Plausible.ClickhouseRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get!/3","title":"Plausible.ClickhouseRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get_by/3","title":"Plausible.ClickhouseRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get_by!/3","title":"Plausible.ClickhouseRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#get_dynamic_repo/0","title":"Plausible.ClickhouseRepo.get_dynamic_repo/0","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.ClickhouseRepo.html#insert_stream/3","title":"Plausible.ClickhouseRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#load/2","title":"Plausible.ClickhouseRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#one/2","title":"Plausible.ClickhouseRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#one!/2","title":"Plausible.ClickhouseRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#parallel_tasks/1","title":"Plausible.ClickhouseRepo.parallel_tasks/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#preload/3","title":"Plausible.ClickhouseRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#prepare_query/3","title":"Plausible.ClickhouseRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#put_dynamic_repo/1","title":"Plausible.ClickhouseRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.ClickhouseRepo.html#query/3","title":"Plausible.ClickhouseRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.ClickhouseRepo.html#query!/3","title":"Plausible.ClickhouseRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#reload/2","title":"Plausible.ClickhouseRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#reload!/2","title":"Plausible.ClickhouseRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#start_link/1","title":"Plausible.ClickhouseRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#stop/1","title":"Plausible.ClickhouseRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseRepo.html#stream/2","title":"Plausible.ClickhouseRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.ClickhouseRepo.html#to_sql/2","title":"Plausible.ClickhouseRepo.to_sql/2","type":"function"},{"doc":"Session schema for when NumericIDs migration is complete","ref":"Plausible.ClickhouseSessionV2.html","title":"Plausible.ClickhouseSessionV2","type":"module"},{"doc":"","ref":"Plausible.ClickhouseSessionV2.html#random_uint64/0","title":"Plausible.ClickhouseSessionV2.random_uint64/0","type":"function"},{"doc":"Custom type to cast Bool as UInt8","ref":"Plausible.ClickhouseSessionV2.BoolUInt8.html","title":"Plausible.ClickhouseSessionV2.BoolUInt8","type":"module"},{"doc":"","ref":"Plausible.ClickhouseSessionV2.BoolUInt8.html#embed_as/1","title":"Plausible.ClickhouseSessionV2.BoolUInt8.embed_as/1","type":"function"},{"doc":"","ref":"Plausible.ClickhouseSessionV2.BoolUInt8.html#equal?/2","title":"Plausible.ClickhouseSessionV2.BoolUInt8.equal?/2","type":"function"},{"doc":"","ref":"Plausible.ConfigHelpers.html","title":"Plausible.ConfigHelpers","type":"module"},{"doc":"","ref":"Plausible.ConfigHelpers.html#get_int_from_path_or_env/3","title":"Plausible.ConfigHelpers.get_int_from_path_or_env/3","type":"function"},{"doc":"","ref":"Plausible.ConfigHelpers.html#get_var_from_path_or_env/3","title":"Plausible.ConfigHelpers.get_var_from_path_or_env/3","type":"function"},{"doc":"This module defines the setup for tests requiring\naccess to the application's data layer.\n\nYou may define functions here to be used as helpers in\nyour tests.\n\nFinally, if the test case interacts with the database,\nit cannot be async. For this reason, every test runs\ninside a transaction which is reset at the beginning\nof the test unless the test case is marked as async.","ref":"Plausible.DataCase.html","title":"Plausible.DataCase","type":"module"},{"doc":"Base module for coordinated Clickhouse data migrations\nrun via remote shell or otherwise (TBD).","ref":"Plausible.DataMigration.html","title":"Plausible.DataMigration","type":"module"},{"doc":"Numeric IDs migration, SQL files available at:\npriv/data_migrations/NumericIDs/sql","ref":"Plausible.DataMigration.NumericIDs.html","title":"Plausible.DataMigration.NumericIDs","type":"module"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#confirm/3","title":"Plausible.DataMigration.NumericIDs.confirm/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#run/1","title":"Plausible.DataMigration.NumericIDs.run/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#run_sql/2","title":"Plausible.DataMigration.NumericIDs.run_sql/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.NumericIDs.html#run_sql_confirm/2","title":"Plausible.DataMigration.NumericIDs.run_sql_confirm/2","type":"function"},{"doc":"Ecto.Repo for Clickhouse data migrations, to be started manually,\noutside of the main application supervision tree.","ref":"Plausible.DataMigration.Repo.html","title":"Plausible.DataMigration.Repo","type":"module"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#aggregate/3","title":"Plausible.DataMigration.Repo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#aggregate/4","title":"Plausible.DataMigration.Repo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#all/2","title":"Plausible.DataMigration.Repo.all/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#checked_out?/0","title":"Plausible.DataMigration.Repo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#checkout/2","title":"Plausible.DataMigration.Repo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#child_spec/1","title":"Plausible.DataMigration.Repo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#config/0","title":"Plausible.DataMigration.Repo.config/0","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#default_options/1","title":"Plausible.DataMigration.Repo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#delete/2","title":"Plausible.DataMigration.Repo.delete/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#delete!/2","title":"Plausible.DataMigration.Repo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#delete_all/2","title":"Plausible.DataMigration.Repo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.DataMigration.Repo.html#disconnect_all/2","title":"Plausible.DataMigration.Repo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#exists?/2","title":"Plausible.DataMigration.Repo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get/3","title":"Plausible.DataMigration.Repo.get/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get!/3","title":"Plausible.DataMigration.Repo.get!/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get_by/3","title":"Plausible.DataMigration.Repo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get_by!/3","title":"Plausible.DataMigration.Repo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#get_dynamic_repo/0","title":"Plausible.DataMigration.Repo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert/2","title":"Plausible.DataMigration.Repo.insert/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert!/2","title":"Plausible.DataMigration.Repo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert_all/3","title":"Plausible.DataMigration.Repo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert_or_update/2","title":"Plausible.DataMigration.Repo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#insert_or_update!/2","title":"Plausible.DataMigration.Repo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.DataMigration.Repo.html#insert_stream/3","title":"Plausible.DataMigration.Repo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#load/2","title":"Plausible.DataMigration.Repo.load/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#one/2","title":"Plausible.DataMigration.Repo.one/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#one!/2","title":"Plausible.DataMigration.Repo.one!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#preload/3","title":"Plausible.DataMigration.Repo.preload/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#prepare_query/3","title":"Plausible.DataMigration.Repo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#put_dynamic_repo/1","title":"Plausible.DataMigration.Repo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.DataMigration.Repo.html#query/3","title":"Plausible.DataMigration.Repo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.DataMigration.Repo.html#query!/3","title":"Plausible.DataMigration.Repo.query!/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#reload/2","title":"Plausible.DataMigration.Repo.reload/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#reload!/2","title":"Plausible.DataMigration.Repo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#start/2","title":"Plausible.DataMigration.Repo.start/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#start_link/1","title":"Plausible.DataMigration.Repo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#stop/1","title":"Plausible.DataMigration.Repo.stop/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#stream/2","title":"Plausible.DataMigration.Repo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.DataMigration.Repo.html#to_sql/2","title":"Plausible.DataMigration.Repo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#update/2","title":"Plausible.DataMigration.Repo.update/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#update!/2","title":"Plausible.DataMigration.Repo.update!/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.Repo.html#update_all/3","title":"Plausible.DataMigration.Repo.update_all/3","type":"function"},{"doc":"A data fix migration that seeks funnels having steps\nwhose goals are equally named.\nIt then tries to rewrite the duplicate goals using the\noldest goal available. In extreme cases, e.g. when multiple\nduplicates are found for a single funnel, it will either\nreduce or completely remove the funnel.\nThis enables us to run a migration later on that will\ndelete duplicate goals and enforce goal uniqueness at the\ndatabase level via a CHECK constraint.\n\nTo run, just call the `run` function.","ref":"Plausible.DataMigration.RewriteFunnelDupes.html","title":"Plausible.DataMigration.RewriteFunnelDupes","type":"module"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#apply_change/2","title":"Plausible.DataMigration.RewriteFunnelDupes.apply_change/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#confirm/3","title":"Plausible.DataMigration.RewriteFunnelDupes.confirm/3","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#execute/1","title":"Plausible.DataMigration.RewriteFunnelDupes.execute/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#run/1","title":"Plausible.DataMigration.RewriteFunnelDupes.run/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#run_sql/2","title":"Plausible.DataMigration.RewriteFunnelDupes.run_sql/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#run_sql_confirm/2","title":"Plausible.DataMigration.RewriteFunnelDupes.run_sql_confirm/2","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#to_db_ops/1","title":"Plausible.DataMigration.RewriteFunnelDupes.to_db_ops/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#to_map/1","title":"Plausible.DataMigration.RewriteFunnelDupes.to_map/1","type":"function"},{"doc":"","ref":"Plausible.DataMigration.RewriteFunnelDupes.html#translate_to_db_ops/1","title":"Plausible.DataMigration.RewriteFunnelDupes.translate_to_db_ops/1","type":"function"},{"doc":"Function execution context (with arguments) to Sentry reports.","ref":"Plausible.DebugReplayInfo.html","title":"Plausible.DebugReplayInfo","type":"module"},{"doc":"","ref":"Plausible.DebugReplayInfo.html#deserialize/1","title":"Plausible.DebugReplayInfo.deserialize/1","type":"function"},{"doc":"","ref":"Plausible.DebugReplayInfo.html#include_sentry_replay_info/0","title":"Plausible.DebugReplayInfo.include_sentry_replay_info/0","type":"macro"},{"doc":"Custom type for event name. Accepts Strings and Integers and stores them as String. Returns\n cast error if any other type is provided. Accepting integers is important for 404 tracking.","ref":"Plausible.Ecto.EventName.html","title":"Plausible.Ecto.EventName","type":"module"},{"doc":"","ref":"Plausible.Ecto.EventName.html#cast/1","title":"Plausible.Ecto.EventName.cast/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#dump/1","title":"Plausible.Ecto.EventName.dump/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#embed_as/1","title":"Plausible.Ecto.EventName.embed_as/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#equal?/2","title":"Plausible.Ecto.EventName.equal?/2","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#load/1","title":"Plausible.Ecto.EventName.load/1","type":"function"},{"doc":"","ref":"Plausible.Ecto.EventName.html#type/0","title":"Plausible.Ecto.EventName.type/0","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html","title":"Plausible.Event.WriteBuffer","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Event.WriteBuffer.html#child_spec/1","title":"Plausible.Event.WriteBuffer.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#flush/0","title":"Plausible.Event.WriteBuffer.flush/0","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#init/1","title":"Plausible.Event.WriteBuffer.init/1","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#insert/1","title":"Plausible.Event.WriteBuffer.insert/1","type":"function"},{"doc":"","ref":"Plausible.Event.WriteBuffer.html#start_link/1","title":"Plausible.Event.WriteBuffer.start_link/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html","title":"Plausible.Factory","type":"module"},{"doc":"","ref":"Plausible.Factory.html#api_key_factory/0","title":"Plausible.Factory.api_key_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#build/2","title":"Plausible.Factory.build/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#build_list/3","title":"Plausible.Factory.build_list/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#build_pair/2","title":"Plausible.Factory.build_pair/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#ch_session_factory/0","title":"Plausible.Factory.ch_session_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create/1","title":"Plausible.Factory.create/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create/2","title":"Plausible.Factory.create/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create_list/3","title":"Plausible.Factory.create_list/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#create_pair/2","title":"Plausible.Factory.create_pair/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#custom_domain_factory/0","title":"Plausible.Factory.custom_domain_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#enterprise_plan_factory/0","title":"Plausible.Factory.enterprise_plan_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#event_factory/0","title":"Plausible.Factory.event_factory/0","type":"function"},{"doc":"Raises a helpful error if no factory is defined.","ref":"Plausible.Factory.html#factory/1","title":"Plausible.Factory.factory/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#goal_factory/0","title":"Plausible.Factory.goal_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#google_auth_factory/0","title":"Plausible.Factory.google_auth_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_browsers_factory/0","title":"Plausible.Factory.imported_browsers_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_devices_factory/0","title":"Plausible.Factory.imported_devices_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_entry_pages_factory/0","title":"Plausible.Factory.imported_entry_pages_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_exit_pages_factory/0","title":"Plausible.Factory.imported_exit_pages_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_locations_factory/0","title":"Plausible.Factory.imported_locations_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_operating_systems_factory/0","title":"Plausible.Factory.imported_operating_systems_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_pages_factory/0","title":"Plausible.Factory.imported_pages_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_sources_factory/0","title":"Plausible.Factory.imported_sources_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#imported_visitors_factory/0","title":"Plausible.Factory.imported_visitors_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert/1","title":"Plausible.Factory.insert/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert/2","title":"Plausible.Factory.insert/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert/3","title":"Plausible.Factory.insert/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_list/3","title":"Plausible.Factory.insert_list/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_list/4","title":"Plausible.Factory.insert_list/4","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_pair/2","title":"Plausible.Factory.insert_pair/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#insert_pair/3","title":"Plausible.Factory.insert_pair/3","type":"function"},{"doc":"","ref":"Plausible.Factory.html#invitation_factory/0","title":"Plausible.Factory.invitation_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#monthly_report_factory/0","title":"Plausible.Factory.monthly_report_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#pageview_factory/0","title":"Plausible.Factory.pageview_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#params_for/2","title":"Plausible.Factory.params_for/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#params_with_assocs/2","title":"Plausible.Factory.params_with_assocs/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#shared_link_factory/0","title":"Plausible.Factory.shared_link_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#site_factory/0","title":"Plausible.Factory.site_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#site_membership_factory/0","title":"Plausible.Factory.site_membership_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#spike_notification_factory/0","title":"Plausible.Factory.spike_notification_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#string_params_for/2","title":"Plausible.Factory.string_params_for/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#string_params_with_assocs/2","title":"Plausible.Factory.string_params_with_assocs/2","type":"function"},{"doc":"","ref":"Plausible.Factory.html#subscription_factory/0","title":"Plausible.Factory.subscription_factory/0","type":"function"},{"doc":"","ref":"Plausible.Factory.html#user_factory/1","title":"Plausible.Factory.user_factory/1","type":"function"},{"doc":"","ref":"Plausible.Factory.html#weekly_report_factory/0","title":"Plausible.Factory.weekly_report_factory/0","type":"function"},{"doc":"A funnel is a marketing term used to capture and describe the journey\nthat users go through, from initial step to conversion.\nA funnel consists of several steps (here: 2..8).\n\nThis module defines the database schema for storing funnels\nand changeset helpers for enumerating the steps within.\n\nEach step references a goal (either a Custom Event or Visit)\n- see: `Plausible.Goal`.","ref":"Plausible.Funnel.html","title":"Plausible.Funnel","type":"module"},{"doc":"","ref":"Plausible.Funnel.html#changeset/2","title":"Plausible.Funnel.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Funnel.html#max_steps/0","title":"Plausible.Funnel.max_steps/0","type":"macro"},{"doc":"","ref":"Plausible.Funnel.html#min_steps/0","title":"Plausible.Funnel.min_steps/0","type":"macro"},{"doc":"","ref":"Plausible.Funnel.html#put_step_orders/1","title":"Plausible.Funnel.put_step_orders/1","type":"function"},{"doc":"","ref":"Plausible.Funnel.html#t:t/0","title":"Plausible.Funnel.t/0","type":"type"},{"doc":"This module defines the database schema for a single Funnel step.\nSee: `Plausible.Funnel` for more information.","ref":"Plausible.Funnel.Step.html","title":"Plausible.Funnel.Step","type":"module"},{"doc":"","ref":"Plausible.Funnel.Step.html#changeset/2","title":"Plausible.Funnel.Step.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Funnel.Step.html#t:t/0","title":"Plausible.Funnel.Step.t/0","type":"type"},{"doc":"This module implements contextual Funnel interface, allowing listing,\ncreating and deleting funnel definitions.\n\nFor brief explanation of what a Funnel is, please see `Plausible.Funnel` schema.\nSee `Plausible.Stats.Funnel` for the evaluation logic.","ref":"Plausible.Funnels.html","title":"Plausible.Funnels","type":"module"},{"doc":"","ref":"Plausible.Funnels.html#create/3","title":"Plausible.Funnels.create/3","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#create_changeset/3","title":"Plausible.Funnels.create_changeset/3","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#delete/2","title":"Plausible.Funnels.delete/2","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#ephemeral_definition/3","title":"Plausible.Funnels.ephemeral_definition/3","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#get/2","title":"Plausible.Funnels.get/2","type":"function"},{"doc":"","ref":"Plausible.Funnels.html#list/1","title":"Plausible.Funnels.list/1","type":"function"},{"doc":"This module provides an API for fetching IP geolocation.","ref":"Plausible.Geo.html","title":"Plausible.Geo","type":"module"},{"doc":"Waits for the database to start after calling `load_db/1` with the async option.","ref":"Plausible.Geo.html#await_loader/0","title":"Plausible.Geo.await_loader/0","type":"function"},{"doc":"Returns geodatabase type.\n\nUsed for deciding whether to show the DB-IP disclaimer or not.","ref":"Plausible.Geo.html#database_type/0","title":"Plausible.Geo.database_type/0","type":"function"},{"doc":"In the case of a DB-IP database:\n\n iex> database_type()\n \"DBIP-City-Lite\"\n\n In the case of a MaxMind database:\n\n iex> database_type()\n \"GeoLite2-City\"","ref":"Plausible.Geo.html#database_type/0-examples","title":"Examples - Plausible.Geo.database_type/0","type":"function"},{"doc":"Starts the geodatabase loading process. Two modes are supported: local file\nand MaxMind license key.","ref":"Plausible.Geo.html#load_db/1","title":"Plausible.Geo.load_db/1","type":"function"},{"doc":"* `:path` - the path to the .mmdb database local file. When present,\n `:license_key` and `:edition` are not required.\n\n * `:license_key` - the [license key](https://support.maxmind.com/hc/en-us/articles/4407111582235-Generate-a-License-Key)\n from MaxMind to authenticate requests to MaxMind.\n\n * `:edition` - the name of the MaxMind database to be downloaded from MaxMind\n servers. Defaults to `GeoLite2-City`.\n\n * `:async` - when used, configures the database loading to run\n asynchronously.","ref":"Plausible.Geo.html#load_db/1-options","title":"Options - Plausible.Geo.load_db/1","type":"function"},{"doc":"Loading from a local file:\n\n iex> load_db(path: \"/etc/plausible/dbip-city.mmdb\")\n :ok\n\n Downloading a MaxMind DB (this license key is no longer active):\n\n iex> load_db(license_key: \"LNpsJCCKPis6XvBP\", edition: \"GeoLite2-City\", async: true)\n :ok","ref":"Plausible.Geo.html#load_db/1-examples","title":"Examples - Plausible.Geo.load_db/1","type":"function"},{"doc":"Looks up geo info about an IP address.","ref":"Plausible.Geo.html#lookup/1","title":"Plausible.Geo.lookup/1","type":"function"},{"doc":"iex> lookup(\"8.7.6.5\")\n %{\n \"city\" => %{\n \"geoname_id\" => 5349755,\n \"names\" => %{\n \"de\" => \"Fontana\",\n \"en\" => \"Fontana\",\n \"ja\" => \"フォンタナ\",\n \"ru\" => \"Фонтана\"\n }\n },\n \"continent\" => %{\n \"code\" => \"NA\",\n \"geoname_id\" => 6255149,\n \"names\" => %{\n \"de\" => \"Nordamerika\",\n \"en\" => \"North America\",\n \"es\" => \"Norteamérica\",\n \"fr\" => \"Amérique du Nord\",\n \"ja\" => \"北アメリカ\",\n \"pt-BR\" => \"América do Norte\",\n \"ru\" => \"Северная Америка\",\n \"zh-CN\" => \"北美洲\"\n }\n },\n \"country\" => %{\n \"geoname_id\" => 6252001,\n \"iso_code\" => \"US\",\n \"names\" => %{\n \"de\" => \"Vereinigte Staaten\",\n \"en\" => \"United States\",\n \"es\" => \"Estados Unidos\",\n \"fr\" => \"États Unis\",\n \"ja\" => \"アメリカ\",\n \"pt-BR\" => \"EUA\",\n \"ru\" => \"США\",\n \"zh-CN\" => \"美国\"\n }\n },\n \"location\" => %{\n \"accuracy_radius\" => 50,\n \"latitude\" => 34.1211,\n \"longitude\" => -117.4362,\n \"metro_code\" => 803,\n \"time_zone\" => \"America/Los_Angeles\"\n },\n \"postal\" => %{\"code\" => \"92336\"},\n \"registered_country\" => %{\n \"geoname_id\" => 6252001,\n \"iso_code\" => \"US\",\n \"names\" => %{\n \"de\" => \"Vereinigte Staaten\",\n \"en\" => \"United States\",\n \"es\" => \"Estados Unidos\",\n \"fr\" => \"États Unis\",\n \"ja\" => \"アメリカ\",\n \"pt-BR\" => \"EUA\",\n \"ru\" => \"США\",\n \"zh-CN\" => \"美国\"\n }\n },\n \"subdivisions\" => [\n %{\n \"geoname_id\" => 5332921,\n \"iso_code\" => \"CA\",\n \"names\" => %{\n \"de\" => \"Kalifornien\",\n \"en\" => \"California\",\n \"es\" => \"California\",\n \"fr\" => \"Californie\",\n \"ja\" => \"カリフォルニア州\",\n \"pt-BR\" => \"Califórnia\",\n \"ru\" => \"Калифорния\",\n \"zh-CN\" => \"加州\"\n }\n }\n ]\n }","ref":"Plausible.Geo.html#lookup/1-examples","title":"Examples - Plausible.Geo.lookup/1","type":"function"},{"doc":"","ref":"Plausible.Goal.html","title":"Plausible.Goal","type":"module"},{"doc":"","ref":"Plausible.Goal.html#changeset/2","title":"Plausible.Goal.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Goal.html#currency_options/0","title":"Plausible.Goal.currency_options/0","type":"function"},{"doc":"","ref":"Plausible.Goal.html#revenue?/1","title":"Plausible.Goal.revenue?/1","type":"function"},{"doc":"","ref":"Plausible.Goal.html#valid_currencies/0","title":"Plausible.Goal.valid_currencies/0","type":"function"},{"doc":"","ref":"Plausible.Goal.html#t:t/0","title":"Plausible.Goal.t/0","type":"type"},{"doc":"","ref":"Plausible.Goals.html","title":"Plausible.Goals","type":"module"},{"doc":"","ref":"Plausible.Goals.html#count/1","title":"Plausible.Goals.count/1","type":"function"},{"doc":"Creates a Goal for a site.\n\nIf the created goal is a revenue goal, it sets site.updated_at to be\nrefreshed by the sites cache, as revenue goals are used during ingestion.","ref":"Plausible.Goals.html#create/3","title":"Plausible.Goals.create/3","type":"function"},{"doc":"If a goal belongs to funnel(s), we need to inspect their number of steps.\n\nIf it exceeds the minimum allowed (defined via `Plausible.Funnel.min_steps/0`),\nthe funnel will be reduced (i.e. a step associated with the goal to be deleted\nis removed), so that the minimum number of steps is preserved. This is done\nimplicitly, by postgres, as per on_delete: :delete_all.\n\nOtherwise, for associated funnel(s) consisting of minimum number steps only,\nfunnel record(s) are removed completely along with the targeted goal.","ref":"Plausible.Goals.html#delete/2","title":"Plausible.Goals.delete/2","type":"function"},{"doc":"","ref":"Plausible.Goals.html#find_or_create/2","title":"Plausible.Goals.find_or_create/2","type":"function"},{"doc":"","ref":"Plausible.Goals.html#for_site/2","title":"Plausible.Goals.for_site/2","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html","title":"Plausible.Google.Api","type":"module"},{"doc":"","ref":"Plausible.Google.Api.html#fetch_and_persist/3","title":"Plausible.Google.Api.fetch_and_persist/3","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#fetch_stats/3","title":"Plausible.Google.Api.fetch_stats/3","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#fetch_verified_properties/1","title":"Plausible.Google.Api.fetch_verified_properties/1","type":"function"},{"doc":"Returns a single Google Analytics view if the user has access to it.","ref":"Plausible.Google.Api.html#get_view/2","title":"Plausible.Google.Api.get_view/2","type":"function"},{"doc":"Imports stats from a Google Analytics UA view to a Plausible site.\n\nThis function fetches Google Analytics reports in batches of 7500 per\nrequest. The batches are then buffered to Clickhouse by the\n`Plausible.Google.Buffer` process.\n\nRequests to Google Analytics can fail, and are retried at most\n5 times with an exponential backoff. Returns `:ok` when\nimporting has finished or `{:error, term()}` when a request to GA failed too \nmany times.\n\nUseful links:\n\n- [Feature documentation](https://plausible.io/docs/google-analytics-import)\n- [GA API reference](https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#ReportRequest)\n- [GA Dimensions reference](https://ga-dev-tools.web.app/dimensions-metrics-explorer)","ref":"Plausible.Google.Api.html#import_analytics/4","title":"Plausible.Google.Api.import_analytics/4","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#import_authorize_url/2","title":"Plausible.Google.Api.import_authorize_url/2","type":"function"},{"doc":"Lists Google Analytics views grouped by hostname.","ref":"Plausible.Google.Api.html#list_views/1","title":"Plausible.Google.Api.list_views/1","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#search_console_authorize_url/2","title":"Plausible.Google.Api.search_console_authorize_url/2","type":"function"},{"doc":"","ref":"Plausible.Google.Api.html#t:google_analytics_view/0","title":"Plausible.Google.Api.google_analytics_view/0","type":"type"},{"doc":"","ref":"Plausible.Google.Api.html#t:import_auth/0","title":"Plausible.Google.Api.import_auth/0","type":"type"},{"doc":"","ref":"Plausible.Google.Api.Mock.html","title":"Plausible.Google.Api.Mock","type":"module"},{"doc":"","ref":"Plausible.Google.Api.Mock.html#fetch_stats/3","title":"Plausible.Google.Api.Mock.fetch_stats/3","type":"function"},{"doc":"This GenServer inserts records into Clickhouse `imported_*` tables. Multiple buffers are\nautomatically created for each table. Records are flushed when the table buffer reaches the\nmaximum size, defined by `max_buffer_size/0`.","ref":"Plausible.Google.Buffer.html","title":"Plausible.Google.Buffer","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Google.Buffer.html#child_spec/1","title":"Plausible.Google.Buffer.child_spec/1","type":"function"},{"doc":"Flushes all table buffers to Clickhouse.","ref":"Plausible.Google.Buffer.html#flush/2","title":"Plausible.Google.Buffer.flush/2","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#handle_continue/2","title":"Plausible.Google.Buffer.handle_continue/2","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#init/1","title":"Plausible.Google.Buffer.init/1","type":"function"},{"doc":"Puts the given records into the table buffer.","ref":"Plausible.Google.Buffer.html#insert_many/3","title":"Plausible.Google.Buffer.insert_many/3","type":"function"},{"doc":"Returns the total count of items in the given table buffer.","ref":"Plausible.Google.Buffer.html#size/2","title":"Plausible.Google.Buffer.size/2","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#start_link/0","title":"Plausible.Google.Buffer.start_link/0","type":"function"},{"doc":"","ref":"Plausible.Google.Buffer.html#stop/1","title":"Plausible.Google.Buffer.stop/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html","title":"Plausible.Google.HTTP","type":"module"},{"doc":"","ref":"Plausible.Google.HTTP.html#fetch_access_token/1","title":"Plausible.Google.HTTP.fetch_access_token/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#get_analytics_start_date/2","title":"Plausible.Google.HTTP.get_analytics_start_date/2","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#get_report/1","title":"Plausible.Google.HTTP.get_report/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#list_sites/1","title":"Plausible.Google.HTTP.list_sites/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#list_stats/5","title":"Plausible.Google.HTTP.list_stats/5","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#list_views_for_user/1","title":"Plausible.Google.HTTP.list_views_for_user/1","type":"function"},{"doc":"","ref":"Plausible.Google.HTTP.html#refresh_auth_token/1","title":"Plausible.Google.HTTP.refresh_auth_token/1","type":"function"},{"doc":"","ref":"Plausible.Google.ReportRequest.html","title":"Plausible.Google.ReportRequest","type":"module"},{"doc":"","ref":"Plausible.Google.ReportRequest.html#full_report/0","title":"Plausible.Google.ReportRequest.full_report/0","type":"function"},{"doc":"","ref":"Plausible.Google.ReportRequest.html#t:t/0","title":"Plausible.Google.ReportRequest.t/0","type":"type"},{"doc":"HTTP Client built on top of Finch.\n\nBy default, request parameters are json-encoded.\n\nIf a raw binary value is supplied, no encoding is performed.\nIf x-www-form-urlencoded content-type is set in headers,\nURL encoding is invoked.","ref":"Plausible.HTTPClient.html","title":"Plausible.HTTPClient","type":"module"},{"doc":"Make a GET request","ref":"Plausible.HTTPClient.html#get/2","title":"Plausible.HTTPClient.get/2","type":"function"},{"doc":"","ref":"Plausible.HTTPClient.html#impl/0","title":"Plausible.HTTPClient.impl/0","type":"function"},{"doc":"Make a POST request","ref":"Plausible.HTTPClient.html#post/4","title":"Plausible.HTTPClient.post/4","type":"function"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html","title":"Plausible.HTTPClient.Interface","type":"behaviour"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:get/1","title":"Plausible.HTTPClient.Interface.get/1","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:get/2","title":"Plausible.HTTPClient.Interface.get/2","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:post/3","title":"Plausible.HTTPClient.Interface.post/3","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#c:post/4","title":"Plausible.HTTPClient.Interface.post/4","type":"callback"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:finch_request_opts/0","title":"Plausible.HTTPClient.Interface.finch_request_opts/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:headers/0","title":"Plausible.HTTPClient.Interface.headers/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:params/0","title":"Plausible.HTTPClient.Interface.params/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:response/0","title":"Plausible.HTTPClient.Interface.response/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Interface.html#t:url/0","title":"Plausible.HTTPClient.Interface.url/0","type":"type"},{"doc":"","ref":"Plausible.HTTPClient.Non200Error.html","title":"Plausible.HTTPClient.Non200Error","type":"module"},{"doc":"","ref":"Plausible.HTTPClient.Non200Error.html#new/1","title":"Plausible.HTTPClient.Non200Error.new/1","type":"function"},{"doc":"","ref":"Plausible.HTTPClient.Non200Error.html#t:t/0","title":"Plausible.HTTPClient.Non200Error.t/0","type":"type"},{"doc":"A dedicated repo for import related mutations","ref":"Plausible.ImportDeletionRepo.html","title":"Plausible.ImportDeletionRepo","type":"module"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#aggregate/3","title":"Plausible.ImportDeletionRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#aggregate/4","title":"Plausible.ImportDeletionRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#all/2","title":"Plausible.ImportDeletionRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#checked_out?/0","title":"Plausible.ImportDeletionRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#checkout/2","title":"Plausible.ImportDeletionRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#child_spec/1","title":"Plausible.ImportDeletionRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#config/0","title":"Plausible.ImportDeletionRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#default_options/1","title":"Plausible.ImportDeletionRepo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#delete/2","title":"Plausible.ImportDeletionRepo.delete/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#delete!/2","title":"Plausible.ImportDeletionRepo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#delete_all/2","title":"Plausible.ImportDeletionRepo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.ImportDeletionRepo.html#disconnect_all/2","title":"Plausible.ImportDeletionRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#exists?/2","title":"Plausible.ImportDeletionRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get/3","title":"Plausible.ImportDeletionRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get!/3","title":"Plausible.ImportDeletionRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get_by/3","title":"Plausible.ImportDeletionRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get_by!/3","title":"Plausible.ImportDeletionRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#get_dynamic_repo/0","title":"Plausible.ImportDeletionRepo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert/2","title":"Plausible.ImportDeletionRepo.insert/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert!/2","title":"Plausible.ImportDeletionRepo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert_all/3","title":"Plausible.ImportDeletionRepo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert_or_update/2","title":"Plausible.ImportDeletionRepo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#insert_or_update!/2","title":"Plausible.ImportDeletionRepo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.ImportDeletionRepo.html#insert_stream/3","title":"Plausible.ImportDeletionRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#load/2","title":"Plausible.ImportDeletionRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#one/2","title":"Plausible.ImportDeletionRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#one!/2","title":"Plausible.ImportDeletionRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#preload/3","title":"Plausible.ImportDeletionRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#prepare_query/3","title":"Plausible.ImportDeletionRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#put_dynamic_repo/1","title":"Plausible.ImportDeletionRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.ImportDeletionRepo.html#query/3","title":"Plausible.ImportDeletionRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.ImportDeletionRepo.html#query!/3","title":"Plausible.ImportDeletionRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#reload/2","title":"Plausible.ImportDeletionRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#reload!/2","title":"Plausible.ImportDeletionRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#start_link/1","title":"Plausible.ImportDeletionRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#stop/1","title":"Plausible.ImportDeletionRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#stream/2","title":"Plausible.ImportDeletionRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.ImportDeletionRepo.html#to_sql/2","title":"Plausible.ImportDeletionRepo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#update/2","title":"Plausible.ImportDeletionRepo.update/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#update!/2","title":"Plausible.ImportDeletionRepo.update!/2","type":"function"},{"doc":"","ref":"Plausible.ImportDeletionRepo.html#update_all/3","title":"Plausible.ImportDeletionRepo.update_all/3","type":"function"},{"doc":"","ref":"Plausible.Imported.html","title":"Plausible.Imported","type":"module"},{"doc":"","ref":"Plausible.Imported.html#forget/1","title":"Plausible.Imported.forget/1","type":"function"},{"doc":"","ref":"Plausible.Imported.html#from_google_analytics/3","title":"Plausible.Imported.from_google_analytics/3","type":"function"},{"doc":"","ref":"Plausible.Imported.html#tables/0","title":"Plausible.Imported.tables/0","type":"function"},{"doc":"Write-centric Clickhouse access interface","ref":"Plausible.IngestRepo.html","title":"Plausible.IngestRepo","type":"module"},{"doc":"","ref":"Plausible.IngestRepo.html#aggregate/3","title":"Plausible.IngestRepo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#aggregate/4","title":"Plausible.IngestRepo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#all/2","title":"Plausible.IngestRepo.all/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#checked_out?/0","title":"Plausible.IngestRepo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#checkout/2","title":"Plausible.IngestRepo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#child_spec/1","title":"Plausible.IngestRepo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#config/0","title":"Plausible.IngestRepo.config/0","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#default_options/1","title":"Plausible.IngestRepo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#delete/2","title":"Plausible.IngestRepo.delete/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#delete!/2","title":"Plausible.IngestRepo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#delete_all/2","title":"Plausible.IngestRepo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.IngestRepo.html#disconnect_all/2","title":"Plausible.IngestRepo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#exists?/2","title":"Plausible.IngestRepo.exists?/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get/3","title":"Plausible.IngestRepo.get/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get!/3","title":"Plausible.IngestRepo.get!/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get_by/3","title":"Plausible.IngestRepo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get_by!/3","title":"Plausible.IngestRepo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#get_dynamic_repo/0","title":"Plausible.IngestRepo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert/2","title":"Plausible.IngestRepo.insert/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert!/2","title":"Plausible.IngestRepo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert_all/3","title":"Plausible.IngestRepo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert_or_update/2","title":"Plausible.IngestRepo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#insert_or_update!/2","title":"Plausible.IngestRepo.insert_or_update!/2","type":"function"},{"doc":"Similar to `insert_all/2` but with the following differences:\n\n - accepts rows as streams or lists\n - sends rows as a chunked request\n - doesn't autogenerate ids or does any other preprocessing\n\nExample:\n\n Repo.query!(\"create table ecto_ch_demo(a UInt64, b String) engine Null\")\n\n defmodule Demo do\n use Ecto.Schema\n\n @primary_key false\n schema \"ecto_ch_demo\" do\n field :a, Ch, type: \"UInt64\"\n field :b, :string\n end\n end\n\n rows = Stream.map(1..100_000, fn i -> %{a: i, b: to_string(i)} end)\n {100_000, nil} = Repo.insert_stream(Demo, rows)\n\n # schemaless\n {100_000, nil} = Repo.insert_stream(\"ecto_ch_demo\", rows, types: [a: Ch.Types.u64(), b: :string])","ref":"Plausible.IngestRepo.html#insert_stream/3","title":"Plausible.IngestRepo.insert_stream/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#load/2","title":"Plausible.IngestRepo.load/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#one/2","title":"Plausible.IngestRepo.one/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#one!/2","title":"Plausible.IngestRepo.one!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#preload/3","title":"Plausible.IngestRepo.preload/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#prepare_query/3","title":"Plausible.IngestRepo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#put_dynamic_repo/1","title":"Plausible.IngestRepo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.IngestRepo.html#query/3","title":"Plausible.IngestRepo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.IngestRepo.html#query!/3","title":"Plausible.IngestRepo.query!/3","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#reload/2","title":"Plausible.IngestRepo.reload/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#reload!/2","title":"Plausible.IngestRepo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#start_link/1","title":"Plausible.IngestRepo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#stop/1","title":"Plausible.IngestRepo.stop/1","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#stream/2","title":"Plausible.IngestRepo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.IngestRepo.html#to_sql/2","title":"Plausible.IngestRepo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#update/2","title":"Plausible.IngestRepo.update/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#update!/2","title":"Plausible.IngestRepo.update!/2","type":"function"},{"doc":"","ref":"Plausible.IngestRepo.html#update_all/3","title":"Plausible.IngestRepo.update_all/3","type":"function"},{"doc":"This is instrumentation necessary for keeping track of per-domain\ninternal metrics. Due to metric labels cardinality (domain x metric_name),\nthese statistics are not suitable for prometheus/grafana exposure,\nhence an internal storage is used.\n\nThe module installs `Counters.TelemetryHandler` and periodically\nflushes the internal counter aggregates via `Counters.Buffer` interface.\n\nThe underlying database schema is running `SummingMergeTree` engine.\nTo take advantage of automatic roll-ups it provides, upon dispatching the\nbuffered records to Clickhouse this module transforms each `event_timebucket`\naggregate into a 1-minute resolution.\n\nClickhouse connection is set to insert counters asynchronously every time\na pool checkout is made. Those properties are reverted once the insert is done\n(or naturally, if the connection crashes).","ref":"Plausible.Ingestion.Counters.html","title":"Plausible.Ingestion.Counters","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.html#child_spec/1","title":"Plausible.Ingestion.Counters.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.html#enabled?/0","title":"Plausible.Ingestion.Counters.enabled?/0","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.html#stop/1","title":"Plausible.Ingestion.Counters.stop/1","type":"function"},{"doc":"A buffer aggregating counters for internal metrics, within 10 seconds time buckets.\n\nSee `Plausible.Ingestion.Counters` for integration.\n\nFlushing is by default possible only once the 10s bucket is complete\n(its window has moved). This is to avoid race conditions \nwhen clearing up the buffer on dequeue - because there is no atomic \"get and delete\",\nand items are buffered concurrently, there is a gap between get and delete\nin which items written may disappear otherwise.\n\n`aggregate_bucket_fn` and `flush_boundary_fn` control that semantics and\nare configurable only for test purposes.","ref":"Plausible.Ingestion.Counters.Buffer.html","title":"Plausible.Ingestion.Counters.Buffer","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#aggregate/4","title":"Plausible.Ingestion.Counters.Buffer.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#bucket_10s/1","title":"Plausible.Ingestion.Counters.Buffer.bucket_10s/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#flush/2","title":"Plausible.Ingestion.Counters.Buffer.flush/2","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#new/2","title":"Plausible.Ingestion.Counters.Buffer.new/2","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#previous_10s/1","title":"Plausible.Ingestion.Counters.Buffer.previous_10s/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#t:bucket_fn_opt/0","title":"Plausible.Ingestion.Counters.Buffer.bucket_fn_opt/0","type":"type"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#t:t/0","title":"Plausible.Ingestion.Counters.Buffer.t/0","type":"type"},{"doc":"","ref":"Plausible.Ingestion.Counters.Buffer.html#t:unix_timestamp/0","title":"Plausible.Ingestion.Counters.Buffer.unix_timestamp/0","type":"type"},{"doc":"Clickhouse schema for storing ingest counter metrics","ref":"Plausible.Ingestion.Counters.Record.html","title":"Plausible.Ingestion.Counters.Record","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.Record.html#t:t/0","title":"Plausible.Ingestion.Counters.Record.t/0","type":"type"},{"doc":"Susbcribes to telemetry events emitted by `Plausible.Ingestion.Event`.\nEvery time a request derived event is either dispatched to clickhouse or dropped,\na telemetry event is emitted respectively. That event is captured here,\nits metadata is extracted and sent for internal stats aggregation via\n`Counters.Buffer` interface.","ref":"Plausible.Ingestion.Counters.TelemetryHandler.html","title":"Plausible.Ingestion.Counters.TelemetryHandler","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Counters.TelemetryHandler.html#handle_event/4","title":"Plausible.Ingestion.Counters.TelemetryHandler.handle_event/4","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Counters.TelemetryHandler.html#install/1","title":"Plausible.Ingestion.Counters.TelemetryHandler.install/1","type":"function"},{"doc":"This module exposes the `build_and_buffer/1` function capable of\nturning %Plausible.Ingestion.Request{} into a series of events that in turn\nare uniformly either buffered in batches (to Clickhouse) or dropped\n(e.g. due to spam blocklist) from the processing pipeline.","ref":"Plausible.Ingestion.Event.html","title":"Plausible.Ingestion.Event","type":"module"},{"doc":"","ref":"Plausible.Ingestion.Event.html#build_and_buffer/1","title":"Plausible.Ingestion.Event.build_and_buffer/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#emit_telemetry_buffered/1","title":"Plausible.Ingestion.Event.emit_telemetry_buffered/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#emit_telemetry_dropped/2","title":"Plausible.Ingestion.Event.emit_telemetry_dropped/2","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#telemetry_event_buffered/0","title":"Plausible.Ingestion.Event.telemetry_event_buffered/0","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#telemetry_event_dropped/0","title":"Plausible.Ingestion.Event.telemetry_event_dropped/0","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Event.html#t:drop_reason/0","title":"Plausible.Ingestion.Event.drop_reason/0","type":"type"},{"doc":"","ref":"Plausible.Ingestion.Event.html#t:t/0","title":"Plausible.Ingestion.Event.t/0","type":"type"},{"doc":"The %Plausible.Ingestion.Request{} struct stores all needed fields\nto create an event downstream. Pre-eliminary validation is made\nto detect user errors early.","ref":"Plausible.Ingestion.Request.html","title":"Plausible.Ingestion.Request","type":"module"},{"doc":"Builds and initially validates %Plausible.Ingestion.Request{} struct from %Plug.Conn{}.","ref":"Plausible.Ingestion.Request.html#build/2","title":"Plausible.Ingestion.Request.build/2","type":"function"},{"doc":"Removes the \"www\" part of a hostname.","ref":"Plausible.Ingestion.Request.html#sanitize_hostname/1","title":"Plausible.Ingestion.Request.sanitize_hostname/1","type":"function"},{"doc":"","ref":"Plausible.Ingestion.Request.html#t:t/0","title":"Plausible.Ingestion.Request.t/0","type":"type"},{"doc":"","ref":"Plausible.Mailer.html","title":"Plausible.Mailer","type":"module"},{"doc":"","ref":"Plausible.Mailer.html#deliver/1","title":"Plausible.Mailer.deliver/1","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_later/2","title":"Plausible.Mailer.deliver_later/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_later!/2","title":"Plausible.Mailer.deliver_later!/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_now/2","title":"Plausible.Mailer.deliver_now/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#deliver_now!/2","title":"Plausible.Mailer.deliver_now!/2","type":"function"},{"doc":"","ref":"Plausible.Mailer.html#send/1","title":"Plausible.Mailer.send/1","type":"function"},{"doc":"[Custom OpenTelemetry sampler](https://hexdocs.pm/opentelemetry/readme.html#samplers)\nimplementation that ignores particular traces to reduce noise. Ingestion\nHTTP requests and queries to Oban tables are ignored, for example.","ref":"Plausible.OpenTelemetry.Sampler.html","title":"Plausible.OpenTelemetry.Sampler","type":"module"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html","title":"Plausible.PaddleApi.Mock","type":"module"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html#get_invoices/1","title":"Plausible.PaddleApi.Mock.get_invoices/1","type":"function"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html#get_subscription/1","title":"Plausible.PaddleApi.Mock.get_subscription/1","type":"function"},{"doc":"","ref":"Plausible.PaddleApi.Mock.html#update_subscription/2","title":"Plausible.PaddleApi.Mock.update_subscription/2","type":"function"},{"doc":"Ecto schema for Plugins API Tokens.\nTokens are stored hashed and require a description.\n\nTokens are considered secret, although the Plugins API\nby nature will expose very little, if any, destructive/insecure operations.\n\nThe raw token version is meant to be presented to the user upon creation.\nIt is prefixed with a plain text identifier allowing source scanning\nfor leaked secrets.","ref":"Plausible.Plugins.API.Token.html","title":"Plausible.Plugins.API.Token","type":"module"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#generate/1","title":"Plausible.Plugins.API.Token.generate/1","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#hash/1","title":"Plausible.Plugins.API.Token.hash/1","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#insert_changeset/3","title":"Plausible.Plugins.API.Token.insert_changeset/3","type":"function"},{"doc":"Raw tokens are prefixed so that tools like\nhttps://docs.github.com/en/code-security/secret-scanning/about-secret-scanning\ncan scan repositories for accidental secret commits.","ref":"Plausible.Plugins.API.Token.html#prefix/0","title":"Plausible.Plugins.API.Token.prefix/0","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Token.html#t:t/0","title":"Plausible.Plugins.API.Token.t/0","type":"type"},{"doc":"Context module for Plugins API Tokens.\nExposes high-level operation for token-based authentication flows.","ref":"Plausible.Plugins.API.Tokens.html","title":"Plausible.Plugins.API.Tokens","type":"module"},{"doc":"","ref":"Plausible.Plugins.API.Tokens.html#create/2","title":"Plausible.Plugins.API.Tokens.create/2","type":"function"},{"doc":"","ref":"Plausible.Plugins.API.Tokens.html#find/2","title":"Plausible.Plugins.API.Tokens.find/2","type":"function"},{"doc":"","ref":"Plausible.PromEx.html","title":"Plausible.PromEx","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.PromEx.html#child_spec/1","title":"Plausible.PromEx.child_spec/1","type":"function"},{"doc":"Custom PromEx plugin for instrumenting code within Plausible app.","ref":"Plausible.PromEx.Plugins.PlausibleMetrics.html","title":"Plausible.PromEx.Plugins.PlausibleMetrics","type":"module"},{"doc":"Add telemetry events for Cachex user agents and sessions","ref":"Plausible.PromEx.Plugins.PlausibleMetrics.html#execute_cache_metrics/0","title":"Plausible.PromEx.Plugins.PlausibleMetrics.execute_cache_metrics/0","type":"function"},{"doc":"Add telemetry events for Session and Event write buffers","ref":"Plausible.PromEx.Plugins.PlausibleMetrics.html#execute_write_buffer_metrics/0","title":"Plausible.PromEx.Plugins.PlausibleMetrics.execute_write_buffer_metrics/0","type":"function"},{"doc":"Context module for handling custom event props.","ref":"Plausible.Props.html","title":"Plausible.Props","type":"module"},{"doc":"Allows a prop key or a list of props keys to be included in ClickHouse\nqueries. Allowing prop keys does not affect ingestion, as we don't want any\ndata to be dropped or lost.","ref":"Plausible.Props.html#allow/2","title":"Plausible.Props.allow/2","type":"function"},{"doc":"","ref":"Plausible.Props.html#allow_changeset/2","title":"Plausible.Props.allow_changeset/2","type":"function"},{"doc":"Allows the 300 most frequent props keys for a specific site over\nthe past 6 months.","ref":"Plausible.Props.html#allow_existing_props/1","title":"Plausible.Props.allow_existing_props/1","type":"function"},{"doc":"Returns whether the site has configured custom props or not.","ref":"Plausible.Props.html#configured?/1","title":"Plausible.Props.configured?/1","type":"function"},{"doc":"Removes a previously allowed prop key from the allow list. This means this\nprop key won't be included in ClickHouse queries. This doesn't drop any\nClickHouse data, nor affects ingestion.","ref":"Plausible.Props.html#disallow/2","title":"Plausible.Props.disallow/2","type":"function"},{"doc":"Lists prop keys used internally.\n\nThese props should be allowed by default, and should not be displayed in the\nprops settings page. For example, `url` is a special prop key used for file\ndownloads and outbound links. It doesn't make sense to remove this prop key\nfrom the allow list, or to suggest users to add this prop key.","ref":"Plausible.Props.html#internal_keys/0","title":"Plausible.Props.internal_keys/0","type":"function"},{"doc":"","ref":"Plausible.Props.html#max_prop_key_length/0","title":"Plausible.Props.max_prop_key_length/0","type":"function"},{"doc":"","ref":"Plausible.Props.html#max_prop_value_length/0","title":"Plausible.Props.max_prop_value_length/0","type":"function"},{"doc":"","ref":"Plausible.Props.html#max_props/0","title":"Plausible.Props.max_props/0","type":"function"},{"doc":"Queries the events table to fetch the 300 most frequent prop keys\nfor a specific site over the past 6 months, excluding keys that are already\nallowed.","ref":"Plausible.Props.html#suggest_keys_to_allow/2","title":"Plausible.Props.suggest_keys_to_allow/2","type":"function"},{"doc":"","ref":"Plausible.Props.html#t:prop/0","title":"Plausible.Props.prop/0","type":"type"},{"doc":"Deletes data from a site.\n\nStats are stored on Clickhouse, and unlike other databases data deletion is\ndone asynchronously.\n\n- [Clickhouse `ALTER TABLE ... DELETE` Statement](https://clickhouse.com/docs/en/sql-reference/statements/alter/delete)\n- [Synchronicity of `ALTER` Queries](https://clickhouse.com/docs/en/sql-reference/statements/alter/#synchronicity-of-alter-queries)","ref":"Plausible.Purge.html","title":"Plausible.Purge","type":"module"},{"doc":"Deletes imported stats from Google Analytics, and clears the\n`stats_start_date` field.","ref":"Plausible.Purge.html#delete_imported_stats!/1","title":"Plausible.Purge.delete_imported_stats!/1","type":"function"},{"doc":"Move stats pointers so that no historical stats are available.","ref":"Plausible.Purge.html#delete_native_stats!/1","title":"Plausible.Purge.delete_native_stats!/1","type":"function"},{"doc":"","ref":"Plausible.Purge.html#reset!/1","title":"Plausible.Purge.reset!/1","type":"function"},{"doc":"","ref":"Plausible.Release.html","title":"Plausible.Release","type":"module"},{"doc":"","ref":"Plausible.Release.html#configure_ref_inspector/0","title":"Plausible.Release.configure_ref_inspector/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#configure_ua_inspector/0","title":"Plausible.Release.configure_ua_inspector/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#createdb/0","title":"Plausible.Release.createdb/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#migrate/0","title":"Plausible.Release.migrate/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#rollback/0","title":"Plausible.Release.rollback/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#seed/0","title":"Plausible.Release.seed/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#selfhost?/0","title":"Plausible.Release.selfhost?/0","type":"function"},{"doc":"","ref":"Plausible.Release.html#should_be_first_launch?/0","title":"Plausible.Release.should_be_first_launch?/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html","title":"Plausible.Repo","type":"module"},{"doc":"","ref":"Plausible.Repo.html#aggregate/3","title":"Plausible.Repo.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#aggregate/4","title":"Plausible.Repo.aggregate/4","type":"function"},{"doc":"","ref":"Plausible.Repo.html#all/2","title":"Plausible.Repo.all/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#checked_out?/0","title":"Plausible.Repo.checked_out?/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#checkout/2","title":"Plausible.Repo.checkout/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#child_spec/1","title":"Plausible.Repo.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#config/0","title":"Plausible.Repo.config/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#default_options/1","title":"Plausible.Repo.default_options/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#delete/2","title":"Plausible.Repo.delete/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#delete!/2","title":"Plausible.Repo.delete!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#delete_all/2","title":"Plausible.Repo.delete_all/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that forces all connections in the\npool to disconnect within the given interval.\n\nSee `Ecto.Adapters.SQL.disconnect_all/3` for more information.","ref":"Plausible.Repo.html#disconnect_all/2","title":"Plausible.Repo.disconnect_all/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#exists?/2","title":"Plausible.Repo.exists?/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes an EXPLAIN statement or similar\ndepending on the adapter to obtain statistics for the given query.\n\nSee `Ecto.Adapters.SQL.explain/4` for more information.","ref":"Plausible.Repo.html#explain/3","title":"Plausible.Repo.explain/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get/3","title":"Plausible.Repo.get/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get!/3","title":"Plausible.Repo.get!/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get_by/3","title":"Plausible.Repo.get_by/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get_by!/3","title":"Plausible.Repo.get_by!/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#get_dynamic_repo/0","title":"Plausible.Repo.get_dynamic_repo/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#in_transaction?/0","title":"Plausible.Repo.in_transaction?/0","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert/2","title":"Plausible.Repo.insert/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert!/2","title":"Plausible.Repo.insert!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert_all/3","title":"Plausible.Repo.insert_all/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert_or_update/2","title":"Plausible.Repo.insert_or_update/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#insert_or_update!/2","title":"Plausible.Repo.insert_or_update!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#load/2","title":"Plausible.Repo.load/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#one/2","title":"Plausible.Repo.one/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#one!/2","title":"Plausible.Repo.one!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#paginate/3","title":"Plausible.Repo.paginate/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#preload/3","title":"Plausible.Repo.preload/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#prepare_query/3","title":"Plausible.Repo.prepare_query/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#put_dynamic_repo/1","title":"Plausible.Repo.put_dynamic_repo/1","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query/4` for more information.","ref":"Plausible.Repo.html#query/3","title":"Plausible.Repo.query/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given query.\n\nSee `Ecto.Adapters.SQL.query!/4` for more information.","ref":"Plausible.Repo.html#query!/3","title":"Plausible.Repo.query!/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given multi-result query.\n\nSee `Ecto.Adapters.SQL.query_many/4` for more information.","ref":"Plausible.Repo.html#query_many/3","title":"Plausible.Repo.query_many/3","type":"function"},{"doc":"A convenience function for SQL-based repositories that executes the given multi-result query.\n\nSee `Ecto.Adapters.SQL.query_many!/4` for more information.","ref":"Plausible.Repo.html#query_many!/3","title":"Plausible.Repo.query_many!/3","type":"function"},{"doc":"","ref":"Plausible.Repo.html#reload/2","title":"Plausible.Repo.reload/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#reload!/2","title":"Plausible.Repo.reload!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#rollback/1","title":"Plausible.Repo.rollback/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#start_link/1","title":"Plausible.Repo.start_link/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#stop/1","title":"Plausible.Repo.stop/1","type":"function"},{"doc":"","ref":"Plausible.Repo.html#stream/2","title":"Plausible.Repo.stream/2","type":"function"},{"doc":"A convenience function for SQL-based repositories that translates the given query to SQL.\n\nSee `Ecto.Adapters.SQL.to_sql/3` for more information.","ref":"Plausible.Repo.html#to_sql/2","title":"Plausible.Repo.to_sql/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#transaction/2","title":"Plausible.Repo.transaction/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#update/2","title":"Plausible.Repo.update/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#update!/2","title":"Plausible.Repo.update!/2","type":"function"},{"doc":"","ref":"Plausible.Repo.html#update_all/3","title":"Plausible.Repo.update_all/3","type":"function"},{"doc":"","ref":"Plausible.Sentry.Client.html","title":"Plausible.Sentry.Client","type":"module"},{"doc":"The Sentry.HTTPClient behaviour requires a child spec to be supplied.\nIn this case we don't want Sentry to manage our Finch instances, hence it's fed\nwith a dummy module for the sake of the contract.\n\nXXX: Submit a Sentry PR making the child spec callback optional.","ref":"Plausible.Sentry.Client.html#child_spec/0","title":"Plausible.Sentry.Client.child_spec/0","type":"function"},{"doc":"","ref":"Plausible.Sentry.Client.html#post/3","title":"Plausible.Sentry.Client.post/3","type":"function"},{"doc":"Sentry callbacks for filtering and grouping events","ref":"Plausible.SentryFilter.html","title":"Plausible.SentryFilter","type":"module"},{"doc":"","ref":"Plausible.SentryFilter.html#before_send/1","title":"Plausible.SentryFilter.before_send/1","type":"function"},{"doc":"","ref":"Plausible.SentryFilter.html#exclude_exception?/2","title":"Plausible.SentryFilter.exclude_exception?/2","type":"function"},{"doc":"","ref":"Plausible.Session.CacheStore.html","title":"Plausible.Session.CacheStore","type":"module"},{"doc":"","ref":"Plausible.Session.CacheStore.html#on_event/3","title":"Plausible.Session.CacheStore.on_event/3","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html","title":"Plausible.Session.Salts","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Session.Salts.html#child_spec/1","title":"Plausible.Session.Salts.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html#fetch/0","title":"Plausible.Session.Salts.fetch/0","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html#rotate/0","title":"Plausible.Session.Salts.rotate/0","type":"function"},{"doc":"","ref":"Plausible.Session.Salts.html#start_link/1","title":"Plausible.Session.Salts.start_link/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html","title":"Plausible.Session.WriteBuffer","type":"module"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"Plausible.Session.WriteBuffer.html#child_spec/1","title":"Plausible.Session.WriteBuffer.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#flush/0","title":"Plausible.Session.WriteBuffer.flush/0","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#init/1","title":"Plausible.Session.WriteBuffer.init/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#insert/1","title":"Plausible.Session.WriteBuffer.insert/1","type":"function"},{"doc":"","ref":"Plausible.Session.WriteBuffer.html#start_link/1","title":"Plausible.Session.WriteBuffer.start_link/1","type":"function"},{"doc":"Site schema","ref":"Plausible.Site.html","title":"Plausible.Site","type":"module"},{"doc":"","ref":"Plausible.Site.html#changeset/2","title":"Plausible.Site.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#crm_changeset/2","title":"Plausible.Site.crm_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#feature_toggle_change/3","title":"Plausible.Site.feature_toggle_change/3","type":"function"},{"doc":"","ref":"Plausible.Site.html#import_failure/1","title":"Plausible.Site.import_failure/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#import_success/1","title":"Plausible.Site.import_success/1","type":"function"},{"doc":"Returns the date of the first recorded stat in the timezone configured by the user.\nThis function does 2 transformations:\n UTC %NaiveDateTime{} -> Local %DateTime{} -> Local %Date","ref":"Plausible.Site.html#local_start_date/1","title":"Plausible.Site.local_start_date/1","type":"function"},{"doc":"iex> Plausible.Site.local_start_date(%Plausible.Site{stats_start_date: nil})\n nil\n\n iex> utc_start = ~N[2022-09-28 00:00:00]\n iex> tz = \"Europe/Helsinki\"\n iex> site = %Plausible.Site{stats_start_date: utc_start, timezone: tz}\n iex> Plausible.Site.local_start_date(site)\n ~D[2022-09-28]\n\n iex> utc_start = ~N[2022-09-28 00:00:00]\n iex> tz = \"America/Los_Angeles\"\n iex> site = %Plausible.Site{stats_start_date: utc_start, timezone: tz}\n iex> Plausible.Site.local_start_date(site)\n ~D[2022-09-27]","ref":"Plausible.Site.html#local_start_date/1-examples","title":"Examples - Plausible.Site.local_start_date/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#make_private/1","title":"Plausible.Site.make_private/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#make_public/1","title":"Plausible.Site.make_public/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#remove_imported_data/1","title":"Plausible.Site.remove_imported_data/1","type":"function"},{"doc":"","ref":"Plausible.Site.html#set_imported_source/2","title":"Plausible.Site.set_imported_source/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#set_native_stats_start_at/2","title":"Plausible.Site.set_native_stats_start_at/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#set_stats_start_date/2","title":"Plausible.Site.set_stats_start_date/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#start_import/5","title":"Plausible.Site.start_import/5","type":"function"},{"doc":"","ref":"Plausible.Site.html#tz_offset/2","title":"Plausible.Site.tz_offset/2","type":"function"},{"doc":"","ref":"Plausible.Site.html#update_changeset/3","title":"Plausible.Site.update_changeset/3","type":"function"},{"doc":"","ref":"Plausible.Site.html#t:t/0","title":"Plausible.Site.t/0","type":"type"},{"doc":"A \"sites by domain\" caching interface.\n\nServes as a thin wrapper around Cachex, but the underlying\nimplementation can be transparently swapped.\n\nEven though the Cachex process is started, cache access is disabled\nduring tests via the `:sites_by_domain_cache_enabled` application env key.\nThis can be overridden on case by case basis, using the child specs options.\n\nNOTE: the cache allows lookups by both `domain` and `domain_changed_from`\nfields - this is to allow traffic from sites whose domains changed within a certain\ngrace period (see: `Plausible.Site.Transfer`).\n\nWhen Cache is disabled via application env, the `get/1` function\nfalls back to pure database lookups. This should help with introducing\ncached lookups in existing code, so that no existing tests should break.\n\nTo differentiate cached Site structs from those retrieved directly from the\ndatabase, a virtual schema field `from_cache?: true` is set.\nThis indicates the `Plausible.Site` struct is incomplete in comparison to its\ndatabase counterpart -- to spare bandwidth and query execution time,\nonly selected database columns are retrieved and cached.\n\nThere are two modes of refreshing the cache: `:all` and `:updated_recently`.\n\n * `:all` means querying the database for all Site entries and should be done\n periodically (via `Cache.Warmer`). All stale Cache entries are cleared\n upon persisting the new batch.\n\n * `:updated_recently` attempts to re-query sites updated within the last\n 15 minutes only, to account for most recent changes. This refresh\n is lighter on the database and is meant to be executed more frequently\n (via `Cache.Warmer.RecentlyUpdated`).\n\nRefreshing the cache emits telemetry event defined as per `telemetry_event_refresh/2`.\n\nThe `@cached_schema_fields` attribute defines the list of DB columns\nqueried on each cache refresh.\n\nAlso see tests for more comprehensive examples.","ref":"Plausible.Site.Cache.html","title":"Plausible.Site.Cache","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.html#child_spec/1","title":"Plausible.Site.Cache.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#enabled?/0","title":"Plausible.Site.Cache.enabled?/0","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#get/2","title":"Plausible.Site.Cache.get/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#get_site_id/2","title":"Plausible.Site.Cache.get_site_id/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#hit_rate/1","title":"Plausible.Site.Cache.hit_rate/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#merge/2","title":"Plausible.Site.Cache.merge/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#name/0","title":"Plausible.Site.Cache.name/0","type":"function"},{"doc":"Ensures the cache has non-zero size unless no sites exist.\nUseful for orchestrating app startup to prevent the service\ngoing up asynchronously with an empty cache.","ref":"Plausible.Site.Cache.html#ready?/1","title":"Plausible.Site.Cache.ready?/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#refresh_all/1","title":"Plausible.Site.Cache.refresh_all/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#refresh_updated_recently/1","title":"Plausible.Site.Cache.refresh_updated_recently/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#size/1","title":"Plausible.Site.Cache.size/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#telemetry_event_refresh/2","title":"Plausible.Site.Cache.telemetry_event_refresh/2","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.html#t:t/0","title":"Plausible.Site.Cache.t/0","type":"type"},{"doc":"A periodic cache warmer.\nQueries all Sites from Postgres, every `interval` and pre-populates the cache.\nAfter each run the process is hibernated, triggering garbage collection.\n\nCurrently Cachex is used, but the underlying implementation can be transparently swapped.\n\nChild specification options available:\n\n * `interval` - the number of milliseconds for each warm-up cycle, defaults\n to `:sites_by_domain_cache_refresh_interval` application env value\n with random jitter added, for which the maximum is stored under\n `:sites_by_domain_cache_refresh_interval_max_jitter` key.\n * `cache_name` - defaults to Cache.name() but can be overriden for testing\n * `force_start?` - enforcess process startup for testing, even if it's barred\n by `Cache.enabled?`. This is useful for avoiding issues with DB ownership\n and async tests.\n * `warmer_fn` - used for testing, a custom function to retrieve the items meant\n to be cached during the warm-up cycle.\n\nSee tests for more comprehensive examples.","ref":"Plausible.Site.Cache.Warmer.html","title":"Plausible.Site.Cache.Warmer","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.html#child_spec/1","title":"Plausible.Site.Cache.Warmer.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.html#interval/0","title":"Plausible.Site.Cache.Warmer.interval/0","type":"function"},{"doc":"A Cache.Warmer adapter that refreshes the Sites Cache fully.\nThis module exists only to make it explicit what the warmer\nrefreshes, to be used in the supervisor tree.","ref":"Plausible.Site.Cache.Warmer.All.html","title":"Plausible.Site.Cache.Warmer.All","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.All.html#child_spec/1","title":"Plausible.Site.Cache.Warmer.All.child_spec/1","type":"function"},{"doc":"A Cache.Warmer adapter that only refreshes the Cache\nwith recently updated sites every 30 seconds.","ref":"Plausible.Site.Cache.Warmer.RecentlyUpdated.html","title":"Plausible.Site.Cache.Warmer.RecentlyUpdated","type":"module"},{"doc":"","ref":"Plausible.Site.Cache.Warmer.RecentlyUpdated.html#child_spec/1","title":"Plausible.Site.Cache.Warmer.RecentlyUpdated.child_spec/1","type":"function"},{"doc":"","ref":"Plausible.Site.CustomDomain.html","title":"Plausible.Site.CustomDomain","type":"module"},{"doc":"Basic interface for domain changes.\n\nOnce `Plausible.DataMigration.NumericIDs` schema migration is ready, \ndomain change operation will be enabled, accessible to the users.\n\nWe will set a transition period of 72 hours\nduring which, both old and new domains, will be accepted as traffic\nidentifiers to the same site. \n\nA periodic worker will call the `expire/0` function to end it where applicable.\nSee: `Plausible.Workers.ExpireDomainChangeTransitions`.\n\nThe underlying changeset for domain change (see: `Plausible.Site`) relies\non database trigger installed via `Plausible.Repo.Migrations.AllowDomainChange`\nPostgres migration. The trigger checks if either `domain` or `domain_changed_from`\nexist to ensure unicity.","ref":"Plausible.Site.Domain.html","title":"Plausible.Site.Domain","type":"module"},{"doc":"","ref":"Plausible.Site.Domain.html#change/3","title":"Plausible.Site.Domain.change/3","type":"function"},{"doc":"","ref":"Plausible.Site.Domain.html#expire_change_transitions/1","title":"Plausible.Site.Domain.expire_change_transitions/1","type":"function"},{"doc":"Thin wrapper around Hammer for gate keeping domain-specific events\nduring the ingestion phase. When the site is allowed, gate keeping\ncheck returns `:allow`, otherwise a `:deny` tagged tuple is returned\nwith one of the following policy markers:\n * `:not_found` (indicates site not found in cache)\n * `:block` (indicates disabled sites)\n * `:throttle` (indicates rate limiting)\n\nRate Limiting buckets are configured per site (externally via the CRM).\nSee: `Plausible.Site`\n\nTo look up each site's configuration, the RateLimiter fetches\na Site by domain using `Plausible.Cache` interface.\n\nThe module defines two policies outside the regular bucket inspection:\n * when the the site is not found in cache: not_found\n * when the underlying rate limiting mechanism returns\n an internal error: :allow","ref":"Plausible.Site.GateKeeper.html","title":"Plausible.Site.GateKeeper","type":"module"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#check/2","title":"Plausible.Site.GateKeeper.check/2","type":"function"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#key/1","title":"Plausible.Site.GateKeeper.key/1","type":"function"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#t:policy/0","title":"Plausible.Site.GateKeeper.policy/0","type":"type"},{"doc":"","ref":"Plausible.Site.GateKeeper.html#t:t/0","title":"Plausible.Site.GateKeeper.t/0","type":"type"},{"doc":"","ref":"Plausible.Site.GoogleAuth.html","title":"Plausible.Site.GoogleAuth","type":"module"},{"doc":"","ref":"Plausible.Site.GoogleAuth.html#changeset/2","title":"Plausible.Site.GoogleAuth.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.GoogleAuth.html#set_property/2","title":"Plausible.Site.GoogleAuth.set_property/2","type":"function"},{"doc":"Embedded schema for Google Analytics imports","ref":"Plausible.Site.ImportedData.html","title":"Plausible.Site.ImportedData","type":"module"},{"doc":"","ref":"Plausible.Site.Membership.html","title":"Plausible.Site.Membership","type":"module"},{"doc":"","ref":"Plausible.Site.Membership.html#changeset/2","title":"Plausible.Site.Membership.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html","title":"Plausible.Site.MonthlyReport","type":"module"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html#add_recipient/2","title":"Plausible.Site.MonthlyReport.add_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html#changeset/2","title":"Plausible.Site.MonthlyReport.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.MonthlyReport.html#remove_recipient/2","title":"Plausible.Site.MonthlyReport.remove_recipient/2","type":"function"},{"doc":"A site deletion service stub.","ref":"Plausible.Site.Removal.html","title":"Plausible.Site.Removal","type":"module"},{"doc":"","ref":"Plausible.Site.Removal.html#run/1","title":"Plausible.Site.Removal.run/1","type":"function"},{"doc":"","ref":"Plausible.Site.SharedLink.html","title":"Plausible.Site.SharedLink","type":"module"},{"doc":"","ref":"Plausible.Site.SharedLink.html#changeset/2","title":"Plausible.Site.SharedLink.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html","title":"Plausible.Site.SpikeNotification","type":"module"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#add_recipient/2","title":"Plausible.Site.SpikeNotification.add_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#changeset/2","title":"Plausible.Site.SpikeNotification.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#remove_recipient/2","title":"Plausible.Site.SpikeNotification.remove_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.SpikeNotification.html#was_sent/1","title":"Plausible.Site.SpikeNotification.was_sent/1","type":"function"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html","title":"Plausible.Site.WeeklyReport","type":"module"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html#add_recipient/2","title":"Plausible.Site.WeeklyReport.add_recipient/2","type":"function"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html#changeset/2","title":"Plausible.Site.WeeklyReport.changeset/2","type":"function"},{"doc":"","ref":"Plausible.Site.WeeklyReport.html#remove_recipient/2","title":"Plausible.Site.WeeklyReport.remove_recipient/2","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html","title":"Plausible.SiteAdmin","type":"module"},{"doc":"","ref":"Plausible.SiteAdmin.html#create_changeset/2","title":"Plausible.SiteAdmin.create_changeset/2","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#custom_index_query/3","title":"Plausible.SiteAdmin.custom_index_query/3","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#form_fields/1","title":"Plausible.SiteAdmin.form_fields/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#get_struct_fields/1","title":"Plausible.SiteAdmin.get_struct_fields/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#index/1","title":"Plausible.SiteAdmin.index/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#list_actions/1","title":"Plausible.SiteAdmin.list_actions/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#ordering/1","title":"Plausible.SiteAdmin.ordering/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#search_fields/1","title":"Plausible.SiteAdmin.search_fields/1","type":"function"},{"doc":"","ref":"Plausible.SiteAdmin.html#update_changeset/2","title":"Plausible.SiteAdmin.update_changeset/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html","title":"Plausible.Sites","type":"module"},{"doc":"","ref":"Plausible.Sites.html#bulk_transfer_ownership/4","title":"Plausible.Sites.bulk_transfer_ownership/4","type":"function"},{"doc":"","ref":"Plausible.Sites.html#create/2","title":"Plausible.Sites.create/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#create_shared_link/3","title":"Plausible.Sites.create_shared_link/3","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_by_domain/1","title":"Plausible.Sites.get_by_domain/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_by_domain!/1","title":"Plausible.Sites.get_by_domain!/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_for_user/3","title":"Plausible.Sites.get_for_user/3","type":"function"},{"doc":"","ref":"Plausible.Sites.html#get_for_user!/3","title":"Plausible.Sites.get_for_user!/3","type":"function"},{"doc":"","ref":"Plausible.Sites.html#has_admin_access?/2","title":"Plausible.Sites.has_admin_access?/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#has_goals?/1","title":"Plausible.Sites.has_goals?/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#has_stats?/1","title":"Plausible.Sites.has_stats?/1","type":"function"},{"doc":"Invites a new team member to the given site. Returns a\n%Plausible.Auth.Invitation{} struct and sends the invitee an email to accept\nthis invitation.\n\nThe inviter must have enough permissions to invite the new team member,\notherwise this function returns `{:error, :forbidden}`.\n\nIf the new team member role is `:owner`, this function handles the invitation\nas an ownership transfer and requires the inviter to be the owner of the site.","ref":"Plausible.Sites.html#invite/4","title":"Plausible.Sites.invite/4","type":"function"},{"doc":"","ref":"Plausible.Sites.html#is_member?/2","title":"Plausible.Sites.is_member?/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#locked?/1","title":"Plausible.Sites.locked?/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owned_site_ids/1","title":"Plausible.Sites.owned_site_ids/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owned_sites_count/1","title":"Plausible.Sites.owned_sites_count/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owned_sites_domains/1","title":"Plausible.Sites.owned_sites_domains/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#owner_for/1","title":"Plausible.Sites.owner_for/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#role/2","title":"Plausible.Sites.role/2","type":"function"},{"doc":"","ref":"Plausible.Sites.html#shared_link_url/2","title":"Plausible.Sites.shared_link_url/2","type":"function"},{"doc":"Returns the date of the first event of the given site, or `nil` if the site\ndoes not have stats yet.\n\nIf this is the first time the function is called for the site, it queries\nClickhouse and saves the date in the sites table.","ref":"Plausible.Sites.html#stats_start_date/1","title":"Plausible.Sites.stats_start_date/1","type":"function"},{"doc":"","ref":"Plausible.Sites.html#t:invite_error/0","title":"Plausible.Sites.invite_error/0","type":"type"},{"doc":"","ref":"Plausible.Stats.html","title":"Plausible.Stats","type":"module"},{"doc":"","ref":"Plausible.Stats.html#aggregate/3","title":"Plausible.Stats.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.Stats.html#breakdown/5","title":"Plausible.Stats.breakdown/5","type":"function"},{"doc":"","ref":"Plausible.Stats.html#current_visitors/1","title":"Plausible.Stats.current_visitors/1","type":"function"},{"doc":"","ref":"Plausible.Stats.html#filter_suggestions/4","title":"Plausible.Stats.filter_suggestions/4","type":"function"},{"doc":"","ref":"Plausible.Stats.html#funnel/3","title":"Plausible.Stats.funnel/3","type":"function"},{"doc":"","ref":"Plausible.Stats.html#timeseries/3","title":"Plausible.Stats.timeseries/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Aggregate.html","title":"Plausible.Stats.Aggregate","type":"module"},{"doc":"","ref":"Plausible.Stats.Aggregate.html#aggregate/3","title":"Plausible.Stats.Aggregate.aggregate/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html","title":"Plausible.Stats.Base","type":"module"},{"doc":"","ref":"Plausible.Stats.Base.html#apply_entry_prop_filter/3","title":"Plausible.Stats.Base.apply_entry_prop_filter/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#base_event_query/2","title":"Plausible.Stats.Base.base_event_query/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#filter_by_entry_props/2","title":"Plausible.Stats.Base.filter_by_entry_props/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#filter_converted_sessions/3","title":"Plausible.Stats.Base.filter_converted_sessions/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#page_regex/1","title":"Plausible.Stats.Base.page_regex/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#query_events/2","title":"Plausible.Stats.Base.query_events/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#query_sessions/2","title":"Plausible.Stats.Base.query_sessions/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#select_event_metrics/2","title":"Plausible.Stats.Base.select_event_metrics/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#select_session_metrics/3","title":"Plausible.Stats.Base.select_session_metrics/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Base.html#utc_boundaries/2","title":"Plausible.Stats.Base.utc_boundaries/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Breakdown.html","title":"Plausible.Stats.Breakdown","type":"module"},{"doc":"","ref":"Plausible.Stats.Breakdown.html#breakdown/5","title":"Plausible.Stats.Breakdown.breakdown/5","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html","title":"Plausible.Stats.Clickhouse","type":"module"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#current_visitors/2","title":"Plausible.Stats.Clickhouse.current_visitors/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#has_pageviews?/1","title":"Plausible.Stats.Clickhouse.has_pageviews?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#imported_pageview_count/1","title":"Plausible.Stats.Clickhouse.imported_pageview_count/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#last_24h_visitors/1","title":"Plausible.Stats.Clickhouse.last_24h_visitors/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#pageview_start_date_local/1","title":"Plausible.Stats.Clickhouse.pageview_start_date_local/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#top_sources/6","title":"Plausible.Stats.Clickhouse.top_sources/6","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#usage_breakdown/1","title":"Plausible.Stats.Clickhouse.usage_breakdown/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Clickhouse.html#usage_breakdown/2","title":"Plausible.Stats.Clickhouse.usage_breakdown/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Compare.html","title":"Plausible.Stats.Compare","type":"module"},{"doc":"","ref":"Plausible.Stats.Compare.html#calculate_change/3","title":"Plausible.Stats.Compare.calculate_change/3","type":"function"},{"doc":"This module provides functions for comparing query periods.\n\nIt allows you to compare a given period with a previous period or with the\nsame period from the previous year. For example, you can compare this month's\nmain graph with last month or with the same month from last year.","ref":"Plausible.Stats.Comparisons.html","title":"Plausible.Stats.Comparisons","type":"module"},{"doc":"Generates a comparison query based on the source query and comparison mode.\n\nThe mode parameter specifies the type of comparison and can be one of the\nfollowing:\n\n * `\"previous_period\"` - shifts back the query by the same number of days the\n source query has.\n\n * `\"year_over_year\"` - shifts back the query by 1 year.\n\n * `\"custom\"` - compares the query using a custom date range. See options for\n more details.\n\nThe comparison query returned by the function has its end date restricted to\nthe current day. This can be overriden by the `now` option, described below.","ref":"Plausible.Stats.Comparisons.html#compare/4","title":"Plausible.Stats.Comparisons.compare/4","type":"function"},{"doc":"* `:now` - a `NaiveDateTime` struct with the current date and time. This is\n optional and used for testing purposes.\n\n * `:from` - a ISO-8601 date string used when mode is `\"custom\"`.\n\n * `:to` - a ISO-8601 date string used when mode is `\"custom\"`. Must be\n after `from`.\n\n * `:match_day_of_week?` - determines whether the comparison query should be\n adjusted to match the day of the week of the source query. When this option\n is set to true, the comparison query is shifted to start on the same day of\n the week as the source query, rather than on the exact same date. For\n example, if the source query starts on Sunday, January 1st, 2023 and the\n `year_over_year` comparison query is configured to `match_day_of_week?`,\n it will be shifted to start on Sunday, January 2nd, 2022 instead of\n January 1st. Defaults to false.","ref":"Plausible.Stats.Comparisons.html#compare/4-options","title":"Options - Plausible.Stats.Comparisons.compare/4","type":"function"},{"doc":"","ref":"Plausible.Stats.Comparisons.html#t:mode/0","title":"Plausible.Stats.Comparisons.mode/0","type":"type"},{"doc":"","ref":"Plausible.Stats.CurrentVisitors.html","title":"Plausible.Stats.CurrentVisitors","type":"module"},{"doc":"","ref":"Plausible.Stats.CurrentVisitors.html#current_visitors/1","title":"Plausible.Stats.CurrentVisitors.current_visitors/1","type":"function"},{"doc":"Module for querying user defined 'custom properties'.","ref":"Plausible.Stats.CustomProps.html","title":"Plausible.Stats.CustomProps","type":"module"},{"doc":"","ref":"Plausible.Stats.CustomProps.html#fetch_prop_names/2","title":"Plausible.Stats.CustomProps.fetch_prop_names/2","type":"function"},{"doc":"","ref":"Plausible.Stats.CustomProps.html#maybe_allowed_props_only/2","title":"Plausible.Stats.CustomProps.maybe_allowed_props_only/2","type":"function"},{"doc":"Returns a breakdown of event names with all existing custom\nproperties for each event name.","ref":"Plausible.Stats.CustomProps.html#props_for_all_event_names/2","title":"Plausible.Stats.CustomProps.props_for_all_event_names/2","type":"function"},{"doc":"A module for parsing filters used in stat queries.","ref":"Plausible.Stats.FilterParser.html","title":"Plausible.Stats.FilterParser","type":"module"},{"doc":"Parses different filter formats.\n\nDepending on the format and type of the `filters` argument, returns:\n\n * a decoded map, when `filters` is encoded JSON\n * a parsed filter map, when `filters` is a filter expression string\n * the same map, when `filters` is a map\n\nReturns an empty map when argument type is unexpected (e.g. `nil`).\n\n#","ref":"Plausible.Stats.FilterParser.html#parse_filters/1","title":"Plausible.Stats.FilterParser.parse_filters/1","type":"function"},{"doc":"iex> FilterParser.parse_filters(\"{\\\"page\\\":\\\"/blog/**\\\"}\")\n %{\"page\" => \"/blog/**\"}\n\n iex> FilterParser.parse_filters(\"visit:browser!=Chrome\")\n %{\"visit:browser\" => {:is_not, \"Chrome\"}}\n\n iex> FilterParser.parse_filters(nil)\n %{}","ref":"Plausible.Stats.FilterParser.html#parse_filters/1-examples","title":"Examples: - Plausible.Stats.FilterParser.parse_filters/1","type":"function"},{"doc":"","ref":"Plausible.Stats.FilterSuggestions.html","title":"Plausible.Stats.FilterSuggestions","type":"module"},{"doc":"","ref":"Plausible.Stats.FilterSuggestions.html#filter_suggestions/4","title":"Plausible.Stats.FilterSuggestions.filter_suggestions/4","type":"function"},{"doc":"","ref":"Plausible.Stats.Filters.html","title":"Plausible.Stats.Filters","type":"module"},{"doc":"","ref":"Plausible.Stats.Filters.html#add_prefix/1","title":"Plausible.Stats.Filters.add_prefix/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Filters.html#visit_props/0","title":"Plausible.Stats.Filters.visit_props/0","type":"function"},{"doc":"","ref":"Plausible.Stats.Fragments.html","title":"Plausible.Stats.Fragments","type":"module"},{"doc":"","ref":"Plausible.Stats.Fragments.html#bounce_rate/0","title":"Plausible.Stats.Fragments.bounce_rate/0","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#coalesce_string/2","title":"Plausible.Stats.Fragments.coalesce_string/2","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#sample_percent/0","title":"Plausible.Stats.Fragments.sample_percent/0","type":"macro"},{"doc":"Converts time or date and time to the specified timezone.\n\nReference: https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions/#totimezone","ref":"Plausible.Stats.Fragments.html#to_timezone/2","title":"Plausible.Stats.Fragments.to_timezone/2","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#total/0","title":"Plausible.Stats.Fragments.total/0","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#uniq/1","title":"Plausible.Stats.Fragments.uniq/1","type":"macro"},{"doc":"","ref":"Plausible.Stats.Fragments.html#visit_duration/0","title":"Plausible.Stats.Fragments.visit_duration/0","type":"macro"},{"doc":"Returns the weekstart for `date`. If the weekstart is before the `not_before`\nboundary, `not_before` is returned.","ref":"Plausible.Stats.Fragments.html#weekstart_not_before/2","title":"Plausible.Stats.Fragments.weekstart_not_before/2","type":"macro"},{"doc":"In this pseudo-code example, the fragment returns the weekstart. The\n`not_before` boundary is set to the past Saturday, which is before the\nweekstart, therefore the cap does not apply.\n\n iex> this_wednesday = ~D[2022-11-09]\n ...> past_saturday = ~D[2022-11-05]\n ...> weekstart_not_before(this_wednesday, past_saturday)\n ~D[2022-11-07]\n\n\nIn this other example, the fragment returns Tuesday and not the weekstart.\nThe `not_before` boundary is set to Tuesday, which is past the weekstart,\ntherefore the cap applies.\n\n iex> this_wednesday = ~D[2022-11-09]\n ...> this_tuesday = ~D[2022-11-08]\n ...> weekstart_not_before(this_wednesday, this_tuesday)\n ~D[2022-11-08]","ref":"Plausible.Stats.Fragments.html#weekstart_not_before/2-examples","title":"Examples - Plausible.Stats.Fragments.weekstart_not_before/2","type":"macro"},{"doc":"Same as Plausible.Stats.Fragments.weekstart_not_before/2 but converts dates to\nthe specified timezone.","ref":"Plausible.Stats.Fragments.html#weekstart_not_before/3","title":"Plausible.Stats.Fragments.weekstart_not_before/3","type":"macro"},{"doc":"Module responsible for funnel evaluation, i.e. building and executing\nClickHouse funnel query based on `Plausible.Funnel` definition.","ref":"Plausible.Stats.Funnel.html","title":"Plausible.Stats.Funnel","type":"module"},{"doc":"","ref":"Plausible.Stats.Funnel.html#funnel/3","title":"Plausible.Stats.Funnel.funnel/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Imported.html","title":"Plausible.Stats.Imported","type":"module"},{"doc":"","ref":"Plausible.Stats.Imported.html#merge_imported/5","title":"Plausible.Stats.Imported.merge_imported/5","type":"function"},{"doc":"","ref":"Plausible.Stats.Imported.html#merge_imported_timeseries/4","title":"Plausible.Stats.Imported.merge_imported_timeseries/4","type":"function"},{"doc":"Collection of functions to work with intervals.\n\nThe interval of a query defines the granularity of the data. You can think of\nit as a `GROUP BY` clause. Possible values are `minute`, `hour`, `date`,\n`week`, and `month`.","ref":"Plausible.Stats.Interval.html","title":"Plausible.Stats.Interval","type":"module"},{"doc":"Returns the suggested interval for the given `Date.Range` struct.","ref":"Plausible.Stats.Interval.html#default_for_date_range/1","title":"Plausible.Stats.Interval.default_for_date_range/1","type":"function"},{"doc":"Returns the suggested interval for the given time period.","ref":"Plausible.Stats.Interval.html#default_for_period/1","title":"Plausible.Stats.Interval.default_for_period/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#list/0","title":"Plausible.Stats.Interval.list/0","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#valid?/1","title":"Plausible.Stats.Interval.valid?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#valid_by_period/1","title":"Plausible.Stats.Interval.valid_by_period/1","type":"function"},{"doc":"Returns whether the given interval is valid for a time period.\n\nIntervals longer than periods are not supported, e.g. current month stats with\na month interval, or today stats with a week interval.\n\nThere are two dynamic states:\n* `custom` period is only applicable with `month` or `week` intervals,\n if the `opts[:from]` and `opts[:to]` range difference exceeds 12 months\n* `all` period's interval options depend on particular site's `stats_start_date`\n - daily interval is excluded if the all-time range exceeds 12 months","ref":"Plausible.Stats.Interval.html#valid_for_period?/3","title":"Plausible.Stats.Interval.valid_for_period?/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Interval.html#t:opt/0","title":"Plausible.Stats.Interval.opt/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Interval.html#t:opts/0","title":"Plausible.Stats.Interval.opts/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Interval.html#t:t/0","title":"Plausible.Stats.Interval.t/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Props.html","title":"Plausible.Stats.Props","type":"module"},{"doc":"","ref":"Plausible.Stats.Props.html#event_props/0","title":"Plausible.Stats.Props.event_props/0","type":"function"},{"doc":"","ref":"Plausible.Stats.Props.html#valid_prop?/1","title":"Plausible.Stats.Props.valid_prop?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html","title":"Plausible.Stats.Query","type":"module"},{"doc":"","ref":"Plausible.Stats.Query.html#from/2","title":"Plausible.Stats.Query.from/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#get_filter_by_prefix/2","title":"Plausible.Stats.Query.get_filter_by_prefix/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#has_event_filters?/1","title":"Plausible.Stats.Query.has_event_filters?/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#include_imported?/3","title":"Plausible.Stats.Query.include_imported?/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#put_filter/3","title":"Plausible.Stats.Query.put_filter/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#remove_event_filters/2","title":"Plausible.Stats.Query.remove_event_filters/2","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#trace/1","title":"Plausible.Stats.Query.trace/1","type":"function"},{"doc":"","ref":"Plausible.Stats.Query.html#t:t/0","title":"Plausible.Stats.Query.t/0","type":"type"},{"doc":"","ref":"Plausible.Stats.Timeseries.html","title":"Plausible.Stats.Timeseries","type":"module"},{"doc":"","ref":"Plausible.Stats.Timeseries.html#timeseries/3","title":"Plausible.Stats.Timeseries.timeseries/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Timeseries.html#t:results/0","title":"Plausible.Stats.Timeseries.results/0","type":"type"},{"doc":"Utilities for modifying stat results","ref":"Plausible.Stats.Util.html","title":"Plausible.Stats.Util","type":"module"},{"doc":"","ref":"Plausible.Stats.Util.html#cast_revenue_metrics_to_money/2","title":"Plausible.Stats.Util.cast_revenue_metrics_to_money/2","type":"function"},{"doc":"Returns the common currency for the goal filters in a query. If there are no\ngoal filters, or multiple currencies, `nil` is returned and revenue metrics\nare dropped.\n\nAggregating revenue data works only for same currency goals. If the query is\nfiltered by goals with different currencies, for example, one USD and other\nEUR, revenue metrics are dropped.","ref":"Plausible.Stats.Util.html#get_revenue_tracking_currency/3","title":"Plausible.Stats.Util.get_revenue_tracking_currency/3","type":"function"},{"doc":"","ref":"Plausible.Stats.Util.html#remove_internal_visits_metric/1","title":"Plausible.Stats.Util.remove_internal_visits_metric/1","type":"function"},{"doc":"`__internal_visits` is fetched when querying bounce rate and visit duration, as it\nis needed to calculate these from imported data. This function removes that metric\nfrom all entries in the results list.","ref":"Plausible.Stats.Util.html#remove_internal_visits_metric/2","title":"Plausible.Stats.Util.remove_internal_visits_metric/2","type":"function"},{"doc":"Floki wrappers to help make assertions about HTML/DOM structures","ref":"Plausible.Test.Support.HTML.html","title":"Plausible.Test.Support.HTML","type":"module"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#element_exists?/2","title":"Plausible.Test.Support.HTML.element_exists?/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#find/2","title":"Plausible.Test.Support.HTML.find/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#form_exists?/2","title":"Plausible.Test.Support.HTML.form_exists?/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#name_of/1","title":"Plausible.Test.Support.HTML.name_of/1","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#submit_button/2","title":"Plausible.Test.Support.HTML.submit_button/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#text/1","title":"Plausible.Test.Support.HTML.text/1","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#text_of_attr/2","title":"Plausible.Test.Support.HTML.text_of_attr/2","type":"function"},{"doc":"","ref":"Plausible.Test.Support.HTML.html#text_of_element/2","title":"Plausible.Test.Support.HTML.text_of_element/2","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html","title":"Plausible.TestUtils","type":"module"},{"doc":"","ref":"Plausible.TestUtils.html#add_imported_data/1","title":"Plausible.TestUtils.add_imported_data/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#await_clickhouse_count/2","title":"Plausible.TestUtils.await_clickhouse_count/2","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_api_key/1","title":"Plausible.TestUtils.create_api_key/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_events/1","title":"Plausible.TestUtils.create_events/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_new_site/1","title":"Plausible.TestUtils.create_new_site/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_pageviews/1","title":"Plausible.TestUtils.create_pageviews/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_sessions/1","title":"Plausible.TestUtils.create_sessions/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_site/1","title":"Plausible.TestUtils.create_site/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#create_user/1","title":"Plausible.TestUtils.create_user/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#eventually/3","title":"Plausible.TestUtils.eventually/3","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#init_session/1","title":"Plausible.TestUtils.init_session/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#log_in/1","title":"Plausible.TestUtils.log_in/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#patch_env/2","title":"Plausible.TestUtils.patch_env/2","type":"macro"},{"doc":"","ref":"Plausible.TestUtils.html#populate_stats/1","title":"Plausible.TestUtils.populate_stats/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#populate_stats/2","title":"Plausible.TestUtils.populate_stats/2","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#random_ip/0","title":"Plausible.TestUtils.random_ip/0","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#relative_time/1","title":"Plausible.TestUtils.relative_time/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#setup_patch_env/2","title":"Plausible.TestUtils.setup_patch_env/2","type":"macro"},{"doc":"","ref":"Plausible.TestUtils.html#to_naive_truncate/1","title":"Plausible.TestUtils.to_naive_truncate/1","type":"function"},{"doc":"","ref":"Plausible.TestUtils.html#use_api_key/1","title":"Plausible.TestUtils.use_api_key/1","type":"function"},{"doc":"","ref":"Plausible.Themes.html","title":"Plausible.Themes","type":"module"},{"doc":"","ref":"Plausible.Themes.html#options/0","title":"Plausible.Themes.options/0","type":"function"},{"doc":"","ref":"Plausible.Timezones.html","title":"Plausible.Timezones","type":"module"},{"doc":"","ref":"Plausible.Timezones.html#options/1","title":"Plausible.Timezones.options/1","type":"function"},{"doc":"User context","ref":"Plausible.Users.html","title":"Plausible.Users","type":"module"},{"doc":"","ref":"Plausible.Users.html#with_subscription/1","title":"Plausible.Users.with_subscription/1","type":"function"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html","title":"Plausible.Workers.CheckUsage","type":"module"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#check_enterprise_subscriber/2","title":"Plausible.Workers.CheckUsage.check_enterprise_subscriber/2","type":"function"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#day_of_month/1","title":"Plausible.Workers.CheckUsage.day_of_month/1","type":"macro"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#last_day_of_month/1","title":"Plausible.Workers.CheckUsage.last_day_of_month/1","type":"macro"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#least/2","title":"Plausible.Workers.CheckUsage.least/2","type":"macro"},{"doc":"","ref":"Plausible.Workers.CheckUsage.html#yesterday/0","title":"Plausible.Workers.CheckUsage.yesterday/0","type":"macro"},{"doc":"","ref":"Plausible.Workers.CleanEmailVerificationCodes.html","title":"Plausible.Workers.CleanEmailVerificationCodes","type":"module"},{"doc":"","ref":"Plausible.Workers.CleanInvitations.html","title":"Plausible.Workers.CleanInvitations","type":"module"},{"doc":"Periodic worker that expires domain change transition period.\nOld domains are frozen for a given time, so users can still access them\nbefore redeploying their scripts and integrations.","ref":"Plausible.Workers.ExpireDomainChangeTransitions.html","title":"Plausible.Workers.ExpireDomainChangeTransitions","type":"module"},{"doc":"","ref":"Plausible.Workers.ImportGoogleAnalytics.html","title":"Plausible.Workers.ImportGoogleAnalytics","type":"module"},{"doc":"","ref":"Plausible.Workers.ImportGoogleAnalytics.html#import_failed/1","title":"Plausible.Workers.ImportGoogleAnalytics.import_failed/1","type":"function"},{"doc":"","ref":"Plausible.Workers.LockSites.html","title":"Plausible.Workers.LockSites","type":"module"},{"doc":"","ref":"Plausible.Workers.NotifyAnnualRenewal.html","title":"Plausible.Workers.NotifyAnnualRenewal","type":"module"},{"doc":"Sends a notification at most 7 days and at least 1 day before the renewal of an annual subscription","ref":"Plausible.Workers.NotifyAnnualRenewal.html#perform/1","title":"Plausible.Workers.NotifyAnnualRenewal.perform/1","type":"function"},{"doc":"","ref":"Plausible.Workers.RotateSalts.html","title":"Plausible.Workers.RotateSalts","type":"module"},{"doc":"","ref":"Plausible.Workers.ScheduleEmailReports.html","title":"Plausible.Workers.ScheduleEmailReports","type":"module"},{"doc":"","ref":"Plausible.Workers.ScheduleEmailReports.html#first_of_month_9am/1","title":"Plausible.Workers.ScheduleEmailReports.first_of_month_9am/1","type":"function"},{"doc":"","ref":"Plausible.Workers.ScheduleEmailReports.html#monday_9am/1","title":"Plausible.Workers.ScheduleEmailReports.monday_9am/1","type":"function"},{"doc":"Email reports should be sent on Monday at 9am according to the timezone\nof a site. This job runs every day at midnight to ensure that all sites\nhave a scheduled job for email reports.","ref":"Plausible.Workers.ScheduleEmailReports.html#perform/1","title":"Plausible.Workers.ScheduleEmailReports.perform/1","type":"function"},{"doc":"","ref":"Plausible.Workers.SendCheckStatsEmails.html","title":"Plausible.Workers.SendCheckStatsEmails","type":"module"},{"doc":"","ref":"Plausible.Workers.SendEmailReport.html","title":"Plausible.Workers.SendEmailReport","type":"module"},{"doc":"","ref":"Plausible.Workers.SendSiteSetupEmails.html","title":"Plausible.Workers.SendSiteSetupEmails","type":"module"},{"doc":"","ref":"Plausible.Workers.SendTrialNotifications.html","title":"Plausible.Workers.SendTrialNotifications","type":"module"},{"doc":"","ref":"Plausible.Workers.SpikeNotifier.html","title":"Plausible.Workers.SpikeNotifier","type":"module"},{"doc":"","ref":"PlausibleWeb.html","title":"PlausibleWeb","type":"module"},{"doc":"When used, dispatch to the appropriate controller/view/etc.","ref":"PlausibleWeb.html#__using__/1","title":"PlausibleWeb.__using__/1","type":"macro"},{"doc":"","ref":"PlausibleWeb.html#channel/0","title":"PlausibleWeb.channel/0","type":"function"},{"doc":"","ref":"PlausibleWeb.html#controller/0","title":"PlausibleWeb.controller/0","type":"function"},{"doc":"","ref":"PlausibleWeb.html#router/0","title":"PlausibleWeb.router/0","type":"function"},{"doc":"","ref":"PlausibleWeb.html#view/0","title":"PlausibleWeb.view/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html","title":"PlausibleWeb.Api.ExternalController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#error/2","title":"PlausibleWeb.Api.ExternalController.error/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#event/2","title":"PlausibleWeb.Api.ExternalController.event/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#health/2","title":"PlausibleWeb.Api.ExternalController.health/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalController.html#info/2","title":"PlausibleWeb.Api.ExternalController.info/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html","title":"PlausibleWeb.Api.ExternalSitesController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#create_site/2","title":"PlausibleWeb.Api.ExternalSitesController.create_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#delete_goal/2","title":"PlausibleWeb.Api.ExternalSitesController.delete_goal/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#delete_site/2","title":"PlausibleWeb.Api.ExternalSitesController.delete_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#find_or_create_goal/2","title":"PlausibleWeb.Api.ExternalSitesController.find_or_create_goal/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#find_or_create_shared_link/2","title":"PlausibleWeb.Api.ExternalSitesController.find_or_create_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#get_site/2","title":"PlausibleWeb.Api.ExternalSitesController.get_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalSitesController.html#update_site/2","title":"PlausibleWeb.Api.ExternalSitesController.update_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html","title":"PlausibleWeb.Api.ExternalStatsController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#aggregate/2","title":"PlausibleWeb.Api.ExternalStatsController.aggregate/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#breakdown/2","title":"PlausibleWeb.Api.ExternalStatsController.breakdown/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#realtime_visitors/2","title":"PlausibleWeb.Api.ExternalStatsController.realtime_visitors/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.ExternalStatsController.html#timeseries/2","title":"PlausibleWeb.Api.ExternalStatsController.timeseries/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html","title":"PlausibleWeb.Api.Helpers","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#bad_request/2","title":"PlausibleWeb.Api.Helpers.bad_request/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#not_found/2","title":"PlausibleWeb.Api.Helpers.not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#payment_required/2","title":"PlausibleWeb.Api.Helpers.payment_required/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#too_many_requests/2","title":"PlausibleWeb.Api.Helpers.too_many_requests/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.Helpers.html#unauthorized/2","title":"PlausibleWeb.Api.Helpers.unauthorized/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html","title":"PlausibleWeb.Api.InternalController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html#disable_feature/2","title":"PlausibleWeb.Api.InternalController.disable_feature/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html#domain_status/2","title":"PlausibleWeb.Api.InternalController.domain_status/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.InternalController.html#sites/2","title":"PlausibleWeb.Api.InternalController.sites/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html","title":"PlausibleWeb.Api.PaddleController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html#verified_signature?/1","title":"PlausibleWeb.Api.PaddleController.verified_signature?/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html#verify_signature/2","title":"PlausibleWeb.Api.PaddleController.verify_signature/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.PaddleController.html#webhook/2","title":"PlausibleWeb.Api.PaddleController.webhook/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html","title":"PlausibleWeb.Api.StatsController","type":"module"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#all_custom_prop_values/2","title":"PlausibleWeb.Api.StatsController.all_custom_prop_values/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#browser_versions/2","title":"PlausibleWeb.Api.StatsController.browser_versions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#browsers/2","title":"PlausibleWeb.Api.StatsController.browsers/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#cities/2","title":"PlausibleWeb.Api.StatsController.cities/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#conversions/2","title":"PlausibleWeb.Api.StatsController.conversions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#countries/2","title":"PlausibleWeb.Api.StatsController.countries/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#current_visitors/2","title":"PlausibleWeb.Api.StatsController.current_visitors/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#custom_prop_values/2","title":"PlausibleWeb.Api.StatsController.custom_prop_values/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#entry_pages/2","title":"PlausibleWeb.Api.StatsController.entry_pages/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#exit_pages/2","title":"PlausibleWeb.Api.StatsController.exit_pages/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#filter_suggestions/2","title":"PlausibleWeb.Api.StatsController.filter_suggestions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#funnel/2","title":"PlausibleWeb.Api.StatsController.funnel/2","type":"function"},{"doc":"Returns a time-series based on given parameters.","ref":"PlausibleWeb.Api.StatsController.html#main_graph/2","title":"PlausibleWeb.Api.StatsController.main_graph/2","type":"function"},{"doc":"This API accepts the following parameters:\n\n * `period` - x-axis of the graph, e.g. `12mo`, `day`, `custom`.\n\n * `metric` - y-axis of the graph, e.g. `visits`, `visitors`, `pageviews`.\n See the Stats API [\"Metrics\"](https://plausible.io/docs/stats-api#metrics)\n section for more details. Defaults to `visitors`.\n\n * `interval` - granularity of the time-series data. You can think of it as\n a `GROUP BY` clause. Possible values are `minute`, `hour`, `date`, `week`,\n and `month`. The default depends on the `period` parameter. Check\n `Plausible.Query.from/2` for each default.\n\n * `filters` - optional filters to drill down data. See the Stats API\n [\"Filtering\"](https://plausible.io/docs/stats-api#filtering) section for\n more details.\n\n * `with_imported` - boolean indicating whether to include Google Analytics\n imported data or not. Defaults to `false`.\n\nFull example:\n```elixir\n%{\n \"from\" => \"2021-09-06\",\n \"interval\" => \"month\",\n \"metric\" => \"visitors\",\n \"period\" => \"custom\",\n \"to\" => \"2021-12-13\"\n}\n```","ref":"PlausibleWeb.Api.StatsController.html#main_graph/2-parameters","title":"Parameters - PlausibleWeb.Api.StatsController.main_graph/2","type":"function"},{"doc":"Returns a map with the following keys:\n\n * `plot` - list of values for the requested metric representing the y-axis\n of the graph.\n\n * `labels` - list of date times representing the x-axis of the graph.\n\n * `present_index` - index of the element representing the current date in\n `labels` and `plot` lists.\n\n * `interval` - the interval used for querying.\n\n * `with_imported` - boolean indicating whether the Google Analytics data\n was queried or not.\n\n * `imported_source` - the source of the imported data, when applicable.\n Currently only Google Analytics is supported.\n\n * `full_intervals` - map of dates indicating whether the interval has been\n cut off by the requested date range or not. For example, if looking at a\n month week-by-week, some weeks may be cut off by the month boundaries.\n It's useful to adjust the graph display slightly in case the interval is\n not 'full' so that the user understands why the numbers might be lower for\n those partial periods.\n\nFull example:\n```elixir\n%{\n \"full_intervals\" => %{\n \"2021-09-01\" => false,\n \"2021-10-01\" => true,\n \"2021-11-01\" => true,\n \"2021-12-01\" => false\n },\n \"imported_source\" => nil,\n \"interval\" => \"month\",\n \"labels\" => [\"2021-09-01\", \"2021-10-01\", \"2021-11-01\", \"2021-12-01\"],\n \"plot\" => [0, 0, 0, 0],\n \"present_index\" => nil,\n \"with_imported\" => false\n}\n```","ref":"PlausibleWeb.Api.StatsController.html#main_graph/2-response","title":"Response - PlausibleWeb.Api.StatsController.main_graph/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#operating_system_versions/2","title":"PlausibleWeb.Api.StatsController.operating_system_versions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#operating_systems/2","title":"PlausibleWeb.Api.StatsController.operating_systems/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#pages/2","title":"PlausibleWeb.Api.StatsController.pages/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#referrer_drilldown/2","title":"PlausibleWeb.Api.StatsController.referrer_drilldown/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#referrers/2","title":"PlausibleWeb.Api.StatsController.referrers/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#regions/2","title":"PlausibleWeb.Api.StatsController.regions/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#screen_sizes/2","title":"PlausibleWeb.Api.StatsController.screen_sizes/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#sources/2","title":"PlausibleWeb.Api.StatsController.sources/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#top_stats/2","title":"PlausibleWeb.Api.StatsController.top_stats/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_campaigns/2","title":"PlausibleWeb.Api.StatsController.utm_campaigns/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_contents/2","title":"PlausibleWeb.Api.StatsController.utm_contents/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_mediums/2","title":"PlausibleWeb.Api.StatsController.utm_mediums/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_sources/2","title":"PlausibleWeb.Api.StatsController.utm_sources/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Api.StatsController.html#utm_terms/2","title":"PlausibleWeb.Api.StatsController.utm_terms/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html","title":"PlausibleWeb.AuthController","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthController.html#activate/2","title":"PlausibleWeb.AuthController.activate/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#activate_form/2","title":"PlausibleWeb.AuthController.activate_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#create_api_key/2","title":"PlausibleWeb.AuthController.create_api_key/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#delete_api_key/2","title":"PlausibleWeb.AuthController.delete_api_key/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#delete_me/2","title":"PlausibleWeb.AuthController.delete_me/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#google_auth_callback/2","title":"PlausibleWeb.AuthController.google_auth_callback/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#login/2","title":"PlausibleWeb.AuthController.login/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#login_form/2","title":"PlausibleWeb.AuthController.login_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#logout/2","title":"PlausibleWeb.AuthController.logout/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#new_api_key/2","title":"PlausibleWeb.AuthController.new_api_key/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset/2","title":"PlausibleWeb.AuthController.password_reset/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset_form/2","title":"PlausibleWeb.AuthController.password_reset_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset_request/2","title":"PlausibleWeb.AuthController.password_reset_request/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#password_reset_request_form/2","title":"PlausibleWeb.AuthController.password_reset_request_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#register/2","title":"PlausibleWeb.AuthController.register/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#register_form/2","title":"PlausibleWeb.AuthController.register_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#register_from_invitation/2","title":"PlausibleWeb.AuthController.register_from_invitation/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#request_activation_code/2","title":"PlausibleWeb.AuthController.request_activation_code/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#save_settings/2","title":"PlausibleWeb.AuthController.save_settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthController.html#user_settings/2","title":"PlausibleWeb.AuthController.user_settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthPlug.html","title":"PlausibleWeb.AuthPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthPlug.html#call/2","title":"PlausibleWeb.AuthPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthPlug.html#init/1","title":"PlausibleWeb.AuthPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html","title":"PlausibleWeb.AuthView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.AuthView.html#__resource__/0","title":"PlausibleWeb.AuthView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#activate.html/1","title":"PlausibleWeb.AuthView.activate.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#base_domain/0","title":"PlausibleWeb.AuthView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#delimit_integer/1","title":"PlausibleWeb.AuthView.delimit_integer/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#format_invoices/1","title":"PlausibleWeb.AuthView.format_invoices/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#login_form.html/1","title":"PlausibleWeb.AuthView.login_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#new_api_key.html/1","title":"PlausibleWeb.AuthView.new_api_key.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#password_reset_form.html/1","title":"PlausibleWeb.AuthView.password_reset_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#password_reset_request_form.html/1","title":"PlausibleWeb.AuthView.password_reset_request_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#password_reset_request_success.html/1","title":"PlausibleWeb.AuthView.password_reset_request_success.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#plausible_url/0","title":"PlausibleWeb.AuthView.plausible_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#present_subscription_status/1","title":"PlausibleWeb.AuthView.present_subscription_status/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#register_success.html/1","title":"PlausibleWeb.AuthView.register_success.html/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.AuthView.html#render/2","title":"PlausibleWeb.AuthView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#subscription_colors/1","title":"PlausibleWeb.AuthView.subscription_colors/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#subscription_interval/1","title":"PlausibleWeb.AuthView.subscription_interval/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#subscription_quota/1","title":"PlausibleWeb.AuthView.subscription_quota/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.AuthView.html#template_not_found/2","title":"PlausibleWeb.AuthView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthView.html#user_settings.html/1","title":"PlausibleWeb.AuthView.user_settings.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSiteAccess.html","title":"PlausibleWeb.AuthorizeSiteAccess","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthorizeSiteAccess.html#call/2","title":"PlausibleWeb.AuthorizeSiteAccess.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSiteAccess.html#init/1","title":"PlausibleWeb.AuthorizeSiteAccess.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSitesApiPlug.html","title":"PlausibleWeb.AuthorizeSitesApiPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthorizeSitesApiPlug.html#call/2","title":"PlausibleWeb.AuthorizeSitesApiPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeSitesApiPlug.html#init/1","title":"PlausibleWeb.AuthorizeSitesApiPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeStatsApiPlug.html","title":"PlausibleWeb.AuthorizeStatsApiPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.AuthorizeStatsApiPlug.html#call/2","title":"PlausibleWeb.AuthorizeStatsApiPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.AuthorizeStatsApiPlug.html#init/1","title":"PlausibleWeb.AuthorizeStatsApiPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html","title":"PlausibleWeb.BillingController","type":"module"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_enterprise_plan/2","title":"PlausibleWeb.BillingController.change_enterprise_plan/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_plan/2","title":"PlausibleWeb.BillingController.change_plan/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_plan_form/2","title":"PlausibleWeb.BillingController.change_plan_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#change_plan_preview/2","title":"PlausibleWeb.BillingController.change_plan_preview/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#ping_subscription/2","title":"PlausibleWeb.BillingController.ping_subscription/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#preview_susbcription/2","title":"PlausibleWeb.BillingController.preview_susbcription/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#upgrade/2","title":"PlausibleWeb.BillingController.upgrade/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#upgrade_enterprise_plan/2","title":"PlausibleWeb.BillingController.upgrade_enterprise_plan/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingController.html#upgrade_success/2","title":"PlausibleWeb.BillingController.upgrade_success/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html","title":"PlausibleWeb.BillingView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.BillingView.html#__resource__/0","title":"PlausibleWeb.BillingView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#base_domain/0","title":"PlausibleWeb.BillingView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_enterprise_plan.html/1","title":"PlausibleWeb.BillingView.change_enterprise_plan.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_enterprise_plan_contact_us.html/1","title":"PlausibleWeb.BillingView.change_enterprise_plan_contact_us.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_plan.html/1","title":"PlausibleWeb.BillingView.change_plan.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#change_plan_preview.html/1","title":"PlausibleWeb.BillingView.change_plan_preview.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#plausible_url/0","title":"PlausibleWeb.BillingView.plausible_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#present_currency/1","title":"PlausibleWeb.BillingView.present_currency/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#present_date/1","title":"PlausibleWeb.BillingView.present_date/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#reccommended_plan/1","title":"PlausibleWeb.BillingView.reccommended_plan/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.BillingView.html#render/2","title":"PlausibleWeb.BillingView.render/2","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.BillingView.html#template_not_found/2","title":"PlausibleWeb.BillingView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#upgrade.html/1","title":"PlausibleWeb.BillingView.upgrade.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#upgrade_success.html/1","title":"PlausibleWeb.BillingView.upgrade_success.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.BillingView.html#upgrade_to_plan.html/1","title":"PlausibleWeb.BillingView.upgrade_to_plan.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.CRMAuthPlug.html","title":"PlausibleWeb.CRMAuthPlug","type":"module"},{"doc":"","ref":"PlausibleWeb.CRMAuthPlug.html#call/2","title":"PlausibleWeb.CRMAuthPlug.call/2","type":"function"},{"doc":"","ref":"PlausibleWeb.CRMAuthPlug.html#init/1","title":"PlausibleWeb.CRMAuthPlug.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Captcha.html","title":"PlausibleWeb.Captcha","type":"module"},{"doc":"","ref":"PlausibleWeb.Captcha.html#enabled?/0","title":"PlausibleWeb.Captcha.enabled?/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Captcha.html#sitekey/0","title":"PlausibleWeb.Captcha.sitekey/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Captcha.html#verify/1","title":"PlausibleWeb.Captcha.verify/1","type":"function"},{"doc":"Generic reusable components","ref":"PlausibleWeb.Components.Generic.html","title":"PlausibleWeb.Components.Generic","type":"module"},{"doc":"","ref":"PlausibleWeb.Components.Generic.html#notice/1","title":"PlausibleWeb.Components.Generic.notice/1","type":"function"},{"doc":"* `title` (`:string`) - Defaults to `\"Notice\"`.\n* `class` (`:string`) - Defaults to `\"\"`.","ref":"PlausibleWeb.Components.Generic.html#notice/1-attributes","title":"Attributes - PlausibleWeb.Components.Generic.notice/1","type":"function"},{"doc":"* `inner_block`","ref":"PlausibleWeb.Components.Generic.html#notice/1-slots","title":"Slots - PlausibleWeb.Components.Generic.notice/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Generic.html#styled_link/1","title":"PlausibleWeb.Components.Generic.styled_link/1","type":"function"},{"doc":"* `href` (`:string`) (required)\n* `new_tab` (`:boolean`)\n* `class` (`:string`) - Defaults to `\"\"`.","ref":"PlausibleWeb.Components.Generic.html#styled_link/1-attributes","title":"Attributes - PlausibleWeb.Components.Generic.styled_link/1","type":"function"},{"doc":"* `inner_block`","ref":"PlausibleWeb.Components.Generic.html#styled_link/1-slots","title":"Slots - PlausibleWeb.Components.Generic.styled_link/1","type":"function"},{"doc":"Phoenix Component for rendering a user-facing feature toggle\ncapable of flipping booleans in `Plausible.Site` via the `toggle_feature` controller action.","ref":"PlausibleWeb.Components.Site.Feature.html","title":"PlausibleWeb.Components.Site.Feature","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.Components.Site.Feature.html#__resource__/0","title":"PlausibleWeb.Components.Site.Feature.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#button_active/1","title":"PlausibleWeb.Components.Site.Feature.button_active/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#button_inactive/1","title":"PlausibleWeb.Components.Site.Feature.button_inactive/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.Components.Site.Feature.html#render/2","title":"PlausibleWeb.Components.Site.Feature.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#target/4","title":"PlausibleWeb.Components.Site.Feature.target/4","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.Components.Site.Feature.html#template_not_found/2","title":"PlausibleWeb.Components.Site.Feature.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Components.Site.Feature.html#toggle/1","title":"PlausibleWeb.Components.Site.Feature.toggle/1","type":"function"},{"doc":"* `site` (`Plausible.Site`) (required)\n* `setting` (`:atom`) (required)\n* `label` (`:string`) (required)\n* `conn` (`Plug.Conn`) (required)","ref":"PlausibleWeb.Components.Site.Feature.html#toggle/1-attributes","title":"Attributes - PlausibleWeb.Components.Site.Feature.toggle/1","type":"function"},{"doc":"* `inner_block`","ref":"PlausibleWeb.Components.Site.Feature.html#toggle/1-slots","title":"Slots - PlausibleWeb.Components.Site.Feature.toggle/1","type":"function"},{"doc":"This module defines the test case to be used by\ntests that require setting up a connection.\n\nSuch tests rely on `Phoenix.ConnTest` and also\nimport other functionality to make it easier\nto build common data structures and query the data layer.\n\nFinally, if the test case interacts with the database,\nit cannot be async. For this reason, every test runs\ninside a transaction which is reset at the beginning\nof the test unless the test case is marked as async.","ref":"PlausibleWeb.ConnCase.html","title":"PlausibleWeb.ConnCase","type":"module"},{"doc":"","ref":"PlausibleWeb.ControllerHelpers.html","title":"PlausibleWeb.ControllerHelpers","type":"module"},{"doc":"","ref":"PlausibleWeb.ControllerHelpers.html#render_error/2","title":"PlausibleWeb.ControllerHelpers.render_error/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ControllerHelpers.html#render_error/3","title":"PlausibleWeb.ControllerHelpers.render_error/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html","title":"PlausibleWeb.Email","type":"module"},{"doc":"","ref":"PlausibleWeb.Email.html#activation_email/2","title":"PlausibleWeb.Email.activation_email/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#base_email/0","title":"PlausibleWeb.Email.base_email/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#base_email/1","title":"PlausibleWeb.Email.base_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#cancellation_email/1","title":"PlausibleWeb.Email.cancellation_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#check_stats_email/1","title":"PlausibleWeb.Email.check_stats_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#create_site_email/1","title":"PlausibleWeb.Email.create_site_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#dashboard_locked/4","title":"PlausibleWeb.Email.dashboard_locked/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#enterprise_over_limit_internal_email/5","title":"PlausibleWeb.Email.enterprise_over_limit_internal_email/5","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#error_report/3","title":"PlausibleWeb.Email.error_report/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#existing_user_invitation/1","title":"PlausibleWeb.Email.existing_user_invitation/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#import_failure/2","title":"PlausibleWeb.Email.import_failure/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#import_success/2","title":"PlausibleWeb.Email.import_success/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#invitation_accepted/1","title":"PlausibleWeb.Email.invitation_accepted/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#invitation_rejected/1","title":"PlausibleWeb.Email.invitation_rejected/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#mailer_email_from/0","title":"PlausibleWeb.Email.mailer_email_from/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#new_user_invitation/1","title":"PlausibleWeb.Email.new_user_invitation/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#over_limit_email/4","title":"PlausibleWeb.Email.over_limit_email/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#ownership_transfer_accepted/1","title":"PlausibleWeb.Email.ownership_transfer_accepted/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#ownership_transfer_rejected/1","title":"PlausibleWeb.Email.ownership_transfer_rejected/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#ownership_transfer_request/2","title":"PlausibleWeb.Email.ownership_transfer_request/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#password_reset_email/2","title":"PlausibleWeb.Email.password_reset_email/2","type":"function"},{"doc":"Unlike the default 'base' emails, priority emails cannot be unsubscribed from. This is achieved\n by sending them through a dedicated 'priority' message stream in Postmark.","ref":"PlausibleWeb.Email.html#priority_email/0","title":"PlausibleWeb.Email.priority_email/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#priority_email/1","title":"PlausibleWeb.Email.priority_email/1","type":"function"},{"doc":"Render an Phoenix template and set the body on the email.\n\nPass an atom as the template name (:welcome_email) to render HTML *and* plain\ntext emails. Use a string if you only want to render one type, e.g.\n\"welcome_email.text\" or \"welcome_email.html\". Scroll to the top for more examples.","ref":"PlausibleWeb.Email.html#render/3","title":"PlausibleWeb.Email.render/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#site_member_removed/1","title":"PlausibleWeb.Email.site_member_removed/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#site_setup_help/2","title":"PlausibleWeb.Email.site_setup_help/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#site_setup_success/2","title":"PlausibleWeb.Email.site_setup_success/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#spike_notification/5","title":"PlausibleWeb.Email.spike_notification/5","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#trial_one_week_reminder/1","title":"PlausibleWeb.Email.trial_one_week_reminder/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#trial_over_email/1","title":"PlausibleWeb.Email.trial_over_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#trial_upgrade_email/3","title":"PlausibleWeb.Email.trial_upgrade_email/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#weekly_report/3","title":"PlausibleWeb.Email.weekly_report/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#welcome_email/1","title":"PlausibleWeb.Email.welcome_email/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#yearly_expiration_notification/1","title":"PlausibleWeb.Email.yearly_expiration_notification/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Email.html#yearly_renewal_notification/1","title":"PlausibleWeb.Email.yearly_renewal_notification/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html","title":"PlausibleWeb.EmailView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.EmailView.html#__resource__/0","title":"PlausibleWeb.EmailView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#activation_email.html/1","title":"PlausibleWeb.EmailView.activation_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#base_domain/0","title":"PlausibleWeb.EmailView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#cancellation_email.html/1","title":"PlausibleWeb.EmailView.cancellation_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#check_stats_email.html/1","title":"PlausibleWeb.EmailView.check_stats_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#create_site_email.html/1","title":"PlausibleWeb.EmailView.create_site_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#dashboard_locked.html/1","title":"PlausibleWeb.EmailView.dashboard_locked.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#date_format/1","title":"PlausibleWeb.EmailView.date_format/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#enterprise_over_limit_internal.html/1","title":"PlausibleWeb.EmailView.enterprise_over_limit_internal.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#error_report_email.html/1","title":"PlausibleWeb.EmailView.error_report_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#existing_user_invitation.html/1","title":"PlausibleWeb.EmailView.existing_user_invitation.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#google_analytics_import.html/1","title":"PlausibleWeb.EmailView.google_analytics_import.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#greet_recipient/1","title":"PlausibleWeb.EmailView.greet_recipient/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#invitation_accepted.html/1","title":"PlausibleWeb.EmailView.invitation_accepted.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#invitation_rejected.html/1","title":"PlausibleWeb.EmailView.invitation_rejected.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#new_user_invitation.html/1","title":"PlausibleWeb.EmailView.new_user_invitation.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#over_limit.html/1","title":"PlausibleWeb.EmailView.over_limit.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#ownership_transfer_accepted.html/1","title":"PlausibleWeb.EmailView.ownership_transfer_accepted.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#ownership_transfer_rejected.html/1","title":"PlausibleWeb.EmailView.ownership_transfer_rejected.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#ownership_transfer_request.html/1","title":"PlausibleWeb.EmailView.ownership_transfer_request.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#password_reset_email.html/1","title":"PlausibleWeb.EmailView.password_reset_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#plausible_url/0","title":"PlausibleWeb.EmailView.plausible_url/0","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.EmailView.html#render/2","title":"PlausibleWeb.EmailView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#sentry_link/2","title":"PlausibleWeb.EmailView.sentry_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#site_member_removed.html/1","title":"PlausibleWeb.EmailView.site_member_removed.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#site_setup_help_email.html/1","title":"PlausibleWeb.EmailView.site_setup_help_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#site_setup_success_email.html/1","title":"PlausibleWeb.EmailView.site_setup_success_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#spike_notification.html/1","title":"PlausibleWeb.EmailView.spike_notification.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.EmailView.html#template_not_found/2","title":"PlausibleWeb.EmailView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#trial_one_week_reminder.html/1","title":"PlausibleWeb.EmailView.trial_one_week_reminder.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#trial_over_email.html/1","title":"PlausibleWeb.EmailView.trial_over_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#trial_upgrade_email.html/1","title":"PlausibleWeb.EmailView.trial_upgrade_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#welcome_email.html/1","title":"PlausibleWeb.EmailView.welcome_email.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#yearly_expiration_notification.html/1","title":"PlausibleWeb.EmailView.yearly_expiration_notification.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.EmailView.html#yearly_renewal_notification.html/1","title":"PlausibleWeb.EmailView.yearly_renewal_notification.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html","title":"PlausibleWeb.Endpoint","type":"module"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast/3","title":"PlausibleWeb.Endpoint.broadcast/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast!/3","title":"PlausibleWeb.Endpoint.broadcast!/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast_from/4","title":"PlausibleWeb.Endpoint.broadcast_from/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#broadcast_from!/4","title":"PlausibleWeb.Endpoint.broadcast_from!/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#call/2","title":"PlausibleWeb.Endpoint.call/2","type":"function"},{"doc":"Returns the child specification to start the endpoint\nunder a supervision tree.","ref":"PlausibleWeb.Endpoint.html#child_spec/1","title":"PlausibleWeb.Endpoint.child_spec/1","type":"function"},{"doc":"Returns the endpoint configuration for `key`\n\nReturns `default` if the key does not exist.","ref":"PlausibleWeb.Endpoint.html#config/2","title":"PlausibleWeb.Endpoint.config/2","type":"function"},{"doc":"Reloads the configuration given the application environment changes.","ref":"PlausibleWeb.Endpoint.html#config_change/2","title":"PlausibleWeb.Endpoint.config_change/2","type":"function"},{"doc":"Returns the host for the given endpoint.","ref":"PlausibleWeb.Endpoint.html#host/0","title":"PlausibleWeb.Endpoint.host/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#init/1","title":"PlausibleWeb.Endpoint.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#local_broadcast/3","title":"PlausibleWeb.Endpoint.local_broadcast/3","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#local_broadcast_from/4","title":"PlausibleWeb.Endpoint.local_broadcast_from/4","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#patch_session_opts/0","title":"PlausibleWeb.Endpoint.patch_session_opts/0","type":"function"},{"doc":"Generates the path information when routing to this endpoint.","ref":"PlausibleWeb.Endpoint.html#path/1","title":"PlausibleWeb.Endpoint.path/1","type":"function"},{"doc":"Generates the script name.","ref":"PlausibleWeb.Endpoint.html#script_name/0","title":"PlausibleWeb.Endpoint.script_name/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#secure_cookie?/0","title":"PlausibleWeb.Endpoint.secure_cookie?/0","type":"function"},{"doc":"Starts the endpoint supervision tree.\n\nAll other options are merged into the endpoint configuration.","ref":"PlausibleWeb.Endpoint.html#start_link/1","title":"PlausibleWeb.Endpoint.start_link/1","type":"function"},{"doc":"Generates a base64-encoded cryptographic hash (sha512) to a static file\nin `priv/static`. Meant to be used for Subresource Integrity with CDNs.","ref":"PlausibleWeb.Endpoint.html#static_integrity/1","title":"PlausibleWeb.Endpoint.static_integrity/1","type":"function"},{"doc":"Returns a two item tuple with the first item being the `static_path`\nand the second item being the `static_integrity`.","ref":"PlausibleWeb.Endpoint.html#static_lookup/1","title":"PlausibleWeb.Endpoint.static_lookup/1","type":"function"},{"doc":"Generates a route to a static file in `priv/static`.","ref":"PlausibleWeb.Endpoint.html#static_path/1","title":"PlausibleWeb.Endpoint.static_path/1","type":"function"},{"doc":"Generates the static URL without any path information.\n\nIt uses the configuration under `:static_url` to generate\nsuch. It falls back to `:url` if `:static_url` is not set.","ref":"PlausibleWeb.Endpoint.html#static_url/0","title":"PlausibleWeb.Endpoint.static_url/0","type":"function"},{"doc":"Generates the endpoint base URL but as a `URI` struct.\n\nIt uses the configuration under `:url` to generate such.\nUseful for manipulating the URL data and passing it to\nURL helpers.","ref":"PlausibleWeb.Endpoint.html#struct_url/0","title":"PlausibleWeb.Endpoint.struct_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#subscribe/2","title":"PlausibleWeb.Endpoint.subscribe/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#unsubscribe/1","title":"PlausibleWeb.Endpoint.unsubscribe/1","type":"function"},{"doc":"Generates the endpoint base URL without any path information.\n\nIt uses the configuration under `:url` to generate such.","ref":"PlausibleWeb.Endpoint.html#url/0","title":"PlausibleWeb.Endpoint.url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Endpoint.html#websocket_url/0","title":"PlausibleWeb.Endpoint.websocket_url/0","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorHelpers.html","title":"PlausibleWeb.ErrorHelpers","type":"module"},{"doc":"","ref":"PlausibleWeb.ErrorHelpers.html#error_tag/2","title":"PlausibleWeb.ErrorHelpers.error_tag/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorHelpers.html#translate_error/1","title":"PlausibleWeb.ErrorHelpers.translate_error/1","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorReportController.html","title":"PlausibleWeb.ErrorReportController","type":"module"},{"doc":"","ref":"PlausibleWeb.ErrorReportController.html#submit_error_report/2","title":"PlausibleWeb.ErrorReportController.submit_error_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html","title":"PlausibleWeb.ErrorView","type":"module"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#404_error.html/1","title":"PlausibleWeb.ErrorView.404_error.html/1","type":"function"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.ErrorView.html#__resource__/0","title":"PlausibleWeb.ErrorView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#generic_error.html/1","title":"PlausibleWeb.ErrorView.generic_error.html/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.ErrorView.html#render/2","title":"PlausibleWeb.ErrorView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#server_error.html/1","title":"PlausibleWeb.ErrorView.server_error.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.ErrorView.html#server_error_report_thanks.html/1","title":"PlausibleWeb.ErrorView.server_error_report_thanks.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.ErrorView.html#template_not_found/2","title":"PlausibleWeb.ErrorView.template_not_found/2","type":"function"},{"doc":"A Plug that fetches favicon images from DuckDuckGo and returns them\nto the Plausible frontend.\n\nThe proxying is there so we can reduce the number of third-party domains that\nthe browser clients need to connect to. Our goal is to have 0 third-party domain\nconnections on the website for privacy reasons.\n\nThis module also maps between categorized sources and their respective URLs for favicons.\nWhat does that mean exactly? During ingestion we use `PlausibleWeb.RefInspector.parse/1` to\ncategorize our referrer sources like so:\n\ngoogle.com -> Google\ngoogle.co.uk -> Google\ngoogle.com.au -> Google\n\nSo when we show Google as a source in the dashboard, the request to this plug will come as:\nhttps://plausible/io/favicon/sources/Google\n\nNow, when we want to show a favicon for Google, we need to convert Google -> google.com or\nsome other hostname owned by Google:\nhttps://icons.duckduckgo.com/ip3/google.com.ico\n\nThe mapping from source category -> source hostname is stored in \"priv/referer_favicon_domains.json\" and\nmanaged by `Mix.Tasks.GenerateReferrerFavicons.run/1`","ref":"PlausibleWeb.Favicon.html","title":"PlausibleWeb.Favicon","type":"module"},{"doc":"Proxies HTTP request to DuckDuckGo favicon service. Swallows hop-by-hop HTTP\nheaders that should not be forwarded as defined in [RFC 2616](https://www.rfc-editor.org/rfc/rfc2616#section-13.5.1)","ref":"PlausibleWeb.Favicon.html#call/2","title":"PlausibleWeb.Favicon.call/2","type":"function"},{"doc":"Cases where we show a placeholder icon instead:\n\n1. In case of network error to DuckDuckGo\n2. In case of non-2xx status code from DuckDuckGo\n3. In case of broken image response body from DuckDuckGo\n\nI'm not sure why DDG sometimes returns a broken PNG image in their response\nbut we filter that out. When the icon request fails, we show a placeholder\nfavicon instead. The placeholder is an emoji from\n[https://favicon.io/emoji-favicons/](https://favicon.io/emoji-favicons/)\n\nDuckDuckGo favicon service has some issues with [SVG favicons](https://css-tricks.com/svg-favicons-and-all-the-fun-things-we-can-do-with-them/).\nFor some reason, they return them with `content-type=image/x-icon` whereas SVG\nicons should be returned with `content-type=image/svg+xml`. This Plug detects\nwhen the response body starts with ` People. It's important to enforce permissions in this controller.\n\n Owner - Can manage users, can trigger a 'transfer ownership' request\n Admin - Can manage users\n Viewer - Can not access user management settings\n Anyone - Can accept invitations\n\n Everything else should be explicitly disallowed.","ref":"PlausibleWeb.Site.MembershipController.html","title":"PlausibleWeb.Site.MembershipController","type":"module"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#invite_member/2","title":"PlausibleWeb.Site.MembershipController.invite_member/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#invite_member_form/2","title":"PlausibleWeb.Site.MembershipController.invite_member_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#remove_member/2","title":"PlausibleWeb.Site.MembershipController.remove_member/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#transfer_ownership/2","title":"PlausibleWeb.Site.MembershipController.transfer_ownership/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipController.html#transfer_ownership_form/2","title":"PlausibleWeb.Site.MembershipController.transfer_ownership_form/2","type":"function"},{"doc":"Updates the role of a user. The user being updated could be the same or different from the user taking\n the action. When updating the role, it's important to enforce permissions:\n\n Owner - Can update anyone's role except for themselves. If they want to change their own role, they have to use the 'transfer ownership' feature.\n Admin - Can update anyone's role except for owners. Can downgrade their own access to 'viewer'. Can promote a viewer to admin.","ref":"PlausibleWeb.Site.MembershipController.html#update_role/2","title":"PlausibleWeb.Site.MembershipController.update_role/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipView.html","title":"PlausibleWeb.Site.MembershipView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.Site.MembershipView.html#__resource__/0","title":"PlausibleWeb.Site.MembershipView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipView.html#invite_member_form.html/1","title":"PlausibleWeb.Site.MembershipView.invite_member_form.html/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.Site.MembershipView.html#render/2","title":"PlausibleWeb.Site.MembershipView.render/2","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.Site.MembershipView.html#template_not_found/2","title":"PlausibleWeb.Site.MembershipView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.Site.MembershipView.html#transfer_ownership_form.html/1","title":"PlausibleWeb.Site.MembershipView.transfer_ownership_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html","title":"PlausibleWeb.SiteController","type":"module"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_monthly_report_recipient/2","title":"PlausibleWeb.SiteController.add_monthly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_snippet/2","title":"PlausibleWeb.SiteController.add_snippet/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_snippet_after_domain_change/2","title":"PlausibleWeb.SiteController.add_snippet_after_domain_change/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_spike_notification_recipient/2","title":"PlausibleWeb.SiteController.add_spike_notification_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#add_weekly_report_recipient/2","title":"PlausibleWeb.SiteController.add_weekly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#change_domain/2","title":"PlausibleWeb.SiteController.change_domain/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#change_domain_submit/2","title":"PlausibleWeb.SiteController.change_domain_submit/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#create_shared_link/2","title":"PlausibleWeb.SiteController.create_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#create_site/2","title":"PlausibleWeb.SiteController.create_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_custom_domain/2","title":"PlausibleWeb.SiteController.delete_custom_domain/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_google_auth/2","title":"PlausibleWeb.SiteController.delete_google_auth/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_shared_link/2","title":"PlausibleWeb.SiteController.delete_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#delete_site/2","title":"PlausibleWeb.SiteController.delete_site/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#disable_monthly_report/2","title":"PlausibleWeb.SiteController.disable_monthly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#disable_spike_notification/2","title":"PlausibleWeb.SiteController.disable_spike_notification/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#disable_weekly_report/2","title":"PlausibleWeb.SiteController.disable_weekly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#edit_shared_link/2","title":"PlausibleWeb.SiteController.edit_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#enable_monthly_report/2","title":"PlausibleWeb.SiteController.enable_monthly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#enable_spike_notification/2","title":"PlausibleWeb.SiteController.enable_spike_notification/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#enable_weekly_report/2","title":"PlausibleWeb.SiteController.enable_weekly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#forget_imported/2","title":"PlausibleWeb.SiteController.forget_imported/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google/2","title":"PlausibleWeb.SiteController.import_from_google/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_confirm/2","title":"PlausibleWeb.SiteController.import_from_google_confirm/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_user_metric_notice/2","title":"PlausibleWeb.SiteController.import_from_google_user_metric_notice/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_view_id/2","title":"PlausibleWeb.SiteController.import_from_google_view_id/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#import_from_google_view_id_form/2","title":"PlausibleWeb.SiteController.import_from_google_view_id_form/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#index/2","title":"PlausibleWeb.SiteController.index/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#make_private/2","title":"PlausibleWeb.SiteController.make_private/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#make_public/2","title":"PlausibleWeb.SiteController.make_public/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#new/2","title":"PlausibleWeb.SiteController.new/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#new_shared_link/2","title":"PlausibleWeb.SiteController.new_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#remove_monthly_report_recipient/2","title":"PlausibleWeb.SiteController.remove_monthly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#remove_spike_notification_recipient/2","title":"PlausibleWeb.SiteController.remove_spike_notification_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#remove_weekly_report_recipient/2","title":"PlausibleWeb.SiteController.remove_weekly_report_recipient/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#reset_stats/2","title":"PlausibleWeb.SiteController.reset_stats/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings/2","title":"PlausibleWeb.SiteController.settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_custom_domain/2","title":"PlausibleWeb.SiteController.settings_custom_domain/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_danger_zone/2","title":"PlausibleWeb.SiteController.settings_danger_zone/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_email_reports/2","title":"PlausibleWeb.SiteController.settings_email_reports/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_funnels/2","title":"PlausibleWeb.SiteController.settings_funnels/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_general/2","title":"PlausibleWeb.SiteController.settings_general/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_goals/2","title":"PlausibleWeb.SiteController.settings_goals/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_people/2","title":"PlausibleWeb.SiteController.settings_people/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_props/2","title":"PlausibleWeb.SiteController.settings_props/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_search_console/2","title":"PlausibleWeb.SiteController.settings_search_console/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#settings_visibility/2","title":"PlausibleWeb.SiteController.settings_visibility/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_feature_visibility/2","title":"PlausibleWeb.SiteController.update_feature_visibility/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_google_auth/2","title":"PlausibleWeb.SiteController.update_google_auth/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_settings/2","title":"PlausibleWeb.SiteController.update_settings/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_shared_link/2","title":"PlausibleWeb.SiteController.update_shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteController.html#update_spike_notification/2","title":"PlausibleWeb.SiteController.update_spike_notification/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html","title":"PlausibleWeb.SiteView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.SiteView.html#__resource__/0","title":"PlausibleWeb.SiteView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#base_domain/0","title":"PlausibleWeb.SiteView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#change_domain.html/1","title":"PlausibleWeb.SiteView.change_domain.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#edit_shared_link.html/1","title":"PlausibleWeb.SiteView.edit_shared_link.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#goal_name/1","title":"PlausibleWeb.SiteView.goal_name/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#google_logo/1","title":"PlausibleWeb.SiteView.google_logo/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#gravatar/2","title":"PlausibleWeb.SiteView.gravatar/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#import_from_google_confirm.html/1","title":"PlausibleWeb.SiteView.import_from_google_confirm.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#import_from_google_user_metric_form.html/1","title":"PlausibleWeb.SiteView.import_from_google_user_metric_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#import_from_google_view_id_form.html/1","title":"PlausibleWeb.SiteView.import_from_google_view_id_form.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#index.html/1","title":"PlausibleWeb.SiteView.index.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#new.html/1","title":"PlausibleWeb.SiteView.new.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#new_shared_link.html/1","title":"PlausibleWeb.SiteView.new_shared_link.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#plausible_url/0","title":"PlausibleWeb.SiteView.plausible_url/0","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.SiteView.html#render/2","title":"PlausibleWeb.SiteView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#render_snippet/1","title":"PlausibleWeb.SiteView.render_snippet/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_custom_domain.html/1","title":"PlausibleWeb.SiteView.settings_custom_domain.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_danger_zone.html/1","title":"PlausibleWeb.SiteView.settings_danger_zone.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_email_reports.html/1","title":"PlausibleWeb.SiteView.settings_email_reports.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_funnels.html/1","title":"PlausibleWeb.SiteView.settings_funnels.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_general.html/1","title":"PlausibleWeb.SiteView.settings_general.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_goals.html/1","title":"PlausibleWeb.SiteView.settings_goals.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_people.html/1","title":"PlausibleWeb.SiteView.settings_people.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_props.html/1","title":"PlausibleWeb.SiteView.settings_props.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_search_console.html/1","title":"PlausibleWeb.SiteView.settings_search_console.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#settings_visibility.html/1","title":"PlausibleWeb.SiteView.settings_visibility.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#shared_link_dest/2","title":"PlausibleWeb.SiteView.shared_link_dest/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#snippet.html/1","title":"PlausibleWeb.SiteView.snippet.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#snippet_after_domain_change.html/1","title":"PlausibleWeb.SiteView.snippet_after_domain_change.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.SiteView.html#template_not_found/2","title":"PlausibleWeb.SiteView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.SiteView.html#with_indefinite_article/1","title":"PlausibleWeb.SiteView.with_indefinite_article/1","type":"function"},{"doc":"This controller is responsible for rendering stats dashboards.\n\nThe stats dashboards are currently the only part of the app that uses client-side\nrendering. Since the dashboards are heavily interactive, they are built with React\nwhich is an appropriate choice for highly interactive browser UIs.\n\n \nsequenceDiagram\n Browser->>StatsController: GET /mydomain.com\n StatsController-->>Browser: StatsView.render(\"stats.html\")\n Note left of Browser: ReactDom.render(Dashboard)\n\n Browser -) Api.StatsController: GET /api/stats/mydomain.com/top-stats\n Api.StatsController --) Browser: {\"top_stats\": [...]}\n Note left of Browser: TopStats.render()\n\n Browser -) Api.StatsController: GET /api/stats/mydomain.com/main-graph\n Api.StatsController --) Browser: [{\"plot\": [...], \"labels\": [...]}, ...]\n Note left of Browser: VisitorGraph.render()\n\n Browser -) Api.StatsController: GET /api/stats/mydomain.com/sources\n Api.StatsController --) Browser: [{\"name\": \"Google\", \"visitors\": 292150}, ...]\n Note left of Browser: Sources.render()\n\n Note over Browser,StatsController: And so on, for all reports in the viewport\n \n\nThis reasoning for this sequence is as follows:\n 1. First paint is fast because it doesn't do any data aggregation yet - good UX\n 2. The basic structure of the dashboard is rendered with spinners before reports are ready - good UX\n 2. Rendering on the frontend allows for maximum interactivity. Re-rendering and re-fetching can be as granular as needed.\n 3. Routing on the frontend allows the user to navigate the dashboard without reloading the page and losing context\n 4. Rendering on the frontend allows caching results in the browser to reduce pressure on backends and storage\n 3.1 No client-side caching has been implemented yet. This is still theoretical. See https://github.com/plausible/analytics/discussions/1278\n 3.2 This is a big potential opportunity, because analytics data is mostly immutable. Clients can cache all historical data.\n 5. Since frontend rendering & navigation is harder to build and maintain than regular server-rendered HTML, we don't use SPA-style rendering anywhere else\n .The only place currently where the benefits outweigh the costs is the dashboard.","ref":"PlausibleWeb.StatsController.html","title":"PlausibleWeb.StatsController","type":"module"},{"doc":"","ref":"PlausibleWeb.StatsController.html#authenticate_shared_link/2","title":"PlausibleWeb.StatsController.authenticate_shared_link/2","type":"function"},{"doc":"The export is limited to 300 entries for other reports and 100 entries for pages because bigger result sets\nstart causing failures. Since we request data like time on page or bounce_rate for pages in a separate query\nusing the IN filter, it causes the requests to balloon in payload size.","ref":"PlausibleWeb.StatsController.html#csv_export/2","title":"PlausibleWeb.StatsController.csv_export/2","type":"function"},{"doc":"Authorizes and renders a shared link:\n 1. Shared link with no password protection: needs to just make sure the shared link entry is still\n in our database. This check makes sure shared link access can be revoked by the site admins. If the\n shared link exists, render it directly.\n\n 2. Shared link with password protection: Same checks as without the password, but an extra step is taken to\n protect the page with a password. When the user passes the password challenge, a cookie is set with Plausible.Auth.Token.sign_shared_link().\n The cookie allows the user to access the dashboard for 24 hours without entering the password again.\n\n #","ref":"PlausibleWeb.StatsController.html#shared_link/2","title":"PlausibleWeb.StatsController.shared_link/2","type":"function"},{"doc":"The URL format for shared links was changed in [this pull request](https://github.com/plausible/analytics/pull/752) in order\n to make the URLs easier to bookmark. The old format is supported along with the new in order to not break old links.\n\n See: https://plausible.io/docs/shared-links","ref":"PlausibleWeb.StatsController.html#shared_link/2-backwards-compatibility","title":"Backwards compatibility - PlausibleWeb.StatsController.shared_link/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsController.html#stats/2","title":"PlausibleWeb.StatsController.stats/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html","title":"PlausibleWeb.StatsView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.StatsView.html#__resource__/0","title":"PlausibleWeb.StatsView.__resource__/0","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#base_domain/0","title":"PlausibleWeb.StatsView.base_domain/0","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#large_number_format/1","title":"PlausibleWeb.StatsView.large_number_format/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#plausible_url/0","title":"PlausibleWeb.StatsView.plausible_url/0","type":"function"},{"doc":"Returns a readable stats URL.\n\nNative Phoenix router functions percent-encode all diacritics, resulting in\nugly URLs, e.g. `https://plausible.io/café.com` transforms into\n`https://plausible.io/caf%C3%A9.com`.\n\nThis function encodes only the slash (`/`) character from the site's domain.","ref":"PlausibleWeb.StatsView.html#pretty_stats_url/1","title":"PlausibleWeb.StatsView.pretty_stats_url/1","type":"function"},{"doc":"iex> PlausibleWeb.StatsView.pretty_stats_url(%Plausible.Site{domain: \"user.gittea.io/repo\"})\n \"http://localhost:8000/user.gittea.io%2Frepo\"\n\n iex> PlausibleWeb.StatsView.pretty_stats_url(%Plausible.Site{domain: \"anakin.test\"})\n \"http://localhost:8000/anakin.test\"\n\n iex> PlausibleWeb.StatsView.pretty_stats_url(%Plausible.Site{domain: \"café.test\"})\n \"http://localhost:8000/café.test\"","ref":"PlausibleWeb.StatsView.html#pretty_stats_url/1-examples","title":"Examples - PlausibleWeb.StatsView.pretty_stats_url/1","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.StatsView.html#render/2","title":"PlausibleWeb.StatsView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#shared_link_password.html/1","title":"PlausibleWeb.StatsView.shared_link_password.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#site_locked.html/1","title":"PlausibleWeb.StatsView.site_locked.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#stats.html/1","title":"PlausibleWeb.StatsView.stats.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#stats_container_class/1","title":"PlausibleWeb.StatsView.stats_container_class/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.StatsView.html#template_not_found/2","title":"PlausibleWeb.StatsView.template_not_found/2","type":"function"},{"doc":"","ref":"PlausibleWeb.StatsView.html#waiting_first_pageview.html/1","title":"PlausibleWeb.StatsView.waiting_first_pageview.html/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Tracker.html","title":"PlausibleWeb.Tracker","type":"module"},{"doc":"","ref":"PlausibleWeb.Tracker.html#call/2","title":"PlausibleWeb.Tracker.call/2","type":"function"},{"doc":"Returns a specification to start this module under a supervisor.\n\nSee `Supervisor`.","ref":"PlausibleWeb.Tracker.html#child_spec/1","title":"PlausibleWeb.Tracker.child_spec/1","type":"function"},{"doc":"","ref":"PlausibleWeb.Tracker.html#init/1","title":"PlausibleWeb.Tracker.init/1","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeController.html","title":"PlausibleWeb.UnsubscribeController","type":"module"},{"doc":"","ref":"PlausibleWeb.UnsubscribeController.html#monthly_report/2","title":"PlausibleWeb.UnsubscribeController.monthly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeController.html#weekly_report/2","title":"PlausibleWeb.UnsubscribeController.weekly_report/2","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeView.html","title":"PlausibleWeb.UnsubscribeView","type":"module"},{"doc":"The resource name, as an atom, for this view","ref":"PlausibleWeb.UnsubscribeView.html#__resource__/0","title":"PlausibleWeb.UnsubscribeView.__resource__/0","type":"function"},{"doc":"Renders the given template locally.","ref":"PlausibleWeb.UnsubscribeView.html#render/2","title":"PlausibleWeb.UnsubscribeView.render/2","type":"function"},{"doc":"","ref":"PlausibleWeb.UnsubscribeView.html#success.html/1","title":"PlausibleWeb.UnsubscribeView.success.html/1","type":"function"},{"doc":"Callback invoked when no template is found.\nBy default it raises but can be customized\nto render a particular template.","ref":"PlausibleWeb.UnsubscribeView.html#template_not_found/2","title":"PlausibleWeb.UnsubscribeView.template_not_found/2","type":"function"},{"doc":"# Plausible Analytics\n\n \n \n \n \n \n \n Simple Metrics |\n Lightweight Script |\n Privacy Focused |\n Open Source |\n Docs |\n Contributing \n \n \n\n[Plausible Analytics](https://plausible.io/) is an easy to use, lightweight (< 1 KB), open source and privacy-friendly alternative to Google Analytics. It doesn’t use cookies and is fully compliant with GDPR, CCPA and PECR. You can self-host or have us run Plausible for you in the cloud. Here's [the live demo of our own website stats](https://plausible.io/plausible.io). Made and hosted in the EU 🇪🇺\n\nWe are dedicated to making web analytics more privacy-friendly. Our mission is to reduce corporate surveillance by providing an alternative web analytics tool which doesn’t come from the AdTech world. We are completely independent and solely funded by our subscribers.\n\n","ref":"readme.html","title":"Introduction","type":"extras"},{"doc":"Here's what makes Plausible a great Google Analytics alternative and why we're trusted by 11,000+ paying subscribers to deliver their website and business insights:\n\n- **Clutter Free**: Plausible Analytics provides [simple web analytics](https://plausible.io/simple-web-analytics) and it cuts through the noise. No layers of menus, no need for custom reports. Get all the important insights on one single page. No training necessary.\n- **GDPR/CCPA/PECR compliant**: Measure traffic, not individuals. No personal data or IP addresses are ever stored in our database. We don't use cookies or any other persistent identifiers. [Read more about our data policy](https://plausible.io/data-policy)\n- **Lightweight**: Plausible Analytics works by loading a script on your website, like Google Analytics. Our script is [45x smaller](https://plausible.io/lightweight-web-analytics), making your website quicker to load. You can also send events directly to our [events API](https://plausible.io/docs/events-api).\n- **Email or Slack reports**: Keep an eye on your traffic with weekly and/or monthly email or Slack reports. You can also get traffic spike notifications.\n- **Invite team members and share stats**: You have the option to be transparent and open your web analytics to everyone. Your website stats are private by default but you can choose to make them public so anyone with your custom link can view them. You can [invite team members](https://plausible.io/docs/users-roles) and assign user roles too.\n- **Define key goals and track conversions**: Create custom events with custom dimensions to track conversions and attribution to understand and identify the trends that matter. Includes easy ways to track outbound link clicks, file downloads and 404 error pages.\n- **Search keywords**: Integrate your dashboard with Google Search Console to get the most accurate reporting on your search keywords.\n- **SPA support**: Plausible is built with modern web frameworks in mind and it works automatically with any pushState based router on the frontend. We also support frameworks that use the URL hash for routing. See [our documentation](https://plausible.io/docs/hash-based-routing).\n- **Smooth transition from Google Analytics**: There's a realtime dashboard, entry pages report and integration with Search Console. You can track your paid campaigns and conversions. You can invite team members. You can even [import your historical Google Analytics stats](https://plausible.io/docs/google-analytics-import). Learn how to [get the most out of your Plausible experience](https://plausible.io/docs/your-plausible-experience) and join thousands who have already migrated from Google Analytics.\n\nInterested to learn more? [Read more on our website](https://plausible.io), learn more about the team and the goals of the project on [our about page](https://plausible.io/about) or explore [the documentation](https://plausible.io/docs).","ref":"readme.html#why-plausible","title":"Why Plausible? - Introduction","type":"extras"},{"doc":"Plausible Analytics is an independently owned and actively developed project. To keep the project development going, to stay in business, to continue putting effort into building a better product and to cover our costs, we need to charge a fee.\n\nGoogle Analytics is free because Google has built their company and their wealth by collecting and analyzing huge amounts of personal information from web users and using these personal and behavioral insights to sell advertisements.\n\nPlausible has no part in that business model. No personal data is being collected and analyzed either. With Plausible, you 100% own and control all of your website data. This data is not being shared with or sold to any third-parties.\n\nWe choose the subscription business model rather than the business model of surveillance capitalism. See reasons why we believe you should [stop using Google Analytics on your website](https://plausible.io/blog/remove-google-analytics).","ref":"readme.html#why-is-plausible-analytics-cloud-not-free-like-google-analytics","title":"Why is Plausible Analytics Cloud not free like Google Analytics? - Introduction","type":"extras"},{"doc":"The easiest way to get started with Plausible is with [our official managed service in the cloud](https://plausible.io/#pricing). It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us.\n\nIn order to be compliant with the GDPR and the Schrems II ruling, all visitor data for our managed service in the cloud is exclusively processed on servers and cloud infrastructure owned and operated by European providers. Your website data never leaves the EU.\n\nOur managed hosting can save a substantial amount of developer time and resources. For most sites this ends up being the best value option and the revenue goes to funding the maintenance and further development of Plausible. So you’ll be supporting open source software and getting a great service!\n\n#","ref":"readme.html#getting-started-with-plausible","title":"Getting started with Plausible - Introduction","type":"extras"},{"doc":"Plausible is [open source web analytics](https://plausible.io/open-source-website-analytics) and we have a free as in beer [self-hosted solution](https://plausible.io/self-hosted-web-analytics). Here are the differences between Plausible Analytics managed hosting in the cloud and the self-hosting:\n\n| | Plausible Cloud | Self-Hosting |\n| ------------- | ------------- | ------------- |\n| Hosting | Easy and convenient. It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us. We manage everything so you don’t have to worry about anything and can focus on your stats. | You do it all yourself. You need to get a server and you need to manage your infrastructure. You are responsible for installation, maintenance, upgrades, server capacity, uptime, backup, security, stability, consistency, loading time and so on. |\n| Storage | All visitor data is exclusively processed on EU-owned cloud infrastructure. We keep your site data on a secure, encrypted and green energy powered server in Germany. This ensures that your site data is protected by the strict European Union data privacy laws and ensures compliance with GDPR. Your website data never leaves the EU. | You have full control and can host your instance on any server in any country that you wish. Host it on a server in your basement or host it with any cloud provider wherever you want, even those that are not GDPR compliant. |\n| Features | Continuously developed and improved with new features and updates multiple times per week. | [It's a long term release](https://plausible.io/blog/building-open-source) published twice per year. Selected premium features are not available as we aim to ensure a protective barrier around our cloud offering. |\n| Raw data | You see all your site stats and metrics on our modern-looking, simple to use and fast loading dashboard. You can only see the stats aggregated in the dashboard. You can download the stats using the [CSV export](https://plausible.io/docs/export-stats), [stats API](https://plausible.io/docs/stats-api) or tools such as the [Data Studio Connector](https://plausible.io/docs/integration-guides#google-data-studio). | Do you want access to the raw data? Self-hosting gives you that option. You can take the data directly from the ClickHouse database. |\n| Premium Support | Real support delivered by real human beings who build and maintain Plausible. | Premium support is not included. Self-hosting is community supported only. |\n| Costs | There's a cost associated with providing an analytics service so we charge a subscription fee. We choose the subscription business model rather than the business model of surveillance capitalism. Your money funds further development of Plausible. | You need to pay for your server, CDN, backups and whatever other cost there is associated with running the infrastructure. You never have to pay any fees to us. Your money goes to 3rd party companies with no connection to us.|\n\nInterested in self-hosting Plausible on your server? Take a look at our [self-hosting installation instructions](https://plausible.io/docs/self-hosting).\n\nPlausible Self-Hosted is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a [community supported forum](https://github.com/plausible/analytics/discussions/categories/self-hosted-support) where you can ask for help.\n\nOur only source of funding is our premium, managed service for running Plausible in the cloud. If you're looking for an alternative way to support the project, we've put together some sponsorship packages. If you choose to self-host Plausible you can [become a sponsor](https://github.com/sponsors/plausible) which is a great way to give back to the community and to contribute to the long-term sustainability of the project.","ref":"readme.html#can-plausible-analytics-be-self-hosted","title":"Can Plausible Analytics be self-hosted? - Introduction","type":"extras"},{"doc":"Plausible Analytics is a standard Elixir/Phoenix application backed by a PostgreSQL database for general data and a Clickhouse\ndatabase for stats. On the frontend we use [TailwindCSS](https://tailwindcss.com/) for styling and React to make the dashboard interactive.","ref":"readme.html#technology","title":"Technology - Introduction","type":"extras"},{"doc":"For anyone wishing to contribute to Plausible, we recommend taking a look at [our contributor guide](https://github.com/plausible/analytics/blob/master/CONTRIBUTING.md).","ref":"readme.html#contributors","title":"Contributors - Introduction","type":"extras"},{"doc":"We welcome feedback from our community. We have a public roadmap driven by the features suggested by the community members. Take a look at our [feedback board](https://plausible.io/feedback). Please let us know if you have any requests and vote on open issues so we can better prioritize.\n\nTo stay up to date with all the latest news and product updates, make sure to follow us on [X (formerly Twitter)](https://twitter.com/plausiblehq), [LinkedIn](https://www.linkedin.com/company/plausible-analytics/) or [Mastodon](https://fosstodon.org/@plausible).","ref":"readme.html#feedback-roadmap","title":"Feedback & Roadmap - Introduction","type":"extras"},{"doc":"Plausible is open source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can [find it here](https://github.com/plausible/analytics/blob/master/LICENSE.md).\n\nTo avoid issues with AGPL virality, we've released the JavaScript tracker which gets included on your website under the MIT license. You can [find it here](https://github.com/plausible/analytics/blob/master/tracker/LICENSE.md).\n\nCopyright (c) 2018-present Plausible Insights OÜ. Plausible Analytics name and logo are trademarks of Plausible Insights OÜ. Please see our [trademark guidelines](https://plausible.io/trademark) for info on acceptable usage.","ref":"readme.html#license-trademarks","title":"License & Trademarks - Introduction","type":"extras"},{"doc":"# Contributing\n\nWe welcome everyone to contribute to Plausible. This document is to help you on setting up your environment, finding a task, and opening pull requests.","ref":"contributing.html","title":"Contributing","type":"extras"},{"doc":"The easiest way to get up and running is to [install](https://docs.docker.com/get-docker/) and use Docker for running both Postgres and Clickhouse.\n\nMake sure Docker, Elixir, Erlang and Node.js are all installed on your development machine. The [`.tool-versions`](https://github.com/plausible/analytics/blob/master/.tool-versions) file is available to use with [asdf](https://github.com/asdf-vm/asdf) or similar tools.\n\n#","ref":"contributing.html#development-setup","title":"Development setup - Contributing","type":"extras"},{"doc":"1. Run both `make postgres` and `make clickhouse`.\n2. You can set up everything with `make install`, alternatively run each command separately:\n 1. Run `mix deps.get`. This will download the required Elixir dependencies.\n 2. Run `mix ecto.create`. This will create the required databases in both Postgres and Clickhouse.\n 3. Run `mix ecto.migrate` to build the database schema.\n 4. Run `mix run priv/repo/seeds.exs` to seed the database. Check the [Seeds](#Seeds) section for more.\n 5. Run `npm ci --prefix assets` to install the required client-side dependencies.\n 6. Run `npm ci --prefix tracker` to install the required tracker dependencies.\n 7. Run `npm run deploy --prefix tracker` to generate tracker files in `priv/tracker/js`\n 8. Run `mix download_country_database` to fetch geolocation database\n3. Run `make server` or `mix phx.server` to start the Phoenix server.\n4. The system is now available on `localhost:8000`.\n\n#","ref":"contributing.html#start-the-environment","title":"Start the environment - Contributing","type":"extras"},{"doc":"You can optionally seed your database to automatically create an account and a site with stats:\n\n1. Run `mix run priv/repo/seeds.exs` to seed the database.\n2. Start the server with `make server` and navigate to `http://localhost:8000/login`.\n3. Log in with the following e-mail and password combination: `user@plausible.test` and `plausible`.\n4. You should now have a `dummy.site` site with generated stats.\n\nAlternatively, you can manually create a new account:\n\n1. Navigate to `http://localhost:8000/register` and fill in the form.\n2. Fill in the rest of the forms and for the domain use `dummy.site`\n3. Skip the JS snippet and click start collecting data.\n4. Run `mix send_pageview` from the terminal to generate a fake pageview event for the dummy site.\n5. You should now be all set!\n\n#","ref":"contributing.html#seeds","title":"Seeds - Contributing","type":"extras"},{"doc":"1. Stop and remove the Postgres container with `make postgres-stop`.\n2. Stop and remove the Clickhouse container with `make clickhouse-stop`.\n\nVolumes are preserved. You'll find that the Postgres and Clickhouse state are retained when you bring them up again the next time: no need to re-register and so on.\n\nNote: Since we are deleting the containers, be careful when deleting volumes with `docker volume prune`. You might accidentally delete the database and would have to go through re-registration process.\n\n#","ref":"contributing.html#stopping-docker-containers","title":"Stopping Docker containers - Contributing","type":"extras"},{"doc":"`pre-commit` requires Python to be available locally and covers Elixir, JavaScript, and CSS. Set up with `pip install --user pre-commit` followed by `pre-commit install`. Conversely, if the prompts are far too bothersome, remove with `pre-commit uninstall`.","ref":"contributing.html#pre-commit-hooks","title":"Pre-commit hooks - Contributing","type":"extras"},{"doc":"Bugs can be found in our [issue tracker](https://github.com/plausible/analytics/issues). Issues are usually up for grabs.\n\nNew features need to be discussed with the core team and the community first. If you're tackling a feature, please make sure it has been already discussed in the [Discussions tab](https://github.com/plausible/analytics/discussions). We kindly ask contributors to use the discussion comment section to propose a solution before opening a pull request.\n\nPull requests without an associated issue or discussion may still be merged, but we will focus on changes that have already been talked through.","ref":"contributing.html#finding-a-task","title":"Finding a task - Contributing","type":"extras"},{"doc":"# Account locking\nThis document explains the account locking feature from a technical perspective. Account locking happens when users have outgrown their accounts, and despite e-mail and dashboard alerts, don't upgrade after a grace period.","ref":"account-locking.html","title":"Account locking","type":"extras"},{"doc":"The `Plausible.Workers.CheckUsage` daily background job alerts users they have reached their subscription limits. This runs for outgrown users one day after their last billing date.\n\nWhen users reach the number of sites limit, or use >110% of their pageview limit for 2 consecutive billing cycles, the background job sends them an e-mail alert. The e-mail suggests a suitable subscription plan based on usage. For enterprise users, only an internal e-mail is sent to `enterprise@plausible.io`.\n\nThe user is given 7 days to upgrade their account after the alert, and this is called grace period. The background starts this grace period by adding a `users.grace_period` JSON to the user record:\n\n```json\n// SELECT grace_period FROM users LIMIT 1\n\n{\n \"id\": \"1aa855bd-022d-4dfc-b572-6853442c3f19\",\n \"is_over\": true,\n \"end_date\": \"2022-03-09\",\n \"allowance_required\": 100,\n \"manual_lock\": false\n}\n```\n\n\nDuring this period, the following alert pops up on the dashboard for both standard and enterprise users:\n\n\n\nIf the user upgrades to a suitable plan, the grace period is removed (check `Plausible.Billing.subscription_updated/1`), otherwise [Account locking](#Account\\ locking) follows. For enterprise users, the grace period has a manual lock flag set to true, meaning enterprise accounts can only be locked/unlocked through the internal CRM.","ref":"account-locking.html#usage-alert-and-grace-period","title":"Usage alert and grace period - Account locking","type":"extras"},{"doc":"The grace period is checked daily by the `Plausible.Workers.LockSites` background job.\n\nFor users that expired their grace period, `sites.locked` is is set to `true`, restricting access to dashboards. This does not stop event ingestion, so users can have their stats up to date when they finally upgrade.\n\n","ref":"account-locking.html#account-locking","title":"Account locking - Account locking","type":"extras"}]}
\ No newline at end of file
diff --git a/dist/sidebar_items-9E4FD05F.js b/dist/sidebar_items-9E4FD05F.js
new file mode 100644
index 000000000..8b1cfac1c
--- /dev/null
+++ b/dist/sidebar_items-9E4FD05F.js
@@ -0,0 +1 @@
+sidebarNodes={"extras":[{"group":"","headers":[{"anchor":"modules","id":"Modules"},{"anchor":"mix-tasks","id":"Mix Tasks"}],"id":"api-reference","title":"API Reference"},{"group":"","headers":[{"anchor":"why-plausible","id":"Why Plausible?"},{"anchor":"why-is-plausible-analytics-cloud-not-free-like-google-analytics","id":"Why is Plausible Analytics Cloud not free like Google Analytics?"},{"anchor":"getting-started-with-plausible","id":"Getting started with Plausible"},{"anchor":"technology","id":"Technology"},{"anchor":"contributors","id":"Contributors"},{"anchor":"feedback-roadmap","id":"Feedback & Roadmap"},{"anchor":"license-trademarks","id":"License & Trademarks"}],"id":"readme","title":"Introduction"},{"group":"","headers":[{"anchor":"development-setup","id":"Development setup"},{"anchor":"finding-a-task","id":"Finding a task"}],"id":"contributing","title":"Contributing"},{"group":"Features","headers":[{"anchor":"usage-alert-and-grace-period","id":"Usage alert and grace period"},{"anchor":"account-locking","id":"Account locking"}],"id":"account-locking","title":"Account locking"}],"modules":[{"deprecated":false,"group":"","id":"ObanErrorReporter","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/4","deprecated":false,"id":"handle_event/4","title":"handle_event(list, measure, meta, _)"}]}],"sections":[],"title":"ObanErrorReporter"},{"deprecated":false,"group":"","id":"Plausible","sections":[],"title":"Plausible"},{"deprecated":false,"group":"","id":"Plausible.AsyncInsertRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.AsyncInsertRepo"},{"deprecated":false,"group":"","id":"Plausible.Auth","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_user/3","deprecated":false,"id":"create_user/3","title":"create_user(name, email, pwd)"},{"anchor":"delete_user/1","deprecated":false,"id":"delete_user/1","title":"delete_user(user)"},{"anchor":"enterprise?/1","deprecated":false,"id":"enterprise?/1","title":"enterprise?(user)"},{"anchor":"find_user_by/1","deprecated":false,"id":"find_user_by/1","title":"find_user_by(opts)"},{"anchor":"has_active_sites?/2","deprecated":false,"id":"has_active_sites?/2","title":"has_active_sites?(user, roles \\\\ [:owner, :admin, :viewer])"},{"anchor":"is_super_admin?/1","deprecated":false,"id":"is_super_admin?/1","title":"is_super_admin?(user_id)"},{"anchor":"issue_email_verification/1","deprecated":false,"id":"issue_email_verification/1","title":"issue_email_verification(user)"},{"anchor":"user_owns_sites?/1","deprecated":false,"id":"user_owns_sites?/1","title":"user_owns_sites?(user)"},{"anchor":"verify_email/2","deprecated":false,"id":"verify_email/2","title":"verify_email(user, code)"}]}],"sections":[],"title":"Plausible.Auth"},{"deprecated":false,"group":"","id":"Plausible.Auth.ApiKey","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(schema, attrs \\\\ %{})"},{"anchor":"do_hash/1","deprecated":false,"id":"do_hash/1","title":"do_hash(key)"},{"anchor":"process_key/1","deprecated":false,"id":"process_key/1","title":"process_key(changeset)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(schema, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Auth.ApiKey"},{"deprecated":false,"group":"","id":"Plausible.Auth.ApiKeyAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_changeset/2","deprecated":false,"id":"create_changeset/2","title":"create_changeset(schema, attrs)"},{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"search_fields/1","deprecated":false,"id":"search_fields/1","title":"search_fields(schema)"},{"anchor":"update_changeset/2","deprecated":false,"id":"update_changeset/2","title":"update_changeset(schema, attrs)"}]}],"sections":[],"title":"Plausible.Auth.ApiKeyAdmin"},{"deprecated":false,"group":"","id":"Plausible.Auth.GracePeriod","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"active?/1","deprecated":false,"id":"active?/1","title":"active?(user)"},{"anchor":"end_changeset/1","deprecated":false,"id":"end_changeset/1","title":"end_changeset(user)"},{"anchor":"expired?/1","deprecated":false,"id":"expired?/1","title":"expired?(user)"},{"anchor":"remove_changeset/1","deprecated":false,"id":"remove_changeset/1","title":"remove_changeset(user)"},{"anchor":"start_changeset/2","deprecated":false,"id":"start_changeset/2","title":"start_changeset(user, allowance_required)"},{"anchor":"start_manual_lock_changeset/2","deprecated":false,"id":"start_manual_lock_changeset/2","title":"start_manual_lock_changeset(user, allowance_required)"}]}],"sections":[],"title":"Plausible.Auth.GracePeriod"},{"deprecated":false,"group":"","id":"Plausible.Auth.Invitation","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Auth.Invitation"},{"deprecated":false,"group":"","id":"Plausible.Auth.Password","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"dummy_calculation/0","deprecated":false,"id":"dummy_calculation/0","title":"dummy_calculation()"},{"anchor":"hash/1","deprecated":false,"id":"hash/1","title":"hash(password)"},{"anchor":"match?/2","deprecated":false,"id":"match?/2","title":"match?(password, hash)"}]}],"sections":[],"title":"Plausible.Auth.Password"},{"deprecated":false,"group":"","id":"Plausible.Auth.Token","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"sign_password_reset/1","deprecated":false,"id":"sign_password_reset/1","title":"sign_password_reset(email)"},{"anchor":"sign_shared_link/1","deprecated":false,"id":"sign_shared_link/1","title":"sign_shared_link(slug)"},{"anchor":"verify_password_reset/1","deprecated":false,"id":"verify_password_reset/1","title":"verify_password_reset(token)"},{"anchor":"verify_shared_link/1","deprecated":false,"id":"verify_shared_link/1","title":"verify_shared_link(token)"}]}],"sections":[],"title":"Plausible.Auth.Token"},{"deprecated":false,"group":"","id":"Plausible.Auth.User","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(user, attrs \\\\ %{})"},{"anchor":"end_trial/1","deprecated":false,"id":"end_trial/1","title":"end_trial(user)"},{"anchor":"hash_password/1","deprecated":false,"id":"hash_password/1","title":"hash_password(changeset)"},{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(attrs \\\\ %{})"},{"anchor":"password_strength/1","deprecated":false,"id":"password_strength/1","title":"password_strength(changeset)"},{"anchor":"remove_trial_expiry/1","deprecated":false,"id":"remove_trial_expiry/1","title":"remove_trial_expiry(user)"},{"anchor":"set_password/2","deprecated":false,"id":"set_password/2","title":"set_password(user, password)"},{"anchor":"start_trial/1","deprecated":false,"id":"start_trial/1","title":"start_trial(user)"}]}],"sections":[],"title":"Plausible.Auth.User"},{"deprecated":false,"group":"","id":"Plausible.Auth.UserAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(conn, map)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"resource_actions/1","deprecated":false,"id":"resource_actions/1","title":"resource_actions(_)"}]}],"sections":[],"title":"Plausible.Auth.UserAdmin"},{"deprecated":false,"group":"","id":"Plausible.Billing","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"active_subscription_for/1","deprecated":false,"id":"active_subscription_for/1","title":"active_subscription_for(user_id)"},{"anchor":"change_plan/2","deprecated":false,"id":"change_plan/2","title":"change_plan(user, new_plan_id)"},{"anchor":"change_plan_preview/2","deprecated":false,"id":"change_plan_preview/2","title":"change_plan_preview(subscription, new_plan_id)"},{"anchor":"has_active_subscription?/1","deprecated":false,"id":"has_active_subscription?/1","title":"has_active_subscription?(user_id)"},{"anchor":"last_two_billing_cycles/2","deprecated":false,"id":"last_two_billing_cycles/2","title":"last_two_billing_cycles(user, today \\\\ Timex.today())"},{"anchor":"last_two_billing_months_usage/2","deprecated":false,"id":"last_two_billing_months_usage/2","title":"last_two_billing_months_usage(user, today \\\\ Timex.today())"},{"anchor":"needs_to_upgrade?/1","deprecated":false,"id":"needs_to_upgrade?/1","title":"needs_to_upgrade?(user)"},{"anchor":"on_trial?/1","deprecated":false,"id":"on_trial?/1","title":"on_trial?(user)"},{"anchor":"paddle_api/0","deprecated":false,"id":"paddle_api/0","title":"paddle_api()"},{"anchor":"subscription_cancelled/1","deprecated":false,"id":"subscription_cancelled/1","title":"subscription_cancelled(params)"},{"anchor":"subscription_created/1","deprecated":false,"id":"subscription_created/1","title":"subscription_created(params)"},{"anchor":"subscription_payment_succeeded/1","deprecated":false,"id":"subscription_payment_succeeded/1","title":"subscription_payment_succeeded(params)"},{"anchor":"subscription_updated/1","deprecated":false,"id":"subscription_updated/1","title":"subscription_updated(params)"},{"anchor":"trial_days_left/1","deprecated":false,"id":"trial_days_left/1","title":"trial_days_left(user)"},{"anchor":"usage_breakdown/1","deprecated":false,"id":"usage_breakdown/1","title":"usage_breakdown(user)"}]}],"sections":[],"title":"Plausible.Billing"},{"deprecated":false,"group":"","id":"Plausible.Billing.EnterprisePlan","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(model, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Billing.EnterprisePlan"},{"deprecated":false,"group":"","id":"Plausible.Billing.EnterprisePlanAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"search_fields/1","deprecated":false,"id":"search_fields/1","title":"search_fields(schema)"}]}],"sections":[],"title":"Plausible.Billing.EnterprisePlanAdmin"},{"deprecated":false,"group":"","id":"Plausible.Billing.PaddleApi","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"checkout_domain/0","deprecated":false,"id":"checkout_domain/0","title":"checkout_domain()"},{"anchor":"get_invoices/1","deprecated":false,"id":"get_invoices/1","title":"get_invoices(subscription)"},{"anchor":"get_subscription/1","deprecated":false,"id":"get_subscription/1","title":"get_subscription(paddle_subscription_id)"},{"anchor":"update_subscription/2","deprecated":false,"id":"update_subscription/2","title":"update_subscription(paddle_subscription_id, params)"},{"anchor":"update_subscription_preview/2","deprecated":false,"id":"update_subscription_preview/2","title":"update_subscription_preview(paddle_subscription_id, new_plan_id)"},{"anchor":"vendors_domain/0","deprecated":false,"id":"vendors_domain/0","title":"vendors_domain()"}]}],"sections":[],"title":"Plausible.Billing.PaddleApi"},{"deprecated":false,"group":"","id":"Plausible.Billing.Plans","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"find/2","deprecated":false,"id":"find/2","title":"find(product_id_or_subscription, scope \\\\ all())"},{"anchor":"for_user/1","deprecated":false,"id":"for_user/1","title":"for_user(user)"},{"anchor":"get_subscription_plan/1","deprecated":false,"id":"get_subscription_plan/1","title":"get_subscription_plan(subscription)"},{"anchor":"subscription_interval/1","deprecated":false,"id":"subscription_interval/1","title":"subscription_interval(subscription)"},{"anchor":"suggest/2","deprecated":false,"id":"suggest/2","title":"suggest(user, usage_during_cycle)"},{"anchor":"yearly_product_ids/0","deprecated":false,"id":"yearly_product_ids/0","title":"yearly_product_ids()"}]}],"sections":[],"title":"Plausible.Billing.Plans"},{"deprecated":false,"group":"","id":"Plausible.Billing.Quota","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"monthly_pageview_limit/1","deprecated":false,"id":"monthly_pageview_limit/1","title":"monthly_pageview_limit(subscription)"},{"anchor":"monthly_pageview_usage/1","deprecated":false,"id":"monthly_pageview_usage/1","title":"monthly_pageview_usage(user)"},{"anchor":"site_limit/1","deprecated":false,"id":"site_limit/1","title":"site_limit(user)"},{"anchor":"site_usage/1","deprecated":false,"id":"site_usage/1","title":"site_usage(user)"},{"anchor":"team_member_limit/1","deprecated":false,"id":"team_member_limit/1","title":"team_member_limit(user)"},{"anchor":"team_member_usage/1","deprecated":false,"id":"team_member_usage/1","title":"team_member_usage(user)"},{"anchor":"within_limit?/2","deprecated":false,"id":"within_limit?/2","title":"within_limit?(usage, limit)"}]}],"sections":[],"title":"Plausible.Billing.Quota"},{"deprecated":false,"group":"","id":"Plausible.Billing.SiteLocker","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"check_sites_for/1","deprecated":false,"id":"check_sites_for/1","title":"check_sites_for(user)"},{"anchor":"set_lock_status_for/2","deprecated":false,"id":"set_lock_status_for/2","title":"set_lock_status_for(user, status)"}]}],"sections":[],"title":"Plausible.Billing.SiteLocker"},{"deprecated":false,"group":"","id":"Plausible.ChangesetHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"traverse_errors/1","deprecated":false,"id":"traverse_errors/1","title":"traverse_errors(changeset)"}]}],"sections":[],"title":"Plausible.ChangesetHelpers"},{"deprecated":false,"group":"","id":"Plausible.Cldr","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"available_locale_name?/1","deprecated":false,"id":"available_locale_name?/1","title":"available_locale_name?(locale_name)"},{"anchor":"default_locale/0","deprecated":false,"id":"default_locale/0","title":"default_locale()"},{"anchor":"default_territory/0","deprecated":false,"id":"default_territory/0","title":"default_territory()"},{"anchor":"ellipsis/2","deprecated":false,"id":"ellipsis/2","title":"ellipsis(string, options \\\\ [])"},{"anchor":"get_locale/0","deprecated":false,"id":"get_locale/0","title":"get_locale()"},{"anchor":"known_calendars/0","deprecated":false,"id":"known_calendars/0","title":"known_calendars()"},{"anchor":"known_currencies/0","deprecated":false,"id":"known_currencies/0","title":"known_currencies()"},{"anchor":"known_gettext_locale_name/1","deprecated":false,"id":"known_gettext_locale_name/1","title":"known_gettext_locale_name(locale_name)"},{"anchor":"known_gettext_locale_name?/1","deprecated":false,"id":"known_gettext_locale_name?/1","title":"known_gettext_locale_name?(locale_name)"},{"anchor":"known_gettext_locale_names/0","deprecated":false,"id":"known_gettext_locale_names/0","title":"known_gettext_locale_names()"},{"anchor":"known_locale_name/1","deprecated":false,"id":"known_locale_name/1","title":"known_locale_name(locale_name)"},{"anchor":"known_locale_name?/1","deprecated":false,"id":"known_locale_name?/1","title":"known_locale_name?(locale_name)"},{"anchor":"known_locale_names/0","deprecated":false,"id":"known_locale_names/0","title":"known_locale_names()"},{"anchor":"known_number_system_types/0","deprecated":false,"id":"known_number_system_types/0","title":"known_number_system_types()"},{"anchor":"known_number_systems/0","deprecated":false,"id":"known_number_systems/0","title":"known_number_systems()"},{"anchor":"known_rbnf_locale_name/1","deprecated":false,"id":"known_rbnf_locale_name/1","title":"known_rbnf_locale_name(locale_name)"},{"anchor":"known_rbnf_locale_name?/1","deprecated":false,"id":"known_rbnf_locale_name?/1","title":"known_rbnf_locale_name?(locale_name)"},{"anchor":"known_rbnf_locale_names/0","deprecated":false,"id":"known_rbnf_locale_names/0","title":"known_rbnf_locale_names()"},{"anchor":"known_territories/0","deprecated":false,"id":"known_territories/0","title":"known_territories()"},{"anchor":"normalize_lenient_parse/3","deprecated":false,"id":"normalize_lenient_parse/3","title":"normalize_lenient_parse(string, scope, locale \\\\ get_locale())"},{"anchor":"put_locale/1","deprecated":false,"id":"put_locale/1","title":"put_locale(locale_name)"},{"anchor":"quote/2","deprecated":false,"id":"quote/2","title":"quote(string, options \\\\ [])"},{"anchor":"unknown_locale_names/0","deprecated":false,"id":"unknown_locale_names/0","title":"unknown_locale_names()"},{"anchor":"validate_calendar/1","deprecated":false,"id":"validate_calendar/1","title":"validate_calendar(calendar)"},{"anchor":"validate_currency/1","deprecated":false,"id":"validate_currency/1","title":"validate_currency(currency)"},{"anchor":"validate_locale/1","deprecated":false,"id":"validate_locale/1","title":"validate_locale(locale)"},{"anchor":"validate_number_system/1","deprecated":false,"id":"validate_number_system/1","title":"validate_number_system(number_system)"},{"anchor":"validate_number_system_type/1","deprecated":false,"id":"validate_number_system_type/1","title":"validate_number_system_type(number_system_type)"},{"anchor":"validate_territory/1","deprecated":false,"id":"validate_territory/1","title":"validate_territory(territory)"},{"anchor":"with_locale/2","deprecated":false,"id":"with_locale/2","title":"with_locale(locale, fun)"}]}],"sections":[],"title":"Plausible.Cldr"},{"deprecated":false,"group":"","id":"Plausible.Cldr.AcceptLanguage","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"best_match/1","deprecated":false,"id":"best_match/1","title":"best_match(accept_language)"},{"anchor":"parse/1","deprecated":false,"id":"parse/1","title":"parse(tokens_or_string)"},{"anchor":"parse!/1","deprecated":false,"id":"parse!/1","title":"parse!(accept_language)"}]}],"sections":[],"title":"Plausible.Cldr.AcceptLanguage"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Currency","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"currencies_for_locale/3","deprecated":false,"id":"currencies_for_locale/3","title":"currencies_for_locale(locale, only \\\\ :all, except \\\\ nil)"},{"anchor":"currencies_for_locale!/3","deprecated":false,"id":"currencies_for_locale!/3","title":"currencies_for_locale!(locale, only \\\\ :all, except \\\\ nil)"},{"anchor":"currency_for_code/2","deprecated":false,"id":"currency_for_code/2","title":"currency_for_code(currency_or_currency_code, options \\\\ [locale: Plausible.Cldr.default_locale()])"},{"anchor":"currency_for_code!/2","deprecated":false,"id":"currency_for_code!/2","title":"currency_for_code!(currency_or_currency_code, options \\\\ [locale: Plausible.Cldr.default_locale()])"},{"anchor":"currency_from_locale/1","deprecated":false,"id":"currency_from_locale/1","title":"currency_from_locale(locale)"},{"anchor":"currency_history_for_locale/1","deprecated":false,"id":"currency_history_for_locale/1","title":"currency_history_for_locale(language_tag)"},{"anchor":"currency_strings/3","deprecated":false,"id":"currency_strings/3","title":"currency_strings(locale, only \\\\ :all, except \\\\ nil)"},{"anchor":"currency_strings!/3","deprecated":false,"id":"currency_strings!/3","title":"currency_strings!(locale_name, only \\\\ :all, except \\\\ nil)"},{"anchor":"current_currency_from_locale/1","deprecated":false,"id":"current_currency_from_locale/1","title":"current_currency_from_locale(locale)"},{"anchor":"current_territory_currencies/0","deprecated":false,"id":"current_territory_currencies/0","title":"current_territory_currencies()"},{"anchor":"known_currencies/0","deprecated":false,"id":"known_currencies/0","title":"known_currencies()"},{"anchor":"known_currency?/1","deprecated":false,"id":"known_currency?/1","title":"known_currency?(code)"},{"anchor":"known_currency_code/1","deprecated":false,"id":"known_currency_code/1","title":"known_currency_code(currency_code)"},{"anchor":"known_currency_code?/1","deprecated":false,"id":"known_currency_code?/1","title":"known_currency_code?(currency_code)"},{"anchor":"known_currency_codes/0","deprecated":false,"id":"known_currency_codes/0","title":"known_currency_codes()"},{"anchor":"new/2","deprecated":false,"id":"new/2","title":"new(currency, options \\\\ [])"},{"anchor":"pluralize/3","deprecated":false,"id":"pluralize/3","title":"pluralize(number, currency, options \\\\ [])"},{"anchor":"strings_for_currency/2","deprecated":false,"id":"strings_for_currency/2","title":"strings_for_currency(currency, locale)"}]}],"sections":[],"title":"Plausible.Cldr.Currency"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Locale","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fallback_locale_names/1","deprecated":false,"id":"fallback_locale_names/1","title":"fallback_locale_names(locale)"},{"anchor":"fallback_locales/1","deprecated":false,"id":"fallback_locales/1","title":"fallback_locales(locale)"},{"anchor":"locale_for_territory/1","deprecated":false,"id":"locale_for_territory/1","title":"locale_for_territory(territory)"},{"anchor":"locale_from_host/2","deprecated":false,"id":"locale_from_host/2","title":"locale_from_host(host, options \\\\ [])"},{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(locale_name)"},{"anchor":"new!/1","deprecated":false,"id":"new!/1","title":"new!(locale_name)"},{"anchor":"script_direction_from_locale/1","deprecated":false,"id":"script_direction_from_locale/1","title":"script_direction_from_locale(locale)"},{"anchor":"territory_from_host/1","deprecated":false,"id":"territory_from_host/1","title":"territory_from_host(host)"},{"anchor":"territory_from_locale/1","deprecated":false,"id":"territory_from_locale/1","title":"territory_from_locale(locale)"},{"anchor":"timezone_from_locale/1","deprecated":false,"id":"timezone_from_locale/1","title":"timezone_from_locale(locale)"}]}],"sections":[],"title":"Plausible.Cldr.Locale"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"parse/2","deprecated":false,"id":"parse/2","title":"parse(string, options \\\\ [])"},{"anchor":"resolve_currencies/2","deprecated":false,"id":"resolve_currencies/2","title":"resolve_currencies(list, options \\\\ [])"},{"anchor":"resolve_currency/2","deprecated":false,"id":"resolve_currency/2","title":"resolve_currency(string, options \\\\ [])"},{"anchor":"resolve_per/2","deprecated":false,"id":"resolve_per/2","title":"resolve_per(string, options \\\\ [])"},{"anchor":"resolve_pers/2","deprecated":false,"id":"resolve_pers/2","title":"resolve_pers(list, options \\\\ [])"},{"anchor":"scan/2","deprecated":false,"id":"scan/2","title":"scan(string, options \\\\ [])"},{"anchor":"to_approx_string/2","deprecated":false,"id":"to_approx_string/2","title":"to_approx_string(number, options \\\\ [])"},{"anchor":"to_at_least_string/2","deprecated":false,"id":"to_at_least_string/2","title":"to_at_least_string(number, options \\\\ [])"},{"anchor":"to_at_most_string/2","deprecated":false,"id":"to_at_most_string/2","title":"to_at_most_string(number, options \\\\ [])"},{"anchor":"to_range_string/2","deprecated":false,"id":"to_range_string/2","title":"to_range_string(range, options \\\\ [])"},{"anchor":"to_string/2","deprecated":false,"id":"to_string/2","title":"to_string(number, options \\\\ default_options())"},{"anchor":"to_string!/2","deprecated":false,"id":"to_string!/2","title":"to_string!(number, options \\\\ default_options())"},{"anchor":"validate_number_system/2","deprecated":false,"id":"validate_number_system/2","title":"validate_number_system(locale, number_system)"}]}],"sections":[],"title":"Plausible.Cldr.Number"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Cardinal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"available_locale_names/0","deprecated":false,"id":"available_locale_names/0","title":"available_locale_names()"},{"anchor":"known_locale_names/0","deprecated":false,"id":"known_locale_names/0","title":"known_locale_names()"},{"anchor":"plural_rule/3","deprecated":false,"id":"plural_rule/3","title":"plural_rule(number, locale, rounding \\\\ Math.default_rounding())"},{"anchor":"plural_rules/0","deprecated":false,"id":"plural_rules/0","title":"plural_rules()"},{"anchor":"plural_rules_for/1","deprecated":false,"id":"plural_rules_for/1","title":"plural_rules_for(locale_name)"},{"anchor":"pluralize/3","deprecated":false,"id":"pluralize/3","title":"pluralize(number, locale_name, substitutions)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Cardinal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Format","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_formats_for/1","deprecated":false,"id":"all_formats_for/1","title":"all_formats_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"all_formats_for!/1","deprecated":false,"id":"all_formats_for!/1","title":"all_formats_for!(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"currency_spacing/2","deprecated":false,"id":"currency_spacing/2","title":"currency_spacing(locale, number_system)"},{"anchor":"decimal_format_list/0","deprecated":false,"id":"decimal_format_list/0","title":"decimal_format_list()"},{"anchor":"decimal_format_list_for/1","deprecated":false,"id":"decimal_format_list_for/1","title":"decimal_format_list_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"default_grouping_for/1","deprecated":false,"id":"default_grouping_for/1","title":"default_grouping_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"default_grouping_for!/1","deprecated":false,"id":"default_grouping_for!/1","title":"default_grouping_for!(locale)"},{"anchor":"formats_for/2","deprecated":false,"id":"formats_for/2","title":"formats_for(locale \\\\ Plausible.Cldr.default_locale(), number_system \\\\ Cldr.Number.System.default_number_system_type())"},{"anchor":"formats_for!/2","deprecated":false,"id":"formats_for!/2","title":"formats_for!(locale \\\\ Plausible.Cldr.default_locale(), number_system \\\\ Cldr.Number.System.default_number_system_type())"},{"anchor":"minimum_grouping_digits_for/1","deprecated":false,"id":"minimum_grouping_digits_for/1","title":"minimum_grouping_digits_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"minimum_grouping_digits_for!/1","deprecated":false,"id":"minimum_grouping_digits_for!/1","title":"minimum_grouping_digits_for!(locale)"}]}],"sections":[{"anchor":"module-number-pattern-examples","id":"Number Pattern Examples"}],"title":"Plausible.Cldr.Number.Format"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Formatter.Decimal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"metadata!/1","deprecated":false,"id":"metadata!/1","title":"metadata!(format)"},{"anchor":"to_string/3","deprecated":false,"id":"to_string/3","title":"to_string(number, format, options \\\\ [])"}]}],"sections":[],"title":"Plausible.Cldr.Number.Formatter.Decimal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Ordinal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"available_locale_names/0","deprecated":false,"id":"available_locale_names/0","title":"available_locale_names()"},{"anchor":"known_locale_names/0","deprecated":false,"id":"known_locale_names/0","title":"known_locale_names()"},{"anchor":"plural_rule/3","deprecated":false,"id":"plural_rule/3","title":"plural_rule(number, locale, rounding \\\\ Math.default_rounding())"},{"anchor":"plural_rules/0","deprecated":false,"id":"plural_rules/0","title":"plural_rules()"},{"anchor":"plural_rules_for/1","deprecated":false,"id":"plural_rules_for/1","title":"plural_rules_for(locale_name)"},{"anchor":"pluralize/3","deprecated":false,"id":"pluralize/3","title":"pluralize(number, locale_name, substitutions)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Ordinal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.PluralRule.Range","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"plural_rule/3","deprecated":false,"id":"plural_rule/3","title":"plural_rule(first, last, locale)"}]}],"sections":[],"title":"Plausible.Cldr.Number.PluralRule.Range"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Symbol","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_decimal_symbols/0","deprecated":false,"id":"all_decimal_symbols/0","title":"all_decimal_symbols()"},{"anchor":"all_decimal_symbols_class/0","deprecated":false,"id":"all_decimal_symbols_class/0","title":"all_decimal_symbols_class()"},{"anchor":"all_grouping_symbols/0","deprecated":false,"id":"all_grouping_symbols/0","title":"all_grouping_symbols()"},{"anchor":"all_grouping_symbols_class/0","deprecated":false,"id":"all_grouping_symbols_class/0","title":"all_grouping_symbols_class()"},{"anchor":"number_symbols_for/1","deprecated":false,"id":"number_symbols_for/1","title":"number_symbols_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"number_symbols_for/2","deprecated":false,"id":"number_symbols_for/2","title":"number_symbols_for(locale, number_system)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Symbol"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.System","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"number_system_for/2","deprecated":false,"id":"number_system_for/2","title":"number_system_for(locale, system_name)"},{"anchor":"number_system_from_locale/1","deprecated":false,"id":"number_system_from_locale/1","title":"number_system_from_locale(locale)"},{"anchor":"number_system_names_for/1","deprecated":false,"id":"number_system_names_for/1","title":"number_system_names_for(locale)"},{"anchor":"number_system_names_for!/1","deprecated":false,"id":"number_system_names_for!/1","title":"number_system_names_for!(locale)"},{"anchor":"number_system_types_for/1","deprecated":false,"id":"number_system_types_for/1","title":"number_system_types_for(locale)"},{"anchor":"number_systems_for/1","deprecated":false,"id":"number_systems_for/1","title":"number_systems_for(locale)"},{"anchor":"number_systems_for!/1","deprecated":false,"id":"number_systems_for!/1","title":"number_systems_for!(locale)"},{"anchor":"number_systems_like/2","deprecated":false,"id":"number_systems_like/2","title":"number_systems_like(locale, number_system)"},{"anchor":"system_name_from/2","deprecated":false,"id":"system_name_from/2","title":"system_name_from(system_name, locale)"},{"anchor":"to_system/2","deprecated":false,"id":"to_system/2","title":"to_system(number, system)"},{"anchor":"to_system!/2","deprecated":false,"id":"to_system!/2","title":"to_system!(number, system_name)"}]}],"sections":[],"title":"Plausible.Cldr.Number.System"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Transliterate","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"transliterate/3","deprecated":false,"id":"transliterate/3","title":"transliterate(sequence, locale \\\\ Plausible.Cldr.get_locale(), number_system \\\\ System.default_number_system_type())"},{"anchor":"transliterate!/3","deprecated":false,"id":"transliterate!/3","title":"transliterate!(sequence, locale, number_system)"},{"anchor":"transliterate_digits/3","deprecated":false,"id":"transliterate_digits/3","title":"transliterate_digits(digits, from_system, to_system)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Transliterate"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Rbnf.NumberSystem","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_rule_sets/0","deprecated":false,"id":"all_rule_sets/0","title":"all_rule_sets()"},{"anchor":"armenian_lower/1","deprecated":false,"id":"armenian_lower/1","title":"armenian_lower(number)"},{"anchor":"armenian_lower/2","deprecated":false,"id":"armenian_lower/2","title":"armenian_lower(number, locale)"},{"anchor":"armenian_upper/1","deprecated":false,"id":"armenian_upper/1","title":"armenian_upper(number)"},{"anchor":"armenian_upper/2","deprecated":false,"id":"armenian_upper/2","title":"armenian_upper(number, locale)"},{"anchor":"cyrillic_lower/1","deprecated":false,"id":"cyrillic_lower/1","title":"cyrillic_lower(number)"},{"anchor":"cyrillic_lower/2","deprecated":false,"id":"cyrillic_lower/2","title":"cyrillic_lower(number, locale)"},{"anchor":"cyrillic_lower_1_10/2","deprecated":false,"id":"cyrillic_lower_1_10/2","title":"cyrillic_lower_1_10(number, language_tag)"},{"anchor":"cyrillic_lower_final/2","deprecated":false,"id":"cyrillic_lower_final/2","title":"cyrillic_lower_final(number, language_tag)"},{"anchor":"cyrillic_lower_post/2","deprecated":false,"id":"cyrillic_lower_post/2","title":"cyrillic_lower_post(number, language_tag)"},{"anchor":"cyrillic_lower_thousands/2","deprecated":false,"id":"cyrillic_lower_thousands/2","title":"cyrillic_lower_thousands(number, language_tag)"},{"anchor":"ethiopic/1","deprecated":false,"id":"ethiopic/1","title":"ethiopic(number)"},{"anchor":"ethiopic/2","deprecated":false,"id":"ethiopic/2","title":"ethiopic(number, locale)"},{"anchor":"ethiopic_p1/2","deprecated":false,"id":"ethiopic_p1/2","title":"ethiopic_p1(number, language_tag)"},{"anchor":"ethiopic_p2/2","deprecated":false,"id":"ethiopic_p2/2","title":"ethiopic_p2(number, language_tag)"},{"anchor":"ethiopic_p3/2","deprecated":false,"id":"ethiopic_p3/2","title":"ethiopic_p3(number, language_tag)"},{"anchor":"ethiopic_p/2","deprecated":false,"id":"ethiopic_p/2","title":"ethiopic_p(number, language_tag)"},{"anchor":"georgian/1","deprecated":false,"id":"georgian/1","title":"georgian(number)"},{"anchor":"georgian/2","deprecated":false,"id":"georgian/2","title":"georgian(number, locale)"},{"anchor":"greek_lower/1","deprecated":false,"id":"greek_lower/1","title":"greek_lower(number)"},{"anchor":"greek_lower/2","deprecated":false,"id":"greek_lower/2","title":"greek_lower(number, locale)"},{"anchor":"greek_numeral_majuscules/2","deprecated":false,"id":"greek_numeral_majuscules/2","title":"greek_numeral_majuscules(number, language_tag)"},{"anchor":"greek_numeral_minuscules/2","deprecated":false,"id":"greek_numeral_minuscules/2","title":"greek_numeral_minuscules(number, language_tag)"},{"anchor":"greek_upper/1","deprecated":false,"id":"greek_upper/1","title":"greek_upper(number)"},{"anchor":"greek_upper/2","deprecated":false,"id":"greek_upper/2","title":"greek_upper(number, locale)"},{"anchor":"hebrew/1","deprecated":false,"id":"hebrew/1","title":"hebrew(number)"},{"anchor":"hebrew/2","deprecated":false,"id":"hebrew/2","title":"hebrew(number, locale)"},{"anchor":"hebrew_0_99/2","deprecated":false,"id":"hebrew_0_99/2","title":"hebrew_0_99(number, language_tag)"},{"anchor":"hebrew_item/1","deprecated":false,"id":"hebrew_item/1","title":"hebrew_item(number)"},{"anchor":"hebrew_item/2","deprecated":false,"id":"hebrew_item/2","title":"hebrew_item(number, locale)"},{"anchor":"hebrew_item_hundreds/2","deprecated":false,"id":"hebrew_item_hundreds/2","title":"hebrew_item_hundreds(number, language_tag)"},{"anchor":"hebrew_thousands/2","deprecated":false,"id":"hebrew_thousands/2","title":"hebrew_thousands(number, language_tag)"},{"anchor":"roman_lower/1","deprecated":false,"id":"roman_lower/1","title":"roman_lower(number)"},{"anchor":"roman_lower/2","deprecated":false,"id":"roman_lower/2","title":"roman_lower(number, locale)"},{"anchor":"roman_upper/1","deprecated":false,"id":"roman_upper/1","title":"roman_upper(number)"},{"anchor":"roman_upper/2","deprecated":false,"id":"roman_upper/2","title":"roman_upper(number, locale)"},{"anchor":"rule_sets/0","deprecated":false,"id":"rule_sets/0","title":"rule_sets()"},{"anchor":"rule_sets/1","deprecated":false,"id":"rule_sets/1","title":"rule_sets(rbnf_locale_name)"},{"anchor":"tamil/1","deprecated":false,"id":"tamil/1","title":"tamil(number)"},{"anchor":"tamil/2","deprecated":false,"id":"tamil/2","title":"tamil(number, locale)"},{"anchor":"tamil_thousands/2","deprecated":false,"id":"tamil_thousands/2","title":"tamil_thousands(number, language_tag)"},{"anchor":"zz_default/1","deprecated":false,"id":"zz_default/1","title":"zz_default(number)"},{"anchor":"zz_default/2","deprecated":false,"id":"zz_default/2","title":"zz_default(number, locale)"}]}],"sections":[],"title":"Plausible.Cldr.Rbnf.NumberSystem"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Rbnf.Ordinal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_rule_sets/0","deprecated":false,"id":"all_rule_sets/0","title":"all_rule_sets()"},{"anchor":"digits_ordinal/2","deprecated":false,"id":"digits_ordinal/2","title":"digits_ordinal(number, locale)"},{"anchor":"rule_sets/0","deprecated":false,"id":"rule_sets/0","title":"rule_sets()"},{"anchor":"rule_sets/1","deprecated":false,"id":"rule_sets/1","title":"rule_sets(rbnf_locale_name)"}]}],"sections":[],"title":"Plausible.Cldr.Rbnf.Ordinal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Rbnf.Spellout","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_rule_sets/0","deprecated":false,"id":"all_rule_sets/0","title":"all_rule_sets()"},{"anchor":"and/2","deprecated":false,"id":"and/2","title":"number and language_tag"},{"anchor":"and_o/2","deprecated":false,"id":"and_o/2","title":"and_o(number, language_tag)"},{"anchor":"commas/2","deprecated":false,"id":"commas/2","title":"commas(number, language_tag)"},{"anchor":"commas_o/2","deprecated":false,"id":"commas_o/2","title":"commas_o(number, language_tag)"},{"anchor":"r2d_year/2","deprecated":false,"id":"r2d_year/2","title":"r2d_year(number, language_tag)"},{"anchor":"rule_sets/0","deprecated":false,"id":"rule_sets/0","title":"rule_sets()"},{"anchor":"rule_sets/1","deprecated":false,"id":"rule_sets/1","title":"rule_sets(rbnf_locale_name)"},{"anchor":"spellout_cardinal/2","deprecated":false,"id":"spellout_cardinal/2","title":"spellout_cardinal(number, locale)"},{"anchor":"spellout_cardinal_verbose/2","deprecated":false,"id":"spellout_cardinal_verbose/2","title":"spellout_cardinal_verbose(number, locale)"},{"anchor":"spellout_numbering/2","deprecated":false,"id":"spellout_numbering/2","title":"spellout_numbering(number, locale)"},{"anchor":"spellout_numbering_verbose/2","deprecated":false,"id":"spellout_numbering_verbose/2","title":"spellout_numbering_verbose(number, locale)"},{"anchor":"spellout_numbering_year/2","deprecated":false,"id":"spellout_numbering_year/2","title":"spellout_numbering_year(number, locale)"},{"anchor":"spellout_ordinal/2","deprecated":false,"id":"spellout_ordinal/2","title":"spellout_ordinal(number, locale)"},{"anchor":"spellout_ordinal_verbose/2","deprecated":false,"id":"spellout_ordinal_verbose/2","title":"spellout_ordinal_verbose(number, locale)"},{"anchor":"th/2","deprecated":false,"id":"th/2","title":"th(number, language_tag)"},{"anchor":"tieth/2","deprecated":false,"id":"tieth/2","title":"tieth(number, language_tag)"}]}],"sections":[],"title":"Plausible.Cldr.Rbnf.Spellout"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseEventV2","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(attrs)"}]}],"sections":[],"title":"Plausible.ClickhouseEventV2"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"parallel_tasks/1","deprecated":false,"id":"parallel_tasks/1","title":"parallel_tasks(queries)"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"}]}],"sections":[],"title":"Plausible.ClickhouseRepo"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseSessionV2","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"random_uint64/0","deprecated":false,"id":"random_uint64/0","title":"random_uint64()"}]}],"sections":[],"title":"Plausible.ClickhouseSessionV2"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseSessionV2.BoolUInt8","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"embed_as/1","deprecated":false,"id":"embed_as/1","title":"embed_as(_)"},{"anchor":"equal?/2","deprecated":false,"id":"equal?/2","title":"equal?(term1, term2)"}]}],"sections":[],"title":"Plausible.ClickhouseSessionV2.BoolUInt8"},{"deprecated":false,"group":"","id":"Plausible.ConfigHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get_int_from_path_or_env/3","deprecated":false,"id":"get_int_from_path_or_env/3","title":"get_int_from_path_or_env(config_dir, var_name, default \\\\ nil)"},{"anchor":"get_var_from_path_or_env/3","deprecated":false,"id":"get_var_from_path_or_env/3","title":"get_var_from_path_or_env(config_dir, var_name, default \\\\ nil)"}]}],"sections":[],"title":"Plausible.ConfigHelpers"},{"deprecated":false,"group":"","id":"Plausible.DataCase","sections":[],"title":"Plausible.DataCase"},{"deprecated":false,"group":"","id":"Plausible.DataMigration","sections":[],"title":"Plausible.DataMigration"},{"deprecated":false,"group":"","id":"Plausible.DataMigration.NumericIDs","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"confirm/3","deprecated":false,"id":"confirm/3","title":"confirm(message, func, default_choice \\\\ :yes)"},{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(opts \\\\ [])"},{"anchor":"run_sql/2","deprecated":false,"id":"run_sql/2","title":"run_sql(name, assigns \\\\ [])"},{"anchor":"run_sql_confirm/2","deprecated":false,"id":"run_sql_confirm/2","title":"run_sql_confirm(name, options \\\\ [])"}]}],"sections":[],"title":"Plausible.DataMigration.NumericIDs"},{"deprecated":false,"group":"","id":"Plausible.DataMigration.Repo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start/2","deprecated":false,"id":"start/2","title":"start(url, max_threads)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.DataMigration.Repo"},{"deprecated":false,"group":"","id":"Plausible.DataMigration.RewriteFunnelDupes","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"apply_change/2","deprecated":false,"id":"apply_change/2","title":"apply_change(funnel_id, change)"},{"anchor":"confirm/3","deprecated":false,"id":"confirm/3","title":"confirm(message, func, default_choice \\\\ :yes)"},{"anchor":"execute/1","deprecated":false,"id":"execute/1","title":"execute(data)"},{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_ \\\\ [])"},{"anchor":"run_sql/2","deprecated":false,"id":"run_sql/2","title":"run_sql(name, assigns \\\\ [])"},{"anchor":"run_sql_confirm/2","deprecated":false,"id":"run_sql_confirm/2","title":"run_sql_confirm(name, options \\\\ [])"},{"anchor":"to_db_ops/1","deprecated":false,"id":"to_db_ops/1","title":"to_db_ops(meta)"},{"anchor":"to_map/1","deprecated":false,"id":"to_map/1","title":"to_map(row)"},{"anchor":"translate_to_db_ops/1","deprecated":false,"id":"translate_to_db_ops/1","title":"translate_to_db_ops(data)"}]}],"sections":[],"title":"Plausible.DataMigration.RewriteFunnelDupes"},{"deprecated":false,"group":"","id":"Plausible.DebugReplayInfo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"deserialize/1","deprecated":false,"id":"deserialize/1","title":"deserialize(replay_info)"},{"anchor":"include_sentry_replay_info/0","deprecated":false,"id":"include_sentry_replay_info/0","title":"include_sentry_replay_info()"}]}],"sections":[],"title":"Plausible.DebugReplayInfo"},{"deprecated":false,"group":"","id":"Plausible.Ecto.EventName","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"cast/1","deprecated":false,"id":"cast/1","title":"cast(val)"},{"anchor":"dump/1","deprecated":false,"id":"dump/1","title":"dump(val)"},{"anchor":"embed_as/1","deprecated":false,"id":"embed_as/1","title":"embed_as(_)"},{"anchor":"equal?/2","deprecated":false,"id":"equal?/2","title":"equal?(term1, term2)"},{"anchor":"load/1","deprecated":false,"id":"load/1","title":"load(val)"},{"anchor":"type/0","deprecated":false,"id":"type/0","title":"type()"}]}],"sections":[],"title":"Plausible.Ecto.EventName"},{"deprecated":false,"group":"","id":"Plausible.Event.WriteBuffer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"},{"anchor":"flush/0","deprecated":false,"id":"flush/0","title":"flush()"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(buffer)"},{"anchor":"insert/1","deprecated":false,"id":"insert/1","title":"insert(event)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts)"}]}],"sections":[],"title":"Plausible.Event.WriteBuffer"},{"deprecated":false,"group":"","id":"Plausible.Factory","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"api_key_factory/0","deprecated":false,"id":"api_key_factory/0","title":"api_key_factory()"},{"anchor":"build/2","deprecated":false,"id":"build/2","title":"build(factory_name, attrs \\\\ %{})"},{"anchor":"build_list/3","deprecated":false,"id":"build_list/3","title":"build_list(number_of_records, factory_name, attrs \\\\ %{})"},{"anchor":"build_pair/2","deprecated":false,"id":"build_pair/2","title":"build_pair(factory_name, attrs \\\\ %{})"},{"anchor":"ch_session_factory/0","deprecated":false,"id":"ch_session_factory/0","title":"ch_session_factory()"},{"anchor":"create/1","deprecated":false,"id":"create/1","title":"create(_)"},{"anchor":"create/2","deprecated":false,"id":"create/2","title":"create(_, _)"},{"anchor":"create_list/3","deprecated":false,"id":"create_list/3","title":"create_list(_, _, _)"},{"anchor":"create_pair/2","deprecated":false,"id":"create_pair/2","title":"create_pair(_, _)"},{"anchor":"custom_domain_factory/0","deprecated":false,"id":"custom_domain_factory/0","title":"custom_domain_factory()"},{"anchor":"enterprise_plan_factory/0","deprecated":false,"id":"enterprise_plan_factory/0","title":"enterprise_plan_factory()"},{"anchor":"event_factory/0","deprecated":false,"id":"event_factory/0","title":"event_factory()"},{"anchor":"factory/1","deprecated":false,"id":"factory/1","title":"factory(factory_name)"},{"anchor":"goal_factory/0","deprecated":false,"id":"goal_factory/0","title":"goal_factory()"},{"anchor":"google_auth_factory/0","deprecated":false,"id":"google_auth_factory/0","title":"google_auth_factory()"},{"anchor":"imported_browsers_factory/0","deprecated":false,"id":"imported_browsers_factory/0","title":"imported_browsers_factory()"},{"anchor":"imported_devices_factory/0","deprecated":false,"id":"imported_devices_factory/0","title":"imported_devices_factory()"},{"anchor":"imported_entry_pages_factory/0","deprecated":false,"id":"imported_entry_pages_factory/0","title":"imported_entry_pages_factory()"},{"anchor":"imported_exit_pages_factory/0","deprecated":false,"id":"imported_exit_pages_factory/0","title":"imported_exit_pages_factory()"},{"anchor":"imported_locations_factory/0","deprecated":false,"id":"imported_locations_factory/0","title":"imported_locations_factory()"},{"anchor":"imported_operating_systems_factory/0","deprecated":false,"id":"imported_operating_systems_factory/0","title":"imported_operating_systems_factory()"},{"anchor":"imported_pages_factory/0","deprecated":false,"id":"imported_pages_factory/0","title":"imported_pages_factory()"},{"anchor":"imported_sources_factory/0","deprecated":false,"id":"imported_sources_factory/0","title":"imported_sources_factory()"},{"anchor":"imported_visitors_factory/0","deprecated":false,"id":"imported_visitors_factory/0","title":"imported_visitors_factory()"},{"anchor":"insert/1","deprecated":false,"id":"insert/1","title":"insert(already_built_record)"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(already_built_record, function_opts)"},{"anchor":"insert/3","deprecated":false,"id":"insert/3","title":"insert(factory_name, attrs, opts)"},{"anchor":"insert_list/3","deprecated":false,"id":"insert_list/3","title":"insert_list(number_of_records, factory_name, attrs \\\\ %{})"},{"anchor":"insert_list/4","deprecated":false,"id":"insert_list/4","title":"insert_list(number_of_records, factory_name, attrs, opts)"},{"anchor":"insert_pair/2","deprecated":false,"id":"insert_pair/2","title":"insert_pair(factory_name, attrs \\\\ %{})"},{"anchor":"insert_pair/3","deprecated":false,"id":"insert_pair/3","title":"insert_pair(factory_name, attrs, opts)"},{"anchor":"invitation_factory/0","deprecated":false,"id":"invitation_factory/0","title":"invitation_factory()"},{"anchor":"monthly_report_factory/0","deprecated":false,"id":"monthly_report_factory/0","title":"monthly_report_factory()"},{"anchor":"pageview_factory/0","deprecated":false,"id":"pageview_factory/0","title":"pageview_factory()"},{"anchor":"params_for/2","deprecated":false,"id":"params_for/2","title":"params_for(factory_name, attrs \\\\ %{})"},{"anchor":"params_with_assocs/2","deprecated":false,"id":"params_with_assocs/2","title":"params_with_assocs(factory_name, attrs \\\\ %{})"},{"anchor":"shared_link_factory/0","deprecated":false,"id":"shared_link_factory/0","title":"shared_link_factory()"},{"anchor":"site_factory/0","deprecated":false,"id":"site_factory/0","title":"site_factory()"},{"anchor":"site_membership_factory/0","deprecated":false,"id":"site_membership_factory/0","title":"site_membership_factory()"},{"anchor":"spike_notification_factory/0","deprecated":false,"id":"spike_notification_factory/0","title":"spike_notification_factory()"},{"anchor":"string_params_for/2","deprecated":false,"id":"string_params_for/2","title":"string_params_for(factory_name, attrs \\\\ %{})"},{"anchor":"string_params_with_assocs/2","deprecated":false,"id":"string_params_with_assocs/2","title":"string_params_with_assocs(factory_name, attrs \\\\ %{})"},{"anchor":"subscription_factory/0","deprecated":false,"id":"subscription_factory/0","title":"subscription_factory()"},{"anchor":"user_factory/1","deprecated":false,"id":"user_factory/1","title":"user_factory(attrs)"},{"anchor":"weekly_report_factory/0","deprecated":false,"id":"weekly_report_factory/0","title":"weekly_report_factory()"}]}],"sections":[],"title":"Plausible.Factory"},{"deprecated":false,"group":"","id":"Plausible.Funnel","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(funnel \\\\ %__MODULE__{}, attrs \\\\ %{})"},{"anchor":"max_steps/0","deprecated":false,"id":"max_steps/0","title":"max_steps()"},{"anchor":"min_steps/0","deprecated":false,"id":"min_steps/0","title":"min_steps()"},{"anchor":"put_step_orders/1","deprecated":false,"id":"put_step_orders/1","title":"put_step_orders(changeset)"}]}],"sections":[],"title":"Plausible.Funnel"},{"deprecated":false,"group":"","id":"Plausible.Funnel.Step","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(step, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Funnel.Step"},{"deprecated":false,"group":"","id":"Plausible.Funnels","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create/3","deprecated":false,"id":"create/3","title":"create(site, name, steps)"},{"anchor":"create_changeset/3","deprecated":false,"id":"create_changeset/3","title":"create_changeset(site, name, steps)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(site_id, funnel_id)"},{"anchor":"ephemeral_definition/3","deprecated":false,"id":"ephemeral_definition/3","title":"ephemeral_definition(site, name, steps)"},{"anchor":"get/2","deprecated":false,"id":"get/2","title":"get(site_id, by)"},{"anchor":"list/1","deprecated":false,"id":"list/1","title":"list(site)"}]}],"sections":[],"title":"Plausible.Funnels"},{"deprecated":false,"group":"","id":"Plausible.Geo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"await_loader/0","deprecated":false,"id":"await_loader/0","title":"await_loader()"},{"anchor":"database_type/0","deprecated":false,"id":"database_type/0","title":"database_type()"},{"anchor":"load_db/1","deprecated":false,"id":"load_db/1","title":"load_db(opts)"},{"anchor":"lookup/1","deprecated":false,"id":"lookup/1","title":"lookup(ip_address)"}]}],"sections":[],"title":"Plausible.Geo"},{"deprecated":false,"group":"","id":"Plausible.Goal","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(goal, attrs \\\\ %{})"},{"anchor":"currency_options/0","deprecated":false,"id":"currency_options/0","title":"currency_options()"},{"anchor":"revenue?/1","deprecated":false,"id":"revenue?/1","title":"revenue?(goal)"},{"anchor":"valid_currencies/0","deprecated":false,"id":"valid_currencies/0","title":"valid_currencies()"}]}],"sections":[],"title":"Plausible.Goal"},{"deprecated":false,"group":"","id":"Plausible.Goals","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"count/1","deprecated":false,"id":"count/1","title":"count(site)"},{"anchor":"create/3","deprecated":false,"id":"create/3","title":"create(site, params, now \\\\ DateTime.utc_now())"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(id, site_id)"},{"anchor":"find_or_create/2","deprecated":false,"id":"find_or_create/2","title":"find_or_create(site, map)"},{"anchor":"for_site/2","deprecated":false,"id":"for_site/2","title":"for_site(site, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Goals"},{"deprecated":false,"group":"","id":"Plausible.Google.Api","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:google_analytics_view/0","deprecated":false,"id":"google_analytics_view/0","title":"google_analytics_view()"},{"anchor":"t:import_auth/0","deprecated":false,"id":"import_auth/0","title":"import_auth()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_and_persist/3","deprecated":false,"id":"fetch_and_persist/3","title":"fetch_and_persist(site, report_request, opts \\\\ [])"},{"anchor":"fetch_stats/3","deprecated":false,"id":"fetch_stats/3","title":"fetch_stats(site, map, limit)"},{"anchor":"fetch_verified_properties/1","deprecated":false,"id":"fetch_verified_properties/1","title":"fetch_verified_properties(auth)"},{"anchor":"get_view/2","deprecated":false,"id":"get_view/2","title":"get_view(access_token, lookup_id)"},{"anchor":"import_analytics/4","deprecated":false,"id":"import_analytics/4","title":"import_analytics(site, date_range, view_id, auth)"},{"anchor":"import_authorize_url/2","deprecated":false,"id":"import_authorize_url/2","title":"import_authorize_url(site_id, redirect_to)"},{"anchor":"list_views/1","deprecated":false,"id":"list_views/1","title":"list_views(access_token)"},{"anchor":"search_console_authorize_url/2","deprecated":false,"id":"search_console_authorize_url/2","title":"search_console_authorize_url(site_id, redirect_to)"}]}],"sections":[],"title":"Plausible.Google.Api"},{"deprecated":false,"group":"","id":"Plausible.Google.Api.Mock","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_stats/3","deprecated":false,"id":"fetch_stats/3","title":"fetch_stats(auth, query, limit)"}]}],"sections":[],"title":"Plausible.Google.Api.Mock"},{"deprecated":false,"group":"","id":"Plausible.Google.Buffer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"},{"anchor":"flush/2","deprecated":false,"id":"flush/2","title":"flush(pid, timeout \\\\ :infinity)"},{"anchor":"handle_continue/2","deprecated":false,"id":"handle_continue/2","title":"handle_continue(arg, state)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"},{"anchor":"insert_many/3","deprecated":false,"id":"insert_many/3","title":"insert_many(pid, table_name, records)"},{"anchor":"size/2","deprecated":false,"id":"size/2","title":"size(pid, table_name)"},{"anchor":"start_link/0","deprecated":false,"id":"start_link/0","title":"start_link()"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(pid)"}]}],"sections":[],"title":"Plausible.Google.Buffer"},{"deprecated":false,"group":"","id":"Plausible.Google.HTTP","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_access_token/1","deprecated":false,"id":"fetch_access_token/1","title":"fetch_access_token(code)"},{"anchor":"get_analytics_start_date/2","deprecated":false,"id":"get_analytics_start_date/2","title":"get_analytics_start_date(view_id, access_token)"},{"anchor":"get_report/1","deprecated":false,"id":"get_report/1","title":"get_report(report_request)"},{"anchor":"list_sites/1","deprecated":false,"id":"list_sites/1","title":"list_sites(access_token)"},{"anchor":"list_stats/5","deprecated":false,"id":"list_stats/5","title":"list_stats(access_token, property, date_range, limit, page \\\\ nil)"},{"anchor":"list_views_for_user/1","deprecated":false,"id":"list_views_for_user/1","title":"list_views_for_user(access_token)"},{"anchor":"refresh_auth_token/1","deprecated":false,"id":"refresh_auth_token/1","title":"refresh_auth_token(refresh_token)"}]}],"sections":[],"title":"Plausible.Google.HTTP"},{"deprecated":false,"group":"","id":"Plausible.Google.ReportRequest","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"full_report/0","deprecated":false,"id":"full_report/0","title":"full_report()"}]}],"sections":[],"title":"Plausible.Google.ReportRequest"},{"deprecated":false,"group":"","id":"Plausible.HTTPClient","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get/2","deprecated":false,"id":"get/2","title":"get(url, headers \\\\ [])"},{"anchor":"impl/0","deprecated":false,"id":"impl/0","title":"impl()"},{"anchor":"post/4","deprecated":false,"id":"post/4","title":"post(url, headers \\\\ [], params \\\\ nil, finch_req_opts \\\\ [])"}]}],"sections":[],"title":"Plausible.HTTPClient"},{"deprecated":false,"group":"","id":"Plausible.HTTPClient.Interface","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:finch_request_opts/0","deprecated":false,"id":"finch_request_opts/0","title":"finch_request_opts()"},{"anchor":"t:headers/0","deprecated":false,"id":"headers/0","title":"headers()"},{"anchor":"t:params/0","deprecated":false,"id":"params/0","title":"params()"},{"anchor":"t:response/0","deprecated":false,"id":"response/0","title":"response()"},{"anchor":"t:url/0","deprecated":false,"id":"url/0","title":"url()"}]},{"key":"callbacks","name":"Callbacks","nodes":[{"anchor":"c:get/1","deprecated":false,"id":"get/1","title":"get(url)"},{"anchor":"c:get/2","deprecated":false,"id":"get/2","title":"get(url, headers)"},{"anchor":"c:post/3","deprecated":false,"id":"post/3","title":"post(url, headers, params)"},{"anchor":"c:post/4","deprecated":false,"id":"post/4","title":"post(url, headers, params, finch_request_opts)"}]}],"sections":[],"title":"Plausible.HTTPClient.Interface"},{"deprecated":false,"group":"","id":"Plausible.HTTPClient.Non200Error","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(response)"}]}],"sections":[],"title":"Plausible.HTTPClient.Non200Error"},{"deprecated":false,"group":"","id":"Plausible.ImportDeletionRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.ImportDeletionRepo"},{"deprecated":false,"group":"","id":"Plausible.Imported","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"forget/1","deprecated":false,"id":"forget/1","title":"forget(site)"},{"anchor":"from_google_analytics/3","deprecated":false,"id":"from_google_analytics/3","title":"from_google_analytics(data, site_id, table)"},{"anchor":"tables/0","deprecated":false,"id":"tables/0","title":"tables()"}]}],"sections":[],"title":"Plausible.Imported"},{"deprecated":false,"group":"","id":"Plausible.IngestRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.IngestRepo"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"enabled?/0","deprecated":false,"id":"enabled?/0","title":"enabled?()"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(pid)"}]}],"sections":[],"title":"Plausible.Ingestion.Counters"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters.Buffer","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:bucket_fn_opt/0","deprecated":false,"id":"bucket_fn_opt/0","title":"bucket_fn_opt()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"},{"anchor":"t:unix_timestamp/0","deprecated":false,"id":"unix_timestamp/0","title":"unix_timestamp()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(buffer, metric, domain, timestamp)"},{"anchor":"bucket_10s/1","deprecated":false,"id":"bucket_10s/1","title":"bucket_10s(datetime)"},{"anchor":"flush/2","deprecated":false,"id":"flush/2","title":"flush(buffer, now \\\\ DateTime.utc_now())"},{"anchor":"new/2","deprecated":false,"id":"new/2","title":"new(buffer_name, opts \\\\ [])"},{"anchor":"previous_10s/1","deprecated":false,"id":"previous_10s/1","title":"previous_10s(datetime)"}]}],"sections":[],"title":"Plausible.Ingestion.Counters.Buffer"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters.Record","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]}],"sections":[],"title":"Plausible.Ingestion.Counters.Record"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters.TelemetryHandler","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/4","deprecated":false,"id":"handle_event/4","title":"handle_event(list, measurements, map, buffer)"},{"anchor":"install/1","deprecated":false,"id":"install/1","title":"install(buffer)"}]}],"sections":[],"title":"Plausible.Ingestion.Counters.TelemetryHandler"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Event","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:drop_reason/0","deprecated":false,"id":"drop_reason/0","title":"drop_reason()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"build_and_buffer/1","deprecated":false,"id":"build_and_buffer/1","title":"build_and_buffer(request)"},{"anchor":"emit_telemetry_buffered/1","deprecated":false,"id":"emit_telemetry_buffered/1","title":"emit_telemetry_buffered(event)"},{"anchor":"emit_telemetry_dropped/2","deprecated":false,"id":"emit_telemetry_dropped/2","title":"emit_telemetry_dropped(event, reason)"},{"anchor":"telemetry_event_buffered/0","deprecated":false,"id":"telemetry_event_buffered/0","title":"telemetry_event_buffered()"},{"anchor":"telemetry_event_dropped/0","deprecated":false,"id":"telemetry_event_dropped/0","title":"telemetry_event_dropped()"}]}],"sections":[],"title":"Plausible.Ingestion.Event"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Request","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"build/2","deprecated":false,"id":"build/2","title":"build(conn, now \\\\ NaiveDateTime.utc_now())"},{"anchor":"sanitize_hostname/1","deprecated":false,"id":"sanitize_hostname/1","title":"sanitize_hostname(hostname)"}]}],"sections":[],"title":"Plausible.Ingestion.Request"},{"deprecated":false,"group":"","id":"Plausible.Mailer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"deliver/1","deprecated":false,"id":"deliver/1","title":"deliver(email)"},{"anchor":"deliver_later/2","deprecated":false,"id":"deliver_later/2","title":"deliver_later(email, opts \\\\ [])"},{"anchor":"deliver_later!/2","deprecated":false,"id":"deliver_later!/2","title":"deliver_later!(email, opts \\\\ [])"},{"anchor":"deliver_now/2","deprecated":false,"id":"deliver_now/2","title":"deliver_now(email, opts \\\\ [])"},{"anchor":"deliver_now!/2","deprecated":false,"id":"deliver_now!/2","title":"deliver_now!(email, opts \\\\ [])"},{"anchor":"send/1","deprecated":false,"id":"send/1","title":"send(email)"}]}],"sections":[],"title":"Plausible.Mailer"},{"deprecated":false,"group":"","id":"Plausible.OpenTelemetry.Sampler","sections":[],"title":"Plausible.OpenTelemetry.Sampler"},{"deprecated":false,"group":"","id":"Plausible.PaddleApi.Mock","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get_invoices/1","deprecated":false,"id":"get_invoices/1","title":"get_invoices(subscription)"},{"anchor":"get_subscription/1","deprecated":false,"id":"get_subscription/1","title":"get_subscription(_)"},{"anchor":"update_subscription/2","deprecated":false,"id":"update_subscription/2","title":"update_subscription(_, map)"}]}],"sections":[],"title":"Plausible.PaddleApi.Mock"},{"deprecated":false,"group":"","id":"Plausible.Plugins.API.Token","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"generate/1","deprecated":false,"id":"generate/1","title":"generate(random_bytes \\\\ random_bytes())"},{"anchor":"hash/1","deprecated":false,"id":"hash/1","title":"hash(raw)"},{"anchor":"insert_changeset/3","deprecated":false,"id":"insert_changeset/3","title":"insert_changeset(site, map, attrs \\\\ %{})"},{"anchor":"prefix/0","deprecated":false,"id":"prefix/0","title":"prefix()"}]}],"sections":[],"title":"Plausible.Plugins.API.Token"},{"deprecated":false,"group":"","id":"Plausible.Plugins.API.Tokens","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create/2","deprecated":false,"id":"create/2","title":"create(site, description)"},{"anchor":"find/2","deprecated":false,"id":"find/2","title":"find(domain, raw)"}]}],"sections":[],"title":"Plausible.Plugins.API.Tokens"},{"deprecated":false,"group":"","id":"Plausible.PromEx","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"}]}],"sections":[],"title":"Plausible.PromEx"},{"deprecated":false,"group":"","id":"Plausible.PromEx.Plugins.PlausibleMetrics","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"execute_cache_metrics/0","deprecated":false,"id":"execute_cache_metrics/0","title":"execute_cache_metrics()"},{"anchor":"execute_write_buffer_metrics/0","deprecated":false,"id":"execute_write_buffer_metrics/0","title":"execute_write_buffer_metrics()"}]}],"sections":[],"title":"Plausible.PromEx.Plugins.PlausibleMetrics"},{"deprecated":false,"group":"","id":"Plausible.Props","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:prop/0","deprecated":false,"id":"prop/0","title":"prop()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"allow/2","deprecated":false,"id":"allow/2","title":"allow(site, prop_or_props)"},{"anchor":"allow_changeset/2","deprecated":false,"id":"allow_changeset/2","title":"allow_changeset(site, prop_or_props)"},{"anchor":"allow_existing_props/1","deprecated":false,"id":"allow_existing_props/1","title":"allow_existing_props(site)"},{"anchor":"configured?/1","deprecated":false,"id":"configured?/1","title":"configured?(site)"},{"anchor":"disallow/2","deprecated":false,"id":"disallow/2","title":"disallow(site, prop)"},{"anchor":"internal_keys/0","deprecated":false,"id":"internal_keys/0","title":"internal_keys()"},{"anchor":"max_prop_key_length/0","deprecated":false,"id":"max_prop_key_length/0","title":"max_prop_key_length()"},{"anchor":"max_prop_value_length/0","deprecated":false,"id":"max_prop_value_length/0","title":"max_prop_value_length()"},{"anchor":"max_props/0","deprecated":false,"id":"max_props/0","title":"max_props()"},{"anchor":"suggest_keys_to_allow/2","deprecated":false,"id":"suggest_keys_to_allow/2","title":"suggest_keys_to_allow(site, limit \\\\ 300)"}]}],"sections":[],"title":"Plausible.Props"},{"deprecated":false,"group":"","id":"Plausible.Purge","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"delete_imported_stats!/1","deprecated":false,"id":"delete_imported_stats!/1","title":"delete_imported_stats!(site)"},{"anchor":"delete_native_stats!/1","deprecated":false,"id":"delete_native_stats!/1","title":"delete_native_stats!(site)"},{"anchor":"reset!/1","deprecated":false,"id":"reset!/1","title":"reset!(site)"}]}],"sections":[],"title":"Plausible.Purge"},{"deprecated":false,"group":"","id":"Plausible.Release","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"configure_ref_inspector/0","deprecated":false,"id":"configure_ref_inspector/0","title":"configure_ref_inspector()"},{"anchor":"configure_ua_inspector/0","deprecated":false,"id":"configure_ua_inspector/0","title":"configure_ua_inspector()"},{"anchor":"createdb/0","deprecated":false,"id":"createdb/0","title":"createdb()"},{"anchor":"migrate/0","deprecated":false,"id":"migrate/0","title":"migrate()"},{"anchor":"rollback/0","deprecated":false,"id":"rollback/0","title":"rollback()"},{"anchor":"seed/0","deprecated":false,"id":"seed/0","title":"seed()"},{"anchor":"selfhost?/0","deprecated":false,"id":"selfhost?/0","title":"selfhost?()"},{"anchor":"should_be_first_launch?/0","deprecated":false,"id":"should_be_first_launch?/0","title":"should_be_first_launch?()"}]}],"sections":[],"title":"Plausible.Release"},{"deprecated":false,"group":"","id":"Plausible.Repo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"explain/3","deprecated":false,"id":"explain/3","title":"explain(operation, queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"in_transaction?/0","deprecated":false,"id":"in_transaction?/0","title":"in_transaction?()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"paginate/3","deprecated":false,"id":"paginate/3","title":"paginate(query, params \\\\ %{}, options \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query_many/3","deprecated":false,"id":"query_many/3","title":"query_many(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query_many!/3","deprecated":false,"id":"query_many!/3","title":"query_many!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"rollback/1","deprecated":false,"id":"rollback/1","title":"rollback(value)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"transaction/2","deprecated":false,"id":"transaction/2","title":"transaction(fun_or_multi, opts \\\\ [])"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Repo"},{"deprecated":false,"group":"","id":"Plausible.Sentry.Client","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/0","deprecated":false,"id":"child_spec/0","title":"child_spec()"},{"anchor":"post/3","deprecated":false,"id":"post/3","title":"post(url, headers, body)"}]}],"sections":[],"title":"Plausible.Sentry.Client"},{"deprecated":false,"group":"","id":"Plausible.SentryFilter","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"before_send/1","deprecated":false,"id":"before_send/1","title":"before_send(event)"},{"anchor":"exclude_exception?/2","deprecated":false,"id":"exclude_exception?/2","title":"exclude_exception?(exception, source)"}]}],"sections":[],"title":"Plausible.SentryFilter"},{"deprecated":false,"group":"","id":"Plausible.Session.CacheStore","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"on_event/3","deprecated":false,"id":"on_event/3","title":"on_event(event, prev_user_id, buffer \\\\ WriteBuffer)"}]}],"sections":[],"title":"Plausible.Session.CacheStore"},{"deprecated":false,"group":"","id":"Plausible.Session.Salts","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(arg)"},{"anchor":"fetch/0","deprecated":false,"id":"fetch/0","title":"fetch()"},{"anchor":"rotate/0","deprecated":false,"id":"rotate/0","title":"rotate()"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts)"}]}],"sections":[],"title":"Plausible.Session.Salts"},{"deprecated":false,"group":"","id":"Plausible.Session.WriteBuffer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"},{"anchor":"flush/0","deprecated":false,"id":"flush/0","title":"flush()"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(buffer)"},{"anchor":"insert/1","deprecated":false,"id":"insert/1","title":"insert(sessions)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts)"}]}],"sections":[],"title":"Plausible.Session.WriteBuffer"},{"deprecated":false,"group":"","id":"Plausible.Site","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(site, attrs \\\\ %{})"},{"anchor":"crm_changeset/2","deprecated":false,"id":"crm_changeset/2","title":"crm_changeset(site, attrs)"},{"anchor":"feature_toggle_change/3","deprecated":false,"id":"feature_toggle_change/3","title":"feature_toggle_change(site, property, opts \\\\ [])"},{"anchor":"import_failure/1","deprecated":false,"id":"import_failure/1","title":"import_failure(site)"},{"anchor":"import_success/1","deprecated":false,"id":"import_success/1","title":"import_success(site)"},{"anchor":"local_start_date/1","deprecated":false,"id":"local_start_date/1","title":"local_start_date(site)"},{"anchor":"make_private/1","deprecated":false,"id":"make_private/1","title":"make_private(site)"},{"anchor":"make_public/1","deprecated":false,"id":"make_public/1","title":"make_public(site)"},{"anchor":"remove_imported_data/1","deprecated":false,"id":"remove_imported_data/1","title":"remove_imported_data(site)"},{"anchor":"set_imported_source/2","deprecated":false,"id":"set_imported_source/2","title":"set_imported_source(site, imported_source)"},{"anchor":"set_native_stats_start_at/2","deprecated":false,"id":"set_native_stats_start_at/2","title":"set_native_stats_start_at(site, val)"},{"anchor":"set_stats_start_date/2","deprecated":false,"id":"set_stats_start_date/2","title":"set_stats_start_date(site, val)"},{"anchor":"start_import/5","deprecated":false,"id":"start_import/5","title":"start_import(site, start_date, end_date, imported_source, status \\\\ \"importing\")"},{"anchor":"tz_offset/2","deprecated":false,"id":"tz_offset/2","title":"tz_offset(site, utc_now \\\\ DateTime.utc_now())"},{"anchor":"update_changeset/3","deprecated":false,"id":"update_changeset/3","title":"update_changeset(site, attrs \\\\ %{}, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Site"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"enabled?/0","deprecated":false,"id":"enabled?/0","title":"enabled?()"},{"anchor":"get/2","deprecated":false,"id":"get/2","title":"get(domain, opts \\\\ [])"},{"anchor":"get_site_id/2","deprecated":false,"id":"get_site_id/2","title":"get_site_id(domain, opts \\\\ [])"},{"anchor":"hit_rate/1","deprecated":false,"id":"hit_rate/1","title":"hit_rate(cache_name \\\\ :sites_by_domain)"},{"anchor":"merge/2","deprecated":false,"id":"merge/2","title":"merge(new_items, opts \\\\ [])"},{"anchor":"name/0","deprecated":false,"id":"name/0","title":"name()"},{"anchor":"ready?/1","deprecated":false,"id":"ready?/1","title":"ready?(cache_name \\\\ :sites_by_domain)"},{"anchor":"refresh_all/1","deprecated":false,"id":"refresh_all/1","title":"refresh_all(opts \\\\ [])"},{"anchor":"refresh_updated_recently/1","deprecated":false,"id":"refresh_updated_recently/1","title":"refresh_updated_recently(opts \\\\ [])"},{"anchor":"size/1","deprecated":false,"id":"size/1","title":"size(cache_name \\\\ :sites_by_domain)"},{"anchor":"telemetry_event_refresh/2","deprecated":false,"id":"telemetry_event_refresh/2","title":"telemetry_event_refresh(cache_name \\\\ :sites_by_domain, mode)"}]}],"sections":[],"title":"Plausible.Site.Cache"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache.Warmer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"interval/0","deprecated":false,"id":"interval/0","title":"interval()"}]}],"sections":[],"title":"Plausible.Site.Cache.Warmer"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache.Warmer.All","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"}]}],"sections":[],"title":"Plausible.Site.Cache.Warmer.All"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache.Warmer.RecentlyUpdated","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"}]}],"sections":[],"title":"Plausible.Site.Cache.Warmer.RecentlyUpdated"},{"deprecated":false,"group":"","id":"Plausible.Site.CustomDomain","sections":[],"title":"Plausible.Site.CustomDomain"},{"deprecated":false,"group":"","id":"Plausible.Site.Domain","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"change/3","deprecated":false,"id":"change/3","title":"change(site, new_domain, opts \\\\ [])"},{"anchor":"expire_change_transitions/1","deprecated":false,"id":"expire_change_transitions/1","title":"expire_change_transitions(expire_threshold_hours \\\\ 72)"}]}],"sections":[],"title":"Plausible.Site.Domain"},{"deprecated":false,"group":"","id":"Plausible.Site.GateKeeper","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:policy/0","deprecated":false,"id":"policy/0","title":"policy()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"check/2","deprecated":false,"id":"check/2","title":"check(domain, opts \\\\ [])"},{"anchor":"key/1","deprecated":false,"id":"key/1","title":"key(domain)"}]}],"sections":[],"title":"Plausible.Site.GateKeeper"},{"deprecated":false,"group":"","id":"Plausible.Site.GoogleAuth","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(auth, attrs \\\\ %{})"},{"anchor":"set_property/2","deprecated":false,"id":"set_property/2","title":"set_property(auth, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Site.GoogleAuth"},{"deprecated":false,"group":"","id":"Plausible.Site.ImportedData","sections":[],"title":"Plausible.Site.ImportedData"},{"deprecated":false,"group":"","id":"Plausible.Site.Membership","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(schema, attrs)"}]}],"sections":[],"title":"Plausible.Site.Membership"},{"deprecated":false,"group":"","id":"Plausible.Site.MonthlyReport","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_recipient/2","deprecated":false,"id":"add_recipient/2","title":"add_recipient(report, recipient)"},{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(settings, attrs \\\\ %{})"},{"anchor":"remove_recipient/2","deprecated":false,"id":"remove_recipient/2","title":"remove_recipient(report, recipient)"}]}],"sections":[],"title":"Plausible.Site.MonthlyReport"},{"deprecated":false,"group":"","id":"Plausible.Site.Removal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(domain)"}]}],"sections":[],"title":"Plausible.Site.Removal"},{"deprecated":false,"group":"","id":"Plausible.Site.SharedLink","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(link, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Site.SharedLink"},{"deprecated":false,"group":"","id":"Plausible.Site.SpikeNotification","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_recipient/2","deprecated":false,"id":"add_recipient/2","title":"add_recipient(schema, recipient)"},{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(schema, attrs)"},{"anchor":"remove_recipient/2","deprecated":false,"id":"remove_recipient/2","title":"remove_recipient(schema, recipient)"},{"anchor":"was_sent/1","deprecated":false,"id":"was_sent/1","title":"was_sent(schema)"}]}],"sections":[],"title":"Plausible.Site.SpikeNotification"},{"deprecated":false,"group":"","id":"Plausible.Site.WeeklyReport","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_recipient/2","deprecated":false,"id":"add_recipient/2","title":"add_recipient(report, recipient)"},{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(settings, attrs \\\\ %{})"},{"anchor":"remove_recipient/2","deprecated":false,"id":"remove_recipient/2","title":"remove_recipient(report, recipient)"}]}],"sections":[],"title":"Plausible.Site.WeeklyReport"},{"deprecated":false,"group":"","id":"Plausible.SiteAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_changeset/2","deprecated":false,"id":"create_changeset/2","title":"create_changeset(schema, attrs)"},{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"get_struct_fields/1","deprecated":false,"id":"get_struct_fields/1","title":"get_struct_fields(module)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"list_actions/1","deprecated":false,"id":"list_actions/1","title":"list_actions(conn)"},{"anchor":"ordering/1","deprecated":false,"id":"ordering/1","title":"ordering(schema)"},{"anchor":"search_fields/1","deprecated":false,"id":"search_fields/1","title":"search_fields(schema)"},{"anchor":"update_changeset/2","deprecated":false,"id":"update_changeset/2","title":"update_changeset(schema, attrs)"}]}],"sections":[],"title":"Plausible.SiteAdmin"},{"deprecated":false,"group":"","id":"Plausible.Sites","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:invite_error/0","deprecated":false,"id":"invite_error/0","title":"invite_error()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"bulk_transfer_ownership/4","deprecated":false,"id":"bulk_transfer_ownership/4","title":"bulk_transfer_ownership(sites, inviter, invitee_email, opts \\\\ [])"},{"anchor":"create/2","deprecated":false,"id":"create/2","title":"create(user, params)"},{"anchor":"create_shared_link/3","deprecated":false,"id":"create_shared_link/3","title":"create_shared_link(site, name, password \\\\ nil)"},{"anchor":"get_by_domain/1","deprecated":false,"id":"get_by_domain/1","title":"get_by_domain(domain)"},{"anchor":"get_by_domain!/1","deprecated":false,"id":"get_by_domain!/1","title":"get_by_domain!(domain)"},{"anchor":"get_for_user/3","deprecated":false,"id":"get_for_user/3","title":"get_for_user(user_id, domain, roles \\\\ [:owner, :admin, :viewer])"},{"anchor":"get_for_user!/3","deprecated":false,"id":"get_for_user!/3","title":"get_for_user!(user_id, domain, roles \\\\ [:owner, :admin, :viewer])"},{"anchor":"has_admin_access?/2","deprecated":false,"id":"has_admin_access?/2","title":"has_admin_access?(user_id, site)"},{"anchor":"has_goals?/1","deprecated":false,"id":"has_goals?/1","title":"has_goals?(site)"},{"anchor":"has_stats?/1","deprecated":false,"id":"has_stats?/1","title":"has_stats?(site)"},{"anchor":"invite/4","deprecated":false,"id":"invite/4","title":"invite(site, inviter, invitee_email, role)"},{"anchor":"is_member?/2","deprecated":false,"id":"is_member?/2","title":"is_member?(user_id, site)"},{"anchor":"locked?/1","deprecated":false,"id":"locked?/1","title":"locked?(site)"},{"anchor":"owned_site_ids/1","deprecated":false,"id":"owned_site_ids/1","title":"owned_site_ids(user)"},{"anchor":"owned_sites_count/1","deprecated":false,"id":"owned_sites_count/1","title":"owned_sites_count(user)"},{"anchor":"owned_sites_domains/1","deprecated":false,"id":"owned_sites_domains/1","title":"owned_sites_domains(user)"},{"anchor":"owner_for/1","deprecated":false,"id":"owner_for/1","title":"owner_for(site)"},{"anchor":"role/2","deprecated":false,"id":"role/2","title":"role(user_id, site)"},{"anchor":"shared_link_url/2","deprecated":false,"id":"shared_link_url/2","title":"shared_link_url(site, link)"},{"anchor":"stats_start_date/1","deprecated":false,"id":"stats_start_date/1","title":"stats_start_date(site)"}]}],"sections":[],"title":"Plausible.Sites"},{"deprecated":false,"group":"","id":"Plausible.Stats","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(site, query, metrics)"},{"anchor":"breakdown/5","deprecated":false,"id":"breakdown/5","title":"breakdown(site, query, prop, metrics, pagination)"},{"anchor":"current_visitors/1","deprecated":false,"id":"current_visitors/1","title":"current_visitors(site)"},{"anchor":"filter_suggestions/4","deprecated":false,"id":"filter_suggestions/4","title":"filter_suggestions(site, query, filter_name, filter_search)"},{"anchor":"funnel/3","deprecated":false,"id":"funnel/3","title":"funnel(site, query, funnel)"},{"anchor":"timeseries/3","deprecated":false,"id":"timeseries/3","title":"timeseries(site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats"},{"deprecated":false,"group":"","id":"Plausible.Stats.Aggregate","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Aggregate"},{"deprecated":false,"group":"","id":"Plausible.Stats.Base","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"apply_entry_prop_filter/3","deprecated":false,"id":"apply_entry_prop_filter/3","title":"apply_entry_prop_filter(sessions_q, prop_name, arg3)"},{"anchor":"base_event_query/2","deprecated":false,"id":"base_event_query/2","title":"base_event_query(site, query)"},{"anchor":"filter_by_entry_props/2","deprecated":false,"id":"filter_by_entry_props/2","title":"filter_by_entry_props(sessions_q, query)"},{"anchor":"filter_converted_sessions/3","deprecated":false,"id":"filter_converted_sessions/3","title":"filter_converted_sessions(db_query, site, query)"},{"anchor":"page_regex/1","deprecated":false,"id":"page_regex/1","title":"page_regex(expr)"},{"anchor":"query_events/2","deprecated":false,"id":"query_events/2","title":"query_events(site, query)"},{"anchor":"query_sessions/2","deprecated":false,"id":"query_sessions/2","title":"query_sessions(site, query)"},{"anchor":"select_event_metrics/2","deprecated":false,"id":"select_event_metrics/2","title":"select_event_metrics(q, list)"},{"anchor":"select_session_metrics/3","deprecated":false,"id":"select_session_metrics/3","title":"select_session_metrics(q, list, query)"},{"anchor":"utc_boundaries/2","deprecated":false,"id":"utc_boundaries/2","title":"utc_boundaries(query, site)"}]}],"sections":[],"title":"Plausible.Stats.Base"},{"deprecated":false,"group":"","id":"Plausible.Stats.Breakdown","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"breakdown/5","deprecated":false,"id":"breakdown/5","title":"breakdown(site, query, property, metrics, pagination)"}]}],"sections":[],"title":"Plausible.Stats.Breakdown"},{"deprecated":false,"group":"","id":"Plausible.Stats.Clickhouse","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"current_visitors/2","deprecated":false,"id":"current_visitors/2","title":"current_visitors(site, query)"},{"anchor":"has_pageviews?/1","deprecated":false,"id":"has_pageviews?/1","title":"has_pageviews?(site)"},{"anchor":"imported_pageview_count/1","deprecated":false,"id":"imported_pageview_count/1","title":"imported_pageview_count(site)"},{"anchor":"last_24h_visitors/1","deprecated":false,"id":"last_24h_visitors/1","title":"last_24h_visitors(sites)"},{"anchor":"pageview_start_date_local/1","deprecated":false,"id":"pageview_start_date_local/1","title":"pageview_start_date_local(site)"},{"anchor":"top_sources/6","deprecated":false,"id":"top_sources/6","title":"top_sources(site, query, limit, page, show_noref \\\\ false, include_details)"},{"anchor":"usage_breakdown/1","deprecated":false,"id":"usage_breakdown/1","title":"usage_breakdown(domains_or_site_ids)"},{"anchor":"usage_breakdown/2","deprecated":false,"id":"usage_breakdown/2","title":"usage_breakdown(domains, date_range)"}]}],"sections":[],"title":"Plausible.Stats.Clickhouse"},{"deprecated":false,"group":"","id":"Plausible.Stats.Compare","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"calculate_change/3","deprecated":false,"id":"calculate_change/3","title":"calculate_change(metric, old_stats, new_stats)"}]}],"sections":[],"title":"Plausible.Stats.Compare"},{"deprecated":false,"group":"","id":"Plausible.Stats.Comparisons","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:mode/0","deprecated":false,"id":"mode/0","title":"mode()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"compare/4","deprecated":false,"id":"compare/4","title":"compare(site, source_query, mode, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Stats.Comparisons"},{"deprecated":false,"group":"","id":"Plausible.Stats.CurrentVisitors","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"current_visitors/1","deprecated":false,"id":"current_visitors/1","title":"current_visitors(site)"}]}],"sections":[],"title":"Plausible.Stats.CurrentVisitors"},{"deprecated":false,"group":"","id":"Plausible.Stats.CustomProps","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_prop_names/2","deprecated":false,"id":"fetch_prop_names/2","title":"fetch_prop_names(site, query)"},{"anchor":"maybe_allowed_props_only/2","deprecated":false,"id":"maybe_allowed_props_only/2","title":"maybe_allowed_props_only(q, allowed_props)"},{"anchor":"props_for_all_event_names/2","deprecated":false,"id":"props_for_all_event_names/2","title":"props_for_all_event_names(site, query)"}]}],"sections":[],"title":"Plausible.Stats.CustomProps"},{"deprecated":false,"group":"","id":"Plausible.Stats.FilterParser","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"parse_filters/1","deprecated":false,"id":"parse_filters/1","title":"parse_filters(filters)"}]}],"sections":[],"title":"Plausible.Stats.FilterParser"},{"deprecated":false,"group":"","id":"Plausible.Stats.FilterSuggestions","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"filter_suggestions/4","deprecated":false,"id":"filter_suggestions/4","title":"filter_suggestions(site, query, filter_name, filter_search)"}]}],"sections":[],"title":"Plausible.Stats.FilterSuggestions"},{"deprecated":false,"group":"","id":"Plausible.Stats.Filters","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_prefix/1","deprecated":false,"id":"add_prefix/1","title":"add_prefix(query)"},{"anchor":"visit_props/0","deprecated":false,"id":"visit_props/0","title":"visit_props()"}]}],"sections":[],"title":"Plausible.Stats.Filters"},{"deprecated":false,"group":"","id":"Plausible.Stats.Fragments","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"bounce_rate/0","deprecated":false,"id":"bounce_rate/0","title":"bounce_rate()"},{"anchor":"coalesce_string/2","deprecated":false,"id":"coalesce_string/2","title":"coalesce_string(fieldA, fieldB)"},{"anchor":"sample_percent/0","deprecated":false,"id":"sample_percent/0","title":"sample_percent()"},{"anchor":"to_timezone/2","deprecated":false,"id":"to_timezone/2","title":"to_timezone(date, timezone)"},{"anchor":"total/0","deprecated":false,"id":"total/0","title":"total()"},{"anchor":"uniq/1","deprecated":false,"id":"uniq/1","title":"uniq(user_id)"},{"anchor":"visit_duration/0","deprecated":false,"id":"visit_duration/0","title":"visit_duration()"},{"anchor":"weekstart_not_before/2","deprecated":false,"id":"weekstart_not_before/2","title":"weekstart_not_before(date, not_before)"},{"anchor":"weekstart_not_before/3","deprecated":false,"id":"weekstart_not_before/3","title":"weekstart_not_before(date, not_before, timezone)"}]}],"sections":[],"title":"Plausible.Stats.Fragments"},{"deprecated":false,"group":"","id":"Plausible.Stats.Funnel","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"funnel/3","deprecated":false,"id":"funnel/3","title":"funnel(site, query, funnel_id)"}]}],"sections":[],"title":"Plausible.Stats.Funnel"},{"deprecated":false,"group":"","id":"Plausible.Stats.Imported","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"merge_imported/5","deprecated":false,"id":"merge_imported/5","title":"merge_imported(q, site, query, property, metrics)"},{"anchor":"merge_imported_timeseries/4","deprecated":false,"id":"merge_imported_timeseries/4","title":"merge_imported_timeseries(native_q, site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Imported"},{"deprecated":false,"group":"","id":"Plausible.Stats.Interval","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:opt/0","deprecated":false,"id":"opt/0","title":"opt()"},{"anchor":"t:opts/0","deprecated":false,"id":"opts/0","title":"opts()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"default_for_date_range/1","deprecated":false,"id":"default_for_date_range/1","title":"default_for_date_range(range)"},{"anchor":"default_for_period/1","deprecated":false,"id":"default_for_period/1","title":"default_for_period(period)"},{"anchor":"list/0","deprecated":false,"id":"list/0","title":"list()"},{"anchor":"valid?/1","deprecated":false,"id":"valid?/1","title":"valid?(interval)"},{"anchor":"valid_by_period/1","deprecated":false,"id":"valid_by_period/1","title":"valid_by_period(opts \\\\ [])"},{"anchor":"valid_for_period?/3","deprecated":false,"id":"valid_for_period?/3","title":"valid_for_period?(period, interval, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Stats.Interval"},{"deprecated":false,"group":"","id":"Plausible.Stats.Props","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"event_props/0","deprecated":false,"id":"event_props/0","title":"event_props()"},{"anchor":"valid_prop?/1","deprecated":false,"id":"valid_prop?/1","title":"valid_prop?(prop)"}]}],"sections":[],"title":"Plausible.Stats.Props"},{"deprecated":false,"group":"","id":"Plausible.Stats.Query","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"from/2","deprecated":false,"id":"from/2","title":"from(site, params)"},{"anchor":"get_filter_by_prefix/2","deprecated":false,"id":"get_filter_by_prefix/2","title":"get_filter_by_prefix(query, prefix)"},{"anchor":"has_event_filters?/1","deprecated":false,"id":"has_event_filters?/1","title":"has_event_filters?(query)"},{"anchor":"include_imported?/3","deprecated":false,"id":"include_imported?/3","title":"include_imported?(query, site, requested?)"},{"anchor":"put_filter/3","deprecated":false,"id":"put_filter/3","title":"put_filter(query, key, val)"},{"anchor":"remove_event_filters/2","deprecated":false,"id":"remove_event_filters/2","title":"remove_event_filters(query, opts)"},{"anchor":"trace/1","deprecated":false,"id":"trace/1","title":"trace(query)"}]}],"sections":[],"title":"Plausible.Stats.Query"},{"deprecated":false,"group":"","id":"Plausible.Stats.Timeseries","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:results/0","deprecated":false,"id":"results/0","title":"results()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"timeseries/3","deprecated":false,"id":"timeseries/3","title":"timeseries(site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Timeseries"},{"deprecated":false,"group":"","id":"Plausible.Stats.Util","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"cast_revenue_metrics_to_money/2","deprecated":false,"id":"cast_revenue_metrics_to_money/2","title":"cast_revenue_metrics_to_money(results, revenue_goals)"},{"anchor":"get_revenue_tracking_currency/3","deprecated":false,"id":"get_revenue_tracking_currency/3","title":"get_revenue_tracking_currency(site, query, metrics)"},{"anchor":"remove_internal_visits_metric/1","deprecated":false,"id":"remove_internal_visits_metric/1","title":"remove_internal_visits_metric(result)"},{"anchor":"remove_internal_visits_metric/2","deprecated":false,"id":"remove_internal_visits_metric/2","title":"remove_internal_visits_metric(results, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Util"},{"deprecated":false,"group":"","id":"Plausible.Test.Support.HTML","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"element_exists?/2","deprecated":false,"id":"element_exists?/2","title":"element_exists?(html, selector)"},{"anchor":"find/2","deprecated":false,"id":"find/2","title":"find(html, value)"},{"anchor":"form_exists?/2","deprecated":false,"id":"form_exists?/2","title":"form_exists?(html, action_path)"},{"anchor":"name_of/1","deprecated":false,"id":"name_of/1","title":"name_of(element)"},{"anchor":"submit_button/2","deprecated":false,"id":"submit_button/2","title":"submit_button(html, form)"},{"anchor":"text/1","deprecated":false,"id":"text/1","title":"text(element)"},{"anchor":"text_of_attr/2","deprecated":false,"id":"text_of_attr/2","title":"text_of_attr(element, attr)"},{"anchor":"text_of_element/2","deprecated":false,"id":"text_of_element/2","title":"text_of_element(html, element)"}]}],"sections":[],"title":"Plausible.Test.Support.HTML"},{"deprecated":false,"group":"","id":"Plausible.TestUtils","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_imported_data/1","deprecated":false,"id":"add_imported_data/1","title":"add_imported_data(map)"},{"anchor":"await_clickhouse_count/2","deprecated":false,"id":"await_clickhouse_count/2","title":"await_clickhouse_count(query, expected)"},{"anchor":"create_api_key/1","deprecated":false,"id":"create_api_key/1","title":"create_api_key(map)"},{"anchor":"create_events/1","deprecated":false,"id":"create_events/1","title":"create_events(events)"},{"anchor":"create_new_site/1","deprecated":false,"id":"create_new_site/1","title":"create_new_site(map)"},{"anchor":"create_pageviews/1","deprecated":false,"id":"create_pageviews/1","title":"create_pageviews(pageviews)"},{"anchor":"create_sessions/1","deprecated":false,"id":"create_sessions/1","title":"create_sessions(sessions)"},{"anchor":"create_site/1","deprecated":false,"id":"create_site/1","title":"create_site(map)"},{"anchor":"create_user/1","deprecated":false,"id":"create_user/1","title":"create_user(_)"},{"anchor":"eventually/3","deprecated":false,"id":"eventually/3","title":"eventually(expectation, wait_time_ms \\\\ 50, retries \\\\ 10)"},{"anchor":"init_session/1","deprecated":false,"id":"init_session/1","title":"init_session(conn)"},{"anchor":"log_in/1","deprecated":false,"id":"log_in/1","title":"log_in(map)"},{"anchor":"patch_env/2","deprecated":false,"id":"patch_env/2","title":"patch_env(env_key, value)"},{"anchor":"populate_stats/1","deprecated":false,"id":"populate_stats/1","title":"populate_stats(events)"},{"anchor":"populate_stats/2","deprecated":false,"id":"populate_stats/2","title":"populate_stats(site, events)"},{"anchor":"random_ip/0","deprecated":false,"id":"random_ip/0","title":"random_ip()"},{"anchor":"relative_time/1","deprecated":false,"id":"relative_time/1","title":"relative_time(shifts)"},{"anchor":"setup_patch_env/2","deprecated":false,"id":"setup_patch_env/2","title":"setup_patch_env(env_key, value)"},{"anchor":"to_naive_truncate/1","deprecated":false,"id":"to_naive_truncate/1","title":"to_naive_truncate(dt)"},{"anchor":"use_api_key/1","deprecated":false,"id":"use_api_key/1","title":"use_api_key(map)"}]}],"sections":[],"title":"Plausible.TestUtils"},{"deprecated":false,"group":"","id":"Plausible.Themes","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"options/0","deprecated":false,"id":"options/0","title":"options()"}]}],"sections":[],"title":"Plausible.Themes"},{"deprecated":false,"group":"","id":"Plausible.Timezones","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"options/1","deprecated":false,"id":"options/1","title":"options(now \\\\ DateTime.utc_now())"}]}],"sections":[],"title":"Plausible.Timezones"},{"deprecated":false,"group":"","id":"Plausible.Users","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"with_subscription/1","deprecated":false,"id":"with_subscription/1","title":"with_subscription(user)"}]}],"sections":[],"title":"Plausible.Users"},{"deprecated":false,"group":"","id":"Plausible.Workers.CheckUsage","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"check_enterprise_subscriber/2","deprecated":false,"id":"check_enterprise_subscriber/2","title":"check_enterprise_subscriber(subscriber, billing_mod)"},{"anchor":"day_of_month/1","deprecated":false,"id":"day_of_month/1","title":"day_of_month(date)"},{"anchor":"last_day_of_month/1","deprecated":false,"id":"last_day_of_month/1","title":"last_day_of_month(day)"},{"anchor":"least/2","deprecated":false,"id":"least/2","title":"least(left, right)"},{"anchor":"yesterday/0","deprecated":false,"id":"yesterday/0","title":"yesterday()"}]}],"sections":[],"title":"Plausible.Workers.CheckUsage"},{"deprecated":false,"group":"","id":"Plausible.Workers.CleanEmailVerificationCodes","sections":[],"title":"Plausible.Workers.CleanEmailVerificationCodes"},{"deprecated":false,"group":"","id":"Plausible.Workers.CleanInvitations","sections":[],"title":"Plausible.Workers.CleanInvitations"},{"deprecated":false,"group":"","id":"Plausible.Workers.ExpireDomainChangeTransitions","sections":[],"title":"Plausible.Workers.ExpireDomainChangeTransitions"},{"deprecated":false,"group":"","id":"Plausible.Workers.ImportGoogleAnalytics","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"import_failed/1","deprecated":false,"id":"import_failed/1","title":"import_failed(site)"}]}],"sections":[],"title":"Plausible.Workers.ImportGoogleAnalytics"},{"deprecated":false,"group":"","id":"Plausible.Workers.LockSites","sections":[],"title":"Plausible.Workers.LockSites"},{"deprecated":false,"group":"","id":"Plausible.Workers.NotifyAnnualRenewal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"perform/1","deprecated":false,"id":"perform/1","title":"perform(job)"}]}],"sections":[],"title":"Plausible.Workers.NotifyAnnualRenewal"},{"deprecated":false,"group":"","id":"Plausible.Workers.RotateSalts","sections":[],"title":"Plausible.Workers.RotateSalts"},{"deprecated":false,"group":"","id":"Plausible.Workers.ScheduleEmailReports","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"first_of_month_9am/1","deprecated":false,"id":"first_of_month_9am/1","title":"first_of_month_9am(timezone)"},{"anchor":"monday_9am/1","deprecated":false,"id":"monday_9am/1","title":"monday_9am(timezone)"},{"anchor":"perform/1","deprecated":false,"id":"perform/1","title":"perform(job)"}]}],"sections":[],"title":"Plausible.Workers.ScheduleEmailReports"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendCheckStatsEmails","sections":[],"title":"Plausible.Workers.SendCheckStatsEmails"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendEmailReport","sections":[],"title":"Plausible.Workers.SendEmailReport"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendSiteSetupEmails","sections":[],"title":"Plausible.Workers.SendSiteSetupEmails"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendTrialNotifications","sections":[],"title":"Plausible.Workers.SendTrialNotifications"},{"deprecated":false,"group":"","id":"Plausible.Workers.SpikeNotifier","sections":[],"title":"Plausible.Workers.SpikeNotifier"},{"deprecated":false,"group":"","id":"PlausibleWeb","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__using__/1","deprecated":false,"id":"__using__/1","title":"__using__(which)"},{"anchor":"channel/0","deprecated":false,"id":"channel/0","title":"channel()"},{"anchor":"controller/0","deprecated":false,"id":"controller/0","title":"controller()"},{"anchor":"router/0","deprecated":false,"id":"router/0","title":"router()"},{"anchor":"view/0","deprecated":false,"id":"view/0","title":"view()"}]}],"sections":[],"title":"PlausibleWeb"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.ExternalController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error/2","deprecated":false,"id":"error/2","title":"error(conn, params)"},{"anchor":"event/2","deprecated":false,"id":"event/2","title":"event(conn, params)"},{"anchor":"health/2","deprecated":false,"id":"health/2","title":"health(conn, params)"},{"anchor":"info/2","deprecated":false,"id":"info/2","title":"info(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.ExternalController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.ExternalSitesController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_site/2","deprecated":false,"id":"create_site/2","title":"create_site(conn, params)"},{"anchor":"delete_goal/2","deprecated":false,"id":"delete_goal/2","title":"delete_goal(conn, params)"},{"anchor":"delete_site/2","deprecated":false,"id":"delete_site/2","title":"delete_site(conn, map)"},{"anchor":"find_or_create_goal/2","deprecated":false,"id":"find_or_create_goal/2","title":"find_or_create_goal(conn, params)"},{"anchor":"find_or_create_shared_link/2","deprecated":false,"id":"find_or_create_shared_link/2","title":"find_or_create_shared_link(conn, params)"},{"anchor":"get_site/2","deprecated":false,"id":"get_site/2","title":"get_site(conn, map)"},{"anchor":"update_site/2","deprecated":false,"id":"update_site/2","title":"update_site(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.ExternalSitesController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.ExternalStatsController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/2","deprecated":false,"id":"aggregate/2","title":"aggregate(conn, params)"},{"anchor":"breakdown/2","deprecated":false,"id":"breakdown/2","title":"breakdown(conn, params)"},{"anchor":"realtime_visitors/2","deprecated":false,"id":"realtime_visitors/2","title":"realtime_visitors(conn, params)"},{"anchor":"timeseries/2","deprecated":false,"id":"timeseries/2","title":"timeseries(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.ExternalStatsController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.Helpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"bad_request/2","deprecated":false,"id":"bad_request/2","title":"bad_request(conn, msg)"},{"anchor":"not_found/2","deprecated":false,"id":"not_found/2","title":"not_found(conn, msg)"},{"anchor":"payment_required/2","deprecated":false,"id":"payment_required/2","title":"payment_required(conn, msg)"},{"anchor":"too_many_requests/2","deprecated":false,"id":"too_many_requests/2","title":"too_many_requests(conn, msg)"},{"anchor":"unauthorized/2","deprecated":false,"id":"unauthorized/2","title":"unauthorized(conn, msg)"}]}],"sections":[],"title":"PlausibleWeb.Api.Helpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.InternalController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"disable_feature/2","deprecated":false,"id":"disable_feature/2","title":"disable_feature(conn, map)"},{"anchor":"domain_status/2","deprecated":false,"id":"domain_status/2","title":"domain_status(conn, map)"},{"anchor":"sites/2","deprecated":false,"id":"sites/2","title":"sites(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.InternalController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.PaddleController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"verified_signature?/1","deprecated":false,"id":"verified_signature?/1","title":"verified_signature?(params)"},{"anchor":"verify_signature/2","deprecated":false,"id":"verify_signature/2","title":"verify_signature(conn, opts)"},{"anchor":"webhook/2","deprecated":false,"id":"webhook/2","title":"webhook(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.PaddleController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.StatsController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_custom_prop_values/2","deprecated":false,"id":"all_custom_prop_values/2","title":"all_custom_prop_values(conn, params)"},{"anchor":"browser_versions/2","deprecated":false,"id":"browser_versions/2","title":"browser_versions(conn, params)"},{"anchor":"browsers/2","deprecated":false,"id":"browsers/2","title":"browsers(conn, params)"},{"anchor":"cities/2","deprecated":false,"id":"cities/2","title":"cities(conn, params)"},{"anchor":"conversions/2","deprecated":false,"id":"conversions/2","title":"conversions(conn, params)"},{"anchor":"countries/2","deprecated":false,"id":"countries/2","title":"countries(conn, params)"},{"anchor":"current_visitors/2","deprecated":false,"id":"current_visitors/2","title":"current_visitors(conn, _)"},{"anchor":"custom_prop_values/2","deprecated":false,"id":"custom_prop_values/2","title":"custom_prop_values(conn, params)"},{"anchor":"entry_pages/2","deprecated":false,"id":"entry_pages/2","title":"entry_pages(conn, params)"},{"anchor":"exit_pages/2","deprecated":false,"id":"exit_pages/2","title":"exit_pages(conn, params)"},{"anchor":"filter_suggestions/2","deprecated":false,"id":"filter_suggestions/2","title":"filter_suggestions(conn, params)"},{"anchor":"funnel/2","deprecated":false,"id":"funnel/2","title":"funnel(conn, params)"},{"anchor":"main_graph/2","deprecated":false,"id":"main_graph/2","title":"main_graph(conn, params)"},{"anchor":"operating_system_versions/2","deprecated":false,"id":"operating_system_versions/2","title":"operating_system_versions(conn, params)"},{"anchor":"operating_systems/2","deprecated":false,"id":"operating_systems/2","title":"operating_systems(conn, params)"},{"anchor":"pages/2","deprecated":false,"id":"pages/2","title":"pages(conn, params)"},{"anchor":"referrer_drilldown/2","deprecated":false,"id":"referrer_drilldown/2","title":"referrer_drilldown(conn, params)"},{"anchor":"referrers/2","deprecated":false,"id":"referrers/2","title":"referrers(conn, params)"},{"anchor":"regions/2","deprecated":false,"id":"regions/2","title":"regions(conn, params)"},{"anchor":"screen_sizes/2","deprecated":false,"id":"screen_sizes/2","title":"screen_sizes(conn, params)"},{"anchor":"sources/2","deprecated":false,"id":"sources/2","title":"sources(conn, params)"},{"anchor":"top_stats/2","deprecated":false,"id":"top_stats/2","title":"top_stats(conn, params)"},{"anchor":"utm_campaigns/2","deprecated":false,"id":"utm_campaigns/2","title":"utm_campaigns(conn, params)"},{"anchor":"utm_contents/2","deprecated":false,"id":"utm_contents/2","title":"utm_contents(conn, params)"},{"anchor":"utm_mediums/2","deprecated":false,"id":"utm_mediums/2","title":"utm_mediums(conn, params)"},{"anchor":"utm_sources/2","deprecated":false,"id":"utm_sources/2","title":"utm_sources(conn, params)"},{"anchor":"utm_terms/2","deprecated":false,"id":"utm_terms/2","title":"utm_terms(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.StatsController"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"activate/2","deprecated":false,"id":"activate/2","title":"activate(conn, map)"},{"anchor":"activate_form/2","deprecated":false,"id":"activate_form/2","title":"activate_form(conn, params)"},{"anchor":"create_api_key/2","deprecated":false,"id":"create_api_key/2","title":"create_api_key(conn, map)"},{"anchor":"delete_api_key/2","deprecated":false,"id":"delete_api_key/2","title":"delete_api_key(conn, map)"},{"anchor":"delete_me/2","deprecated":false,"id":"delete_me/2","title":"delete_me(conn, params)"},{"anchor":"google_auth_callback/2","deprecated":false,"id":"google_auth_callback/2","title":"google_auth_callback(conn, params)"},{"anchor":"login/2","deprecated":false,"id":"login/2","title":"login(conn, map)"},{"anchor":"login_form/2","deprecated":false,"id":"login_form/2","title":"login_form(conn, params)"},{"anchor":"logout/2","deprecated":false,"id":"logout/2","title":"logout(conn, params)"},{"anchor":"new_api_key/2","deprecated":false,"id":"new_api_key/2","title":"new_api_key(conn, params)"},{"anchor":"password_reset/2","deprecated":false,"id":"password_reset/2","title":"password_reset(conn, params)"},{"anchor":"password_reset_form/2","deprecated":false,"id":"password_reset_form/2","title":"password_reset_form(conn, map)"},{"anchor":"password_reset_request/2","deprecated":false,"id":"password_reset_request/2","title":"password_reset_request(conn, params)"},{"anchor":"password_reset_request_form/2","deprecated":false,"id":"password_reset_request_form/2","title":"password_reset_request_form(conn, _)"},{"anchor":"register/2","deprecated":false,"id":"register/2","title":"register(conn, map)"},{"anchor":"register_form/2","deprecated":false,"id":"register_form/2","title":"register_form(conn, params)"},{"anchor":"register_from_invitation/2","deprecated":false,"id":"register_from_invitation/2","title":"register_from_invitation(conn, map)"},{"anchor":"request_activation_code/2","deprecated":false,"id":"request_activation_code/2","title":"request_activation_code(conn, params)"},{"anchor":"save_settings/2","deprecated":false,"id":"save_settings/2","title":"save_settings(conn, map)"},{"anchor":"user_settings/2","deprecated":false,"id":"user_settings/2","title":"user_settings(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.AuthController"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.AuthPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"activate.html/1","deprecated":false,"id":"activate.html/1","title":"activate.html(assigns)"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"delimit_integer/1","deprecated":false,"id":"delimit_integer/1","title":"delimit_integer(number)"},{"anchor":"format_invoices/1","deprecated":false,"id":"format_invoices/1","title":"format_invoices(invoice_list)"},{"anchor":"login_form.html/1","deprecated":false,"id":"login_form.html/1","title":"login_form.html(assigns)"},{"anchor":"new_api_key.html/1","deprecated":false,"id":"new_api_key.html/1","title":"new_api_key.html(assigns)"},{"anchor":"password_reset_form.html/1","deprecated":false,"id":"password_reset_form.html/1","title":"password_reset_form.html(assigns)"},{"anchor":"password_reset_request_form.html/1","deprecated":false,"id":"password_reset_request_form.html/1","title":"password_reset_request_form.html(assigns)"},{"anchor":"password_reset_request_success.html/1","deprecated":false,"id":"password_reset_request_success.html/1","title":"password_reset_request_success.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"present_subscription_status/1","deprecated":false,"id":"present_subscription_status/1","title":"present_subscription_status(status)"},{"anchor":"register_success.html/1","deprecated":false,"id":"register_success.html/1","title":"register_success.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"subscription_colors/1","deprecated":false,"id":"subscription_colors/1","title":"subscription_colors(_)"},{"anchor":"subscription_interval/1","deprecated":false,"id":"subscription_interval/1","title":"subscription_interval(subscription)"},{"anchor":"subscription_quota/1","deprecated":false,"id":"subscription_quota/1","title":"subscription_quota(subscription)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"user_settings.html/1","deprecated":false,"id":"user_settings.html/1","title":"user_settings.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.AuthView"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthorizeSiteAccess","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, allowed_roles)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(allowed_roles)"}]}],"sections":[],"title":"PlausibleWeb.AuthorizeSiteAccess"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthorizeSitesApiPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.AuthorizeSitesApiPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthorizeStatsApiPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.AuthorizeStatsApiPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.BillingController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"change_enterprise_plan/2","deprecated":false,"id":"change_enterprise_plan/2","title":"change_enterprise_plan(conn, map)"},{"anchor":"change_plan/2","deprecated":false,"id":"change_plan/2","title":"change_plan(conn, map)"},{"anchor":"change_plan_form/2","deprecated":false,"id":"change_plan_form/2","title":"change_plan_form(conn, params)"},{"anchor":"change_plan_preview/2","deprecated":false,"id":"change_plan_preview/2","title":"change_plan_preview(conn, map)"},{"anchor":"ping_subscription/2","deprecated":false,"id":"ping_subscription/2","title":"ping_subscription(conn, params)"},{"anchor":"preview_susbcription/2","deprecated":false,"id":"preview_susbcription/2","title":"preview_susbcription(_, _)"},{"anchor":"upgrade/2","deprecated":false,"id":"upgrade/2","title":"upgrade(conn, params)"},{"anchor":"upgrade_enterprise_plan/2","deprecated":false,"id":"upgrade_enterprise_plan/2","title":"upgrade_enterprise_plan(conn, map)"},{"anchor":"upgrade_success/2","deprecated":false,"id":"upgrade_success/2","title":"upgrade_success(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.BillingController"},{"deprecated":false,"group":"","id":"PlausibleWeb.BillingView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"change_enterprise_plan.html/1","deprecated":false,"id":"change_enterprise_plan.html/1","title":"change_enterprise_plan.html(assigns)"},{"anchor":"change_enterprise_plan_contact_us.html/1","deprecated":false,"id":"change_enterprise_plan_contact_us.html/1","title":"change_enterprise_plan_contact_us.html(assigns)"},{"anchor":"change_plan.html/1","deprecated":false,"id":"change_plan.html/1","title":"change_plan.html(assigns)"},{"anchor":"change_plan_preview.html/1","deprecated":false,"id":"change_plan_preview.html/1","title":"change_plan_preview.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"present_currency/1","deprecated":false,"id":"present_currency/1","title":"present_currency(arg)"},{"anchor":"present_date/1","deprecated":false,"id":"present_date/1","title":"present_date(date)"},{"anchor":"reccommended_plan/1","deprecated":false,"id":"reccommended_plan/1","title":"reccommended_plan(usage)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"upgrade.html/1","deprecated":false,"id":"upgrade.html/1","title":"upgrade.html(assigns)"},{"anchor":"upgrade_success.html/1","deprecated":false,"id":"upgrade_success.html/1","title":"upgrade_success.html(assigns)"},{"anchor":"upgrade_to_plan.html/1","deprecated":false,"id":"upgrade_to_plan.html/1","title":"upgrade_to_plan.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.BillingView"},{"deprecated":false,"group":"","id":"PlausibleWeb.CRMAuthPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.CRMAuthPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.Captcha","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"enabled?/0","deprecated":false,"id":"enabled?/0","title":"enabled?()"},{"anchor":"sitekey/0","deprecated":false,"id":"sitekey/0","title":"sitekey()"},{"anchor":"verify/1","deprecated":false,"id":"verify/1","title":"verify(token)"}]}],"sections":[],"title":"PlausibleWeb.Captcha"},{"deprecated":false,"group":"","id":"PlausibleWeb.Components.Generic","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"notice/1","deprecated":false,"id":"notice/1","title":"notice(assigns)"},{"anchor":"styled_link/1","deprecated":false,"id":"styled_link/1","title":"styled_link(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Components.Generic"},{"deprecated":false,"group":"","id":"PlausibleWeb.Components.Site.Feature","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"button_active/1","deprecated":false,"id":"button_active/1","title":"button_active(assigns)"},{"anchor":"button_inactive/1","deprecated":false,"id":"button_inactive/1","title":"button_inactive(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"target/4","deprecated":false,"id":"target/4","title":"target(site, setting, conn, set_to)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"toggle/1","deprecated":false,"id":"toggle/1","title":"toggle(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Components.Site.Feature"},{"deprecated":false,"group":"","id":"PlausibleWeb.ConnCase","sections":[],"title":"PlausibleWeb.ConnCase"},{"deprecated":false,"group":"","id":"PlausibleWeb.ControllerHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render_error/2","deprecated":false,"id":"render_error/2","title":"render_error(conn, status)"},{"anchor":"render_error/3","deprecated":false,"id":"render_error/3","title":"render_error(conn, status, message)"}]}],"sections":[],"title":"PlausibleWeb.ControllerHelpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.Email","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"activation_email/2","deprecated":false,"id":"activation_email/2","title":"activation_email(user, code)"},{"anchor":"base_email/0","deprecated":false,"id":"base_email/0","title":"base_email()"},{"anchor":"base_email/1","deprecated":false,"id":"base_email/1","title":"base_email(map)"},{"anchor":"cancellation_email/1","deprecated":false,"id":"cancellation_email/1","title":"cancellation_email(user)"},{"anchor":"check_stats_email/1","deprecated":false,"id":"check_stats_email/1","title":"check_stats_email(user)"},{"anchor":"create_site_email/1","deprecated":false,"id":"create_site_email/1","title":"create_site_email(user)"},{"anchor":"dashboard_locked/4","deprecated":false,"id":"dashboard_locked/4","title":"dashboard_locked(user, usage, last_cycle, suggested_plan)"},{"anchor":"enterprise_over_limit_internal_email/5","deprecated":false,"id":"enterprise_over_limit_internal_email/5","title":"enterprise_over_limit_internal_email(user, usage, last_cycle, site_usage, site_allowance)"},{"anchor":"error_report/3","deprecated":false,"id":"error_report/3","title":"error_report(reported_by, trace_id, feedback)"},{"anchor":"existing_user_invitation/1","deprecated":false,"id":"existing_user_invitation/1","title":"existing_user_invitation(invitation)"},{"anchor":"import_failure/2","deprecated":false,"id":"import_failure/2","title":"import_failure(user, site)"},{"anchor":"import_success/2","deprecated":false,"id":"import_success/2","title":"import_success(user, site)"},{"anchor":"invitation_accepted/1","deprecated":false,"id":"invitation_accepted/1","title":"invitation_accepted(invitation)"},{"anchor":"invitation_rejected/1","deprecated":false,"id":"invitation_rejected/1","title":"invitation_rejected(invitation)"},{"anchor":"mailer_email_from/0","deprecated":false,"id":"mailer_email_from/0","title":"mailer_email_from()"},{"anchor":"new_user_invitation/1","deprecated":false,"id":"new_user_invitation/1","title":"new_user_invitation(invitation)"},{"anchor":"over_limit_email/4","deprecated":false,"id":"over_limit_email/4","title":"over_limit_email(user, usage, last_cycle, suggested_plan)"},{"anchor":"ownership_transfer_accepted/1","deprecated":false,"id":"ownership_transfer_accepted/1","title":"ownership_transfer_accepted(invitation)"},{"anchor":"ownership_transfer_rejected/1","deprecated":false,"id":"ownership_transfer_rejected/1","title":"ownership_transfer_rejected(invitation)"},{"anchor":"ownership_transfer_request/2","deprecated":false,"id":"ownership_transfer_request/2","title":"ownership_transfer_request(invitation, new_owner_account)"},{"anchor":"password_reset_email/2","deprecated":false,"id":"password_reset_email/2","title":"password_reset_email(email, reset_link)"},{"anchor":"priority_email/0","deprecated":false,"id":"priority_email/0","title":"priority_email()"},{"anchor":"priority_email/1","deprecated":false,"id":"priority_email/1","title":"priority_email(map)"},{"anchor":"render/3","deprecated":false,"id":"render/3","title":"render(email, template, assigns \\\\ [])"},{"anchor":"site_member_removed/1","deprecated":false,"id":"site_member_removed/1","title":"site_member_removed(membership)"},{"anchor":"site_setup_help/2","deprecated":false,"id":"site_setup_help/2","title":"site_setup_help(user, site)"},{"anchor":"site_setup_success/2","deprecated":false,"id":"site_setup_success/2","title":"site_setup_success(user, site)"},{"anchor":"spike_notification/5","deprecated":false,"id":"spike_notification/5","title":"spike_notification(email, site, current_visitors, sources, dashboard_link)"},{"anchor":"trial_one_week_reminder/1","deprecated":false,"id":"trial_one_week_reminder/1","title":"trial_one_week_reminder(user)"},{"anchor":"trial_over_email/1","deprecated":false,"id":"trial_over_email/1","title":"trial_over_email(user)"},{"anchor":"trial_upgrade_email/3","deprecated":false,"id":"trial_upgrade_email/3","title":"trial_upgrade_email(user, day, arg)"},{"anchor":"weekly_report/3","deprecated":false,"id":"weekly_report/3","title":"weekly_report(email, site, assigns)"},{"anchor":"welcome_email/1","deprecated":false,"id":"welcome_email/1","title":"welcome_email(user)"},{"anchor":"yearly_expiration_notification/1","deprecated":false,"id":"yearly_expiration_notification/1","title":"yearly_expiration_notification(user)"},{"anchor":"yearly_renewal_notification/1","deprecated":false,"id":"yearly_renewal_notification/1","title":"yearly_renewal_notification(user)"}]}],"sections":[],"title":"PlausibleWeb.Email"},{"deprecated":false,"group":"","id":"PlausibleWeb.EmailView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"activation_email.html/1","deprecated":false,"id":"activation_email.html/1","title":"activation_email.html(assigns)"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"cancellation_email.html/1","deprecated":false,"id":"cancellation_email.html/1","title":"cancellation_email.html(assigns)"},{"anchor":"check_stats_email.html/1","deprecated":false,"id":"check_stats_email.html/1","title":"check_stats_email.html(assigns)"},{"anchor":"create_site_email.html/1","deprecated":false,"id":"create_site_email.html/1","title":"create_site_email.html(assigns)"},{"anchor":"dashboard_locked.html/1","deprecated":false,"id":"dashboard_locked.html/1","title":"dashboard_locked.html(assigns)"},{"anchor":"date_format/1","deprecated":false,"id":"date_format/1","title":"date_format(date)"},{"anchor":"enterprise_over_limit_internal.html/1","deprecated":false,"id":"enterprise_over_limit_internal.html/1","title":"enterprise_over_limit_internal.html(assigns)"},{"anchor":"error_report_email.html/1","deprecated":false,"id":"error_report_email.html/1","title":"error_report_email.html(assigns)"},{"anchor":"existing_user_invitation.html/1","deprecated":false,"id":"existing_user_invitation.html/1","title":"existing_user_invitation.html(assigns)"},{"anchor":"google_analytics_import.html/1","deprecated":false,"id":"google_analytics_import.html/1","title":"google_analytics_import.html(assigns)"},{"anchor":"greet_recipient/1","deprecated":false,"id":"greet_recipient/1","title":"greet_recipient(_)"},{"anchor":"invitation_accepted.html/1","deprecated":false,"id":"invitation_accepted.html/1","title":"invitation_accepted.html(assigns)"},{"anchor":"invitation_rejected.html/1","deprecated":false,"id":"invitation_rejected.html/1","title":"invitation_rejected.html(assigns)"},{"anchor":"new_user_invitation.html/1","deprecated":false,"id":"new_user_invitation.html/1","title":"new_user_invitation.html(assigns)"},{"anchor":"over_limit.html/1","deprecated":false,"id":"over_limit.html/1","title":"over_limit.html(assigns)"},{"anchor":"ownership_transfer_accepted.html/1","deprecated":false,"id":"ownership_transfer_accepted.html/1","title":"ownership_transfer_accepted.html(assigns)"},{"anchor":"ownership_transfer_rejected.html/1","deprecated":false,"id":"ownership_transfer_rejected.html/1","title":"ownership_transfer_rejected.html(assigns)"},{"anchor":"ownership_transfer_request.html/1","deprecated":false,"id":"ownership_transfer_request.html/1","title":"ownership_transfer_request.html(assigns)"},{"anchor":"password_reset_email.html/1","deprecated":false,"id":"password_reset_email.html/1","title":"password_reset_email.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"sentry_link/2","deprecated":false,"id":"sentry_link/2","title":"sentry_link(trace_id, dsn \\\\ Sentry.Config.dsn())"},{"anchor":"site_member_removed.html/1","deprecated":false,"id":"site_member_removed.html/1","title":"site_member_removed.html(assigns)"},{"anchor":"site_setup_help_email.html/1","deprecated":false,"id":"site_setup_help_email.html/1","title":"site_setup_help_email.html(assigns)"},{"anchor":"site_setup_success_email.html/1","deprecated":false,"id":"site_setup_success_email.html/1","title":"site_setup_success_email.html(assigns)"},{"anchor":"spike_notification.html/1","deprecated":false,"id":"spike_notification.html/1","title":"spike_notification.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"trial_one_week_reminder.html/1","deprecated":false,"id":"trial_one_week_reminder.html/1","title":"trial_one_week_reminder.html(assigns)"},{"anchor":"trial_over_email.html/1","deprecated":false,"id":"trial_over_email.html/1","title":"trial_over_email.html(assigns)"},{"anchor":"trial_upgrade_email.html/1","deprecated":false,"id":"trial_upgrade_email.html/1","title":"trial_upgrade_email.html(assigns)"},{"anchor":"welcome_email.html/1","deprecated":false,"id":"welcome_email.html/1","title":"welcome_email.html(assigns)"},{"anchor":"yearly_expiration_notification.html/1","deprecated":false,"id":"yearly_expiration_notification.html/1","title":"yearly_expiration_notification.html(assigns)"},{"anchor":"yearly_renewal_notification.html/1","deprecated":false,"id":"yearly_renewal_notification.html/1","title":"yearly_renewal_notification.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.EmailView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Endpoint","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"broadcast/3","deprecated":false,"id":"broadcast/3","title":"broadcast(topic, event, msg)"},{"anchor":"broadcast!/3","deprecated":false,"id":"broadcast!/3","title":"broadcast!(topic, event, msg)"},{"anchor":"broadcast_from/4","deprecated":false,"id":"broadcast_from/4","title":"broadcast_from(from, topic, event, msg)"},{"anchor":"broadcast_from!/4","deprecated":false,"id":"broadcast_from!/4","title":"broadcast_from!(from, topic, event, msg)"},{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/2","deprecated":false,"id":"config/2","title":"config(key, default \\\\ nil)"},{"anchor":"config_change/2","deprecated":false,"id":"config_change/2","title":"config_change(changed, removed)"},{"anchor":"host/0","deprecated":false,"id":"host/0","title":"host()"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"},{"anchor":"local_broadcast/3","deprecated":false,"id":"local_broadcast/3","title":"local_broadcast(topic, event, msg)"},{"anchor":"local_broadcast_from/4","deprecated":false,"id":"local_broadcast_from/4","title":"local_broadcast_from(from, topic, event, msg)"},{"anchor":"patch_session_opts/0","deprecated":false,"id":"patch_session_opts/0","title":"patch_session_opts()"},{"anchor":"path/1","deprecated":false,"id":"path/1","title":"path(path)"},{"anchor":"script_name/0","deprecated":false,"id":"script_name/0","title":"script_name()"},{"anchor":"secure_cookie?/0","deprecated":false,"id":"secure_cookie?/0","title":"secure_cookie?()"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"static_integrity/1","deprecated":false,"id":"static_integrity/1","title":"static_integrity(path)"},{"anchor":"static_lookup/1","deprecated":false,"id":"static_lookup/1","title":"static_lookup(path)"},{"anchor":"static_path/1","deprecated":false,"id":"static_path/1","title":"static_path(path)"},{"anchor":"static_url/0","deprecated":false,"id":"static_url/0","title":"static_url()"},{"anchor":"struct_url/0","deprecated":false,"id":"struct_url/0","title":"struct_url()"},{"anchor":"subscribe/2","deprecated":false,"id":"subscribe/2","title":"subscribe(topic, opts \\\\ [])"},{"anchor":"unsubscribe/1","deprecated":false,"id":"unsubscribe/1","title":"unsubscribe(topic)"},{"anchor":"url/0","deprecated":false,"id":"url/0","title":"url()"},{"anchor":"websocket_url/0","deprecated":false,"id":"websocket_url/0","title":"websocket_url()"}]}],"sections":[],"title":"PlausibleWeb.Endpoint"},{"deprecated":false,"group":"","id":"PlausibleWeb.ErrorHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error_tag/2","deprecated":false,"id":"error_tag/2","title":"error_tag(assigns, field)"},{"anchor":"translate_error/1","deprecated":false,"id":"translate_error/1","title":"translate_error(arg)"}]}],"sections":[],"title":"PlausibleWeb.ErrorHelpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.ErrorReportController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"submit_error_report/2","deprecated":false,"id":"submit_error_report/2","title":"submit_error_report(conn, arg2)"}]}],"sections":[],"title":"PlausibleWeb.ErrorReportController"},{"deprecated":false,"group":"","id":"PlausibleWeb.ErrorView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"404_error.html/1","deprecated":false,"id":"404_error.html/1","title":"404_error.html(assigns)"},{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"generic_error.html/1","deprecated":false,"id":"generic_error.html/1","title":"generic_error.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"server_error.html/1","deprecated":false,"id":"server_error.html/1","title":"server_error.html(assigns)"},{"anchor":"server_error_report_thanks.html/1","deprecated":false,"id":"server_error_report_thanks.html/1","title":"server_error_report_thanks.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"}]}],"sections":[],"title":"PlausibleWeb.ErrorView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Favicon","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, list)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(_)"}]}],"sections":[],"title":"PlausibleWeb.Favicon"},{"deprecated":false,"group":"","id":"PlausibleWeb.FirstLaunchPlug","sections":[],"title":"PlausibleWeb.FirstLaunchPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.FormHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"styled_error/1","deprecated":false,"id":"styled_error/1","title":"styled_error(error)"},{"anchor":"styled_label/4","deprecated":false,"id":"styled_label/4","title":"styled_label(form, field, text, opts \\\\ [])"},{"anchor":"styled_select/4","deprecated":false,"id":"styled_select/4","title":"styled_select(form, field, options, opts \\\\ [])"},{"anchor":"styled_text_input/3","deprecated":false,"id":"styled_text_input/3","title":"styled_text_input(form, field, opts \\\\ [])"}]}],"sections":[],"title":"PlausibleWeb.FormHelpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.InvitationController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"accept_invitation/2","deprecated":false,"id":"accept_invitation/2","title":"accept_invitation(conn, map)"},{"anchor":"reject_invitation/2","deprecated":false,"id":"reject_invitation/2","title":"reject_invitation(conn, map)"},{"anchor":"remove_invitation/2","deprecated":false,"id":"remove_invitation/2","title":"remove_invitation(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.InvitationController"},{"deprecated":false,"group":"","id":"PlausibleWeb.LastSeenPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.LastSeenPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.LayoutView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"app.html/1","deprecated":false,"id":"app.html/1","title":"app.html(assigns)"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"base_email.html/1","deprecated":false,"id":"base_email.html/1","title":"base_email.html(assigns)"},{"anchor":"base_error.html/1","deprecated":false,"id":"base_error.html/1","title":"base_error.html(assigns)"},{"anchor":"dogfood_domain/1","deprecated":false,"id":"dogfood_domain/1","title":"dogfood_domain(conn)"},{"anchor":"dogfood_script_url/0","deprecated":false,"id":"dogfood_script_url/0","title":"dogfood_script_url()"},{"anchor":"embedded.html/1","deprecated":false,"id":"embedded.html/1","title":"embedded.html(assigns)"},{"anchor":"focus.html/1","deprecated":false,"id":"focus.html/1","title":"focus.html(assigns)"},{"anchor":"grace_period_end/1","deprecated":false,"id":"grace_period_end/1","title":"grace_period_end(user)"},{"anchor":"home_dest/1","deprecated":false,"id":"home_dest/1","title":"home_dest(conn)"},{"anchor":"is_current_tab/2","deprecated":false,"id":"is_current_tab/2","title":"is_current_tab(conn, tab)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"priority_email.html/1","deprecated":false,"id":"priority_email.html/1","title":"priority_email.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"render_layout/3","deprecated":false,"id":"render_layout/3","title":"render_layout(layout, assigns, list)"},{"anchor":"settings_tabs/1","deprecated":false,"id":"settings_tabs/1","title":"settings_tabs(conn)"},{"anchor":"site_settings.html/1","deprecated":false,"id":"site_settings.html/1","title":"site_settings.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"trial_notificaton/1","deprecated":false,"id":"trial_notificaton/1","title":"trial_notificaton(user)"},{"anchor":"websocket_url/0","deprecated":false,"id":"websocket_url/0","title":"websocket_url()"}]}],"sections":[],"title":"PlausibleWeb.LayoutView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Components.ComboBox","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"dropdown/1","deprecated":false,"id":"dropdown/1","title":"dropdown(assigns)"},{"anchor":"dropdown_anchor/1","deprecated":false,"id":"dropdown_anchor/1","title":"dropdown_anchor(assigns)"},{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, params, socket)"},{"anchor":"option/1","deprecated":false,"id":"option/1","title":"option(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"},{"anchor":"select_option/4","deprecated":false,"id":"select_option/4","title":"select_option(js \\\\ %JS{}, id, submit_value, display_value)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(assigns, socket)"}]}],"sections":[],"title":"PlausibleWeb.Live.Components.ComboBox"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Components.ComboBox.StaticSearch","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"suggest/3","deprecated":false,"id":"suggest/3","title":"suggest(input, choices, opts \\\\ [])"}]}],"sections":[],"title":"PlausibleWeb.Live.Components.ComboBox.StaticSearch"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Components.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error/1","deprecated":false,"id":"error/1","title":"error(assigns)"},{"anchor":"input/1","deprecated":false,"id":"input/1","title":"input(assigns)"},{"anchor":"label/1","deprecated":false,"id":"label/1","title":"label(assigns)"},{"anchor":"password_input_with_strength/1","deprecated":false,"id":"password_input_with_strength/1","title":"password_input_with_strength(assigns)"},{"anchor":"password_length_hint/1","deprecated":false,"id":"password_length_hint/1","title":"password_length_hint(assigns)"},{"anchor":"strength_meter/1","deprecated":false,"id":"strength_meter/1","title":"strength_meter(assigns)"},{"anchor":"translate_error/1","deprecated":false,"id":"translate_error/1","title":"translate_error(arg)"}]}],"sections":[],"title":"PlausibleWeb.Live.Components.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Flash","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"clear_flash_button/1","deprecated":false,"id":"clear_flash_button/1","title":"clear_flash_button(assigns)"},{"anchor":"flash/1","deprecated":false,"id":"flash/1","title":"flash(assigns)"},{"anchor":"icon_error/1","deprecated":false,"id":"icon_error/1","title":"icon_error(assigns)"},{"anchor":"icon_success/1","deprecated":false,"id":"icon_success/1","title":"icon_success(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.Flash"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.FunnelSettings","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.FunnelSettings"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.FunnelSettings.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_step_button/1","deprecated":false,"id":"add_step_button/1","title":"add_step_button(assigns)"},{"anchor":"evaluation/1","deprecated":false,"id":"evaluation/1","title":"evaluation(assigns)"},{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"remove_step_button/1","deprecated":false,"id":"remove_step_button/1","title":"remove_step_button(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"},{"anchor":"submit_button/1","deprecated":false,"id":"submit_button/1","title":"submit_button(assigns)"},{"anchor":"submit_button_inactive/1","deprecated":false,"id":"submit_button_inactive/1","title":"submit_button_inactive(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.FunnelSettings.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.FunnelSettings.List","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.FunnelSettings.List"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.GoalSettings","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.GoalSettings"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.GoalSettings.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"custom_event_fields/1","deprecated":false,"id":"custom_event_fields/1","title":"custom_event_fields(assigns)"},{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"pageview_fields/1","deprecated":false,"id":"pageview_fields/1","title":"pageview_fields(assigns)"},{"anchor":"pageviews_tab/1","deprecated":false,"id":"pageviews_tab/1","title":"pageviews_tab(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"},{"anchor":"suggest_page_paths/3","deprecated":false,"id":"suggest_page_paths/3","title":"suggest_page_paths(input, options, site)"},{"anchor":"tabs/1","deprecated":false,"id":"tabs/1","title":"tabs(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.GoalSettings.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.GoalSettings.List","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.GoalSettings.List"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.PropsSettings","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.PropsSettings"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.PropsSettings.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.PropsSettings.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.PropsSettings.List","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.PropsSettings.List"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.RegisterForm","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, params, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, session, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.RegisterForm"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.ResetPasswordForm","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, map, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.ResetPasswordForm"},{"deprecated":false,"group":"","id":"PlausibleWeb.LiveSocket","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"connect/3","deprecated":false,"id":"connect/3","title":"connect(params, socket, info)"},{"anchor":"id/1","deprecated":false,"id":"id/1","title":"id(socket)"}]}],"sections":[],"title":"PlausibleWeb.LiveSocket"},{"deprecated":false,"group":"","id":"PlausibleWeb.MJML.WeeklyReport","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"debug_mjml_template/0","deprecated":false,"id":"debug_mjml_template/0","title":"debug_mjml_template()"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.MJML.WeeklyReport"},{"deprecated":false,"group":"","id":"PlausibleWeb.PageController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"index/2","deprecated":false,"id":"index/2","title":"index(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.PageController"},{"deprecated":false,"group":"","id":"PlausibleWeb.PageView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"index.html/1","deprecated":false,"id":"index.html/1","title":"index.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"}]}],"sections":[],"title":"PlausibleWeb.PageView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugins.API.Errors","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error/3","deprecated":false,"id":"error/3","title":"error(conn, status, message)"},{"anchor":"unauthorized/1","deprecated":false,"id":"unauthorized/1","title":"unauthorized(conn)"}]}],"sections":[],"title":"PlausibleWeb.Plugins.API.Errors"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.AuthorizePluginsAPI","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts \\\\ [])"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.Plugs.AuthorizePluginsAPI"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.MaybeDisableRegistration","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.Plugs.MaybeDisableRegistration"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.NoRobots","sections":[],"title":"PlausibleWeb.Plugs.NoRobots"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.RuntimeSessionAdapter","sections":[],"title":"PlausibleWeb.Plugs.RuntimeSessionAdapter"},{"deprecated":false,"group":"","id":"PlausibleWeb.RefInspector","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"parse/1","deprecated":false,"id":"parse/1","title":"parse(ref)"},{"anchor":"right_uri?/1","deprecated":false,"id":"right_uri?/1","title":"right_uri?(arg1)"}]}],"sections":[],"title":"PlausibleWeb.RefInspector"},{"deprecated":false,"group":"","id":"PlausibleWeb.RemoteIp","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get/1","deprecated":false,"id":"get/1","title":"get(conn)"}]}],"sections":[],"title":"PlausibleWeb.RemoteIp"},{"deprecated":false,"group":"","id":"PlausibleWeb.RequireAccountPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.RequireAccountPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.RequireLoggedOutPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.RequireLoggedOutPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.Router","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"api/2","deprecated":false,"id":"api/2","title":"api(conn, _)"},{"anchor":"browser/2","deprecated":false,"id":"browser/2","title":"browser(conn, _)"},{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"csrf/2","deprecated":false,"id":"csrf/2","title":"csrf(conn, _)"},{"anchor":"flags/2","deprecated":false,"id":"flags/2","title":"flags(conn, _)"},{"anchor":"focus_layout/2","deprecated":false,"id":"focus_layout/2","title":"focus_layout(conn, _)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"},{"anchor":"internal_stats_api/2","deprecated":false,"id":"internal_stats_api/2","title":"internal_stats_api(conn, _)"},{"anchor":"kaffy_browser/2","deprecated":false,"id":"kaffy_browser/2","title":"kaffy_browser(conn, _)"},{"anchor":"public_api/2","deprecated":false,"id":"public_api/2","title":"public_api(conn, _)"},{"anchor":"shared_link/2","deprecated":false,"id":"shared_link/2","title":"shared_link(conn, _)"}]}],"sections":[],"title":"PlausibleWeb.Router"},{"deprecated":false,"group":"","id":"PlausibleWeb.SessionTimeoutPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts \\\\ [])"}]}],"sections":[],"title":"PlausibleWeb.SessionTimeoutPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.Site.MembershipController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"invite_member/2","deprecated":false,"id":"invite_member/2","title":"invite_member(conn, map)"},{"anchor":"invite_member_form/2","deprecated":false,"id":"invite_member_form/2","title":"invite_member_form(conn, params)"},{"anchor":"remove_member/2","deprecated":false,"id":"remove_member/2","title":"remove_member(conn, map)"},{"anchor":"transfer_ownership/2","deprecated":false,"id":"transfer_ownership/2","title":"transfer_ownership(conn, map)"},{"anchor":"transfer_ownership_form/2","deprecated":false,"id":"transfer_ownership_form/2","title":"transfer_ownership_form(conn, params)"},{"anchor":"update_role/2","deprecated":false,"id":"update_role/2","title":"update_role(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.Site.MembershipController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Site.MembershipView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"invite_member_form.html/1","deprecated":false,"id":"invite_member_form.html/1","title":"invite_member_form.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"transfer_ownership_form.html/1","deprecated":false,"id":"transfer_ownership_form.html/1","title":"transfer_ownership_form.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Site.MembershipView"},{"deprecated":false,"group":"","id":"PlausibleWeb.SiteController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_monthly_report_recipient/2","deprecated":false,"id":"add_monthly_report_recipient/2","title":"add_monthly_report_recipient(conn, map)"},{"anchor":"add_snippet/2","deprecated":false,"id":"add_snippet/2","title":"add_snippet(conn, params)"},{"anchor":"add_snippet_after_domain_change/2","deprecated":false,"id":"add_snippet_after_domain_change/2","title":"add_snippet_after_domain_change(conn, params)"},{"anchor":"add_spike_notification_recipient/2","deprecated":false,"id":"add_spike_notification_recipient/2","title":"add_spike_notification_recipient(conn, map)"},{"anchor":"add_weekly_report_recipient/2","deprecated":false,"id":"add_weekly_report_recipient/2","title":"add_weekly_report_recipient(conn, map)"},{"anchor":"change_domain/2","deprecated":false,"id":"change_domain/2","title":"change_domain(conn, params)"},{"anchor":"change_domain_submit/2","deprecated":false,"id":"change_domain_submit/2","title":"change_domain_submit(conn, map)"},{"anchor":"create_shared_link/2","deprecated":false,"id":"create_shared_link/2","title":"create_shared_link(conn, map)"},{"anchor":"create_site/2","deprecated":false,"id":"create_site/2","title":"create_site(conn, map)"},{"anchor":"delete_custom_domain/2","deprecated":false,"id":"delete_custom_domain/2","title":"delete_custom_domain(conn, map)"},{"anchor":"delete_google_auth/2","deprecated":false,"id":"delete_google_auth/2","title":"delete_google_auth(conn, params)"},{"anchor":"delete_shared_link/2","deprecated":false,"id":"delete_shared_link/2","title":"delete_shared_link(conn, map)"},{"anchor":"delete_site/2","deprecated":false,"id":"delete_site/2","title":"delete_site(conn, params)"},{"anchor":"disable_monthly_report/2","deprecated":false,"id":"disable_monthly_report/2","title":"disable_monthly_report(conn, params)"},{"anchor":"disable_spike_notification/2","deprecated":false,"id":"disable_spike_notification/2","title":"disable_spike_notification(conn, params)"},{"anchor":"disable_weekly_report/2","deprecated":false,"id":"disable_weekly_report/2","title":"disable_weekly_report(conn, params)"},{"anchor":"edit_shared_link/2","deprecated":false,"id":"edit_shared_link/2","title":"edit_shared_link(conn, map)"},{"anchor":"enable_monthly_report/2","deprecated":false,"id":"enable_monthly_report/2","title":"enable_monthly_report(conn, params)"},{"anchor":"enable_spike_notification/2","deprecated":false,"id":"enable_spike_notification/2","title":"enable_spike_notification(conn, params)"},{"anchor":"enable_weekly_report/2","deprecated":false,"id":"enable_weekly_report/2","title":"enable_weekly_report(conn, params)"},{"anchor":"forget_imported/2","deprecated":false,"id":"forget_imported/2","title":"forget_imported(conn, params)"},{"anchor":"import_from_google/2","deprecated":false,"id":"import_from_google/2","title":"import_from_google(conn, map)"},{"anchor":"import_from_google_confirm/2","deprecated":false,"id":"import_from_google_confirm/2","title":"import_from_google_confirm(conn, map)"},{"anchor":"import_from_google_user_metric_notice/2","deprecated":false,"id":"import_from_google_user_metric_notice/2","title":"import_from_google_user_metric_notice(conn, map)"},{"anchor":"import_from_google_view_id/2","deprecated":false,"id":"import_from_google_view_id/2","title":"import_from_google_view_id(conn, map)"},{"anchor":"import_from_google_view_id_form/2","deprecated":false,"id":"import_from_google_view_id_form/2","title":"import_from_google_view_id_form(conn, map)"},{"anchor":"index/2","deprecated":false,"id":"index/2","title":"index(conn, params)"},{"anchor":"make_private/2","deprecated":false,"id":"make_private/2","title":"make_private(conn, params)"},{"anchor":"make_public/2","deprecated":false,"id":"make_public/2","title":"make_public(conn, params)"},{"anchor":"new/2","deprecated":false,"id":"new/2","title":"new(conn, params)"},{"anchor":"new_shared_link/2","deprecated":false,"id":"new_shared_link/2","title":"new_shared_link(conn, params)"},{"anchor":"remove_monthly_report_recipient/2","deprecated":false,"id":"remove_monthly_report_recipient/2","title":"remove_monthly_report_recipient(conn, map)"},{"anchor":"remove_spike_notification_recipient/2","deprecated":false,"id":"remove_spike_notification_recipient/2","title":"remove_spike_notification_recipient(conn, map)"},{"anchor":"remove_weekly_report_recipient/2","deprecated":false,"id":"remove_weekly_report_recipient/2","title":"remove_weekly_report_recipient(conn, map)"},{"anchor":"reset_stats/2","deprecated":false,"id":"reset_stats/2","title":"reset_stats(conn, params)"},{"anchor":"settings/2","deprecated":false,"id":"settings/2","title":"settings(conn, map)"},{"anchor":"settings_custom_domain/2","deprecated":false,"id":"settings_custom_domain/2","title":"settings_custom_domain(conn, params)"},{"anchor":"settings_danger_zone/2","deprecated":false,"id":"settings_danger_zone/2","title":"settings_danger_zone(conn, params)"},{"anchor":"settings_email_reports/2","deprecated":false,"id":"settings_email_reports/2","title":"settings_email_reports(conn, params)"},{"anchor":"settings_funnels/2","deprecated":false,"id":"settings_funnels/2","title":"settings_funnels(conn, params)"},{"anchor":"settings_general/2","deprecated":false,"id":"settings_general/2","title":"settings_general(conn, params)"},{"anchor":"settings_goals/2","deprecated":false,"id":"settings_goals/2","title":"settings_goals(conn, params)"},{"anchor":"settings_people/2","deprecated":false,"id":"settings_people/2","title":"settings_people(conn, params)"},{"anchor":"settings_props/2","deprecated":false,"id":"settings_props/2","title":"settings_props(conn, params)"},{"anchor":"settings_search_console/2","deprecated":false,"id":"settings_search_console/2","title":"settings_search_console(conn, params)"},{"anchor":"settings_visibility/2","deprecated":false,"id":"settings_visibility/2","title":"settings_visibility(conn, params)"},{"anchor":"update_feature_visibility/2","deprecated":false,"id":"update_feature_visibility/2","title":"update_feature_visibility(conn, map)"},{"anchor":"update_google_auth/2","deprecated":false,"id":"update_google_auth/2","title":"update_google_auth(conn, map)"},{"anchor":"update_settings/2","deprecated":false,"id":"update_settings/2","title":"update_settings(conn, map)"},{"anchor":"update_shared_link/2","deprecated":false,"id":"update_shared_link/2","title":"update_shared_link(conn, map)"},{"anchor":"update_spike_notification/2","deprecated":false,"id":"update_spike_notification/2","title":"update_spike_notification(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.SiteController"},{"deprecated":false,"group":"","id":"PlausibleWeb.SiteView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"change_domain.html/1","deprecated":false,"id":"change_domain.html/1","title":"change_domain.html(assigns)"},{"anchor":"edit_shared_link.html/1","deprecated":false,"id":"edit_shared_link.html/1","title":"edit_shared_link.html(assigns)"},{"anchor":"goal_name/1","deprecated":false,"id":"goal_name/1","title":"goal_name(arg)"},{"anchor":"google_logo/1","deprecated":false,"id":"google_logo/1","title":"google_logo(assigns \\\\ %{})"},{"anchor":"gravatar/2","deprecated":false,"id":"gravatar/2","title":"gravatar(email, opts)"},{"anchor":"import_from_google_confirm.html/1","deprecated":false,"id":"import_from_google_confirm.html/1","title":"import_from_google_confirm.html(assigns)"},{"anchor":"import_from_google_user_metric_form.html/1","deprecated":false,"id":"import_from_google_user_metric_form.html/1","title":"import_from_google_user_metric_form.html(assigns)"},{"anchor":"import_from_google_view_id_form.html/1","deprecated":false,"id":"import_from_google_view_id_form.html/1","title":"import_from_google_view_id_form.html(assigns)"},{"anchor":"index.html/1","deprecated":false,"id":"index.html/1","title":"index.html(assigns)"},{"anchor":"new.html/1","deprecated":false,"id":"new.html/1","title":"new.html(assigns)"},{"anchor":"new_shared_link.html/1","deprecated":false,"id":"new_shared_link.html/1","title":"new_shared_link.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"render_snippet/1","deprecated":false,"id":"render_snippet/1","title":"render_snippet(site)"},{"anchor":"settings_custom_domain.html/1","deprecated":false,"id":"settings_custom_domain.html/1","title":"settings_custom_domain.html(assigns)"},{"anchor":"settings_danger_zone.html/1","deprecated":false,"id":"settings_danger_zone.html/1","title":"settings_danger_zone.html(assigns)"},{"anchor":"settings_email_reports.html/1","deprecated":false,"id":"settings_email_reports.html/1","title":"settings_email_reports.html(assigns)"},{"anchor":"settings_funnels.html/1","deprecated":false,"id":"settings_funnels.html/1","title":"settings_funnels.html(assigns)"},{"anchor":"settings_general.html/1","deprecated":false,"id":"settings_general.html/1","title":"settings_general.html(assigns)"},{"anchor":"settings_goals.html/1","deprecated":false,"id":"settings_goals.html/1","title":"settings_goals.html(assigns)"},{"anchor":"settings_people.html/1","deprecated":false,"id":"settings_people.html/1","title":"settings_people.html(assigns)"},{"anchor":"settings_props.html/1","deprecated":false,"id":"settings_props.html/1","title":"settings_props.html(assigns)"},{"anchor":"settings_search_console.html/1","deprecated":false,"id":"settings_search_console.html/1","title":"settings_search_console.html(assigns)"},{"anchor":"settings_visibility.html/1","deprecated":false,"id":"settings_visibility.html/1","title":"settings_visibility.html(assigns)"},{"anchor":"shared_link_dest/2","deprecated":false,"id":"shared_link_dest/2","title":"shared_link_dest(site, link)"},{"anchor":"snippet.html/1","deprecated":false,"id":"snippet.html/1","title":"snippet.html(assigns)"},{"anchor":"snippet_after_domain_change.html/1","deprecated":false,"id":"snippet_after_domain_change.html/1","title":"snippet_after_domain_change.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"with_indefinite_article/1","deprecated":false,"id":"with_indefinite_article/1","title":"with_indefinite_article(word)"}]}],"sections":[],"title":"PlausibleWeb.SiteView"},{"deprecated":false,"group":"","id":"PlausibleWeb.StatsController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"authenticate_shared_link/2","deprecated":false,"id":"authenticate_shared_link/2","title":"authenticate_shared_link(conn, map)"},{"anchor":"csv_export/2","deprecated":false,"id":"csv_export/2","title":"csv_export(conn, params)"},{"anchor":"shared_link/2","deprecated":false,"id":"shared_link/2","title":"shared_link(conn, arg2)"},{"anchor":"stats/2","deprecated":false,"id":"stats/2","title":"stats(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.StatsController"},{"deprecated":false,"group":"","id":"PlausibleWeb.StatsView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"large_number_format/1","deprecated":false,"id":"large_number_format/1","title":"large_number_format(n)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"pretty_stats_url/1","deprecated":false,"id":"pretty_stats_url/1","title":"pretty_stats_url(arg)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"shared_link_password.html/1","deprecated":false,"id":"shared_link_password.html/1","title":"shared_link_password.html(assigns)"},{"anchor":"site_locked.html/1","deprecated":false,"id":"site_locked.html/1","title":"site_locked.html(assigns)"},{"anchor":"stats.html/1","deprecated":false,"id":"stats.html/1","title":"stats.html(assigns)"},{"anchor":"stats_container_class/1","deprecated":false,"id":"stats_container_class/1","title":"stats_container_class(conn)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"waiting_first_pageview.html/1","deprecated":false,"id":"waiting_first_pageview.html/1","title":"waiting_first_pageview.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.StatsView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Tracker","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, list)"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(arg)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.Tracker"},{"deprecated":false,"group":"","id":"PlausibleWeb.UnsubscribeController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"monthly_report/2","deprecated":false,"id":"monthly_report/2","title":"monthly_report(conn, map)"},{"anchor":"weekly_report/2","deprecated":false,"id":"weekly_report/2","title":"weekly_report(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.UnsubscribeController"},{"deprecated":false,"group":"","id":"PlausibleWeb.UnsubscribeView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"success.html/1","deprecated":false,"id":"success.html/1","title":"success.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"}]}],"sections":[],"title":"PlausibleWeb.UnsubscribeView"}],"tasks":[{"deprecated":false,"group":"","id":"Mix.Tasks.CleanClickhouse","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_)"}]}],"sections":[],"title":"mix clean_clickhouse"},{"deprecated":false,"group":"","id":"Mix.Tasks.CreateFreeSubscription","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"execute/1","deprecated":false,"id":"execute/1","title":"execute(user_id)"},{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(arg1)"}]}],"sections":[],"title":"mix create_free_subscription"},{"deprecated":false,"group":"","id":"Mix.Tasks.DownloadCountryDatabase","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_)"}]}],"sections":[],"title":"mix download_country_database"},{"deprecated":false,"group":"","id":"Mix.Tasks.GenerateReferrerFavicons","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_)"}]}],"sections":[],"title":"mix generate_referrer_favicons"},{"deprecated":false,"group":"","id":"Mix.Tasks.PullSandboxSubscription","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(list)"}]}],"sections":[],"title":"mix pull_sandbox_subscription"},{"deprecated":false,"group":"","id":"Mix.Tasks.SendPageview","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(opts)"}]}],"sections":[],"title":"mix send_pageview"}]}
\ No newline at end of file
diff --git a/dist/sidebar_items-C70141D1.js b/dist/sidebar_items-C70141D1.js
deleted file mode 100644
index 7d415ce61..000000000
--- a/dist/sidebar_items-C70141D1.js
+++ /dev/null
@@ -1 +0,0 @@
-sidebarNodes={"extras":[{"group":"","headers":[{"anchor":"modules","id":"Modules"},{"anchor":"mix-tasks","id":"Mix Tasks"}],"id":"api-reference","title":"API Reference"},{"group":"","headers":[{"anchor":"why-plausible","id":"Why Plausible?"},{"anchor":"why-is-plausible-analytics-cloud-not-free-like-google-analytics","id":"Why is Plausible Analytics Cloud not free like Google Analytics?"},{"anchor":"getting-started-with-plausible","id":"Getting started with Plausible"},{"anchor":"technology","id":"Technology"},{"anchor":"contributors","id":"Contributors"},{"anchor":"feedback-roadmap","id":"Feedback & Roadmap"},{"anchor":"license","id":"License"}],"id":"readme","title":"Introduction"},{"group":"","headers":[{"anchor":"development-setup","id":"Development setup"},{"anchor":"finding-a-task","id":"Finding a task"}],"id":"contributing","title":"Contributing"},{"group":"Features","headers":[{"anchor":"usage-alert-and-grace-period","id":"Usage alert and grace period"},{"anchor":"account-locking","id":"Account locking"}],"id":"account-locking","title":"Account locking"}],"modules":[{"deprecated":false,"group":"","id":"ObanErrorReporter","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/4","deprecated":false,"id":"handle_event/4","title":"handle_event(list, measure, meta, _)"}]}],"sections":[],"title":"ObanErrorReporter"},{"deprecated":false,"group":"","id":"Plausible","sections":[],"title":"Plausible"},{"deprecated":false,"group":"","id":"Plausible.AsyncInsertRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.AsyncInsertRepo"},{"deprecated":false,"group":"","id":"Plausible.Auth","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_user/3","deprecated":false,"id":"create_user/3","title":"create_user(name, email, pwd)"},{"anchor":"delete_user/1","deprecated":false,"id":"delete_user/1","title":"delete_user(user)"},{"anchor":"enterprise?/1","deprecated":false,"id":"enterprise?/1","title":"enterprise?(user)"},{"anchor":"find_user_by/1","deprecated":false,"id":"find_user_by/1","title":"find_user_by(opts)"},{"anchor":"has_active_sites?/2","deprecated":false,"id":"has_active_sites?/2","title":"has_active_sites?(user, roles \\\\ [:owner, :admin, :viewer])"},{"anchor":"is_super_admin?/1","deprecated":false,"id":"is_super_admin?/1","title":"is_super_admin?(user_id)"},{"anchor":"issue_email_verification/1","deprecated":false,"id":"issue_email_verification/1","title":"issue_email_verification(user)"},{"anchor":"user_owns_sites?/1","deprecated":false,"id":"user_owns_sites?/1","title":"user_owns_sites?(user)"},{"anchor":"verify_email/2","deprecated":false,"id":"verify_email/2","title":"verify_email(user, code)"}]}],"sections":[],"title":"Plausible.Auth"},{"deprecated":false,"group":"","id":"Plausible.Auth.ApiKey","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(schema, attrs \\\\ %{})"},{"anchor":"do_hash/1","deprecated":false,"id":"do_hash/1","title":"do_hash(key)"},{"anchor":"process_key/1","deprecated":false,"id":"process_key/1","title":"process_key(changeset)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(schema, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Auth.ApiKey"},{"deprecated":false,"group":"","id":"Plausible.Auth.ApiKeyAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_changeset/2","deprecated":false,"id":"create_changeset/2","title":"create_changeset(schema, attrs)"},{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"search_fields/1","deprecated":false,"id":"search_fields/1","title":"search_fields(schema)"},{"anchor":"update_changeset/2","deprecated":false,"id":"update_changeset/2","title":"update_changeset(schema, attrs)"}]}],"sections":[],"title":"Plausible.Auth.ApiKeyAdmin"},{"deprecated":false,"group":"","id":"Plausible.Auth.GracePeriod","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"active?/1","deprecated":false,"id":"active?/1","title":"active?(user)"},{"anchor":"end_changeset/1","deprecated":false,"id":"end_changeset/1","title":"end_changeset(user)"},{"anchor":"expired?/1","deprecated":false,"id":"expired?/1","title":"expired?(user)"},{"anchor":"remove_changeset/1","deprecated":false,"id":"remove_changeset/1","title":"remove_changeset(user)"},{"anchor":"start_changeset/2","deprecated":false,"id":"start_changeset/2","title":"start_changeset(user, allowance_required)"},{"anchor":"start_manual_lock_changeset/2","deprecated":false,"id":"start_manual_lock_changeset/2","title":"start_manual_lock_changeset(user, allowance_required)"}]}],"sections":[],"title":"Plausible.Auth.GracePeriod"},{"deprecated":false,"group":"","id":"Plausible.Auth.Invitation","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Auth.Invitation"},{"deprecated":false,"group":"","id":"Plausible.Auth.Password","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"dummy_calculation/0","deprecated":false,"id":"dummy_calculation/0","title":"dummy_calculation()"},{"anchor":"hash/1","deprecated":false,"id":"hash/1","title":"hash(password)"},{"anchor":"match?/2","deprecated":false,"id":"match?/2","title":"match?(password, hash)"}]}],"sections":[],"title":"Plausible.Auth.Password"},{"deprecated":false,"group":"","id":"Plausible.Auth.Token","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"sign_password_reset/1","deprecated":false,"id":"sign_password_reset/1","title":"sign_password_reset(email)"},{"anchor":"sign_shared_link/1","deprecated":false,"id":"sign_shared_link/1","title":"sign_shared_link(slug)"},{"anchor":"verify_password_reset/1","deprecated":false,"id":"verify_password_reset/1","title":"verify_password_reset(token)"},{"anchor":"verify_shared_link/1","deprecated":false,"id":"verify_shared_link/1","title":"verify_shared_link(token)"}]}],"sections":[],"title":"Plausible.Auth.Token"},{"deprecated":false,"group":"","id":"Plausible.Auth.User","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(user, attrs \\\\ %{})"},{"anchor":"end_trial/1","deprecated":false,"id":"end_trial/1","title":"end_trial(user)"},{"anchor":"hash_password/1","deprecated":false,"id":"hash_password/1","title":"hash_password(changeset)"},{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(attrs \\\\ %{})"},{"anchor":"password_strength/1","deprecated":false,"id":"password_strength/1","title":"password_strength(changeset)"},{"anchor":"remove_trial_expiry/1","deprecated":false,"id":"remove_trial_expiry/1","title":"remove_trial_expiry(user)"},{"anchor":"set_password/2","deprecated":false,"id":"set_password/2","title":"set_password(user, password)"},{"anchor":"start_trial/1","deprecated":false,"id":"start_trial/1","title":"start_trial(user)"}]}],"sections":[],"title":"Plausible.Auth.User"},{"deprecated":false,"group":"","id":"Plausible.Auth.UserAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(conn, map)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"resource_actions/1","deprecated":false,"id":"resource_actions/1","title":"resource_actions(_)"}]}],"sections":[],"title":"Plausible.Auth.UserAdmin"},{"deprecated":false,"group":"","id":"Plausible.Billing","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"active_subscription_for/1","deprecated":false,"id":"active_subscription_for/1","title":"active_subscription_for(user_id)"},{"anchor":"change_plan/2","deprecated":false,"id":"change_plan/2","title":"change_plan(user, new_plan_id)"},{"anchor":"change_plan_preview/2","deprecated":false,"id":"change_plan_preview/2","title":"change_plan_preview(subscription, new_plan_id)"},{"anchor":"has_active_subscription?/1","deprecated":false,"id":"has_active_subscription?/1","title":"has_active_subscription?(user_id)"},{"anchor":"last_two_billing_cycles/2","deprecated":false,"id":"last_two_billing_cycles/2","title":"last_two_billing_cycles(user, today \\\\ Timex.today())"},{"anchor":"last_two_billing_months_usage/2","deprecated":false,"id":"last_two_billing_months_usage/2","title":"last_two_billing_months_usage(user, today \\\\ Timex.today())"},{"anchor":"needs_to_upgrade?/1","deprecated":false,"id":"needs_to_upgrade?/1","title":"needs_to_upgrade?(user)"},{"anchor":"on_trial?/1","deprecated":false,"id":"on_trial?/1","title":"on_trial?(user)"},{"anchor":"paddle_api/0","deprecated":false,"id":"paddle_api/0","title":"paddle_api()"},{"anchor":"subscription_cancelled/1","deprecated":false,"id":"subscription_cancelled/1","title":"subscription_cancelled(params)"},{"anchor":"subscription_created/1","deprecated":false,"id":"subscription_created/1","title":"subscription_created(params)"},{"anchor":"subscription_payment_succeeded/1","deprecated":false,"id":"subscription_payment_succeeded/1","title":"subscription_payment_succeeded(params)"},{"anchor":"subscription_updated/1","deprecated":false,"id":"subscription_updated/1","title":"subscription_updated(params)"},{"anchor":"trial_days_left/1","deprecated":false,"id":"trial_days_left/1","title":"trial_days_left(user)"},{"anchor":"usage_breakdown/1","deprecated":false,"id":"usage_breakdown/1","title":"usage_breakdown(user)"}]}],"sections":[],"title":"Plausible.Billing"},{"deprecated":false,"group":"","id":"Plausible.Billing.EnterprisePlan","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(model, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Billing.EnterprisePlan"},{"deprecated":false,"group":"","id":"Plausible.Billing.EnterprisePlanAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"search_fields/1","deprecated":false,"id":"search_fields/1","title":"search_fields(schema)"}]}],"sections":[],"title":"Plausible.Billing.EnterprisePlanAdmin"},{"deprecated":false,"group":"","id":"Plausible.Billing.PaddleApi","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"checkout_domain/0","deprecated":false,"id":"checkout_domain/0","title":"checkout_domain()"},{"anchor":"get_invoices/1","deprecated":false,"id":"get_invoices/1","title":"get_invoices(subscription)"},{"anchor":"get_subscription/1","deprecated":false,"id":"get_subscription/1","title":"get_subscription(paddle_subscription_id)"},{"anchor":"update_subscription/2","deprecated":false,"id":"update_subscription/2","title":"update_subscription(paddle_subscription_id, params)"},{"anchor":"update_subscription_preview/2","deprecated":false,"id":"update_subscription_preview/2","title":"update_subscription_preview(paddle_subscription_id, new_plan_id)"},{"anchor":"vendors_domain/0","deprecated":false,"id":"vendors_domain/0","title":"vendors_domain()"}]}],"sections":[],"title":"Plausible.Billing.PaddleApi"},{"deprecated":false,"group":"","id":"Plausible.Billing.Plans","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"find/2","deprecated":false,"id":"find/2","title":"find(product_id_or_subscription, scope \\\\ all())"},{"anchor":"for_user/1","deprecated":false,"id":"for_user/1","title":"for_user(user)"},{"anchor":"get_subscription_plan/1","deprecated":false,"id":"get_subscription_plan/1","title":"get_subscription_plan(subscription)"},{"anchor":"subscription_interval/1","deprecated":false,"id":"subscription_interval/1","title":"subscription_interval(subscription)"},{"anchor":"suggest/2","deprecated":false,"id":"suggest/2","title":"suggest(user, usage_during_cycle)"},{"anchor":"yearly_product_ids/0","deprecated":false,"id":"yearly_product_ids/0","title":"yearly_product_ids()"}]}],"sections":[],"title":"Plausible.Billing.Plans"},{"deprecated":false,"group":"","id":"Plausible.Billing.Quota","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"monthly_pageview_limit/1","deprecated":false,"id":"monthly_pageview_limit/1","title":"monthly_pageview_limit(subscription)"},{"anchor":"monthly_pageview_usage/1","deprecated":false,"id":"monthly_pageview_usage/1","title":"monthly_pageview_usage(user)"},{"anchor":"site_limit/1","deprecated":false,"id":"site_limit/1","title":"site_limit(user)"},{"anchor":"site_usage/1","deprecated":false,"id":"site_usage/1","title":"site_usage(user)"},{"anchor":"team_member_limit/1","deprecated":false,"id":"team_member_limit/1","title":"team_member_limit(user)"},{"anchor":"team_member_usage/1","deprecated":false,"id":"team_member_usage/1","title":"team_member_usage(user)"},{"anchor":"within_limit?/2","deprecated":false,"id":"within_limit?/2","title":"within_limit?(usage, limit)"}]}],"sections":[],"title":"Plausible.Billing.Quota"},{"deprecated":false,"group":"","id":"Plausible.Billing.SiteLocker","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"check_sites_for/1","deprecated":false,"id":"check_sites_for/1","title":"check_sites_for(user)"},{"anchor":"set_lock_status_for/2","deprecated":false,"id":"set_lock_status_for/2","title":"set_lock_status_for(user, status)"}]}],"sections":[],"title":"Plausible.Billing.SiteLocker"},{"deprecated":false,"group":"","id":"Plausible.ChangesetHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"traverse_errors/1","deprecated":false,"id":"traverse_errors/1","title":"traverse_errors(changeset)"}]}],"sections":[],"title":"Plausible.ChangesetHelpers"},{"deprecated":false,"group":"","id":"Plausible.Cldr","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"available_locale_name?/1","deprecated":false,"id":"available_locale_name?/1","title":"available_locale_name?(locale_name)"},{"anchor":"default_locale/0","deprecated":false,"id":"default_locale/0","title":"default_locale()"},{"anchor":"default_territory/0","deprecated":false,"id":"default_territory/0","title":"default_territory()"},{"anchor":"ellipsis/2","deprecated":false,"id":"ellipsis/2","title":"ellipsis(string, options \\\\ [])"},{"anchor":"get_locale/0","deprecated":false,"id":"get_locale/0","title":"get_locale()"},{"anchor":"known_calendars/0","deprecated":false,"id":"known_calendars/0","title":"known_calendars()"},{"anchor":"known_currencies/0","deprecated":false,"id":"known_currencies/0","title":"known_currencies()"},{"anchor":"known_gettext_locale_name/1","deprecated":false,"id":"known_gettext_locale_name/1","title":"known_gettext_locale_name(locale_name)"},{"anchor":"known_gettext_locale_name?/1","deprecated":false,"id":"known_gettext_locale_name?/1","title":"known_gettext_locale_name?(locale_name)"},{"anchor":"known_gettext_locale_names/0","deprecated":false,"id":"known_gettext_locale_names/0","title":"known_gettext_locale_names()"},{"anchor":"known_locale_name/1","deprecated":false,"id":"known_locale_name/1","title":"known_locale_name(locale_name)"},{"anchor":"known_locale_name?/1","deprecated":false,"id":"known_locale_name?/1","title":"known_locale_name?(locale_name)"},{"anchor":"known_locale_names/0","deprecated":false,"id":"known_locale_names/0","title":"known_locale_names()"},{"anchor":"known_number_system_types/0","deprecated":false,"id":"known_number_system_types/0","title":"known_number_system_types()"},{"anchor":"known_number_systems/0","deprecated":false,"id":"known_number_systems/0","title":"known_number_systems()"},{"anchor":"known_rbnf_locale_name/1","deprecated":false,"id":"known_rbnf_locale_name/1","title":"known_rbnf_locale_name(locale_name)"},{"anchor":"known_rbnf_locale_name?/1","deprecated":false,"id":"known_rbnf_locale_name?/1","title":"known_rbnf_locale_name?(locale_name)"},{"anchor":"known_rbnf_locale_names/0","deprecated":false,"id":"known_rbnf_locale_names/0","title":"known_rbnf_locale_names()"},{"anchor":"known_territories/0","deprecated":false,"id":"known_territories/0","title":"known_territories()"},{"anchor":"normalize_lenient_parse/3","deprecated":false,"id":"normalize_lenient_parse/3","title":"normalize_lenient_parse(string, scope, locale \\\\ get_locale())"},{"anchor":"put_locale/1","deprecated":false,"id":"put_locale/1","title":"put_locale(locale_name)"},{"anchor":"quote/2","deprecated":false,"id":"quote/2","title":"quote(string, options \\\\ [])"},{"anchor":"unknown_locale_names/0","deprecated":false,"id":"unknown_locale_names/0","title":"unknown_locale_names()"},{"anchor":"validate_calendar/1","deprecated":false,"id":"validate_calendar/1","title":"validate_calendar(calendar)"},{"anchor":"validate_currency/1","deprecated":false,"id":"validate_currency/1","title":"validate_currency(currency)"},{"anchor":"validate_locale/1","deprecated":false,"id":"validate_locale/1","title":"validate_locale(locale)"},{"anchor":"validate_number_system/1","deprecated":false,"id":"validate_number_system/1","title":"validate_number_system(number_system)"},{"anchor":"validate_number_system_type/1","deprecated":false,"id":"validate_number_system_type/1","title":"validate_number_system_type(number_system_type)"},{"anchor":"validate_territory/1","deprecated":false,"id":"validate_territory/1","title":"validate_territory(territory)"},{"anchor":"with_locale/2","deprecated":false,"id":"with_locale/2","title":"with_locale(locale, fun)"}]}],"sections":[],"title":"Plausible.Cldr"},{"deprecated":false,"group":"","id":"Plausible.Cldr.AcceptLanguage","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"best_match/1","deprecated":false,"id":"best_match/1","title":"best_match(accept_language)"},{"anchor":"parse/1","deprecated":false,"id":"parse/1","title":"parse(tokens_or_string)"},{"anchor":"parse!/1","deprecated":false,"id":"parse!/1","title":"parse!(accept_language)"}]}],"sections":[],"title":"Plausible.Cldr.AcceptLanguage"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Currency","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"currencies_for_locale/3","deprecated":false,"id":"currencies_for_locale/3","title":"currencies_for_locale(locale, only \\\\ :all, except \\\\ nil)"},{"anchor":"currencies_for_locale!/3","deprecated":false,"id":"currencies_for_locale!/3","title":"currencies_for_locale!(locale, only \\\\ :all, except \\\\ nil)"},{"anchor":"currency_for_code/2","deprecated":false,"id":"currency_for_code/2","title":"currency_for_code(currency_or_currency_code, options \\\\ [locale: Plausible.Cldr.default_locale()])"},{"anchor":"currency_for_code!/2","deprecated":false,"id":"currency_for_code!/2","title":"currency_for_code!(currency_or_currency_code, options \\\\ [locale: Plausible.Cldr.default_locale()])"},{"anchor":"currency_from_locale/1","deprecated":false,"id":"currency_from_locale/1","title":"currency_from_locale(locale)"},{"anchor":"currency_history_for_locale/1","deprecated":false,"id":"currency_history_for_locale/1","title":"currency_history_for_locale(language_tag)"},{"anchor":"currency_strings/3","deprecated":false,"id":"currency_strings/3","title":"currency_strings(locale, only \\\\ :all, except \\\\ nil)"},{"anchor":"currency_strings!/3","deprecated":false,"id":"currency_strings!/3","title":"currency_strings!(locale_name, only \\\\ :all, except \\\\ nil)"},{"anchor":"current_currency_from_locale/1","deprecated":false,"id":"current_currency_from_locale/1","title":"current_currency_from_locale(locale)"},{"anchor":"current_territory_currencies/0","deprecated":false,"id":"current_territory_currencies/0","title":"current_territory_currencies()"},{"anchor":"known_currencies/0","deprecated":false,"id":"known_currencies/0","title":"known_currencies()"},{"anchor":"known_currency?/1","deprecated":false,"id":"known_currency?/1","title":"known_currency?(code)"},{"anchor":"known_currency_code/1","deprecated":false,"id":"known_currency_code/1","title":"known_currency_code(currency_code)"},{"anchor":"known_currency_code?/1","deprecated":false,"id":"known_currency_code?/1","title":"known_currency_code?(currency_code)"},{"anchor":"known_currency_codes/0","deprecated":false,"id":"known_currency_codes/0","title":"known_currency_codes()"},{"anchor":"new/2","deprecated":false,"id":"new/2","title":"new(currency, options \\\\ [])"},{"anchor":"pluralize/3","deprecated":false,"id":"pluralize/3","title":"pluralize(number, currency, options \\\\ [])"},{"anchor":"strings_for_currency/2","deprecated":false,"id":"strings_for_currency/2","title":"strings_for_currency(currency, locale)"}]}],"sections":[],"title":"Plausible.Cldr.Currency"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Locale","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fallback_locale_names/1","deprecated":false,"id":"fallback_locale_names/1","title":"fallback_locale_names(locale)"},{"anchor":"fallback_locales/1","deprecated":false,"id":"fallback_locales/1","title":"fallback_locales(locale)"},{"anchor":"locale_for_territory/1","deprecated":false,"id":"locale_for_territory/1","title":"locale_for_territory(territory)"},{"anchor":"locale_from_host/2","deprecated":false,"id":"locale_from_host/2","title":"locale_from_host(host, options \\\\ [])"},{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(locale_name)"},{"anchor":"new!/1","deprecated":false,"id":"new!/1","title":"new!(locale_name)"},{"anchor":"script_direction_from_locale/1","deprecated":false,"id":"script_direction_from_locale/1","title":"script_direction_from_locale(locale)"},{"anchor":"territory_from_host/1","deprecated":false,"id":"territory_from_host/1","title":"territory_from_host(host)"},{"anchor":"territory_from_locale/1","deprecated":false,"id":"territory_from_locale/1","title":"territory_from_locale(locale)"},{"anchor":"timezone_from_locale/1","deprecated":false,"id":"timezone_from_locale/1","title":"timezone_from_locale(locale)"}]}],"sections":[],"title":"Plausible.Cldr.Locale"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"parse/2","deprecated":false,"id":"parse/2","title":"parse(string, options \\\\ [])"},{"anchor":"resolve_currencies/2","deprecated":false,"id":"resolve_currencies/2","title":"resolve_currencies(list, options \\\\ [])"},{"anchor":"resolve_currency/2","deprecated":false,"id":"resolve_currency/2","title":"resolve_currency(string, options \\\\ [])"},{"anchor":"resolve_per/2","deprecated":false,"id":"resolve_per/2","title":"resolve_per(string, options \\\\ [])"},{"anchor":"resolve_pers/2","deprecated":false,"id":"resolve_pers/2","title":"resolve_pers(list, options \\\\ [])"},{"anchor":"scan/2","deprecated":false,"id":"scan/2","title":"scan(string, options \\\\ [])"},{"anchor":"to_approx_string/2","deprecated":false,"id":"to_approx_string/2","title":"to_approx_string(number, options \\\\ [])"},{"anchor":"to_at_least_string/2","deprecated":false,"id":"to_at_least_string/2","title":"to_at_least_string(number, options \\\\ [])"},{"anchor":"to_at_most_string/2","deprecated":false,"id":"to_at_most_string/2","title":"to_at_most_string(number, options \\\\ [])"},{"anchor":"to_range_string/2","deprecated":false,"id":"to_range_string/2","title":"to_range_string(range, options \\\\ [])"},{"anchor":"to_string/2","deprecated":false,"id":"to_string/2","title":"to_string(number, options \\\\ default_options())"},{"anchor":"to_string!/2","deprecated":false,"id":"to_string!/2","title":"to_string!(number, options \\\\ default_options())"},{"anchor":"validate_number_system/2","deprecated":false,"id":"validate_number_system/2","title":"validate_number_system(locale, number_system)"}]}],"sections":[],"title":"Plausible.Cldr.Number"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Cardinal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"available_locale_names/0","deprecated":false,"id":"available_locale_names/0","title":"available_locale_names()"},{"anchor":"known_locale_names/0","deprecated":false,"id":"known_locale_names/0","title":"known_locale_names()"},{"anchor":"plural_rule/3","deprecated":false,"id":"plural_rule/3","title":"plural_rule(number, locale, rounding \\\\ Math.default_rounding())"},{"anchor":"plural_rules/0","deprecated":false,"id":"plural_rules/0","title":"plural_rules()"},{"anchor":"plural_rules_for/1","deprecated":false,"id":"plural_rules_for/1","title":"plural_rules_for(locale_name)"},{"anchor":"pluralize/3","deprecated":false,"id":"pluralize/3","title":"pluralize(number, locale_name, substitutions)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Cardinal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Format","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_formats_for/1","deprecated":false,"id":"all_formats_for/1","title":"all_formats_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"all_formats_for!/1","deprecated":false,"id":"all_formats_for!/1","title":"all_formats_for!(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"currency_spacing/2","deprecated":false,"id":"currency_spacing/2","title":"currency_spacing(locale, number_system)"},{"anchor":"decimal_format_list/0","deprecated":false,"id":"decimal_format_list/0","title":"decimal_format_list()"},{"anchor":"decimal_format_list_for/1","deprecated":false,"id":"decimal_format_list_for/1","title":"decimal_format_list_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"default_grouping_for/1","deprecated":false,"id":"default_grouping_for/1","title":"default_grouping_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"default_grouping_for!/1","deprecated":false,"id":"default_grouping_for!/1","title":"default_grouping_for!(locale)"},{"anchor":"formats_for/2","deprecated":false,"id":"formats_for/2","title":"formats_for(locale \\\\ Plausible.Cldr.default_locale(), number_system \\\\ Cldr.Number.System.default_number_system_type())"},{"anchor":"formats_for!/2","deprecated":false,"id":"formats_for!/2","title":"formats_for!(locale \\\\ Plausible.Cldr.default_locale(), number_system \\\\ Cldr.Number.System.default_number_system_type())"},{"anchor":"minimum_grouping_digits_for/1","deprecated":false,"id":"minimum_grouping_digits_for/1","title":"minimum_grouping_digits_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"minimum_grouping_digits_for!/1","deprecated":false,"id":"minimum_grouping_digits_for!/1","title":"minimum_grouping_digits_for!(locale)"}]}],"sections":[{"anchor":"module-number-pattern-examples","id":"Number Pattern Examples"}],"title":"Plausible.Cldr.Number.Format"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Formatter.Decimal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"metadata!/1","deprecated":false,"id":"metadata!/1","title":"metadata!(format)"},{"anchor":"to_string/3","deprecated":false,"id":"to_string/3","title":"to_string(number, format, options \\\\ [])"}]}],"sections":[],"title":"Plausible.Cldr.Number.Formatter.Decimal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Ordinal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"available_locale_names/0","deprecated":false,"id":"available_locale_names/0","title":"available_locale_names()"},{"anchor":"known_locale_names/0","deprecated":false,"id":"known_locale_names/0","title":"known_locale_names()"},{"anchor":"plural_rule/3","deprecated":false,"id":"plural_rule/3","title":"plural_rule(number, locale, rounding \\\\ Math.default_rounding())"},{"anchor":"plural_rules/0","deprecated":false,"id":"plural_rules/0","title":"plural_rules()"},{"anchor":"plural_rules_for/1","deprecated":false,"id":"plural_rules_for/1","title":"plural_rules_for(locale_name)"},{"anchor":"pluralize/3","deprecated":false,"id":"pluralize/3","title":"pluralize(number, locale_name, substitutions)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Ordinal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.PluralRule.Range","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"plural_rule/3","deprecated":false,"id":"plural_rule/3","title":"plural_rule(first, last, locale)"}]}],"sections":[],"title":"Plausible.Cldr.Number.PluralRule.Range"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Symbol","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_decimal_symbols/0","deprecated":false,"id":"all_decimal_symbols/0","title":"all_decimal_symbols()"},{"anchor":"all_decimal_symbols_class/0","deprecated":false,"id":"all_decimal_symbols_class/0","title":"all_decimal_symbols_class()"},{"anchor":"all_grouping_symbols/0","deprecated":false,"id":"all_grouping_symbols/0","title":"all_grouping_symbols()"},{"anchor":"all_grouping_symbols_class/0","deprecated":false,"id":"all_grouping_symbols_class/0","title":"all_grouping_symbols_class()"},{"anchor":"number_symbols_for/1","deprecated":false,"id":"number_symbols_for/1","title":"number_symbols_for(locale \\\\ Plausible.Cldr.get_locale())"},{"anchor":"number_symbols_for/2","deprecated":false,"id":"number_symbols_for/2","title":"number_symbols_for(locale, number_system)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Symbol"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.System","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"number_system_for/2","deprecated":false,"id":"number_system_for/2","title":"number_system_for(locale, system_name)"},{"anchor":"number_system_from_locale/1","deprecated":false,"id":"number_system_from_locale/1","title":"number_system_from_locale(locale)"},{"anchor":"number_system_names_for/1","deprecated":false,"id":"number_system_names_for/1","title":"number_system_names_for(locale)"},{"anchor":"number_system_names_for!/1","deprecated":false,"id":"number_system_names_for!/1","title":"number_system_names_for!(locale)"},{"anchor":"number_system_types_for/1","deprecated":false,"id":"number_system_types_for/1","title":"number_system_types_for(locale)"},{"anchor":"number_systems_for/1","deprecated":false,"id":"number_systems_for/1","title":"number_systems_for(locale)"},{"anchor":"number_systems_for!/1","deprecated":false,"id":"number_systems_for!/1","title":"number_systems_for!(locale)"},{"anchor":"number_systems_like/2","deprecated":false,"id":"number_systems_like/2","title":"number_systems_like(locale, number_system)"},{"anchor":"system_name_from/2","deprecated":false,"id":"system_name_from/2","title":"system_name_from(system_name, locale)"},{"anchor":"to_system/2","deprecated":false,"id":"to_system/2","title":"to_system(number, system)"},{"anchor":"to_system!/2","deprecated":false,"id":"to_system!/2","title":"to_system!(number, system_name)"}]}],"sections":[],"title":"Plausible.Cldr.Number.System"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Number.Transliterate","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"transliterate/3","deprecated":false,"id":"transliterate/3","title":"transliterate(sequence, locale \\\\ Plausible.Cldr.get_locale(), number_system \\\\ System.default_number_system_type())"},{"anchor":"transliterate!/3","deprecated":false,"id":"transliterate!/3","title":"transliterate!(sequence, locale, number_system)"},{"anchor":"transliterate_digits/3","deprecated":false,"id":"transliterate_digits/3","title":"transliterate_digits(digits, from_system, to_system)"}]}],"sections":[],"title":"Plausible.Cldr.Number.Transliterate"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Rbnf.NumberSystem","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_rule_sets/0","deprecated":false,"id":"all_rule_sets/0","title":"all_rule_sets()"},{"anchor":"armenian_lower/1","deprecated":false,"id":"armenian_lower/1","title":"armenian_lower(number)"},{"anchor":"armenian_lower/2","deprecated":false,"id":"armenian_lower/2","title":"armenian_lower(number, locale)"},{"anchor":"armenian_upper/1","deprecated":false,"id":"armenian_upper/1","title":"armenian_upper(number)"},{"anchor":"armenian_upper/2","deprecated":false,"id":"armenian_upper/2","title":"armenian_upper(number, locale)"},{"anchor":"cyrillic_lower/1","deprecated":false,"id":"cyrillic_lower/1","title":"cyrillic_lower(number)"},{"anchor":"cyrillic_lower/2","deprecated":false,"id":"cyrillic_lower/2","title":"cyrillic_lower(number, locale)"},{"anchor":"cyrillic_lower_1_10/2","deprecated":false,"id":"cyrillic_lower_1_10/2","title":"cyrillic_lower_1_10(number, language_tag)"},{"anchor":"cyrillic_lower_final/2","deprecated":false,"id":"cyrillic_lower_final/2","title":"cyrillic_lower_final(number, language_tag)"},{"anchor":"cyrillic_lower_post/2","deprecated":false,"id":"cyrillic_lower_post/2","title":"cyrillic_lower_post(number, language_tag)"},{"anchor":"cyrillic_lower_thousands/2","deprecated":false,"id":"cyrillic_lower_thousands/2","title":"cyrillic_lower_thousands(number, language_tag)"},{"anchor":"ethiopic/1","deprecated":false,"id":"ethiopic/1","title":"ethiopic(number)"},{"anchor":"ethiopic/2","deprecated":false,"id":"ethiopic/2","title":"ethiopic(number, locale)"},{"anchor":"ethiopic_p1/2","deprecated":false,"id":"ethiopic_p1/2","title":"ethiopic_p1(number, language_tag)"},{"anchor":"ethiopic_p2/2","deprecated":false,"id":"ethiopic_p2/2","title":"ethiopic_p2(number, language_tag)"},{"anchor":"ethiopic_p3/2","deprecated":false,"id":"ethiopic_p3/2","title":"ethiopic_p3(number, language_tag)"},{"anchor":"ethiopic_p/2","deprecated":false,"id":"ethiopic_p/2","title":"ethiopic_p(number, language_tag)"},{"anchor":"georgian/1","deprecated":false,"id":"georgian/1","title":"georgian(number)"},{"anchor":"georgian/2","deprecated":false,"id":"georgian/2","title":"georgian(number, locale)"},{"anchor":"greek_lower/1","deprecated":false,"id":"greek_lower/1","title":"greek_lower(number)"},{"anchor":"greek_lower/2","deprecated":false,"id":"greek_lower/2","title":"greek_lower(number, locale)"},{"anchor":"greek_numeral_majuscules/2","deprecated":false,"id":"greek_numeral_majuscules/2","title":"greek_numeral_majuscules(number, language_tag)"},{"anchor":"greek_numeral_minuscules/2","deprecated":false,"id":"greek_numeral_minuscules/2","title":"greek_numeral_minuscules(number, language_tag)"},{"anchor":"greek_upper/1","deprecated":false,"id":"greek_upper/1","title":"greek_upper(number)"},{"anchor":"greek_upper/2","deprecated":false,"id":"greek_upper/2","title":"greek_upper(number, locale)"},{"anchor":"hebrew/1","deprecated":false,"id":"hebrew/1","title":"hebrew(number)"},{"anchor":"hebrew/2","deprecated":false,"id":"hebrew/2","title":"hebrew(number, locale)"},{"anchor":"hebrew_0_99/2","deprecated":false,"id":"hebrew_0_99/2","title":"hebrew_0_99(number, language_tag)"},{"anchor":"hebrew_item/1","deprecated":false,"id":"hebrew_item/1","title":"hebrew_item(number)"},{"anchor":"hebrew_item/2","deprecated":false,"id":"hebrew_item/2","title":"hebrew_item(number, locale)"},{"anchor":"hebrew_item_hundreds/2","deprecated":false,"id":"hebrew_item_hundreds/2","title":"hebrew_item_hundreds(number, language_tag)"},{"anchor":"hebrew_thousands/2","deprecated":false,"id":"hebrew_thousands/2","title":"hebrew_thousands(number, language_tag)"},{"anchor":"roman_lower/1","deprecated":false,"id":"roman_lower/1","title":"roman_lower(number)"},{"anchor":"roman_lower/2","deprecated":false,"id":"roman_lower/2","title":"roman_lower(number, locale)"},{"anchor":"roman_upper/1","deprecated":false,"id":"roman_upper/1","title":"roman_upper(number)"},{"anchor":"roman_upper/2","deprecated":false,"id":"roman_upper/2","title":"roman_upper(number, locale)"},{"anchor":"rule_sets/0","deprecated":false,"id":"rule_sets/0","title":"rule_sets()"},{"anchor":"rule_sets/1","deprecated":false,"id":"rule_sets/1","title":"rule_sets(rbnf_locale_name)"},{"anchor":"tamil/1","deprecated":false,"id":"tamil/1","title":"tamil(number)"},{"anchor":"tamil/2","deprecated":false,"id":"tamil/2","title":"tamil(number, locale)"},{"anchor":"tamil_thousands/2","deprecated":false,"id":"tamil_thousands/2","title":"tamil_thousands(number, language_tag)"},{"anchor":"zz_default/1","deprecated":false,"id":"zz_default/1","title":"zz_default(number)"},{"anchor":"zz_default/2","deprecated":false,"id":"zz_default/2","title":"zz_default(number, locale)"}]}],"sections":[],"title":"Plausible.Cldr.Rbnf.NumberSystem"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Rbnf.Ordinal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_rule_sets/0","deprecated":false,"id":"all_rule_sets/0","title":"all_rule_sets()"},{"anchor":"digits_ordinal/2","deprecated":false,"id":"digits_ordinal/2","title":"digits_ordinal(number, locale)"},{"anchor":"rule_sets/0","deprecated":false,"id":"rule_sets/0","title":"rule_sets()"},{"anchor":"rule_sets/1","deprecated":false,"id":"rule_sets/1","title":"rule_sets(rbnf_locale_name)"}]}],"sections":[],"title":"Plausible.Cldr.Rbnf.Ordinal"},{"deprecated":false,"group":"","id":"Plausible.Cldr.Rbnf.Spellout","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_rule_sets/0","deprecated":false,"id":"all_rule_sets/0","title":"all_rule_sets()"},{"anchor":"and/2","deprecated":false,"id":"and/2","title":"number and language_tag"},{"anchor":"and_o/2","deprecated":false,"id":"and_o/2","title":"and_o(number, language_tag)"},{"anchor":"commas/2","deprecated":false,"id":"commas/2","title":"commas(number, language_tag)"},{"anchor":"commas_o/2","deprecated":false,"id":"commas_o/2","title":"commas_o(number, language_tag)"},{"anchor":"r2d_year/2","deprecated":false,"id":"r2d_year/2","title":"r2d_year(number, language_tag)"},{"anchor":"rule_sets/0","deprecated":false,"id":"rule_sets/0","title":"rule_sets()"},{"anchor":"rule_sets/1","deprecated":false,"id":"rule_sets/1","title":"rule_sets(rbnf_locale_name)"},{"anchor":"spellout_cardinal/2","deprecated":false,"id":"spellout_cardinal/2","title":"spellout_cardinal(number, locale)"},{"anchor":"spellout_cardinal_verbose/2","deprecated":false,"id":"spellout_cardinal_verbose/2","title":"spellout_cardinal_verbose(number, locale)"},{"anchor":"spellout_numbering/2","deprecated":false,"id":"spellout_numbering/2","title":"spellout_numbering(number, locale)"},{"anchor":"spellout_numbering_verbose/2","deprecated":false,"id":"spellout_numbering_verbose/2","title":"spellout_numbering_verbose(number, locale)"},{"anchor":"spellout_numbering_year/2","deprecated":false,"id":"spellout_numbering_year/2","title":"spellout_numbering_year(number, locale)"},{"anchor":"spellout_ordinal/2","deprecated":false,"id":"spellout_ordinal/2","title":"spellout_ordinal(number, locale)"},{"anchor":"spellout_ordinal_verbose/2","deprecated":false,"id":"spellout_ordinal_verbose/2","title":"spellout_ordinal_verbose(number, locale)"},{"anchor":"th/2","deprecated":false,"id":"th/2","title":"th(number, language_tag)"},{"anchor":"tieth/2","deprecated":false,"id":"tieth/2","title":"tieth(number, language_tag)"}]}],"sections":[],"title":"Plausible.Cldr.Rbnf.Spellout"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseEventV2","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(attrs)"}]}],"sections":[],"title":"Plausible.ClickhouseEventV2"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"parallel_tasks/1","deprecated":false,"id":"parallel_tasks/1","title":"parallel_tasks(queries)"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"}]}],"sections":[],"title":"Plausible.ClickhouseRepo"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseSessionV2","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"random_uint64/0","deprecated":false,"id":"random_uint64/0","title":"random_uint64()"}]}],"sections":[],"title":"Plausible.ClickhouseSessionV2"},{"deprecated":false,"group":"","id":"Plausible.ClickhouseSessionV2.BoolUInt8","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"embed_as/1","deprecated":false,"id":"embed_as/1","title":"embed_as(_)"},{"anchor":"equal?/2","deprecated":false,"id":"equal?/2","title":"equal?(term1, term2)"}]}],"sections":[],"title":"Plausible.ClickhouseSessionV2.BoolUInt8"},{"deprecated":false,"group":"","id":"Plausible.ConfigHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get_int_from_path_or_env/3","deprecated":false,"id":"get_int_from_path_or_env/3","title":"get_int_from_path_or_env(config_dir, var_name, default \\\\ nil)"},{"anchor":"get_var_from_path_or_env/3","deprecated":false,"id":"get_var_from_path_or_env/3","title":"get_var_from_path_or_env(config_dir, var_name, default \\\\ nil)"}]}],"sections":[],"title":"Plausible.ConfigHelpers"},{"deprecated":false,"group":"","id":"Plausible.DataCase","sections":[],"title":"Plausible.DataCase"},{"deprecated":false,"group":"","id":"Plausible.DataMigration","sections":[],"title":"Plausible.DataMigration"},{"deprecated":false,"group":"","id":"Plausible.DataMigration.NumericIDs","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"confirm/3","deprecated":false,"id":"confirm/3","title":"confirm(message, func, default_choice \\\\ :yes)"},{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(opts \\\\ [])"},{"anchor":"run_sql/2","deprecated":false,"id":"run_sql/2","title":"run_sql(name, assigns \\\\ [])"},{"anchor":"run_sql_confirm/2","deprecated":false,"id":"run_sql_confirm/2","title":"run_sql_confirm(name, options \\\\ [])"}]}],"sections":[],"title":"Plausible.DataMigration.NumericIDs"},{"deprecated":false,"group":"","id":"Plausible.DataMigration.Repo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start/2","deprecated":false,"id":"start/2","title":"start(url, max_threads)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.DataMigration.Repo"},{"deprecated":false,"group":"","id":"Plausible.DataMigration.RewriteFunnelDupes","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"apply_change/2","deprecated":false,"id":"apply_change/2","title":"apply_change(funnel_id, change)"},{"anchor":"confirm/3","deprecated":false,"id":"confirm/3","title":"confirm(message, func, default_choice \\\\ :yes)"},{"anchor":"execute/1","deprecated":false,"id":"execute/1","title":"execute(data)"},{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_ \\\\ [])"},{"anchor":"run_sql/2","deprecated":false,"id":"run_sql/2","title":"run_sql(name, assigns \\\\ [])"},{"anchor":"run_sql_confirm/2","deprecated":false,"id":"run_sql_confirm/2","title":"run_sql_confirm(name, options \\\\ [])"},{"anchor":"to_db_ops/1","deprecated":false,"id":"to_db_ops/1","title":"to_db_ops(meta)"},{"anchor":"to_map/1","deprecated":false,"id":"to_map/1","title":"to_map(row)"},{"anchor":"translate_to_db_ops/1","deprecated":false,"id":"translate_to_db_ops/1","title":"translate_to_db_ops(data)"}]}],"sections":[],"title":"Plausible.DataMigration.RewriteFunnelDupes"},{"deprecated":false,"group":"","id":"Plausible.DebugReplayInfo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"deserialize/1","deprecated":false,"id":"deserialize/1","title":"deserialize(replay_info)"},{"anchor":"include_sentry_replay_info/0","deprecated":false,"id":"include_sentry_replay_info/0","title":"include_sentry_replay_info()"}]}],"sections":[],"title":"Plausible.DebugReplayInfo"},{"deprecated":false,"group":"","id":"Plausible.Ecto.EventName","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"cast/1","deprecated":false,"id":"cast/1","title":"cast(val)"},{"anchor":"dump/1","deprecated":false,"id":"dump/1","title":"dump(val)"},{"anchor":"embed_as/1","deprecated":false,"id":"embed_as/1","title":"embed_as(_)"},{"anchor":"equal?/2","deprecated":false,"id":"equal?/2","title":"equal?(term1, term2)"},{"anchor":"load/1","deprecated":false,"id":"load/1","title":"load(val)"},{"anchor":"type/0","deprecated":false,"id":"type/0","title":"type()"}]}],"sections":[],"title":"Plausible.Ecto.EventName"},{"deprecated":false,"group":"","id":"Plausible.Event.WriteBuffer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"},{"anchor":"flush/0","deprecated":false,"id":"flush/0","title":"flush()"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(buffer)"},{"anchor":"insert/1","deprecated":false,"id":"insert/1","title":"insert(event)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts)"}]}],"sections":[],"title":"Plausible.Event.WriteBuffer"},{"deprecated":false,"group":"","id":"Plausible.Factory","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"api_key_factory/0","deprecated":false,"id":"api_key_factory/0","title":"api_key_factory()"},{"anchor":"build/2","deprecated":false,"id":"build/2","title":"build(factory_name, attrs \\\\ %{})"},{"anchor":"build_list/3","deprecated":false,"id":"build_list/3","title":"build_list(number_of_records, factory_name, attrs \\\\ %{})"},{"anchor":"build_pair/2","deprecated":false,"id":"build_pair/2","title":"build_pair(factory_name, attrs \\\\ %{})"},{"anchor":"ch_session_factory/0","deprecated":false,"id":"ch_session_factory/0","title":"ch_session_factory()"},{"anchor":"create/1","deprecated":false,"id":"create/1","title":"create(_)"},{"anchor":"create/2","deprecated":false,"id":"create/2","title":"create(_, _)"},{"anchor":"create_list/3","deprecated":false,"id":"create_list/3","title":"create_list(_, _, _)"},{"anchor":"create_pair/2","deprecated":false,"id":"create_pair/2","title":"create_pair(_, _)"},{"anchor":"custom_domain_factory/0","deprecated":false,"id":"custom_domain_factory/0","title":"custom_domain_factory()"},{"anchor":"enterprise_plan_factory/0","deprecated":false,"id":"enterprise_plan_factory/0","title":"enterprise_plan_factory()"},{"anchor":"event_factory/0","deprecated":false,"id":"event_factory/0","title":"event_factory()"},{"anchor":"factory/1","deprecated":false,"id":"factory/1","title":"factory(factory_name)"},{"anchor":"goal_factory/0","deprecated":false,"id":"goal_factory/0","title":"goal_factory()"},{"anchor":"google_auth_factory/0","deprecated":false,"id":"google_auth_factory/0","title":"google_auth_factory()"},{"anchor":"imported_browsers_factory/0","deprecated":false,"id":"imported_browsers_factory/0","title":"imported_browsers_factory()"},{"anchor":"imported_devices_factory/0","deprecated":false,"id":"imported_devices_factory/0","title":"imported_devices_factory()"},{"anchor":"imported_entry_pages_factory/0","deprecated":false,"id":"imported_entry_pages_factory/0","title":"imported_entry_pages_factory()"},{"anchor":"imported_exit_pages_factory/0","deprecated":false,"id":"imported_exit_pages_factory/0","title":"imported_exit_pages_factory()"},{"anchor":"imported_locations_factory/0","deprecated":false,"id":"imported_locations_factory/0","title":"imported_locations_factory()"},{"anchor":"imported_operating_systems_factory/0","deprecated":false,"id":"imported_operating_systems_factory/0","title":"imported_operating_systems_factory()"},{"anchor":"imported_pages_factory/0","deprecated":false,"id":"imported_pages_factory/0","title":"imported_pages_factory()"},{"anchor":"imported_sources_factory/0","deprecated":false,"id":"imported_sources_factory/0","title":"imported_sources_factory()"},{"anchor":"imported_visitors_factory/0","deprecated":false,"id":"imported_visitors_factory/0","title":"imported_visitors_factory()"},{"anchor":"insert/1","deprecated":false,"id":"insert/1","title":"insert(already_built_record)"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(already_built_record, function_opts)"},{"anchor":"insert/3","deprecated":false,"id":"insert/3","title":"insert(factory_name, attrs, opts)"},{"anchor":"insert_list/3","deprecated":false,"id":"insert_list/3","title":"insert_list(number_of_records, factory_name, attrs \\\\ %{})"},{"anchor":"insert_list/4","deprecated":false,"id":"insert_list/4","title":"insert_list(number_of_records, factory_name, attrs, opts)"},{"anchor":"insert_pair/2","deprecated":false,"id":"insert_pair/2","title":"insert_pair(factory_name, attrs \\\\ %{})"},{"anchor":"insert_pair/3","deprecated":false,"id":"insert_pair/3","title":"insert_pair(factory_name, attrs, opts)"},{"anchor":"invitation_factory/0","deprecated":false,"id":"invitation_factory/0","title":"invitation_factory()"},{"anchor":"monthly_report_factory/0","deprecated":false,"id":"monthly_report_factory/0","title":"monthly_report_factory()"},{"anchor":"pageview_factory/0","deprecated":false,"id":"pageview_factory/0","title":"pageview_factory()"},{"anchor":"params_for/2","deprecated":false,"id":"params_for/2","title":"params_for(factory_name, attrs \\\\ %{})"},{"anchor":"params_with_assocs/2","deprecated":false,"id":"params_with_assocs/2","title":"params_with_assocs(factory_name, attrs \\\\ %{})"},{"anchor":"shared_link_factory/0","deprecated":false,"id":"shared_link_factory/0","title":"shared_link_factory()"},{"anchor":"site_factory/0","deprecated":false,"id":"site_factory/0","title":"site_factory()"},{"anchor":"site_membership_factory/0","deprecated":false,"id":"site_membership_factory/0","title":"site_membership_factory()"},{"anchor":"spike_notification_factory/0","deprecated":false,"id":"spike_notification_factory/0","title":"spike_notification_factory()"},{"anchor":"string_params_for/2","deprecated":false,"id":"string_params_for/2","title":"string_params_for(factory_name, attrs \\\\ %{})"},{"anchor":"string_params_with_assocs/2","deprecated":false,"id":"string_params_with_assocs/2","title":"string_params_with_assocs(factory_name, attrs \\\\ %{})"},{"anchor":"subscription_factory/0","deprecated":false,"id":"subscription_factory/0","title":"subscription_factory()"},{"anchor":"user_factory/1","deprecated":false,"id":"user_factory/1","title":"user_factory(attrs)"},{"anchor":"weekly_report_factory/0","deprecated":false,"id":"weekly_report_factory/0","title":"weekly_report_factory()"}]}],"sections":[],"title":"Plausible.Factory"},{"deprecated":false,"group":"","id":"Plausible.Funnel","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(funnel \\\\ %__MODULE__{}, attrs \\\\ %{})"},{"anchor":"max_steps/0","deprecated":false,"id":"max_steps/0","title":"max_steps()"},{"anchor":"min_steps/0","deprecated":false,"id":"min_steps/0","title":"min_steps()"},{"anchor":"put_step_orders/1","deprecated":false,"id":"put_step_orders/1","title":"put_step_orders(changeset)"}]}],"sections":[],"title":"Plausible.Funnel"},{"deprecated":false,"group":"","id":"Plausible.Funnel.Step","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(step, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Funnel.Step"},{"deprecated":false,"group":"","id":"Plausible.Funnels","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create/3","deprecated":false,"id":"create/3","title":"create(site, name, steps)"},{"anchor":"create_changeset/3","deprecated":false,"id":"create_changeset/3","title":"create_changeset(site, name, steps)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(site_id, funnel_id)"},{"anchor":"ephemeral_definition/3","deprecated":false,"id":"ephemeral_definition/3","title":"ephemeral_definition(site, name, steps)"},{"anchor":"get/2","deprecated":false,"id":"get/2","title":"get(site_id, by)"},{"anchor":"list/1","deprecated":false,"id":"list/1","title":"list(site)"}]}],"sections":[],"title":"Plausible.Funnels"},{"deprecated":false,"group":"","id":"Plausible.Geo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"await_loader/0","deprecated":false,"id":"await_loader/0","title":"await_loader()"},{"anchor":"database_type/0","deprecated":false,"id":"database_type/0","title":"database_type()"},{"anchor":"load_db/1","deprecated":false,"id":"load_db/1","title":"load_db(opts)"},{"anchor":"lookup/1","deprecated":false,"id":"lookup/1","title":"lookup(ip_address)"}]}],"sections":[],"title":"Plausible.Geo"},{"deprecated":false,"group":"","id":"Plausible.Goal","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(goal, attrs \\\\ %{})"},{"anchor":"currency_options/0","deprecated":false,"id":"currency_options/0","title":"currency_options()"},{"anchor":"revenue?/1","deprecated":false,"id":"revenue?/1","title":"revenue?(goal)"},{"anchor":"valid_currencies/0","deprecated":false,"id":"valid_currencies/0","title":"valid_currencies()"}]}],"sections":[],"title":"Plausible.Goal"},{"deprecated":false,"group":"","id":"Plausible.Goals","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"count/1","deprecated":false,"id":"count/1","title":"count(site)"},{"anchor":"create/3","deprecated":false,"id":"create/3","title":"create(site, params, now \\\\ DateTime.utc_now())"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(id, site_id)"},{"anchor":"find_or_create/2","deprecated":false,"id":"find_or_create/2","title":"find_or_create(site, map)"},{"anchor":"for_site/2","deprecated":false,"id":"for_site/2","title":"for_site(site, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Goals"},{"deprecated":false,"group":"","id":"Plausible.Google.Api","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:google_analytics_view/0","deprecated":false,"id":"google_analytics_view/0","title":"google_analytics_view()"},{"anchor":"t:import_auth/0","deprecated":false,"id":"import_auth/0","title":"import_auth()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_and_persist/3","deprecated":false,"id":"fetch_and_persist/3","title":"fetch_and_persist(site, report_request, opts \\\\ [])"},{"anchor":"fetch_stats/3","deprecated":false,"id":"fetch_stats/3","title":"fetch_stats(site, map, limit)"},{"anchor":"fetch_verified_properties/1","deprecated":false,"id":"fetch_verified_properties/1","title":"fetch_verified_properties(auth)"},{"anchor":"get_view/2","deprecated":false,"id":"get_view/2","title":"get_view(access_token, lookup_id)"},{"anchor":"import_analytics/4","deprecated":false,"id":"import_analytics/4","title":"import_analytics(site, date_range, view_id, auth)"},{"anchor":"import_authorize_url/2","deprecated":false,"id":"import_authorize_url/2","title":"import_authorize_url(site_id, redirect_to)"},{"anchor":"list_views/1","deprecated":false,"id":"list_views/1","title":"list_views(access_token)"},{"anchor":"search_console_authorize_url/2","deprecated":false,"id":"search_console_authorize_url/2","title":"search_console_authorize_url(site_id, redirect_to)"}]}],"sections":[],"title":"Plausible.Google.Api"},{"deprecated":false,"group":"","id":"Plausible.Google.Api.Mock","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_stats/3","deprecated":false,"id":"fetch_stats/3","title":"fetch_stats(auth, query, limit)"}]}],"sections":[],"title":"Plausible.Google.Api.Mock"},{"deprecated":false,"group":"","id":"Plausible.Google.Buffer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"},{"anchor":"flush/2","deprecated":false,"id":"flush/2","title":"flush(pid, timeout \\\\ :infinity)"},{"anchor":"handle_continue/2","deprecated":false,"id":"handle_continue/2","title":"handle_continue(arg, state)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"},{"anchor":"insert_many/3","deprecated":false,"id":"insert_many/3","title":"insert_many(pid, table_name, records)"},{"anchor":"size/2","deprecated":false,"id":"size/2","title":"size(pid, table_name)"},{"anchor":"start_link/0","deprecated":false,"id":"start_link/0","title":"start_link()"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(pid)"}]}],"sections":[],"title":"Plausible.Google.Buffer"},{"deprecated":false,"group":"","id":"Plausible.Google.HTTP","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_access_token/1","deprecated":false,"id":"fetch_access_token/1","title":"fetch_access_token(code)"},{"anchor":"get_analytics_start_date/2","deprecated":false,"id":"get_analytics_start_date/2","title":"get_analytics_start_date(view_id, access_token)"},{"anchor":"get_report/1","deprecated":false,"id":"get_report/1","title":"get_report(report_request)"},{"anchor":"list_sites/1","deprecated":false,"id":"list_sites/1","title":"list_sites(access_token)"},{"anchor":"list_stats/5","deprecated":false,"id":"list_stats/5","title":"list_stats(access_token, property, date_range, limit, page \\\\ nil)"},{"anchor":"list_views_for_user/1","deprecated":false,"id":"list_views_for_user/1","title":"list_views_for_user(access_token)"},{"anchor":"refresh_auth_token/1","deprecated":false,"id":"refresh_auth_token/1","title":"refresh_auth_token(refresh_token)"}]}],"sections":[],"title":"Plausible.Google.HTTP"},{"deprecated":false,"group":"","id":"Plausible.Google.ReportRequest","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"full_report/0","deprecated":false,"id":"full_report/0","title":"full_report()"}]}],"sections":[],"title":"Plausible.Google.ReportRequest"},{"deprecated":false,"group":"","id":"Plausible.HTTPClient","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get/2","deprecated":false,"id":"get/2","title":"get(url, headers \\\\ [])"},{"anchor":"impl/0","deprecated":false,"id":"impl/0","title":"impl()"},{"anchor":"post/4","deprecated":false,"id":"post/4","title":"post(url, headers \\\\ [], params \\\\ nil, finch_req_opts \\\\ [])"}]}],"sections":[],"title":"Plausible.HTTPClient"},{"deprecated":false,"group":"","id":"Plausible.HTTPClient.Interface","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:finch_request_opts/0","deprecated":false,"id":"finch_request_opts/0","title":"finch_request_opts()"},{"anchor":"t:headers/0","deprecated":false,"id":"headers/0","title":"headers()"},{"anchor":"t:params/0","deprecated":false,"id":"params/0","title":"params()"},{"anchor":"t:response/0","deprecated":false,"id":"response/0","title":"response()"},{"anchor":"t:url/0","deprecated":false,"id":"url/0","title":"url()"}]},{"key":"callbacks","name":"Callbacks","nodes":[{"anchor":"c:get/1","deprecated":false,"id":"get/1","title":"get(url)"},{"anchor":"c:get/2","deprecated":false,"id":"get/2","title":"get(url, headers)"},{"anchor":"c:post/3","deprecated":false,"id":"post/3","title":"post(url, headers, params)"},{"anchor":"c:post/4","deprecated":false,"id":"post/4","title":"post(url, headers, params, finch_request_opts)"}]}],"sections":[],"title":"Plausible.HTTPClient.Interface"},{"deprecated":false,"group":"","id":"Plausible.HTTPClient.Non200Error","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"new/1","deprecated":false,"id":"new/1","title":"new(response)"}]}],"sections":[],"title":"Plausible.HTTPClient.Non200Error"},{"deprecated":false,"group":"","id":"Plausible.ImportDeletionRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.ImportDeletionRepo"},{"deprecated":false,"group":"","id":"Plausible.Imported","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"forget/1","deprecated":false,"id":"forget/1","title":"forget(site)"},{"anchor":"from_google_analytics/3","deprecated":false,"id":"from_google_analytics/3","title":"from_google_analytics(data, site_id, table)"},{"anchor":"tables/0","deprecated":false,"id":"tables/0","title":"tables()"}]}],"sections":[],"title":"Plausible.Imported"},{"deprecated":false,"group":"","id":"Plausible.IngestRepo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"insert_stream/3","deprecated":false,"id":"insert_stream/3","title":"insert_stream(source_or_schema, rows, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.IngestRepo"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"enabled?/0","deprecated":false,"id":"enabled?/0","title":"enabled?()"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(pid)"}]}],"sections":[],"title":"Plausible.Ingestion.Counters"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters.Buffer","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:bucket_fn_opt/0","deprecated":false,"id":"bucket_fn_opt/0","title":"bucket_fn_opt()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"},{"anchor":"t:unix_timestamp/0","deprecated":false,"id":"unix_timestamp/0","title":"unix_timestamp()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(buffer, metric, domain, timestamp)"},{"anchor":"bucket_10s/1","deprecated":false,"id":"bucket_10s/1","title":"bucket_10s(datetime)"},{"anchor":"flush/2","deprecated":false,"id":"flush/2","title":"flush(buffer, now \\\\ DateTime.utc_now())"},{"anchor":"new/2","deprecated":false,"id":"new/2","title":"new(buffer_name, opts \\\\ [])"},{"anchor":"previous_10s/1","deprecated":false,"id":"previous_10s/1","title":"previous_10s(datetime)"}]}],"sections":[],"title":"Plausible.Ingestion.Counters.Buffer"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters.Record","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]}],"sections":[],"title":"Plausible.Ingestion.Counters.Record"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Counters.TelemetryHandler","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/4","deprecated":false,"id":"handle_event/4","title":"handle_event(list, measurements, map, buffer)"},{"anchor":"install/1","deprecated":false,"id":"install/1","title":"install(buffer)"}]}],"sections":[],"title":"Plausible.Ingestion.Counters.TelemetryHandler"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Event","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:drop_reason/0","deprecated":false,"id":"drop_reason/0","title":"drop_reason()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"build_and_buffer/1","deprecated":false,"id":"build_and_buffer/1","title":"build_and_buffer(request)"},{"anchor":"emit_telemetry_buffered/1","deprecated":false,"id":"emit_telemetry_buffered/1","title":"emit_telemetry_buffered(event)"},{"anchor":"emit_telemetry_dropped/2","deprecated":false,"id":"emit_telemetry_dropped/2","title":"emit_telemetry_dropped(event, reason)"},{"anchor":"telemetry_event_buffered/0","deprecated":false,"id":"telemetry_event_buffered/0","title":"telemetry_event_buffered()"},{"anchor":"telemetry_event_dropped/0","deprecated":false,"id":"telemetry_event_dropped/0","title":"telemetry_event_dropped()"}]}],"sections":[],"title":"Plausible.Ingestion.Event"},{"deprecated":false,"group":"","id":"Plausible.Ingestion.Request","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"build/2","deprecated":false,"id":"build/2","title":"build(conn, now \\\\ NaiveDateTime.utc_now())"},{"anchor":"sanitize_hostname/1","deprecated":false,"id":"sanitize_hostname/1","title":"sanitize_hostname(hostname)"}]}],"sections":[],"title":"Plausible.Ingestion.Request"},{"deprecated":false,"group":"","id":"Plausible.Mailer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"deliver/1","deprecated":false,"id":"deliver/1","title":"deliver(email)"},{"anchor":"deliver_later/2","deprecated":false,"id":"deliver_later/2","title":"deliver_later(email, opts \\\\ [])"},{"anchor":"deliver_later!/2","deprecated":false,"id":"deliver_later!/2","title":"deliver_later!(email, opts \\\\ [])"},{"anchor":"deliver_now/2","deprecated":false,"id":"deliver_now/2","title":"deliver_now(email, opts \\\\ [])"},{"anchor":"deliver_now!/2","deprecated":false,"id":"deliver_now!/2","title":"deliver_now!(email, opts \\\\ [])"},{"anchor":"send/1","deprecated":false,"id":"send/1","title":"send(email)"}]}],"sections":[],"title":"Plausible.Mailer"},{"deprecated":false,"group":"","id":"Plausible.OpenTelemetry.Sampler","sections":[],"title":"Plausible.OpenTelemetry.Sampler"},{"deprecated":false,"group":"","id":"Plausible.PaddleApi.Mock","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get_invoices/1","deprecated":false,"id":"get_invoices/1","title":"get_invoices(subscription)"},{"anchor":"get_subscription/1","deprecated":false,"id":"get_subscription/1","title":"get_subscription(_)"},{"anchor":"update_subscription/2","deprecated":false,"id":"update_subscription/2","title":"update_subscription(_, map)"}]}],"sections":[],"title":"Plausible.PaddleApi.Mock"},{"deprecated":false,"group":"","id":"Plausible.Plugins.API.Token","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"generate/1","deprecated":false,"id":"generate/1","title":"generate(random_bytes \\\\ random_bytes())"},{"anchor":"hash/1","deprecated":false,"id":"hash/1","title":"hash(raw)"},{"anchor":"insert_changeset/3","deprecated":false,"id":"insert_changeset/3","title":"insert_changeset(site, map, attrs \\\\ %{})"},{"anchor":"prefix/0","deprecated":false,"id":"prefix/0","title":"prefix()"}]}],"sections":[],"title":"Plausible.Plugins.API.Token"},{"deprecated":false,"group":"","id":"Plausible.Plugins.API.Tokens","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create/2","deprecated":false,"id":"create/2","title":"create(site, description)"},{"anchor":"find/2","deprecated":false,"id":"find/2","title":"find(domain, raw)"}]}],"sections":[],"title":"Plausible.Plugins.API.Tokens"},{"deprecated":false,"group":"","id":"Plausible.PromEx","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"}]}],"sections":[],"title":"Plausible.PromEx"},{"deprecated":false,"group":"","id":"Plausible.PromEx.Plugins.PlausibleMetrics","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"execute_cache_metrics/0","deprecated":false,"id":"execute_cache_metrics/0","title":"execute_cache_metrics()"},{"anchor":"execute_write_buffer_metrics/0","deprecated":false,"id":"execute_write_buffer_metrics/0","title":"execute_write_buffer_metrics()"}]}],"sections":[],"title":"Plausible.PromEx.Plugins.PlausibleMetrics"},{"deprecated":false,"group":"","id":"Plausible.Props","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:prop/0","deprecated":false,"id":"prop/0","title":"prop()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"allow/2","deprecated":false,"id":"allow/2","title":"allow(site, prop_or_props)"},{"anchor":"allow_changeset/2","deprecated":false,"id":"allow_changeset/2","title":"allow_changeset(site, prop_or_props)"},{"anchor":"allow_existing_props/1","deprecated":false,"id":"allow_existing_props/1","title":"allow_existing_props(site)"},{"anchor":"configured?/1","deprecated":false,"id":"configured?/1","title":"configured?(site)"},{"anchor":"disallow/2","deprecated":false,"id":"disallow/2","title":"disallow(site, prop)"},{"anchor":"internal_keys/0","deprecated":false,"id":"internal_keys/0","title":"internal_keys()"},{"anchor":"max_prop_key_length/0","deprecated":false,"id":"max_prop_key_length/0","title":"max_prop_key_length()"},{"anchor":"max_prop_value_length/0","deprecated":false,"id":"max_prop_value_length/0","title":"max_prop_value_length()"},{"anchor":"max_props/0","deprecated":false,"id":"max_props/0","title":"max_props()"},{"anchor":"suggest_keys_to_allow/2","deprecated":false,"id":"suggest_keys_to_allow/2","title":"suggest_keys_to_allow(site, limit \\\\ 300)"}]}],"sections":[],"title":"Plausible.Props"},{"deprecated":false,"group":"","id":"Plausible.Purge","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"delete_imported_stats!/1","deprecated":false,"id":"delete_imported_stats!/1","title":"delete_imported_stats!(site)"},{"anchor":"delete_native_stats!/1","deprecated":false,"id":"delete_native_stats!/1","title":"delete_native_stats!(site)"},{"anchor":"reset!/1","deprecated":false,"id":"reset!/1","title":"reset!(site)"}]}],"sections":[],"title":"Plausible.Purge"},{"deprecated":false,"group":"","id":"Plausible.Release","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"configure_ref_inspector/0","deprecated":false,"id":"configure_ref_inspector/0","title":"configure_ref_inspector()"},{"anchor":"configure_ua_inspector/0","deprecated":false,"id":"configure_ua_inspector/0","title":"configure_ua_inspector()"},{"anchor":"createdb/0","deprecated":false,"id":"createdb/0","title":"createdb()"},{"anchor":"migrate/0","deprecated":false,"id":"migrate/0","title":"migrate()"},{"anchor":"rollback/0","deprecated":false,"id":"rollback/0","title":"rollback()"},{"anchor":"seed/0","deprecated":false,"id":"seed/0","title":"seed()"},{"anchor":"selfhost?/0","deprecated":false,"id":"selfhost?/0","title":"selfhost?()"},{"anchor":"should_be_first_launch?/0","deprecated":false,"id":"should_be_first_launch?/0","title":"should_be_first_launch?()"}]}],"sections":[],"title":"Plausible.Release"},{"deprecated":false,"group":"","id":"Plausible.Repo","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(queryable, aggregate, opts \\\\ [])"},{"anchor":"aggregate/4","deprecated":false,"id":"aggregate/4","title":"aggregate(queryable, aggregate, field, opts)"},{"anchor":"all/2","deprecated":false,"id":"all/2","title":"all(queryable, opts \\\\ [])"},{"anchor":"checked_out?/0","deprecated":false,"id":"checked_out?/0","title":"checked_out?()"},{"anchor":"checkout/2","deprecated":false,"id":"checkout/2","title":"checkout(fun, opts \\\\ [])"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/0","deprecated":false,"id":"config/0","title":"config()"},{"anchor":"default_options/1","deprecated":false,"id":"default_options/1","title":"default_options(operation)"},{"anchor":"delete/2","deprecated":false,"id":"delete/2","title":"delete(struct, opts \\\\ [])"},{"anchor":"delete!/2","deprecated":false,"id":"delete!/2","title":"delete!(struct, opts \\\\ [])"},{"anchor":"delete_all/2","deprecated":false,"id":"delete_all/2","title":"delete_all(queryable, opts \\\\ [])"},{"anchor":"disconnect_all/2","deprecated":false,"id":"disconnect_all/2","title":"disconnect_all(interval, opts \\\\ [])"},{"anchor":"exists?/2","deprecated":false,"id":"exists?/2","title":"exists?(queryable, opts \\\\ [])"},{"anchor":"explain/3","deprecated":false,"id":"explain/3","title":"explain(operation, queryable, opts \\\\ [])"},{"anchor":"get/3","deprecated":false,"id":"get/3","title":"get(queryable, id, opts \\\\ [])"},{"anchor":"get!/3","deprecated":false,"id":"get!/3","title":"get!(queryable, id, opts \\\\ [])"},{"anchor":"get_by/3","deprecated":false,"id":"get_by/3","title":"get_by(queryable, clauses, opts \\\\ [])"},{"anchor":"get_by!/3","deprecated":false,"id":"get_by!/3","title":"get_by!(queryable, clauses, opts \\\\ [])"},{"anchor":"get_dynamic_repo/0","deprecated":false,"id":"get_dynamic_repo/0","title":"get_dynamic_repo()"},{"anchor":"in_transaction?/0","deprecated":false,"id":"in_transaction?/0","title":"in_transaction?()"},{"anchor":"insert/2","deprecated":false,"id":"insert/2","title":"insert(struct, opts \\\\ [])"},{"anchor":"insert!/2","deprecated":false,"id":"insert!/2","title":"insert!(struct, opts \\\\ [])"},{"anchor":"insert_all/3","deprecated":false,"id":"insert_all/3","title":"insert_all(schema_or_source, entries, opts \\\\ [])"},{"anchor":"insert_or_update/2","deprecated":false,"id":"insert_or_update/2","title":"insert_or_update(changeset, opts \\\\ [])"},{"anchor":"insert_or_update!/2","deprecated":false,"id":"insert_or_update!/2","title":"insert_or_update!(changeset, opts \\\\ [])"},{"anchor":"load/2","deprecated":false,"id":"load/2","title":"load(schema_or_types, data)"},{"anchor":"one/2","deprecated":false,"id":"one/2","title":"one(queryable, opts \\\\ [])"},{"anchor":"one!/2","deprecated":false,"id":"one!/2","title":"one!(queryable, opts \\\\ [])"},{"anchor":"paginate/3","deprecated":false,"id":"paginate/3","title":"paginate(query, params \\\\ %{}, options \\\\ [])"},{"anchor":"preload/3","deprecated":false,"id":"preload/3","title":"preload(struct_or_structs_or_nil, preloads, opts \\\\ [])"},{"anchor":"prepare_query/3","deprecated":false,"id":"prepare_query/3","title":"prepare_query(operation, query, opts)"},{"anchor":"put_dynamic_repo/1","deprecated":false,"id":"put_dynamic_repo/1","title":"put_dynamic_repo(dynamic)"},{"anchor":"query/3","deprecated":false,"id":"query/3","title":"query(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query!/3","deprecated":false,"id":"query!/3","title":"query!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query_many/3","deprecated":false,"id":"query_many/3","title":"query_many(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"query_many!/3","deprecated":false,"id":"query_many!/3","title":"query_many!(sql, params \\\\ [], opts \\\\ [])"},{"anchor":"reload/2","deprecated":false,"id":"reload/2","title":"reload(queryable, opts \\\\ [])"},{"anchor":"reload!/2","deprecated":false,"id":"reload!/2","title":"reload!(queryable, opts \\\\ [])"},{"anchor":"rollback/1","deprecated":false,"id":"rollback/1","title":"rollback(value)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"stop/1","deprecated":false,"id":"stop/1","title":"stop(timeout \\\\ 5000)"},{"anchor":"stream/2","deprecated":false,"id":"stream/2","title":"stream(queryable, opts \\\\ [])"},{"anchor":"to_sql/2","deprecated":false,"id":"to_sql/2","title":"to_sql(operation, queryable)"},{"anchor":"transaction/2","deprecated":false,"id":"transaction/2","title":"transaction(fun_or_multi, opts \\\\ [])"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(struct, opts \\\\ [])"},{"anchor":"update!/2","deprecated":false,"id":"update!/2","title":"update!(struct, opts \\\\ [])"},{"anchor":"update_all/3","deprecated":false,"id":"update_all/3","title":"update_all(queryable, updates, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Repo"},{"deprecated":false,"group":"","id":"Plausible.Sentry.Client","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/0","deprecated":false,"id":"child_spec/0","title":"child_spec()"},{"anchor":"post/3","deprecated":false,"id":"post/3","title":"post(url, headers, body)"}]}],"sections":[],"title":"Plausible.Sentry.Client"},{"deprecated":false,"group":"","id":"Plausible.SentryFilter","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"before_send/1","deprecated":false,"id":"before_send/1","title":"before_send(event)"},{"anchor":"exclude_exception?/2","deprecated":false,"id":"exclude_exception?/2","title":"exclude_exception?(exception, source)"}]}],"sections":[],"title":"Plausible.SentryFilter"},{"deprecated":false,"group":"","id":"Plausible.Session.CacheStore","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"on_event/3","deprecated":false,"id":"on_event/3","title":"on_event(event, prev_user_id, buffer \\\\ WriteBuffer)"}]}],"sections":[],"title":"Plausible.Session.CacheStore"},{"deprecated":false,"group":"","id":"Plausible.Session.Salts","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(arg)"},{"anchor":"fetch/0","deprecated":false,"id":"fetch/0","title":"fetch()"},{"anchor":"rotate/0","deprecated":false,"id":"rotate/0","title":"rotate()"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts)"}]}],"sections":[],"title":"Plausible.Session.Salts"},{"deprecated":false,"group":"","id":"Plausible.Session.WriteBuffer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(init_arg)"},{"anchor":"flush/0","deprecated":false,"id":"flush/0","title":"flush()"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(buffer)"},{"anchor":"insert/1","deprecated":false,"id":"insert/1","title":"insert(sessions)"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts)"}]}],"sections":[],"title":"Plausible.Session.WriteBuffer"},{"deprecated":false,"group":"","id":"Plausible.Site","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(site, attrs \\\\ %{})"},{"anchor":"crm_changeset/2","deprecated":false,"id":"crm_changeset/2","title":"crm_changeset(site, attrs)"},{"anchor":"feature_toggle_change/3","deprecated":false,"id":"feature_toggle_change/3","title":"feature_toggle_change(site, property, opts \\\\ [])"},{"anchor":"import_failure/1","deprecated":false,"id":"import_failure/1","title":"import_failure(site)"},{"anchor":"import_success/1","deprecated":false,"id":"import_success/1","title":"import_success(site)"},{"anchor":"local_start_date/1","deprecated":false,"id":"local_start_date/1","title":"local_start_date(site)"},{"anchor":"make_private/1","deprecated":false,"id":"make_private/1","title":"make_private(site)"},{"anchor":"make_public/1","deprecated":false,"id":"make_public/1","title":"make_public(site)"},{"anchor":"remove_imported_data/1","deprecated":false,"id":"remove_imported_data/1","title":"remove_imported_data(site)"},{"anchor":"set_imported_source/2","deprecated":false,"id":"set_imported_source/2","title":"set_imported_source(site, imported_source)"},{"anchor":"set_native_stats_start_at/2","deprecated":false,"id":"set_native_stats_start_at/2","title":"set_native_stats_start_at(site, val)"},{"anchor":"set_stats_start_date/2","deprecated":false,"id":"set_stats_start_date/2","title":"set_stats_start_date(site, val)"},{"anchor":"start_import/5","deprecated":false,"id":"start_import/5","title":"start_import(site, start_date, end_date, imported_source, status \\\\ \"importing\")"},{"anchor":"tz_offset/2","deprecated":false,"id":"tz_offset/2","title":"tz_offset(site, utc_now \\\\ DateTime.utc_now())"},{"anchor":"update_changeset/3","deprecated":false,"id":"update_changeset/3","title":"update_changeset(site, attrs \\\\ %{}, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Site"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"enabled?/0","deprecated":false,"id":"enabled?/0","title":"enabled?()"},{"anchor":"get/2","deprecated":false,"id":"get/2","title":"get(domain, opts \\\\ [])"},{"anchor":"get_site_id/2","deprecated":false,"id":"get_site_id/2","title":"get_site_id(domain, opts \\\\ [])"},{"anchor":"hit_rate/1","deprecated":false,"id":"hit_rate/1","title":"hit_rate(cache_name \\\\ :sites_by_domain)"},{"anchor":"merge/2","deprecated":false,"id":"merge/2","title":"merge(new_items, opts \\\\ [])"},{"anchor":"name/0","deprecated":false,"id":"name/0","title":"name()"},{"anchor":"ready?/1","deprecated":false,"id":"ready?/1","title":"ready?(cache_name \\\\ :sites_by_domain)"},{"anchor":"refresh_all/1","deprecated":false,"id":"refresh_all/1","title":"refresh_all(opts \\\\ [])"},{"anchor":"refresh_updated_recently/1","deprecated":false,"id":"refresh_updated_recently/1","title":"refresh_updated_recently(opts \\\\ [])"},{"anchor":"size/1","deprecated":false,"id":"size/1","title":"size(cache_name \\\\ :sites_by_domain)"},{"anchor":"telemetry_event_refresh/2","deprecated":false,"id":"telemetry_event_refresh/2","title":"telemetry_event_refresh(cache_name \\\\ :sites_by_domain, mode)"}]}],"sections":[],"title":"Plausible.Site.Cache"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache.Warmer","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"interval/0","deprecated":false,"id":"interval/0","title":"interval()"}]}],"sections":[],"title":"Plausible.Site.Cache.Warmer"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache.Warmer.All","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"}]}],"sections":[],"title":"Plausible.Site.Cache.Warmer.All"},{"deprecated":false,"group":"","id":"Plausible.Site.Cache.Warmer.RecentlyUpdated","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"}]}],"sections":[],"title":"Plausible.Site.Cache.Warmer.RecentlyUpdated"},{"deprecated":false,"group":"","id":"Plausible.Site.CustomDomain","sections":[],"title":"Plausible.Site.CustomDomain"},{"deprecated":false,"group":"","id":"Plausible.Site.Domain","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"change/3","deprecated":false,"id":"change/3","title":"change(site, new_domain, opts \\\\ [])"},{"anchor":"expire_change_transitions/1","deprecated":false,"id":"expire_change_transitions/1","title":"expire_change_transitions(expire_threshold_hours \\\\ 72)"}]}],"sections":[],"title":"Plausible.Site.Domain"},{"deprecated":false,"group":"","id":"Plausible.Site.GateKeeper","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:policy/0","deprecated":false,"id":"policy/0","title":"policy()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"check/2","deprecated":false,"id":"check/2","title":"check(domain, opts \\\\ [])"},{"anchor":"key/1","deprecated":false,"id":"key/1","title":"key(domain)"}]}],"sections":[],"title":"Plausible.Site.GateKeeper"},{"deprecated":false,"group":"","id":"Plausible.Site.GoogleAuth","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(auth, attrs \\\\ %{})"},{"anchor":"set_property/2","deprecated":false,"id":"set_property/2","title":"set_property(auth, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Site.GoogleAuth"},{"deprecated":false,"group":"","id":"Plausible.Site.ImportedData","sections":[],"title":"Plausible.Site.ImportedData"},{"deprecated":false,"group":"","id":"Plausible.Site.Membership","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(schema, attrs)"}]}],"sections":[],"title":"Plausible.Site.Membership"},{"deprecated":false,"group":"","id":"Plausible.Site.MonthlyReport","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_recipient/2","deprecated":false,"id":"add_recipient/2","title":"add_recipient(report, recipient)"},{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(settings, attrs \\\\ %{})"},{"anchor":"remove_recipient/2","deprecated":false,"id":"remove_recipient/2","title":"remove_recipient(report, recipient)"}]}],"sections":[],"title":"Plausible.Site.MonthlyReport"},{"deprecated":false,"group":"","id":"Plausible.Site.Removal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(domain)"}]}],"sections":[],"title":"Plausible.Site.Removal"},{"deprecated":false,"group":"","id":"Plausible.Site.SharedLink","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(link, attrs \\\\ %{})"}]}],"sections":[],"title":"Plausible.Site.SharedLink"},{"deprecated":false,"group":"","id":"Plausible.Site.SpikeNotification","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_recipient/2","deprecated":false,"id":"add_recipient/2","title":"add_recipient(schema, recipient)"},{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(schema, attrs)"},{"anchor":"remove_recipient/2","deprecated":false,"id":"remove_recipient/2","title":"remove_recipient(schema, recipient)"},{"anchor":"was_sent/1","deprecated":false,"id":"was_sent/1","title":"was_sent(schema)"}]}],"sections":[],"title":"Plausible.Site.SpikeNotification"},{"deprecated":false,"group":"","id":"Plausible.Site.WeeklyReport","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_recipient/2","deprecated":false,"id":"add_recipient/2","title":"add_recipient(report, recipient)"},{"anchor":"changeset/2","deprecated":false,"id":"changeset/2","title":"changeset(settings, attrs \\\\ %{})"},{"anchor":"remove_recipient/2","deprecated":false,"id":"remove_recipient/2","title":"remove_recipient(report, recipient)"}]}],"sections":[],"title":"Plausible.Site.WeeklyReport"},{"deprecated":false,"group":"","id":"Plausible.SiteAdmin","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_changeset/2","deprecated":false,"id":"create_changeset/2","title":"create_changeset(schema, attrs)"},{"anchor":"custom_index_query/3","deprecated":false,"id":"custom_index_query/3","title":"custom_index_query(conn, schema, query)"},{"anchor":"form_fields/1","deprecated":false,"id":"form_fields/1","title":"form_fields(_)"},{"anchor":"get_struct_fields/1","deprecated":false,"id":"get_struct_fields/1","title":"get_struct_fields(module)"},{"anchor":"index/1","deprecated":false,"id":"index/1","title":"index(_)"},{"anchor":"list_actions/1","deprecated":false,"id":"list_actions/1","title":"list_actions(conn)"},{"anchor":"ordering/1","deprecated":false,"id":"ordering/1","title":"ordering(schema)"},{"anchor":"search_fields/1","deprecated":false,"id":"search_fields/1","title":"search_fields(schema)"},{"anchor":"update_changeset/2","deprecated":false,"id":"update_changeset/2","title":"update_changeset(schema, attrs)"}]}],"sections":[],"title":"Plausible.SiteAdmin"},{"deprecated":false,"group":"","id":"Plausible.Sites","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:invite_error/0","deprecated":false,"id":"invite_error/0","title":"invite_error()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"bulk_transfer_ownership/4","deprecated":false,"id":"bulk_transfer_ownership/4","title":"bulk_transfer_ownership(sites, inviter, invitee_email, opts \\\\ [])"},{"anchor":"create/2","deprecated":false,"id":"create/2","title":"create(user, params)"},{"anchor":"create_shared_link/3","deprecated":false,"id":"create_shared_link/3","title":"create_shared_link(site, name, password \\\\ nil)"},{"anchor":"get_by_domain/1","deprecated":false,"id":"get_by_domain/1","title":"get_by_domain(domain)"},{"anchor":"get_by_domain!/1","deprecated":false,"id":"get_by_domain!/1","title":"get_by_domain!(domain)"},{"anchor":"get_for_user/3","deprecated":false,"id":"get_for_user/3","title":"get_for_user(user_id, domain, roles \\\\ [:owner, :admin, :viewer])"},{"anchor":"get_for_user!/3","deprecated":false,"id":"get_for_user!/3","title":"get_for_user!(user_id, domain, roles \\\\ [:owner, :admin, :viewer])"},{"anchor":"has_admin_access?/2","deprecated":false,"id":"has_admin_access?/2","title":"has_admin_access?(user_id, site)"},{"anchor":"has_goals?/1","deprecated":false,"id":"has_goals?/1","title":"has_goals?(site)"},{"anchor":"has_stats?/1","deprecated":false,"id":"has_stats?/1","title":"has_stats?(site)"},{"anchor":"invite/4","deprecated":false,"id":"invite/4","title":"invite(site, inviter, invitee_email, role)"},{"anchor":"is_member?/2","deprecated":false,"id":"is_member?/2","title":"is_member?(user_id, site)"},{"anchor":"locked?/1","deprecated":false,"id":"locked?/1","title":"locked?(site)"},{"anchor":"owned_site_ids/1","deprecated":false,"id":"owned_site_ids/1","title":"owned_site_ids(user)"},{"anchor":"owned_sites_count/1","deprecated":false,"id":"owned_sites_count/1","title":"owned_sites_count(user)"},{"anchor":"owned_sites_domains/1","deprecated":false,"id":"owned_sites_domains/1","title":"owned_sites_domains(user)"},{"anchor":"owner_for/1","deprecated":false,"id":"owner_for/1","title":"owner_for(site)"},{"anchor":"role/2","deprecated":false,"id":"role/2","title":"role(user_id, site)"},{"anchor":"shared_link_url/2","deprecated":false,"id":"shared_link_url/2","title":"shared_link_url(site, link)"},{"anchor":"stats_start_date/1","deprecated":false,"id":"stats_start_date/1","title":"stats_start_date(site)"}]}],"sections":[],"title":"Plausible.Sites"},{"deprecated":false,"group":"","id":"Plausible.Stats","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(site, query, metrics)"},{"anchor":"breakdown/5","deprecated":false,"id":"breakdown/5","title":"breakdown(site, query, prop, metrics, pagination)"},{"anchor":"current_visitors/1","deprecated":false,"id":"current_visitors/1","title":"current_visitors(site)"},{"anchor":"filter_suggestions/4","deprecated":false,"id":"filter_suggestions/4","title":"filter_suggestions(site, query, filter_name, filter_search)"},{"anchor":"funnel/3","deprecated":false,"id":"funnel/3","title":"funnel(site, query, funnel)"},{"anchor":"timeseries/3","deprecated":false,"id":"timeseries/3","title":"timeseries(site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats"},{"deprecated":false,"group":"","id":"Plausible.Stats.Aggregate","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/3","deprecated":false,"id":"aggregate/3","title":"aggregate(site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Aggregate"},{"deprecated":false,"group":"","id":"Plausible.Stats.Base","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"apply_entry_prop_filter/3","deprecated":false,"id":"apply_entry_prop_filter/3","title":"apply_entry_prop_filter(sessions_q, prop_name, arg3)"},{"anchor":"base_event_query/2","deprecated":false,"id":"base_event_query/2","title":"base_event_query(site, query)"},{"anchor":"filter_by_entry_props/2","deprecated":false,"id":"filter_by_entry_props/2","title":"filter_by_entry_props(sessions_q, query)"},{"anchor":"filter_converted_sessions/3","deprecated":false,"id":"filter_converted_sessions/3","title":"filter_converted_sessions(db_query, site, query)"},{"anchor":"page_regex/1","deprecated":false,"id":"page_regex/1","title":"page_regex(expr)"},{"anchor":"query_events/2","deprecated":false,"id":"query_events/2","title":"query_events(site, query)"},{"anchor":"query_sessions/2","deprecated":false,"id":"query_sessions/2","title":"query_sessions(site, query)"},{"anchor":"select_event_metrics/2","deprecated":false,"id":"select_event_metrics/2","title":"select_event_metrics(q, list)"},{"anchor":"select_session_metrics/3","deprecated":false,"id":"select_session_metrics/3","title":"select_session_metrics(q, list, query)"},{"anchor":"utc_boundaries/2","deprecated":false,"id":"utc_boundaries/2","title":"utc_boundaries(query, site)"}]}],"sections":[],"title":"Plausible.Stats.Base"},{"deprecated":false,"group":"","id":"Plausible.Stats.Breakdown","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"breakdown/5","deprecated":false,"id":"breakdown/5","title":"breakdown(site, query, property, metrics, pagination)"}]}],"sections":[],"title":"Plausible.Stats.Breakdown"},{"deprecated":false,"group":"","id":"Plausible.Stats.Clickhouse","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"current_visitors/2","deprecated":false,"id":"current_visitors/2","title":"current_visitors(site, query)"},{"anchor":"has_pageviews?/1","deprecated":false,"id":"has_pageviews?/1","title":"has_pageviews?(site)"},{"anchor":"imported_pageview_count/1","deprecated":false,"id":"imported_pageview_count/1","title":"imported_pageview_count(site)"},{"anchor":"last_24h_visitors/1","deprecated":false,"id":"last_24h_visitors/1","title":"last_24h_visitors(sites)"},{"anchor":"pageview_start_date_local/1","deprecated":false,"id":"pageview_start_date_local/1","title":"pageview_start_date_local(site)"},{"anchor":"top_sources/6","deprecated":false,"id":"top_sources/6","title":"top_sources(site, query, limit, page, show_noref \\\\ false, include_details)"},{"anchor":"usage_breakdown/1","deprecated":false,"id":"usage_breakdown/1","title":"usage_breakdown(domains_or_site_ids)"},{"anchor":"usage_breakdown/2","deprecated":false,"id":"usage_breakdown/2","title":"usage_breakdown(domains, date_range)"}]}],"sections":[],"title":"Plausible.Stats.Clickhouse"},{"deprecated":false,"group":"","id":"Plausible.Stats.Compare","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"calculate_change/3","deprecated":false,"id":"calculate_change/3","title":"calculate_change(metric, old_stats, new_stats)"}]}],"sections":[],"title":"Plausible.Stats.Compare"},{"deprecated":false,"group":"","id":"Plausible.Stats.Comparisons","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:mode/0","deprecated":false,"id":"mode/0","title":"mode()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"compare/4","deprecated":false,"id":"compare/4","title":"compare(site, source_query, mode, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Stats.Comparisons"},{"deprecated":false,"group":"","id":"Plausible.Stats.CurrentVisitors","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"current_visitors/1","deprecated":false,"id":"current_visitors/1","title":"current_visitors(site)"}]}],"sections":[],"title":"Plausible.Stats.CurrentVisitors"},{"deprecated":false,"group":"","id":"Plausible.Stats.CustomProps","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"fetch_prop_names/2","deprecated":false,"id":"fetch_prop_names/2","title":"fetch_prop_names(site, query)"},{"anchor":"maybe_allowed_props_only/2","deprecated":false,"id":"maybe_allowed_props_only/2","title":"maybe_allowed_props_only(q, allowed_props)"},{"anchor":"props_for_all_event_names/2","deprecated":false,"id":"props_for_all_event_names/2","title":"props_for_all_event_names(site, query)"}]}],"sections":[],"title":"Plausible.Stats.CustomProps"},{"deprecated":false,"group":"","id":"Plausible.Stats.FilterParser","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"parse_filters/1","deprecated":false,"id":"parse_filters/1","title":"parse_filters(filters)"}]}],"sections":[],"title":"Plausible.Stats.FilterParser"},{"deprecated":false,"group":"","id":"Plausible.Stats.FilterSuggestions","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"filter_suggestions/4","deprecated":false,"id":"filter_suggestions/4","title":"filter_suggestions(site, query, filter_name, filter_search)"}]}],"sections":[],"title":"Plausible.Stats.FilterSuggestions"},{"deprecated":false,"group":"","id":"Plausible.Stats.Filters","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_prefix/1","deprecated":false,"id":"add_prefix/1","title":"add_prefix(query)"},{"anchor":"visit_props/0","deprecated":false,"id":"visit_props/0","title":"visit_props()"}]}],"sections":[],"title":"Plausible.Stats.Filters"},{"deprecated":false,"group":"","id":"Plausible.Stats.Fragments","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"bounce_rate/0","deprecated":false,"id":"bounce_rate/0","title":"bounce_rate()"},{"anchor":"coalesce_string/2","deprecated":false,"id":"coalesce_string/2","title":"coalesce_string(fieldA, fieldB)"},{"anchor":"sample_percent/0","deprecated":false,"id":"sample_percent/0","title":"sample_percent()"},{"anchor":"to_timezone/2","deprecated":false,"id":"to_timezone/2","title":"to_timezone(date, timezone)"},{"anchor":"total/0","deprecated":false,"id":"total/0","title":"total()"},{"anchor":"uniq/1","deprecated":false,"id":"uniq/1","title":"uniq(user_id)"},{"anchor":"visit_duration/0","deprecated":false,"id":"visit_duration/0","title":"visit_duration()"},{"anchor":"weekstart_not_before/2","deprecated":false,"id":"weekstart_not_before/2","title":"weekstart_not_before(date, not_before)"},{"anchor":"weekstart_not_before/3","deprecated":false,"id":"weekstart_not_before/3","title":"weekstart_not_before(date, not_before, timezone)"}]}],"sections":[],"title":"Plausible.Stats.Fragments"},{"deprecated":false,"group":"","id":"Plausible.Stats.Funnel","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"funnel/3","deprecated":false,"id":"funnel/3","title":"funnel(site, query, funnel_id)"}]}],"sections":[],"title":"Plausible.Stats.Funnel"},{"deprecated":false,"group":"","id":"Plausible.Stats.Imported","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"merge_imported/5","deprecated":false,"id":"merge_imported/5","title":"merge_imported(q, site, query, property, metrics)"},{"anchor":"merge_imported_timeseries/4","deprecated":false,"id":"merge_imported_timeseries/4","title":"merge_imported_timeseries(native_q, site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Imported"},{"deprecated":false,"group":"","id":"Plausible.Stats.Interval","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:opt/0","deprecated":false,"id":"opt/0","title":"opt()"},{"anchor":"t:opts/0","deprecated":false,"id":"opts/0","title":"opts()"},{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"default_for_date_range/1","deprecated":false,"id":"default_for_date_range/1","title":"default_for_date_range(range)"},{"anchor":"default_for_period/1","deprecated":false,"id":"default_for_period/1","title":"default_for_period(period)"},{"anchor":"list/0","deprecated":false,"id":"list/0","title":"list()"},{"anchor":"valid?/1","deprecated":false,"id":"valid?/1","title":"valid?(interval)"},{"anchor":"valid_by_period/1","deprecated":false,"id":"valid_by_period/1","title":"valid_by_period(opts \\\\ [])"},{"anchor":"valid_for_period?/3","deprecated":false,"id":"valid_for_period?/3","title":"valid_for_period?(period, interval, opts \\\\ [])"}]}],"sections":[],"title":"Plausible.Stats.Interval"},{"deprecated":false,"group":"","id":"Plausible.Stats.Props","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"event_props/0","deprecated":false,"id":"event_props/0","title":"event_props()"},{"anchor":"valid_prop?/1","deprecated":false,"id":"valid_prop?/1","title":"valid_prop?(prop)"}]}],"sections":[],"title":"Plausible.Stats.Props"},{"deprecated":false,"group":"","id":"Plausible.Stats.Query","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:t/0","deprecated":false,"id":"t/0","title":"t()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"from/2","deprecated":false,"id":"from/2","title":"from(site, params)"},{"anchor":"get_filter_by_prefix/2","deprecated":false,"id":"get_filter_by_prefix/2","title":"get_filter_by_prefix(query, prefix)"},{"anchor":"has_event_filters?/1","deprecated":false,"id":"has_event_filters?/1","title":"has_event_filters?(query)"},{"anchor":"include_imported?/3","deprecated":false,"id":"include_imported?/3","title":"include_imported?(query, site, requested?)"},{"anchor":"put_filter/3","deprecated":false,"id":"put_filter/3","title":"put_filter(query, key, val)"},{"anchor":"remove_event_filters/2","deprecated":false,"id":"remove_event_filters/2","title":"remove_event_filters(query, opts)"},{"anchor":"trace/1","deprecated":false,"id":"trace/1","title":"trace(query)"}]}],"sections":[],"title":"Plausible.Stats.Query"},{"deprecated":false,"group":"","id":"Plausible.Stats.Timeseries","nodeGroups":[{"key":"types","name":"Types","nodes":[{"anchor":"t:results/0","deprecated":false,"id":"results/0","title":"results()"}]},{"key":"functions","name":"Functions","nodes":[{"anchor":"timeseries/3","deprecated":false,"id":"timeseries/3","title":"timeseries(site, query, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Timeseries"},{"deprecated":false,"group":"","id":"Plausible.Stats.Util","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"cast_revenue_metrics_to_money/2","deprecated":false,"id":"cast_revenue_metrics_to_money/2","title":"cast_revenue_metrics_to_money(results, revenue_goals)"},{"anchor":"get_revenue_tracking_currency/3","deprecated":false,"id":"get_revenue_tracking_currency/3","title":"get_revenue_tracking_currency(site, query, metrics)"},{"anchor":"remove_internal_visits_metric/1","deprecated":false,"id":"remove_internal_visits_metric/1","title":"remove_internal_visits_metric(result)"},{"anchor":"remove_internal_visits_metric/2","deprecated":false,"id":"remove_internal_visits_metric/2","title":"remove_internal_visits_metric(results, metrics)"}]}],"sections":[],"title":"Plausible.Stats.Util"},{"deprecated":false,"group":"","id":"Plausible.Test.Support.HTML","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"element_exists?/2","deprecated":false,"id":"element_exists?/2","title":"element_exists?(html, selector)"},{"anchor":"find/2","deprecated":false,"id":"find/2","title":"find(html, value)"},{"anchor":"form_exists?/2","deprecated":false,"id":"form_exists?/2","title":"form_exists?(html, action_path)"},{"anchor":"name_of/1","deprecated":false,"id":"name_of/1","title":"name_of(element)"},{"anchor":"submit_button/2","deprecated":false,"id":"submit_button/2","title":"submit_button(html, form)"},{"anchor":"text/1","deprecated":false,"id":"text/1","title":"text(element)"},{"anchor":"text_of_attr/2","deprecated":false,"id":"text_of_attr/2","title":"text_of_attr(element, attr)"},{"anchor":"text_of_element/2","deprecated":false,"id":"text_of_element/2","title":"text_of_element(html, element)"}]}],"sections":[],"title":"Plausible.Test.Support.HTML"},{"deprecated":false,"group":"","id":"Plausible.TestUtils","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_imported_data/1","deprecated":false,"id":"add_imported_data/1","title":"add_imported_data(map)"},{"anchor":"await_clickhouse_count/2","deprecated":false,"id":"await_clickhouse_count/2","title":"await_clickhouse_count(query, expected)"},{"anchor":"create_api_key/1","deprecated":false,"id":"create_api_key/1","title":"create_api_key(map)"},{"anchor":"create_events/1","deprecated":false,"id":"create_events/1","title":"create_events(events)"},{"anchor":"create_new_site/1","deprecated":false,"id":"create_new_site/1","title":"create_new_site(map)"},{"anchor":"create_pageviews/1","deprecated":false,"id":"create_pageviews/1","title":"create_pageviews(pageviews)"},{"anchor":"create_sessions/1","deprecated":false,"id":"create_sessions/1","title":"create_sessions(sessions)"},{"anchor":"create_site/1","deprecated":false,"id":"create_site/1","title":"create_site(map)"},{"anchor":"create_user/1","deprecated":false,"id":"create_user/1","title":"create_user(_)"},{"anchor":"eventually/3","deprecated":false,"id":"eventually/3","title":"eventually(expectation, wait_time_ms \\\\ 50, retries \\\\ 10)"},{"anchor":"init_session/1","deprecated":false,"id":"init_session/1","title":"init_session(conn)"},{"anchor":"log_in/1","deprecated":false,"id":"log_in/1","title":"log_in(map)"},{"anchor":"patch_env/2","deprecated":false,"id":"patch_env/2","title":"patch_env(env_key, value)"},{"anchor":"populate_stats/1","deprecated":false,"id":"populate_stats/1","title":"populate_stats(events)"},{"anchor":"populate_stats/2","deprecated":false,"id":"populate_stats/2","title":"populate_stats(site, events)"},{"anchor":"random_ip/0","deprecated":false,"id":"random_ip/0","title":"random_ip()"},{"anchor":"relative_time/1","deprecated":false,"id":"relative_time/1","title":"relative_time(shifts)"},{"anchor":"setup_patch_env/2","deprecated":false,"id":"setup_patch_env/2","title":"setup_patch_env(env_key, value)"},{"anchor":"to_naive_truncate/1","deprecated":false,"id":"to_naive_truncate/1","title":"to_naive_truncate(dt)"},{"anchor":"use_api_key/1","deprecated":false,"id":"use_api_key/1","title":"use_api_key(map)"}]}],"sections":[],"title":"Plausible.TestUtils"},{"deprecated":false,"group":"","id":"Plausible.Themes","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"options/0","deprecated":false,"id":"options/0","title":"options()"}]}],"sections":[],"title":"Plausible.Themes"},{"deprecated":false,"group":"","id":"Plausible.Timezones","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"options/1","deprecated":false,"id":"options/1","title":"options(now \\\\ DateTime.utc_now())"}]}],"sections":[],"title":"Plausible.Timezones"},{"deprecated":false,"group":"","id":"Plausible.Users","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"with_subscription/1","deprecated":false,"id":"with_subscription/1","title":"with_subscription(user)"}]}],"sections":[],"title":"Plausible.Users"},{"deprecated":false,"group":"","id":"Plausible.Workers.CheckUsage","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"check_enterprise_subscriber/2","deprecated":false,"id":"check_enterprise_subscriber/2","title":"check_enterprise_subscriber(subscriber, billing_mod)"},{"anchor":"day_of_month/1","deprecated":false,"id":"day_of_month/1","title":"day_of_month(date)"},{"anchor":"last_day_of_month/1","deprecated":false,"id":"last_day_of_month/1","title":"last_day_of_month(day)"},{"anchor":"least/2","deprecated":false,"id":"least/2","title":"least(left, right)"},{"anchor":"yesterday/0","deprecated":false,"id":"yesterday/0","title":"yesterday()"}]}],"sections":[],"title":"Plausible.Workers.CheckUsage"},{"deprecated":false,"group":"","id":"Plausible.Workers.CleanEmailVerificationCodes","sections":[],"title":"Plausible.Workers.CleanEmailVerificationCodes"},{"deprecated":false,"group":"","id":"Plausible.Workers.CleanInvitations","sections":[],"title":"Plausible.Workers.CleanInvitations"},{"deprecated":false,"group":"","id":"Plausible.Workers.ExpireDomainChangeTransitions","sections":[],"title":"Plausible.Workers.ExpireDomainChangeTransitions"},{"deprecated":false,"group":"","id":"Plausible.Workers.ImportGoogleAnalytics","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"import_failed/1","deprecated":false,"id":"import_failed/1","title":"import_failed(site)"}]}],"sections":[],"title":"Plausible.Workers.ImportGoogleAnalytics"},{"deprecated":false,"group":"","id":"Plausible.Workers.LockSites","sections":[],"title":"Plausible.Workers.LockSites"},{"deprecated":false,"group":"","id":"Plausible.Workers.NotifyAnnualRenewal","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"perform/1","deprecated":false,"id":"perform/1","title":"perform(job)"}]}],"sections":[],"title":"Plausible.Workers.NotifyAnnualRenewal"},{"deprecated":false,"group":"","id":"Plausible.Workers.RotateSalts","sections":[],"title":"Plausible.Workers.RotateSalts"},{"deprecated":false,"group":"","id":"Plausible.Workers.ScheduleEmailReports","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"first_of_month_9am/1","deprecated":false,"id":"first_of_month_9am/1","title":"first_of_month_9am(timezone)"},{"anchor":"monday_9am/1","deprecated":false,"id":"monday_9am/1","title":"monday_9am(timezone)"},{"anchor":"perform/1","deprecated":false,"id":"perform/1","title":"perform(job)"}]}],"sections":[],"title":"Plausible.Workers.ScheduleEmailReports"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendCheckStatsEmails","sections":[],"title":"Plausible.Workers.SendCheckStatsEmails"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendEmailReport","sections":[],"title":"Plausible.Workers.SendEmailReport"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendSiteSetupEmails","sections":[],"title":"Plausible.Workers.SendSiteSetupEmails"},{"deprecated":false,"group":"","id":"Plausible.Workers.SendTrialNotifications","sections":[],"title":"Plausible.Workers.SendTrialNotifications"},{"deprecated":false,"group":"","id":"Plausible.Workers.SpikeNotifier","sections":[],"title":"Plausible.Workers.SpikeNotifier"},{"deprecated":false,"group":"","id":"PlausibleWeb","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__using__/1","deprecated":false,"id":"__using__/1","title":"__using__(which)"},{"anchor":"channel/0","deprecated":false,"id":"channel/0","title":"channel()"},{"anchor":"controller/0","deprecated":false,"id":"controller/0","title":"controller()"},{"anchor":"router/0","deprecated":false,"id":"router/0","title":"router()"},{"anchor":"view/0","deprecated":false,"id":"view/0","title":"view()"}]}],"sections":[],"title":"PlausibleWeb"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.ExternalController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error/2","deprecated":false,"id":"error/2","title":"error(conn, params)"},{"anchor":"event/2","deprecated":false,"id":"event/2","title":"event(conn, params)"},{"anchor":"health/2","deprecated":false,"id":"health/2","title":"health(conn, params)"},{"anchor":"info/2","deprecated":false,"id":"info/2","title":"info(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.ExternalController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.ExternalSitesController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"create_site/2","deprecated":false,"id":"create_site/2","title":"create_site(conn, params)"},{"anchor":"delete_goal/2","deprecated":false,"id":"delete_goal/2","title":"delete_goal(conn, params)"},{"anchor":"delete_site/2","deprecated":false,"id":"delete_site/2","title":"delete_site(conn, map)"},{"anchor":"find_or_create_goal/2","deprecated":false,"id":"find_or_create_goal/2","title":"find_or_create_goal(conn, params)"},{"anchor":"find_or_create_shared_link/2","deprecated":false,"id":"find_or_create_shared_link/2","title":"find_or_create_shared_link(conn, params)"},{"anchor":"get_site/2","deprecated":false,"id":"get_site/2","title":"get_site(conn, map)"},{"anchor":"update_site/2","deprecated":false,"id":"update_site/2","title":"update_site(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.ExternalSitesController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.ExternalStatsController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"aggregate/2","deprecated":false,"id":"aggregate/2","title":"aggregate(conn, params)"},{"anchor":"breakdown/2","deprecated":false,"id":"breakdown/2","title":"breakdown(conn, params)"},{"anchor":"realtime_visitors/2","deprecated":false,"id":"realtime_visitors/2","title":"realtime_visitors(conn, params)"},{"anchor":"timeseries/2","deprecated":false,"id":"timeseries/2","title":"timeseries(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.ExternalStatsController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.Helpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"bad_request/2","deprecated":false,"id":"bad_request/2","title":"bad_request(conn, msg)"},{"anchor":"not_found/2","deprecated":false,"id":"not_found/2","title":"not_found(conn, msg)"},{"anchor":"payment_required/2","deprecated":false,"id":"payment_required/2","title":"payment_required(conn, msg)"},{"anchor":"too_many_requests/2","deprecated":false,"id":"too_many_requests/2","title":"too_many_requests(conn, msg)"},{"anchor":"unauthorized/2","deprecated":false,"id":"unauthorized/2","title":"unauthorized(conn, msg)"}]}],"sections":[],"title":"PlausibleWeb.Api.Helpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.InternalController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"disable_feature/2","deprecated":false,"id":"disable_feature/2","title":"disable_feature(conn, map)"},{"anchor":"domain_status/2","deprecated":false,"id":"domain_status/2","title":"domain_status(conn, map)"},{"anchor":"sites/2","deprecated":false,"id":"sites/2","title":"sites(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.InternalController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.PaddleController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"verified_signature?/1","deprecated":false,"id":"verified_signature?/1","title":"verified_signature?(params)"},{"anchor":"verify_signature/2","deprecated":false,"id":"verify_signature/2","title":"verify_signature(conn, opts)"},{"anchor":"webhook/2","deprecated":false,"id":"webhook/2","title":"webhook(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.PaddleController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Api.StatsController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"all_custom_prop_values/2","deprecated":false,"id":"all_custom_prop_values/2","title":"all_custom_prop_values(conn, params)"},{"anchor":"browser_versions/2","deprecated":false,"id":"browser_versions/2","title":"browser_versions(conn, params)"},{"anchor":"browsers/2","deprecated":false,"id":"browsers/2","title":"browsers(conn, params)"},{"anchor":"cities/2","deprecated":false,"id":"cities/2","title":"cities(conn, params)"},{"anchor":"conversions/2","deprecated":false,"id":"conversions/2","title":"conversions(conn, params)"},{"anchor":"countries/2","deprecated":false,"id":"countries/2","title":"countries(conn, params)"},{"anchor":"current_visitors/2","deprecated":false,"id":"current_visitors/2","title":"current_visitors(conn, _)"},{"anchor":"custom_prop_values/2","deprecated":false,"id":"custom_prop_values/2","title":"custom_prop_values(conn, params)"},{"anchor":"entry_pages/2","deprecated":false,"id":"entry_pages/2","title":"entry_pages(conn, params)"},{"anchor":"exit_pages/2","deprecated":false,"id":"exit_pages/2","title":"exit_pages(conn, params)"},{"anchor":"filter_suggestions/2","deprecated":false,"id":"filter_suggestions/2","title":"filter_suggestions(conn, params)"},{"anchor":"funnel/2","deprecated":false,"id":"funnel/2","title":"funnel(conn, params)"},{"anchor":"main_graph/2","deprecated":false,"id":"main_graph/2","title":"main_graph(conn, params)"},{"anchor":"operating_system_versions/2","deprecated":false,"id":"operating_system_versions/2","title":"operating_system_versions(conn, params)"},{"anchor":"operating_systems/2","deprecated":false,"id":"operating_systems/2","title":"operating_systems(conn, params)"},{"anchor":"pages/2","deprecated":false,"id":"pages/2","title":"pages(conn, params)"},{"anchor":"referrer_drilldown/2","deprecated":false,"id":"referrer_drilldown/2","title":"referrer_drilldown(conn, params)"},{"anchor":"referrers/2","deprecated":false,"id":"referrers/2","title":"referrers(conn, params)"},{"anchor":"regions/2","deprecated":false,"id":"regions/2","title":"regions(conn, params)"},{"anchor":"screen_sizes/2","deprecated":false,"id":"screen_sizes/2","title":"screen_sizes(conn, params)"},{"anchor":"sources/2","deprecated":false,"id":"sources/2","title":"sources(conn, params)"},{"anchor":"top_stats/2","deprecated":false,"id":"top_stats/2","title":"top_stats(conn, params)"},{"anchor":"utm_campaigns/2","deprecated":false,"id":"utm_campaigns/2","title":"utm_campaigns(conn, params)"},{"anchor":"utm_contents/2","deprecated":false,"id":"utm_contents/2","title":"utm_contents(conn, params)"},{"anchor":"utm_mediums/2","deprecated":false,"id":"utm_mediums/2","title":"utm_mediums(conn, params)"},{"anchor":"utm_sources/2","deprecated":false,"id":"utm_sources/2","title":"utm_sources(conn, params)"},{"anchor":"utm_terms/2","deprecated":false,"id":"utm_terms/2","title":"utm_terms(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.Api.StatsController"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"activate/2","deprecated":false,"id":"activate/2","title":"activate(conn, map)"},{"anchor":"activate_form/2","deprecated":false,"id":"activate_form/2","title":"activate_form(conn, params)"},{"anchor":"create_api_key/2","deprecated":false,"id":"create_api_key/2","title":"create_api_key(conn, map)"},{"anchor":"delete_api_key/2","deprecated":false,"id":"delete_api_key/2","title":"delete_api_key(conn, map)"},{"anchor":"delete_me/2","deprecated":false,"id":"delete_me/2","title":"delete_me(conn, params)"},{"anchor":"google_auth_callback/2","deprecated":false,"id":"google_auth_callback/2","title":"google_auth_callback(conn, params)"},{"anchor":"login/2","deprecated":false,"id":"login/2","title":"login(conn, map)"},{"anchor":"login_form/2","deprecated":false,"id":"login_form/2","title":"login_form(conn, params)"},{"anchor":"logout/2","deprecated":false,"id":"logout/2","title":"logout(conn, params)"},{"anchor":"new_api_key/2","deprecated":false,"id":"new_api_key/2","title":"new_api_key(conn, params)"},{"anchor":"password_reset/2","deprecated":false,"id":"password_reset/2","title":"password_reset(conn, params)"},{"anchor":"password_reset_form/2","deprecated":false,"id":"password_reset_form/2","title":"password_reset_form(conn, map)"},{"anchor":"password_reset_request/2","deprecated":false,"id":"password_reset_request/2","title":"password_reset_request(conn, params)"},{"anchor":"password_reset_request_form/2","deprecated":false,"id":"password_reset_request_form/2","title":"password_reset_request_form(conn, _)"},{"anchor":"register/2","deprecated":false,"id":"register/2","title":"register(conn, map)"},{"anchor":"register_form/2","deprecated":false,"id":"register_form/2","title":"register_form(conn, params)"},{"anchor":"register_from_invitation/2","deprecated":false,"id":"register_from_invitation/2","title":"register_from_invitation(conn, map)"},{"anchor":"request_activation_code/2","deprecated":false,"id":"request_activation_code/2","title":"request_activation_code(conn, params)"},{"anchor":"save_settings/2","deprecated":false,"id":"save_settings/2","title":"save_settings(conn, map)"},{"anchor":"user_settings/2","deprecated":false,"id":"user_settings/2","title":"user_settings(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.AuthController"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.AuthPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"activate.html/1","deprecated":false,"id":"activate.html/1","title":"activate.html(assigns)"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"delimit_integer/1","deprecated":false,"id":"delimit_integer/1","title":"delimit_integer(number)"},{"anchor":"format_invoices/1","deprecated":false,"id":"format_invoices/1","title":"format_invoices(invoice_list)"},{"anchor":"login_form.html/1","deprecated":false,"id":"login_form.html/1","title":"login_form.html(assigns)"},{"anchor":"new_api_key.html/1","deprecated":false,"id":"new_api_key.html/1","title":"new_api_key.html(assigns)"},{"anchor":"password_reset_form.html/1","deprecated":false,"id":"password_reset_form.html/1","title":"password_reset_form.html(assigns)"},{"anchor":"password_reset_request_form.html/1","deprecated":false,"id":"password_reset_request_form.html/1","title":"password_reset_request_form.html(assigns)"},{"anchor":"password_reset_request_success.html/1","deprecated":false,"id":"password_reset_request_success.html/1","title":"password_reset_request_success.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"present_subscription_status/1","deprecated":false,"id":"present_subscription_status/1","title":"present_subscription_status(status)"},{"anchor":"register_success.html/1","deprecated":false,"id":"register_success.html/1","title":"register_success.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"subscription_colors/1","deprecated":false,"id":"subscription_colors/1","title":"subscription_colors(_)"},{"anchor":"subscription_interval/1","deprecated":false,"id":"subscription_interval/1","title":"subscription_interval(subscription)"},{"anchor":"subscription_quota/1","deprecated":false,"id":"subscription_quota/1","title":"subscription_quota(subscription)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"user_settings.html/1","deprecated":false,"id":"user_settings.html/1","title":"user_settings.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.AuthView"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthorizeSiteAccess","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, allowed_roles)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(allowed_roles)"}]}],"sections":[],"title":"PlausibleWeb.AuthorizeSiteAccess"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthorizeSitesApiPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.AuthorizeSitesApiPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.AuthorizeStatsApiPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.AuthorizeStatsApiPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.BillingController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"change_enterprise_plan/2","deprecated":false,"id":"change_enterprise_plan/2","title":"change_enterprise_plan(conn, map)"},{"anchor":"change_plan/2","deprecated":false,"id":"change_plan/2","title":"change_plan(conn, map)"},{"anchor":"change_plan_form/2","deprecated":false,"id":"change_plan_form/2","title":"change_plan_form(conn, params)"},{"anchor":"change_plan_preview/2","deprecated":false,"id":"change_plan_preview/2","title":"change_plan_preview(conn, map)"},{"anchor":"ping_subscription/2","deprecated":false,"id":"ping_subscription/2","title":"ping_subscription(conn, params)"},{"anchor":"preview_susbcription/2","deprecated":false,"id":"preview_susbcription/2","title":"preview_susbcription(_, _)"},{"anchor":"upgrade/2","deprecated":false,"id":"upgrade/2","title":"upgrade(conn, params)"},{"anchor":"upgrade_enterprise_plan/2","deprecated":false,"id":"upgrade_enterprise_plan/2","title":"upgrade_enterprise_plan(conn, map)"},{"anchor":"upgrade_success/2","deprecated":false,"id":"upgrade_success/2","title":"upgrade_success(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.BillingController"},{"deprecated":false,"group":"","id":"PlausibleWeb.BillingView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"change_enterprise_plan.html/1","deprecated":false,"id":"change_enterprise_plan.html/1","title":"change_enterprise_plan.html(assigns)"},{"anchor":"change_enterprise_plan_contact_us.html/1","deprecated":false,"id":"change_enterprise_plan_contact_us.html/1","title":"change_enterprise_plan_contact_us.html(assigns)"},{"anchor":"change_plan.html/1","deprecated":false,"id":"change_plan.html/1","title":"change_plan.html(assigns)"},{"anchor":"change_plan_preview.html/1","deprecated":false,"id":"change_plan_preview.html/1","title":"change_plan_preview.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"present_currency/1","deprecated":false,"id":"present_currency/1","title":"present_currency(arg)"},{"anchor":"present_date/1","deprecated":false,"id":"present_date/1","title":"present_date(date)"},{"anchor":"reccommended_plan/1","deprecated":false,"id":"reccommended_plan/1","title":"reccommended_plan(usage)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"upgrade.html/1","deprecated":false,"id":"upgrade.html/1","title":"upgrade.html(assigns)"},{"anchor":"upgrade_success.html/1","deprecated":false,"id":"upgrade_success.html/1","title":"upgrade_success.html(assigns)"},{"anchor":"upgrade_to_plan.html/1","deprecated":false,"id":"upgrade_to_plan.html/1","title":"upgrade_to_plan.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.BillingView"},{"deprecated":false,"group":"","id":"PlausibleWeb.CRMAuthPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.CRMAuthPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.Captcha","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"enabled?/0","deprecated":false,"id":"enabled?/0","title":"enabled?()"},{"anchor":"sitekey/0","deprecated":false,"id":"sitekey/0","title":"sitekey()"},{"anchor":"verify/1","deprecated":false,"id":"verify/1","title":"verify(token)"}]}],"sections":[],"title":"PlausibleWeb.Captcha"},{"deprecated":false,"group":"","id":"PlausibleWeb.Components.Generic","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"notice/1","deprecated":false,"id":"notice/1","title":"notice(assigns)"},{"anchor":"styled_link/1","deprecated":false,"id":"styled_link/1","title":"styled_link(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Components.Generic"},{"deprecated":false,"group":"","id":"PlausibleWeb.Components.Site.Feature","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"button_active/1","deprecated":false,"id":"button_active/1","title":"button_active(assigns)"},{"anchor":"button_inactive/1","deprecated":false,"id":"button_inactive/1","title":"button_inactive(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"target/4","deprecated":false,"id":"target/4","title":"target(site, setting, conn, set_to)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"toggle/1","deprecated":false,"id":"toggle/1","title":"toggle(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Components.Site.Feature"},{"deprecated":false,"group":"","id":"PlausibleWeb.ConnCase","sections":[],"title":"PlausibleWeb.ConnCase"},{"deprecated":false,"group":"","id":"PlausibleWeb.ControllerHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render_error/2","deprecated":false,"id":"render_error/2","title":"render_error(conn, status)"},{"anchor":"render_error/3","deprecated":false,"id":"render_error/3","title":"render_error(conn, status, message)"}]}],"sections":[],"title":"PlausibleWeb.ControllerHelpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.Email","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"activation_email/2","deprecated":false,"id":"activation_email/2","title":"activation_email(user, code)"},{"anchor":"base_email/0","deprecated":false,"id":"base_email/0","title":"base_email()"},{"anchor":"base_email/1","deprecated":false,"id":"base_email/1","title":"base_email(map)"},{"anchor":"cancellation_email/1","deprecated":false,"id":"cancellation_email/1","title":"cancellation_email(user)"},{"anchor":"check_stats_email/1","deprecated":false,"id":"check_stats_email/1","title":"check_stats_email(user)"},{"anchor":"create_site_email/1","deprecated":false,"id":"create_site_email/1","title":"create_site_email(user)"},{"anchor":"dashboard_locked/4","deprecated":false,"id":"dashboard_locked/4","title":"dashboard_locked(user, usage, last_cycle, suggested_plan)"},{"anchor":"enterprise_over_limit_internal_email/5","deprecated":false,"id":"enterprise_over_limit_internal_email/5","title":"enterprise_over_limit_internal_email(user, usage, last_cycle, site_usage, site_allowance)"},{"anchor":"error_report/3","deprecated":false,"id":"error_report/3","title":"error_report(reported_by, trace_id, feedback)"},{"anchor":"existing_user_invitation/1","deprecated":false,"id":"existing_user_invitation/1","title":"existing_user_invitation(invitation)"},{"anchor":"import_failure/2","deprecated":false,"id":"import_failure/2","title":"import_failure(user, site)"},{"anchor":"import_success/2","deprecated":false,"id":"import_success/2","title":"import_success(user, site)"},{"anchor":"invitation_accepted/1","deprecated":false,"id":"invitation_accepted/1","title":"invitation_accepted(invitation)"},{"anchor":"invitation_rejected/1","deprecated":false,"id":"invitation_rejected/1","title":"invitation_rejected(invitation)"},{"anchor":"mailer_email_from/0","deprecated":false,"id":"mailer_email_from/0","title":"mailer_email_from()"},{"anchor":"new_user_invitation/1","deprecated":false,"id":"new_user_invitation/1","title":"new_user_invitation(invitation)"},{"anchor":"over_limit_email/4","deprecated":false,"id":"over_limit_email/4","title":"over_limit_email(user, usage, last_cycle, suggested_plan)"},{"anchor":"ownership_transfer_accepted/1","deprecated":false,"id":"ownership_transfer_accepted/1","title":"ownership_transfer_accepted(invitation)"},{"anchor":"ownership_transfer_rejected/1","deprecated":false,"id":"ownership_transfer_rejected/1","title":"ownership_transfer_rejected(invitation)"},{"anchor":"ownership_transfer_request/2","deprecated":false,"id":"ownership_transfer_request/2","title":"ownership_transfer_request(invitation, new_owner_account)"},{"anchor":"password_reset_email/2","deprecated":false,"id":"password_reset_email/2","title":"password_reset_email(email, reset_link)"},{"anchor":"priority_email/0","deprecated":false,"id":"priority_email/0","title":"priority_email()"},{"anchor":"priority_email/1","deprecated":false,"id":"priority_email/1","title":"priority_email(map)"},{"anchor":"render/3","deprecated":false,"id":"render/3","title":"render(email, template, assigns \\\\ [])"},{"anchor":"site_member_removed/1","deprecated":false,"id":"site_member_removed/1","title":"site_member_removed(membership)"},{"anchor":"site_setup_help/2","deprecated":false,"id":"site_setup_help/2","title":"site_setup_help(user, site)"},{"anchor":"site_setup_success/2","deprecated":false,"id":"site_setup_success/2","title":"site_setup_success(user, site)"},{"anchor":"spike_notification/5","deprecated":false,"id":"spike_notification/5","title":"spike_notification(email, site, current_visitors, sources, dashboard_link)"},{"anchor":"trial_one_week_reminder/1","deprecated":false,"id":"trial_one_week_reminder/1","title":"trial_one_week_reminder(user)"},{"anchor":"trial_over_email/1","deprecated":false,"id":"trial_over_email/1","title":"trial_over_email(user)"},{"anchor":"trial_upgrade_email/3","deprecated":false,"id":"trial_upgrade_email/3","title":"trial_upgrade_email(user, day, arg)"},{"anchor":"weekly_report/3","deprecated":false,"id":"weekly_report/3","title":"weekly_report(email, site, assigns)"},{"anchor":"welcome_email/1","deprecated":false,"id":"welcome_email/1","title":"welcome_email(user)"},{"anchor":"yearly_expiration_notification/1","deprecated":false,"id":"yearly_expiration_notification/1","title":"yearly_expiration_notification(user)"},{"anchor":"yearly_renewal_notification/1","deprecated":false,"id":"yearly_renewal_notification/1","title":"yearly_renewal_notification(user)"}]}],"sections":[],"title":"PlausibleWeb.Email"},{"deprecated":false,"group":"","id":"PlausibleWeb.EmailView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"activation_email.html/1","deprecated":false,"id":"activation_email.html/1","title":"activation_email.html(assigns)"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"cancellation_email.html/1","deprecated":false,"id":"cancellation_email.html/1","title":"cancellation_email.html(assigns)"},{"anchor":"check_stats_email.html/1","deprecated":false,"id":"check_stats_email.html/1","title":"check_stats_email.html(assigns)"},{"anchor":"create_site_email.html/1","deprecated":false,"id":"create_site_email.html/1","title":"create_site_email.html(assigns)"},{"anchor":"dashboard_locked.html/1","deprecated":false,"id":"dashboard_locked.html/1","title":"dashboard_locked.html(assigns)"},{"anchor":"date_format/1","deprecated":false,"id":"date_format/1","title":"date_format(date)"},{"anchor":"enterprise_over_limit_internal.html/1","deprecated":false,"id":"enterprise_over_limit_internal.html/1","title":"enterprise_over_limit_internal.html(assigns)"},{"anchor":"error_report_email.html/1","deprecated":false,"id":"error_report_email.html/1","title":"error_report_email.html(assigns)"},{"anchor":"existing_user_invitation.html/1","deprecated":false,"id":"existing_user_invitation.html/1","title":"existing_user_invitation.html(assigns)"},{"anchor":"google_analytics_import.html/1","deprecated":false,"id":"google_analytics_import.html/1","title":"google_analytics_import.html(assigns)"},{"anchor":"greet_recipient/1","deprecated":false,"id":"greet_recipient/1","title":"greet_recipient(_)"},{"anchor":"invitation_accepted.html/1","deprecated":false,"id":"invitation_accepted.html/1","title":"invitation_accepted.html(assigns)"},{"anchor":"invitation_rejected.html/1","deprecated":false,"id":"invitation_rejected.html/1","title":"invitation_rejected.html(assigns)"},{"anchor":"new_user_invitation.html/1","deprecated":false,"id":"new_user_invitation.html/1","title":"new_user_invitation.html(assigns)"},{"anchor":"over_limit.html/1","deprecated":false,"id":"over_limit.html/1","title":"over_limit.html(assigns)"},{"anchor":"ownership_transfer_accepted.html/1","deprecated":false,"id":"ownership_transfer_accepted.html/1","title":"ownership_transfer_accepted.html(assigns)"},{"anchor":"ownership_transfer_rejected.html/1","deprecated":false,"id":"ownership_transfer_rejected.html/1","title":"ownership_transfer_rejected.html(assigns)"},{"anchor":"ownership_transfer_request.html/1","deprecated":false,"id":"ownership_transfer_request.html/1","title":"ownership_transfer_request.html(assigns)"},{"anchor":"password_reset_email.html/1","deprecated":false,"id":"password_reset_email.html/1","title":"password_reset_email.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"sentry_link/2","deprecated":false,"id":"sentry_link/2","title":"sentry_link(trace_id, dsn \\\\ Sentry.Config.dsn())"},{"anchor":"site_member_removed.html/1","deprecated":false,"id":"site_member_removed.html/1","title":"site_member_removed.html(assigns)"},{"anchor":"site_setup_help_email.html/1","deprecated":false,"id":"site_setup_help_email.html/1","title":"site_setup_help_email.html(assigns)"},{"anchor":"site_setup_success_email.html/1","deprecated":false,"id":"site_setup_success_email.html/1","title":"site_setup_success_email.html(assigns)"},{"anchor":"spike_notification.html/1","deprecated":false,"id":"spike_notification.html/1","title":"spike_notification.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"trial_one_week_reminder.html/1","deprecated":false,"id":"trial_one_week_reminder.html/1","title":"trial_one_week_reminder.html(assigns)"},{"anchor":"trial_over_email.html/1","deprecated":false,"id":"trial_over_email.html/1","title":"trial_over_email.html(assigns)"},{"anchor":"trial_upgrade_email.html/1","deprecated":false,"id":"trial_upgrade_email.html/1","title":"trial_upgrade_email.html(assigns)"},{"anchor":"welcome_email.html/1","deprecated":false,"id":"welcome_email.html/1","title":"welcome_email.html(assigns)"},{"anchor":"yearly_expiration_notification.html/1","deprecated":false,"id":"yearly_expiration_notification.html/1","title":"yearly_expiration_notification.html(assigns)"},{"anchor":"yearly_renewal_notification.html/1","deprecated":false,"id":"yearly_renewal_notification.html/1","title":"yearly_renewal_notification.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.EmailView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Endpoint","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"broadcast/3","deprecated":false,"id":"broadcast/3","title":"broadcast(topic, event, msg)"},{"anchor":"broadcast!/3","deprecated":false,"id":"broadcast!/3","title":"broadcast!(topic, event, msg)"},{"anchor":"broadcast_from/4","deprecated":false,"id":"broadcast_from/4","title":"broadcast_from(from, topic, event, msg)"},{"anchor":"broadcast_from!/4","deprecated":false,"id":"broadcast_from!/4","title":"broadcast_from!(from, topic, event, msg)"},{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(opts)"},{"anchor":"config/2","deprecated":false,"id":"config/2","title":"config(key, default \\\\ nil)"},{"anchor":"config_change/2","deprecated":false,"id":"config_change/2","title":"config_change(changed, removed)"},{"anchor":"host/0","deprecated":false,"id":"host/0","title":"host()"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"},{"anchor":"local_broadcast/3","deprecated":false,"id":"local_broadcast/3","title":"local_broadcast(topic, event, msg)"},{"anchor":"local_broadcast_from/4","deprecated":false,"id":"local_broadcast_from/4","title":"local_broadcast_from(from, topic, event, msg)"},{"anchor":"patch_session_opts/0","deprecated":false,"id":"patch_session_opts/0","title":"patch_session_opts()"},{"anchor":"path/1","deprecated":false,"id":"path/1","title":"path(path)"},{"anchor":"script_name/0","deprecated":false,"id":"script_name/0","title":"script_name()"},{"anchor":"secure_cookie?/0","deprecated":false,"id":"secure_cookie?/0","title":"secure_cookie?()"},{"anchor":"start_link/1","deprecated":false,"id":"start_link/1","title":"start_link(opts \\\\ [])"},{"anchor":"static_integrity/1","deprecated":false,"id":"static_integrity/1","title":"static_integrity(path)"},{"anchor":"static_lookup/1","deprecated":false,"id":"static_lookup/1","title":"static_lookup(path)"},{"anchor":"static_path/1","deprecated":false,"id":"static_path/1","title":"static_path(path)"},{"anchor":"static_url/0","deprecated":false,"id":"static_url/0","title":"static_url()"},{"anchor":"struct_url/0","deprecated":false,"id":"struct_url/0","title":"struct_url()"},{"anchor":"subscribe/2","deprecated":false,"id":"subscribe/2","title":"subscribe(topic, opts \\\\ [])"},{"anchor":"unsubscribe/1","deprecated":false,"id":"unsubscribe/1","title":"unsubscribe(topic)"},{"anchor":"url/0","deprecated":false,"id":"url/0","title":"url()"},{"anchor":"websocket_url/0","deprecated":false,"id":"websocket_url/0","title":"websocket_url()"}]}],"sections":[],"title":"PlausibleWeb.Endpoint"},{"deprecated":false,"group":"","id":"PlausibleWeb.ErrorHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error_tag/2","deprecated":false,"id":"error_tag/2","title":"error_tag(assigns, field)"},{"anchor":"translate_error/1","deprecated":false,"id":"translate_error/1","title":"translate_error(arg)"}]}],"sections":[],"title":"PlausibleWeb.ErrorHelpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.ErrorReportController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"submit_error_report/2","deprecated":false,"id":"submit_error_report/2","title":"submit_error_report(conn, arg2)"}]}],"sections":[],"title":"PlausibleWeb.ErrorReportController"},{"deprecated":false,"group":"","id":"PlausibleWeb.ErrorView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"404_error.html/1","deprecated":false,"id":"404_error.html/1","title":"404_error.html(assigns)"},{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"generic_error.html/1","deprecated":false,"id":"generic_error.html/1","title":"generic_error.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"server_error.html/1","deprecated":false,"id":"server_error.html/1","title":"server_error.html(assigns)"},{"anchor":"server_error_report_thanks.html/1","deprecated":false,"id":"server_error_report_thanks.html/1","title":"server_error_report_thanks.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"}]}],"sections":[],"title":"PlausibleWeb.ErrorView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Favicon","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, list)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(_)"}]}],"sections":[],"title":"PlausibleWeb.Favicon"},{"deprecated":false,"group":"","id":"PlausibleWeb.FirstLaunchPlug","sections":[],"title":"PlausibleWeb.FirstLaunchPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.FormHelpers","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"styled_error/1","deprecated":false,"id":"styled_error/1","title":"styled_error(error)"},{"anchor":"styled_label/4","deprecated":false,"id":"styled_label/4","title":"styled_label(form, field, text, opts \\\\ [])"},{"anchor":"styled_select/4","deprecated":false,"id":"styled_select/4","title":"styled_select(form, field, options, opts \\\\ [])"},{"anchor":"styled_text_input/3","deprecated":false,"id":"styled_text_input/3","title":"styled_text_input(form, field, opts \\\\ [])"}]}],"sections":[],"title":"PlausibleWeb.FormHelpers"},{"deprecated":false,"group":"","id":"PlausibleWeb.InvitationController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"accept_invitation/2","deprecated":false,"id":"accept_invitation/2","title":"accept_invitation(conn, map)"},{"anchor":"reject_invitation/2","deprecated":false,"id":"reject_invitation/2","title":"reject_invitation(conn, map)"},{"anchor":"remove_invitation/2","deprecated":false,"id":"remove_invitation/2","title":"remove_invitation(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.InvitationController"},{"deprecated":false,"group":"","id":"PlausibleWeb.LastSeenPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.LastSeenPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.LayoutView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"app.html/1","deprecated":false,"id":"app.html/1","title":"app.html(assigns)"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"base_email.html/1","deprecated":false,"id":"base_email.html/1","title":"base_email.html(assigns)"},{"anchor":"base_error.html/1","deprecated":false,"id":"base_error.html/1","title":"base_error.html(assigns)"},{"anchor":"dogfood_domain/1","deprecated":false,"id":"dogfood_domain/1","title":"dogfood_domain(conn)"},{"anchor":"dogfood_script_url/0","deprecated":false,"id":"dogfood_script_url/0","title":"dogfood_script_url()"},{"anchor":"embedded.html/1","deprecated":false,"id":"embedded.html/1","title":"embedded.html(assigns)"},{"anchor":"focus.html/1","deprecated":false,"id":"focus.html/1","title":"focus.html(assigns)"},{"anchor":"grace_period_end/1","deprecated":false,"id":"grace_period_end/1","title":"grace_period_end(user)"},{"anchor":"home_dest/1","deprecated":false,"id":"home_dest/1","title":"home_dest(conn)"},{"anchor":"is_current_tab/2","deprecated":false,"id":"is_current_tab/2","title":"is_current_tab(conn, tab)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"priority_email.html/1","deprecated":false,"id":"priority_email.html/1","title":"priority_email.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"render_layout/3","deprecated":false,"id":"render_layout/3","title":"render_layout(layout, assigns, list)"},{"anchor":"settings_tabs/1","deprecated":false,"id":"settings_tabs/1","title":"settings_tabs(conn)"},{"anchor":"site_settings.html/1","deprecated":false,"id":"site_settings.html/1","title":"site_settings.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"trial_notificaton/1","deprecated":false,"id":"trial_notificaton/1","title":"trial_notificaton(user)"},{"anchor":"websocket_url/0","deprecated":false,"id":"websocket_url/0","title":"websocket_url()"}]}],"sections":[],"title":"PlausibleWeb.LayoutView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Components.ComboBox","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"dropdown/1","deprecated":false,"id":"dropdown/1","title":"dropdown(assigns)"},{"anchor":"dropdown_anchor/1","deprecated":false,"id":"dropdown_anchor/1","title":"dropdown_anchor(assigns)"},{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, params, socket)"},{"anchor":"option/1","deprecated":false,"id":"option/1","title":"option(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"},{"anchor":"select_option/4","deprecated":false,"id":"select_option/4","title":"select_option(js \\\\ %JS{}, id, submit_value, display_value)"},{"anchor":"update/2","deprecated":false,"id":"update/2","title":"update(assigns, socket)"}]}],"sections":[],"title":"PlausibleWeb.Live.Components.ComboBox"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Components.ComboBox.StaticSearch","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"suggest/3","deprecated":false,"id":"suggest/3","title":"suggest(input, choices, opts \\\\ [])"}]}],"sections":[],"title":"PlausibleWeb.Live.Components.ComboBox.StaticSearch"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Components.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error/1","deprecated":false,"id":"error/1","title":"error(assigns)"},{"anchor":"input/1","deprecated":false,"id":"input/1","title":"input(assigns)"},{"anchor":"label/1","deprecated":false,"id":"label/1","title":"label(assigns)"},{"anchor":"password_input_with_strength/1","deprecated":false,"id":"password_input_with_strength/1","title":"password_input_with_strength(assigns)"},{"anchor":"password_length_hint/1","deprecated":false,"id":"password_length_hint/1","title":"password_length_hint(assigns)"},{"anchor":"strength_meter/1","deprecated":false,"id":"strength_meter/1","title":"strength_meter(assigns)"},{"anchor":"translate_error/1","deprecated":false,"id":"translate_error/1","title":"translate_error(arg)"}]}],"sections":[],"title":"PlausibleWeb.Live.Components.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.Flash","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"clear_flash_button/1","deprecated":false,"id":"clear_flash_button/1","title":"clear_flash_button(assigns)"},{"anchor":"flash/1","deprecated":false,"id":"flash/1","title":"flash(assigns)"},{"anchor":"icon_error/1","deprecated":false,"id":"icon_error/1","title":"icon_error(assigns)"},{"anchor":"icon_success/1","deprecated":false,"id":"icon_success/1","title":"icon_success(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.Flash"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.FunnelSettings","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.FunnelSettings"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.FunnelSettings.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_step_button/1","deprecated":false,"id":"add_step_button/1","title":"add_step_button(assigns)"},{"anchor":"evaluation/1","deprecated":false,"id":"evaluation/1","title":"evaluation(assigns)"},{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"remove_step_button/1","deprecated":false,"id":"remove_step_button/1","title":"remove_step_button(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"},{"anchor":"submit_button/1","deprecated":false,"id":"submit_button/1","title":"submit_button(assigns)"},{"anchor":"submit_button_inactive/1","deprecated":false,"id":"submit_button_inactive/1","title":"submit_button_inactive(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.FunnelSettings.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.FunnelSettings.List","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.FunnelSettings.List"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.GoalSettings","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.GoalSettings"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.GoalSettings.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"custom_event_fields/1","deprecated":false,"id":"custom_event_fields/1","title":"custom_event_fields(assigns)"},{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"pageview_fields/1","deprecated":false,"id":"pageview_fields/1","title":"pageview_fields(assigns)"},{"anchor":"pageviews_tab/1","deprecated":false,"id":"pageviews_tab/1","title":"pageviews_tab(assigns)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"},{"anchor":"suggest_page_paths/3","deprecated":false,"id":"suggest_page_paths/3","title":"suggest_page_paths(input, options, site)"},{"anchor":"tabs/1","deprecated":false,"id":"tabs/1","title":"tabs(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.GoalSettings.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.GoalSettings.List","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.GoalSettings.List"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.PropsSettings","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg1, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.PropsSettings"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.PropsSettings.Form","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, arg2, socket)"},{"anchor":"handle_info/2","deprecated":false,"id":"handle_info/2","title":"handle_info(arg, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.PropsSettings.Form"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.PropsSettings.List","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.PropsSettings.List"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.RegisterForm","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, params, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, session, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.RegisterForm"},{"deprecated":false,"group":"","id":"PlausibleWeb.Live.ResetPasswordForm","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"handle_event/3","deprecated":false,"id":"handle_event/3","title":"handle_event(binary, map, socket)"},{"anchor":"mount/3","deprecated":false,"id":"mount/3","title":"mount(params, map, socket)"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Live.ResetPasswordForm"},{"deprecated":false,"group":"","id":"PlausibleWeb.LiveSocket","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"connect/3","deprecated":false,"id":"connect/3","title":"connect(params, socket, info)"},{"anchor":"id/1","deprecated":false,"id":"id/1","title":"id(socket)"}]}],"sections":[],"title":"PlausibleWeb.LiveSocket"},{"deprecated":false,"group":"","id":"PlausibleWeb.MJML.WeeklyReport","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"debug_mjml_template/0","deprecated":false,"id":"debug_mjml_template/0","title":"debug_mjml_template()"},{"anchor":"render/1","deprecated":false,"id":"render/1","title":"render(assigns)"}]}],"sections":[],"title":"PlausibleWeb.MJML.WeeklyReport"},{"deprecated":false,"group":"","id":"PlausibleWeb.PageController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"index/2","deprecated":false,"id":"index/2","title":"index(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.PageController"},{"deprecated":false,"group":"","id":"PlausibleWeb.PageView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"index.html/1","deprecated":false,"id":"index.html/1","title":"index.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"}]}],"sections":[],"title":"PlausibleWeb.PageView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugins.API.Errors","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"error/3","deprecated":false,"id":"error/3","title":"error(conn, status, message)"},{"anchor":"unauthorized/1","deprecated":false,"id":"unauthorized/1","title":"unauthorized(conn)"}]}],"sections":[],"title":"PlausibleWeb.Plugins.API.Errors"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.AuthorizePluginsAPI","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts \\\\ [])"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.Plugs.AuthorizePluginsAPI"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.MaybeDisableRegistration","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.Plugs.MaybeDisableRegistration"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.NoRobots","sections":[],"title":"PlausibleWeb.Plugs.NoRobots"},{"deprecated":false,"group":"","id":"PlausibleWeb.Plugs.RuntimeSessionAdapter","sections":[],"title":"PlausibleWeb.Plugs.RuntimeSessionAdapter"},{"deprecated":false,"group":"","id":"PlausibleWeb.RefInspector","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"parse/1","deprecated":false,"id":"parse/1","title":"parse(ref)"},{"anchor":"right_uri?/1","deprecated":false,"id":"right_uri?/1","title":"right_uri?(arg1)"}]}],"sections":[],"title":"PlausibleWeb.RefInspector"},{"deprecated":false,"group":"","id":"PlausibleWeb.RemoteIp","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"get/1","deprecated":false,"id":"get/1","title":"get(conn)"}]}],"sections":[],"title":"PlausibleWeb.RemoteIp"},{"deprecated":false,"group":"","id":"PlausibleWeb.RequireAccountPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.RequireAccountPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.RequireLoggedOutPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(options)"}]}],"sections":[],"title":"PlausibleWeb.RequireLoggedOutPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.Router","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"api/2","deprecated":false,"id":"api/2","title":"api(conn, _)"},{"anchor":"browser/2","deprecated":false,"id":"browser/2","title":"browser(conn, _)"},{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"csrf/2","deprecated":false,"id":"csrf/2","title":"csrf(conn, _)"},{"anchor":"flags/2","deprecated":false,"id":"flags/2","title":"flags(conn, _)"},{"anchor":"focus_layout/2","deprecated":false,"id":"focus_layout/2","title":"focus_layout(conn, _)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"},{"anchor":"internal_stats_api/2","deprecated":false,"id":"internal_stats_api/2","title":"internal_stats_api(conn, _)"},{"anchor":"kaffy_browser/2","deprecated":false,"id":"kaffy_browser/2","title":"kaffy_browser(conn, _)"},{"anchor":"public_api/2","deprecated":false,"id":"public_api/2","title":"public_api(conn, _)"},{"anchor":"shared_link/2","deprecated":false,"id":"shared_link/2","title":"shared_link(conn, _)"}]}],"sections":[],"title":"PlausibleWeb.Router"},{"deprecated":false,"group":"","id":"PlausibleWeb.SessionTimeoutPlug","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, opts)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts \\\\ [])"}]}],"sections":[],"title":"PlausibleWeb.SessionTimeoutPlug"},{"deprecated":false,"group":"","id":"PlausibleWeb.Site.MembershipController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"invite_member/2","deprecated":false,"id":"invite_member/2","title":"invite_member(conn, map)"},{"anchor":"invite_member_form/2","deprecated":false,"id":"invite_member_form/2","title":"invite_member_form(conn, params)"},{"anchor":"remove_member/2","deprecated":false,"id":"remove_member/2","title":"remove_member(conn, map)"},{"anchor":"transfer_ownership/2","deprecated":false,"id":"transfer_ownership/2","title":"transfer_ownership(conn, map)"},{"anchor":"transfer_ownership_form/2","deprecated":false,"id":"transfer_ownership_form/2","title":"transfer_ownership_form(conn, params)"},{"anchor":"update_role/2","deprecated":false,"id":"update_role/2","title":"update_role(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.Site.MembershipController"},{"deprecated":false,"group":"","id":"PlausibleWeb.Site.MembershipView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"invite_member_form.html/1","deprecated":false,"id":"invite_member_form.html/1","title":"invite_member_form.html(assigns)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"transfer_ownership_form.html/1","deprecated":false,"id":"transfer_ownership_form.html/1","title":"transfer_ownership_form.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.Site.MembershipView"},{"deprecated":false,"group":"","id":"PlausibleWeb.SiteController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"add_monthly_report_recipient/2","deprecated":false,"id":"add_monthly_report_recipient/2","title":"add_monthly_report_recipient(conn, map)"},{"anchor":"add_snippet/2","deprecated":false,"id":"add_snippet/2","title":"add_snippet(conn, params)"},{"anchor":"add_snippet_after_domain_change/2","deprecated":false,"id":"add_snippet_after_domain_change/2","title":"add_snippet_after_domain_change(conn, params)"},{"anchor":"add_spike_notification_recipient/2","deprecated":false,"id":"add_spike_notification_recipient/2","title":"add_spike_notification_recipient(conn, map)"},{"anchor":"add_weekly_report_recipient/2","deprecated":false,"id":"add_weekly_report_recipient/2","title":"add_weekly_report_recipient(conn, map)"},{"anchor":"change_domain/2","deprecated":false,"id":"change_domain/2","title":"change_domain(conn, params)"},{"anchor":"change_domain_submit/2","deprecated":false,"id":"change_domain_submit/2","title":"change_domain_submit(conn, map)"},{"anchor":"create_shared_link/2","deprecated":false,"id":"create_shared_link/2","title":"create_shared_link(conn, map)"},{"anchor":"create_site/2","deprecated":false,"id":"create_site/2","title":"create_site(conn, map)"},{"anchor":"delete_custom_domain/2","deprecated":false,"id":"delete_custom_domain/2","title":"delete_custom_domain(conn, map)"},{"anchor":"delete_google_auth/2","deprecated":false,"id":"delete_google_auth/2","title":"delete_google_auth(conn, params)"},{"anchor":"delete_shared_link/2","deprecated":false,"id":"delete_shared_link/2","title":"delete_shared_link(conn, map)"},{"anchor":"delete_site/2","deprecated":false,"id":"delete_site/2","title":"delete_site(conn, params)"},{"anchor":"disable_monthly_report/2","deprecated":false,"id":"disable_monthly_report/2","title":"disable_monthly_report(conn, params)"},{"anchor":"disable_spike_notification/2","deprecated":false,"id":"disable_spike_notification/2","title":"disable_spike_notification(conn, params)"},{"anchor":"disable_weekly_report/2","deprecated":false,"id":"disable_weekly_report/2","title":"disable_weekly_report(conn, params)"},{"anchor":"edit_shared_link/2","deprecated":false,"id":"edit_shared_link/2","title":"edit_shared_link(conn, map)"},{"anchor":"enable_monthly_report/2","deprecated":false,"id":"enable_monthly_report/2","title":"enable_monthly_report(conn, params)"},{"anchor":"enable_spike_notification/2","deprecated":false,"id":"enable_spike_notification/2","title":"enable_spike_notification(conn, params)"},{"anchor":"enable_weekly_report/2","deprecated":false,"id":"enable_weekly_report/2","title":"enable_weekly_report(conn, params)"},{"anchor":"forget_imported/2","deprecated":false,"id":"forget_imported/2","title":"forget_imported(conn, params)"},{"anchor":"import_from_google/2","deprecated":false,"id":"import_from_google/2","title":"import_from_google(conn, map)"},{"anchor":"import_from_google_confirm/2","deprecated":false,"id":"import_from_google_confirm/2","title":"import_from_google_confirm(conn, map)"},{"anchor":"import_from_google_user_metric_notice/2","deprecated":false,"id":"import_from_google_user_metric_notice/2","title":"import_from_google_user_metric_notice(conn, map)"},{"anchor":"import_from_google_view_id/2","deprecated":false,"id":"import_from_google_view_id/2","title":"import_from_google_view_id(conn, map)"},{"anchor":"import_from_google_view_id_form/2","deprecated":false,"id":"import_from_google_view_id_form/2","title":"import_from_google_view_id_form(conn, map)"},{"anchor":"index/2","deprecated":false,"id":"index/2","title":"index(conn, params)"},{"anchor":"make_private/2","deprecated":false,"id":"make_private/2","title":"make_private(conn, params)"},{"anchor":"make_public/2","deprecated":false,"id":"make_public/2","title":"make_public(conn, params)"},{"anchor":"new/2","deprecated":false,"id":"new/2","title":"new(conn, params)"},{"anchor":"new_shared_link/2","deprecated":false,"id":"new_shared_link/2","title":"new_shared_link(conn, params)"},{"anchor":"remove_monthly_report_recipient/2","deprecated":false,"id":"remove_monthly_report_recipient/2","title":"remove_monthly_report_recipient(conn, map)"},{"anchor":"remove_spike_notification_recipient/2","deprecated":false,"id":"remove_spike_notification_recipient/2","title":"remove_spike_notification_recipient(conn, map)"},{"anchor":"remove_weekly_report_recipient/2","deprecated":false,"id":"remove_weekly_report_recipient/2","title":"remove_weekly_report_recipient(conn, map)"},{"anchor":"reset_stats/2","deprecated":false,"id":"reset_stats/2","title":"reset_stats(conn, params)"},{"anchor":"settings/2","deprecated":false,"id":"settings/2","title":"settings(conn, map)"},{"anchor":"settings_custom_domain/2","deprecated":false,"id":"settings_custom_domain/2","title":"settings_custom_domain(conn, params)"},{"anchor":"settings_danger_zone/2","deprecated":false,"id":"settings_danger_zone/2","title":"settings_danger_zone(conn, params)"},{"anchor":"settings_email_reports/2","deprecated":false,"id":"settings_email_reports/2","title":"settings_email_reports(conn, params)"},{"anchor":"settings_funnels/2","deprecated":false,"id":"settings_funnels/2","title":"settings_funnels(conn, params)"},{"anchor":"settings_general/2","deprecated":false,"id":"settings_general/2","title":"settings_general(conn, params)"},{"anchor":"settings_goals/2","deprecated":false,"id":"settings_goals/2","title":"settings_goals(conn, params)"},{"anchor":"settings_people/2","deprecated":false,"id":"settings_people/2","title":"settings_people(conn, params)"},{"anchor":"settings_props/2","deprecated":false,"id":"settings_props/2","title":"settings_props(conn, params)"},{"anchor":"settings_search_console/2","deprecated":false,"id":"settings_search_console/2","title":"settings_search_console(conn, params)"},{"anchor":"settings_visibility/2","deprecated":false,"id":"settings_visibility/2","title":"settings_visibility(conn, params)"},{"anchor":"update_feature_visibility/2","deprecated":false,"id":"update_feature_visibility/2","title":"update_feature_visibility(conn, map)"},{"anchor":"update_google_auth/2","deprecated":false,"id":"update_google_auth/2","title":"update_google_auth(conn, map)"},{"anchor":"update_settings/2","deprecated":false,"id":"update_settings/2","title":"update_settings(conn, map)"},{"anchor":"update_shared_link/2","deprecated":false,"id":"update_shared_link/2","title":"update_shared_link(conn, map)"},{"anchor":"update_spike_notification/2","deprecated":false,"id":"update_spike_notification/2","title":"update_spike_notification(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.SiteController"},{"deprecated":false,"group":"","id":"PlausibleWeb.SiteView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"change_domain.html/1","deprecated":false,"id":"change_domain.html/1","title":"change_domain.html(assigns)"},{"anchor":"edit_shared_link.html/1","deprecated":false,"id":"edit_shared_link.html/1","title":"edit_shared_link.html(assigns)"},{"anchor":"goal_name/1","deprecated":false,"id":"goal_name/1","title":"goal_name(arg)"},{"anchor":"google_logo/1","deprecated":false,"id":"google_logo/1","title":"google_logo(assigns \\\\ %{})"},{"anchor":"gravatar/2","deprecated":false,"id":"gravatar/2","title":"gravatar(email, opts)"},{"anchor":"import_from_google_confirm.html/1","deprecated":false,"id":"import_from_google_confirm.html/1","title":"import_from_google_confirm.html(assigns)"},{"anchor":"import_from_google_user_metric_form.html/1","deprecated":false,"id":"import_from_google_user_metric_form.html/1","title":"import_from_google_user_metric_form.html(assigns)"},{"anchor":"import_from_google_view_id_form.html/1","deprecated":false,"id":"import_from_google_view_id_form.html/1","title":"import_from_google_view_id_form.html(assigns)"},{"anchor":"index.html/1","deprecated":false,"id":"index.html/1","title":"index.html(assigns)"},{"anchor":"new.html/1","deprecated":false,"id":"new.html/1","title":"new.html(assigns)"},{"anchor":"new_shared_link.html/1","deprecated":false,"id":"new_shared_link.html/1","title":"new_shared_link.html(assigns)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"render_snippet/1","deprecated":false,"id":"render_snippet/1","title":"render_snippet(site)"},{"anchor":"settings_custom_domain.html/1","deprecated":false,"id":"settings_custom_domain.html/1","title":"settings_custom_domain.html(assigns)"},{"anchor":"settings_danger_zone.html/1","deprecated":false,"id":"settings_danger_zone.html/1","title":"settings_danger_zone.html(assigns)"},{"anchor":"settings_email_reports.html/1","deprecated":false,"id":"settings_email_reports.html/1","title":"settings_email_reports.html(assigns)"},{"anchor":"settings_funnels.html/1","deprecated":false,"id":"settings_funnels.html/1","title":"settings_funnels.html(assigns)"},{"anchor":"settings_general.html/1","deprecated":false,"id":"settings_general.html/1","title":"settings_general.html(assigns)"},{"anchor":"settings_goals.html/1","deprecated":false,"id":"settings_goals.html/1","title":"settings_goals.html(assigns)"},{"anchor":"settings_people.html/1","deprecated":false,"id":"settings_people.html/1","title":"settings_people.html(assigns)"},{"anchor":"settings_props.html/1","deprecated":false,"id":"settings_props.html/1","title":"settings_props.html(assigns)"},{"anchor":"settings_search_console.html/1","deprecated":false,"id":"settings_search_console.html/1","title":"settings_search_console.html(assigns)"},{"anchor":"settings_visibility.html/1","deprecated":false,"id":"settings_visibility.html/1","title":"settings_visibility.html(assigns)"},{"anchor":"shared_link_dest/2","deprecated":false,"id":"shared_link_dest/2","title":"shared_link_dest(site, link)"},{"anchor":"snippet.html/1","deprecated":false,"id":"snippet.html/1","title":"snippet.html(assigns)"},{"anchor":"snippet_after_domain_change.html/1","deprecated":false,"id":"snippet_after_domain_change.html/1","title":"snippet_after_domain_change.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"with_indefinite_article/1","deprecated":false,"id":"with_indefinite_article/1","title":"with_indefinite_article(word)"}]}],"sections":[],"title":"PlausibleWeb.SiteView"},{"deprecated":false,"group":"","id":"PlausibleWeb.StatsController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"authenticate_shared_link/2","deprecated":false,"id":"authenticate_shared_link/2","title":"authenticate_shared_link(conn, map)"},{"anchor":"csv_export/2","deprecated":false,"id":"csv_export/2","title":"csv_export(conn, params)"},{"anchor":"shared_link/2","deprecated":false,"id":"shared_link/2","title":"shared_link(conn, arg2)"},{"anchor":"stats/2","deprecated":false,"id":"stats/2","title":"stats(conn, params)"}]}],"sections":[],"title":"PlausibleWeb.StatsController"},{"deprecated":false,"group":"","id":"PlausibleWeb.StatsView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"base_domain/0","deprecated":false,"id":"base_domain/0","title":"base_domain()"},{"anchor":"large_number_format/1","deprecated":false,"id":"large_number_format/1","title":"large_number_format(n)"},{"anchor":"plausible_url/0","deprecated":false,"id":"plausible_url/0","title":"plausible_url()"},{"anchor":"pretty_stats_url/1","deprecated":false,"id":"pretty_stats_url/1","title":"pretty_stats_url(arg)"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"shared_link_password.html/1","deprecated":false,"id":"shared_link_password.html/1","title":"shared_link_password.html(assigns)"},{"anchor":"site_locked.html/1","deprecated":false,"id":"site_locked.html/1","title":"site_locked.html(assigns)"},{"anchor":"stats.html/1","deprecated":false,"id":"stats.html/1","title":"stats.html(assigns)"},{"anchor":"stats_container_class/1","deprecated":false,"id":"stats_container_class/1","title":"stats_container_class(conn)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"},{"anchor":"waiting_first_pageview.html/1","deprecated":false,"id":"waiting_first_pageview.html/1","title":"waiting_first_pageview.html(assigns)"}]}],"sections":[],"title":"PlausibleWeb.StatsView"},{"deprecated":false,"group":"","id":"PlausibleWeb.Tracker","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"call/2","deprecated":false,"id":"call/2","title":"call(conn, list)"},{"anchor":"child_spec/1","deprecated":false,"id":"child_spec/1","title":"child_spec(arg)"},{"anchor":"init/1","deprecated":false,"id":"init/1","title":"init(opts)"}]}],"sections":[],"title":"PlausibleWeb.Tracker"},{"deprecated":false,"group":"","id":"PlausibleWeb.UnsubscribeController","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"monthly_report/2","deprecated":false,"id":"monthly_report/2","title":"monthly_report(conn, map)"},{"anchor":"weekly_report/2","deprecated":false,"id":"weekly_report/2","title":"weekly_report(conn, map)"}]}],"sections":[],"title":"PlausibleWeb.UnsubscribeController"},{"deprecated":false,"group":"","id":"PlausibleWeb.UnsubscribeView","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"__resource__/0","deprecated":false,"id":"__resource__/0","title":"__resource__()"},{"anchor":"render/2","deprecated":false,"id":"render/2","title":"render(template, assigns \\\\ %{})"},{"anchor":"success.html/1","deprecated":false,"id":"success.html/1","title":"success.html(assigns)"},{"anchor":"template_not_found/2","deprecated":false,"id":"template_not_found/2","title":"template_not_found(template, assigns)"}]}],"sections":[],"title":"PlausibleWeb.UnsubscribeView"}],"tasks":[{"deprecated":false,"group":"","id":"Mix.Tasks.CleanClickhouse","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_)"}]}],"sections":[],"title":"mix clean_clickhouse"},{"deprecated":false,"group":"","id":"Mix.Tasks.CreateFreeSubscription","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"execute/1","deprecated":false,"id":"execute/1","title":"execute(user_id)"},{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(arg1)"}]}],"sections":[],"title":"mix create_free_subscription"},{"deprecated":false,"group":"","id":"Mix.Tasks.DownloadCountryDatabase","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_)"}]}],"sections":[],"title":"mix download_country_database"},{"deprecated":false,"group":"","id":"Mix.Tasks.GenerateReferrerFavicons","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(_)"}]}],"sections":[],"title":"mix generate_referrer_favicons"},{"deprecated":false,"group":"","id":"Mix.Tasks.PullSandboxSubscription","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(list)"}]}],"sections":[],"title":"mix pull_sandbox_subscription"},{"deprecated":false,"group":"","id":"Mix.Tasks.SendPageview","nodeGroups":[{"key":"functions","name":"Functions","nodes":[{"anchor":"run/1","deprecated":false,"id":"run/1","title":"run(opts)"}]}],"sections":[],"title":"mix send_pageview"}]}
\ No newline at end of file
diff --git a/readme.html b/readme.html
index 135961d3c..b0ec83c9e 100644
--- a/readme.html
+++ b/readme.html
@@ -13,7 +13,7 @@
-
+
@@ -143,7 +143,7 @@ Plausible
Can Plausible Analytics be self-hosted?
- Plausible is open source web analytics and we have a free as in beer self-hosted solution . Here are the differences between Plausible Analytics managed hosting in the cloud and the self-hosting:
Plausible Cloud Self-Hosting Hosting Easy and convenient. It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us. We manage everything so you don’t have to worry about anything and can focus on your stats. You do it all yourself. You need to get a server and you need to manage your infrastructure. You are responsible for installation, maintenance, upgrades, server capacity, uptime, backup, security, stability, consistency, loading time and so on. Storage All visitor data is exclusively processed on EU-owned cloud infrastructure. We keep your site data on a secure, encrypted and green energy powered server in Germany. This ensures that your site data is protected by the strict European Union data privacy laws and ensures compliance with GDPR. Your website data never leaves the EU. You have full control and can host your instance on any server in any country that you wish. Host it on a server in your basement or host it with any cloud provider wherever you want, even those that are not GDPR compliant. Releases Continuously developed and improved with new features and updates multiple times per week. It's a long term release published twice per year. Selected enterprise features are not available as we aim to ensure a protective barrier around our cloud offering.Raw data You see all your site stats and metrics on our modern-looking, simple to use and fast loading dashboard. You can only see the stats aggregated in the dashboard. You can download the stats using the CSV export , stats API or tools such as the Data Studio Connector . Do you want access to the raw data? Self-hosting gives you that option. You can take the data directly from the ClickHouse database. Premium Support Real support delivered by real human beings who build and maintain Plausible. Premium support is not included. Self-hosting is community supported only. Costs There's a cost associated with providing an analytics service so we charge a subscription fee. We choose the subscription business model rather than the business model of surveillance capitalism. Your money funds further development of Plausible. You need to pay for your server, CDN, backups and whatever other cost there is associated with running the infrastructure. You never have to pay any fees to us. Your money goes to 3rd party companies with no connection to us.
Interested in self-hosting Plausible on your server? Take a look at our self-hosting installation instructions .
Plausible Self-Hosted is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a community supported forum where you can ask for help.
Our only source of funding is our premium, managed service for running Plausible in the cloud. If you're looking for an alternative way to support the project, we've put together some sponsorship packages. If you choose to self-host Plausible you can become a sponsor which is a great way to give back to the community and to contribute to the long-term sustainability of the project.
+ Plausible is open source web analytics and we have a free as in beer self-hosted solution . Here are the differences between Plausible Analytics managed hosting in the cloud and the self-hosting:
Plausible Cloud Self-Hosting Hosting Easy and convenient. It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us. We manage everything so you don’t have to worry about anything and can focus on your stats. You do it all yourself. You need to get a server and you need to manage your infrastructure. You are responsible for installation, maintenance, upgrades, server capacity, uptime, backup, security, stability, consistency, loading time and so on. Storage All visitor data is exclusively processed on EU-owned cloud infrastructure. We keep your site data on a secure, encrypted and green energy powered server in Germany. This ensures that your site data is protected by the strict European Union data privacy laws and ensures compliance with GDPR. Your website data never leaves the EU. You have full control and can host your instance on any server in any country that you wish. Host it on a server in your basement or host it with any cloud provider wherever you want, even those that are not GDPR compliant. Features Continuously developed and improved with new features and updates multiple times per week. It's a long term release published twice per year. Selected premium features are not available as we aim to ensure a protective barrier around our cloud offering.Raw data You see all your site stats and metrics on our modern-looking, simple to use and fast loading dashboard. You can only see the stats aggregated in the dashboard. You can download the stats using the CSV export , stats API or tools such as the Data Studio Connector . Do you want access to the raw data? Self-hosting gives you that option. You can take the data directly from the ClickHouse database. Premium Support Real support delivered by real human beings who build and maintain Plausible. Premium support is not included. Self-hosting is community supported only. Costs There's a cost associated with providing an analytics service so we charge a subscription fee. We choose the subscription business model rather than the business model of surveillance capitalism. Your money funds further development of Plausible. You need to pay for your server, CDN, backups and whatever other cost there is associated with running the infrastructure. You never have to pay any fees to us. Your money goes to 3rd party companies with no connection to us.
Interested in self-hosting Plausible on your server? Take a look at our self-hosting installation instructions .
Plausible Self-Hosted is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a community supported forum where you can ask for help.
Our only source of funding is our premium, managed service for running Plausible in the cloud. If you're looking for an alternative way to support the project, we've put together some sponsorship packages. If you choose to self-host Plausible you can become a sponsor which is a great way to give back to the community and to contribute to the long-term sustainability of the project.
Technology
@@ -162,13 +162,13 @@ database for stats. On the frontend we use Ta
Feedback & Roadmap
-We welcome feedback from our community. We have a public roadmap driven by the features suggested by the community members. Take a look at our feedback board . Please let us know if you have any requests and vote on open issues so we can better prioritize.
To stay up to date with all the latest news and product updates, make sure to follow us on X (formerly Twitter) , LinkedIn or Mastodon .
-
+We welcome feedback from our community. We have a public roadmap driven by the features suggested by the community members. Take a look at our feedback board . Please let us know if you have any requests and vote on open issues so we can better prioritize.
To stay up to date with all the latest news and product updates, make sure to follow us on X (formerly Twitter) , LinkedIn or Mastodon .
+
- License
+ License & Trademarks
-Plausible is open source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can find it here .
To avoid issues with AGPL virality, we've released the JavaScript tracker which gets included on your website under the MIT license. You can find it here .
+Plausible is open source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can find it here .
To avoid issues with AGPL virality, we've released the JavaScript tracker which gets included on your website under the MIT license. You can find it here .
Copyright (c) 2018-present Plausible Insights OÜ. Plausible Analytics name and logo are trademarks of Plausible Insights OÜ. Please see our trademark guidelines for info on acceptable usage.
diff --git a/search.html b/search.html
index 6c2a3d2a0..99cc6a1fa 100644
--- a/search.html
+++ b/search.html
@@ -13,7 +13,7 @@
-
+
@@ -107,7 +107,7 @@ Plausible
-
+