@tryghost/admin-api-schema 2.5.1 → 2.7.0
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.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/lib/canary/index.js +1 -0
- package/lib/canary/media-upload.json +7 -0
- package/lib/canary/media.json +18 -0
- package/lib/canary/posts.json +4 -1
- package/lib/canary/products.json +3 -0
- package/package.json +4 -4
package/LICENSE
CHANGED
package/README.md
CHANGED
package/lib/canary/index.js
CHANGED
|
@@ -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
|
+
}
|
package/lib/canary/posts.json
CHANGED
|
@@ -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/lib/canary/products.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/admin-api-schema",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
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 c8 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,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"c8": "7.
|
|
21
|
+
"c8": "7.11.0",
|
|
22
22
|
"mocha": "7.2.0",
|
|
23
23
|
"should": "13.2.3",
|
|
24
24
|
"sinon": "9.2.4"
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@tryghost/errors": "^0.2.10",
|
|
28
28
|
"lodash": "^4.17.11"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "fd46ea76699b5f56bb9cd5dfbcd2095ff3863387"
|
|
31
31
|
}
|