@hozu/cli 0.1.0 → 0.3.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.
@@ -0,0 +1,383 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/MapOutput",
4
+ "definitions": {
5
+ "MapOutput": {
6
+ "type": "object",
7
+ "properties": {
8
+ "routes": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "#/definitions/MapRoute"
12
+ }
13
+ },
14
+ "features": {
15
+ "type": "array",
16
+ "items": {
17
+ "$ref": "#/definitions/MapFeature"
18
+ }
19
+ }
20
+ },
21
+ "required": [
22
+ "routes",
23
+ "features"
24
+ ],
25
+ "additionalProperties": false
26
+ },
27
+ "MapRoute": {
28
+ "type": "object",
29
+ "properties": {
30
+ "id": {
31
+ "type": "string"
32
+ },
33
+ "path": {
34
+ "type": "string"
35
+ },
36
+ "search": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "views": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "head": {
49
+ "type": [
50
+ "string",
51
+ "null"
52
+ ]
53
+ },
54
+ "at": {
55
+ "type": [
56
+ "string",
57
+ "null"
58
+ ]
59
+ }
60
+ },
61
+ "required": [
62
+ "id",
63
+ "path",
64
+ "search",
65
+ "views",
66
+ "head",
67
+ "at"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "MapFeature": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "queries": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "object",
81
+ "properties": {
82
+ "name": {
83
+ "type": "string"
84
+ },
85
+ "scope": {
86
+ "type": "string"
87
+ },
88
+ "freshness": {
89
+ "type": "string"
90
+ },
91
+ "errors": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "string"
95
+ }
96
+ },
97
+ "tags": {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "at": {
104
+ "type": [
105
+ "string",
106
+ "null"
107
+ ]
108
+ }
109
+ },
110
+ "required": [
111
+ "name",
112
+ "scope",
113
+ "freshness",
114
+ "errors",
115
+ "tags",
116
+ "at"
117
+ ],
118
+ "additionalProperties": false
119
+ }
120
+ },
121
+ "mutations": {
122
+ "type": "array",
123
+ "items": {
124
+ "type": "object",
125
+ "properties": {
126
+ "name": {
127
+ "type": "string"
128
+ },
129
+ "errors": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string"
133
+ }
134
+ },
135
+ "invalidates": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "string"
139
+ }
140
+ },
141
+ "at": {
142
+ "type": [
143
+ "string",
144
+ "null"
145
+ ]
146
+ }
147
+ },
148
+ "required": [
149
+ "name",
150
+ "errors",
151
+ "invalidates",
152
+ "at"
153
+ ],
154
+ "additionalProperties": false
155
+ }
156
+ },
157
+ "events": {
158
+ "type": "array",
159
+ "items": {
160
+ "type": "object",
161
+ "properties": {
162
+ "name": {
163
+ "type": "string"
164
+ },
165
+ "fields": {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "string"
169
+ }
170
+ },
171
+ "at": {
172
+ "type": [
173
+ "string",
174
+ "null"
175
+ ]
176
+ }
177
+ },
178
+ "required": [
179
+ "name",
180
+ "fields",
181
+ "at"
182
+ ],
183
+ "additionalProperties": false
184
+ }
185
+ },
186
+ "fns": {
187
+ "type": "array",
188
+ "items": {
189
+ "type": "string"
190
+ }
191
+ },
192
+ "context": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "string"
196
+ }
197
+ },
198
+ "machineAt": {
199
+ "type": [
200
+ "string",
201
+ "null"
202
+ ]
203
+ },
204
+ "states": {
205
+ "type": "array",
206
+ "items": {
207
+ "$ref": "#/definitions/MapState"
208
+ }
209
+ },
210
+ "views": {
211
+ "type": "array",
212
+ "items": {
213
+ "type": "object",
214
+ "properties": {
215
+ "name": {
216
+ "type": "string"
217
+ },
218
+ "machine": {
219
+ "type": "boolean"
220
+ },
221
+ "route": {
222
+ "type": [
223
+ "string",
224
+ "null"
225
+ ]
226
+ },
227
+ "at": {
228
+ "type": [
229
+ "string",
230
+ "null"
231
+ ]
232
+ }
233
+ },
234
+ "required": [
235
+ "name",
236
+ "machine",
237
+ "route",
238
+ "at"
239
+ ],
240
+ "additionalProperties": false
241
+ }
242
+ },
243
+ "contracts": {
244
+ "type": "number"
245
+ },
246
+ "contractsAt": {
247
+ "type": [
248
+ "string",
249
+ "null"
250
+ ]
251
+ }
252
+ },
253
+ "required": [
254
+ "id",
255
+ "queries",
256
+ "mutations",
257
+ "events",
258
+ "fns",
259
+ "context",
260
+ "machineAt",
261
+ "states",
262
+ "views",
263
+ "contracts",
264
+ "contractsAt"
265
+ ],
266
+ "additionalProperties": false
267
+ },
268
+ "MapState": {
269
+ "type": "object",
270
+ "properties": {
271
+ "name": {
272
+ "type": "string"
273
+ },
274
+ "initial": {
275
+ "type": "boolean"
276
+ },
277
+ "final": {
278
+ "type": "boolean"
279
+ },
280
+ "on": {
281
+ "type": "array",
282
+ "items": {
283
+ "type": "object",
284
+ "properties": {
285
+ "event": {
286
+ "type": "string"
287
+ },
288
+ "targets": {
289
+ "type": "array",
290
+ "items": {
291
+ "type": "string"
292
+ }
293
+ }
294
+ },
295
+ "required": [
296
+ "event",
297
+ "targets"
298
+ ],
299
+ "additionalProperties": false
300
+ }
301
+ },
302
+ "invoke": {
303
+ "anyOf": [
304
+ {
305
+ "type": "object",
306
+ "properties": {
307
+ "effect": {
308
+ "type": "string"
309
+ },
310
+ "done": {
311
+ "type": "array",
312
+ "items": {
313
+ "type": "string"
314
+ }
315
+ },
316
+ "failed": {
317
+ "type": "object",
318
+ "additionalProperties": {
319
+ "type": "array",
320
+ "items": {
321
+ "type": "string"
322
+ }
323
+ }
324
+ }
325
+ },
326
+ "required": [
327
+ "effect",
328
+ "done",
329
+ "failed"
330
+ ],
331
+ "additionalProperties": false
332
+ },
333
+ {
334
+ "type": "null"
335
+ }
336
+ ]
337
+ },
338
+ "ignore": {
339
+ "type": "array",
340
+ "items": {
341
+ "type": "string"
342
+ }
343
+ },
344
+ "after": {
345
+ "type": "array",
346
+ "items": {
347
+ "type": "object",
348
+ "properties": {
349
+ "ms": {
350
+ "type": "number"
351
+ },
352
+ "target": {
353
+ "type": "string"
354
+ }
355
+ },
356
+ "required": [
357
+ "ms",
358
+ "target"
359
+ ],
360
+ "additionalProperties": false
361
+ }
362
+ },
363
+ "at": {
364
+ "type": [
365
+ "string",
366
+ "null"
367
+ ]
368
+ }
369
+ },
370
+ "required": [
371
+ "name",
372
+ "initial",
373
+ "final",
374
+ "on",
375
+ "invoke",
376
+ "ignore",
377
+ "after",
378
+ "at"
379
+ ],
380
+ "additionalProperties": false
381
+ }
382
+ }
383
+ }
@@ -0,0 +1,144 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/RequestOutput",
4
+ "definitions": {
5
+ "RequestOutput": {
6
+ "type": "object",
7
+ "properties": {
8
+ "steps": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "#/definitions/RequestStep"
12
+ }
13
+ }
14
+ },
15
+ "required": [
16
+ "steps"
17
+ ],
18
+ "additionalProperties": false
19
+ },
20
+ "RequestStep": {
21
+ "type": "object",
22
+ "properties": {
23
+ "method": {
24
+ "type": "string",
25
+ "enum": [
26
+ "GET",
27
+ "POST"
28
+ ]
29
+ },
30
+ "path": {
31
+ "type": "string"
32
+ },
33
+ "status": {
34
+ "type": "number"
35
+ },
36
+ "location": {
37
+ "type": [
38
+ "string",
39
+ "null"
40
+ ]
41
+ },
42
+ "title": {
43
+ "type": [
44
+ "string",
45
+ "null"
46
+ ]
47
+ },
48
+ "alerts": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "text": {
55
+ "type": [
56
+ "string",
57
+ "null"
58
+ ]
59
+ },
60
+ "truncated": {
61
+ "type": "boolean"
62
+ },
63
+ "elements": {
64
+ "type": "array",
65
+ "items": {
66
+ "$ref": "#/definitions/RequestElement"
67
+ }
68
+ },
69
+ "forms": {
70
+ "type": "array",
71
+ "items": {
72
+ "$ref": "#/definitions/RequestForm"
73
+ }
74
+ }
75
+ },
76
+ "required": [
77
+ "method",
78
+ "path",
79
+ "status",
80
+ "location",
81
+ "title",
82
+ "alerts",
83
+ "text",
84
+ "truncated",
85
+ "elements",
86
+ "forms"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "RequestElement": {
91
+ "type": "object",
92
+ "properties": {
93
+ "selector": {
94
+ "type": "string"
95
+ },
96
+ "tag": {
97
+ "type": "string"
98
+ },
99
+ "attrs": {
100
+ "type": "object",
101
+ "additionalProperties": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "text": {
106
+ "type": "string"
107
+ }
108
+ },
109
+ "required": [
110
+ "selector",
111
+ "tag",
112
+ "attrs",
113
+ "text"
114
+ ],
115
+ "additionalProperties": false
116
+ },
117
+ "RequestForm": {
118
+ "type": "object",
119
+ "properties": {
120
+ "action": {
121
+ "type": "string"
122
+ },
123
+ "fields": {
124
+ "type": "object",
125
+ "additionalProperties": {
126
+ "type": "string"
127
+ }
128
+ },
129
+ "buttons": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string"
133
+ }
134
+ }
135
+ },
136
+ "required": [
137
+ "action",
138
+ "fields",
139
+ "buttons"
140
+ ],
141
+ "additionalProperties": false
142
+ }
143
+ }
144
+ }