diff --git a/openapi.yaml b/openapi.yaml index f0ee378..cd55f34 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1867,7 +1867,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FeatureLaunch' + $ref: '#/components/schemas/FeatureLaunchWithNotices' "401": $ref: '#/components/responses/Unauthorized' "403": @@ -1970,7 +1970,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FeatureLaunch' + $ref: '#/components/schemas/FeatureLaunchWithNotices' "401": $ref: '#/components/responses/Unauthorized' "403": @@ -2004,7 +2004,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FeatureLaunch' + $ref: '#/components/schemas/FeatureLaunchWithNotices' "401": $ref: '#/components/responses/Unauthorized' "403": @@ -23665,6 +23665,12 @@ components: type: string nullable: true description: The still frame made from the feature's animation, or null until it is made + video_url: + type: string + nullable: true + description: >- + An MP4 of the feature's animation (1920 by 1080, or its crop's shape at 1920 wide, 30 frames a second), to + download for Vimeo, the website or social posts. Null until one is made with `make_video`. announcement_ids: type: array items: @@ -23682,9 +23688,26 @@ components: updated_at: type: string format: date-time + FeatureLaunchWithNotices: + allOf: + - $ref: '#/components/schemas/FeatureLaunch' + - type: object + properties: + notices: + type: array + items: + type: string + description: >- + Empty, unless `make_video` was sent, when it says whether the video is being made or why it can't be + (the launch has no animation). The rest of the change is saved either way. FeatureLaunchInput: type: object properties: + make_video: + type: boolean + description: >- + Make an MP4 of the feature's animation (the one its email GIF is made from) in the background. It takes a + few minutes; `video_url` gives it when it is ready. Making it again replaces the last one. name: type: string maxLength: 80 diff --git a/server.js b/server.js index e1a4994..9856d88 100644 --- a/server.js +++ b/server.js @@ -5545,6 +5545,7 @@ function buildDocsPage() {
A feature launch is one record per Makerble feature holding its launch content: the feature's name as people see it in Makerble (such as Registers), its tier (minor, standard or major), the short_description its announcements show, a longer email_description for the feature launch emails, its links (user_guide_url, blog_url, deep_link, feature_tour_id, intro_key), its email visual (gif, still_frame, image or none) and which of its links the email shows (email_primary_link as the main button and up to two email_text_links).
An announcement for a launch (feature_launch_id on the announcement) shows the launch's short description, User Guide link, deep link and feature tour wherever it has none of its own. System Access users (Makerble staff) only; anyone else gets 403.
Video: send make_video: true on a create or update to make an MP4 of the feature's animation (the one its email GIF is made from) in the background: 1920 by 1080, or the shape of an illustration storyboard's crop at 1920 wide, 30 frames a second, the finished picture's hold and then one loop. It takes a few minutes. The response's notices says whether it is being made, or why it can't be (the launch has no animation), and video_url gives it once it is ready. Making it again replaces the last one.
name (required, unique), tier, short_description (up to 280), email_description (2 to 4 sentences, up to 600), user_guide_url (a Makerble User Guide page), blog_url (https), deep_link (a name from List Deep Links), feature_tour_id, intro_key, email_visual, email_visual_alt (required unless the visual is none), email_image (for image: a file in a multipart/form-data request, or {filename, data} in base64), email_primary_link and email_text_links (each deep_link, tour, user_guide or blog, one the launch has), jira_keys, released_on.")}
+ ], "Body: name (required, unique), tier, short_description (up to 280), email_description (2 to 4 sentences, up to 600), user_guide_url (a Makerble User Guide page), blog_url (https), deep_link (a name from List Deep Links), feature_tour_id, intro_key, email_visual, email_visual_alt (required unless the visual is none), email_image (for image: a file in a multipart/form-data request, or {filename, data} in base64), email_primary_link and email_text_links (each deep_link, tour, user_guide or blog, one the launch has), jira_keys, released_on, make_video (true to make the video, see above).")}
${endpointCard("PATCH", "/feature_launches/{id}", "Update a feature launch", true, [
{ name: "id", in: "path", type: "integer", required: true, desc: "Feature launch ID" }
], [
@@ -5575,7 +5576,7 @@ function buildDocsPage() {
{ code: "403", cls: "response-4xx", desc: "The user doesn't have System Access" },
{ code: "404", cls: "response-4xx", desc: "Not found" },
{ code: "422", cls: "response-4xx", desc: "Validation failed" }
- ], "Only the fields sent change; null or an empty string clears one. jira_keys and email_text_links replace the whole list. A new email_image replaces the saved one, and changing email_visual away from image removes it.")}
+ ], "Only the fields sent change; null or an empty string clears one. jira_keys and email_text_links replace the whole list. A new email_image replaces the saved one, and changing email_visual away from image removes it. make_video: true makes the video again (see above).")}
${endpointCard("POST", "/feature_launches/email_preview", "Preview the feature launch email", true, [], [
{ code: "200", cls: "response-2xx", desc: "subject, to, and the html and plain-text (text) versions. Nothing is sent" },
{ code: "403", cls: "response-4xx", desc: "The user doesn't have System Access" },