@tryghost/admin-api-schema 2.6.0 → 2.9.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/pages.json +37 -0
- package/lib/canary/posts.json +37 -0
- package/lib/canary/products.json +7 -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/pages.json
CHANGED
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
"visibility_filter": {
|
|
56
56
|
"type": ["string", "null"]
|
|
57
57
|
},
|
|
58
|
+
"tiers": {
|
|
59
|
+
"$ref": "#/definitions/page-products"
|
|
60
|
+
},
|
|
58
61
|
"meta_title": {
|
|
59
62
|
"type": ["string", "null"],
|
|
60
63
|
"maxLength": 300
|
|
@@ -168,6 +171,40 @@
|
|
|
168
171
|
}
|
|
169
172
|
}
|
|
170
173
|
},
|
|
174
|
+
"page-products": {
|
|
175
|
+
"description": "Products of the post",
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": {
|
|
178
|
+
"anyOf": [
|
|
179
|
+
{
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"id": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"maxLength": 24
|
|
185
|
+
},
|
|
186
|
+
"name": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"maxLength": 191
|
|
189
|
+
},
|
|
190
|
+
"slug": {
|
|
191
|
+
"type": ["string", "null"],
|
|
192
|
+
"maxLength": 191
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"anyOf": [
|
|
196
|
+
{ "required": ["id"] },
|
|
197
|
+
{ "required": ["name"] },
|
|
198
|
+
{ "required": ["slug"] }
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "string",
|
|
203
|
+
"maxLength": 191
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
171
208
|
"page-authors": {
|
|
172
209
|
"description": "Authors of the page",
|
|
173
210
|
"type": "array",
|
package/lib/canary/posts.json
CHANGED
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
"visibility_filter": {
|
|
56
56
|
"type": ["string", "null"]
|
|
57
57
|
},
|
|
58
|
+
"tiers": {
|
|
59
|
+
"$ref": "#/definitions/post-products"
|
|
60
|
+
},
|
|
58
61
|
"meta_title": {
|
|
59
62
|
"type": ["string", "null"],
|
|
60
63
|
"maxLength": 300
|
|
@@ -190,6 +193,40 @@
|
|
|
190
193
|
}
|
|
191
194
|
}
|
|
192
195
|
},
|
|
196
|
+
"post-products": {
|
|
197
|
+
"description": "Products of the post",
|
|
198
|
+
"type": "array",
|
|
199
|
+
"items": {
|
|
200
|
+
"anyOf": [
|
|
201
|
+
{
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"id": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"maxLength": 24
|
|
207
|
+
},
|
|
208
|
+
"name": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"maxLength": 191
|
|
211
|
+
},
|
|
212
|
+
"slug": {
|
|
213
|
+
"type": ["string", "null"],
|
|
214
|
+
"maxLength": 191
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"anyOf": [
|
|
218
|
+
{ "required": ["id"] },
|
|
219
|
+
{ "required": ["name"] },
|
|
220
|
+
{ "required": ["slug"] }
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "string",
|
|
225
|
+
"maxLength": 191
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
},
|
|
193
230
|
"post-authors": {
|
|
194
231
|
"description": "Authors of the post",
|
|
195
232
|
"type": "array",
|
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.9.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": "87eafa37844bc1f4fc7a139b876aed73e175a4bb"
|
|
31
31
|
}
|