From c530ac2a92c9c25a7ab351572715481f70007ae8 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 31 Jan 2022 13:19:46 +0530 Subject: [PATCH] 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` --- package.json | 2 +- test/regression/api/canary/admin/utils.js | 3 ++- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e23b893886..2628e33a6c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/regression/api/canary/admin/utils.js b/test/regression/api/canary/admin/utils.js index 3c42b2e97b..0c14729104 100644 --- a/test/regression/api/canary/admin/utils.js +++ b/test/regression/api/canary/admin/utils.js @@ -64,7 +64,8 @@ const expectedProperties = { 'meta_description', 'email_subject', 'frontmatter', - 'email_only' + 'email_only', + 'tiers' ], user: [ 'id', diff --git a/yarn.lock b/yarn.lock index 1e224a4d34..38fc759b59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"