mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 10:02:10 +03:00
d22c011aa3
* Refactor MembershipController.invite_member/2 This commit refactors the controller action used for creating new invitations. It moves the code to Plausible.Sites.invite/4 and replaces `ifs` and `cases` with `with`. * Add team_member_limit to plan definition * Create usage and limits functions for team members * Apply team member limit when inviting new users * Add team members to Usage & Limits section * Change invite function to receive email address instead of %User{} * Wrap invite function in a DB transaction * Remove unnecessary joins from team member usage query * Replace UNION ALL with UNION to remove duplicates
103 lines
2.4 KiB
JSON
103 lines
2.4 KiB
JSON
[
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":10000,
|
|
"monthly_cost":"$6",
|
|
"monthly_product_id":"558018",
|
|
"yearly_cost":"$48",
|
|
"yearly_product_id":"572810",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":100000,
|
|
"monthly_cost":"$12",
|
|
"monthly_product_id":"558745",
|
|
"yearly_cost":"$96",
|
|
"yearly_product_id":"590752",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":200000,
|
|
"monthly_cost":"$18",
|
|
"monthly_product_id":"597485",
|
|
"yearly_cost":"$144",
|
|
"yearly_product_id":"597486",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":500000,
|
|
"monthly_cost":"$27",
|
|
"monthly_product_id":"597487",
|
|
"yearly_cost":"$216",
|
|
"yearly_product_id":"597488",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":1000000,
|
|
"monthly_cost":"$48",
|
|
"monthly_product_id":"597642",
|
|
"yearly_cost":"$384",
|
|
"yearly_product_id":"597643",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":2000000,
|
|
"monthly_cost":"$69",
|
|
"monthly_product_id":"597309",
|
|
"yearly_cost":"$552",
|
|
"yearly_product_id":"597310",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":5000000,
|
|
"monthly_cost":"$99",
|
|
"monthly_product_id":"597311",
|
|
"yearly_cost":"$792",
|
|
"yearly_product_id":"597312",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":10000000,
|
|
"monthly_cost":"$150",
|
|
"monthly_product_id":"642352",
|
|
"yearly_cost":"$1200",
|
|
"yearly_product_id":"642354",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":20000000,
|
|
"monthly_cost":"$225",
|
|
"monthly_product_id":"642355",
|
|
"yearly_cost":"$1800",
|
|
"yearly_product_id":"642356",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
},
|
|
{
|
|
"kind":"growth",
|
|
"monthly_pageview_limit":50000000,
|
|
"monthly_cost":"$330",
|
|
"monthly_product_id":"650652",
|
|
"yearly_cost":"$2640",
|
|
"yearly_product_id":"650653",
|
|
"site_limit":50,
|
|
"team_member_limit":"unlimited"
|
|
}
|
|
]
|