docusaurus-plugin-openapi-docs 0.0.0-780 → 0.0.0-783

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 @@
1
+ export declare function createCallbackMethodEndpoint(method: String, path: String): string[];
@@ -0,0 +1,21 @@
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 });
9
+ exports.createCallbackMethodEndpoint = void 0;
10
+ const utils_1 = require("./utils");
11
+ function createCallbackMethodEndpoint(method, path) {
12
+ return [
13
+ (0, utils_1.create)("MethodEndpoint", {
14
+ method: method,
15
+ path: path,
16
+ context: "callback",
17
+ }),
18
+ "\n\n",
19
+ ];
20
+ }
21
+ exports.createCallbackMethodEndpoint = createCallbackMethodEndpoint;
@@ -7,8 +7,8 @@
7
7
  * ========================================================================== */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.createCallbacks = void 0;
10
+ const createCallbackMethodEndpoint_1 = require("./createCallbackMethodEndpoint");
10
11
  const createDescription_1 = require("./createDescription");
11
- const createMethodEndpoint_1 = require("./createMethodEndpoint");
12
12
  const createRequestBodyDetails_1 = require("./createRequestBodyDetails");
13
13
  const createStatusCodes_1 = require("./createStatusCodes");
14
14
  const utils_1 = require("./utils");
@@ -54,7 +54,7 @@ function createCallbacks({ callbacks }) {
54
54
  label: `${method.toUpperCase()} ${name}`,
55
55
  value: `${method}-${name}`,
56
56
  children: [
57
- (0, createMethodEndpoint_1.createMethodEndpoint)(method, path),
57
+ (0, createCallbackMethodEndpoint_1.createCallbackMethodEndpoint)(method, path),
58
58
  // TODO: add `deprecation notice` when markdown support is added
59
59
  (0, createDescription_1.createDescription)(description),
60
60
  (0, createRequestBodyDetails_1.createRequestBodyDetails)({
@@ -9,6 +9,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.createMethodEndpoint = void 0;
10
10
  const utils_1 = require("./utils");
11
11
  function createMethodEndpoint(method, path) {
12
- return [(0, utils_1.create)("MethodEndpoint", { method: method, path: path }), "\n\n"];
12
+ return [
13
+ (0, utils_1.create)("MethodEndpoint", {
14
+ method: method,
15
+ path: path,
16
+ context: "endpoint",
17
+ }),
18
+ "\n\n",
19
+ ];
13
20
  }
14
21
  exports.createMethodEndpoint = createMethodEndpoint;
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-780",
4
+ "version": "0.0.0-783",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=14"
64
64
  },
65
- "gitHead": "43440ab62a83e241792cc9edbcee95cf14f2195d"
65
+ "gitHead": "fde0fbcb9f5e91b02506de828ad39cc295f68608"
66
66
  }
@@ -0,0 +1,19 @@
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+
8
+ import { create } from "./utils";
9
+
10
+ export function createCallbackMethodEndpoint(method: String, path: String) {
11
+ return [
12
+ create("MethodEndpoint", {
13
+ method: method,
14
+ path: path,
15
+ context: "callback",
16
+ }),
17
+ "\n\n",
18
+ ];
19
+ }
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  * ========================================================================== */
7
7
 
8
+ import { createCallbackMethodEndpoint } from "./createCallbackMethodEndpoint";
8
9
  import { createDescription } from "./createDescription";
9
- import { createMethodEndpoint } from "./createMethodEndpoint";
10
10
  import { createRequestBodyDetails } from "./createRequestBodyDetails";
11
11
  import { createStatusCodes } from "./createStatusCodes";
12
12
  import { create } from "./utils";
@@ -78,7 +78,7 @@ export function createCallbacks({ callbacks }: Props) {
78
78
  label: `${method.toUpperCase()} ${name}`,
79
79
  value: `${method}-${name}`,
80
80
  children: [
81
- createMethodEndpoint(method, path),
81
+ createCallbackMethodEndpoint(method, path),
82
82
  // TODO: add `deprecation notice` when markdown support is added
83
83
  createDescription(description),
84
84
  createRequestBodyDetails({
@@ -8,5 +8,12 @@
8
8
  import { create } from "./utils";
9
9
 
10
10
  export function createMethodEndpoint(method: String, path: String) {
11
- return [create("MethodEndpoint", { method: method, path: path }), "\n\n"];
11
+ return [
12
+ create("MethodEndpoint", {
13
+ method: method,
14
+ path: path,
15
+ context: "endpoint",
16
+ }),
17
+ "\n\n",
18
+ ];
12
19
  }