@tryghost/admin-api-schema 3.2.3 → 4.0.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/lib/schemas/tiers.json +6 -67
- package/package.json +3 -3
package/lib/schemas/tiers.json
CHANGED
|
@@ -32,83 +32,22 @@
|
|
|
32
32
|
"type": "string",
|
|
33
33
|
"enum": ["public", "none"]
|
|
34
34
|
},
|
|
35
|
+
"currency": {
|
|
36
|
+
"type": ["string", "null"]
|
|
37
|
+
},
|
|
35
38
|
"monthly_price": {
|
|
36
|
-
"
|
|
39
|
+
"type": ["number", "null"]
|
|
37
40
|
},
|
|
38
41
|
"yearly_price": {
|
|
39
|
-
"
|
|
42
|
+
"type": ["number", "null"]
|
|
40
43
|
},
|
|
41
44
|
"benefits": {
|
|
42
45
|
"type": ["array", "null"],
|
|
43
46
|
"items": {
|
|
44
|
-
"
|
|
47
|
+
"type": "string"
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
|
-
},
|
|
49
|
-
"tier-price": {
|
|
50
|
-
"description": "A Stripe Price associated with a Tier",
|
|
51
|
-
"type": ["object", "null"],
|
|
52
|
-
"properties": {
|
|
53
|
-
"id": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"maxLength": 24
|
|
56
|
-
},
|
|
57
|
-
"stripe_product_id": {
|
|
58
|
-
"type": ["string", "null"],
|
|
59
|
-
"maxLength": 255
|
|
60
|
-
},
|
|
61
|
-
"stripe_price_id": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"maxLength": 255
|
|
64
|
-
},
|
|
65
|
-
"nickname": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"maxLength": 50
|
|
68
|
-
},
|
|
69
|
-
"currency": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"maxLength": 3
|
|
72
|
-
},
|
|
73
|
-
"amount": {
|
|
74
|
-
"type": "number"
|
|
75
|
-
},
|
|
76
|
-
"active": {
|
|
77
|
-
"type": "boolean",
|
|
78
|
-
"default": true
|
|
79
|
-
},
|
|
80
|
-
"type": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"enum": ["recurring", "one_time"]
|
|
83
|
-
},
|
|
84
|
-
"interval": {
|
|
85
|
-
"type": ["string", "null"],
|
|
86
|
-
"enum": ["year", "month", "week", "day"]
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"tier-benefit": {
|
|
91
|
-
"description": "A Benefit associated with a Tier",
|
|
92
|
-
"type": "object",
|
|
93
|
-
"properties": {
|
|
94
|
-
"id": {
|
|
95
|
-
"type": "string",
|
|
96
|
-
"maxLength": 24
|
|
97
|
-
},
|
|
98
|
-
"name": {
|
|
99
|
-
"type": "string",
|
|
100
|
-
"maxLength": 191
|
|
101
|
-
},
|
|
102
|
-
"slug": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"maxLength": 191
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"anyOf": [
|
|
108
|
-
{ "required": ["id"] },
|
|
109
|
-
{ "required": ["name"] },
|
|
110
|
-
{ "required": ["slug"] }
|
|
111
|
-
]
|
|
112
51
|
}
|
|
113
52
|
}
|
|
114
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/admin-api-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api-schema",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"c8": "7.11.
|
|
22
|
+
"c8": "7.11.3",
|
|
23
23
|
"mocha": "10.0.0",
|
|
24
24
|
"should": "13.2.3",
|
|
25
25
|
"sinon": "14.0.0"
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"ajv": "^6.12.6",
|
|
30
30
|
"lodash": "^4.17.11"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "31e2a37039377b1c785be278a78085cbf0a494f1"
|
|
33
33
|
}
|