Ghost/ghost/stats-service
Fabien "egg" O'Carroll 8a82bee978 Added metadata to subscriptions count history data
refs https://github.com/TryGhost/Team/issues/1466

We need to include an exhaustive list of tiers and cadences in the
metadata so that clients knows which data to expect, as we have multiple
rows for a single date, broken down by tier/cadence.

We also include the totals broken down by tier/cadence for use with the
paid mix chart.
2022-04-25 09:47:49 +01:00
..
lib Added metadata to subscriptions count history data 2022-04-25 09:47:49 +01:00
test Added subscription stats service (#2) 2022-04-21 15:42:02 +01:00
.eslintrc.js Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
index.js Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
LICENSE Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
package.json Published new versions 2022-04-21 15:42:46 +01:00
README.md Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
tsconfig.json Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00

Stats

Stats service

Install

npm install @tryghost/stats --save

or

yarn add @tryghost/stats

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.