zudoku 0.3.0-dev.20 → 0.3.0-dev.22
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/dist/config/config.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +1 -1
- package/dist/lib/plugins/api-keys/index.js +1 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/index.d.ts +1 -19
- package/dist/lib/plugins/openapi/index.js +17 -18
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/dist/vite/build.js +4 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +7 -7
- package/dist/vite/config.js +33 -38
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +6 -3
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.js +3 -3
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +2 -2
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +2 -2
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +2 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +1 -1
- package/dist/vite/plugin-config.js +7 -6
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-redirect.js +2 -2
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/lib/{util-voKLTRDG.js → AnchorLink-DIUlXlf0.js} +149 -184
- package/lib/DevPortalProvider-gzyAGqHT.js +1080 -0
- package/lib/{Markdown-5LmPZyLV.js → Markdown-BjA7peYW.js} +3 -3
- package/lib/{MdxComponents-DYD_QPVF.js → MdxComponents-W-fE1ISO.js} +130 -129
- package/lib/MdxPage-DQ7lZBzE.js +216 -0
- package/lib/OperationList-DuIBqFNA.js +5545 -0
- package/lib/Route-B98Y2MdH.js +13 -0
- package/lib/{Select-DR3PiqjV.js → Select-DczD5e29.js} +24 -22
- package/lib/{Spinner-DjQ2eBxC.js → Spinner-CSoij67T.js} +3 -3
- package/lib/cn-DpqTslo9.js +2341 -0
- package/lib/context-_fYfJFgk.js +13 -0
- package/lib/{hook-FCY9-FHO.js → hook-CBXxHulF.js} +1 -1
- package/lib/{index-By9bEW57.js → index-C7O9D7f6.js} +15 -15
- package/lib/index-CKvOcM7w.js +712 -0
- package/lib/index-Cg6lXS1z.js +709 -0
- package/lib/index-ClDDiRmC.js +463 -0
- package/lib/router-DibNxKUP.js +3008 -0
- package/lib/util-CaVongBq.js +40 -0
- package/lib/zudoku.auth-openid.js +7 -6
- package/lib/zudoku.components.js +73 -69
- package/lib/zudoku.plugin-api-keys.js +26 -23
- package/lib/zudoku.plugin-markdown.js +33 -237
- package/lib/zudoku.plugin-openapi.js +5 -6238
- package/lib/zudoku.plugin-redirect.js +7 -6
- package/package.json +1 -2
- package/src/lib/authentication/authentication.ts +1 -1
- package/src/lib/plugins/api-keys/index.tsx +1 -0
- package/src/lib/plugins/markdown/generateRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/index.tsx +19 -46
- package/src/lib/plugins/openapi/interfaces.ts +9 -0
- package/lib/DevPortalProvider-CRKuwoXc.js +0 -4123
- package/lib/index-PyGcnQFX.js +0 -3462
|
@@ -0,0 +1,709 @@
|
|
|
1
|
+
import { j as n, m as s } from "./router-DibNxKUP.js";
|
|
2
|
+
import { c as o } from "./cn-DpqTslo9.js";
|
|
3
|
+
import { C as r, c as u, f as p } from "./urql-DMlBWUKL.js";
|
|
4
|
+
import { createSharedWorkerClient as c } from "virtual:zudoku-openapi-worker";
|
|
5
|
+
const V = {
|
|
6
|
+
get: "text-green-600",
|
|
7
|
+
post: "text-sky-600",
|
|
8
|
+
put: "text-yellow-600",
|
|
9
|
+
delete: "text-red-600",
|
|
10
|
+
patch: "text-purple-600",
|
|
11
|
+
options: "text-indigo-600",
|
|
12
|
+
head: "text-gray-600",
|
|
13
|
+
trace: "text-gray-600"
|
|
14
|
+
}, v = {
|
|
15
|
+
get: "bg-green-400 dark:bg-green-800",
|
|
16
|
+
post: "bg-sky-400 dark:bg-sky-800",
|
|
17
|
+
put: "bg-yellow-400 dark:bg-yellow-800",
|
|
18
|
+
delete: "bg-red-400 dark:bg-red-800",
|
|
19
|
+
patch: "bg-purple-400 dark:bg-purple-600",
|
|
20
|
+
options: "bg-indigo-400 dark:bg-indigo-600",
|
|
21
|
+
head: "bg-gray-400 dark:bg-gray-600",
|
|
22
|
+
trace: "bg-gray-400 dark:bg-gray-600"
|
|
23
|
+
}, N = ({ method: e }) => /* @__PURE__ */ n.jsx(
|
|
24
|
+
"span",
|
|
25
|
+
{
|
|
26
|
+
className: o(
|
|
27
|
+
"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
|
|
28
|
+
v[e]
|
|
29
|
+
),
|
|
30
|
+
children: e
|
|
31
|
+
}
|
|
32
|
+
), y = {
|
|
33
|
+
kind: "Document",
|
|
34
|
+
definitions: [
|
|
35
|
+
{
|
|
36
|
+
kind: "FragmentDefinition",
|
|
37
|
+
name: { kind: "Name", value: "OperationsFragment" },
|
|
38
|
+
typeCondition: {
|
|
39
|
+
kind: "NamedType",
|
|
40
|
+
name: { kind: "Name", value: "OperationItem" }
|
|
41
|
+
},
|
|
42
|
+
selectionSet: {
|
|
43
|
+
kind: "SelectionSet",
|
|
44
|
+
selections: [
|
|
45
|
+
{ kind: "Field", name: { kind: "Name", value: "slug" } },
|
|
46
|
+
{ kind: "Field", name: { kind: "Name", value: "summary" } },
|
|
47
|
+
{ kind: "Field", name: { kind: "Name", value: "method" } },
|
|
48
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
49
|
+
{ kind: "Field", name: { kind: "Name", value: "operationId" } },
|
|
50
|
+
{ kind: "Field", name: { kind: "Name", value: "contentTypes" } },
|
|
51
|
+
{ kind: "Field", name: { kind: "Name", value: "path" } },
|
|
52
|
+
{
|
|
53
|
+
kind: "Field",
|
|
54
|
+
name: { kind: "Name", value: "parameters" },
|
|
55
|
+
selectionSet: {
|
|
56
|
+
kind: "SelectionSet",
|
|
57
|
+
selections: [
|
|
58
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
59
|
+
{ kind: "Field", name: { kind: "Name", value: "in" } },
|
|
60
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
61
|
+
{ kind: "Field", name: { kind: "Name", value: "required" } },
|
|
62
|
+
{ kind: "Field", name: { kind: "Name", value: "schema" } },
|
|
63
|
+
{ kind: "Field", name: { kind: "Name", value: "style" } },
|
|
64
|
+
{
|
|
65
|
+
kind: "Field",
|
|
66
|
+
name: { kind: "Name", value: "examples" },
|
|
67
|
+
selectionSet: {
|
|
68
|
+
kind: "SelectionSet",
|
|
69
|
+
selections: [
|
|
70
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
71
|
+
{
|
|
72
|
+
kind: "Field",
|
|
73
|
+
name: { kind: "Name", value: "description" }
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
kind: "Field",
|
|
77
|
+
name: { kind: "Name", value: "externalValue" }
|
|
78
|
+
},
|
|
79
|
+
{ kind: "Field", name: { kind: "Name", value: "value" } },
|
|
80
|
+
{
|
|
81
|
+
kind: "Field",
|
|
82
|
+
name: { kind: "Name", value: "summary" }
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
kind: "Field",
|
|
92
|
+
name: { kind: "Name", value: "requestBody" },
|
|
93
|
+
selectionSet: {
|
|
94
|
+
kind: "SelectionSet",
|
|
95
|
+
selections: [
|
|
96
|
+
{
|
|
97
|
+
kind: "Field",
|
|
98
|
+
name: { kind: "Name", value: "content" },
|
|
99
|
+
selectionSet: {
|
|
100
|
+
kind: "SelectionSet",
|
|
101
|
+
selections: [
|
|
102
|
+
{
|
|
103
|
+
kind: "Field",
|
|
104
|
+
name: { kind: "Name", value: "mediaType" }
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
kind: "Field",
|
|
108
|
+
name: { kind: "Name", value: "encoding" },
|
|
109
|
+
selectionSet: {
|
|
110
|
+
kind: "SelectionSet",
|
|
111
|
+
selections: [
|
|
112
|
+
{
|
|
113
|
+
kind: "Field",
|
|
114
|
+
name: { kind: "Name", value: "name" }
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
kind: "Field",
|
|
121
|
+
name: { kind: "Name", value: "schema" }
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
127
|
+
{ kind: "Field", name: { kind: "Name", value: "required" } }
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
kind: "Field",
|
|
133
|
+
name: { kind: "Name", value: "responses" },
|
|
134
|
+
selectionSet: {
|
|
135
|
+
kind: "SelectionSet",
|
|
136
|
+
selections: [
|
|
137
|
+
{ kind: "Field", name: { kind: "Name", value: "statusCode" } },
|
|
138
|
+
{ kind: "Field", name: { kind: "Name", value: "links" } },
|
|
139
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
140
|
+
{
|
|
141
|
+
kind: "Field",
|
|
142
|
+
name: { kind: "Name", value: "content" },
|
|
143
|
+
selectionSet: {
|
|
144
|
+
kind: "SelectionSet",
|
|
145
|
+
selections: [
|
|
146
|
+
{
|
|
147
|
+
kind: "Field",
|
|
148
|
+
name: { kind: "Name", value: "mediaType" }
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
kind: "Field",
|
|
152
|
+
name: { kind: "Name", value: "encoding" },
|
|
153
|
+
selectionSet: {
|
|
154
|
+
kind: "SelectionSet",
|
|
155
|
+
selections: [
|
|
156
|
+
{
|
|
157
|
+
kind: "Field",
|
|
158
|
+
name: { kind: "Name", value: "name" }
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
kind: "Field",
|
|
165
|
+
name: { kind: "Name", value: "schema" }
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}, F = {
|
|
178
|
+
kind: "Document",
|
|
179
|
+
definitions: [
|
|
180
|
+
{
|
|
181
|
+
kind: "OperationDefinition",
|
|
182
|
+
operation: "query",
|
|
183
|
+
name: { kind: "Name", value: "getServerQuery" },
|
|
184
|
+
variableDefinitions: [
|
|
185
|
+
{
|
|
186
|
+
kind: "VariableDefinition",
|
|
187
|
+
variable: {
|
|
188
|
+
kind: "Variable",
|
|
189
|
+
name: { kind: "Name", value: "input" }
|
|
190
|
+
},
|
|
191
|
+
type: {
|
|
192
|
+
kind: "NonNullType",
|
|
193
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } }
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
kind: "VariableDefinition",
|
|
198
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
|
|
199
|
+
type: {
|
|
200
|
+
kind: "NonNullType",
|
|
201
|
+
type: {
|
|
202
|
+
kind: "NamedType",
|
|
203
|
+
name: { kind: "Name", value: "SchemaType" }
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
selectionSet: {
|
|
209
|
+
kind: "SelectionSet",
|
|
210
|
+
selections: [
|
|
211
|
+
{
|
|
212
|
+
kind: "Field",
|
|
213
|
+
name: { kind: "Name", value: "schema" },
|
|
214
|
+
arguments: [
|
|
215
|
+
{
|
|
216
|
+
kind: "Argument",
|
|
217
|
+
name: { kind: "Name", value: "input" },
|
|
218
|
+
value: {
|
|
219
|
+
kind: "Variable",
|
|
220
|
+
name: { kind: "Name", value: "input" }
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
kind: "Argument",
|
|
225
|
+
name: { kind: "Name", value: "type" },
|
|
226
|
+
value: {
|
|
227
|
+
kind: "Variable",
|
|
228
|
+
name: { kind: "Name", value: "type" }
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
selectionSet: {
|
|
233
|
+
kind: "SelectionSet",
|
|
234
|
+
selections: [
|
|
235
|
+
{ kind: "Field", name: { kind: "Name", value: "url" } }
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
}, S = {
|
|
244
|
+
kind: "Document",
|
|
245
|
+
definitions: [
|
|
246
|
+
{
|
|
247
|
+
kind: "OperationDefinition",
|
|
248
|
+
operation: "query",
|
|
249
|
+
name: { kind: "Name", value: "AllOperations" },
|
|
250
|
+
variableDefinitions: [
|
|
251
|
+
{
|
|
252
|
+
kind: "VariableDefinition",
|
|
253
|
+
variable: {
|
|
254
|
+
kind: "Variable",
|
|
255
|
+
name: { kind: "Name", value: "input" }
|
|
256
|
+
},
|
|
257
|
+
type: {
|
|
258
|
+
kind: "NonNullType",
|
|
259
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } }
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
kind: "VariableDefinition",
|
|
264
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
|
|
265
|
+
type: {
|
|
266
|
+
kind: "NonNullType",
|
|
267
|
+
type: {
|
|
268
|
+
kind: "NamedType",
|
|
269
|
+
name: { kind: "Name", value: "SchemaType" }
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
selectionSet: {
|
|
275
|
+
kind: "SelectionSet",
|
|
276
|
+
selections: [
|
|
277
|
+
{
|
|
278
|
+
kind: "Field",
|
|
279
|
+
name: { kind: "Name", value: "schema" },
|
|
280
|
+
arguments: [
|
|
281
|
+
{
|
|
282
|
+
kind: "Argument",
|
|
283
|
+
name: { kind: "Name", value: "input" },
|
|
284
|
+
value: {
|
|
285
|
+
kind: "Variable",
|
|
286
|
+
name: { kind: "Name", value: "input" }
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
kind: "Argument",
|
|
291
|
+
name: { kind: "Name", value: "type" },
|
|
292
|
+
value: {
|
|
293
|
+
kind: "Variable",
|
|
294
|
+
name: { kind: "Name", value: "type" }
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
selectionSet: {
|
|
299
|
+
kind: "SelectionSet",
|
|
300
|
+
selections: [
|
|
301
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
302
|
+
{ kind: "Field", name: { kind: "Name", value: "title" } },
|
|
303
|
+
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
|
304
|
+
{ kind: "Field", name: { kind: "Name", value: "version" } },
|
|
305
|
+
{
|
|
306
|
+
kind: "Field",
|
|
307
|
+
name: { kind: "Name", value: "tags" },
|
|
308
|
+
selectionSet: {
|
|
309
|
+
kind: "SelectionSet",
|
|
310
|
+
selections: [
|
|
311
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
312
|
+
{
|
|
313
|
+
kind: "Field",
|
|
314
|
+
name: { kind: "Name", value: "description" }
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
kind: "Field",
|
|
318
|
+
name: { kind: "Name", value: "operations" },
|
|
319
|
+
selectionSet: {
|
|
320
|
+
kind: "SelectionSet",
|
|
321
|
+
selections: [
|
|
322
|
+
{
|
|
323
|
+
kind: "Field",
|
|
324
|
+
name: { kind: "Name", value: "slug" }
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
kind: "FragmentSpread",
|
|
328
|
+
name: {
|
|
329
|
+
kind: "Name",
|
|
330
|
+
value: "OperationsFragment"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
kind: "FragmentDefinition",
|
|
347
|
+
name: { kind: "Name", value: "OperationsFragment" },
|
|
348
|
+
typeCondition: {
|
|
349
|
+
kind: "NamedType",
|
|
350
|
+
name: { kind: "Name", value: "OperationItem" }
|
|
351
|
+
},
|
|
352
|
+
selectionSet: {
|
|
353
|
+
kind: "SelectionSet",
|
|
354
|
+
selections: [
|
|
355
|
+
{ kind: "Field", name: { kind: "Name", value: "slug" } },
|
|
356
|
+
{ kind: "Field", name: { kind: "Name", value: "summary" } },
|
|
357
|
+
{ kind: "Field", name: { kind: "Name", value: "method" } },
|
|
358
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
359
|
+
{ kind: "Field", name: { kind: "Name", value: "operationId" } },
|
|
360
|
+
{ kind: "Field", name: { kind: "Name", value: "contentTypes" } },
|
|
361
|
+
{ kind: "Field", name: { kind: "Name", value: "path" } },
|
|
362
|
+
{
|
|
363
|
+
kind: "Field",
|
|
364
|
+
name: { kind: "Name", value: "parameters" },
|
|
365
|
+
selectionSet: {
|
|
366
|
+
kind: "SelectionSet",
|
|
367
|
+
selections: [
|
|
368
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
369
|
+
{ kind: "Field", name: { kind: "Name", value: "in" } },
|
|
370
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
371
|
+
{ kind: "Field", name: { kind: "Name", value: "required" } },
|
|
372
|
+
{ kind: "Field", name: { kind: "Name", value: "schema" } },
|
|
373
|
+
{ kind: "Field", name: { kind: "Name", value: "style" } },
|
|
374
|
+
{
|
|
375
|
+
kind: "Field",
|
|
376
|
+
name: { kind: "Name", value: "examples" },
|
|
377
|
+
selectionSet: {
|
|
378
|
+
kind: "SelectionSet",
|
|
379
|
+
selections: [
|
|
380
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
381
|
+
{
|
|
382
|
+
kind: "Field",
|
|
383
|
+
name: { kind: "Name", value: "description" }
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
kind: "Field",
|
|
387
|
+
name: { kind: "Name", value: "externalValue" }
|
|
388
|
+
},
|
|
389
|
+
{ kind: "Field", name: { kind: "Name", value: "value" } },
|
|
390
|
+
{
|
|
391
|
+
kind: "Field",
|
|
392
|
+
name: { kind: "Name", value: "summary" }
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
kind: "Field",
|
|
402
|
+
name: { kind: "Name", value: "requestBody" },
|
|
403
|
+
selectionSet: {
|
|
404
|
+
kind: "SelectionSet",
|
|
405
|
+
selections: [
|
|
406
|
+
{
|
|
407
|
+
kind: "Field",
|
|
408
|
+
name: { kind: "Name", value: "content" },
|
|
409
|
+
selectionSet: {
|
|
410
|
+
kind: "SelectionSet",
|
|
411
|
+
selections: [
|
|
412
|
+
{
|
|
413
|
+
kind: "Field",
|
|
414
|
+
name: { kind: "Name", value: "mediaType" }
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
kind: "Field",
|
|
418
|
+
name: { kind: "Name", value: "encoding" },
|
|
419
|
+
selectionSet: {
|
|
420
|
+
kind: "SelectionSet",
|
|
421
|
+
selections: [
|
|
422
|
+
{
|
|
423
|
+
kind: "Field",
|
|
424
|
+
name: { kind: "Name", value: "name" }
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
kind: "Field",
|
|
431
|
+
name: { kind: "Name", value: "schema" }
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
437
|
+
{ kind: "Field", name: { kind: "Name", value: "required" } }
|
|
438
|
+
]
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
kind: "Field",
|
|
443
|
+
name: { kind: "Name", value: "responses" },
|
|
444
|
+
selectionSet: {
|
|
445
|
+
kind: "SelectionSet",
|
|
446
|
+
selections: [
|
|
447
|
+
{ kind: "Field", name: { kind: "Name", value: "statusCode" } },
|
|
448
|
+
{ kind: "Field", name: { kind: "Name", value: "links" } },
|
|
449
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
450
|
+
{
|
|
451
|
+
kind: "Field",
|
|
452
|
+
name: { kind: "Name", value: "content" },
|
|
453
|
+
selectionSet: {
|
|
454
|
+
kind: "SelectionSet",
|
|
455
|
+
selections: [
|
|
456
|
+
{
|
|
457
|
+
kind: "Field",
|
|
458
|
+
name: { kind: "Name", value: "mediaType" }
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
kind: "Field",
|
|
462
|
+
name: { kind: "Name", value: "encoding" },
|
|
463
|
+
selectionSet: {
|
|
464
|
+
kind: "SelectionSet",
|
|
465
|
+
selections: [
|
|
466
|
+
{
|
|
467
|
+
kind: "Field",
|
|
468
|
+
name: { kind: "Name", value: "name" }
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
kind: "Field",
|
|
475
|
+
name: { kind: "Name", value: "schema" }
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
}, g = {
|
|
488
|
+
kind: "Document",
|
|
489
|
+
definitions: [
|
|
490
|
+
{
|
|
491
|
+
kind: "OperationDefinition",
|
|
492
|
+
operation: "query",
|
|
493
|
+
name: { kind: "Name", value: "GetCategories" },
|
|
494
|
+
variableDefinitions: [
|
|
495
|
+
{
|
|
496
|
+
kind: "VariableDefinition",
|
|
497
|
+
variable: {
|
|
498
|
+
kind: "Variable",
|
|
499
|
+
name: { kind: "Name", value: "input" }
|
|
500
|
+
},
|
|
501
|
+
type: {
|
|
502
|
+
kind: "NonNullType",
|
|
503
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } }
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
kind: "VariableDefinition",
|
|
508
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
|
|
509
|
+
type: {
|
|
510
|
+
kind: "NonNullType",
|
|
511
|
+
type: {
|
|
512
|
+
kind: "NamedType",
|
|
513
|
+
name: { kind: "Name", value: "SchemaType" }
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
],
|
|
518
|
+
selectionSet: {
|
|
519
|
+
kind: "SelectionSet",
|
|
520
|
+
selections: [
|
|
521
|
+
{
|
|
522
|
+
kind: "Field",
|
|
523
|
+
name: { kind: "Name", value: "schema" },
|
|
524
|
+
arguments: [
|
|
525
|
+
{
|
|
526
|
+
kind: "Argument",
|
|
527
|
+
name: { kind: "Name", value: "input" },
|
|
528
|
+
value: {
|
|
529
|
+
kind: "Variable",
|
|
530
|
+
name: { kind: "Name", value: "input" }
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
kind: "Argument",
|
|
535
|
+
name: { kind: "Name", value: "type" },
|
|
536
|
+
value: {
|
|
537
|
+
kind: "Variable",
|
|
538
|
+
name: { kind: "Name", value: "type" }
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
selectionSet: {
|
|
543
|
+
kind: "SelectionSet",
|
|
544
|
+
selections: [
|
|
545
|
+
{
|
|
546
|
+
kind: "Field",
|
|
547
|
+
name: { kind: "Name", value: "tags" },
|
|
548
|
+
selectionSet: {
|
|
549
|
+
kind: "SelectionSet",
|
|
550
|
+
selections: [
|
|
551
|
+
{
|
|
552
|
+
kind: "Field",
|
|
553
|
+
name: { kind: "Name", value: "__typename" }
|
|
554
|
+
},
|
|
555
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
|
556
|
+
{
|
|
557
|
+
kind: "Field",
|
|
558
|
+
name: { kind: "Name", value: "operations" },
|
|
559
|
+
selectionSet: {
|
|
560
|
+
kind: "SelectionSet",
|
|
561
|
+
selections: [
|
|
562
|
+
{
|
|
563
|
+
kind: "Field",
|
|
564
|
+
name: { kind: "Name", value: "__typename" }
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
kind: "Field",
|
|
568
|
+
name: { kind: "Name", value: "slug" }
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
kind: "Field",
|
|
572
|
+
name: { kind: "Name", value: "deprecated" }
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
kind: "Field",
|
|
576
|
+
name: { kind: "Name", value: "method" }
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
kind: "Field",
|
|
580
|
+
name: { kind: "Name", value: "summary" }
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
kind: "Field",
|
|
584
|
+
name: { kind: "Name", value: "operationId" }
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
kind: "Field",
|
|
588
|
+
name: { kind: "Name", value: "path" }
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
]
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
}, h = {
|
|
604
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": F,
|
|
605
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": y,
|
|
606
|
+
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": S,
|
|
607
|
+
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": g
|
|
608
|
+
};
|
|
609
|
+
function b(e) {
|
|
610
|
+
return h[e] ?? {};
|
|
611
|
+
}
|
|
612
|
+
const x = b(`
|
|
613
|
+
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
614
|
+
schema(input: $input, type: $type) {
|
|
615
|
+
tags {
|
|
616
|
+
__typename
|
|
617
|
+
name
|
|
618
|
+
operations {
|
|
619
|
+
__typename
|
|
620
|
+
slug
|
|
621
|
+
deprecated
|
|
622
|
+
method
|
|
623
|
+
summary
|
|
624
|
+
operationId
|
|
625
|
+
path
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
`), q = (e) => {
|
|
631
|
+
const t = e.path ?? "/reference", l = e.server ? new r({
|
|
632
|
+
url: e.server,
|
|
633
|
+
exchanges: [u, p]
|
|
634
|
+
}) : c();
|
|
635
|
+
return {
|
|
636
|
+
getHead: () => {
|
|
637
|
+
if (e.type === "url")
|
|
638
|
+
return /* @__PURE__ */ n.jsx(
|
|
639
|
+
"link",
|
|
640
|
+
{
|
|
641
|
+
rel: "preload",
|
|
642
|
+
href: e.input,
|
|
643
|
+
as: "fetch",
|
|
644
|
+
crossOrigin: "anonymous"
|
|
645
|
+
}
|
|
646
|
+
);
|
|
647
|
+
if (e.server)
|
|
648
|
+
return /* @__PURE__ */ n.jsx("link", { rel: "preconnect", href: e.server });
|
|
649
|
+
},
|
|
650
|
+
getNavigation: async (i) => {
|
|
651
|
+
if (!s({ path: t, end: !1 }, i))
|
|
652
|
+
return [];
|
|
653
|
+
const { data: m } = await l.query(x, {
|
|
654
|
+
input: e.input,
|
|
655
|
+
type: e.type
|
|
656
|
+
});
|
|
657
|
+
if (!m) return [];
|
|
658
|
+
const k = m.schema.tags.filter((d) => d.operations.length > 0).map((d) => ({
|
|
659
|
+
path: i,
|
|
660
|
+
label: d.name ?? "",
|
|
661
|
+
collapsible: !1,
|
|
662
|
+
children: d.operations.map((a) => ({
|
|
663
|
+
path: `#${a.slug}`,
|
|
664
|
+
muted: !!a.deprecated,
|
|
665
|
+
title: a.summary ?? a.path,
|
|
666
|
+
label: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 min-w-0 justify-between gap-2", children: [
|
|
667
|
+
/* @__PURE__ */ n.jsx("span", { className: "truncate", children: a.summary ?? a.path }),
|
|
668
|
+
/* @__PURE__ */ n.jsx(N, { method: a.method })
|
|
669
|
+
] })
|
|
670
|
+
}))
|
|
671
|
+
}));
|
|
672
|
+
return k.unshift({
|
|
673
|
+
path: i,
|
|
674
|
+
label: "Overview",
|
|
675
|
+
collapsible: !1,
|
|
676
|
+
children: [{ path: "#description", label: "Description" }]
|
|
677
|
+
}), k;
|
|
678
|
+
},
|
|
679
|
+
getRoutes: () => [
|
|
680
|
+
{
|
|
681
|
+
async lazy() {
|
|
682
|
+
const { OpenApiRoute: i } = await import("./Route-B98Y2MdH.js");
|
|
683
|
+
return {
|
|
684
|
+
element: /* @__PURE__ */ n.jsx(i, { client: l, config: e })
|
|
685
|
+
};
|
|
686
|
+
},
|
|
687
|
+
children: [
|
|
688
|
+
{
|
|
689
|
+
path: t,
|
|
690
|
+
children: [
|
|
691
|
+
{
|
|
692
|
+
index: !0,
|
|
693
|
+
async lazy() {
|
|
694
|
+
const { OperationList: i } = await import("./OperationList-DuIBqFNA.js");
|
|
695
|
+
return { element: /* @__PURE__ */ n.jsx(i, {}) };
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
]
|
|
699
|
+
}
|
|
700
|
+
]
|
|
701
|
+
}
|
|
702
|
+
]
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
export {
|
|
706
|
+
V as M,
|
|
707
|
+
b as g,
|
|
708
|
+
q as o
|
|
709
|
+
};
|