@plutonhq/core-backend 0.0.3 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controllers/BackupController.d.ts +1 -0
- package/dist/controllers/BackupController.d.ts.map +1 -1
- package/dist/controllers/BackupController.js +1 -1
- package/dist/controllers/BackupController.js.map +1 -1
- package/dist/controllers/PlanController.js +1 -1
- package/dist/controllers/PlanController.js.map +1 -1
- package/dist/createApp.js +1 -1
- package/dist/createApp.js.map +1 -1
- package/dist/db/index.d.ts +57 -0
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/schema/backups.d.ts +152 -0
- package/dist/db/schema/backups.d.ts.map +1 -1
- package/dist/db/schema/backups.js +1 -1
- package/dist/db/schema/backups.js.map +1 -1
- package/dist/db/schema/plans.d.ts +76 -0
- package/dist/db/schema/plans.d.ts.map +1 -1
- package/dist/db/schema/plans.js +1 -1
- package/dist/db/schema/plans.js.map +1 -1
- package/dist/notifications/BackupNotification.d.ts +2 -0
- package/dist/notifications/BackupNotification.d.ts.map +1 -1
- package/dist/notifications/BackupNotification.js +1 -1
- package/dist/notifications/BackupNotification.js.map +1 -1
- package/dist/notifications/BaseNotification.d.ts.map +1 -1
- package/dist/notifications/BaseNotification.js +1 -1
- package/dist/notifications/BaseNotification.js.map +1 -1
- package/dist/notifications/channels/NotificationChannelResolver.d.ts +2 -2
- package/dist/notifications/channels/NotificationChannelResolver.d.ts.map +1 -1
- package/dist/notifications/channels/NotificationChannelResolver.js +1 -1
- package/dist/notifications/channels/NotificationChannelResolver.js.map +1 -1
- package/dist/notifications/channels/SMTPChannel.js.map +1 -1
- package/dist/notifications/templateLoader.d.ts +15 -0
- package/dist/notifications/templateLoader.d.ts.map +1 -0
- package/dist/notifications/templateLoader.js +1 -0
- package/dist/notifications/templateLoader.js.map +1 -0
- package/dist/notifications/templates/email/backup/BackupFailedNotification.d.ts.map +1 -1
- package/dist/notifications/templates/email/backup/BackupFailedNotification.ejs +109 -0
- package/dist/notifications/templates/email/backup/BackupFailedNotification.js +1 -1
- package/dist/notifications/templates/email/backup/BackupFailedNotification.js.map +1 -1
- package/dist/notifications/templates/email/backup/BackupFailedNotification.ts +110 -0
- package/dist/notifications/templates/email/backup/BackupStartedNotification.d.ts.map +1 -1
- package/dist/notifications/templates/email/backup/BackupStartedNotification.ejs +159 -0
- package/dist/notifications/templates/email/backup/BackupStartedNotification.js +1 -1
- package/dist/notifications/templates/email/backup/BackupStartedNotification.js.map +1 -1
- package/dist/notifications/templates/email/backup/BackupStartedNotification.ts +87 -0
- package/dist/notifications/templates/email/backup/BackupSuccessNotification.d.ts.map +1 -1
- package/dist/notifications/templates/email/backup/BackupSuccessNotification.ejs +163 -0
- package/dist/notifications/templates/email/backup/BackupSuccessNotification.js +1 -1
- package/dist/notifications/templates/email/backup/BackupSuccessNotification.js.map +1 -1
- package/dist/notifications/templates/email/backup/BackupSuccessNotification.ts +97 -0
- package/dist/notifications/templates/email/email.html +801 -0
- package/dist/notifications/templates/email/test-email/TestEmailNotification.ts +27 -0
- package/dist/routes/backups.d.ts.map +1 -1
- package/dist/routes/backups.js +1 -1
- package/dist/routes/backups.js.map +1 -1
- package/dist/services/BackupServices.d.ts +2 -0
- package/dist/services/BackupServices.d.ts.map +1 -1
- package/dist/services/BackupServices.js +1 -1
- package/dist/services/BackupServices.js.map +1 -1
- package/dist/services/PlanService.d.ts.map +1 -1
- package/dist/services/PlanService.js +1 -1
- package/dist/services/PlanService.js.map +1 -1
- package/dist/services/SettingsService.d.ts +2 -0
- package/dist/services/SettingsService.d.ts.map +1 -1
- package/dist/services/SettingsService.js +1 -1
- package/dist/services/SettingsService.js.map +1 -1
- package/dist/stores/PlanStore.d.ts +2 -0
- package/dist/stores/PlanStore.d.ts.map +1 -1
- package/dist/stores/PlanStore.js +1 -1
- package/dist/stores/PlanStore.js.map +1 -1
- package/dist/stores/SettingsStore.d.ts +3 -1
- package/dist/stores/SettingsStore.d.ts.map +1 -1
- package/dist/stores/SettingsStore.js +1 -1
- package/dist/stores/SettingsStore.js.map +1 -1
- package/dist/types/notifications.d.ts +11 -0
- package/dist/types/notifications.d.ts.map +1 -1
- package/dist/types/plans.d.ts +2 -1
- package/dist/types/plans.d.ts.map +1 -1
- package/dist/utils/rclone/rclone.js.map +1 -1
- package/package.json +4 -3
|
@@ -10,5 +10,6 @@ export declare class BackupController {
|
|
|
10
10
|
deleteBackup(req: Request, res: Response): Promise<void>;
|
|
11
11
|
getBackupProgress(req: Request, res: Response): Promise<void>;
|
|
12
12
|
cancelBackup(req: Request, res: Response): Promise<void>;
|
|
13
|
+
updateBackup(req: Request, res: Response): Promise<void>;
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=BackupController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackupController.d.ts","sourceRoot":"","sources":["../../src/controllers/BackupController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,gBAAgB;IAChB,SAAS,CAAC,aAAa,EAAE,aAAa;gBAA5B,aAAa,EAAE,aAAa;IAE5C,iBAAiB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IA8B7D,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBlE,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB5D,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBhE,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAA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,OAAO,CAAC,IAAI,CAAC;CA0B9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export class BackupController{backupService;constructor(backupService){this.backupService=backupService}async getBackupDownload(req,res){if(req.params.id)try{const downloadResult=await this.backupService.getBackupDownload(req.params.id),{fileName:fileName,fileStream:fileStream}=downloadResult;res.setHeader("Content-Type","application/x-tar"),res.setHeader("Content-Disposition",`attachment; filename=${fileName}`),res.setHeader("Transfer-Encoding","chunked"),fileStream.pipe(res)}catch(error){res.status(500).json({success:!1,error:"Failed to get Downloaded file. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async generateBackupDownload(req,res){if(req.params.id)try{const downloadResult=await this.backupService.generateBackupDownload(req.params.id);res.status(200).json({success:!0,result:downloadResult})}catch(error){res.status(500).json({success:!1,error:"Failed to generate Download Link. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async getSnapshotFiles(req,res){if(req.params.id)try{const snapshotFiles=await this.backupService.getSnapshotFiles(req.params.id);res.status(200).json({success:!0,result:snapshotFiles})}catch(error){res.status(500).json({success:!1,error:"Failed to get Snapshot Files. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async cancelBackupDownload(req,res){if(req.params.id)try{const downloadResult=await this.backupService.cancelBackupDownload(req.query.planId,req.params.id);res.status(200).json({success:!0,result:downloadResult})}catch(error){res.status(500).json({success:!1,error:"Failed to cancel Download Generation. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async deleteBackup(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Backup ID is required"});const removeSnapshot=!0;await this.backupService.deleteBackup(req.params.id,removeSnapshot),res.status(200).json({success:!0,result:"Removed"})}catch(error){return void res.status(500).json({success:!1,error:error?.message||"Failed to delete backup"})}}async getBackupProgress(req,res){if(req.params.id&&req.query.sourceId&&req.query.sourceType)try{const progressRes=await this.backupService.getBackupProgress(req.params.id);res.status(200).json(progressRes)}catch(error){return void res.status(500).json({success:!1,error:error?.message||"Failed to retrieve Backup Progress"})}else res.status(400).json({success:!1,error:"Backup ID or Device ID is required"})}async cancelBackup(req,res){if(req.params.id&&req.query.planId)try{const cancelResult=await this.backupService.cancelBackup(req.query.planId,req.params.id);return void res.status(200).json(cancelResult)}catch(error){return void res.status(500).json({success:!1,error:error.message||"Unknown Error"})}else res.status(400).json({success:!1,error:"Backup ID is required"})}}
|
|
1
|
+
export class BackupController{backupService;constructor(backupService){this.backupService=backupService}async getBackupDownload(req,res){if(req.params.id)try{const downloadResult=await this.backupService.getBackupDownload(req.params.id),{fileName:fileName,fileStream:fileStream}=downloadResult;res.setHeader("Content-Type","application/x-tar"),res.setHeader("Content-Disposition",`attachment; filename=${fileName}`),res.setHeader("Transfer-Encoding","chunked"),fileStream.pipe(res)}catch(error){res.status(500).json({success:!1,error:"Failed to get Downloaded file. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async generateBackupDownload(req,res){if(req.params.id)try{const downloadResult=await this.backupService.generateBackupDownload(req.params.id);res.status(200).json({success:!0,result:downloadResult})}catch(error){res.status(500).json({success:!1,error:"Failed to generate Download Link. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async getSnapshotFiles(req,res){if(req.params.id)try{const snapshotFiles=await this.backupService.getSnapshotFiles(req.params.id);res.status(200).json({success:!0,result:snapshotFiles})}catch(error){res.status(500).json({success:!1,error:"Failed to get Snapshot Files. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async cancelBackupDownload(req,res){if(req.params.id)try{const downloadResult=await this.backupService.cancelBackupDownload(req.query.planId,req.params.id);res.status(200).json({success:!0,result:downloadResult})}catch(error){res.status(500).json({success:!1,error:"Failed to cancel Download Generation. "+(error.message||"")})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async deleteBackup(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Backup ID is required"});const removeSnapshot=!0;await this.backupService.deleteBackup(req.params.id,removeSnapshot),res.status(200).json({success:!0,result:"Removed"})}catch(error){return void res.status(500).json({success:!1,error:error?.message||"Failed to delete backup"})}}async getBackupProgress(req,res){if(req.params.id&&req.query.sourceId&&req.query.sourceType)try{const progressRes=await this.backupService.getBackupProgress(req.params.id);res.status(200).json(progressRes)}catch(error){return void res.status(500).json({success:!1,error:error?.message||"Failed to retrieve Backup Progress"})}else res.status(400).json({success:!1,error:"Backup ID or Device ID is required"})}async cancelBackup(req,res){if(req.params.id&&req.query.planId)try{const cancelResult=await this.backupService.cancelBackup(req.query.planId,req.params.id);return void res.status(200).json(cancelResult)}catch(error){return void res.status(500).json({success:!1,error:error.message||"Unknown Error"})}else res.status(400).json({success:!1,error:"Backup ID is required"})}async updateBackup(req,res){if(req.params.id)if(req.body&&0!==Object.keys(req.body).length)try{const updatedBackup=await this.backupService.updateBackup(req.params.id,req.body);res.status(200).json({success:!0,result:updatedBackup})}catch(error){res.status(500).json({success:!1,error:error?.message||"Failed to update backup"})}else res.status(400).json({success:!1,error:"Update data is required"});else res.status(400).json({success:!1,error:"Backup ID is required"})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackupController.js","sourceRoot":"","sources":["../../src/controllers/BackupController.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,gBAAgB;IACN;IAAtB,YAAsB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAEtD,KAAK,CAAC,iBAAiB,CAAC,GAAY,EAAE,GAAa;QAClD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACpB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACpB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,uBAAuB;aAC9B,CAAC,CAAC;YACH,OAAO;QACR,CAAC;QAED,IAAI,CAAC;YACJ,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,GAAG,CAAC,MA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CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export class PlanController{planService;constructor(planService){this.planService=planService}async getPlans(req,res){try{const allPlans=await this.planService.getAllPlans();res.status(200).json({success:!0,result:allPlans||[]})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:"Internal Server Error. Details: "+(appError?.message||"Unknown Error")})}}async getPlan(req,res){if(req.params.id)try{const thePlan=await this.planService.getPlan(req.params.id,!0);res.status(200).json({success:!0,result:thePlan})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Internal Server Error"})}else res.status(400).json({success:!1,error:"Plan ID is required"})}async checkActiveBackups(req,res){if(req.params.id)try{const hasActiveBackup=await this.planService.checkActiveBackups(req.params.id);res.status(200).json({success:!0,result:hasActiveBackup})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:"Internal Server Error. Details: "+(appError?.message||"Unknown Error")})}else res.status(400).json({success:!1,error:"Plan ID is required"})}async createPlan(req,res){const planPayload=req.body;try{if(!(planPayload&&planPayload.settings&&planPayload.settings.interval&&planPayload.storage.id&&planPayload.sourceType&&planPayload.sourceConfig))return void res.status(400).json({success:!1,error:"Required fields missing: interval, storage Id, sourceId, sourceType, sourceConfig"});const plan=await this.planService.createPlan(planPayload);res.status(201).json({success:!0,result:plan})}catch(error){const appError=error;return void res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Failed to create plan"})}}async updatePlan(req,res){const planPayload=req.body.plan;try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required."});if(!planPayload)return void res.status(400).json({success:!1,error:"Payload Missing."});const updatedPlan=await this.planService.updatePlan(req.params.id,planPayload);res.status(200).json({success:!0,result:updatedPlan})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Failed to update plan"})}}async deletePlan(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});const removeRemoteData=!!req.
|
|
1
|
+
export class PlanController{planService;constructor(planService){this.planService=planService}async getPlans(req,res){try{const allPlans=await this.planService.getAllPlans();res.status(200).json({success:!0,result:allPlans||[]})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:"Internal Server Error. Details: "+(appError?.message||"Unknown Error")})}}async getPlan(req,res){if(req.params.id)try{const thePlan=await this.planService.getPlan(req.params.id,!0);res.status(200).json({success:!0,result:thePlan})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Internal Server Error"})}else res.status(400).json({success:!1,error:"Plan ID is required"})}async checkActiveBackups(req,res){if(req.params.id)try{const hasActiveBackup=await this.planService.checkActiveBackups(req.params.id);res.status(200).json({success:!0,result:hasActiveBackup})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:"Internal Server Error. Details: "+(appError?.message||"Unknown Error")})}else res.status(400).json({success:!1,error:"Plan ID is required"})}async createPlan(req,res){const planPayload=req.body;try{if(!(planPayload&&planPayload.settings&&planPayload.settings.interval&&planPayload.storage.id&&planPayload.sourceType&&planPayload.sourceConfig))return void res.status(400).json({success:!1,error:"Required fields missing: interval, storage Id, sourceId, sourceType, sourceConfig"});const plan=await this.planService.createPlan(planPayload);res.status(201).json({success:!0,result:plan})}catch(error){const appError=error;return void res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Failed to create plan"})}}async updatePlan(req,res){const planPayload=req.body.plan;try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required."});if(!planPayload)return void res.status(400).json({success:!1,error:"Payload Missing."});const updatedPlan=await this.planService.updatePlan(req.params.id,planPayload);res.status(200).json({success:!0,result:updatedPlan})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Failed to update plan"})}}async deletePlan(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});const removeRemoteData=!!req.query.removeData;await this.planService.deletePlan(req.params.id,removeRemoteData),res.status(200).json({success:!0,message:"Plan deleted successfully"})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Failed to delete plan"})}}async performBackup(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});await this.planService.performBackup(req.params.id),res.status(200).json({success:!0,message:"Backup initiated successfully"})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError?.message||"Failed to initiate backup"})}}async pauseBackup(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});await this.planService.pauseBackup(req.params.id),res.status(200).json({success:!0,message:"Backup paused successfully"})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError.message||"Failed to pause backup"})}}async resumeBackup(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});await this.planService.resumeBackup(req.params.id),res.status(200).json({success:!0,message:"Backup resumed successfully"})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError.message||"Failed to pause backup"})}}async pruneBackup(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});const pruneResult=await this.planService.pruneBackups(req.params.id);res.status(200).json({success:!0,message:pruneResult||"Backup pruned successfully"})}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError.message||"Failed to prune backups"})}}async unlockRepo(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});const result=await this.planService.unlockRepo(req.params.id);res.status(result.success?200:500).json(result)}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:appError.message||"Failed to unlock repository"})}}async getLogs(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});const logs=await this.planService.getPlanLogs(req.params.id);res.status(200).json({success:!0,logs:logs})}catch(error){const appError=error;return void res.status(appError.statusCode||500).json({success:!1,error:"Failed to get logs: "+appError.message})}}async downloadLogs(req,res){try{if(!req.params.id)return void res.status(400).json({success:!1,error:"Plan ID is required"});const fileStream=await this.planService.downloadPlanLogs(req.params.id);res.setHeader("Content-Type","text/plain"),res.setHeader("Content-Disposition",'attachment; filename="plan.log"'),fileStream.pipe(res)}catch(error){const appError=error;res.status(appError.statusCode||500).json({success:!1,error:`Failed to download logs: ${appError.message}`})}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanController.js","sourceRoot":"","sources":["../../src/controllers/PlanController.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,cAAc;IACJ;IAAtB,YAAsB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAElD,KAAK,CAAC,QAAQ,CAAC,GAAY,EAAE,GAAa;QACzC,IAAI,CAAC;YACJ,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;YACtD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACpB,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,QAAQ,IAAI,EAAE;aACtB,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACzB,MAAM,QAAQ,GAAG,KAAiB,CAAC;YACnC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC;gBAC3C,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,kCAAkC,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,eAAe,CAAC;aAClF,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,GAAY,EAAE,GAAa;QACxC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACpB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC,CAAC;YACvE,OAAO;QACR,CAAC;QACD,IAAI,CAAC;YACJ,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OA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A4B,QAAQ,CAAC,OAAO,EAAE;aACrD,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD"}
|
package/dist/createApp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import path from"path";import{fileURLToPath}from"url";import express from"express";import cors from"cors";import rateLimit from"express-rate-limit";import{db}from"./db";import{createPlanRouter}from"./routes/plans";import{createDeviceRouter}from"./routes/devices";import{createStorageRouter}from"./routes/storages";import{createRestoreRouter}from"./routes/restores";import{createUserRouter}from"./routes/users";import{createSettingsRouter}from"./routes/settings";import{createHealthRouter}from"./routes/health";import{createSetupRouter}from"./routes/setup";import{PlanController}from"./controllers/PlanController";import{DeviceController}from"./controllers/DeviceController";import{StorageController}from"./controllers/StorageController";import{RestoreController}from"./controllers/RestoreController";import{UserController}from"./controllers/UserController";import{SettingsController}from"./controllers/SettingsController";import{SetupController}from"./controllers/SetupController";import{createBackupRouter}from"./routes/backups";import{BackupController}from"./controllers/BackupController";import versionMiddleware from"./middlewares/versionMiddleware";import{PlanStore}from"./stores/PlanStore";import{BackupStore}from"./stores/BackupStore";import{PlanService}from"./services/PlanService";import{RestoreStore}from"./stores/RestoreStore";import{SettingsStore}from"./stores/SettingsStore";import{StorageStore}from"./stores/StorageStore";import{DeviceStore}from"./stores/DeviceStore";import{BaseBackupManager}from"./managers";import{BackupEventListener}from"./services/listeners/BackupEventListener";import{BackupService}from"./services/BackupServices";import{BaseSnapshotManager}from"./managers/BaseSnapshotManager";import{RestoreService}from"./services/RestoreService";import{RestoreEventListener}from"./services/listeners/RestoreEventListener";import{DownloadEventListener}from"./services/listeners/DownloadEventListener";import{DeviceService}from"./services/DeviceService";import{BaseSystemManager}from"./managers/BaseSystemManager";import{BaseStorageManager}from"./managers/BaseStorageManager";import{StorageService}from"./services/StorageService";import{SettingsService}from"./services/SettingsService";import{systemTaskManager}from"./jobs/SystemTaskManager";import{jobProcessor}from"./jobs/JobProcessor";import{initializeLogger}from"./utils/logger";import{configService}from"./services/ConfigService";import{BaseRestoreManager}from"./managers/BaseRestoreManager";export async function createApp(){initializeLogger();const planStore=new PlanStore(db),backupStore=new BackupStore(db),storageStore=new StorageStore(db),deviceStore=new DeviceStore(db),restoreStore=new RestoreStore(db),settingsStore=new SettingsStore(db),localPlanAgent=new BaseBackupManager,localBackupAgent=new BaseSnapshotManager,localRestoreAgent=new BaseRestoreManager,localSystemAgent=new BaseSystemManager,localStorageAgent=new BaseStorageManager;new BackupEventListener(localPlanAgent,planStore,backupStore),new RestoreEventListener(localRestoreAgent,planStore,backupStore,restoreStore),new DownloadEventListener(localBackupAgent,backupStore);const planService=new PlanService(localPlanAgent,planStore,backupStore,storageStore,deviceStore,null),backupService=new BackupService(localBackupAgent,localPlanAgent,planStore,backupStore,restoreStore,storageStore,null),restoreService=new RestoreService(localRestoreAgent,planStore,backupStore,restoreStore,storageStore,null),deviceService=new DeviceService(localSystemAgent,deviceStore,planStore,storageStore,null),storageService=new StorageService(localStorageAgent,localSystemAgent,storageStore,planStore,null),settingsService=new SettingsService(settingsStore),planController=new PlanController(planService),backupController=new BackupController(backupService),restoreController=new RestoreController(restoreService),deviceController=new DeviceController(deviceService),storageController=new StorageController(storageService),settingsController=new SettingsController(settingsService),userController=new UserController,setupController=new SetupController,app=express();app.use(cors({origin:[process.env.APP_URL,configService.config.APP_URL||"http://mypluton.com"],credentials:!0,methods:["GET","POST","PUT","DELETE","OPTIONS"],exposedHeaders:["X-App-Version","X-Server-OS"]})),app.use(versionMiddleware),app.use(express.json());const __filename=fileURLToPath(import.meta.url),__dirname=path.dirname(__filename),publicPath=path.join(__dirname,"..","public");app.use(express.static(publicPath));const apiLimiter=rateLimit({windowMs:9e5,max:
|
|
1
|
+
import path from"path";import{fileURLToPath}from"url";import express from"express";import cors from"cors";import rateLimit from"express-rate-limit";import{db}from"./db";import{createPlanRouter}from"./routes/plans";import{createDeviceRouter}from"./routes/devices";import{createStorageRouter}from"./routes/storages";import{createRestoreRouter}from"./routes/restores";import{createUserRouter}from"./routes/users";import{createSettingsRouter}from"./routes/settings";import{createHealthRouter}from"./routes/health";import{createSetupRouter}from"./routes/setup";import{PlanController}from"./controllers/PlanController";import{DeviceController}from"./controllers/DeviceController";import{StorageController}from"./controllers/StorageController";import{RestoreController}from"./controllers/RestoreController";import{UserController}from"./controllers/UserController";import{SettingsController}from"./controllers/SettingsController";import{SetupController}from"./controllers/SetupController";import{createBackupRouter}from"./routes/backups";import{BackupController}from"./controllers/BackupController";import versionMiddleware from"./middlewares/versionMiddleware";import{PlanStore}from"./stores/PlanStore";import{BackupStore}from"./stores/BackupStore";import{PlanService}from"./services/PlanService";import{RestoreStore}from"./stores/RestoreStore";import{SettingsStore}from"./stores/SettingsStore";import{StorageStore}from"./stores/StorageStore";import{DeviceStore}from"./stores/DeviceStore";import{BaseBackupManager}from"./managers";import{BackupEventListener}from"./services/listeners/BackupEventListener";import{BackupService}from"./services/BackupServices";import{BaseSnapshotManager}from"./managers/BaseSnapshotManager";import{RestoreService}from"./services/RestoreService";import{RestoreEventListener}from"./services/listeners/RestoreEventListener";import{DownloadEventListener}from"./services/listeners/DownloadEventListener";import{DeviceService}from"./services/DeviceService";import{BaseSystemManager}from"./managers/BaseSystemManager";import{BaseStorageManager}from"./managers/BaseStorageManager";import{StorageService}from"./services/StorageService";import{SettingsService}from"./services/SettingsService";import{systemTaskManager}from"./jobs/SystemTaskManager";import{jobProcessor}from"./jobs/JobProcessor";import{initializeLogger}from"./utils/logger";import{configService}from"./services/ConfigService";import{BaseRestoreManager}from"./managers/BaseRestoreManager";export async function createApp(){initializeLogger();const planStore=new PlanStore(db),backupStore=new BackupStore(db),storageStore=new StorageStore(db),deviceStore=new DeviceStore(db),restoreStore=new RestoreStore(db),settingsStore=new SettingsStore(db),localPlanAgent=new BaseBackupManager,localBackupAgent=new BaseSnapshotManager,localRestoreAgent=new BaseRestoreManager,localSystemAgent=new BaseSystemManager,localStorageAgent=new BaseStorageManager;new BackupEventListener(localPlanAgent,planStore,backupStore),new RestoreEventListener(localRestoreAgent,planStore,backupStore,restoreStore),new DownloadEventListener(localBackupAgent,backupStore);const planService=new PlanService(localPlanAgent,planStore,backupStore,storageStore,deviceStore,null),backupService=new BackupService(localBackupAgent,localPlanAgent,planStore,backupStore,restoreStore,storageStore,null),restoreService=new RestoreService(localRestoreAgent,planStore,backupStore,restoreStore,storageStore,null),deviceService=new DeviceService(localSystemAgent,deviceStore,planStore,storageStore,null),storageService=new StorageService(localStorageAgent,localSystemAgent,storageStore,planStore,null),settingsService=new SettingsService(settingsStore),planController=new PlanController(planService),backupController=new BackupController(backupService),restoreController=new RestoreController(restoreService),deviceController=new DeviceController(deviceService),storageController=new StorageController(storageService),settingsController=new SettingsController(settingsService),userController=new UserController,setupController=new SetupController,app=express();app.use(cors({origin:[process.env.APP_URL,configService.config.APP_URL||"http://mypluton.com"],credentials:!0,methods:["GET","POST","PUT","DELETE","OPTIONS"],exposedHeaders:["X-App-Version","X-Server-OS"]})),app.use(versionMiddleware),app.use(express.json());const __filename=fileURLToPath(import.meta.url),__dirname=path.dirname(__filename),publicPath=path.join(__dirname,"..","public");app.use(express.static(publicPath));const apiLimiter=rateLimit({windowMs:9e5,max:1e3,standardHeaders:!0,legacyHeaders:!1});return app.use("/api/",apiLimiter),app.use("/api/setup",createSetupRouter(setupController)),app.use("/api/user",createUserRouter(userController)),app.use("/api/plans",createPlanRouter(planController)),app.use("/api/backups",createBackupRouter(backupController)),app.use("/api/devices",createDeviceRouter(deviceController)),app.use("/api/storages",createStorageRouter(storageController)),app.use("/api/restores",createRestoreRouter(restoreController)),app.use("/api/settings",createSettingsRouter(settingsController)),app.use("/api/health",createHealthRouter()),app.get("*",(req,res)=>{res.sendFile(path.join(publicPath,"index.html"))}),systemTaskManager.initialize(),jobProcessor.registerTasks({backupManager:localPlanAgent,restoreManager:localRestoreAgent}),jobProcessor.start(),{app:app}}
|
package/dist/createApp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createApp.js","sourceRoot":"","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AAC,eAAe,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACnE,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAE7C,0EAA0E;IAC1E,2EAA2E;IAC3E,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACzB,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,8BAA8B;IAC9B,iBAAiB,CAAC,UAAU,EAAE,CAAC;IAE/B,6BAA6B;IAC7B,YAAY,CAAC,aAAa,CAAC;QAC1B,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,iBAAiB;KACjC,CAAC,CAAC;IAEH,YAAY,CAAC,KAAK,EAAE,CAAC;IAErB,OAAO,EAAE,GAAG,EAAE,CAAC;AAChB,CAAC"}
|
package/dist/db/index.d.ts
CHANGED
|
@@ -59,6 +59,25 @@ export declare const db: import("drizzle-orm/better-sqlite3").BetterSQLite3Datab
|
|
|
59
59
|
}, {}, {
|
|
60
60
|
length: number | undefined;
|
|
61
61
|
}>;
|
|
62
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
63
|
+
name: "description";
|
|
64
|
+
tableName: "plans";
|
|
65
|
+
dataType: "string";
|
|
66
|
+
columnType: "SQLiteText";
|
|
67
|
+
data: string;
|
|
68
|
+
driverParam: string;
|
|
69
|
+
notNull: false;
|
|
70
|
+
hasDefault: false;
|
|
71
|
+
isPrimaryKey: false;
|
|
72
|
+
isAutoincrement: false;
|
|
73
|
+
hasRuntimeDefault: false;
|
|
74
|
+
enumValues: [string, ...string[]];
|
|
75
|
+
baseColumn: never;
|
|
76
|
+
identity: undefined;
|
|
77
|
+
generated: undefined;
|
|
78
|
+
}, {}, {
|
|
79
|
+
length: number | undefined;
|
|
80
|
+
}>;
|
|
62
81
|
isActive: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
63
82
|
name: "active";
|
|
64
83
|
tableName: "plans";
|
|
@@ -1248,6 +1267,44 @@ export declare const db: import("drizzle-orm/better-sqlite3").BetterSQLite3Datab
|
|
|
1248
1267
|
}, {}, {
|
|
1249
1268
|
length: number | undefined;
|
|
1250
1269
|
}>;
|
|
1270
|
+
title: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1271
|
+
name: "title";
|
|
1272
|
+
tableName: "backups";
|
|
1273
|
+
dataType: "string";
|
|
1274
|
+
columnType: "SQLiteText";
|
|
1275
|
+
data: string;
|
|
1276
|
+
driverParam: string;
|
|
1277
|
+
notNull: false;
|
|
1278
|
+
hasDefault: false;
|
|
1279
|
+
isPrimaryKey: false;
|
|
1280
|
+
isAutoincrement: false;
|
|
1281
|
+
hasRuntimeDefault: false;
|
|
1282
|
+
enumValues: [string, ...string[]];
|
|
1283
|
+
baseColumn: never;
|
|
1284
|
+
identity: undefined;
|
|
1285
|
+
generated: undefined;
|
|
1286
|
+
}, {}, {
|
|
1287
|
+
length: number | undefined;
|
|
1288
|
+
}>;
|
|
1289
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1290
|
+
name: "description";
|
|
1291
|
+
tableName: "backups";
|
|
1292
|
+
dataType: "string";
|
|
1293
|
+
columnType: "SQLiteText";
|
|
1294
|
+
data: string;
|
|
1295
|
+
driverParam: string;
|
|
1296
|
+
notNull: false;
|
|
1297
|
+
hasDefault: false;
|
|
1298
|
+
isPrimaryKey: false;
|
|
1299
|
+
isAutoincrement: false;
|
|
1300
|
+
hasRuntimeDefault: false;
|
|
1301
|
+
enumValues: [string, ...string[]];
|
|
1302
|
+
baseColumn: never;
|
|
1303
|
+
identity: undefined;
|
|
1304
|
+
generated: undefined;
|
|
1305
|
+
}, {}, {
|
|
1306
|
+
length: number | undefined;
|
|
1307
|
+
}>;
|
|
1251
1308
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1252
1309
|
name: "created_at";
|
|
1253
1310
|
tableName: "backups";
|
package/dist/db/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AActC,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AActC,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcb,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,EAAE,CAAC"}
|
|
@@ -24,6 +24,44 @@ export declare const backups: import("drizzle-orm/sqlite-core").SQLiteTableWithC
|
|
|
24
24
|
}, {}, {
|
|
25
25
|
length: number | undefined;
|
|
26
26
|
}>;
|
|
27
|
+
title: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
28
|
+
name: "title";
|
|
29
|
+
tableName: "backups";
|
|
30
|
+
dataType: "string";
|
|
31
|
+
columnType: "SQLiteText";
|
|
32
|
+
data: string;
|
|
33
|
+
driverParam: string;
|
|
34
|
+
notNull: false;
|
|
35
|
+
hasDefault: false;
|
|
36
|
+
isPrimaryKey: false;
|
|
37
|
+
isAutoincrement: false;
|
|
38
|
+
hasRuntimeDefault: false;
|
|
39
|
+
enumValues: [string, ...string[]];
|
|
40
|
+
baseColumn: never;
|
|
41
|
+
identity: undefined;
|
|
42
|
+
generated: undefined;
|
|
43
|
+
}, {}, {
|
|
44
|
+
length: number | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
47
|
+
name: "description";
|
|
48
|
+
tableName: "backups";
|
|
49
|
+
dataType: "string";
|
|
50
|
+
columnType: "SQLiteText";
|
|
51
|
+
data: string;
|
|
52
|
+
driverParam: string;
|
|
53
|
+
notNull: false;
|
|
54
|
+
hasDefault: false;
|
|
55
|
+
isPrimaryKey: false;
|
|
56
|
+
isAutoincrement: false;
|
|
57
|
+
hasRuntimeDefault: false;
|
|
58
|
+
enumValues: [string, ...string[]];
|
|
59
|
+
baseColumn: never;
|
|
60
|
+
identity: undefined;
|
|
61
|
+
generated: undefined;
|
|
62
|
+
}, {}, {
|
|
63
|
+
length: number | undefined;
|
|
64
|
+
}>;
|
|
27
65
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
28
66
|
name: "created_at";
|
|
29
67
|
tableName: "backups";
|
|
@@ -450,6 +488,44 @@ export declare const backupInsertSchema: import("drizzle-zod").BuildSchema<"inse
|
|
|
450
488
|
}, {}, {
|
|
451
489
|
length: number | undefined;
|
|
452
490
|
}>;
|
|
491
|
+
title: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
492
|
+
name: "title";
|
|
493
|
+
tableName: "backups";
|
|
494
|
+
dataType: "string";
|
|
495
|
+
columnType: "SQLiteText";
|
|
496
|
+
data: string;
|
|
497
|
+
driverParam: string;
|
|
498
|
+
notNull: false;
|
|
499
|
+
hasDefault: false;
|
|
500
|
+
isPrimaryKey: false;
|
|
501
|
+
isAutoincrement: false;
|
|
502
|
+
hasRuntimeDefault: false;
|
|
503
|
+
enumValues: [string, ...string[]];
|
|
504
|
+
baseColumn: never;
|
|
505
|
+
identity: undefined;
|
|
506
|
+
generated: undefined;
|
|
507
|
+
}, {}, {
|
|
508
|
+
length: number | undefined;
|
|
509
|
+
}>;
|
|
510
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
511
|
+
name: "description";
|
|
512
|
+
tableName: "backups";
|
|
513
|
+
dataType: "string";
|
|
514
|
+
columnType: "SQLiteText";
|
|
515
|
+
data: string;
|
|
516
|
+
driverParam: string;
|
|
517
|
+
notNull: false;
|
|
518
|
+
hasDefault: false;
|
|
519
|
+
isPrimaryKey: false;
|
|
520
|
+
isAutoincrement: false;
|
|
521
|
+
hasRuntimeDefault: false;
|
|
522
|
+
enumValues: [string, ...string[]];
|
|
523
|
+
baseColumn: never;
|
|
524
|
+
identity: undefined;
|
|
525
|
+
generated: undefined;
|
|
526
|
+
}, {}, {
|
|
527
|
+
length: number | undefined;
|
|
528
|
+
}>;
|
|
453
529
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
454
530
|
name: "created_at";
|
|
455
531
|
tableName: "backups";
|
|
@@ -872,6 +948,44 @@ export declare const backupUpdateSchema: import("drizzle-zod").BuildSchema<"upda
|
|
|
872
948
|
}, {}, {
|
|
873
949
|
length: number | undefined;
|
|
874
950
|
}>;
|
|
951
|
+
title: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
952
|
+
name: "title";
|
|
953
|
+
tableName: "backups";
|
|
954
|
+
dataType: "string";
|
|
955
|
+
columnType: "SQLiteText";
|
|
956
|
+
data: string;
|
|
957
|
+
driverParam: string;
|
|
958
|
+
notNull: false;
|
|
959
|
+
hasDefault: false;
|
|
960
|
+
isPrimaryKey: false;
|
|
961
|
+
isAutoincrement: false;
|
|
962
|
+
hasRuntimeDefault: false;
|
|
963
|
+
enumValues: [string, ...string[]];
|
|
964
|
+
baseColumn: never;
|
|
965
|
+
identity: undefined;
|
|
966
|
+
generated: undefined;
|
|
967
|
+
}, {}, {
|
|
968
|
+
length: number | undefined;
|
|
969
|
+
}>;
|
|
970
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
971
|
+
name: "description";
|
|
972
|
+
tableName: "backups";
|
|
973
|
+
dataType: "string";
|
|
974
|
+
columnType: "SQLiteText";
|
|
975
|
+
data: string;
|
|
976
|
+
driverParam: string;
|
|
977
|
+
notNull: false;
|
|
978
|
+
hasDefault: false;
|
|
979
|
+
isPrimaryKey: false;
|
|
980
|
+
isAutoincrement: false;
|
|
981
|
+
hasRuntimeDefault: false;
|
|
982
|
+
enumValues: [string, ...string[]];
|
|
983
|
+
baseColumn: never;
|
|
984
|
+
identity: undefined;
|
|
985
|
+
generated: undefined;
|
|
986
|
+
}, {}, {
|
|
987
|
+
length: number | undefined;
|
|
988
|
+
}>;
|
|
875
989
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
876
990
|
name: "created_at";
|
|
877
991
|
tableName: "backups";
|
|
@@ -1294,6 +1408,44 @@ export declare const backupSelectSchema: import("drizzle-zod").BuildSchema<"sele
|
|
|
1294
1408
|
}, {}, {
|
|
1295
1409
|
length: number | undefined;
|
|
1296
1410
|
}>;
|
|
1411
|
+
title: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1412
|
+
name: "title";
|
|
1413
|
+
tableName: "backups";
|
|
1414
|
+
dataType: "string";
|
|
1415
|
+
columnType: "SQLiteText";
|
|
1416
|
+
data: string;
|
|
1417
|
+
driverParam: string;
|
|
1418
|
+
notNull: false;
|
|
1419
|
+
hasDefault: false;
|
|
1420
|
+
isPrimaryKey: false;
|
|
1421
|
+
isAutoincrement: false;
|
|
1422
|
+
hasRuntimeDefault: false;
|
|
1423
|
+
enumValues: [string, ...string[]];
|
|
1424
|
+
baseColumn: never;
|
|
1425
|
+
identity: undefined;
|
|
1426
|
+
generated: undefined;
|
|
1427
|
+
}, {}, {
|
|
1428
|
+
length: number | undefined;
|
|
1429
|
+
}>;
|
|
1430
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1431
|
+
name: "description";
|
|
1432
|
+
tableName: "backups";
|
|
1433
|
+
dataType: "string";
|
|
1434
|
+
columnType: "SQLiteText";
|
|
1435
|
+
data: string;
|
|
1436
|
+
driverParam: string;
|
|
1437
|
+
notNull: false;
|
|
1438
|
+
hasDefault: false;
|
|
1439
|
+
isPrimaryKey: false;
|
|
1440
|
+
isAutoincrement: false;
|
|
1441
|
+
hasRuntimeDefault: false;
|
|
1442
|
+
enumValues: [string, ...string[]];
|
|
1443
|
+
baseColumn: never;
|
|
1444
|
+
identity: undefined;
|
|
1445
|
+
generated: undefined;
|
|
1446
|
+
}, {}, {
|
|
1447
|
+
length: number | undefined;
|
|
1448
|
+
}>;
|
|
1297
1449
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1298
1450
|
name: "created_at";
|
|
1299
1451
|
tableName: "backups";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backups.d.ts","sourceRoot":"","sources":["../../../src/db/schema/backups.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,qBAAqB,EAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA8B,CAAC;AAC9D,eAAO,MAAM,eAAe;;EAKzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sql}from"drizzle-orm/sql";import{sqliteTable,text,integer}from"drizzle-orm/sqlite-core";import{createInsertSchema,createSelectSchema,createUpdateSchema}from"drizzle-zod";import{storages}from"./storages";import{plans}from"./plans";import{relations}from"drizzle-orm";export const backups=sqliteTable("backups",{id:text("id").notNull().primaryKey(),createdAt:integer("created_at",{mode:"timestamp"}).notNull().default(sql`(unixepoch())`),updatedAt:integer("updated_at",{mode:"timestamp"}),started:integer("started_at",{mode:"timestamp"}),ended:integer("ended_at",{mode:"timestamp"}),inProgress:integer("in_progress",{mode:"boolean"}),success:integer("success",{mode:"boolean"}),active:integer("active",{mode:"boolean"}).default(!0),status:text("status"),errorMsg:text("error_msg"),planId:text("plan_id").references(()=>plans.id),storageId:text("storage_id").references(()=>storages.id),storagePath:text("storage_path"),sourceId:text("source_id").notNull(),method:text("method").notNull(),sourceType:text("source_type").$type().notNull().default("device"),sourceConfig:text("source_config",{mode:"json"}).$type(),encryption:integer("encryption",{mode:"boolean"}).default(!0),compression:integer("compression",{mode:"boolean"}).default(!1),download:text("download",{mode:"json"}).$type(),taskStats:text("task_stats",{mode:"json"}).$type(),progressStats:text("progress_stats",{mode:"json"}).$type(),completionStats:text("completion_stats",{mode:"json"}).$type()});export const backupInsertSchema=createInsertSchema(backups);export const backupUpdateSchema=createUpdateSchema(backups);export const backupSelectSchema=createSelectSchema(backups);export const backupRelations=relations(backups,({one:one})=>({plan:one(plans,{fields:[backups.planId],references:[plans.id]})}));
|
|
1
|
+
import{sql}from"drizzle-orm/sql";import{sqliteTable,text,integer}from"drizzle-orm/sqlite-core";import{createInsertSchema,createSelectSchema,createUpdateSchema}from"drizzle-zod";import{storages}from"./storages";import{plans}from"./plans";import{relations}from"drizzle-orm";export const backups=sqliteTable("backups",{id:text("id").notNull().primaryKey(),title:text("title"),description:text("description"),createdAt:integer("created_at",{mode:"timestamp"}).notNull().default(sql`(unixepoch())`),updatedAt:integer("updated_at",{mode:"timestamp"}),started:integer("started_at",{mode:"timestamp"}),ended:integer("ended_at",{mode:"timestamp"}),inProgress:integer("in_progress",{mode:"boolean"}),success:integer("success",{mode:"boolean"}),active:integer("active",{mode:"boolean"}).default(!0),status:text("status"),errorMsg:text("error_msg"),planId:text("plan_id").references(()=>plans.id),storageId:text("storage_id").references(()=>storages.id),storagePath:text("storage_path"),sourceId:text("source_id").notNull(),method:text("method").notNull(),sourceType:text("source_type").$type().notNull().default("device"),sourceConfig:text("source_config",{mode:"json"}).$type(),encryption:integer("encryption",{mode:"boolean"}).default(!0),compression:integer("compression",{mode:"boolean"}).default(!1),download:text("download",{mode:"json"}).$type(),taskStats:text("task_stats",{mode:"json"}).$type(),progressStats:text("progress_stats",{mode:"json"}).$type(),completionStats:text("completion_stats",{mode:"json"}).$type()});export const backupInsertSchema=createInsertSchema(backups);export const backupUpdateSchema=createUpdateSchema(backups);export const backupSelectSchema=createSelectSchema(backups);export const backupRelations=relations(backups,({one:one})=>({plan:one(plans,{fields:[backups.planId],references:[plans.id]})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/db/schema/backups.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/db/schema/backups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAmB,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAShC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,SAAS,EAAE;IAC7C,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE;IACrC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;IACpB,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;SACrD,OAAO,EAAE;SACT,OAAO,CAAC,GAAG,CAAA,eAAe,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IACvD,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IACrD,KAAK,EAAE,OAAO,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IACjD,UAAU,EAAE,OAAO,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IACvD,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SA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AAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,EAAuB;IACpF,eAAe,EAAE,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,EAAyB;CAC1F,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE;QAChB,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;QACxB,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;KACtB,CAAC;CACF,CAAC,CAAC,CAAC"}
|
|
@@ -59,6 +59,25 @@ export declare const plans: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
|
|
|
59
59
|
}, {}, {
|
|
60
60
|
length: number | undefined;
|
|
61
61
|
}>;
|
|
62
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
63
|
+
name: "description";
|
|
64
|
+
tableName: "plans";
|
|
65
|
+
dataType: "string";
|
|
66
|
+
columnType: "SQLiteText";
|
|
67
|
+
data: string;
|
|
68
|
+
driverParam: string;
|
|
69
|
+
notNull: false;
|
|
70
|
+
hasDefault: false;
|
|
71
|
+
isPrimaryKey: false;
|
|
72
|
+
isAutoincrement: false;
|
|
73
|
+
hasRuntimeDefault: false;
|
|
74
|
+
enumValues: [string, ...string[]];
|
|
75
|
+
baseColumn: never;
|
|
76
|
+
identity: undefined;
|
|
77
|
+
generated: undefined;
|
|
78
|
+
}, {}, {
|
|
79
|
+
length: number | undefined;
|
|
80
|
+
}>;
|
|
62
81
|
isActive: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
63
82
|
name: "active";
|
|
64
83
|
tableName: "plans";
|
|
@@ -379,6 +398,25 @@ export declare const planInsertSchema: import("drizzle-zod").BuildSchema<"insert
|
|
|
379
398
|
}, {}, {
|
|
380
399
|
length: number | undefined;
|
|
381
400
|
}>;
|
|
401
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
402
|
+
name: "description";
|
|
403
|
+
tableName: "plans";
|
|
404
|
+
dataType: "string";
|
|
405
|
+
columnType: "SQLiteText";
|
|
406
|
+
data: string;
|
|
407
|
+
driverParam: string;
|
|
408
|
+
notNull: false;
|
|
409
|
+
hasDefault: false;
|
|
410
|
+
isPrimaryKey: false;
|
|
411
|
+
isAutoincrement: false;
|
|
412
|
+
hasRuntimeDefault: false;
|
|
413
|
+
enumValues: [string, ...string[]];
|
|
414
|
+
baseColumn: never;
|
|
415
|
+
identity: undefined;
|
|
416
|
+
generated: undefined;
|
|
417
|
+
}, {}, {
|
|
418
|
+
length: number | undefined;
|
|
419
|
+
}>;
|
|
382
420
|
isActive: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
383
421
|
name: "active";
|
|
384
422
|
tableName: "plans";
|
|
@@ -695,6 +733,25 @@ export declare const planUpdateSchema: import("drizzle-zod").BuildSchema<"update
|
|
|
695
733
|
}, {}, {
|
|
696
734
|
length: number | undefined;
|
|
697
735
|
}>;
|
|
736
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
737
|
+
name: "description";
|
|
738
|
+
tableName: "plans";
|
|
739
|
+
dataType: "string";
|
|
740
|
+
columnType: "SQLiteText";
|
|
741
|
+
data: string;
|
|
742
|
+
driverParam: string;
|
|
743
|
+
notNull: false;
|
|
744
|
+
hasDefault: false;
|
|
745
|
+
isPrimaryKey: false;
|
|
746
|
+
isAutoincrement: false;
|
|
747
|
+
hasRuntimeDefault: false;
|
|
748
|
+
enumValues: [string, ...string[]];
|
|
749
|
+
baseColumn: never;
|
|
750
|
+
identity: undefined;
|
|
751
|
+
generated: undefined;
|
|
752
|
+
}, {}, {
|
|
753
|
+
length: number | undefined;
|
|
754
|
+
}>;
|
|
698
755
|
isActive: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
699
756
|
name: "active";
|
|
700
757
|
tableName: "plans";
|
|
@@ -1011,6 +1068,25 @@ export declare const planSelectSchema: import("drizzle-zod").BuildSchema<"select
|
|
|
1011
1068
|
}, {}, {
|
|
1012
1069
|
length: number | undefined;
|
|
1013
1070
|
}>;
|
|
1071
|
+
description: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1072
|
+
name: "description";
|
|
1073
|
+
tableName: "plans";
|
|
1074
|
+
dataType: "string";
|
|
1075
|
+
columnType: "SQLiteText";
|
|
1076
|
+
data: string;
|
|
1077
|
+
driverParam: string;
|
|
1078
|
+
notNull: false;
|
|
1079
|
+
hasDefault: false;
|
|
1080
|
+
isPrimaryKey: false;
|
|
1081
|
+
isAutoincrement: false;
|
|
1082
|
+
hasRuntimeDefault: false;
|
|
1083
|
+
enumValues: [string, ...string[]];
|
|
1084
|
+
baseColumn: never;
|
|
1085
|
+
identity: undefined;
|
|
1086
|
+
generated: undefined;
|
|
1087
|
+
}, {}, {
|
|
1088
|
+
length: number | undefined;
|
|
1089
|
+
}>;
|
|
1014
1090
|
isActive: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1015
1091
|
name: "active";
|
|
1016
1092
|
tableName: "plans";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../../src/db/schema/plans.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAA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