@tryghost/admin-api-schema 2.5.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  module.exports = [
2
2
  'images-upload',
3
+ 'media-upload',
3
4
  'labels-add',
4
5
  'labels-edit',
5
6
  'members-add',
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "media.upload.canary",
4
+ "title": "media.upload",
5
+ "description": "Schema for media.upload",
6
+ "$ref": "media.canary#/definitions/media"
7
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "media.canary",
4
+ "title": "media",
5
+ "description": "Base media definitions",
6
+ "definitions": {
7
+ "image": {
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "ref": {
12
+ "type": ["string", "null"],
13
+ "maxLength": 2000
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "status": {
45
45
  "type": "string",
46
- "enum": ["published", "draft", "scheduled"]
46
+ "enum": ["published", "draft", "scheduled", "sent"]
47
47
  },
48
48
  "locale": {
49
49
  "type": ["string", "null"],
@@ -122,6 +122,9 @@
122
122
  "format": "uri-reference",
123
123
  "maxLength": 2000
124
124
  },
125
+ "email_only": {
126
+ "type": "boolean"
127
+ },
125
128
  "authors": {
126
129
  "$ref": "#/definitions/post-authors"
127
130
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@tryghost/admin-api-schema",
3
- "version": "2.5.0",
3
+ "version": "2.6.1",
4
4
  "repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api-schema",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
7
7
  "main": "lib/index.js",
8
8
  "scripts": {
9
9
  "dev": "echo \"Implement me!\"",
10
- "test": "NODE_ENV=testing mocha './test/**/*.test.js'",
10
+ "test": "NODE_ENV=testing c8 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
11
11
  "lint": "eslint . --ext .js --cache",
12
12
  "posttest": "yarn lint"
13
13
  },
@@ -18,6 +18,7 @@
18
18
  "access": "public"
19
19
  },
20
20
  "devDependencies": {
21
+ "c8": "7.10.0",
21
22
  "mocha": "7.2.0",
22
23
  "should": "13.2.3",
23
24
  "sinon": "9.2.4"
@@ -26,5 +27,5 @@
26
27
  "@tryghost/errors": "^0.2.10",
27
28
  "lodash": "^4.17.11"
28
29
  },
29
- "gitHead": "f9fa8339dd67acf2e81b619410da92b4a7ef5b03"
30
+ "gitHead": "93b42d8e27b3d8bd73fe17e200b5e9afe09dffa2"
30
31
  }