Ghost/ghost/offers
Fabien O'Carroll 96e87d6798 Ensured that Offers can be filtered on status
refs https://github.com/TryGhost/Team/issues/1131

This adds a mapping between the status property used in the domain & API
and the active column used in the database. As we only have the usecase
of filtering by `status` right now, we have not added support for all
the other columns. Instead of these potentially erroring where the
column name does not match the property name in the domain/api - we've
added a transformer which will ignore all filters for properties other
than `status`. This follows postels law, in that we can be liberal with
the filters we accept, but conservative in the ones we implement.
2021-10-12 18:36:04 +02:00
..
lib Ensured that Offers can be filtered on status 2021-10-12 18:36:04 +02:00
test Added initial Offers module 2021-10-05 11:19:15 +02:00
.eslintrc.js Added initial Offers module 2021-10-05 11:19:15 +02:00
index.js Updated Offer to only change code once 2021-10-08 13:02:22 +02:00
jsconfig.json Added initial Offers module 2021-10-05 11:19:15 +02:00
LICENSE Added initial Offers module 2021-10-05 11:19:15 +02:00
package.json Installed @nexes/mongo-utils 2021-10-12 18:32:48 +02:00
README.md Added initial Offers module 2021-10-05 11:19:15 +02:00

Offers

Install

npm install @tryghost/offers --save

or

yarn add @tryghost/offers

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