@fdm-monster/server 2.0.1 → 2.0.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.
Files changed (69) hide show
  1. package/.env.template +2 -0
  2. package/.yarn/install-state.gz +0 -0
  3. package/README.md +22 -3
  4. package/RELEASE_NOTES.MD +24 -0
  5. package/dist/constants/authorization.constants.js +12 -3
  6. package/dist/constants/authorization.constants.js.map +1 -1
  7. package/dist/container.js +2 -0
  8. package/dist/container.js.map +1 -1
  9. package/dist/container.tokens.js +1 -0
  10. package/dist/container.tokens.js.map +1 -1
  11. package/dist/controllers/printer-maintenance-log.controller.js +174 -0
  12. package/dist/controllers/printer-maintenance-log.controller.js.map +1 -0
  13. package/dist/data-source.js +8 -8
  14. package/dist/data-source.js.map +1 -1
  15. package/dist/entities/index.js +4 -0
  16. package/dist/entities/index.js.map +1 -1
  17. package/dist/entities/print-job.entity.js +5 -1
  18. package/dist/entities/print-job.entity.js.map +1 -1
  19. package/dist/entities/printer-maintenance-log.entity.js +142 -0
  20. package/dist/entities/printer-maintenance-log.entity.js.map +1 -0
  21. package/dist/entities/printer.entity.js +2 -1
  22. package/dist/entities/printer.entity.js.map +1 -1
  23. package/dist/handlers/logging/file-logging.transport.js +2 -2
  24. package/dist/handlers/logging/file-logging.transport.js.map +1 -1
  25. package/dist/index.js +11 -5
  26. package/dist/index.js.map +1 -1
  27. package/dist/migrations/1767909428129-AddPrinterMaintenanceLog.js +52 -0
  28. package/dist/migrations/1767909428129-AddPrinterMaintenanceLog.js.map +1 -0
  29. package/dist/server.constants.js +13 -9
  30. package/dist/server.constants.js.map +1 -1
  31. package/dist/server.core.js +7 -4
  32. package/dist/server.core.js.map +1 -1
  33. package/dist/server.env.js +13 -32
  34. package/dist/server.env.js.map +1 -1
  35. package/dist/server.host.js +1 -1
  36. package/dist/server.host.js.map +1 -1
  37. package/dist/services/bambu/bambu-ftp.adapter.js +1 -1
  38. package/dist/services/bambu/bambu-ftp.adapter.js.map +1 -1
  39. package/dist/services/core/client-bundle.service.js +10 -11
  40. package/dist/services/core/client-bundle.service.js.map +1 -1
  41. package/dist/services/core/config.service.js +3 -5
  42. package/dist/services/core/config.service.js.map +1 -1
  43. package/dist/services/core/logs-manager.service.js +9 -10
  44. package/dist/services/core/logs-manager.service.js.map +1 -1
  45. package/dist/services/core/multer.service.js +2 -2
  46. package/dist/services/core/multer.service.js.map +1 -1
  47. package/dist/services/file-storage.service.js +1 -1
  48. package/dist/services/file-storage.service.js.map +1 -1
  49. package/dist/services/interfaces/printer-maintenance-log.dto.js +6 -0
  50. package/dist/services/interfaces/printer-maintenance-log.dto.js.map +1 -0
  51. package/dist/services/interfaces/printer.dto.js.map +1 -1
  52. package/dist/services/orm/printer-maintenance-log.service.js +151 -0
  53. package/dist/services/orm/printer-maintenance-log.service.js.map +1 -0
  54. package/dist/services/orm/printer.service.js +8 -2
  55. package/dist/services/orm/printer.service.js.map +1 -1
  56. package/dist/services/typeorm/typeorm.service.js +5 -5
  57. package/dist/services/typeorm/typeorm.service.js.map +1 -1
  58. package/dist/services/validators/printer-maintenance-log.validation.js +41 -0
  59. package/dist/services/validators/printer-maintenance-log.validation.js.map +1 -0
  60. package/dist/services/validators/printer-service.validation.js +2 -3
  61. package/dist/services/validators/printer-service.validation.js.map +1 -1
  62. package/dist/utils/env.utils.js +5 -4
  63. package/dist/utils/env.utils.js.map +1 -1
  64. package/dist/utils/fs.utils.js +37 -11
  65. package/dist/utils/fs.utils.js.map +1 -1
  66. package/dist/utils/swagger/swagger.js +1 -1
  67. package/dist/utils/swagger/swagger.js.map +1 -1
  68. package/install.sh +559 -0
  69. package/package.json +4 -4
package/.env.template CHANGED
@@ -38,6 +38,8 @@ OVERRIDE_DEMO_ROLE=ADMIN
38
38
  # Debug socket states
39
39
  DEBUG_SOCKET_STATES=false
40
40
 
41
+ # Saves media (logs, files, file-uploads, log-zips, client-dist, client-dist-zips, etc)
42
+ MEDIA_PATH=./media
41
43
  # Saves SQLite database to ./database/fdm-monster.sqlite
42
44
  DATABASE_PATH=./database
43
45
  # Optional, default: fdm-monster.sqlite
Binary file
package/README.md CHANGED
@@ -42,6 +42,13 @@ Here is a list of features that make FDM Monster stand out:
42
42
 
43
43
  ## Installation methods ⚙️
44
44
 
45
+ ### Quick Install (Linux)
46
+ ```bash
47
+ curl -fsSL https://raw.githubusercontent.com/fdm-monster/fdm-monster/main/install.sh | bash
48
+ ```
49
+
50
+ ### Other Methods
51
+ - [One-Click Linux Install](https://docs.fdm-monster.net/installing/one-click-linux)
45
52
  - [Docker image](https://hub.docker.com/r/fdmmonster/fdm-monster)
46
53
  - [Raspberry Pi image MonsterPi](https://docs.fdm-monster.net/guides/monsterpi)
47
54
  - [Unraid Community App](https://unraid.net/community/apps?q=fdm+monster)
@@ -73,9 +80,21 @@ Please consider sponsoring FDM Monster to help this project! You can find the [G
73
80
 
74
81
  Thanks to the following parties for their financial support:
75
82
 
76
- | Tier 1 | Tier 2 | Tier 3 | Tier 4 | One time |
77
- |--------|--------|--------|--------|-----------|
78
- | | [thatguymendel](https://github.com/thatguymendel) | [MrHitchcock](https://github.com/MrHitchcock) | [doucettom](https://github.com/doucettom) | [th3dstudio](https://github.com/th3dstudio) |
83
+ ### Tier 1
84
+ - (empty)
85
+
86
+ ### Tier 2
87
+ - [thatguymendel](https://github.com/thatguymendel)
88
+
89
+ ### Tier 3
90
+ - [MrHitchcock](https://github.com/MrHitchcock)
91
+ - [That Guy Jaysen](https://github.com/thatguy-jaysenodell)
92
+
93
+ ### Tier 4
94
+ - [doucettom](https://github.com/doucettom)
95
+
96
+ ### One Time
97
+ - [th3dstudio](https://github.com/th3dstudio)
79
98
 
80
99
 
81
100
  ## Contributors ✨
package/RELEASE_NOTES.MD CHANGED
@@ -1,5 +1,29 @@
1
1
  # Develop
2
2
 
3
+ # FDM Monster 2.0.3
4
+
5
+ Hotfix release
6
+
7
+ - Client wasn't updated to 2.2.0
8
+
9
+ # FDM Monster 2.0.2
10
+
11
+ ## Features
12
+
13
+ - Printer maintenance log
14
+ - Added ENV_FILE env variable to override path for .env file
15
+ - Added MEDIA_PATH env variable to override media storage folder
16
+
17
+ ## Fixes
18
+
19
+ - DATABASE_PATH env variable will now respect its value if set, instead of forcing it to be relative
20
+
21
+ ## Chores
22
+
23
+ - Remove corepack from CICD as yarn is committed to repository
24
+ - Switch docker container base to node 24
25
+ - PrintJob entity printer relation improved
26
+
3
27
  # FDM Monster 2.0.1
4
28
 
5
29
  ## Feat
@@ -45,7 +45,8 @@ const PERM_GROUP = {
45
45
  PrinterSettings: "PrinterSettings",
46
46
  Jobs: "Jobs",
47
47
  Floors: "Floors",
48
- ServerInfo: "ServerInfo"
48
+ ServerInfo: "ServerInfo",
49
+ PrinterMaintenanceLog: "PrinterMaintenanceLog"
49
50
  };
50
51
  const PERMS = {
51
52
  [PERM_GROUP.PrinterFiles]: {
@@ -75,6 +76,14 @@ const PERMS = {
75
76
  [PERM_GROUP.ServerInfo]: {
76
77
  Default: "ServerInfo.Default",
77
78
  Get: "ServerInfo.Get"
79
+ },
80
+ [PERM_GROUP.PrinterMaintenanceLog]: {
81
+ Default: "PrinterMaintenanceLog.Default",
82
+ List: "PrinterMaintenanceLog.List",
83
+ Get: "PrinterMaintenanceLog.Get",
84
+ Create: "PrinterMaintenanceLog.Create",
85
+ Complete: "PrinterMaintenanceLog.Complete",
86
+ Delete: "PrinterMaintenanceLog.Delete"
78
87
  }
79
88
  };
80
89
  function flattenPermissionDefinition() {
@@ -96,8 +105,8 @@ const ROLES = {
96
105
  GUEST: "GUEST"
97
106
  };
98
107
  const ROLE_PERMS = {
99
- [ROLES.ADMIN]: (0, _lodash.union)(allPerms(PERM_GROUP.Jobs), allPerms(PERM_GROUP.Floors), allPerms(PERM_GROUP.PrinterFiles), allPerms(PERM_GROUP.PrinterSettings), allPerms(PERM_GROUP.ServerInfo)),
100
- [ROLES.OPERATOR]: (0, _lodash.union)(allPerms(PERM_GROUP.Jobs), allPerms(PERM_GROUP.Floors), allPerms(PERM_GROUP.PrinterFiles), allPerms(PERM_GROUP.PrinterSettings)),
108
+ [ROLES.ADMIN]: (0, _lodash.union)(allPerms(PERM_GROUP.Jobs), allPerms(PERM_GROUP.Floors), allPerms(PERM_GROUP.PrinterFiles), allPerms(PERM_GROUP.PrinterSettings), allPerms(PERM_GROUP.ServerInfo), allPerms(PERM_GROUP.PrinterMaintenanceLog)),
109
+ [ROLES.OPERATOR]: (0, _lodash.union)(allPerms(PERM_GROUP.Jobs), allPerms(PERM_GROUP.Floors), allPerms(PERM_GROUP.PrinterFiles), allPerms(PERM_GROUP.PrinterSettings), allPerms(PERM_GROUP.PrinterMaintenanceLog)),
101
110
  [ROLES.GUEST]: []
102
111
  };
103
112
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/constants/authorization.constants.ts"],"names":["AUTH_ERROR_REASON","PERMS","PERM_GROUP","ROLES","ROLE_PERMS","allPerms","flattenPermissionDefinition","IncorrectCredentials","InvalidOrExpiredRefreshToken","InvalidOrExpiredAuthToken","PasswordChangeRequired","LoginRequired","AccountNotVerified","PrinterFiles","PrinterSettings","Jobs","Floors","ServerInfo","Default","Get","Delete","Clear","Upload","Actions","List","Create","Update","permissions","key","Object","values","permissionName","push","group","Error","ADMIN","OPERATOR","GUEST","union"],"mappings":";;;;;;;;;;;QAEaA;eAAAA;;QAoBAC;eAAAA;;QAVAC;eAAAA;;QA4DAC;eAAAA;;QAQAC;eAAAA;;QAbGC;eAAAA;;QAVAC;eAAAA;;;wBAzDM;AAEf,MAAMN,oBAAoB;IAE/BO,sBAAsB;IACtBC,8BAA8B;IAC9BC,2BAA2B;IAC3BC,wBAAwB;IACxBC,eAAe;IACfC,oBAAoB;AACtB;AAEO,MAAMV,aAAa;IACxBW,cAAc;IACdC,iBAAiB;IACjBC,MAAM;IACNC,QAAQ;IACRC,YAAY;AACd;AAIO,MAAMhB,QAAQ;IACnB,CAACC,WAAWW,YAAY,CAAC,EAAE;QACzBK,SAAS;QACTC,KAAK;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ChCR,SAASH,WAAWY,eAAe;IAErC,CAACX,MAAMkC,KAAK,CAAC,EAAE,EAAE;AACnB"}
1
+ {"version":3,"sources":["../../src/constants/authorization.constants.ts"],"names":["AUTH_ERROR_REASON","PERMS","PERM_GROUP","ROLES","ROLE_PERMS","allPerms","flattenPermissionDefinition","IncorrectCredentials","InvalidOrExpiredRefreshToken","InvalidOrExpiredAuthToken","PasswordChangeRequired","LoginRequired","AccountNotVerified","PrinterFiles","PrinterSettings","Jobs","Floors","ServerInfo","PrinterMaintenanceLog","Default","Get","Delete","Clear","Upload","Actions","List","Create","Update","Complete","permissions","key","Object","values","permissionName","push","group","Error","ADMIN","OPERATOR","GUEST","union"],"mappings":";;;;;;;;;;;QAEaA;eAAAA;;QAqBAC;eAAAA;;QAXAC;eAAAA;;QAqEAC;eAAAA;;QAQAC;eAAAA;;QAbGC;eAAAA;;QAVAC;eAAAA;;;wBAlEM;AAEf,MAAMN,oBAAoB;IAE/BO,sBAAsB;IACtBC,8BAA8B;IAC9BC,2BAA2B;IAC3BC,wBAAwB;IACxBC,eAAe;IACfC,oBAAoB;AACtB;AAEO,MAAMV,aAAa;IACxBW,cAAc;IACdC,iBAAiB;IACjBC,MAAM;IACNC,QAAQ;IACRC,YAAY;IACZC,uBAAuB;AACzB;AAIO,MAAMjB,QAAQ;IACnB,CAACC,WAAWW,YAAY,CAAC,EAAE;QACzBM,SAAS;QACTC,KAAK;QACLC,QAAQ;QACRC,OAAO;QACPC,QAAQ;QACRC,SAAS;IACX;IACA,CAACtB,WAAWa,IAAI,CAAC,EAAE;QACjBI,SAAS;QACTM,MAAM;IACR;IACA,CAACvB,WAAWc,MAAM,CAAC,EAAE;QACnBG,SAAS;QACTM,MAAM;QACNL,KAAK;QACLM,QAAQ;QACRC,QAAQ;QACRN,QAAQ;IACV;IACA,CAACnB,WAAWY,eAAe,CAAC,EAAE;QAC5BK,SAAS;QACTC,KAAK;IACP;IACA,CAAClB,WAAWe,UAAU,CAAC,EAAE;QACvBE,SAAS;QACTC,KAAK;IACP;IACA,CAAClB,WAAWgB,qBAAqB,CAAC,EAAE;QAClCC,SAAS;QACTM,MAAM;QACNL,KAAK;QACLM,QAAQ;QACRE,UAAU;QACVP,QAAQ;IACV;AACF;AAMO,SAASf;IACd,MAAMuB,cAAgC,EAAE;IACxC,KAAK,MAAMC,OAAOC,OAAOC,MAAM,CAAC9B,YAAa;QAC3C,KAAK,MAAM+B,kBAAkBF,OAAOC,MAAM,CAAC/B,KAAK,CAAC6B,IAAI,EAAG;YACtDD,YAAYK,IAAI,CAACD;QACnB;IACF;IACA,OAAOJ;AACT;AAEO,SAASxB,SAAS8B,KAAsB;IAC7C,IAAI,CAACA,SAAS,CAAClC,KAAK,CAACkC,MAAM,EAAE,MAAM,IAAIC,MAAM,CAAC,uBAAuB,EAAED,MAAM,eAAe,CAAC;IAC7F,OAAOJ,OAAOC,MAAM,CAAC/B,KAAK,CAACkC,MAAM;AACnC;AAEO,MAAMhC,QAAQ;IACnBkC,OAAO;IACPC,UAAU;IACVC,OAAO;AACT;AAIO,MAAMnC,aAAiD;IAC5D,CAACD,MAAMkC,KAAK,CAAC,EAAEG,IAAAA,aAAK,EAClBnC,SAASH,WAAWa,IAAI,GACxBV,SAASH,WAAWc,MAAM,GAC1BX,SAASH,WAAWW,YAAY,GAChCR,SAASH,WAAWY,eAAe,GACnCT,SAASH,WAAWe,UAAU,GAC9BZ,SAASH,WAAWgB,qBAAqB;IAE3C,CAACf,MAAMmC,QAAQ,CAAC,EAAEE,IAAAA,aAAK,EACrBnC,SAASH,WAAWa,IAAI,GACxBV,SAASH,WAAWc,MAAM,GAC1BX,SAASH,WAAWW,YAAY,GAChCR,SAASH,WAAWY,eAAe,GACnCT,SAASH,WAAWgB,qBAAqB;IAE3C,CAACf,MAAMoC,KAAK,CAAC,EAAE,EAAE;AACnB"}
package/dist/container.js CHANGED
@@ -13,6 +13,7 @@ const _awilix = require("awilix");
13
13
  const _toadscheduler = require("toad-scheduler");
14
14
  const _containertokens = require("./container.tokens");
15
15
  const _printerservice = require("./services/orm/printer.service");
16
+ const _printermaintenancelogservice = require("./services/orm/printer-maintenance-log.service");
16
17
  const _settingsstore = require("./state/settings.store");
17
18
  const _serverreleaseservice = require("./services/core/server-release.service");
18
19
  const _taskmanagerservice = require("./services/task-manager.service");
@@ -104,6 +105,7 @@ function configureContainer() {
104
105
  [di.floorPositionService]: (0, _awilix.asClass)(_floorpositionservice.FloorPositionService).singleton(),
105
106
  [di.cameraStreamService]: (0, _awilix.asClass)(_camerastreamservice.CameraStreamService).singleton(),
106
107
  [di.printerService]: (0, _awilix.asClass)(_printerservice.PrinterService),
108
+ [di.printerMaintenanceLogService]: (0, _awilix.asClass)(_printermaintenancelogservice.PrinterMaintenanceLogService),
107
109
  [di.printerTagService]: (0, _awilix.asClass)(_printertagservice.PrinterTagService),
108
110
  [di.refreshTokenService]: (0, _awilix.asClass)(_refreshtokenservice.RefreshTokenService).singleton(),
109
111
  [di.userService]: (0, _awilix.asClass)(_userservice.UserService).singleton(),
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/container.ts"],"names":["configureContainer","container","createContainer","injectionMode","InjectionMode","CLASSIC","di","DITokens","register","appDefaultRole","asValue","ROLES","GUEST","appDefaultRoleNoLogin","ADMIN","serverVersion","asFunction","process","env","AppConstants","VERSION_KEY","cradleService","asClass","CradleService","inject","socketFactory","SocketFactory","transient","typeormService","TypeormService","singleton","settingsService","SettingsService","floorService","FloorService","floorPositionService","FloorPositionService","cameraStreamService","CameraStreamService","printerService","PrinterService","printerTagService","PrinterTagService","refreshTokenService","RefreshTokenService","userService","UserService","userRoleService","UserRoleService","roleService","RoleService","permissionService","PermissionService","serverHost","ServerHost","exceptionFilter","ExceptionFilter","settingsStore","SettingsStore","configService","ConfigService","authService","AuthService","jwtService","JwtService","loggerFactory","LoggerFactory","taskManagerService","TaskManagerService","toadScheduler","ToadScheduler","eventEmitter2","configureEventEmitter","serverReleaseService","ServerReleaseService","monsterPiService","MonsterPiService","githubService","GithubService","octokitService","CustomOctoKit","Octokit","plugin","throttling","auth","get","GITHUB_PAT","throttle","onRateLimit","_retryAfter","options","_octokit","_retryCount","logger","warn","method","url","onSecondaryRateLimit","clientBundleService","ClientBundleService","logDumpService","LogDumpService","httpClientFactory","HttpClientFactory","socketIoGateway","SocketIoGateway","multerService","MulterService","yamlService","YamlService","printerLogin","printerApiFactory","PrinterApiFactory","prusaLinkApi","PrusaLinkApi","prusaLinkPollingAdapter","PrusaLinkHttpPollingAdapter","octoprintApi","OctoprintApi","octoprintClient","OctoprintClient","octoPrintSockIoAdapter","OctoprintWebsocketAdapter","moonrakerApi","MoonrakerApi","moonrakerClient","MoonrakerClient","moonrakerWebsocketAdapter","MoonrakerWebsocketAdapter","bambuApi","BambuApi","bambuClient","BambuClient","bambuFtpAdapter","BambuFtpAdapter","bambuMqttAdapter","BambuMqttAdapter","batchCallService","BatchCallService","floorStore","FloorStore","printerThumbnailCache","PrinterThumbnailCache","fileCache","FileCache","fileUploadTrackerCache","FileUploadTrackerCache","printerFilesStore","PrinterFilesStore","printerCache","PrinterCache","printerEventsCache","PrinterEventsCache","printerSocketStore","PrinterSocketStore","testPrinterSocketStore","TestPrinterSocketStore","printJobService","PrintJobService","printQueueService","PrintQueueService","fileStorageService","FileStorageService","fileAnalysisService","FileAnalysisService","printFileDownloaderService","PrintFileDownloaderService","bootTask","BootTask","softwareUpdateTask","SoftwareUpdateTask","socketIoTask","SocketIoTask","clientDistDownloadTask","ClientDistDownloadTask","printerWebsocketTask","PrinterWebsocketTask","printerWebsocketRestoreTask","PrinterWebsocketRestoreTask","printerFilesLoadTask","PrinterFilesLoadTask","printJobAnalysisTask","PrintJobAnalysisTask"],"mappings":";;;;+BA4EgBA;;;eAAAA;;;yBA5EQ;wBACqD;+BAC/C;iCACL;gCACM;+BACD;sCACO;oCACF;+BACL;2BACJ;sCACW;8BACR;+BACC;mCACI;8BACI;iCACT;oCACM;+BACL;+BACA;wCACS;4BACZ;0BACF;6BACG;6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ionMode","CLASSIC","di","DITokens","register","appDefaultRole","asValue","ROLES","GUEST","appDefaultRoleNoLogin","ADMIN","serverVersion","asFunction","process","env","AppConstants","VERSION_KEY","cradleService","asClass","CradleService","inject","socketFactory","SocketFactory","transient","typeormService","TypeormService","singleton","settingsService","SettingsService","floorService","FloorService","floorPositionService","FloorPositionService","cameraStreamService","CameraStreamService","printerService","PrinterService","printerMaintenanceLogService","PrinterMaintenanceLogService","printerTagService","PrinterTagService","refreshTokenService","RefreshTokenService","userService","UserService","userRoleService","UserRoleService","roleService","RoleService","permissionService","PermissionService","serverHost","ServerHost","exceptionFilter","ExceptionFilter","settingsStore","SettingsStore","configService","ConfigService","authService","AuthService","jwtService","JwtService","loggerFactory","LoggerFactory","taskManagerService","TaskManagerService","toadScheduler","ToadScheduler","eventEmitter2","configureEventEmitter","serverReleaseService","ServerReleaseService","monsterPiService","MonsterPiService","githubService","GithubService","octokitService","CustomOctoKit","Octokit","plugin","throttling","auth","get","GITHUB_PAT","throttle","onRateLimit","_retryAfter","options","_octokit","_retryCount","logger","warn","method","url","onSecondaryRateLimit","clientBundleService","ClientBundleService","logDumpService","LogDumpService","httpClientFactory","HttpClientFactory","socketIoGateway","SocketIoGateway","multerService","MulterService","yamlService","YamlService","printerLogin","printerApiFactory","PrinterApiFactory","prusaLinkApi","PrusaLinkApi","prusaLinkPollingAdapter","PrusaLinkHttpPollingAdapter","octoprintApi","OctoprintApi","octoprintClient","OctoprintClient","octoPrintSockIoAdapter","OctoprintWebsocketAdapter","moonrakerApi","MoonrakerApi","moonrakerClient","MoonrakerClient","moonrakerWebsocketAdapter","MoonrakerWebsocketAdapter","bambuApi","BambuApi","bambuClient","BambuClient","bambuFtpAdapter","BambuFtpAdapter","bambuMqttAdapter","BambuMqttAdapter","batchCallService","BatchCallService","floorStore","FloorStore","printerThumbnailCache","PrinterThumbnailCache","fileCache","FileCache","fileUploadTrackerCache","FileUploadTrackerCache","printerFilesStore","PrinterFilesStore","printerCache","PrinterCache","printerEventsCache","PrinterEventsCache","printerSocketStore","PrinterSocketStore","testPrinterSocketStore","TestPrinterSocketStore","printJobService","PrintJobService","printQueueService","PrintQueueService","fileStorageService","FileStorageService","fileAnalysisService","FileAnalysisService","printFileDownloaderService","PrintFileDownloaderService","bootTask","BootTask","softwareUpdateTask","SoftwareUpdateTask","socketIoTask","SocketIoTask","clientDistDownloadTask","ClientDistDownloadTask","printerWebsocketTask","PrinterWebsocketTask","printerWebsocketRestoreTask","PrinterWebsocketRestoreTask","printerFilesLoadTask","PrinterFilesLoadTask","printJobAnalysisTask","PrintJobAnalysisTask"],"mappings":";;;;+BA6EgBA;;;eAAAA;;;yBA7EQ;wBACqD;+BAC/C;iCACL;gCACM;8CACc;+BACf;sCACO;oCACF;+BACL;2BACJ;sCACW;8BACR;+BACC;mCACI;8BACI;iCACT;oCACM;+BACL;+BACA;wCACS;4BACZ;0BACF;6BACG;6BACA;mCACM;sCACG;wCACf;6CACsB;+BACE;iCACd;qCACI;4BACT;6BACC;kCACK;kCACA;kCACM;2CACG;8BACb;oCACM;wCACI;oCACJ;oCACJ;qCACK;4BACT;6BACC;kCACD;qCACS;iCACJ;8BACH;sCACQ;iCACL;gCACD;iCACC;mCACE;iCACF;2CACU;8BACb;iCACG;8BACH;mCACK;uCACI;mCACJ;+BACJ;8BACD;6CACe;6BAChB;kCACK;iCACD;0BACP;mCACS;oCACC;iCACH;qCACI;sCACC;4CACM;AAEpC,SAASA;IAEd,MAAMC,YAAYC,IAAAA,uBAAe,EAAC;QAChCC,eAAeC,qBAAa,CAACC,OAAO;IACtC;IAEA,MAAMC,KAAKC,yBAAQ;IAEnBN,UAAUO,QAAQ,CAAC;QAEjB,CAACF,GAAGG,cAAc,CAAC,EAAEC,IAAAA,eAAO,EAACC,6BAAK,CAACC,KAAK;QACxC,CAACN,GAAGO,qBAAqB,CAAC,EAAEH,IAAAA,eAAO,EAACC,6BAAK,CAACG,KAAK;QAC/C,CAACR,GAAGS,aAAa,CAAC,EAAEC,IA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J,sCAAkB;QACnD,CAACtK,GAAGuK,YAAY,CAAC,EAAEvJ,IAAAA,eAAO,EAACwJ,0BAAY,EAAEhJ,SAAS;QAClD,CAACxB,GAAGyK,sBAAsB,CAAC,EAAEzJ,IAAAA,eAAO,EAAC0J,wCAAsB,EAAElJ,SAAS;QACtE,CAACxB,GAAG2K,oBAAoB,CAAC,EAAE3J,IAAAA,eAAO,EAAC4J,0CAAoB,EAAEpJ,SAAS;QAClE,CAACxB,GAAG6K,2BAA2B,CAAC,EAAE7J,IAAAA,eAAO,EAAC8J,wDAA2B,EAAEtJ,SAAS;QAChF,CAACxB,GAAG+K,oBAAoB,CAAC,EAAE/J,IAAAA,eAAO,EAACgK,0CAAoB,EAAExJ,SAAS;QAClE,CAACxB,GAAGiL,oBAAoB,CAAC,EAAEjK,IAAAA,eAAO,EAACkK,0CAAoB,EAAE1J,SAAS;IACpE;IAEA,OAAO7B;AACT"}
@@ -26,6 +26,7 @@ const DITokens = {
26
26
  eventEmitter2: "eventEmitter2",
27
27
  printerService: "printerService",
28
28
  printerTagService: "printerTagService",
29
+ printerMaintenanceLogService: "printerMaintenanceLogService",
29
30
  floorPositionService: "floorPositionService",
30
31
  printJobService: "printJobService",
31
32
  printQueueService: "printQueueService",
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/container.tokens.ts"],"names":["DITokens","cradleService","serverVersion","appDefaultRole","appDefaultRoleNoLogin","typeormService","serverHost","exceptionFilter","loggerFactory","httpClientFactory","socketIoGateway","multerService","configService","taskManagerService","toadScheduler","eventEmitter2","printerService","printerTagService","floorPositionService","printJobService","printQueueService","fileStorageService","fileAnalysisService","printFileDownloaderService","floorService","yamlService","settingsService","serverReleaseService","monsterPiService","githubService","octokitService","clientBundleService","logDumpService","userTokenService","authService","refreshTokenService","userService","userRoleService","permissionService","jwtService","roleService","prusaLinkApi","octoprintApi","octoprintClient","moonrakerApi","moonrakerClient","bambuApi","bambuClient","bambuFtpAdapter","bambuMqttAdapter","cameraStreamService","socketFactory","printerApiFactory","printerLogin","batchCallService","influxDbV2BaseService","systemInfoBundleService","floorStore","settingsStore","printerSocketStore","testPrinterSocketStore","printerFilesStore","prusaLinkPollingAdapter","octoPrintSockIoAdapter","moonrakerWebsocketAdapter","printerCache","printerEventsCache","printerThumbnailCache","fileCache","fileUploadTrackerCache","bootTask","softwareUpdateTask","clientDistDownloadTask","socketIoTask","printerWebsocketTask","printerWebsocketRestoreTask","printerFilesLoadTask","printJobAnalysisTask"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,WAAW;IACtBC,eAAe;IAEfC,eAAe;IACfC,gBAAgB;IAChBC,uBAAuB;IACvBC,gBAAgB;IAEhBC,YAAY;IACZC,iBAAiB;IACjBC,eAAe;IACfC,mBAAmB;IACnBC,iBAAiB;IACjBC,eAAe;IACfC,eAAe;IACfC,oBAAoB;IACpBC,eAAe;IACfC,eAAe;IACfC,gBAAgB;IAChBC,mBAAmB;IACnBC,sBAAsB;IACtBC,iBAAiB;IACjBC,mBAAmB;IACnBC,oBAAoB;IACpBC,qBAAqB;IACrBC,4BAA4B;IAC5BC,cAAc;IACdC,aAAa;IACbC,iBAAiB;IACjBC,sBAAsB;IACtBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,qBAAqB;IACrBC,gBAAgB;IAChBC,kBAAkB;IAClBC,aAAa;IACbC,qBAAqB;IACrBC,aAAa;IACbC,iBAAiB;IACjBC,mBAAmB;IACnBC,YAAY;IACZC,aAAa;IACbC,cAAc;IACdC,cAAc;IACdC,iBAAiB;IACjBC,cAAc;IACdC,iBAAiB;IACjBC,UAAU;IACVC,aAAa;IACbC,iBAAiB;IACjBC,kBAAkB;IAClBC,qBAAqB;IACrBC,eAAe;IACfC,mBAAmB;IACnBC,cAAc;IACdC,kBAAkB;IAClBC,uBAAuB;IACvBC,yBAAyB;IAEzBC,YAAY;IACZC,eAAe;IACfC,oBAAoB;IACpBC,wBAAwB;IACxBC,mBAAmB;IACnBC,yBAAyB;IACzBC,wBAAwB;IACxBC,2BAA2B;IAE3BC,cAAc;IACdC,oBAAoB;IACpBC,uBAAuB;IACvBC,WAAW;IACXC,wBAAwB;IAExBC,UAAU;IACVC,oBAAoB;IACpBC,wBAAwB;IACxBC,cAAc;IACdC,sBAAsB;IACtBC,6BAA6B;IAC7BC,sBAAsB;IACtBC,sBAAsB;AACxB"}
1
+ {"version":3,"sources":["../src/container.tokens.ts"],"names":["DITokens","cradleService","serverVersion","appDefaultRole","appDefaultRoleNoLogin","typeormService","serverHost","exceptionFilter","loggerFactory","httpClientFactory","socketIoGateway","multerService","configService","taskManagerService","toadScheduler","eventEmitter2","printerService","printerTagService","printerMaintenanceLogService","floorPositionService","printJobService","printQueueService","fileStorageService","fileAnalysisService","printFileDownloaderService","floorService","yamlService","settingsService","serverReleaseService","monsterPiService","githubService","octokitService","clientBundleService","logDumpService","userTokenService","authService","refreshTokenService","userService","userRoleService","permissionService","jwtService","roleService","prusaLinkApi","octoprintApi","octoprintClient","moonrakerApi","moonrakerClient","bambuApi","bambuClient","bambuFtpAdapter","bambuMqttAdapter","cameraStreamService","socketFactory","printerApiFactory","printerLogin","batchCallService","influxDbV2BaseService","systemInfoBundleService","floorStore","settingsStore","printerSocketStore","testPrinterSocketStore","printerFilesStore","prusaLinkPollingAdapter","octoPrintSockIoAdapter","moonrakerWebsocketAdapter","printerCache","printerEventsCache","printerThumbnailCache","fileCache","fileUploadTrackerCache","bootTask","softwareUpdateTask","clientDistDownloadTask","socketIoTask","printerWebsocketTask","printerWebsocketRestoreTask","printerFilesLoadTask","printJobAnalysisTask"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,WAAW;IACtBC,eAAe;IAEfC,eAAe;IACfC,gBAAgB;IAChBC,uBAAuB;IACvBC,gBAAgB;IAEhBC,YAAY;IACZC,iBAAiB;IACjBC,eAAe;IACfC,mBAAmB;IACnBC,iBAAiB;IACjBC,eAAe;IACfC,eAAe;IACfC,oBAAoB;IACpBC,eAAe;IACfC,eAAe;IACfC,gBAAgB;IAChBC,mBAAmB;IACnBC,8BAA8B;IAC9BC,sBAAsB;IACtBC,iBAAiB;IACjBC,mBAAmB;IACnBC,oBAAoB;IACpBC,qBAAqB;IACrBC,4BAA4B;IAC5BC,cAAc;IACdC,aAAa;IACbC,iBAAiB;IACjBC,sBAAsB;IACtBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,qBAAqB;IACrBC,gBAAgB;IAChBC,kBAAkB;IAClBC,aAAa;IACbC,qBAAqB;IACrBC,aAAa;IACbC,iBAAiB;IACjBC,mBAAmB;IACnBC,YAAY;IACZC,aAAa;IACbC,cAAc;IACdC,cAAc;IACdC,iBAAiB;IACjBC,cAAc;IACdC,iBAAiB;IACjBC,UAAU;IACVC,aAAa;IACbC,iBAAiB;IACjBC,kBAAkB;IAClBC,qBAAqB;IACrBC,eAAe;IACfC,mBAAmB;IACnBC,cAAc;IACdC,kBAAkB;IAClBC,uBAAuB;IACvBC,yBAAyB;IAEzBC,YAAY;IACZC,eAAe;IACfC,oBAAoB;IACpBC,wBAAwB;IACxBC,mBAAmB;IACnBC,yBAAyB;IACzBC,wBAAwB;IACxBC,2BAA2B;IAE3BC,cAAc;IACdC,oBAAoB;IACpBC,uBAAuB;IACvBC,WAAW;IACXC,wBAAwB;IAExBC,UAAU;IACVC,oBAAoB;IACpBC,wBAAwB;IACxBC,cAAc;IACdC,sBAAsB;IACtBC,6BAA6B;IAC7BC,sBAAsB;IACtBC,sBAAsB;AACxB"}
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "PrinterMaintenanceLogController", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return PrinterMaintenanceLogController;
9
+ }
10
+ });
11
+ const _awilixexpress = require("awilix-express");
12
+ const _serverconstants = require("../server.constants");
13
+ const _express = require("express");
14
+ const _authenticate = require("../middleware/authenticate");
15
+ const _authorizationconstants = require("../constants/authorization.constants");
16
+ const _printermaintenancelogservice = require("../services/orm/printer-maintenance-log.service");
17
+ const _loggerfactory = require("../handlers/logger-factory");
18
+ const _validators = require("../handlers/validators");
19
+ const _printermaintenancelogvalidation = require("../services/validators/printer-maintenance-log.validation");
20
+ const _paramconvertermiddleware = require("../middleware/param-converter.middleware");
21
+ function _ts_decorate(decorators, target, key, desc) {
22
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
24
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
25
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
26
+ }
27
+ function _ts_metadata(k, v) {
28
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
29
+ }
30
+ class PrinterMaintenanceLogController {
31
+ printerMaintenanceLogService;
32
+ logger;
33
+ constructor(loggerFactory, printerMaintenanceLogService){
34
+ this.printerMaintenanceLogService = printerMaintenanceLogService;
35
+ this.logger = loggerFactory(PrinterMaintenanceLogController.name);
36
+ }
37
+ async list(req, res) {
38
+ const query = await (0, _validators.validateInput)(req.query, _printermaintenancelogvalidation.getMaintenanceLogsQuerySchema);
39
+ const result = await this.printerMaintenanceLogService.list(query);
40
+ res.send({
41
+ logs: result.logs.map((log)=>this.printerMaintenanceLogService.toDto(log)),
42
+ total: result.total,
43
+ page: query.page,
44
+ pageSize: query.pageSize
45
+ });
46
+ }
47
+ async get(req, res) {
48
+ const logId = req.params.id;
49
+ const log = await this.printerMaintenanceLogService.get(logId);
50
+ res.send(this.printerMaintenanceLogService.toDto(log));
51
+ }
52
+ async getActiveByPrinterId(req, res) {
53
+ const printerId = req.params.printerId;
54
+ const log = await this.printerMaintenanceLogService.getActiveByPrinterId(printerId);
55
+ res.send(log ? this.printerMaintenanceLogService.toDto(log) : null);
56
+ }
57
+ async create(req, res) {
58
+ const data = await (0, _validators.validateInput)(req.body, _printermaintenancelogvalidation.createMaintenanceLogSchema);
59
+ const userId = req.user?.id ?? null;
60
+ const username = req.user?.username || "system";
61
+ const log = await this.printerMaintenanceLogService.create(data, userId, username);
62
+ res.send(this.printerMaintenanceLogService.toDto(log));
63
+ }
64
+ async complete(req, res) {
65
+ const logId = req.params.id;
66
+ const data = await (0, _validators.validateInput)(req.body, _printermaintenancelogvalidation.completeMaintenanceLogSchema);
67
+ const userId = req.user?.id ?? null;
68
+ const username = req.user?.username || "system";
69
+ const log = await this.printerMaintenanceLogService.complete(logId, data, userId, username);
70
+ res.send(this.printerMaintenanceLogService.toDto(log));
71
+ }
72
+ async delete(req, res) {
73
+ const logId = req.params.id;
74
+ await this.printerMaintenanceLogService.delete(logId);
75
+ res.send({
76
+ success: true
77
+ });
78
+ }
79
+ }
80
+ _ts_decorate([
81
+ (0, _awilixexpress.GET)(),
82
+ (0, _awilixexpress.route)("/"),
83
+ (0, _awilixexpress.before)([
84
+ (0, _authenticate.permission)(_authorizationconstants.PERMS.PrinterMaintenanceLog.List)
85
+ ]),
86
+ _ts_metadata("design:type", Function),
87
+ _ts_metadata("design:paramtypes", [
88
+ typeof _express.Request === "undefined" ? Object : _express.Request,
89
+ typeof _express.Response === "undefined" ? Object : _express.Response
90
+ ]),
91
+ _ts_metadata("design:returntype", Promise)
92
+ ], PrinterMaintenanceLogController.prototype, "list", null);
93
+ _ts_decorate([
94
+ (0, _awilixexpress.GET)(),
95
+ (0, _awilixexpress.route)("/:id"),
96
+ (0, _awilixexpress.before)([
97
+ (0, _authenticate.permission)(_authorizationconstants.PERMS.PrinterMaintenanceLog.Get),
98
+ (0, _paramconvertermiddleware.ParamId)("id")
99
+ ]),
100
+ _ts_metadata("design:type", Function),
101
+ _ts_metadata("design:paramtypes", [
102
+ typeof _express.Request === "undefined" ? Object : _express.Request,
103
+ typeof _express.Response === "undefined" ? Object : _express.Response
104
+ ]),
105
+ _ts_metadata("design:returntype", Promise)
106
+ ], PrinterMaintenanceLogController.prototype, "get", null);
107
+ _ts_decorate([
108
+ (0, _awilixexpress.GET)(),
109
+ (0, _awilixexpress.route)("/printer/:printerId/active"),
110
+ (0, _awilixexpress.before)([
111
+ (0, _authenticate.permission)(_authorizationconstants.PERMS.PrinterMaintenanceLog.Get),
112
+ (0, _paramconvertermiddleware.ParamId)("printerId")
113
+ ]),
114
+ _ts_metadata("design:type", Function),
115
+ _ts_metadata("design:paramtypes", [
116
+ typeof _express.Request === "undefined" ? Object : _express.Request,
117
+ typeof _express.Response === "undefined" ? Object : _express.Response
118
+ ]),
119
+ _ts_metadata("design:returntype", Promise)
120
+ ], PrinterMaintenanceLogController.prototype, "getActiveByPrinterId", null);
121
+ _ts_decorate([
122
+ (0, _awilixexpress.POST)(),
123
+ (0, _awilixexpress.route)("/"),
124
+ (0, _awilixexpress.before)([
125
+ (0, _authenticate.permission)(_authorizationconstants.PERMS.PrinterMaintenanceLog.Create)
126
+ ]),
127
+ _ts_metadata("design:type", Function),
128
+ _ts_metadata("design:paramtypes", [
129
+ typeof _express.Request === "undefined" ? Object : _express.Request,
130
+ typeof _express.Response === "undefined" ? Object : _express.Response
131
+ ]),
132
+ _ts_metadata("design:returntype", Promise)
133
+ ], PrinterMaintenanceLogController.prototype, "create", null);
134
+ _ts_decorate([
135
+ (0, _awilixexpress.POST)(),
136
+ (0, _awilixexpress.route)("/:id/complete"),
137
+ (0, _awilixexpress.before)([
138
+ (0, _authenticate.permission)(_authorizationconstants.PERMS.PrinterMaintenanceLog.Complete),
139
+ (0, _paramconvertermiddleware.ParamId)("id")
140
+ ]),
141
+ _ts_metadata("design:type", Function),
142
+ _ts_metadata("design:paramtypes", [
143
+ typeof _express.Request === "undefined" ? Object : _express.Request,
144
+ typeof _express.Response === "undefined" ? Object : _express.Response
145
+ ]),
146
+ _ts_metadata("design:returntype", Promise)
147
+ ], PrinterMaintenanceLogController.prototype, "complete", null);
148
+ _ts_decorate([
149
+ (0, _awilixexpress.DELETE)(),
150
+ (0, _awilixexpress.route)("/:id"),
151
+ (0, _awilixexpress.before)([
152
+ (0, _authenticate.permission)(_authorizationconstants.PERMS.PrinterMaintenanceLog.Delete),
153
+ (0, _paramconvertermiddleware.ParamId)("id")
154
+ ]),
155
+ _ts_metadata("design:type", Function),
156
+ _ts_metadata("design:paramtypes", [
157
+ typeof _express.Request === "undefined" ? Object : _express.Request,
158
+ typeof _express.Response === "undefined" ? Object : _express.Response
159
+ ]),
160
+ _ts_metadata("design:returntype", Promise)
161
+ ], PrinterMaintenanceLogController.prototype, "delete", null);
162
+ PrinterMaintenanceLogController = _ts_decorate([
163
+ (0, _awilixexpress.route)(_serverconstants.AppConstants.apiRoute + "/printer-maintenance-log"),
164
+ (0, _awilixexpress.before)([
165
+ (0, _authenticate.authenticate)()
166
+ ]),
167
+ _ts_metadata("design:type", Function),
168
+ _ts_metadata("design:paramtypes", [
169
+ typeof _loggerfactory.ILoggerFactory === "undefined" ? Object : _loggerfactory.ILoggerFactory,
170
+ typeof _printermaintenancelogservice.PrinterMaintenanceLogService === "undefined" ? Object : _printermaintenancelogservice.PrinterMaintenanceLogService
171
+ ])
172
+ ], PrinterMaintenanceLogController);
173
+
174
+ //# sourceMappingURL=printer-maintenance-log.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/controllers/printer-maintenance-log.controller.ts"],"names":["PrinterMaintenanceLogController","logger","loggerFactory","printerMaintenanceLogService","name","list","req","res","query","validateInput","getMaintenanceLogsQuerySchema","result","send","logs","map","log","toDto","total","page","pageSize","get","logId","params","id","getActiveByPrinterId","printerId","create","data","body","createMaintenanceLogSchema","userId","user","username","complete","completeMaintenanceLogSchema","delete","success","permission","PERMS","PrinterMaintenanceLog","List","Get","ParamId","Create","Complete","Delete","AppConstants","apiRoute","authenticate"],"mappings":";;;;+BAkBaA;;;eAAAA;;;+BAlBoC;iCACpB;yBACK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ACC,qBAAqB,CAACI,MAAM;;;;;;;;;;;;;QAY7CN,IAAAA,wBAAU,EAACC,6BAAK,CAACC,qBAAqB,CAACK,QAAQ;QAAGF,IAAAA,iCAAO,EAAC;;;;;;;;;;;;;QAa1DL,IAAAA,wBAAU,EAACC,6BAAK,CAACC,qBAAqB,CAACM,MAAM;QAAGH,IAAAA,iCAAO,EAAC;;;;;;;;;;8BAxE5DI,6BAAY,CAACC,QAAQ,GAAG;;QACtBC,IAAAA,0BAAY"}
@@ -12,7 +12,6 @@ require("reflect-metadata");
12
12
  const _typeorm = require("typeorm");
13
13
  const _dotenv = /*#__PURE__*/ _interop_require_default(require("dotenv"));
14
14
  const _nodepath = require("node:path");
15
- const _serverconstants = require("./server.constants");
16
15
  const _fsutils = require("./utils/fs.utils");
17
16
  const _floorentity = require("./entities/floor.entity");
18
17
  const _floorpositionentity = require("./entities/floor-position.entity");
@@ -39,6 +38,7 @@ const _1767352862576DropSettingsFileClean = require("./migrations/1767352862576-
39
38
  const _1767370191762ChangeFloorNonUniqueOrder = require("./migrations/1767370191762-ChangeFloorNonUniqueOrder");
40
39
  const _1767432108916RenameGroupToTag = require("./migrations/1767432108916-RenameGroupToTag");
41
40
  const _1767451444137AddPrintJob = require("./migrations/1767451444137-AddPrintJob");
41
+ const _1767909428129AddPrinterMaintenanceLog = require("./migrations/1767909428129-AddPrinterMaintenanceLog");
42
42
  function _interop_require_default(obj) {
43
43
  return obj && obj.__esModule ? obj : {
44
44
  default: obj
@@ -46,15 +46,13 @@ function _interop_require_default(obj) {
46
46
  }
47
47
  if (process.env.NODE_ENV !== "test") {
48
48
  _dotenv.default.config({
49
- path: (0, _nodepath.join)((0, _fsutils.superRootPath)(), ".env")
49
+ path: process.env.ENV_FILE || (0, _nodepath.join)("../.env"),
50
+ quiet: true
50
51
  });
51
52
  }
52
- const dbFolder = process.env[_serverconstants.AppConstants.DATABASE_PATH] ?? "./database";
53
- const dbFile = process.env[_serverconstants.AppConstants.DATABASE_FILE] ?? "./fdm-monster.sqlite";
54
- const dbName = dbFile === ":memory:" ? dbFile : (0, _nodepath.join)((0, _fsutils.superRootPath)(), dbFolder, dbFile);
55
53
  const AppDataSource = new _typeorm.DataSource({
56
54
  type: "better-sqlite3",
57
- database: dbName,
55
+ database: (0, _fsutils.getDatabaseFilePath)(),
58
56
  synchronize: false,
59
57
  logging: false,
60
58
  entities: [
@@ -69,7 +67,8 @@ const AppDataSource = new _typeorm.DataSource({
69
67
  _userroleentity.UserRole,
70
68
  _tagentity.Tag,
71
69
  _printertagentity.PrinterTag,
72
- _entities.PrintJob
70
+ _entities.PrintJob,
71
+ _entities.PrinterMaintenanceLog
73
72
  ],
74
73
  migrations: [
75
74
  _1706829146617InitSqlite.InitSqlite1706829146617,
@@ -86,7 +85,8 @@ const AppDataSource = new _typeorm.DataSource({
86
85
  _1767352862576DropSettingsFileClean.DropSettingsFileClean1767352862576,
87
86
  _1767370191762ChangeFloorNonUniqueOrder.ChangeFloorNonUniqueOrder1767370191762,
88
87
  _1767432108916RenameGroupToTag.RenameGroupToTag1767432108916,
89
- _1767451444137AddPrintJob.AddPrintJob1767451444137
88
+ _1767451444137AddPrintJob.AddPrintJob1767451444137,
89
+ _1767909428129AddPrinterMaintenanceLog.AddPrinterMaintenanceLog1767909428129
90
90
  ],
91
91
  subscribers: []
92
92
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/data-source.ts"],"names":["AppDataSource","process","env","NODE_ENV","dotenv","config","path","join","superRootPath","dbFolder","AppConstants","DATABASE_PATH","dbFile","DATABASE_FILE","dbName","DataSource","type","database","synchronize","logging","entities","Floor","FloorPosition","Printer","Settings","User","CameraStream","Role","RefreshToken","UserRole","Tag","PrinterTag","PrintJob","migrations","InitSqlite1706829146617","PrinterGroup1707494762198","ChangePrintCompletionDeletePrinterCascade1708465930665","ChangeRoleNameUnique1713300747465","RemovePrinterFile1720338804844","AddPrinterType1713897879622","AddPrinterUsernamePassword1745141688926","DropPermissions1766576698569","ChangeCameraPrinterOnDeleteSetNull1767278216516","DropCustomGcode1767279607392","DropPrintCompletions1767291804417","DropSettingsFileClean1767352862576","ChangeFloorNonUniqueOrder1767370191762","RenameGroupToTag1767432108916","AddPrintJob1767451444137","subscribers"],"mappings":";;;;+BA8CaA;;;eAAAA;;;QA9CN;yBACoB;+DACR;0BACE;iCACQ;yBACC;6BACR;qCACQ;+BACN;gCACC;0BACoB;oCAChB;4BACR;gCACI;yCACe;kCACb;2BACP;2CACsB;wEAGnC;mDAC2C;gDACH;6CACH;yDACY;8CACX;iEAGtC;8CACsC;mDACK;oDACC;wDACI;+CACT;0CACL;;;;;;AAEzC,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,QAAQ;IACnCC,eAAM,CAACC,MAAM,CAAC;QACZC,MAAMC,IAAAA,cAAI,EAACC,IAAAA,sBAAa,KAAI;IAC9B;AACF;AAEA,MAAMC,WAAWR,QAAQC,GAAG,CAACQ,6BAAY,CAACC,aAAa,CAAC,IAAI;AAC5D,MAAMC,SAASX,QAAQC,GAAG,CAACQ,6BAAY,CAACG,aAAa,CAAC,IAAI;AAC1D,MAAMC,SAASF,WAAW,aAAaA,SAASL,IAAAA,cAAI,EAACC,IAAAA,sBAAa,KAAIC,UAAUG;AAEzE,MAAMZ,gBAAgB,IAAIe,mBAAU,CAAC;IAC1CC,MAAM;IACNC,UAAUH;IACVI,aAAa;IACbC,SAAS;IACTC,UAAU;QACRC,kBAAK;QACLC,kCAAa;QACbC,sBAAO;QACPC,wBAAQ;QACRC,cAAI;QACJC,gCAAY;QACZC,gBAAI;QACJC,sBAAY;QACZC,wBAAQ;QACRC,cAAG;QACHC,4BAAU;QACVC,kBAAQ;KACT;IACDC,YAAY;QACVC,gDAAuB;QACvBC,oDAAyB;QACzBC,8GAAsD;QACtDC,oEAAiC;QACjCC,8DAA8B;QAC9BC,wDAA2B;QAC3BC,gFAAuC;QACvCC,0DAA4B;QAC5BC,gGAA+C;QAC/CC,0DAA4B;QAC5BC,oEAAiC;QACjCC,sEAAkC;QAClCC,8EAAsC;QACtCC,4DAA6B;QAC7BC,kDAAwB;KACzB;IACDC,aAAa,EAAE;AACjB"}
1
+ {"version":3,"sources":["../src/data-source.ts"],"names":["AppDataSource","process","env","NODE_ENV","dotenv","config","path","ENV_FILE","join","quiet","DataSource","type","database","getDatabaseFilePath","synchronize","logging","entities","Floor","FloorPosition","Printer","Settings","User","CameraStream","Role","RefreshToken","UserRole","Tag","PrinterTag","PrintJob","PrinterMaintenanceLog","migrations","InitSqlite1706829146617","PrinterGroup1707494762198","ChangePrintCompletionDeletePrinterCascade1708465930665","ChangeRoleNameUnique1713300747465","RemovePrinterFile1720338804844","AddPrinterType1713897879622","AddPrinterUsernamePassword1745141688926","DropPermissions1766576698569","ChangeCameraPrinterOnDeleteSetNull1767278216516","DropCustomGcode1767279607392","DropPrintCompletions1767291804417","DropSettingsFileClean1767352862576","ChangeFloorNonUniqueOrder1767370191762","RenameGroupToTag1767432108916","AddPrintJob1767451444137","AddPrinterMaintenanceLog1767909428129","subscribers"],"mappings":";;;;+BA2CaA;;;eAAAA;;;QA3CN;yBACoB;+DACR;0BACE;yBACe;6BACd;qCACQ;+BACN;gCACC;0BAC2C;oCACvC;4BACR;gCACI;yCACe;kCACb;2BACP;2CACsB;wEAGnC;mDAC2C;gDACH;6CACH;yDACY;8CACX;iEAGtC;8CACsC;mDACK;oDACC;wDACI;+CACT;0CACL;uDACa;;;;;;AAEtD,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,QAAQ;IACnCC,eAAM,CAACC,MAAM,CAAC;QACZC,MAAML,QAAQC,GAAG,CAACK,QAAQ,IAAIC,IAAAA,cAAI,EAAC;QACnCC,OAAO;IACT;AACF;AAEO,MAAMT,gBAAgB,IAAIU,mBAAU,CAAC;IAC1CC,MAAM;IACNC,UAAUC,IAAAA,4BAAmB;IAC7BC,aAAa;IACbC,SAAS;IACTC,UAAU;QACRC,kBAAK;QACLC,kCAAa;QACbC,sBAAO;QACPC,wBAAQ;QACRC,cAAI;QACJC,gCAAY;QACZC,gBAAI;QACJC,sBAAY;QACZC,wBAAQ;QACRC,cAAG;QACHC,4BAAU;QACVC,kBAAQ;QACRC,+BAAqB;KACtB;IACDC,YAAY;QACVC,gDAAuB;QACvBC,oDAAyB;QACzBC,8GAAsD;QACtDC,oEAAiC;QACjCC,8DAA8B;QAC9BC,wDAA2B;QAC3BC,gFAAuC;QACvCC,0DAA4B;QAC5BC,gGAA+C;QAC/CC,0DAA4B;QAC5BC,oEAAiC;QACjCC,sEAAkC;QAClCC,8EAAsC;QACtCC,4DAA6B;QAC7BC,kDAAwB;QACxBC,4EAAqC;KACtC;IACDC,aAAa,EAAE;AACjB"}
@@ -24,6 +24,9 @@ _export(exports, {
24
24
  get Printer () {
25
25
  return _printerentity.Printer;
26
26
  },
27
+ get PrinterMaintenanceLog () {
28
+ return _printermaintenancelogentity.PrinterMaintenanceLog;
29
+ },
27
30
  get PrinterTag () {
28
31
  return _printertagentity.PrinterTag;
29
32
  },
@@ -58,5 +61,6 @@ const _refreshtokenentity = require("./refresh-token.entity");
58
61
  const _printertagentity = require("./printer-tag.entity");
59
62
  const _tagentity = require("./tag.entity");
60
63
  const _printjobentity = require("./print-job.entity");
64
+ const _printermaintenancelogentity = require("./printer-maintenance-log.entity");
61
65
 
62
66
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/entities/index.ts"],"names":["CameraStream","Floor","FloorPosition","PrintJob","Printer","PrinterTag","RefreshToken","Role","Settings","Tag","User","UserRole"],"mappings":";;;;;;;;;;;QACSA;eAAAA,gCAAY;;QACZC;eAAAA,kBAAK;;QACLC;eAAAA,kCAAa;;QAQbC;eAAAA,wBAAQ;;QAPRC;eAAAA,sBAAO;;QAKPC;eAAAA,4BAAU;;QADVC;eAAAA,gCAAY;;QAHZC;eAAAA,gBAAI;;QAEJC;eAAAA,wBAAQ;;QAGRC;eAAAA,cAAG;;QAVHC;eAAAA,gBAAI;;QAMJC;eAAAA,wBAAQ;;;4BANI;oCACQ;6BACP;qCACQ;+BACN;4BACH;gCACI;gCACA;oCACI;kCACF;2BACP;gCACK"}
1
+ {"version":3,"sources":["../../src/entities/index.ts"],"names":["CameraStream","Floor","FloorPosition","PrintJob","Printer","PrinterMaintenanceLog","PrinterTag","RefreshToken","Role","Settings","Tag","User","UserRole"],"mappings":";;;;;;;;;;;QACSA;eAAAA,gCAAY;;QACZC;eAAAA,kBAAK;;QACLC;eAAAA,kCAAa;;QAQbC;eAAAA,wBAAQ;;QAPRC;eAAAA,sBAAO;;QAQPC;eAAAA,kDAAqB;;QAHrBC;eAAAA,4BAAU;;QADVC;eAAAA,gCAAY;;QAHZC;eAAAA,gBAAI;;QAEJC;eAAAA,wBAAQ;;QAGRC;eAAAA,cAAG;;QAVHC;eAAAA,gBAAI;;QAMJC;eAAAA,wBAAQ;;;4BANI;oCACQ;6BACP;qCACQ;+BACN;4BACH;gCACI;gCACA;oCACI;kCACF;2BACP;gCACK;6CACa"}
@@ -49,9 +49,13 @@ _ts_decorate([
49
49
  ], PrintJob.prototype, "id", void 0);
50
50
  _ts_decorate([
51
51
  (0, _typeorm.ManyToOne)(()=>_printerentity.Printer, {
52
+ nullable: true,
52
53
  onDelete: "SET NULL"
53
54
  }),
54
- _ts_metadata("design:type", typeof _printerentity.Printer === "undefined" ? Object : _printerentity.Printer)
55
+ (0, _typeorm.JoinColumn)({
56
+ name: "printerId"
57
+ }),
58
+ _ts_metadata("design:type", typeof _typeorm.Relation === "undefined" ? Object : _typeorm.Relation)
55
59
  ], PrintJob.prototype, "printer", void 0);
56
60
  _ts_decorate([
57
61
  (0, _typeorm.Column)({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/entities/print-job.entity.ts"],"names":["PrintJob","id","printer","printerId","printerName","fileName","fileStorageId","fileFormat","fileSize","fileHash","createdAt","updatedAt","analyzedAt","startedAt","endedAt","status","analysisState","statusReason","progress","metadata","statistics","queuePosition","queueGroup","Printer","onDelete","nullable","type","Date","default"],"mappings":";;;;+BAwJaA;;;eAAAA;;;yBAxJyF;+BAC9E;;;;;;;;;;AAuJjB,MAAMA;IAEXC,GAAW;IAGXC,QAAkB;IAGlBC,UAAyB;IAGzBC,YAA2B;IAI3BC,SAAiB;IAGjBC,cAA6B;IAG7BC,WAAkC;IAGlCC,SAAwB;IAGxBC,SAAwB;IAIxBC,UAAgB;IAGhBC,UAAgB;IAGhBC,WAAwB;IAGxBC,UAAuB;IAGvBC,QAAqB;IAIrBC,OAAuB;IAGvBC,cAA6B;IAG7BC,aAA4B;IAI5BC,SAAwB;IAIxBC,SAAkC;IAIlCC,WAAmC;IAInCC,cAA6B;IAG7BC,WAA0B;AAC5B;;;;;;gCArEmBC,sBAAO;QAAIC,UAAU;;;;;;QAG5BC,UAAU;;;;;;QAGVC,MAAM;QAAWD,UAAU;;;;;;QAI3BC,MAAM;QAAWD,UAAU;;;;;;QAG3BC,MAAM;QAAWD,UAAU;;;;;;QAG3BC,MAAM;QAAWD,UAAU;;;;;;QAG3BC,MAAM;QAAOD,UAAU;;;;;;QAGvBC,MAAM;QAAWD,UAAU;;;;;;;;;;;;;;QAU3BC,MAAMC;QAAMF,UAAU;;;;;;QAGtBC,MAAMC;QAAMF,UAAU;;;;;;QAGtBC,MAAMC;QAAMF,UAAU;;;;;;QAItBC,MAAM;QAAWD,UAAU;QAAOG,SAAS;;;;;;QAG3CF,MAAM;QAAWD,UAAU;QAAOG,SAAS;;;;;;QAG3CF,MAAM;QAAWD,UAAU;;;;;;QAI3BC,MAAM;QAASD,UAAU;;;;;;QAIzBC,MAAM;QAAQD,UAAU;;;;;;QAIxBC,MAAM;QAAQD,UAAU;;;;;;QAIxBC,MAAM;QAAOD,UAAU;;;;;;QAGvBC,MAAM;QAAWD,UAAU"}
1
+ {"version":3,"sources":["../../src/entities/print-job.entity.ts"],"names":["PrintJob","id","printer","printerId","printerName","fileName","fileStorageId","fileFormat","fileSize","fileHash","createdAt","updatedAt","analyzedAt","startedAt","endedAt","status","analysisState","statusReason","progress","metadata","statistics","queuePosition","queueGroup","Printer","nullable","onDelete","name","type","Date","default"],"mappings":";;;;+BAiKaA;;;eAAAA;;;yBAxJN;+BACiB;;;;;;;;;;AAuJjB,MAAMA;IAEXC,GAAW;IAIXC,QAA4B;IAE5BC,UAAyB;IAGzBC,YAA2B;IAI3BC,SAAiB;IAGjBC,cAA6B;IAG7BC,WAAkC;IAGlCC,SAAwB;IAGxBC,SAAwB;IAIxBC,UAAgB;IAGhBC,UAAgB;IAGhBC,WAAwB;IAGxBC,UAAuB;IAGvBC,QAAqB;IAIrBC,OAAuB;IAGvBC,cAA6B;IAG7BC,aAA4B;IAI5BC,SAAwB;IAIxBC,SAAkC;IAIlCC,WAAmC;IAInCC,cAA6B;IAG7BC,WAA0B;AAC5B;;;;;;gCArEmBC,sBAAO;QAAIC,UAAU;QAAMC,UAAU;;;QACxCC,MAAM;;;;;;QAEVF,UAAU;;;;;;QAGVG,MAAM;QAAWH,UAAU;;;;;;QAI3BG,MAAM;QAAWH,UAAU;;;;;;QAG3BG,MAAM;QAAWH,UAAU;;;;;;QAG3BG,MAAM;QAAWH,UAAU;;;;;;QAG3BG,MAAM;QAAOH,UAAU;;;;;;QAGvBG,MAAM;QAAWH,UAAU;;;;;;;;;;;;;;QAU3BG,MAAMC;QAAMJ,UAAU;;;;;;QAGtBG,MAAMC;QAAMJ,UAAU;;;;;;QAGtBG,MAAMC;QAAMJ,UAAU;;;;;;QAItBG,MAAM;QAAWH,UAAU;QAAOK,SAAS;;;;;;QAG3CF,MAAM;QAAWH,UAAU;QAAOK,SAAS;;;;;;QAG3CF,MAAM;QAAWH,UAAU;;;;;;QAI3BG,MAAM;QAASH,UAAU;;;;;;QAIzBG,MAAM;QAAQH,UAAU;;;;;;QAIxBG,MAAM;QAAQH,UAAU;;;;;;QAIxBG,MAAM;QAAOH,UAAU;;;;;;QAGvBG,MAAM;QAAWH,UAAU"}