@twin.org/tools-core 0.0.3-next.2 → 0.0.3-next.21
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/README.md +2 -2
- package/dist/es/index.js +20 -11
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/ITypeScriptToSchemaContext.js +2 -0
- package/dist/es/models/ITypeScriptToSchemaContext.js.map +1 -0
- package/dist/es/models/ITypeScriptToSchemaDiagnostics.js +4 -0
- package/dist/es/models/ITypeScriptToSchemaDiagnostics.js.map +1 -0
- package/dist/es/models/ITypeScriptToSchemaOptions.js +4 -0
- package/dist/es/models/ITypeScriptToSchemaOptions.js.map +1 -0
- package/dist/es/utils/constants.js +43 -0
- package/dist/es/utils/constants.js.map +1 -0
- package/dist/es/utils/diagnosticReporter.js +32 -0
- package/dist/es/utils/diagnosticReporter.js.map +1 -0
- package/dist/es/utils/disallowedTypeGuard.js +151 -0
- package/dist/es/utils/disallowedTypeGuard.js.map +1 -0
- package/dist/es/utils/enum.js +152 -0
- package/dist/es/utils/enum.js.map +1 -0
- package/dist/es/utils/fileUtils.js +130 -0
- package/dist/es/utils/fileUtils.js.map +1 -0
- package/dist/es/utils/importTypeQuerySchemaResolver.js +328 -0
- package/dist/es/utils/importTypeQuerySchemaResolver.js.map +1 -0
- package/dist/es/utils/indexSignaturePatternResolver.js +94 -0
- package/dist/es/utils/indexSignaturePatternResolver.js.map +1 -0
- package/dist/es/utils/intersectionSchemaMerger.js +85 -0
- package/dist/es/utils/intersectionSchemaMerger.js.map +1 -0
- package/dist/es/utils/jsDoc.js +120 -0
- package/dist/es/utils/jsDoc.js.map +1 -0
- package/dist/es/utils/jsonSchemaBuilder.js +3373 -0
- package/dist/es/utils/jsonSchemaBuilder.js.map +1 -0
- package/dist/es/utils/mappedTypeSchemaResolver.js +231 -0
- package/dist/es/utils/mappedTypeSchemaResolver.js.map +1 -0
- package/dist/es/utils/objectTransformer.js +162 -0
- package/dist/es/utils/objectTransformer.js.map +1 -0
- package/dist/es/utils/regEx.js +128 -0
- package/dist/es/utils/regEx.js.map +1 -0
- package/dist/es/utils/resolver.js +164 -0
- package/dist/es/utils/resolver.js.map +1 -0
- package/dist/es/utils/templateLiteralPatternBuilder.js +94 -0
- package/dist/es/utils/templateLiteralPatternBuilder.js.map +1 -0
- package/dist/es/utils/typeScriptToSchema.js +112 -0
- package/dist/es/utils/typeScriptToSchema.js.map +1 -0
- package/dist/es/utils/utilityTypeSchemaMapper.js +412 -0
- package/dist/es/utils/utilityTypeSchemaMapper.js.map +1 -0
- package/dist/types/index.d.ts +20 -11
- package/dist/types/models/ITypeScriptToSchemaContext.d.ts +64 -0
- package/dist/types/models/ITypeScriptToSchemaDiagnostics.d.ts +31 -0
- package/dist/types/models/ITypeScriptToSchemaOptions.d.ts +22 -0
- package/dist/types/utils/constants.d.ts +13 -0
- package/dist/types/utils/diagnosticReporter.d.ts +17 -0
- package/dist/types/utils/disallowedTypeGuard.d.ts +16 -0
- package/dist/types/utils/enum.d.ts +42 -0
- package/dist/types/utils/fileUtils.d.ts +66 -0
- package/dist/types/utils/importTypeQuerySchemaResolver.d.ts +52 -0
- package/dist/types/utils/indexSignaturePatternResolver.d.ts +21 -0
- package/dist/types/utils/intersectionSchemaMerger.d.ts +16 -0
- package/dist/types/utils/jsDoc.d.ts +46 -0
- package/dist/types/utils/jsonSchemaBuilder.d.ts +747 -0
- package/dist/types/utils/mappedTypeSchemaResolver.d.ts +46 -0
- package/dist/types/utils/objectTransformer.d.ts +33 -0
- package/dist/types/utils/regEx.d.ts +24 -0
- package/dist/types/utils/resolver.d.ts +16 -0
- package/dist/types/utils/templateLiteralPatternBuilder.d.ts +12 -0
- package/dist/types/utils/typeScriptToSchema.d.ts +31 -0
- package/dist/types/utils/utilityTypeSchemaMapper.d.ts +92 -0
- package/docs/changelog.md +176 -1
- package/docs/examples.md +87 -1
- package/docs/reference/classes/Constants.md +29 -0
- package/docs/reference/classes/DiagnosticReporter.md +49 -0
- package/docs/reference/classes/DisallowedTypeGuard.md +35 -0
- package/docs/reference/classes/Enum.md +93 -0
- package/docs/reference/classes/FileUtils.md +237 -0
- package/docs/reference/classes/ImportTypeQuerySchemaResolver.md +87 -0
- package/docs/reference/classes/IndexSignaturePatternResolver.md +69 -0
- package/docs/reference/classes/IntersectionSchemaMerger.md +48 -0
- package/docs/reference/classes/JsDoc.md +141 -0
- package/docs/reference/classes/JsonSchemaBuilder.md +2870 -0
- package/docs/reference/classes/MappedTypeSchemaResolver.md +211 -0
- package/docs/reference/classes/ObjectTransformer.md +119 -0
- package/docs/reference/classes/RegEx.md +99 -0
- package/docs/reference/classes/Resolver.md +41 -0
- package/docs/reference/classes/TemplateLiteralPatternBuilder.md +35 -0
- package/docs/reference/classes/TypeScriptToSchema.md +91 -0
- package/docs/reference/classes/UtilityTypeSchemaMapper.md +341 -0
- package/docs/reference/index.md +20 -14
- package/docs/reference/interfaces/ITypeScriptToSchemaContext.md +113 -0
- package/docs/reference/interfaces/ITypeScriptToSchemaDiagnostics.md +55 -0
- package/docs/reference/interfaces/ITypeScriptToSchemaOptions.md +44 -0
- package/locales/en.json +32 -1
- package/package.json +4 -3
- package/dist/es/models/IJsonSchema.js +0 -2
- package/dist/es/models/IJsonSchema.js.map +0 -1
- package/dist/es/models/IOpenApi.js +0 -2
- package/dist/es/models/IOpenApi.js.map +0 -1
- package/dist/es/models/IOpenApiExample.js +0 -4
- package/dist/es/models/IOpenApiExample.js.map +0 -1
- package/dist/es/models/IOpenApiHeader.js +0 -4
- package/dist/es/models/IOpenApiHeader.js.map +0 -1
- package/dist/es/models/IOpenApiPathMethod.js +0 -2
- package/dist/es/models/IOpenApiPathMethod.js.map +0 -1
- package/dist/es/models/IOpenApiResponse.js +0 -2
- package/dist/es/models/IOpenApiResponse.js.map +0 -1
- package/dist/es/models/IOpenApiSecurityScheme.js +0 -4
- package/dist/es/models/IOpenApiSecurityScheme.js.map +0 -1
- package/dist/es/models/IPackageJson.js +0 -4
- package/dist/es/models/IPackageJson.js.map +0 -1
- package/dist/es/models/jsonTypeName.js +0 -2
- package/dist/es/models/jsonTypeName.js.map +0 -1
- package/dist/es/utils/jsonSchemaHelper.js +0 -258
- package/dist/es/utils/jsonSchemaHelper.js.map +0 -1
- package/dist/es/utils/openApiHelper.js +0 -12
- package/dist/es/utils/openApiHelper.js.map +0 -1
- package/dist/types/models/IJsonSchema.d.ts +0 -5
- package/dist/types/models/IOpenApi.d.ts +0 -54
- package/dist/types/models/IOpenApiExample.d.ts +0 -13
- package/dist/types/models/IOpenApiHeader.d.ts +0 -19
- package/dist/types/models/IOpenApiPathMethod.d.ts +0 -65
- package/dist/types/models/IOpenApiResponse.d.ts +0 -32
- package/dist/types/models/IOpenApiSecurityScheme.d.ts +0 -25
- package/dist/types/models/IPackageJson.d.ts +0 -15
- package/dist/types/models/jsonTypeName.d.ts +0 -5
- package/dist/types/utils/jsonSchemaHelper.d.ts +0 -78
- package/dist/types/utils/openApiHelper.d.ts +0 -9
- package/docs/reference/classes/JsonSchemaHelper.md +0 -233
- package/docs/reference/classes/OpenApiHelper.md +0 -21
- package/docs/reference/interfaces/IOpenApi.md +0 -103
- package/docs/reference/interfaces/IOpenApiExample.md +0 -19
- package/docs/reference/interfaces/IOpenApiHeader.md +0 -31
- package/docs/reference/interfaces/IOpenApiPathMethod.md +0 -119
- package/docs/reference/interfaces/IOpenApiResponse.md +0 -35
- package/docs/reference/interfaces/IOpenApiSecurityScheme.md +0 -43
- package/docs/reference/interfaces/IPackageJson.md +0 -23
- package/docs/reference/type-aliases/IJsonSchema.md +0 -5
- package/docs/reference/type-aliases/JsonTypeName.md +0 -5
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { IJsonSchema } from "../models/IJsonSchema.js";
|
|
2
|
-
/**
|
|
3
|
-
* Helper class for JSON Schema processing.
|
|
4
|
-
*/
|
|
5
|
-
export declare class JsonSchemaHelper {
|
|
6
|
-
/**
|
|
7
|
-
* The JSON Schema version used.
|
|
8
|
-
*/
|
|
9
|
-
static readonly SCHEMA_VERSION = "https://json-schema.org/draft/2020-12/schema";
|
|
10
|
-
/**
|
|
11
|
-
* Process arrays in the schema object.
|
|
12
|
-
* @param schemaObject The schema object to process.
|
|
13
|
-
*/
|
|
14
|
-
static processArrays(schemaObject: IJsonSchema): void;
|
|
15
|
-
/**
|
|
16
|
-
* Process arrays in the schema object.
|
|
17
|
-
* @param schemaDictionary The schema object to process.
|
|
18
|
-
*/
|
|
19
|
-
static processSchemaDictionary(schemaDictionary?: {
|
|
20
|
-
[key: string]: IJsonSchema;
|
|
21
|
-
}): void;
|
|
22
|
-
/**
|
|
23
|
-
* Process arrays in the schema object.
|
|
24
|
-
* @param schemaArray The schema object to process.
|
|
25
|
-
*/
|
|
26
|
-
static processSchemaArray(schemaArray?: IJsonSchema[]): void;
|
|
27
|
-
/**
|
|
28
|
-
* Cleanup TypeScript markers from the type name.
|
|
29
|
-
* @param typeName The definition string to clean up.
|
|
30
|
-
* @returns The cleaned up definition string.
|
|
31
|
-
*/
|
|
32
|
-
static normaliseTypeName(typeName: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* Extract type from properties definition.
|
|
35
|
-
* @param allTypes All the known types.
|
|
36
|
-
* @param schema The schema to extract from.
|
|
37
|
-
* @param output The output types.
|
|
38
|
-
*/
|
|
39
|
-
static extractTypesFromSchema(allTypes: {
|
|
40
|
-
[id: string]: IJsonSchema;
|
|
41
|
-
}, schema: IJsonSchema, output: {
|
|
42
|
-
[id: string]: IJsonSchema;
|
|
43
|
-
}): void;
|
|
44
|
-
/**
|
|
45
|
-
* Extract the required types from all the known schemas.
|
|
46
|
-
* @param allSchemas All the known schemas.
|
|
47
|
-
* @param requiredTypes The required types.
|
|
48
|
-
* @param referencedSchemas The references schemas.
|
|
49
|
-
*/
|
|
50
|
-
static extractTypes(allSchemas: {
|
|
51
|
-
[id: string]: IJsonSchema;
|
|
52
|
-
}, requiredTypes: string[], referencedSchemas: {
|
|
53
|
-
[id: string]: IJsonSchema;
|
|
54
|
-
}): void;
|
|
55
|
-
/**
|
|
56
|
-
* Expand the types inline.
|
|
57
|
-
* @param schemas The schemas to include the expanded types.
|
|
58
|
-
* @param expandedTypes The types to expand.
|
|
59
|
-
*/
|
|
60
|
-
static expandTypes(schemas: {
|
|
61
|
-
[id: string]: IJsonSchema;
|
|
62
|
-
}, expandedTypes: string[]): void;
|
|
63
|
-
/**
|
|
64
|
-
* Expand the types inline.
|
|
65
|
-
* @param allSchemas All the known schemas.
|
|
66
|
-
* @param schema The schemas to include the expanded types.
|
|
67
|
-
* @param expandedTypes The types to expand.
|
|
68
|
-
*/
|
|
69
|
-
static expandSchemaTypes(allSchemas: {
|
|
70
|
-
[id: string]: IJsonSchema;
|
|
71
|
-
}, schema: IJsonSchema, expandedTypes: string[]): void;
|
|
72
|
-
/**
|
|
73
|
-
* Convert a string pattern to a regular expression.
|
|
74
|
-
* @param matchPattern The pattern to convert.
|
|
75
|
-
* @returns The regular expression.
|
|
76
|
-
*/
|
|
77
|
-
static stringToRegEx(matchPattern: string): RegExp;
|
|
78
|
-
}
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
# Class: JsonSchemaHelper
|
|
2
|
-
|
|
3
|
-
Helper class for JSON Schema processing.
|
|
4
|
-
|
|
5
|
-
## Constructors
|
|
6
|
-
|
|
7
|
-
### Constructor
|
|
8
|
-
|
|
9
|
-
> **new JsonSchemaHelper**(): `JsonSchemaHelper`
|
|
10
|
-
|
|
11
|
-
#### Returns
|
|
12
|
-
|
|
13
|
-
`JsonSchemaHelper`
|
|
14
|
-
|
|
15
|
-
## Properties
|
|
16
|
-
|
|
17
|
-
### SCHEMA\_VERSION
|
|
18
|
-
|
|
19
|
-
> `readonly` `static` **SCHEMA\_VERSION**: `"https://json-schema.org/draft/2020-12/schema"` = `"https://json-schema.org/draft/2020-12/schema"`
|
|
20
|
-
|
|
21
|
-
The JSON Schema version used.
|
|
22
|
-
|
|
23
|
-
## Methods
|
|
24
|
-
|
|
25
|
-
### processArrays()
|
|
26
|
-
|
|
27
|
-
> `static` **processArrays**(`schemaObject`): `void`
|
|
28
|
-
|
|
29
|
-
Process arrays in the schema object.
|
|
30
|
-
|
|
31
|
-
#### Parameters
|
|
32
|
-
|
|
33
|
-
##### schemaObject
|
|
34
|
-
|
|
35
|
-
`AnySchemaObject`
|
|
36
|
-
|
|
37
|
-
The schema object to process.
|
|
38
|
-
|
|
39
|
-
#### Returns
|
|
40
|
-
|
|
41
|
-
`void`
|
|
42
|
-
|
|
43
|
-
***
|
|
44
|
-
|
|
45
|
-
### processSchemaDictionary()
|
|
46
|
-
|
|
47
|
-
> `static` **processSchemaDictionary**(`schemaDictionary?`): `void`
|
|
48
|
-
|
|
49
|
-
Process arrays in the schema object.
|
|
50
|
-
|
|
51
|
-
#### Parameters
|
|
52
|
-
|
|
53
|
-
##### schemaDictionary?
|
|
54
|
-
|
|
55
|
-
The schema object to process.
|
|
56
|
-
|
|
57
|
-
#### Returns
|
|
58
|
-
|
|
59
|
-
`void`
|
|
60
|
-
|
|
61
|
-
***
|
|
62
|
-
|
|
63
|
-
### processSchemaArray()
|
|
64
|
-
|
|
65
|
-
> `static` **processSchemaArray**(`schemaArray?`): `void`
|
|
66
|
-
|
|
67
|
-
Process arrays in the schema object.
|
|
68
|
-
|
|
69
|
-
#### Parameters
|
|
70
|
-
|
|
71
|
-
##### schemaArray?
|
|
72
|
-
|
|
73
|
-
`AnySchemaObject`[]
|
|
74
|
-
|
|
75
|
-
The schema object to process.
|
|
76
|
-
|
|
77
|
-
#### Returns
|
|
78
|
-
|
|
79
|
-
`void`
|
|
80
|
-
|
|
81
|
-
***
|
|
82
|
-
|
|
83
|
-
### normaliseTypeName()
|
|
84
|
-
|
|
85
|
-
> `static` **normaliseTypeName**(`typeName`): `string`
|
|
86
|
-
|
|
87
|
-
Cleanup TypeScript markers from the type name.
|
|
88
|
-
|
|
89
|
-
#### Parameters
|
|
90
|
-
|
|
91
|
-
##### typeName
|
|
92
|
-
|
|
93
|
-
`string`
|
|
94
|
-
|
|
95
|
-
The definition string to clean up.
|
|
96
|
-
|
|
97
|
-
#### Returns
|
|
98
|
-
|
|
99
|
-
`string`
|
|
100
|
-
|
|
101
|
-
The cleaned up definition string.
|
|
102
|
-
|
|
103
|
-
***
|
|
104
|
-
|
|
105
|
-
### extractTypesFromSchema()
|
|
106
|
-
|
|
107
|
-
> `static` **extractTypesFromSchema**(`allTypes`, `schema`, `output`): `void`
|
|
108
|
-
|
|
109
|
-
Extract type from properties definition.
|
|
110
|
-
|
|
111
|
-
#### Parameters
|
|
112
|
-
|
|
113
|
-
##### allTypes
|
|
114
|
-
|
|
115
|
-
All the known types.
|
|
116
|
-
|
|
117
|
-
##### schema
|
|
118
|
-
|
|
119
|
-
`AnySchemaObject`
|
|
120
|
-
|
|
121
|
-
The schema to extract from.
|
|
122
|
-
|
|
123
|
-
##### output
|
|
124
|
-
|
|
125
|
-
The output types.
|
|
126
|
-
|
|
127
|
-
#### Returns
|
|
128
|
-
|
|
129
|
-
`void`
|
|
130
|
-
|
|
131
|
-
***
|
|
132
|
-
|
|
133
|
-
### extractTypes()
|
|
134
|
-
|
|
135
|
-
> `static` **extractTypes**(`allSchemas`, `requiredTypes`, `referencedSchemas`): `void`
|
|
136
|
-
|
|
137
|
-
Extract the required types from all the known schemas.
|
|
138
|
-
|
|
139
|
-
#### Parameters
|
|
140
|
-
|
|
141
|
-
##### allSchemas
|
|
142
|
-
|
|
143
|
-
All the known schemas.
|
|
144
|
-
|
|
145
|
-
##### requiredTypes
|
|
146
|
-
|
|
147
|
-
`string`[]
|
|
148
|
-
|
|
149
|
-
The required types.
|
|
150
|
-
|
|
151
|
-
##### referencedSchemas
|
|
152
|
-
|
|
153
|
-
The references schemas.
|
|
154
|
-
|
|
155
|
-
#### Returns
|
|
156
|
-
|
|
157
|
-
`void`
|
|
158
|
-
|
|
159
|
-
***
|
|
160
|
-
|
|
161
|
-
### expandTypes()
|
|
162
|
-
|
|
163
|
-
> `static` **expandTypes**(`schemas`, `expandedTypes`): `void`
|
|
164
|
-
|
|
165
|
-
Expand the types inline.
|
|
166
|
-
|
|
167
|
-
#### Parameters
|
|
168
|
-
|
|
169
|
-
##### schemas
|
|
170
|
-
|
|
171
|
-
The schemas to include the expanded types.
|
|
172
|
-
|
|
173
|
-
##### expandedTypes
|
|
174
|
-
|
|
175
|
-
`string`[]
|
|
176
|
-
|
|
177
|
-
The types to expand.
|
|
178
|
-
|
|
179
|
-
#### Returns
|
|
180
|
-
|
|
181
|
-
`void`
|
|
182
|
-
|
|
183
|
-
***
|
|
184
|
-
|
|
185
|
-
### expandSchemaTypes()
|
|
186
|
-
|
|
187
|
-
> `static` **expandSchemaTypes**(`allSchemas`, `schema`, `expandedTypes`): `void`
|
|
188
|
-
|
|
189
|
-
Expand the types inline.
|
|
190
|
-
|
|
191
|
-
#### Parameters
|
|
192
|
-
|
|
193
|
-
##### allSchemas
|
|
194
|
-
|
|
195
|
-
All the known schemas.
|
|
196
|
-
|
|
197
|
-
##### schema
|
|
198
|
-
|
|
199
|
-
`AnySchemaObject`
|
|
200
|
-
|
|
201
|
-
The schemas to include the expanded types.
|
|
202
|
-
|
|
203
|
-
##### expandedTypes
|
|
204
|
-
|
|
205
|
-
`string`[]
|
|
206
|
-
|
|
207
|
-
The types to expand.
|
|
208
|
-
|
|
209
|
-
#### Returns
|
|
210
|
-
|
|
211
|
-
`void`
|
|
212
|
-
|
|
213
|
-
***
|
|
214
|
-
|
|
215
|
-
### stringToRegEx()
|
|
216
|
-
|
|
217
|
-
> `static` **stringToRegEx**(`matchPattern`): `RegExp`
|
|
218
|
-
|
|
219
|
-
Convert a string pattern to a regular expression.
|
|
220
|
-
|
|
221
|
-
#### Parameters
|
|
222
|
-
|
|
223
|
-
##### matchPattern
|
|
224
|
-
|
|
225
|
-
`string`
|
|
226
|
-
|
|
227
|
-
The pattern to convert.
|
|
228
|
-
|
|
229
|
-
#### Returns
|
|
230
|
-
|
|
231
|
-
`RegExp`
|
|
232
|
-
|
|
233
|
-
The regular expression.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Class: OpenApiHelper
|
|
2
|
-
|
|
3
|
-
Helper class for OpenAPI processing.
|
|
4
|
-
|
|
5
|
-
## Constructors
|
|
6
|
-
|
|
7
|
-
### Constructor
|
|
8
|
-
|
|
9
|
-
> **new OpenApiHelper**(): `OpenApiHelper`
|
|
10
|
-
|
|
11
|
-
#### Returns
|
|
12
|
-
|
|
13
|
-
`OpenApiHelper`
|
|
14
|
-
|
|
15
|
-
## Properties
|
|
16
|
-
|
|
17
|
-
### API\_VERSION
|
|
18
|
-
|
|
19
|
-
> `readonly` `static` **API\_VERSION**: `"3.1.1"` = `"3.1.1"`
|
|
20
|
-
|
|
21
|
-
The OpenAPI version used.
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
# Interface: IOpenApi
|
|
2
|
-
|
|
3
|
-
The Open API config definition.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### openapi
|
|
8
|
-
|
|
9
|
-
> **openapi**: `string`
|
|
10
|
-
|
|
11
|
-
The open api version.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### info
|
|
16
|
-
|
|
17
|
-
> **info**: `object`
|
|
18
|
-
|
|
19
|
-
Info.
|
|
20
|
-
|
|
21
|
-
#### title
|
|
22
|
-
|
|
23
|
-
> **title**: `string`
|
|
24
|
-
|
|
25
|
-
#### version
|
|
26
|
-
|
|
27
|
-
> **version**: `string`
|
|
28
|
-
|
|
29
|
-
#### description
|
|
30
|
-
|
|
31
|
-
> **description**: `string`
|
|
32
|
-
|
|
33
|
-
#### license?
|
|
34
|
-
|
|
35
|
-
> `optional` **license**: `object`
|
|
36
|
-
|
|
37
|
-
##### license.name
|
|
38
|
-
|
|
39
|
-
> **name**: `string`
|
|
40
|
-
|
|
41
|
-
##### license.url
|
|
42
|
-
|
|
43
|
-
> **url**: `string`
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
### servers?
|
|
48
|
-
|
|
49
|
-
> `optional` **servers**: `object`[]
|
|
50
|
-
|
|
51
|
-
The servers for the endpoints.
|
|
52
|
-
|
|
53
|
-
#### url
|
|
54
|
-
|
|
55
|
-
> **url**: `string`
|
|
56
|
-
|
|
57
|
-
***
|
|
58
|
-
|
|
59
|
-
### tags?
|
|
60
|
-
|
|
61
|
-
> `optional` **tags**: `object`[]
|
|
62
|
-
|
|
63
|
-
Tags for the endpoints.
|
|
64
|
-
|
|
65
|
-
#### name
|
|
66
|
-
|
|
67
|
-
> **name**: `string`
|
|
68
|
-
|
|
69
|
-
#### description
|
|
70
|
-
|
|
71
|
-
> **description**: `string`
|
|
72
|
-
|
|
73
|
-
***
|
|
74
|
-
|
|
75
|
-
### paths
|
|
76
|
-
|
|
77
|
-
> **paths**: `object`
|
|
78
|
-
|
|
79
|
-
The paths.
|
|
80
|
-
|
|
81
|
-
#### Index Signature
|
|
82
|
-
|
|
83
|
-
\[`path`: `string`\]: `object`
|
|
84
|
-
|
|
85
|
-
***
|
|
86
|
-
|
|
87
|
-
### components?
|
|
88
|
-
|
|
89
|
-
> `optional` **components**: `object`
|
|
90
|
-
|
|
91
|
-
The components.
|
|
92
|
-
|
|
93
|
-
#### schemas?
|
|
94
|
-
|
|
95
|
-
> `optional` **schemas**: `AnySchemaObject`
|
|
96
|
-
|
|
97
|
-
#### securitySchemes?
|
|
98
|
-
|
|
99
|
-
> `optional` **securitySchemes**: `object`
|
|
100
|
-
|
|
101
|
-
##### Index Signature
|
|
102
|
-
|
|
103
|
-
\[`name`: `string`\]: [`IOpenApiSecurityScheme`](IOpenApiSecurityScheme.md)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Interface: IOpenApiExample
|
|
2
|
-
|
|
3
|
-
The Open API config definition.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### summary?
|
|
8
|
-
|
|
9
|
-
> `optional` **summary**: `string`
|
|
10
|
-
|
|
11
|
-
The summary of the example.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### value
|
|
16
|
-
|
|
17
|
-
> **value**: `unknown`
|
|
18
|
-
|
|
19
|
-
The value of the example.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Interface: IOpenApiHeader
|
|
2
|
-
|
|
3
|
-
The Open API config definition.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### schema?
|
|
8
|
-
|
|
9
|
-
> `optional` **schema**: `object`
|
|
10
|
-
|
|
11
|
-
The schema of the header.
|
|
12
|
-
|
|
13
|
-
#### type
|
|
14
|
-
|
|
15
|
-
> **type**: `string`
|
|
16
|
-
|
|
17
|
-
***
|
|
18
|
-
|
|
19
|
-
### description?
|
|
20
|
-
|
|
21
|
-
> `optional` **description**: `string`
|
|
22
|
-
|
|
23
|
-
The description of the header.
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
|
-
### format?
|
|
28
|
-
|
|
29
|
-
> `optional` **format**: `string`
|
|
30
|
-
|
|
31
|
-
The format of the header.
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
# Interface: IOpenApiPathMethod
|
|
2
|
-
|
|
3
|
-
The Open API config definition.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### operationId
|
|
8
|
-
|
|
9
|
-
> **operationId**: `string`
|
|
10
|
-
|
|
11
|
-
The operation id.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### summary
|
|
16
|
-
|
|
17
|
-
> **summary**: `string`
|
|
18
|
-
|
|
19
|
-
Summary.
|
|
20
|
-
|
|
21
|
-
***
|
|
22
|
-
|
|
23
|
-
### tags?
|
|
24
|
-
|
|
25
|
-
> `optional` **tags**: `string`[]
|
|
26
|
-
|
|
27
|
-
Tags.
|
|
28
|
-
|
|
29
|
-
***
|
|
30
|
-
|
|
31
|
-
### parameters?
|
|
32
|
-
|
|
33
|
-
> `optional` **parameters**: `object`[]
|
|
34
|
-
|
|
35
|
-
Parameters.
|
|
36
|
-
|
|
37
|
-
#### name
|
|
38
|
-
|
|
39
|
-
> **name**: `string`
|
|
40
|
-
|
|
41
|
-
#### in
|
|
42
|
-
|
|
43
|
-
> **in**: `string`
|
|
44
|
-
|
|
45
|
-
#### description?
|
|
46
|
-
|
|
47
|
-
> `optional` **description**: `string`
|
|
48
|
-
|
|
49
|
-
#### required
|
|
50
|
-
|
|
51
|
-
> **required**: `boolean`
|
|
52
|
-
|
|
53
|
-
#### schema
|
|
54
|
-
|
|
55
|
-
> **schema**: `object`
|
|
56
|
-
|
|
57
|
-
##### schema.type?
|
|
58
|
-
|
|
59
|
-
> `optional` **type**: `"string"` \| `"number"` \| `"boolean"` \| `"object"` \| `"integer"` \| `"null"` \| `"array"` \| (`"string"` \| `"number"` \| `"boolean"` \| `"object"` \| `"integer"` \| `"null"` \| `"array"`)[]
|
|
60
|
-
|
|
61
|
-
##### schema.enum?
|
|
62
|
-
|
|
63
|
-
> `optional` **enum**: `AnySchemaObject`[]
|
|
64
|
-
|
|
65
|
-
##### schema.$ref?
|
|
66
|
-
|
|
67
|
-
> `optional` **$ref**: `string`
|
|
68
|
-
|
|
69
|
-
#### style?
|
|
70
|
-
|
|
71
|
-
> `optional` **style**: `string`
|
|
72
|
-
|
|
73
|
-
***
|
|
74
|
-
|
|
75
|
-
### requestBody?
|
|
76
|
-
|
|
77
|
-
> `optional` **requestBody**: `object`
|
|
78
|
-
|
|
79
|
-
Request body.
|
|
80
|
-
|
|
81
|
-
#### required
|
|
82
|
-
|
|
83
|
-
> **required**: `boolean`
|
|
84
|
-
|
|
85
|
-
#### description?
|
|
86
|
-
|
|
87
|
-
> `optional` **description**: `string`
|
|
88
|
-
|
|
89
|
-
#### content?
|
|
90
|
-
|
|
91
|
-
> `optional` **content**: `object`
|
|
92
|
-
|
|
93
|
-
##### Index Signature
|
|
94
|
-
|
|
95
|
-
\[`contentType`: `string`\]: `object`
|
|
96
|
-
|
|
97
|
-
***
|
|
98
|
-
|
|
99
|
-
### responses?
|
|
100
|
-
|
|
101
|
-
> `optional` **responses**: `object`
|
|
102
|
-
|
|
103
|
-
Response body.
|
|
104
|
-
|
|
105
|
-
#### Index Signature
|
|
106
|
-
|
|
107
|
-
\[`code`: `string`\]: [`IOpenApiResponse`](IOpenApiResponse.md)
|
|
108
|
-
|
|
109
|
-
***
|
|
110
|
-
|
|
111
|
-
### security?
|
|
112
|
-
|
|
113
|
-
> `optional` **security**: `object`[]
|
|
114
|
-
|
|
115
|
-
Security model for the API.
|
|
116
|
-
|
|
117
|
-
#### Index Signature
|
|
118
|
-
|
|
119
|
-
\[`name`: `string`\]: `string`[]
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Interface: IOpenApiResponse
|
|
2
|
-
|
|
3
|
-
The Open API config definition.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### description?
|
|
8
|
-
|
|
9
|
-
> `optional` **description**: `string`
|
|
10
|
-
|
|
11
|
-
Descriptions for the response.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### content?
|
|
16
|
-
|
|
17
|
-
> `optional` **content**: `object`
|
|
18
|
-
|
|
19
|
-
Content for the response.
|
|
20
|
-
|
|
21
|
-
#### Index Signature
|
|
22
|
-
|
|
23
|
-
\[`contentType`: `string`\]: `object`
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
|
-
### headers?
|
|
28
|
-
|
|
29
|
-
> `optional` **headers**: `object`
|
|
30
|
-
|
|
31
|
-
The headers for the response.
|
|
32
|
-
|
|
33
|
-
#### Index Signature
|
|
34
|
-
|
|
35
|
-
\[`id`: `string`\]: [`IOpenApiHeader`](IOpenApiHeader.md)
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Interface: IOpenApiSecurityScheme
|
|
2
|
-
|
|
3
|
-
The Open API config definition for security scheme.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### type?
|
|
8
|
-
|
|
9
|
-
> `optional` **type**: `string`
|
|
10
|
-
|
|
11
|
-
The type of the security schema.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### scheme?
|
|
16
|
-
|
|
17
|
-
> `optional` **scheme**: `string`
|
|
18
|
-
|
|
19
|
-
The scheme method.
|
|
20
|
-
|
|
21
|
-
***
|
|
22
|
-
|
|
23
|
-
### bearerFormat?
|
|
24
|
-
|
|
25
|
-
> `optional` **bearerFormat**: `string`
|
|
26
|
-
|
|
27
|
-
The bearer format.
|
|
28
|
-
|
|
29
|
-
***
|
|
30
|
-
|
|
31
|
-
### in?
|
|
32
|
-
|
|
33
|
-
> `optional` **in**: `string`
|
|
34
|
-
|
|
35
|
-
Where is the token located.
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
|
-
### name?
|
|
40
|
-
|
|
41
|
-
> `optional` **name**: `string`
|
|
42
|
-
|
|
43
|
-
What is the name of the token.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Interface: IPackageJson
|
|
2
|
-
|
|
3
|
-
Configuration for each individual package.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### name
|
|
8
|
-
|
|
9
|
-
> **name**: `string`
|
|
10
|
-
|
|
11
|
-
The name of the package.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### dependencies?
|
|
16
|
-
|
|
17
|
-
> `optional` **dependencies**: `object`
|
|
18
|
-
|
|
19
|
-
The dependencies for the package.
|
|
20
|
-
|
|
21
|
-
#### Index Signature
|
|
22
|
-
|
|
23
|
-
\[`id`: `string`\]: `string`
|