mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added welcome_page_url to Products API
refs https://github.com/TryGhost/Team/issues/1168 This updates the JSON API Schema to allow for the welcome_page_url property, as well as including the new column in API responses, so that we can both read and write the value via the API.
This commit is contained in:
parent
b917c17ce8
commit
4f5257859d
3 changed files with 7 additions and 5 deletions
|
@ -75,6 +75,7 @@ function serializeProduct(product, options, apiType) {
|
|||
slug: json.slug,
|
||||
active: json.active,
|
||||
type: json.type,
|
||||
welcome_page_url: json.welcome_page_url,
|
||||
created_at: json.created_at,
|
||||
updated_at: json.updated_at,
|
||||
stripe_prices: json.stripePrices ? json.stripePrices.map(price => serializeStripePrice(price, hideStripeData)) : null,
|
||||
|
@ -164,6 +165,7 @@ function createSerializer(debugString, serialize) {
|
|||
* @prop {string} description
|
||||
* @prop {boolean} active
|
||||
* @prop {string} type
|
||||
* @prop {string} welcome_page_url
|
||||
* @prop {Date} created_at
|
||||
* @prop {Date} updated_at
|
||||
* @prop {StripePrice[]} [stripe_prices]
|
||||
|
|
|
@ -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.7.0",
|
||||
"@tryghost/admin-api-schema": "2.8.0",
|
||||
"@tryghost/bookshelf-plugins": "0.3.7",
|
||||
"@tryghost/bootstrap-socket": "0.2.16",
|
||||
"@tryghost/color-utils": "0.1.6",
|
||||
|
|
|
@ -1128,10 +1128,10 @@
|
|||
dependencies:
|
||||
"@tryghost/errors" "^1.2.1"
|
||||
|
||||
"@tryghost/admin-api-schema@2.7.0":
|
||||
version "2.7.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/admin-api-schema/-/admin-api-schema-2.7.0.tgz#eebe64987a9957d5c12224eaffbaee2feba960f9"
|
||||
integrity sha512-Y+QDM/M6iV1uXDiQKNxh62e0tiqYQ/QK9pphY6PnNZOAWWMki9L/Oc2MsscfxyGBr0jAW8aDxsUGJObVGwS1Cg==
|
||||
"@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==
|
||||
dependencies:
|
||||
"@tryghost/errors" "^0.2.10"
|
||||
lodash "^4.17.11"
|
||||
|
|
Loading…
Add table
Reference in a new issue