@digi-frontend/dgate-api-documentation 1.1.9 → 1.1.10

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +27 -1
  2. package/package.json +5 -8
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import React, { JSX } from 'react';
2
- import { ApiSpecModel } from '@entities/index';
3
2
 
4
3
  interface OpenAPIFile {
5
4
  openapi: string;
@@ -99,6 +98,33 @@ interface ILayoutProps$1 {
99
98
  }
100
99
  declare const Layout: ({ openApiJson, handleSave, setIsFormDirty, openApiErrors, }: ILayoutProps$1) => JSX.Element;
101
100
 
101
+ interface ApiSpecModel {
102
+ apiSpecId: string;
103
+ contextPath: string;
104
+ apiVersions: {
105
+ addVersionToContextPath: boolean;
106
+ apiSpecId: string;
107
+ name: string;
108
+ metaData: {
109
+ version: string;
110
+ };
111
+ }[];
112
+ associatedProduct: {
113
+ availableOnDevPortal: boolean;
114
+ name: string;
115
+ premium: boolean;
116
+ productId: number;
117
+ };
118
+ metaData: {
119
+ version: string;
120
+ apiVersionOf: string;
121
+ openApiJson: OpenAPIFile;
122
+ tags: string[];
123
+ createdDateTime: string;
124
+ lastUpdatedDateTime: string;
125
+ };
126
+ }
127
+
102
128
  interface ILayoutProps {
103
129
  apis?: ApiSpecModel[];
104
130
  activeApiId?: string;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@digi-frontend/dgate-api-documentation",
3
- "version": "1.1.9",
4
- "main": "dist/index.cjs.js",
5
- "module": "dist/index.esm.js",
3
+ "version": "1.1.10",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "dist",
@@ -10,8 +10,8 @@
10
10
  ],
11
11
  "scripts": {
12
12
  "test": "echo \"Error: no test specified\" && exit 1",
13
- "build": "tsc --noEmit --skipLibCheck || true && rollup -c || true",
14
- "build_old": "tsup src/index.ts --dts --format esm,cjs --out-dir dist"
13
+ "build_old": "tsc --noEmit --skipLibCheck || true && rollup -c || true",
14
+ "build": "tsup src/index.ts --dts --format esm,cjs --out-dir dist"
15
15
  },
16
16
  "exports": {
17
17
  ".": "./src/index.ts"
@@ -31,9 +31,6 @@
31
31
  "react-dom": "^18.0.0",
32
32
  "react-syntax-highlighter": "^15.6.1",
33
33
  "react-toastify": "^11.0.5",
34
- "rollup-plugin-dts": "^6.2.3",
35
- "rollup-plugin-peer-deps-external": "^2.2.4",
36
- "rollup-plugin-scss": "^4.0.1",
37
34
  "tslib": "^2.8.1",
38
35
  "yup": "^1.6.1"
39
36
  },