@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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/schema@0.2.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.2 --save
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.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 ApiError
29
+ * @interface Api
30
30
  */
31
- export interface ApiError {
31
+ export interface Api {
32
32
  /**
33
33
  *
34
34
  * @type {string}
35
- * @memberof ApiError
35
+ * @memberof Api
36
36
  */
37
- 'code'?: string;
37
+ 'id': string;
38
38
  /**
39
39
  *
40
40
  * @type {string}
41
- * @memberof ApiError
41
+ * @memberof Api
42
42
  */
43
- 'message': string;
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 Schema
78
+ * @interface ApiEndpointsInner
49
79
  */
50
- export interface Schema {
80
+ export interface ApiEndpointsInner {
51
81
  /**
52
82
  *
53
83
  * @type {string}
54
- * @memberof Schema
84
+ * @memberof ApiEndpointsInner
55
85
  */
56
- 'id': string;
86
+ 'name': string;
57
87
  /**
58
88
  *
59
89
  * @type {string}
60
- * @memberof Schema
90
+ * @memberof ApiEndpointsInner
61
91
  */
62
- 'name': string;
92
+ 'method': string;
63
93
  /**
64
94
  *
65
95
  * @type {string}
66
- * @memberof Schema
96
+ * @memberof ApiEndpointsInner
67
97
  */
68
- 'description': string;
98
+ 'path': string;
69
99
  /**
70
100
  *
71
- * @type {string}
72
- * @memberof Schema
101
+ * @type {Array<string>}
102
+ * @memberof ApiEndpointsInner
73
103
  */
74
- 'version': string;
104
+ 'tags': Array<string>;
75
105
  /**
76
106
  *
77
- * @type {string}
78
- * @memberof Schema
107
+ * @type {boolean}
108
+ * @memberof ApiEndpointsInner
79
109
  */
80
- 'updatedAt': string;
110
+ 'internal': boolean;
111
+ }
112
+ /**
113
+ *
114
+ * @export
115
+ * @interface ApiError
116
+ */
117
+ export interface ApiError {
81
118
  /**
82
119
  *
83
- * @type {Array<string>}
84
- * @memberof Schema
120
+ * @type {string}
121
+ * @memberof ApiError
85
122
  */
86
- 'paths': Array<string>;
123
+ 'code'?: string;
87
124
  /**
88
125
  *
89
- * @type {object}
90
- * @memberof Schema
126
+ * @type {string}
127
+ * @memberof ApiError
91
128
  */
92
- 'schema'?: object;
129
+ 'message': string;
93
130
  }
94
131
  /**
95
132
  *
96
133
  * @export
97
- * @interface Schemas
134
+ * @interface Apis
98
135
  */
99
- export interface Schemas {
136
+ export interface Apis {
100
137
  /**
101
138
  *
102
- * @type {Array<Schema>}
103
- * @memberof Schemas
139
+ * @type {Array<Api>}
140
+ * @memberof Apis
104
141
  */
105
- 'schemas': Array<Schema>;
142
+ 'apis'?: Array<Api>;
106
143
  }
107
144
  /**
108
145
  *
@@ -125,22 +162,22 @@ export interface ValidationError {
125
162
  }
126
163
 
127
164
  /**
128
- * SchemasApi - axios parameter creator
165
+ * ApisApi - axios parameter creator
129
166
  * @export
130
167
  */
131
- export const SchemasApiAxiosParamCreator = function (configuration?: Configuration) {
168
+ export const ApisApiAxiosParamCreator = function (configuration?: Configuration) {
132
169
  return {
133
170
  /**
134
- * Get an API schema
135
- * @summary Get schema
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
- getSchema: async (api: string, project?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
178
+ getApi: async (api: string, project?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
142
179
  // verify required parameter 'api' is not null or undefined
143
- assertParamExists('getSchema', 'api', api)
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 schemas
181
- * @summary List schemas
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
- listSchemas: async (project?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
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
- * SchemasApi - functional programming interface
267
+ * ApisApi - functional programming interface
231
268
  * @export
232
269
  */
233
- export const SchemasApiFp = function(configuration?: Configuration) {
234
- const localVarAxiosParamCreator = SchemasApiAxiosParamCreator(configuration)
270
+ export const ApisApiFp = function(configuration?: Configuration) {
271
+ const localVarAxiosParamCreator = ApisApiAxiosParamCreator(configuration)
235
272
  return {
236
273
  /**
237
- * Get an API schema
238
- * @summary Get schema
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 getSchema(api: string, project?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Schema>> {
245
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSchema(api, project, options);
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['SchemasApi.getSchema']?.[localVarOperationServerIndex]?.url;
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 schemas
252
- * @summary List schemas
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 listSchemas(project?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Schemas>> {
259
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSchemas(project, search, options);
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['SchemasApi.listSchemas']?.[localVarOperationServerIndex]?.url;
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
- * SchemasApi - factory interface
305
+ * ApisApi - factory interface
269
306
  * @export
270
307
  */
271
- export const SchemasApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
272
- const localVarFp = SchemasApiFp(configuration)
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 schema
276
- * @summary Get schema
277
- * @param {SchemasApiGetSchemaRequest} requestParameters Request parameters.
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
- getSchema(requestParameters: SchemasApiGetSchemaRequest, options?: RawAxiosRequestConfig): AxiosPromise<Schema> {
282
- return localVarFp.getSchema(requestParameters.api, requestParameters.project, options).then((request) => request(axios, basePath));
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 schemas
286
- * @summary List schemas
287
- * @param {SchemasApiListSchemasRequest} requestParameters Request parameters.
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
- listSchemas(requestParameters: SchemasApiListSchemasRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Schemas> {
292
- return localVarFp.listSchemas(requestParameters.project, requestParameters.search, options).then((request) => request(axios, basePath));
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 getSchema operation in SchemasApi.
335
+ * Request parameters for getApi operation in ApisApi.
299
336
  * @export
300
- * @interface SchemasApiGetSchemaRequest
337
+ * @interface ApisApiGetApiRequest
301
338
  */
302
- export interface SchemasApiGetSchemaRequest {
339
+ export interface ApisApiGetApiRequest {
303
340
  /**
304
341
  * API name
305
342
  * @type {string}
306
- * @memberof SchemasApiGetSchema
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 SchemasApiGetSchema
350
+ * @memberof ApisApiGetApi
314
351
  */
315
352
  readonly project?: string
316
353
  }
317
354
 
318
355
  /**
319
- * Request parameters for listSchemas operation in SchemasApi.
356
+ * Request parameters for listApis operation in ApisApi.
320
357
  * @export
321
- * @interface SchemasApiListSchemasRequest
358
+ * @interface ApisApiListApisRequest
322
359
  */
323
- export interface SchemasApiListSchemasRequest {
360
+ export interface ApisApiListApisRequest {
324
361
  /**
325
362
  * Project unique identifier
326
363
  * @type {string}
327
- * @memberof SchemasApiListSchemas
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 SchemasApiListSchemas
371
+ * @memberof ApisApiListApis
335
372
  */
336
373
  readonly search?: string
337
374
  }
338
375
 
339
376
  /**
340
- * SchemasApi - object-oriented interface
377
+ * ApisApi - object-oriented interface
341
378
  * @export
342
- * @class SchemasApi
379
+ * @class ApisApi
343
380
  * @extends {BaseAPI}
344
381
  */
345
- export class SchemasApi extends BaseAPI {
382
+ export class ApisApi extends BaseAPI {
346
383
  /**
347
- * Get an API schema
348
- * @summary Get schema
349
- * @param {SchemasApiGetSchemaRequest} requestParameters Request parameters.
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 SchemasApi
389
+ * @memberof ApisApi
353
390
  */
354
- public getSchema(requestParameters: SchemasApiGetSchemaRequest, options?: RawAxiosRequestConfig) {
355
- return SchemasApiFp(this.configuration).getSchema(requestParameters.api, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
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 schemas
360
- * @summary List schemas
361
- * @param {SchemasApiListSchemasRequest} requestParameters Request parameters.
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 SchemasApi
401
+ * @memberof ApisApi
365
402
  */
366
- public listSchemas(requestParameters: SchemasApiListSchemasRequest = {}, options?: RawAxiosRequestConfig) {
367
- return SchemasApiFp(this.configuration).listSchemas(requestParameters.project, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
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
@@ -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.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).
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.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).
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.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).