@jrojaspin/security-map-api-cli 1.3.0 → 1.5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrojaspin/security-map-api-cli",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Backend API",
5
5
  "repository": "https://github.com/security-map/map-api",
6
6
  "license": "MIT",
@@ -65,7 +65,6 @@
65
65
  "lint": "eslint --ignore-path .gitignore .",
66
66
  "fix-lint": "eslint --fix --ignore-path .gitignore .",
67
67
  "build": "yarn install && tsc -p tsconfig.build.json",
68
- "openapi-gen": "openapi-generator-cli generate -i openapi.json -g typescript-fetch -o ./generated-client\n",
69
68
  "rollup": "rollup -c",
70
69
  "ts2js": "sh ts2js.sh"
71
70
  },
@@ -1,3 +1,4 @@
1
+ .openapi-generator-ignore
1
2
  apis/AccountApi.ts
2
3
  apis/ArticleApi.ts
3
4
  apis/DefaultApi.ts
@@ -1,91 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Test swagger
5
- * Testing the Fastify swagger API
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface User
20
- */
21
- export interface User {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof User
26
- */
27
- id: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof User
32
- */
33
- firstName?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof User
38
- */
39
- lastName?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof User
44
- */
45
- email: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the User interface.
50
- */
51
- export function instanceOfUser(value: object): value is User {
52
- if (!('id' in value) || value['id'] === undefined) return false;
53
- if (!('email' in value) || value['email'] === undefined) return false;
54
- return true;
55
- }
56
-
57
- export function UserFromJSON(json: any): User {
58
- return UserFromJSONTyped(json, false);
59
- }
60
-
61
- export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User {
62
- if (json == null) {
63
- return json;
64
- }
65
- return {
66
-
67
- 'id': json['id'],
68
- 'firstName': json['firstName'] == null ? undefined : json['firstName'],
69
- 'lastName': json['lastName'] == null ? undefined : json['lastName'],
70
- 'email': json['email'],
71
- };
72
- }
73
-
74
- export function UserToJSON(json: any): User {
75
- return UserToJSONTyped(json, false);
76
- }
77
-
78
- export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any {
79
- if (value == null) {
80
- return value;
81
- }
82
-
83
- return {
84
-
85
- 'id': value['id'],
86
- 'firstName': value['firstName'],
87
- 'lastName': value['lastName'],
88
- 'email': value['email'],
89
- };
90
- }
91
-