docusaurus-plugin-openapi-docs 0.0.0-1099 → 0.0.0-1100
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/package.json +2 -2
- package/lib/types.d.ts +0 -145
- package/lib/types.js +0 -8
- /package/src/{types.ts → types.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-plugin-openapi-docs",
|
|
3
3
|
"description": "OpenAPI plugin for Docusaurus.",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-1100",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=14"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "40b88cda0a9f5d21b05004879342335d177b62ac"
|
|
69
69
|
}
|
package/lib/types.d.ts
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import type { SidebarItemDoc } from "@docusaurus/plugin-content-docs/lib/sidebars/types";
|
|
2
|
-
import { InfoObject, OperationObject, SchemaObject, SecuritySchemeObject, TagObject } from "./openapi/types";
|
|
3
|
-
export type { PropSidebarItemCategory, SidebarItemLink, PropSidebar, PropSidebarItem, } from "@docusaurus/plugin-content-docs/lib/sidebars/types";
|
|
4
|
-
export interface PluginOptions {
|
|
5
|
-
id?: string;
|
|
6
|
-
docsPlugin?: string;
|
|
7
|
-
docsPluginId: string;
|
|
8
|
-
config: {
|
|
9
|
-
[key: string]: APIOptions;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export interface APIOptions {
|
|
13
|
-
specPath: string;
|
|
14
|
-
outputDir: string;
|
|
15
|
-
template?: string;
|
|
16
|
-
infoTemplate?: string;
|
|
17
|
-
tagTemplate?: string;
|
|
18
|
-
schemaTemplate?: string;
|
|
19
|
-
downloadUrl?: string;
|
|
20
|
-
hideSendButton?: boolean;
|
|
21
|
-
showExtensions?: boolean;
|
|
22
|
-
sidebarOptions?: SidebarOptions;
|
|
23
|
-
version?: string;
|
|
24
|
-
label?: string;
|
|
25
|
-
baseUrl?: string;
|
|
26
|
-
versions?: {
|
|
27
|
-
[key: string]: APIVersionOptions;
|
|
28
|
-
};
|
|
29
|
-
proxy?: string;
|
|
30
|
-
markdownGenerators?: MarkdownGenerator;
|
|
31
|
-
showSchemas?: boolean;
|
|
32
|
-
showInfoPage?: boolean;
|
|
33
|
-
schemasOnly?: boolean;
|
|
34
|
-
disableCompression?: boolean;
|
|
35
|
-
maskCredentials?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* When enabled, large JSON props in generated MDX are written to external
|
|
38
|
-
* files and loaded via require(). This can significantly improve MDX
|
|
39
|
-
* compilation performance for large OpenAPI specs.
|
|
40
|
-
* @see https://github.com/facebook/docusaurus/discussions/11664
|
|
41
|
-
*/
|
|
42
|
-
externalJsonProps?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface MarkdownGenerator {
|
|
45
|
-
createApiPageMD?: (pageData: ApiPageMetadata) => string;
|
|
46
|
-
createInfoPageMD?: (pageData: InfoPageMetadata) => string;
|
|
47
|
-
createTagPageMD?: (pageData: TagPageMetadata) => string;
|
|
48
|
-
createSchemaPageMD?: (pageData: SchemaPageMetadata) => string;
|
|
49
|
-
}
|
|
50
|
-
export type ApiDocItemGenerator = (item: ApiPageMetadata | SchemaPageMetadata, context: {
|
|
51
|
-
sidebarOptions: SidebarOptions;
|
|
52
|
-
basePath: string;
|
|
53
|
-
}) => SidebarItemDoc;
|
|
54
|
-
export interface SidebarGenerators {
|
|
55
|
-
createDocItem?: ApiDocItemGenerator;
|
|
56
|
-
}
|
|
57
|
-
export interface SidebarOptions {
|
|
58
|
-
groupPathsBy?: string;
|
|
59
|
-
categoryLinkSource?: "info" | "tag" | "auto";
|
|
60
|
-
customProps?: {
|
|
61
|
-
[key: string]: unknown;
|
|
62
|
-
};
|
|
63
|
-
sidebarCollapsible?: boolean;
|
|
64
|
-
sidebarCollapsed?: boolean;
|
|
65
|
-
sidebarGenerators?: SidebarGenerators;
|
|
66
|
-
}
|
|
67
|
-
export interface APIVersionOptions {
|
|
68
|
-
specPath: string;
|
|
69
|
-
outputDir: string;
|
|
70
|
-
label: string;
|
|
71
|
-
baseUrl: string;
|
|
72
|
-
downloadUrl?: string;
|
|
73
|
-
}
|
|
74
|
-
export interface LoadedContent {
|
|
75
|
-
loadedApi: ApiMetadata[];
|
|
76
|
-
}
|
|
77
|
-
export type ApiMetadata = ApiPageMetadata | InfoPageMetadata | TagPageMetadata | SchemaPageMetadata;
|
|
78
|
-
export interface ApiMetadataBase {
|
|
79
|
-
sidebar?: string;
|
|
80
|
-
previous?: ApiNavLink;
|
|
81
|
-
next?: ApiNavLink;
|
|
82
|
-
id: string;
|
|
83
|
-
unversionedId: string;
|
|
84
|
-
infoId?: string;
|
|
85
|
-
infoPath?: string;
|
|
86
|
-
downloadUrl?: string;
|
|
87
|
-
title: string;
|
|
88
|
-
description: string;
|
|
89
|
-
source: string;
|
|
90
|
-
sourceDirName: string;
|
|
91
|
-
slug?: string;
|
|
92
|
-
permalink: string;
|
|
93
|
-
sidebarPosition?: number;
|
|
94
|
-
frontMatter: Record<string, unknown>;
|
|
95
|
-
method?: string;
|
|
96
|
-
path?: string;
|
|
97
|
-
position?: number;
|
|
98
|
-
}
|
|
99
|
-
export interface ApiPageMetadata extends ApiMetadataBase {
|
|
100
|
-
json?: string;
|
|
101
|
-
type: "api";
|
|
102
|
-
api: ApiItem;
|
|
103
|
-
markdown?: string;
|
|
104
|
-
}
|
|
105
|
-
export interface ApiItem extends OperationObject {
|
|
106
|
-
method: string;
|
|
107
|
-
path: string;
|
|
108
|
-
jsonRequestBodyExample: string;
|
|
109
|
-
securitySchemes?: {
|
|
110
|
-
[key: string]: SecuritySchemeObject;
|
|
111
|
-
};
|
|
112
|
-
postman?: Request;
|
|
113
|
-
proxy?: string;
|
|
114
|
-
info: InfoObject;
|
|
115
|
-
extensions?: object;
|
|
116
|
-
}
|
|
117
|
-
export interface InfoPageMetadata extends ApiMetadataBase {
|
|
118
|
-
type: "info";
|
|
119
|
-
info: ApiInfo;
|
|
120
|
-
markdown?: string;
|
|
121
|
-
securitySchemes?: {
|
|
122
|
-
[key: string]: SecuritySchemeObject;
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
export interface TagPageMetadata extends ApiMetadataBase {
|
|
126
|
-
type: "tag";
|
|
127
|
-
tag: TagObject;
|
|
128
|
-
markdown?: string;
|
|
129
|
-
}
|
|
130
|
-
export interface SchemaPageMetadata extends ApiMetadataBase {
|
|
131
|
-
type: "schema";
|
|
132
|
-
schema: SchemaObject;
|
|
133
|
-
markdown?: string;
|
|
134
|
-
}
|
|
135
|
-
export interface TagGroupPageMetadata extends ApiMetadataBase {
|
|
136
|
-
type: "tagGroup";
|
|
137
|
-
name: string;
|
|
138
|
-
tags: TagObject[];
|
|
139
|
-
markdown?: string;
|
|
140
|
-
}
|
|
141
|
-
export type ApiInfo = InfoObject;
|
|
142
|
-
export interface ApiNavLink {
|
|
143
|
-
title: string;
|
|
144
|
-
permalink: string;
|
|
145
|
-
}
|
package/lib/types.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* ============================================================================
|
|
3
|
-
* Copyright (c) Palo Alto Networks
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* ========================================================================== */
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
File without changes
|