@teemill/schema 0.2.2 → 0.2.3
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/api.ts +129 -92
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +118 -81
- package/dist/api.js +56 -56
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +118 -81
- package/dist/esm/api.js +51 -51
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/schema@0.2.
|
|
1
|
+
## @teemill/schema@0.2.3
|
|
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.
|
|
39
|
+
npm install @teemill/schema@0.2.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,83 +26,120 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
|
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @export
|
|
29
|
-
* @interface
|
|
29
|
+
* @interface Api
|
|
30
30
|
*/
|
|
31
|
-
export interface
|
|
31
|
+
export interface Api {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {string}
|
|
35
|
-
* @memberof
|
|
35
|
+
* @memberof Api
|
|
36
36
|
*/
|
|
37
|
-
'
|
|
37
|
+
'id': string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {string}
|
|
41
|
-
* @memberof
|
|
41
|
+
* @memberof Api
|
|
42
42
|
*/
|
|
43
|
-
'
|
|
43
|
+
'name': string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Api
|
|
48
|
+
*/
|
|
49
|
+
'description': string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Api
|
|
54
|
+
*/
|
|
55
|
+
'version': string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Api
|
|
60
|
+
*/
|
|
61
|
+
'updatedAt': string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<ApiEndpointsInner>}
|
|
65
|
+
* @memberof Api
|
|
66
|
+
*/
|
|
67
|
+
'endpoints': Array<ApiEndpointsInner>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {object}
|
|
71
|
+
* @memberof Api
|
|
72
|
+
*/
|
|
73
|
+
'schema'?: object;
|
|
44
74
|
}
|
|
45
75
|
/**
|
|
46
76
|
*
|
|
47
77
|
* @export
|
|
48
|
-
* @interface
|
|
78
|
+
* @interface ApiEndpointsInner
|
|
49
79
|
*/
|
|
50
|
-
export interface
|
|
80
|
+
export interface ApiEndpointsInner {
|
|
51
81
|
/**
|
|
52
82
|
*
|
|
53
83
|
* @type {string}
|
|
54
|
-
* @memberof
|
|
84
|
+
* @memberof ApiEndpointsInner
|
|
55
85
|
*/
|
|
56
|
-
'
|
|
86
|
+
'name': string;
|
|
57
87
|
/**
|
|
58
88
|
*
|
|
59
89
|
* @type {string}
|
|
60
|
-
* @memberof
|
|
90
|
+
* @memberof ApiEndpointsInner
|
|
61
91
|
*/
|
|
62
|
-
'
|
|
92
|
+
'method': string;
|
|
63
93
|
/**
|
|
64
94
|
*
|
|
65
95
|
* @type {string}
|
|
66
|
-
* @memberof
|
|
96
|
+
* @memberof ApiEndpointsInner
|
|
67
97
|
*/
|
|
68
|
-
'
|
|
98
|
+
'path': string;
|
|
69
99
|
/**
|
|
70
100
|
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof
|
|
101
|
+
* @type {Array<string>}
|
|
102
|
+
* @memberof ApiEndpointsInner
|
|
73
103
|
*/
|
|
74
|
-
'
|
|
104
|
+
'tags': Array<string>;
|
|
75
105
|
/**
|
|
76
106
|
*
|
|
77
|
-
* @type {
|
|
78
|
-
* @memberof
|
|
107
|
+
* @type {boolean}
|
|
108
|
+
* @memberof ApiEndpointsInner
|
|
79
109
|
*/
|
|
80
|
-
'
|
|
110
|
+
'internal': boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @export
|
|
115
|
+
* @interface ApiError
|
|
116
|
+
*/
|
|
117
|
+
export interface ApiError {
|
|
81
118
|
/**
|
|
82
119
|
*
|
|
83
|
-
* @type {
|
|
84
|
-
* @memberof
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof ApiError
|
|
85
122
|
*/
|
|
86
|
-
'
|
|
123
|
+
'code'?: string;
|
|
87
124
|
/**
|
|
88
125
|
*
|
|
89
|
-
* @type {
|
|
90
|
-
* @memberof
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof ApiError
|
|
91
128
|
*/
|
|
92
|
-
'
|
|
129
|
+
'message': string;
|
|
93
130
|
}
|
|
94
131
|
/**
|
|
95
132
|
*
|
|
96
133
|
* @export
|
|
97
|
-
* @interface
|
|
134
|
+
* @interface Apis
|
|
98
135
|
*/
|
|
99
|
-
export interface
|
|
136
|
+
export interface Apis {
|
|
100
137
|
/**
|
|
101
138
|
*
|
|
102
|
-
* @type {Array<
|
|
103
|
-
* @memberof
|
|
139
|
+
* @type {Array<Api>}
|
|
140
|
+
* @memberof Apis
|
|
104
141
|
*/
|
|
105
|
-
'
|
|
142
|
+
'apis'?: Array<Api>;
|
|
106
143
|
}
|
|
107
144
|
/**
|
|
108
145
|
*
|
|
@@ -125,22 +162,22 @@ export interface ValidationError {
|
|
|
125
162
|
}
|
|
126
163
|
|
|
127
164
|
/**
|
|
128
|
-
*
|
|
165
|
+
* ApisApi - axios parameter creator
|
|
129
166
|
* @export
|
|
130
167
|
*/
|
|
131
|
-
export const
|
|
168
|
+
export const ApisApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
132
169
|
return {
|
|
133
170
|
/**
|
|
134
|
-
* Get an API
|
|
135
|
-
* @summary Get
|
|
171
|
+
* Get an API
|
|
172
|
+
* @summary Get api
|
|
136
173
|
* @param {string} api API name
|
|
137
174
|
* @param {string} [project] Project unique identifier
|
|
138
175
|
* @param {*} [options] Override http request option.
|
|
139
176
|
* @throws {RequiredError}
|
|
140
177
|
*/
|
|
141
|
-
|
|
178
|
+
getApi: async (api: string, project?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
179
|
// verify required parameter 'api' is not null or undefined
|
|
143
|
-
assertParamExists('
|
|
180
|
+
assertParamExists('getApi', 'api', api)
|
|
144
181
|
const localVarPath = `/{api}`
|
|
145
182
|
.replace(`{${"api"}}`, encodeURIComponent(String(api)));
|
|
146
183
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -177,14 +214,14 @@ export const SchemasApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
177
214
|
};
|
|
178
215
|
},
|
|
179
216
|
/**
|
|
180
|
-
* List all available
|
|
181
|
-
* @summary List
|
|
217
|
+
* List all available APIs
|
|
218
|
+
* @summary List apis
|
|
182
219
|
* @param {string} [project] Project unique identifier
|
|
183
220
|
* @param {string} [search] Search term used to filter results by name or identifier
|
|
184
221
|
* @param {*} [options] Override http request option.
|
|
185
222
|
* @throws {RequiredError}
|
|
186
223
|
*/
|
|
187
|
-
|
|
224
|
+
listApis: async (project?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
225
|
const localVarPath = `/`;
|
|
189
226
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
227
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -227,144 +264,144 @@ export const SchemasApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
227
264
|
};
|
|
228
265
|
|
|
229
266
|
/**
|
|
230
|
-
*
|
|
267
|
+
* ApisApi - functional programming interface
|
|
231
268
|
* @export
|
|
232
269
|
*/
|
|
233
|
-
export const
|
|
234
|
-
const localVarAxiosParamCreator =
|
|
270
|
+
export const ApisApiFp = function(configuration?: Configuration) {
|
|
271
|
+
const localVarAxiosParamCreator = ApisApiAxiosParamCreator(configuration)
|
|
235
272
|
return {
|
|
236
273
|
/**
|
|
237
|
-
* Get an API
|
|
238
|
-
* @summary Get
|
|
274
|
+
* Get an API
|
|
275
|
+
* @summary Get api
|
|
239
276
|
* @param {string} api API name
|
|
240
277
|
* @param {string} [project] Project unique identifier
|
|
241
278
|
* @param {*} [options] Override http request option.
|
|
242
279
|
* @throws {RequiredError}
|
|
243
280
|
*/
|
|
244
|
-
async
|
|
245
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
281
|
+
async getApi(api: string, project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Api>> {
|
|
282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApi(api, project, options);
|
|
246
283
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
247
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
284
|
+
const localVarOperationServerBasePath = operationServerMap['ApisApi.getApi']?.[localVarOperationServerIndex]?.url;
|
|
248
285
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
249
286
|
},
|
|
250
287
|
/**
|
|
251
|
-
* List all available
|
|
252
|
-
* @summary List
|
|
288
|
+
* List all available APIs
|
|
289
|
+
* @summary List apis
|
|
253
290
|
* @param {string} [project] Project unique identifier
|
|
254
291
|
* @param {string} [search] Search term used to filter results by name or identifier
|
|
255
292
|
* @param {*} [options] Override http request option.
|
|
256
293
|
* @throws {RequiredError}
|
|
257
294
|
*/
|
|
258
|
-
async
|
|
259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
295
|
+
async listApis(project?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Apis>> {
|
|
296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApis(project, search, options);
|
|
260
297
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
261
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
298
|
+
const localVarOperationServerBasePath = operationServerMap['ApisApi.listApis']?.[localVarOperationServerIndex]?.url;
|
|
262
299
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
263
300
|
},
|
|
264
301
|
}
|
|
265
302
|
};
|
|
266
303
|
|
|
267
304
|
/**
|
|
268
|
-
*
|
|
305
|
+
* ApisApi - factory interface
|
|
269
306
|
* @export
|
|
270
307
|
*/
|
|
271
|
-
export const
|
|
272
|
-
const localVarFp =
|
|
308
|
+
export const ApisApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
309
|
+
const localVarFp = ApisApiFp(configuration)
|
|
273
310
|
return {
|
|
274
311
|
/**
|
|
275
|
-
* Get an API
|
|
276
|
-
* @summary Get
|
|
277
|
-
* @param {
|
|
312
|
+
* Get an API
|
|
313
|
+
* @summary Get api
|
|
314
|
+
* @param {ApisApiGetApiRequest} requestParameters Request parameters.
|
|
278
315
|
* @param {*} [options] Override http request option.
|
|
279
316
|
* @throws {RequiredError}
|
|
280
317
|
*/
|
|
281
|
-
|
|
282
|
-
return localVarFp.
|
|
318
|
+
getApi(requestParameters: ApisApiGetApiRequest, options?: RawAxiosRequestConfig): AxiosPromise<Api> {
|
|
319
|
+
return localVarFp.getApi(requestParameters.api, requestParameters.project, options).then((request) => request(axios, basePath));
|
|
283
320
|
},
|
|
284
321
|
/**
|
|
285
|
-
* List all available
|
|
286
|
-
* @summary List
|
|
287
|
-
* @param {
|
|
322
|
+
* List all available APIs
|
|
323
|
+
* @summary List apis
|
|
324
|
+
* @param {ApisApiListApisRequest} requestParameters Request parameters.
|
|
288
325
|
* @param {*} [options] Override http request option.
|
|
289
326
|
* @throws {RequiredError}
|
|
290
327
|
*/
|
|
291
|
-
|
|
292
|
-
return localVarFp.
|
|
328
|
+
listApis(requestParameters: ApisApiListApisRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Apis> {
|
|
329
|
+
return localVarFp.listApis(requestParameters.project, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
293
330
|
},
|
|
294
331
|
};
|
|
295
332
|
};
|
|
296
333
|
|
|
297
334
|
/**
|
|
298
|
-
* Request parameters for
|
|
335
|
+
* Request parameters for getApi operation in ApisApi.
|
|
299
336
|
* @export
|
|
300
|
-
* @interface
|
|
337
|
+
* @interface ApisApiGetApiRequest
|
|
301
338
|
*/
|
|
302
|
-
export interface
|
|
339
|
+
export interface ApisApiGetApiRequest {
|
|
303
340
|
/**
|
|
304
341
|
* API name
|
|
305
342
|
* @type {string}
|
|
306
|
-
* @memberof
|
|
343
|
+
* @memberof ApisApiGetApi
|
|
307
344
|
*/
|
|
308
345
|
readonly api: string
|
|
309
346
|
|
|
310
347
|
/**
|
|
311
348
|
* Project unique identifier
|
|
312
349
|
* @type {string}
|
|
313
|
-
* @memberof
|
|
350
|
+
* @memberof ApisApiGetApi
|
|
314
351
|
*/
|
|
315
352
|
readonly project?: string
|
|
316
353
|
}
|
|
317
354
|
|
|
318
355
|
/**
|
|
319
|
-
* Request parameters for
|
|
356
|
+
* Request parameters for listApis operation in ApisApi.
|
|
320
357
|
* @export
|
|
321
|
-
* @interface
|
|
358
|
+
* @interface ApisApiListApisRequest
|
|
322
359
|
*/
|
|
323
|
-
export interface
|
|
360
|
+
export interface ApisApiListApisRequest {
|
|
324
361
|
/**
|
|
325
362
|
* Project unique identifier
|
|
326
363
|
* @type {string}
|
|
327
|
-
* @memberof
|
|
364
|
+
* @memberof ApisApiListApis
|
|
328
365
|
*/
|
|
329
366
|
readonly project?: string
|
|
330
367
|
|
|
331
368
|
/**
|
|
332
369
|
* Search term used to filter results by name or identifier
|
|
333
370
|
* @type {string}
|
|
334
|
-
* @memberof
|
|
371
|
+
* @memberof ApisApiListApis
|
|
335
372
|
*/
|
|
336
373
|
readonly search?: string
|
|
337
374
|
}
|
|
338
375
|
|
|
339
376
|
/**
|
|
340
|
-
*
|
|
377
|
+
* ApisApi - object-oriented interface
|
|
341
378
|
* @export
|
|
342
|
-
* @class
|
|
379
|
+
* @class ApisApi
|
|
343
380
|
* @extends {BaseAPI}
|
|
344
381
|
*/
|
|
345
|
-
export class
|
|
382
|
+
export class ApisApi extends BaseAPI {
|
|
346
383
|
/**
|
|
347
|
-
* Get an API
|
|
348
|
-
* @summary Get
|
|
349
|
-
* @param {
|
|
384
|
+
* Get an API
|
|
385
|
+
* @summary Get api
|
|
386
|
+
* @param {ApisApiGetApiRequest} requestParameters Request parameters.
|
|
350
387
|
* @param {*} [options] Override http request option.
|
|
351
388
|
* @throws {RequiredError}
|
|
352
|
-
* @memberof
|
|
389
|
+
* @memberof ApisApi
|
|
353
390
|
*/
|
|
354
|
-
public
|
|
355
|
-
return
|
|
391
|
+
public getApi(requestParameters: ApisApiGetApiRequest, options?: RawAxiosRequestConfig) {
|
|
392
|
+
return ApisApiFp(this.configuration).getApi(requestParameters.api, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
356
393
|
}
|
|
357
394
|
|
|
358
395
|
/**
|
|
359
|
-
* List all available
|
|
360
|
-
* @summary List
|
|
361
|
-
* @param {
|
|
396
|
+
* List all available APIs
|
|
397
|
+
* @summary List apis
|
|
398
|
+
* @param {ApisApiListApisRequest} requestParameters Request parameters.
|
|
362
399
|
* @param {*} [options] Override http request option.
|
|
363
400
|
* @throws {RequiredError}
|
|
364
|
-
* @memberof
|
|
401
|
+
* @memberof ApisApi
|
|
365
402
|
*/
|
|
366
|
-
public
|
|
367
|
-
return
|
|
403
|
+
public listApis(requestParameters: ApisApiListApisRequest = {}, options?: RawAxiosRequestConfig) {
|
|
404
|
+
return ApisApiFp(this.configuration).listApis(requestParameters.project, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
368
405
|
}
|
|
369
406
|
}
|
|
370
407
|
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED