emilsoftware-utilities 2.0.0-dev.2 → 2.0.0-dev.21

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 (141) hide show
  1. package/README.MD +38 -38
  2. package/dist/ContractGenerator.js.map +1 -1
  3. package/dist/DatabaseUpdater.d.ts +1 -1
  4. package/dist/DatabaseUpdater.js +24 -24
  5. package/dist/DatabaseUpdater.js.map +1 -1
  6. package/dist/EmilsoftwareModule.js.map +1 -1
  7. package/dist/ExecutionTimeLogger.js.map +1 -1
  8. package/dist/Logger.js.map +1 -1
  9. package/dist/Orm.d.ts +7 -1
  10. package/dist/Orm.js +172 -78
  11. package/dist/Orm.js.map +1 -1
  12. package/dist/RoutesLoggerMiddleware.js.map +1 -1
  13. package/dist/Utilities.d.ts +2 -2
  14. package/dist/Utilities.js +3 -0
  15. package/dist/Utilities.js.map +1 -1
  16. package/dist/accessi-module/AccessiModule.d.ts +1 -1
  17. package/dist/accessi-module/AccessiModule.js.map +1 -1
  18. package/dist/accessi-module/Controllers/AuthController.d.ts +4 -4
  19. package/dist/accessi-module/Controllers/AuthController.js +43 -33
  20. package/dist/accessi-module/Controllers/AuthController.js.map +1 -1
  21. package/dist/accessi-module/Controllers/ConfiguratorController.js +25 -30
  22. package/dist/accessi-module/Controllers/ConfiguratorController.js.map +1 -1
  23. package/dist/accessi-module/Controllers/EmailController.d.ts +2 -4
  24. package/dist/accessi-module/Controllers/EmailController.js +8 -12
  25. package/dist/accessi-module/Controllers/EmailController.js.map +1 -1
  26. package/dist/accessi-module/Controllers/FiltriController.js +29 -0
  27. package/dist/accessi-module/Controllers/FiltriController.js.map +1 -1
  28. package/dist/accessi-module/Controllers/PermissionController.js +35 -33
  29. package/dist/accessi-module/Controllers/PermissionController.js.map +1 -1
  30. package/dist/accessi-module/Controllers/UserController.d.ts +2 -2
  31. package/dist/accessi-module/Controllers/UserController.js +30 -12
  32. package/dist/accessi-module/Controllers/UserController.js.map +1 -1
  33. package/dist/accessi-module/Dtos/Abilitazione.js.map +1 -1
  34. package/dist/accessi-module/Dtos/AbilitazioneMenu.js.map +1 -1
  35. package/dist/accessi-module/Dtos/AssignPermissionsToUserRequest.js +0 -1
  36. package/dist/accessi-module/Dtos/AssignPermissionsToUserRequest.js.map +1 -1
  37. package/dist/accessi-module/Dtos/AssignRolesToUserRequest.js +0 -1
  38. package/dist/accessi-module/Dtos/AssignRolesToUserRequest.js.map +1 -1
  39. package/dist/accessi-module/Dtos/AuthenticatedUserPayloadDto.d.ts +10 -0
  40. package/dist/accessi-module/Dtos/AuthenticatedUserPayloadDto.js +52 -0
  41. package/dist/accessi-module/Dtos/AuthenticatedUserPayloadDto.js.map +1 -0
  42. package/dist/accessi-module/Dtos/BaseResponse.d.ts +20 -0
  43. package/dist/accessi-module/Dtos/BaseResponse.js +87 -1
  44. package/dist/accessi-module/Dtos/BaseResponse.js.map +1 -1
  45. package/dist/accessi-module/Dtos/ConfirmResetPasswordRequest.d.ts +3 -0
  46. package/dist/accessi-module/Dtos/ConfirmResetPasswordRequest.js +31 -0
  47. package/dist/accessi-module/Dtos/ConfirmResetPasswordRequest.js.map +1 -0
  48. package/dist/accessi-module/Dtos/FiltriUtente.js +1 -0
  49. package/dist/accessi-module/Dtos/FiltriUtente.js.map +1 -1
  50. package/dist/accessi-module/Dtos/GetGroupsWithMenusResponse.js.map +1 -1
  51. package/dist/accessi-module/Dtos/GetMenusResponse.js.map +1 -1
  52. package/dist/accessi-module/Dtos/GetRolesResponse.js.map +1 -1
  53. package/dist/accessi-module/Dtos/GetUserByTokenRequest.d.ts +3 -0
  54. package/dist/accessi-module/Dtos/GetUserByTokenRequest.js +26 -0
  55. package/dist/accessi-module/Dtos/GetUserByTokenRequest.js.map +1 -0
  56. package/dist/accessi-module/Dtos/GetUserByTokenResponse.d.ts +5 -0
  57. package/dist/accessi-module/Dtos/GetUserByTokenResponse.js +27 -0
  58. package/dist/accessi-module/Dtos/GetUserByTokenResponse.js.map +1 -0
  59. package/dist/accessi-module/Dtos/GetUsersResponse.js.map +1 -1
  60. package/dist/accessi-module/Dtos/LoginRequest.js.map +1 -1
  61. package/dist/accessi-module/Dtos/LoginResponse.js.map +1 -1
  62. package/dist/accessi-module/Dtos/Permission.js.map +1 -1
  63. package/dist/accessi-module/Dtos/PublicRegisterRequest.d.ts +5 -0
  64. package/dist/accessi-module/Dtos/PublicRegisterRequest.js +14 -0
  65. package/dist/accessi-module/Dtos/PublicRegisterRequest.js.map +1 -0
  66. package/dist/accessi-module/Dtos/RegisterRequest.js +4 -0
  67. package/dist/accessi-module/Dtos/RegisterRequest.js.map +1 -1
  68. package/dist/accessi-module/Dtos/RegisterResponse.d.ts +1 -1
  69. package/dist/accessi-module/Dtos/RegisterResponse.js +3 -3
  70. package/dist/accessi-module/Dtos/RegisterResponse.js.map +1 -1
  71. package/dist/accessi-module/Dtos/Role.js.map +1 -1
  72. package/dist/accessi-module/Dtos/RuoliMenu.js.map +1 -1
  73. package/dist/accessi-module/Dtos/SendResetPasswordEmailRequest.d.ts +4 -0
  74. package/dist/accessi-module/Dtos/SendResetPasswordEmailRequest.js +36 -0
  75. package/dist/accessi-module/Dtos/SendResetPasswordEmailRequest.js.map +1 -0
  76. package/dist/accessi-module/Dtos/SetStatoRegistrazione.js.map +1 -1
  77. package/dist/accessi-module/Dtos/StatoRegistrazione.js.map +1 -1
  78. package/dist/accessi-module/Dtos/TipoAbilitazione.js.map +1 -1
  79. package/dist/accessi-module/Dtos/TipoFiltro.js.map +1 -1
  80. package/dist/accessi-module/Dtos/TokenResult.js.map +1 -1
  81. package/dist/accessi-module/Dtos/UpdateEnabledStatusRequest.js.map +1 -1
  82. package/dist/accessi-module/Dtos/UserDto.js +5 -1
  83. package/dist/accessi-module/Dtos/UserDto.js.map +1 -1
  84. package/dist/accessi-module/Dtos/UserGrantsDto.js.map +1 -1
  85. package/dist/accessi-module/Dtos/UserGrantsResponse.d.ts +5 -0
  86. package/dist/accessi-module/Dtos/UserGrantsResponse.js +27 -0
  87. package/dist/accessi-module/Dtos/UserGrantsResponse.js.map +1 -0
  88. package/dist/accessi-module/Dtos/index.d.ts +7 -0
  89. package/dist/accessi-module/Dtos/index.js +7 -0
  90. package/dist/accessi-module/Dtos/index.js.map +1 -1
  91. package/dist/accessi-module/Services/AuthService/AuthService.js.map +1 -1
  92. package/dist/accessi-module/Services/ConfiguratorService/ConfiguratorService.js.map +1 -1
  93. package/dist/accessi-module/Services/EmailService/EmailService.js +11 -11
  94. package/dist/accessi-module/Services/EmailService/EmailService.js.map +1 -1
  95. package/dist/accessi-module/Services/FiltriService/FiltriService.js +1 -8
  96. package/dist/accessi-module/Services/FiltriService/FiltriService.js.map +1 -1
  97. package/dist/accessi-module/Services/PermissionService/PermissionService.d.ts +4 -0
  98. package/dist/accessi-module/Services/PermissionService/PermissionService.js +210 -147
  99. package/dist/accessi-module/Services/PermissionService/PermissionService.js.map +1 -1
  100. package/dist/accessi-module/Services/UserService/UserService.js +77 -174
  101. package/dist/accessi-module/Services/UserService/UserService.js.map +1 -1
  102. package/dist/accessi-module/Views/reset-password.html +213 -213
  103. package/dist/accessi-module/database-updates/AccessiDatabaseUpdater.js +16 -16
  104. package/dist/accessi-module/database-updates/AccessiDatabaseUpdater.js.map +1 -1
  105. package/dist/accessi-module/database-updates/runAccessiDbUpdate.js.map +1 -1
  106. package/dist/accessi-module/index.d.ts +1 -0
  107. package/dist/accessi-module/index.js +28 -5
  108. package/dist/accessi-module/index.js.map +1 -1
  109. package/dist/accessi-module/jwt/jwt.strategy.js.map +1 -1
  110. package/dist/accessi-module/middleware/accessiRequirements.js.map +1 -1
  111. package/dist/accessi-module/middleware/authenticateGen.js.map +1 -1
  112. package/dist/accessi-module/security/accessControl.js.map +1 -1
  113. package/dist/accessi-module/security/authenticatedToken.js.map +1 -1
  114. package/dist/accessi-module/security/passwordResetToken.js.map +1 -1
  115. package/dist/accessi-module/security/publicAuthRateLimit.js.map +1 -1
  116. package/dist/allegati-module/AllegatiModule.d.ts +1 -1
  117. package/dist/allegati-module/AllegatiModule.js.map +1 -1
  118. package/dist/allegati-module/Controllers/AllegatiController.js.map +1 -1
  119. package/dist/allegati-module/Dtos/AllegatoDto.js.map +1 -1
  120. package/dist/allegati-module/Dtos/BaseResponse.js.map +1 -1
  121. package/dist/allegati-module/Dtos/UploadSingleFileRequest.js.map +1 -1
  122. package/dist/allegati-module/Dtos/index.js.map +1 -1
  123. package/dist/allegati-module/Dtos/responses/DownloadAllegatoResponseDto.js.map +1 -1
  124. package/dist/allegati-module/Dtos/responses/GetListResponse.js.map +1 -1
  125. package/dist/allegati-module/Dtos/responses/UploadAllegatoResponseDto.js.map +1 -1
  126. package/dist/allegati-module/Services/AllegatiService/AllegatiService.js +49 -49
  127. package/dist/allegati-module/Services/AllegatiService/AllegatiService.js.map +1 -1
  128. package/dist/allegati-module/index.js.map +1 -1
  129. package/dist/autobind.js.map +1 -1
  130. package/dist/emilsoftware-utilities-2.0.0-dev.21.tgz +0 -0
  131. package/dist/firebird-compat.d.ts +25 -0
  132. package/dist/firebird-compat.js +218 -0
  133. package/dist/firebird-compat.js.map +1 -0
  134. package/dist/index.d.ts +5 -2
  135. package/dist/index.js +28 -2
  136. package/dist/index.js.map +1 -1
  137. package/dist/initEmilsoftwareModule.js.map +1 -1
  138. package/dist/swagger/SwaggerConfig.d.ts +7 -1
  139. package/dist/swagger/SwaggerConfig.js +18 -7
  140. package/dist/swagger/SwaggerConfig.js.map +1 -1
  141. package/package.json +83 -83
package/dist/index.js CHANGED
@@ -10,15 +10,39 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
13
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
37
  };
16
38
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.DocumentGenerator = exports.StatusCode = exports.DatabaseUpdater = exports.DatabaseUtilities = exports.RestUtilities = exports.DateUtilities = exports.Orm = exports.LogLevels = exports.Logger = exports.ExecutionTimeLogger = exports.autobind = void 0;
39
+ exports.Firebird = exports.DocumentGenerator = exports.StatusCode = exports.DatabaseUpdater = exports.DatabaseUtilities = exports.RestUtilities = exports.DateUtilities = exports.Orm = exports.LogLevels = exports.Logger = exports.ExecutionTimeLogger = exports.autobind = void 0;
18
40
  const DatabaseUpdater_1 = require("./DatabaseUpdater");
19
41
  Object.defineProperty(exports, "DatabaseUpdater", { enumerable: true, get: function () { return DatabaseUpdater_1.DatabaseUpdater; } });
20
42
  const ExecutionTimeLogger_1 = require("./ExecutionTimeLogger");
21
43
  Object.defineProperty(exports, "ExecutionTimeLogger", { enumerable: true, get: function () { return ExecutionTimeLogger_1.ExecutionTimeLogger; } });
44
+ const Firebird = __importStar(require("node-firebird"));
45
+ exports.Firebird = Firebird;
22
46
  const Logger_1 = require("./Logger");
23
47
  Object.defineProperty(exports, "LogLevels", { enumerable: true, get: function () { return Logger_1.LogLevels; } });
24
48
  Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return Logger_1.Logger; } });
@@ -33,6 +57,7 @@ const autobind_1 = require("./autobind");
33
57
  Object.defineProperty(exports, "autobind", { enumerable: true, get: function () { return autobind_1.autobind; } });
34
58
  const ContractGenerator_1 = require("./ContractGenerator");
35
59
  Object.defineProperty(exports, "DocumentGenerator", { enumerable: true, get: function () { return ContractGenerator_1.DocumentGenerator; } });
60
+ require("./firebird-compat");
36
61
  __exportStar(require("./Orm"), exports);
37
62
  __exportStar(require("./Utilities"), exports);
38
63
  __exportStar(require("./Logger"), exports);
@@ -41,9 +66,10 @@ __exportStar(require("./ExecutionTimeLogger"), exports);
41
66
  __exportStar(require("./RoutesLoggerMiddleware"), exports);
42
67
  __exportStar(require("./ContractGenerator"), exports);
43
68
  __exportStar(require("./DatabaseUpdater"), exports);
69
+ __exportStar(require("./firebird-compat"), exports);
44
70
  __exportStar(require("./accessi-module"), exports);
45
71
  __exportStar(require("./allegati-module"), exports);
46
- __exportStar(require("es-node-firebird"), exports);
72
+ __exportStar(require("node-firebird"), exports);
47
73
  // Unified module exports
48
74
  __exportStar(require("./swagger/SwaggerConfig"), exports);
49
75
  __exportStar(require("./initEmilsoftwareModule"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAoD;AAoB6D,gGApBxG,iCAAe,OAoBwG;AAnBhI,+DAA2D;AAmBxC,oGAnBV,yCAAmB,OAmBU;AAlBtC,qCAA6C;AAkBG,0FAlBvC,kBAAS,OAkBuC;AAAjB,uFAlBpB,eAAM,OAkBoB;AAjB9C,+BAA4B;AAiB+B,oFAjBlD,SAAG,OAiBkD;AAhB9D,2CAA0F;AAgB1B,8FAhBvD,yBAAa,OAgBuD;AAAE,8FAhBvD,yBAAa,OAgBuD;AAAE,kGAhBvD,6BAAiB,OAgBuD;AAAmB,2FAhBxE,sBAAU,OAgBwE;AAf5I,yCAAsC;AAe7B,yFAfA,mBAAQ,OAeA;AAdjB,2DAAwD;AAcsF,kGAdrI,qCAAiB,OAcqI;AAZ/J,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,6CAA2B;AAC3B,wDAAsC;AACtC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAElC,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AAEjC,yBAAyB;AACzB,0DAAwC;AACxC,2DAAyC","sourcesContent":["import { DatabaseUpdater } from \"./DatabaseUpdater\";\r\nimport { ExecutionTimeLogger } from \"./ExecutionTimeLogger\"\r\nimport { LogLevels, Logger } from \"./Logger\";\r\nimport { Orm } from \"./Orm\";\r\nimport { DateUtilities, RestUtilities, DatabaseUtilities, StatusCode } from \"./Utilities\";\r\nimport { autobind } from \"./autobind\";\r\nimport { DocumentGenerator } from \"./ContractGenerator\";\r\n\r\nexport * from \"./Orm\";\r\nexport * from \"./Utilities\";\r\nexport * from \"./Logger\";\r\nexport * from \"./autobind\";\r\nexport * from \"./ExecutionTimeLogger\";\r\nexport * from \"./RoutesLoggerMiddleware\";\r\nexport * from \"./ContractGenerator\";\r\nexport * from \"./DatabaseUpdater\";\r\n\r\nexport * from \"./accessi-module\";\r\nexport * from \"./allegati-module\";\r\nexport * from \"es-node-firebird\";\r\nexport { autobind, ExecutionTimeLogger, Logger, LogLevels, Orm, DateUtilities, RestUtilities, DatabaseUtilities, DatabaseUpdater, StatusCode, DocumentGenerator };\r\n// Unified module exports\r\nexport * from \"./swagger/SwaggerConfig\";\r\nexport * from \"./initEmilsoftwareModule\";"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAoD;AAuB6D,gGAvBxG,iCAAe,OAuBwG;AAtBhI,+DAA2D;AAsBxC,oGAtBV,yCAAmB,OAsBU;AArBtC,wDAA0C;AAqBuH,4BAAQ;AApBzK,qCAA6C;AAoBG,0FApBvC,kBAAS,OAoBuC;AAAjB,uFApBpB,eAAM,OAoBoB;AAnB9C,+BAA4B;AAmB+B,oFAnBlD,SAAG,OAmBkD;AAlB9D,2CAA0F;AAkB1B,8FAlBvD,yBAAa,OAkBuD;AAAE,8FAlBvD,yBAAa,OAkBuD;AAAE,kGAlBvD,6BAAiB,OAkBuD;AAAmB,2FAlBxE,sBAAU,OAkBwE;AAjB5I,yCAAsC;AAiB7B,yFAjBA,mBAAQ,OAiBA;AAhBjB,2DAAwD;AAgBsF,kGAhBrI,qCAAiB,OAgBqI;AAf/J,6BAA2B;AAE3B,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,6CAA2B;AAC3B,wDAAsC;AACtC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAElC,mDAAiC;AACjC,oDAAkC;AAClC,gDAA8B;AAE9B,yBAAyB;AACzB,0DAAwC;AACxC,2DAAyC","sourcesContent":["import { DatabaseUpdater } from \"./DatabaseUpdater\";\nimport { ExecutionTimeLogger } from \"./ExecutionTimeLogger\"\nimport * as Firebird from \"node-firebird\";\nimport { LogLevels, Logger } from \"./Logger\";\nimport { Orm } from \"./Orm\";\nimport { DateUtilities, RestUtilities, DatabaseUtilities, StatusCode } from \"./Utilities\";\nimport { autobind } from \"./autobind\";\nimport { DocumentGenerator } from \"./ContractGenerator\";\nimport \"./firebird-compat\";\n\nexport * from \"./Orm\";\nexport * from \"./Utilities\";\nexport * from \"./Logger\";\nexport * from \"./autobind\";\nexport * from \"./ExecutionTimeLogger\";\nexport * from \"./RoutesLoggerMiddleware\";\nexport * from \"./ContractGenerator\";\nexport * from \"./DatabaseUpdater\";\nexport * from \"./firebird-compat\";\n\nexport * from \"./accessi-module\";\nexport * from \"./allegati-module\";\nexport * from \"node-firebird\";\nexport { autobind, ExecutionTimeLogger, Logger, LogLevels, Orm, DateUtilities, RestUtilities, DatabaseUtilities, DatabaseUpdater, StatusCode, DocumentGenerator, Firebird };\n// Unified module exports\nexport * from \"./swagger/SwaggerConfig\";\nexport * from \"./initEmilsoftwareModule\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"initEmilsoftwareModule.js","sourceRoot":"","sources":["../src/initEmilsoftwareModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBA,wDAsDC;AAxED,sDAAwD;AACxD,uCAA2C;AAC3C,+DAA0D;AAC1D,2DAAuD;AACvD,qCAAkC;AAClC,6DAA+E;AAC/E,iFAKqD;AAErD;;;;GAIG;AACH,SAAsB,sBAAsB,CAAC,GAAgB,EAAE,OAA4B;;QACvF,MAAM,MAAM,GAAW,IAAI,eAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;YAC1B,IAAA,gDAA8B,GAAE,CAAC;QACrC,CAAC;QAED,IAAI,CAAC;YACD,gFAAgF;YAChF,wEAAwE;YACxE,MAAM,WAAW,GAAG,IAAA,iBAAO,GAAE,CAAC;YAC9B,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CACjC,IAAI,KAAK,MAAM;gBACf,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;gBACxB,IAAI,KAAK,UAAU;gBACnB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;gBAC5B,IAAI,KAAK,eAAe,CAAC;YAE7B,GAAG,CAAC,GAAG,CAAC,CAAC,GAAY,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;gBAChC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBACzB,OAAO,IAAI,EAAE,CAAC;gBAClB,CAAC;gBACD,OAAO,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC;YAEH,MAAM,mBAAmB,GAAG,IAAI,iCAAc,CAAC,WAAW,CAAC,CAAC;YAC5D,MAAM,OAAO,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,uCAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,mBAAmB,EAAE;gBAC/F,UAAU,EAAE,IAAI;aACnB,CAAC,CAAC;YAEH,OAAO,CAAC,UAAU,EAAE,CAAC;YAErB,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE;gBAC3B,OAAO,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;aACzC,CAAC,CAAC;YAEH,sDAAsD;YACtD,IAAA,4BAAY,EAAC,OAAO,CAAC,CAAC;YAEtB,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;gBAC1B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAsB,CAAC,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,kBAAkB,GAAG,WAAW,CAAC;gBAC5C,IAAA,uCAAqB,EAAC,WAAW,CAAC,CAAC;YACvC,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QAEhE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;gBAC1B,IAAA,+CAA6B,EAAC,KAAK,CAAC,CAAC;YACzC,CAAC;YACD,MAAM,CAAC,KAAK,CAAC,yCAAyC,EAAE,KAAK,CAAC,CAAC;YAC/D,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CAAA","sourcesContent":["import express, { Application, Request } from \"express\";\r\nimport { NestFactory } from \"@nestjs/core\";\r\nimport { ExpressAdapter } from \"@nestjs/platform-express\";\r\nimport { setupSwagger } from \"./swagger/SwaggerConfig\";\r\nimport { Logger } from \"./Logger\";\r\nimport { EmilsoftwareModule, EmilsoftwareOptions } from \"./EmilsoftwareModule\";\r\nimport {\r\n beginAccessiAuthInitialization,\r\n failAccessiAuthInitialization,\r\n AuthenticateGenService,\r\n setAccessiAuthService\r\n} from \"./accessi-module/middleware/authenticateGen\";\r\n\r\n/**\r\n * Initializes the unified module that combines Accessi and Allegati functionality\r\n * @param app Express application instance\r\n * @param options Configuration options for both modules\r\n */\r\nexport async function initEmilsoftwareModule(app: Application, options: EmilsoftwareOptions) {\r\n const logger: Logger = new Logger(initEmilsoftwareModule.name);\r\n if (options?.accessiOptions) {\r\n beginAccessiAuthInitialization();\r\n }\r\n\r\n try {\r\n // Isolate Nest on a dedicated Express instance and dispatch only module routes.\r\n // This keeps pre-existing routes/middlewares on the host app untouched.\r\n const nestHostApp = express();\r\n const isNestRoute = (path: string) =>\r\n path === \"/api\" ||\r\n path.startsWith(\"/api/\") ||\r\n path === \"/swagger\" ||\r\n path.startsWith(\"/swagger/\") ||\r\n path === \"/swagger-json\";\r\n\r\n app.use((req: Request, res, next) => {\r\n if (!isNestRoute(req.path)) {\r\n return next();\r\n }\r\n return nestHostApp(req, res, next);\r\n });\r\n\r\n const nestExpressInstance = new ExpressAdapter(nestHostApp);\r\n const nestApp = await NestFactory.create(EmilsoftwareModule.forRoot(options), nestExpressInstance, {\r\n bufferLogs: true\r\n });\r\n\r\n nestApp.enableCors();\r\n\r\n nestApp.setGlobalPrefix('api', {\r\n exclude: ['/swagger', '/swagger/(.*)']\r\n });\r\n\r\n // Setup unified Swagger documentation for all modules\r\n setupSwagger(nestApp);\r\n\r\n await nestApp.init();\r\n if (options?.accessiOptions) {\r\n const authService = nestApp.get(AuthenticateGenService);\r\n app.locals.accessiAuthService = authService;\r\n setAccessiAuthService(authService);\r\n }\r\n\r\n logger.info(\"Emilsoftware module initialized successfully\");\r\n\r\n } catch (error) {\r\n if (options?.accessiOptions) {\r\n failAccessiAuthInitialization(error);\r\n }\r\n logger.error(\"Error initializing Emilsoftware Module:\", error);\r\n throw error;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"initEmilsoftwareModule.js","sourceRoot":"","sources":["../src/initEmilsoftwareModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBA,wDAsDC;AAxED,sDAAwD;AACxD,uCAA2C;AAC3C,+DAA0D;AAC1D,2DAAuD;AACvD,qCAAkC;AAClC,6DAA+E;AAC/E,iFAKqD;AAErD;;;;GAIG;AACH,SAAsB,sBAAsB,CAAC,GAAgB,EAAE,OAA4B;;QACvF,MAAM,MAAM,GAAW,IAAI,eAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;YAC1B,IAAA,gDAA8B,GAAE,CAAC;QACrC,CAAC;QAED,IAAI,CAAC;YACD,gFAAgF;YAChF,wEAAwE;YACxE,MAAM,WAAW,GAAG,IAAA,iBAAO,GAAE,CAAC;YAC9B,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CACjC,IAAI,KAAK,MAAM;gBACf,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;gBACxB,IAAI,KAAK,UAAU;gBACnB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;gBAC5B,IAAI,KAAK,eAAe,CAAC;YAE7B,GAAG,CAAC,GAAG,CAAC,CAAC,GAAY,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;gBAChC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBACzB,OAAO,IAAI,EAAE,CAAC;gBAClB,CAAC;gBACD,OAAO,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC;YAEH,MAAM,mBAAmB,GAAG,IAAI,iCAAc,CAAC,WAAW,CAAC,CAAC;YAC5D,MAAM,OAAO,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,uCAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,mBAAmB,EAAE;gBAC/F,UAAU,EAAE,IAAI;aACnB,CAAC,CAAC;YAEH,OAAO,CAAC,UAAU,EAAE,CAAC;YAErB,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE;gBAC3B,OAAO,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;aACzC,CAAC,CAAC;YAEH,sDAAsD;YACtD,IAAA,4BAAY,EAAC,OAAO,CAAC,CAAC;YAEtB,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;gBAC1B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAsB,CAAC,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,kBAAkB,GAAG,WAAW,CAAC;gBAC5C,IAAA,uCAAqB,EAAC,WAAW,CAAC,CAAC;YACvC,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QAEhE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;gBAC1B,IAAA,+CAA6B,EAAC,KAAK,CAAC,CAAC;YACzC,CAAC;YACD,MAAM,CAAC,KAAK,CAAC,yCAAyC,EAAE,KAAK,CAAC,CAAC;YAC/D,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CAAA","sourcesContent":["import express, { Application, Request } from \"express\";\nimport { NestFactory } from \"@nestjs/core\";\nimport { ExpressAdapter } from \"@nestjs/platform-express\";\nimport { setupSwagger } from \"./swagger/SwaggerConfig\";\nimport { Logger } from \"./Logger\";\nimport { EmilsoftwareModule, EmilsoftwareOptions } from \"./EmilsoftwareModule\";\nimport {\n beginAccessiAuthInitialization,\n failAccessiAuthInitialization,\n AuthenticateGenService,\n setAccessiAuthService\n} from \"./accessi-module/middleware/authenticateGen\";\n\n/**\n * Initializes the unified module that combines Accessi and Allegati functionality\n * @param app Express application instance\n * @param options Configuration options for both modules\n */\nexport async function initEmilsoftwareModule(app: Application, options: EmilsoftwareOptions) {\n const logger: Logger = new Logger(initEmilsoftwareModule.name);\n if (options?.accessiOptions) {\n beginAccessiAuthInitialization();\n }\n\n try {\n // Isolate Nest on a dedicated Express instance and dispatch only module routes.\n // This keeps pre-existing routes/middlewares on the host app untouched.\n const nestHostApp = express();\n const isNestRoute = (path: string) =>\n path === \"/api\" ||\n path.startsWith(\"/api/\") ||\n path === \"/swagger\" ||\n path.startsWith(\"/swagger/\") ||\n path === \"/swagger-json\";\n\n app.use((req: Request, res, next) => {\n if (!isNestRoute(req.path)) {\n return next();\n }\n return nestHostApp(req, res, next);\n });\n\n const nestExpressInstance = new ExpressAdapter(nestHostApp);\n const nestApp = await NestFactory.create(EmilsoftwareModule.forRoot(options), nestExpressInstance, {\n bufferLogs: true\n });\n\n nestApp.enableCors();\n\n nestApp.setGlobalPrefix('api', {\n exclude: ['/swagger', '/swagger/(.*)']\n });\n\n // Setup unified Swagger documentation for all modules\n setupSwagger(nestApp);\n\n await nestApp.init();\n if (options?.accessiOptions) {\n const authService = nestApp.get(AuthenticateGenService);\n app.locals.accessiAuthService = authService;\n setAccessiAuthService(authService);\n }\n\n logger.info(\"Emilsoftware module initialized successfully\");\n\n } catch (error) {\n if (options?.accessiOptions) {\n failAccessiAuthInitialization(error);\n }\n logger.error(\"Error initializing Emilsoftware Module:\", error);\n throw error;\n }\n}\n"]}
@@ -1,2 +1,8 @@
1
1
  import { INestApplication } from "@nestjs/common";
2
- export declare function setupSwagger(app: INestApplication): void;
2
+ export type SwaggerSetupOptions = {
3
+ swaggerPath?: string;
4
+ swaggerJsonPath?: string;
5
+ title?: string;
6
+ description?: string;
7
+ };
8
+ export declare function setupSwagger(app: INestApplication, options?: SwaggerSetupOptions): void;
@@ -3,14 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setupSwagger = setupSwagger;
4
4
  const swagger_1 = require("@nestjs/swagger");
5
5
  const Logger_1 = require("../Logger");
6
- function setupSwagger(app) {
7
- var _a, _b;
6
+ function setupSwagger(app, options) {
7
+ var _a, _b, _c, _d, _e, _f;
8
8
  const logger = new Logger_1.Logger("SwaggerConfig");
9
- const swaggerPath = "swagger";
10
- const swaggerJsonPath = `${swaggerPath}-json`;
9
+ const swaggerPath = (_a = options === null || options === void 0 ? void 0 : options.swaggerPath) !== null && _a !== void 0 ? _a : "swagger";
10
+ const defaultSwaggerJsonPath = swaggerPath.includes("/")
11
+ ? `${swaggerPath.substring(0, swaggerPath.lastIndexOf("/") + 1)}swagger.json`
12
+ : "swagger.json";
13
+ const swaggerJsonPath = (_b = options === null || options === void 0 ? void 0 : options.swaggerJsonPath) !== null && _b !== void 0 ? _b : defaultSwaggerJsonPath;
14
+ const legacySwaggerJsonPath = `${swaggerPath}-json`;
11
15
  const config = new swagger_1.DocumentBuilder()
12
- .setTitle("API Documentation")
13
- .setDescription("API per la gestione di accessi utenti e allegati")
16
+ .setTitle((_c = options === null || options === void 0 ? void 0 : options.title) !== null && _c !== void 0 ? _c : "API Documentation")
17
+ .setDescription((_d = options === null || options === void 0 ? void 0 : options.description) !== null && _d !== void 0 ? _d : "API per la gestione di accessi utenti e allegati")
14
18
  .setVersion("1.0")
15
19
  .addBearerAuth() // Per abilitare l'autenticazione JWT
16
20
  .build();
@@ -20,7 +24,14 @@ function setupSwagger(app) {
20
24
  res.setHeader("Content-Type", "application/json");
21
25
  res.send(document);
22
26
  });
23
- let port = ((_b = (_a = app.getHttpServer()) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b.port) || 3000;
27
+ if (legacySwaggerJsonPath !== swaggerJsonPath) {
28
+ app.use(`/${legacySwaggerJsonPath}`, (_, res) => {
29
+ res.setHeader("Content-Type", "application/json");
30
+ res.send(document);
31
+ });
32
+ }
33
+ let port = ((_f = (_e = app.getHttpServer()) === null || _e === void 0 ? void 0 : _e.address) === null || _f === void 0 ? void 0 : _f.port) || 3000;
24
34
  logger.info(`Swagger documentation available at: http://localhost:${port}/${swaggerPath}`);
35
+ logger.info(`Swagger OpenAPI JSON available at: http://localhost:${port}/${swaggerJsonPath}`);
25
36
  }
26
37
  //# sourceMappingURL=SwaggerConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwaggerConfig.js","sourceRoot":"","sources":["../../src/swagger/SwaggerConfig.ts"],"names":[],"mappings":";;AAIA,oCAyBC;AA5BD,6CAAiE;AACjE,sCAAmC;AAEnC,SAAgB,YAAY,CAAC,GAAqB;;IAC9C,MAAM,MAAM,GAAW,IAAI,eAAM,CAAC,eAAe,CAAC,CAAC;IACnD,MAAM,WAAW,GAAG,SAAS,CAAC;IAC9B,MAAM,eAAe,GAAG,GAAG,WAAW,OAAO,CAAC;IAE9C,MAAM,MAAM,GAAG,IAAI,yBAAe,EAAE;SAC/B,QAAQ,CAAC,mBAAmB,CAAC;SAC7B,cAAc,CAAC,kDAAkD,CAAC;SAClE,UAAU,CAAC,KAAK,CAAC;SACjB,aAAa,EAAE,CAAC,qCAAqC;SACrD,KAAK,EAAE,CAAC;IAEb,MAAM,QAAQ,GAAG,uBAAa,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3D,uBAAa,CAAC,KAAK,CAAC,WAAW,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IAEhD,GAAG,CAAC,GAAG,CAAC,IAAI,eAAe,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;QACtC,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAClD,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,IAAI,IAAI,GAAG,CAAA,MAAA,MAAA,GAAG,CAAC,aAAa,EAAE,0CAAE,OAAO,0CAAE,IAAI,KAAI,IAAI,CAAC;IAEtD,MAAM,CAAC,IAAI,CACP,wDAAwD,IAAI,IAAI,WAAW,EAAE,CAChF,CAAC;AACN,CAAC","sourcesContent":["import { INestApplication } from \"@nestjs/common\";\r\nimport { DocumentBuilder, SwaggerModule } from \"@nestjs/swagger\";\r\nimport { Logger } from \"../Logger\";\r\n\r\nexport function setupSwagger(app: INestApplication) {\r\n const logger: Logger = new Logger(\"SwaggerConfig\");\r\n const swaggerPath = \"swagger\";\r\n const swaggerJsonPath = `${swaggerPath}-json`;\r\n\r\n const config = new DocumentBuilder()\r\n .setTitle(\"API Documentation\")\r\n .setDescription(\"API per la gestione di accessi utenti e allegati\")\r\n .setVersion(\"1.0\")\r\n .addBearerAuth() // Per abilitare l'autenticazione JWT\r\n .build();\r\n\r\n const document = SwaggerModule.createDocument(app, config);\r\n SwaggerModule.setup(swaggerPath, app, document);\r\n\r\n app.use(`/${swaggerJsonPath}`, (_, res) => {\r\n res.setHeader(\"Content-Type\", \"application/json\");\r\n res.send(document);\r\n });\r\n\r\n let port = app.getHttpServer()?.address?.port || 3000;\r\n\r\n logger.info(\r\n `Swagger documentation available at: http://localhost:${port}/${swaggerPath}`\r\n );\r\n} "]}
1
+ {"version":3,"file":"SwaggerConfig.js","sourceRoot":"","sources":["../../src/swagger/SwaggerConfig.ts"],"names":[],"mappings":";;AAWA,oCAuCC;AAjDD,6CAAiE;AACjE,sCAAmC;AASnC,SAAgB,YAAY,CAAC,GAAqB,EAAE,OAA6B;;IAC7E,MAAM,MAAM,GAAW,IAAI,eAAM,CAAC,eAAe,CAAC,CAAC;IACnD,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,SAAS,CAAC;IACtD,MAAM,sBAAsB,GAAG,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC;QACpD,CAAC,CAAC,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,cAAc;QAC7E,CAAC,CAAC,cAAc,CAAC;IACrB,MAAM,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,sBAAsB,CAAC;IAC3E,MAAM,qBAAqB,GAAG,GAAG,WAAW,OAAO,CAAC;IAEpD,MAAM,MAAM,GAAG,IAAI,yBAAe,EAAE;SAC/B,QAAQ,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,mBAAmB,CAAC;SAC/C,cAAc,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,kDAAkD,CAAC;SAC1F,UAAU,CAAC,KAAK,CAAC;SACjB,aAAa,EAAE,CAAC,qCAAqC;SACrD,KAAK,EAAE,CAAC;IAEb,MAAM,QAAQ,GAAG,uBAAa,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3D,uBAAa,CAAC,KAAK,CAAC,WAAW,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IAEhD,GAAG,CAAC,GAAG,CAAC,IAAI,eAAe,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;QACtC,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAClD,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,IAAI,qBAAqB,KAAK,eAAe,EAAE,CAAC;QAC5C,GAAG,CAAC,GAAG,CAAC,IAAI,qBAAqB,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC5C,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;YAClD,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;IAED,IAAI,IAAI,GAAG,CAAA,MAAA,MAAA,GAAG,CAAC,aAAa,EAAE,0CAAE,OAAO,0CAAE,IAAI,KAAI,IAAI,CAAC;IAEtD,MAAM,CAAC,IAAI,CACP,wDAAwD,IAAI,IAAI,WAAW,EAAE,CAChF,CAAC;IACF,MAAM,CAAC,IAAI,CACP,uDAAuD,IAAI,IAAI,eAAe,EAAE,CACnF,CAAC;AACN,CAAC","sourcesContent":["import { INestApplication } from \"@nestjs/common\";\nimport { DocumentBuilder, SwaggerModule } from \"@nestjs/swagger\";\nimport { Logger } from \"../Logger\";\n\nexport type SwaggerSetupOptions = {\n swaggerPath?: string;\n swaggerJsonPath?: string;\n title?: string;\n description?: string;\n};\n\nexport function setupSwagger(app: INestApplication, options?: SwaggerSetupOptions) {\n const logger: Logger = new Logger(\"SwaggerConfig\");\n const swaggerPath = options?.swaggerPath ?? \"swagger\";\n const defaultSwaggerJsonPath = swaggerPath.includes(\"/\")\n ? `${swaggerPath.substring(0, swaggerPath.lastIndexOf(\"/\") + 1)}swagger.json`\n : \"swagger.json\";\n const swaggerJsonPath = options?.swaggerJsonPath ?? defaultSwaggerJsonPath;\n const legacySwaggerJsonPath = `${swaggerPath}-json`;\n\n const config = new DocumentBuilder()\n .setTitle(options?.title ?? \"API Documentation\")\n .setDescription(options?.description ?? \"API per la gestione di accessi utenti e allegati\")\n .setVersion(\"1.0\")\n .addBearerAuth() // Per abilitare l'autenticazione JWT\n .build();\n\n const document = SwaggerModule.createDocument(app, config);\n SwaggerModule.setup(swaggerPath, app, document);\n\n app.use(`/${swaggerJsonPath}`, (_, res) => {\n res.setHeader(\"Content-Type\", \"application/json\");\n res.send(document);\n });\n\n if (legacySwaggerJsonPath !== swaggerJsonPath) {\n app.use(`/${legacySwaggerJsonPath}`, (_, res) => {\n res.setHeader(\"Content-Type\", \"application/json\");\n res.send(document);\n });\n }\n\n let port = app.getHttpServer()?.address?.port || 3000;\n\n logger.info(\n `Swagger documentation available at: http://localhost:${port}/${swaggerPath}`\n );\n logger.info(\n `Swagger OpenAPI JSON available at: http://localhost:${port}/${swaggerJsonPath}`\n );\n}\n"]}
package/package.json CHANGED
@@ -1,83 +1,83 @@
1
- {
2
- "name": "emilsoftware-utilities",
3
- "version": "2.0.0-dev.2",
4
- "description": "Utilities for EmilSoftware",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "scripts": {
9
- "release": "semantic-release",
10
- "build": "tsc && npm run copy-views",
11
- "copy-views": "node copy-views.js",
12
- "db:update:accessi": "ts-node src/accessi-module/database-updates/runAccessiDbUpdate.ts",
13
- "db:update:accessi:dist": "npm run build && node dist/accessi-module/database-updates/runAccessiDbUpdate.js",
14
- "prepublishOnly": "npm run build",
15
- "test:allegati": "ts-node src/tests/allegati/allegati.ts",
16
- "test:accessi": "npm run build && ts-node test/index.js"
17
- },
18
- "publishConfig": {
19
- "access": "public"
20
- },
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://github.com/Emil-Software/emilsoftware-utilities.git"
24
- },
25
- "author": "",
26
- "license": "ISC",
27
- "bugs": {
28
- "url": "https://github.com/Emil-Software/emilsoftware-utilities/issues"
29
- },
30
- "homepage": "https://github.com/Emil-Software/emilsoftware-utilities#readme",
31
- "dependencies": {
32
- "@nestjs/common": "^11.0.11",
33
- "@nestjs/core": "^11.0.11",
34
- "@nestjs/platform-express": "^11.0.11",
35
- "@nestjs/swagger": "^11.0.6",
36
- "axios": "^1.7.9",
37
- "class-transformer": "^0.5.1",
38
- "class-validator": "^0.14.1",
39
- "colorette": "^2.0.20",
40
- "es-node-firebird": "^1.2.9",
41
- "jsonwebtoken": "^9.0.2",
42
- "jspdf": "^3.0.0",
43
- "jspdf-autotable": "^5.0.2",
44
- "multer": "^1.4.5-lts.2",
45
- "node-fetch": "^3.3.2",
46
- "nodemailer": "^6.10.0",
47
- "reflect-metadata": "^0.2.2",
48
- "swagger-jsdoc": "^6.2.8",
49
- "swagger-ui-express": "^5.0.1",
50
- "uuid": "^11.0.5",
51
- "winston": "^3.11.0"
52
- },
53
- "devDependencies": {
54
- "@semantic-release/changelog": "^6.0.3",
55
- "@semantic-release/commit-analyzer": "^13.0.1",
56
- "@semantic-release/git": "^10.0.1",
57
- "@semantic-release/github": "^11.0.3",
58
- "@semantic-release/npm": "^12.0.2",
59
- "@semantic-release/release-notes-generator": "^14.0.3",
60
- "@types/express": "^5.0.0",
61
- "@types/jsonwebtoken": "^9.0.7",
62
- "@types/multer": "^1.4.12",
63
- "@types/node": "^22.13.4",
64
- "@types/nodemailer": "^6.4.17",
65
- "@types/reflect-metadata": "^0.0.5",
66
- "@types/swagger-jsdoc": "^6.0.4",
67
- "@types/swagger-ui-express": "^4.1.7",
68
- "commitizen": "^4.3.1",
69
- "cz-conventional-changelog": "^3.3.0",
70
- "fs-extra": "^11.3.0",
71
- "semantic-release": "^24.2.7",
72
- "ts-node": "^10.9.2",
73
- "typescript": "^5.8.3"
74
- },
75
- "files": [
76
- "dist"
77
- ],
78
- "config": {
79
- "commitizen": {
80
- "path": "./node_modules/cz-conventional-changelog"
81
- }
82
- }
83
- }
1
+ {
2
+ "name": "emilsoftware-utilities",
3
+ "version": "2.0.0-dev.21",
4
+ "description": "Utilities for EmilSoftware",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "scripts": {
9
+ "release": "semantic-release",
10
+ "build": "tsc && npm run copy-views",
11
+ "copy-views": "node copy-views.js",
12
+ "db:update:accessi": "ts-node src/accessi-module/database-updates/runAccessiDbUpdate.ts",
13
+ "db:update:accessi:dist": "npm run build && node dist/accessi-module/database-updates/runAccessiDbUpdate.js",
14
+ "prepublishOnly": "npm run build",
15
+ "test:allegati": "ts-node src/tests/allegati/allegati.ts",
16
+ "test:accessi": "npm run build && ts-node test/index.js"
17
+ },
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/Emil-Software/emilsoftware-utilities.git"
24
+ },
25
+ "author": "",
26
+ "license": "ISC",
27
+ "bugs": {
28
+ "url": "https://github.com/Emil-Software/emilsoftware-utilities/issues"
29
+ },
30
+ "homepage": "https://github.com/Emil-Software/emilsoftware-utilities#readme",
31
+ "dependencies": {
32
+ "@nestjs/common": "^11.0.11",
33
+ "@nestjs/core": "^11.0.11",
34
+ "@nestjs/platform-express": "^11.0.11",
35
+ "@nestjs/swagger": "^11.0.6",
36
+ "axios": "^1.7.9",
37
+ "class-transformer": "^0.5.1",
38
+ "class-validator": "^0.14.1",
39
+ "colorette": "^2.0.20",
40
+ "jsonwebtoken": "^9.0.2",
41
+ "jspdf": "^3.0.0",
42
+ "jspdf-autotable": "^5.0.2",
43
+ "multer": "^1.4.5-lts.2",
44
+ "node-fetch": "^3.3.2",
45
+ "node-firebird": "^2.15.0",
46
+ "nodemailer": "^6.10.0",
47
+ "reflect-metadata": "^0.2.2",
48
+ "swagger-jsdoc": "^6.2.8",
49
+ "swagger-ui-express": "^5.0.1",
50
+ "uuid": "^11.0.5",
51
+ "winston": "^3.11.0"
52
+ },
53
+ "devDependencies": {
54
+ "@semantic-release/changelog": "^6.0.3",
55
+ "@semantic-release/commit-analyzer": "^13.0.1",
56
+ "@semantic-release/git": "^10.0.1",
57
+ "@semantic-release/github": "^11.0.3",
58
+ "@semantic-release/npm": "^12.0.2",
59
+ "@semantic-release/release-notes-generator": "^14.0.3",
60
+ "@types/express": "^5.0.0",
61
+ "@types/jsonwebtoken": "^9.0.7",
62
+ "@types/multer": "^1.4.12",
63
+ "@types/node": "^22.13.4",
64
+ "@types/nodemailer": "^6.4.17",
65
+ "@types/reflect-metadata": "^0.0.5",
66
+ "@types/swagger-jsdoc": "^6.0.4",
67
+ "@types/swagger-ui-express": "^4.1.7",
68
+ "commitizen": "^4.3.1",
69
+ "cz-conventional-changelog": "^3.3.0",
70
+ "fs-extra": "^11.3.0",
71
+ "semantic-release": "^24.2.7",
72
+ "ts-node": "^10.9.2",
73
+ "typescript": "^5.8.3"
74
+ },
75
+ "files": [
76
+ "dist"
77
+ ],
78
+ "config": {
79
+ "commitizen": {
80
+ "path": "./node_modules/cz-conventional-changelog"
81
+ }
82
+ }
83
+ }