@jrojaspin/security-map-api-cli 1.2.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.
Files changed (132) hide show
  1. package/.env.template +23 -0
  2. package/package.json +104 -0
  3. package/src/.openapi-generator/FILES +7 -0
  4. package/src/.openapi-generator/VERSION +1 -0
  5. package/src/.openapi-generator-ignore +23 -0
  6. package/src/apis/DefaultApi.ts +728 -0
  7. package/src/apis/index.ts +3 -0
  8. package/src/generated-client/.openapi-generator/FILES +114 -0
  9. package/src/generated-client/.openapi-generator/VERSION +1 -0
  10. package/src/generated-client/.openapi-generator-ignore +23 -0
  11. package/src/generated-client/apis/AccountApi.ts +161 -0
  12. package/src/generated-client/apis/ArticleApi.ts +58 -0
  13. package/src/generated-client/apis/DefaultApi.ts +200 -0
  14. package/src/generated-client/apis/HealthcheckApi.ts +51 -0
  15. package/src/generated-client/apis/ItemApi.ts +369 -0
  16. package/src/generated-client/apis/JournalApi.ts +166 -0
  17. package/src/generated-client/apis/LocationApi.ts +66 -0
  18. package/src/generated-client/apis/LoginApi.ts +215 -0
  19. package/src/generated-client/apis/MapApi.ts +341 -0
  20. package/src/generated-client/apis/MultimediaApi.ts +140 -0
  21. package/src/generated-client/apis/ReportApi.ts +145 -0
  22. package/src/generated-client/apis/SearchApi.ts +82 -0
  23. package/src/generated-client/apis/SourceApi.ts +95 -0
  24. package/src/generated-client/apis/StateMachineApi.ts +58 -0
  25. package/src/generated-client/apis/index.ts +16 -0
  26. package/src/generated-client/index.ts +5 -0
  27. package/src/generated-client/models/Def0.ts +73 -0
  28. package/src/generated-client/models/Def1.ts +81 -0
  29. package/src/generated-client/models/Def10.ts +105 -0
  30. package/src/generated-client/models/Def11.ts +105 -0
  31. package/src/generated-client/models/Def12.ts +81 -0
  32. package/src/generated-client/models/Def13.ts +93 -0
  33. package/src/generated-client/models/Def14.ts +93 -0
  34. package/src/generated-client/models/Def15.ts +75 -0
  35. package/src/generated-client/models/Def16.ts +127 -0
  36. package/src/generated-client/models/Def17.ts +81 -0
  37. package/src/generated-client/models/Def18.ts +105 -0
  38. package/src/generated-client/models/Def19.ts +81 -0
  39. package/src/generated-client/models/Def2.ts +83 -0
  40. package/src/generated-client/models/Def20.ts +105 -0
  41. package/src/generated-client/models/Def21.ts +81 -0
  42. package/src/generated-client/models/Def22.ts +217 -0
  43. package/src/generated-client/models/Def23.ts +97 -0
  44. package/src/generated-client/models/Def24.ts +127 -0
  45. package/src/generated-client/models/Def25.ts +81 -0
  46. package/src/generated-client/models/Def26.ts +81 -0
  47. package/src/generated-client/models/Def27.ts +105 -0
  48. package/src/generated-client/models/Def28.ts +121 -0
  49. package/src/generated-client/models/Def29.ts +97 -0
  50. package/src/generated-client/models/Def3.ts +135 -0
  51. package/src/generated-client/models/Def30.ts +113 -0
  52. package/src/generated-client/models/Def31.ts +116 -0
  53. package/src/generated-client/models/Def32.ts +121 -0
  54. package/src/generated-client/models/Def33.ts +66 -0
  55. package/src/generated-client/models/Def34.ts +66 -0
  56. package/src/generated-client/models/Def35.ts +81 -0
  57. package/src/generated-client/models/Def36.ts +84 -0
  58. package/src/generated-client/models/Def37.ts +92 -0
  59. package/src/generated-client/models/Def38.ts +102 -0
  60. package/src/generated-client/models/Def39.ts +102 -0
  61. package/src/generated-client/models/Def4.ts +113 -0
  62. package/src/generated-client/models/Def40.ts +137 -0
  63. package/src/generated-client/models/Def41.ts +178 -0
  64. package/src/generated-client/models/Def42.ts +66 -0
  65. package/src/generated-client/models/Def43.ts +84 -0
  66. package/src/generated-client/models/Def44.ts +75 -0
  67. package/src/generated-client/models/Def45.ts +74 -0
  68. package/src/generated-client/models/Def46.ts +102 -0
  69. package/src/generated-client/models/Def47.ts +66 -0
  70. package/src/generated-client/models/Def48.ts +65 -0
  71. package/src/generated-client/models/Def49.ts +66 -0
  72. package/src/generated-client/models/Def5.ts +89 -0
  73. package/src/generated-client/models/Def50.ts +66 -0
  74. package/src/generated-client/models/Def51.ts +123 -0
  75. package/src/generated-client/models/Def52.ts +66 -0
  76. package/src/generated-client/models/Def53.ts +66 -0
  77. package/src/generated-client/models/Def54.ts +66 -0
  78. package/src/generated-client/models/Def56.ts +90 -0
  79. package/src/generated-client/models/Def57.ts +182 -0
  80. package/src/generated-client/models/Def58.ts +84 -0
  81. package/src/generated-client/models/Def59.ts +66 -0
  82. package/src/generated-client/models/Def6.ts +97 -0
  83. package/src/generated-client/models/Def60.ts +66 -0
  84. package/src/generated-client/models/Def61.ts +189 -0
  85. package/src/generated-client/models/Def62.ts +91 -0
  86. package/src/generated-client/models/Def63.ts +66 -0
  87. package/src/generated-client/models/Def64.ts +66 -0
  88. package/src/generated-client/models/Def65.ts +66 -0
  89. package/src/generated-client/models/Def66.ts +66 -0
  90. package/src/generated-client/models/Def67.ts +66 -0
  91. package/src/generated-client/models/Def68.ts +66 -0
  92. package/src/generated-client/models/Def69.ts +66 -0
  93. package/src/generated-client/models/Def7.ts +105 -0
  94. package/src/generated-client/models/Def70.ts +66 -0
  95. package/src/generated-client/models/Def71.ts +66 -0
  96. package/src/generated-client/models/Def72.ts +66 -0
  97. package/src/generated-client/models/Def73.ts +66 -0
  98. package/src/generated-client/models/Def74.ts +66 -0
  99. package/src/generated-client/models/Def75.ts +75 -0
  100. package/src/generated-client/models/Def76.ts +66 -0
  101. package/src/generated-client/models/Def77.ts +66 -0
  102. package/src/generated-client/models/Def78.ts +84 -0
  103. package/src/generated-client/models/Def79.ts +75 -0
  104. package/src/generated-client/models/Def8.ts +137 -0
  105. package/src/generated-client/models/Def80.ts +73 -0
  106. package/src/generated-client/models/Def81.ts +75 -0
  107. package/src/generated-client/models/Def82.ts +66 -0
  108. package/src/generated-client/models/Def83.ts +66 -0
  109. package/src/generated-client/models/Def84.ts +66 -0
  110. package/src/generated-client/models/Def85.ts +66 -0
  111. package/src/generated-client/models/Def86.ts +92 -0
  112. package/src/generated-client/models/Def87.ts +84 -0
  113. package/src/generated-client/models/Def88.ts +66 -0
  114. package/src/generated-client/models/Def89.ts +66 -0
  115. package/src/generated-client/models/Def9.ts +113 -0
  116. package/src/generated-client/models/Def90.ts +73 -0
  117. package/src/generated-client/models/Def91.ts +66 -0
  118. package/src/generated-client/models/Def92.ts +66 -0
  119. package/src/generated-client/models/Def93.ts +101 -0
  120. package/src/generated-client/models/Def94.ts +66 -0
  121. package/src/generated-client/models/Def95.ts +73 -0
  122. package/src/generated-client/models/Def96.ts +66 -0
  123. package/src/generated-client/models/User.ts +91 -0
  124. package/src/generated-client/models/index.ts +98 -0
  125. package/src/generated-client/runtime.ts +431 -0
  126. package/src/index.ts +5 -0
  127. package/src/models/User.ts +91 -0
  128. package/src/models/index.ts +3 -0
  129. package/src/runtime.ts +431 -0
  130. package/ts2js.sh +1 -0
  131. package/tsconfig.build.json +15 -0
  132. package/tsconfig.json +82 -0
package/.env.template ADDED
@@ -0,0 +1,23 @@
1
+ PORT=3000
2
+ PLUGIN_TIMEOUT=10000
3
+ FASTIFY_ADDRESS=0.0.0.0
4
+
5
+ POSTGRES_DB=_POSTGRES_DB_
6
+ POSTGRES_USER=_POSTGRES_USER_
7
+ POSTGRES_API_USER=_POSTGRES_API_USER_
8
+
9
+ POSTGRES_HOST=_POSTGRES_HOST_
10
+ POSTGRES_PORT=00000
11
+ POSTGRES_PASSWORD=_POSTGRES_PASSWORD_
12
+ POSTGRES_CA=/liquibase/postgres-ca.cert
13
+ POSTGRES_SCHEMA=_POSTGRES_SCHEMA_
14
+
15
+ SECRET=secreto
16
+ API_SECRET=secreto
17
+
18
+ PUBLIC_PATH=/
19
+
20
+ DO_SPACES_ENDPOINT=_DO_SPACES_ENDPOINT_
21
+ DO_SPACES_KEY=_DO_SPACES_KEY_
22
+ DO_SPACES_SECRET=_DO_SPACES_SECRET_
23
+ DO_SPACES_NAME=_DO_SPACES_NAME_
package/package.json ADDED
@@ -0,0 +1,104 @@
1
+ {
2
+ "name": "@jrojaspin/security-map-api-cli",
3
+ "version": "1.2.0",
4
+ "description": "Backend API",
5
+ "repository": "https://github.com/security-map/map-api",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "moduleResolution": "NodeNext",
9
+ "private": false,
10
+ "esModuleInterop": true,
11
+ "main": "./dist/index.cjs",
12
+ "module": "./dist/index.mjs",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "require": "./dist/index.cjs",
17
+ "import": "./dist/index.mjs"
18
+ }
19
+ },
20
+ "dependencies": {
21
+ "@aws-sdk/client-s3": "^3.521.0",
22
+ "@fastify/autoload": "^5.8.0",
23
+ "@fastify/compress": "^7.0.0",
24
+ "@fastify/cors": "^9.0.1",
25
+ "@fastify/env": "^4.3.0",
26
+ "@fastify/postgres": "^5.2.2",
27
+ "@fastify/swagger": "^8.14.0",
28
+ "@fastify/swagger-ui": "^4.0.0",
29
+ "@rollup/plugin-commonjs": "^28.0.2",
30
+ "@rollup/plugin-node-resolve": "^16.0.0",
31
+ "@rollup/plugin-typescript": "^12.1.2",
32
+ "@types/cors": "^2.8.17",
33
+ "@types/express": "^4.17.21",
34
+ "@types/jsonwebtoken": "^9.0.6",
35
+ "@types/morgan": "^1.9.9",
36
+ "@types/multer": "^1.4.11",
37
+ "@types/pg": "^8.11.0",
38
+ "axios": "^0.20.0",
39
+ "body-parser": "^1.20.2",
40
+ "class-transformer": "^0.5.1",
41
+ "class-validator": "^0.14.1",
42
+ "class-validator-jsonschema": "^5.0.0",
43
+ "dateformat": "^3.0.3",
44
+ "dotenv": "^8.2.0",
45
+ "fastify": "^4.26.0",
46
+ "fastify-auth0-verify": "^2.0.0",
47
+ "fastify-multer": "^2.0.3",
48
+ "fastify-plugin": "^4.5.1",
49
+ "http": "^0.0.1-security",
50
+ "jsonwebtoken": "^8.5.1",
51
+ "morgan": "^1.10.0",
52
+ "multer": "^1.4.5-lts.1",
53
+ "pg": "^8.11.3",
54
+ "reflect-metadata": "^0.2.1",
55
+ "request": "^2.88.2",
56
+ "rollup-plugin-dts": "^6.1.1",
57
+ "typescript": "^5.3.3",
58
+ "uuidv4": "^6.2.13",
59
+ "yarn": "^1.22.21"
60
+ },
61
+ "scripts": {
62
+ "dev": "yarn install && yarn nodemon",
63
+ "test": "yarn jest --config jest.config.json --no-cache --coverage --maxWorkers=1",
64
+ "test-with-coverage": "yarn nyc mocha 'test/**/*.js'",
65
+ "lint": "eslint --ignore-path .gitignore .",
66
+ "fix-lint": "eslint --fix --ignore-path .gitignore .",
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
+ "rollup": "rollup -c",
70
+ "ts2js": "sh ts2js.sh"
71
+ },
72
+ "devDependencies": {
73
+ "@openapitools/openapi-generator-cli": "^2.13.4",
74
+ "@tsconfig/node20": "^20.1.2",
75
+ "@types/jest": "^29.5.11",
76
+ "@types/node": "^20.11.20",
77
+ "@typescript-eslint/eslint-plugin": "^6.14.0",
78
+ "@typescript-eslint/parser": "^6.14.0",
79
+ "babel-cli": "^6.26.0",
80
+ "babel-preset-env": "^1.7.0",
81
+ "chai": "^4.3.10",
82
+ "chai-http": "^4.4.0",
83
+ "eslint": "^8.56.0",
84
+ "eslint-config-airbnb": "^19.0.4",
85
+ "eslint-config-prettier": "^9.1.0",
86
+ "eslint-config-strongloop": "^2.1.0",
87
+ "eslint-config-torchbox": "1.1.0",
88
+ "eslint-plugin-import": "^2.29.1",
89
+ "eslint-plugin-jsx-a11y": "^6.8.0",
90
+ "eslint-plugin-react": "^7.33.2",
91
+ "eslint-plugin-react-hooks": "^4.6.0",
92
+ "jest": "^29.7.0",
93
+ "mocha": "^8.1.3",
94
+ "nodemon": "^2.0.4",
95
+ "nyc": "^15.1.0",
96
+ "rollup": "^4.19.0",
97
+ "rollup-plugin-typescript2": "^0.36.0",
98
+ "sinon": "^9.0.3",
99
+ "ts-jest": "^29.1.1"
100
+ },
101
+ "publishConfig": {
102
+ "access": "public"
103
+ }
104
+ }
@@ -0,0 +1,7 @@
1
+ .openapi-generator-ignore
2
+ apis/DefaultApi.ts
3
+ apis/index.ts
4
+ index.ts
5
+ models/User.ts
6
+ models/index.ts
7
+ runtime.ts
@@ -0,0 +1 @@
1
+ 7.10.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md