@teemill/schema 0.2.3 → 0.2.4

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/schema@0.2.3
1
+ ## @teemill/schema@0.2.4
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/schema@0.2.3 --save
39
+ npm install @teemill/schema@0.2.4 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,3 +44,43 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
+
48
+ ### Documentation for API Endpoints
49
+
50
+ All URIs are relative to *https://localhost:8080/v1/schema*
51
+
52
+ Class | Method | HTTP request | Description
53
+ ------------ | ------------- | ------------- | -------------
54
+ *ApisApi* | [**getApi**](docs/ApisApi.md#getapi) | **GET** /{api} | Get api
55
+ *ApisApi* | [**listApis**](docs/ApisApi.md#listapis) | **GET** / | List apis
56
+
57
+
58
+ ### Documentation For Models
59
+
60
+ - [Api](docs/Api.md)
61
+ - [ApiEndpointsInner](docs/ApiEndpointsInner.md)
62
+ - [ApiError](docs/ApiError.md)
63
+ - [Apis](docs/Apis.md)
64
+ - [ValidationError](docs/ValidationError.md)
65
+
66
+
67
+ <a id="documentation-for-authorization"></a>
68
+ ## Documentation For Authorization
69
+
70
+
71
+ Authentication schemes defined for the API:
72
+ <a id="api-key"></a>
73
+ ### api-key
74
+
75
+ - **Type**: API key
76
+ - **API key parameter name**: Authorization
77
+ - **Location**: HTTP header
78
+
79
+ <a id="session-oauth"></a>
80
+ ### session-oauth
81
+
82
+ - **Type**: OAuth
83
+ - **Flow**: password
84
+ - **Authorization URL**:
85
+ - **Scopes**: N/A
86
+
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -89,7 +89,12 @@ export class Configuration {
89
89
  this.accessToken = param.accessToken;
90
90
  this.basePath = param.basePath;
91
91
  this.serverIndex = param.serverIndex;
92
- this.baseOptions = param.baseOptions;
92
+ this.baseOptions = {
93
+ ...param.baseOptions,
94
+ headers: {
95
+ ...param.baseOptions?.headers,
96
+ },
97
+ };
93
98
  this.formDataCtor = param.formDataCtor;
94
99
  }
95
100
 
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Schema API
6
6
  * View PodOS API Schemas
7
7
  *
8
- * The version of the OpenAPI document: 0.2.3
8
+ * The version of the OpenAPI document: 0.2.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Schema API
6
6
  * View PodOS API Schemas
7
7
  *
8
- * The version of the OpenAPI document: 0.2.3
8
+ * The version of the OpenAPI document: 0.2.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Schema API
6
6
  * View PodOS API Schemas
7
7
  *
8
- * The version of the OpenAPI document: 0.2.3
8
+ * The version of the OpenAPI document: 0.2.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Schema API
6
6
  * View PodOS API Schemas
7
7
  *
8
- * The version of the OpenAPI document: 0.2.3
8
+ * The version of the OpenAPI document: 0.2.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,13 +16,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Configuration = void 0;
17
17
  class Configuration {
18
18
  constructor(param = {}) {
19
+ var _a;
19
20
  this.apiKey = param.apiKey;
20
21
  this.username = param.username;
21
22
  this.password = param.password;
22
23
  this.accessToken = param.accessToken;
23
24
  this.basePath = param.basePath;
24
25
  this.serverIndex = param.serverIndex;
25
- this.baseOptions = param.baseOptions;
26
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
26
27
  this.formDataCtor = param.formDataCtor;
27
28
  }
28
29
  /**
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,13 +13,14 @@
13
13
  */
14
14
  export class Configuration {
15
15
  constructor(param = {}) {
16
+ var _a;
16
17
  this.apiKey = param.apiKey;
17
18
  this.username = param.username;
18
19
  this.password = param.password;
19
20
  this.accessToken = param.accessToken;
20
21
  this.basePath = param.basePath;
21
22
  this.serverIndex = param.serverIndex;
22
- this.baseOptions = param.baseOptions;
23
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
23
24
  this.formDataCtor = param.formDataCtor;
24
25
  }
25
26
  /**
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Schema API
3
3
  * View PodOS API Schemas
4
4
  *
5
- * The version of the OpenAPI document: 0.2.3
5
+ * The version of the OpenAPI document: 0.2.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Schema API
6
6
  * View PodOS API Schemas
7
7
  *
8
- * The version of the OpenAPI document: 0.2.3
8
+ * The version of the OpenAPI document: 0.2.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Api.md ADDED
@@ -0,0 +1,32 @@
1
+ # Api
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **name** | **string** | | [default to undefined]
10
+ **description** | **string** | | [default to undefined]
11
+ **version** | **string** | | [default to undefined]
12
+ **updatedAt** | **string** | | [default to undefined]
13
+ **endpoints** | [**Array&lt;ApiEndpointsInner&gt;**](ApiEndpointsInner.md) | | [default to undefined]
14
+ **schema** | **object** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { Api } from '@teemill/schema';
20
+
21
+ const instance: Api = {
22
+ id,
23
+ name,
24
+ description,
25
+ version,
26
+ updatedAt,
27
+ endpoints,
28
+ schema,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # ApiEndpointsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **method** | **string** | | [default to undefined]
10
+ **path** | **string** | | [default to undefined]
11
+ **tags** | **Array&lt;string&gt;** | | [default to undefined]
12
+ **internal** | **boolean** | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ApiEndpointsInner } from '@teemill/schema';
18
+
19
+ const instance: ApiEndpointsInner = {
20
+ name,
21
+ method,
22
+ path,
23
+ tags,
24
+ internal,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # ApiError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiError } from '@teemill/schema';
15
+
16
+ const instance: ApiError = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Apis.md ADDED
@@ -0,0 +1,20 @@
1
+ # Apis
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **apis** | [**Array&lt;Api&gt;**](Api.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { Apis } from '@teemill/schema';
14
+
15
+ const instance: Apis = {
16
+ apis,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,121 @@
1
+ # ApisApi
2
+
3
+ All URIs are relative to *https://localhost:8080/v1/schema*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getApi**](#getapi) | **GET** /{api} | Get api|
8
+ |[**listApis**](#listapis) | **GET** / | List apis|
9
+
10
+ # **getApi**
11
+ > Api getApi()
12
+
13
+ Get an API
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ApisApi,
20
+ Configuration
21
+ } from '@teemill/schema';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ApisApi(configuration);
25
+
26
+ let api: string; //API name (default to undefined)
27
+ let project: string; //Project unique identifier (optional) (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.getApi(
30
+ api,
31
+ project
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **api** | [**string**] | API name | defaults to undefined|
40
+ | **project** | [**string**] | Project unique identifier | (optional) defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **Api**
46
+
47
+ ### Authorization
48
+
49
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Successfully found api | - |
61
+ |**400** | Failed validation | - |
62
+ |**500** | Unknown server error | - |
63
+
64
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
65
+
66
+ # **listApis**
67
+ > Apis listApis()
68
+
69
+ List all available APIs
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ ApisApi,
76
+ Configuration
77
+ } from '@teemill/schema';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new ApisApi(configuration);
81
+
82
+ let project: string; //Project unique identifier (optional) (default to undefined)
83
+ let search: string; //Search term used to filter results by name or identifier (optional) (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.listApis(
86
+ project,
87
+ search
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **project** | [**string**] | Project unique identifier | (optional) defaults to undefined|
96
+ | **search** | [**string**] | Search term used to filter results by name or identifier | (optional) defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **Apis**
102
+
103
+ ### Authorization
104
+
105
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**200** | Successfully listed apis | - |
117
+ |**400** | Failed validation | - |
118
+ |**500** | Unknown server error | - |
119
+
120
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
121
+
@@ -0,0 +1,22 @@
1
+ # ValidationError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **errors** | **{ [key: string]: Array&lt;string&gt;; }** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ValidationError } from '@teemill/schema';
15
+
16
+ const instance: ValidationError = {
17
+ message,
18
+ errors,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.3
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/schema",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "OpenAPI client for @teemill/schema",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {