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