0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Updated admin api schema to include tiers for post/page

refs TryGhost/Team#1071

- new `tiers` key is now attached to posts/pages API response to include tiers visibility
- updates expected response for post/page in tests to include `tiers`
This commit is contained in:
Rishabh 2022-01-31 13:19:46 +05:30 committed by Rishabh Garg
parent 64721150a9
commit c530ac2a92
3 changed files with 7 additions and 6 deletions

View file

@ -56,7 +56,7 @@
"@nexes/nql": "0.6.0",
"@sentry/node": "6.17.3",
"@tryghost/adapter-manager": "0.2.27",
"@tryghost/admin-api-schema": "2.8.0",
"@tryghost/admin-api-schema": "2.9.0",
"@tryghost/bookshelf-plugins": "0.3.7",
"@tryghost/bootstrap-socket": "0.2.16",
"@tryghost/color-utils": "0.1.7",

View file

@ -64,7 +64,8 @@ const expectedProperties = {
'meta_description',
'email_subject',
'frontmatter',
'email_only'
'email_only',
'tiers'
],
user: [
'id',

View file

@ -1156,10 +1156,10 @@
dependencies:
"@tryghost/errors" "^1.2.1"
"@tryghost/admin-api-schema@2.8.0":
version "2.8.0"
resolved "https://registry.yarnpkg.com/@tryghost/admin-api-schema/-/admin-api-schema-2.8.0.tgz#5a069b962b49cf509b0a2f9f2d4defb99489de71"
integrity sha512-ATWhJ6QErOxwq3RIIg3HqABMk4OpwZVUjgJgDit3c8wR58qzikEsAPFqgg5kQcA/1xgC97TSynNPCGALYJQw1g==
"@tryghost/admin-api-schema@2.9.0":
version "2.9.0"
resolved "https://registry.yarnpkg.com/@tryghost/admin-api-schema/-/admin-api-schema-2.9.0.tgz#8dbc9e1f320d94c1f404126f3a907e6984a1b28e"
integrity sha512-Tv/Obr40IU5k2XmUrN+K7kSub2VQMMnjLQZfwAiMRvUAahKa/rYKunIB1UKgTjd57WdHJncYRbO9UcPoRLn+nQ==
dependencies:
"@tryghost/errors" "^0.2.10"
lodash "^4.17.11"