dudu-converter-cli 0.0.0-stage → 1.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.
@@ -0,0 +1,220 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Converter dependency registry",
4
+ "type": "object",
5
+ "required": [
6
+ "version",
7
+ "dependencies"
8
+ ],
9
+ "properties": {
10
+ "version": {
11
+ "type": "integer",
12
+ "minimum": 2
13
+ },
14
+ "dependencies": {
15
+ "type": "array",
16
+ "minItems": 8,
17
+ "items": {
18
+ "type": "object",
19
+ "required": [
20
+ "id",
21
+ "name",
22
+ "description",
23
+ "required",
24
+ "features",
25
+ "check",
26
+ "minVersion",
27
+ "altPaths",
28
+ "install",
29
+ "uninstall"
30
+ ],
31
+ "additionalProperties": false,
32
+ "properties": {
33
+ "id": {
34
+ "enum": [
35
+ "ffmpeg",
36
+ "imagemagick",
37
+ "libreoffice",
38
+ "poppler-image",
39
+ "poppler-text",
40
+ "qpdf",
41
+ "pandoc",
42
+ "7zip"
43
+ ]
44
+ },
45
+ "name": {
46
+ "type": "string",
47
+ "minLength": 1
48
+ },
49
+ "description": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "required": {
54
+ "type": "boolean"
55
+ },
56
+ "features": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string"
60
+ },
61
+ "uniqueItems": true
62
+ },
63
+ "check": {
64
+ "type": "object",
65
+ "required": [
66
+ "command",
67
+ "versionPattern"
68
+ ],
69
+ "additionalProperties": false,
70
+ "properties": {
71
+ "command": {
72
+ "type": "array",
73
+ "minItems": 1,
74
+ "items": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "versionPattern": {
79
+ "type": "string"
80
+ }
81
+ }
82
+ },
83
+ "minVersion": {
84
+ "type": "string",
85
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
86
+ },
87
+ "altPaths": {
88
+ "type": "object",
89
+ "required": [
90
+ "darwin",
91
+ "win32"
92
+ ],
93
+ "additionalProperties": false,
94
+ "properties": {
95
+ "darwin": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "string"
99
+ }
100
+ },
101
+ "win32": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "string"
105
+ }
106
+ }
107
+ }
108
+ },
109
+ "install": {
110
+ "type": "object",
111
+ "required": [
112
+ "darwin",
113
+ "win32",
114
+ "fallbackUrl"
115
+ ],
116
+ "additionalProperties": false,
117
+ "properties": {
118
+ "darwin": {
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "properties": {
122
+ "brew": {
123
+ "$ref": "#/definitions/commandMatrix"
124
+ }
125
+ }
126
+ },
127
+ "win32": {
128
+ "type": "object",
129
+ "required": [
130
+ "winget",
131
+ "choco",
132
+ "scoop"
133
+ ],
134
+ "additionalProperties": false,
135
+ "properties": {
136
+ "winget": {
137
+ "$ref": "#/definitions/commandMatrix"
138
+ },
139
+ "choco": {
140
+ "$ref": "#/definitions/commandMatrix"
141
+ },
142
+ "scoop": {
143
+ "$ref": "#/definitions/commandMatrix"
144
+ }
145
+ }
146
+ },
147
+ "fallbackUrl": {
148
+ "type": "string",
149
+ "format": "uri"
150
+ }
151
+ }
152
+ },
153
+ "uninstall": {
154
+ "type": "object",
155
+ "required": [
156
+ "darwin",
157
+ "win32"
158
+ ],
159
+ "additionalProperties": false,
160
+ "properties": {
161
+ "darwin": {
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "properties": {
165
+ "brew": {
166
+ "$ref": "#/definitions/commandMatrix"
167
+ }
168
+ }
169
+ },
170
+ "win32": {
171
+ "type": "object",
172
+ "required": [
173
+ "winget",
174
+ "choco",
175
+ "scoop"
176
+ ],
177
+ "additionalProperties": false,
178
+ "properties": {
179
+ "winget": {
180
+ "$ref": "#/definitions/commandMatrix"
181
+ },
182
+ "choco": {
183
+ "$ref": "#/definitions/commandMatrix"
184
+ },
185
+ "scoop": {
186
+ "$ref": "#/definitions/commandMatrix"
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
195
+ },
196
+ "definitions": {
197
+ "commandMatrix": {
198
+ "type": "array",
199
+ "minItems": 1,
200
+ "items": {
201
+ "type": "array",
202
+ "minItems": 1,
203
+ "items": {
204
+ "type": "string"
205
+ }
206
+ }
207
+ },
208
+ "packageCommands": {
209
+ "type": "array",
210
+ "minItems": 1,
211
+ "items": {
212
+ "type": "array",
213
+ "minItems": 1,
214
+ "items": {
215
+ "type": "string"
216
+ }
217
+ }
218
+ }
219
+ }
220
+ }