@tryghost/admin-api-schema 2.8.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.
@@ -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",
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/admin-api-schema",
3
- "version": "2.8.0",
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",
@@ -27,5 +27,5 @@
27
27
  "@tryghost/errors": "^0.2.10",
28
28
  "lodash": "^4.17.11"
29
29
  },
30
- "gitHead": "d82e1de0669479d003f17dab743c173290de524f"
30
+ "gitHead": "87eafa37844bc1f4fc7a139b876aed73e175a4bb"
31
31
  }