@@ -19,7 +19,6 @@ export const SocketActions = {
1919 machineServicesRestart ( service : string , options ?: NotifyOptions ) {
2020 return baseEmit < Moonraker . OkResponse > (
2121 'machine.services.restart' , {
22- dispatch : 'void' ,
2322 wait : Waits . onServiceRestart ,
2423 ...options ,
2524 params : {
@@ -32,7 +31,6 @@ export const SocketActions = {
3231 machineServicesStart ( service : string , options ?: NotifyOptions ) {
3332 return baseEmit < Moonraker . OkResponse > (
3433 'machine.services.start' , {
35- dispatch : 'void' ,
3634 wait : Waits . onServiceStart ,
3735 ...options ,
3836 params : {
@@ -45,7 +43,6 @@ export const SocketActions = {
4543 machineServicesStop ( service : string , options ?: NotifyOptions ) {
4644 return baseEmit < Moonraker . OkResponse > (
4745 'machine.services.stop' , {
48- dispatch : 'void' ,
4946 wait : Waits . onServiceStop ,
5047 ...options ,
5148 params : {
@@ -58,7 +55,6 @@ export const SocketActions = {
5855 machineReboot ( options ?: NotifyOptions ) {
5956 return baseEmit < Moonraker . OkResponse > (
6057 'machine.reboot' , {
61- dispatch : 'void' ,
6258 ...options
6359 }
6460 )
@@ -67,7 +63,6 @@ export const SocketActions = {
6763 machineShutdown ( options ?: NotifyOptions ) {
6864 return baseEmit < Moonraker . OkResponse > (
6965 'machine.shutdown' , {
70- dispatch : 'void' ,
7166 ...options
7267 }
7368 )
@@ -326,7 +321,6 @@ export const SocketActions = {
326321 printerRestart ( options ?: NotifyOptions ) {
327322 return baseEmit < Moonraker . OkResponse > (
328323 'printer.restart' , {
329- dispatch : 'void' ,
330324 wait : Waits . onKlipperRestart ,
331325 ...options
332326 }
@@ -336,7 +330,6 @@ export const SocketActions = {
336330 printerFirmwareRestart ( options ?: NotifyOptions ) {
337331 return baseEmit < Moonraker . OkResponse > (
338332 'printer.firmware_restart' , {
339- dispatch : 'void' ,
340333 wait : Waits . onKlipperFirmwareRestart ,
341334 ...options
342335 }
@@ -377,7 +370,6 @@ export const SocketActions = {
377370 printerPrintStart ( path : string , options ?: NotifyOptions ) {
378371 return baseEmit < Moonraker . OkResponse > (
379372 'printer.print.start' , {
380- dispatch : 'void' ,
381373 ...options ,
382374 params : {
383375 filename : path
@@ -440,7 +432,6 @@ export const SocketActions = {
440432 printerEmergencyStop ( options ?: NotifyOptions ) {
441433 return baseEmit < Moonraker . OkResponse > (
442434 'printer.emergency_stop' , {
443- dispatch : 'void' ,
444435 ...options
445436 }
446437 )
@@ -571,7 +562,6 @@ export const SocketActions = {
571562 serverRestart ( options ?: NotifyOptions ) {
572563 return baseEmit < Moonraker . OkResponse > (
573564 'server.restart' , {
574- dispatch : 'void' ,
575565 ...options
576566 }
577567 )
@@ -766,7 +756,6 @@ export const SocketActions = {
766756 serverFilesMove ( source : string , dest : string , options ?: NotifyOptions ) {
767757 return baseEmit < Moonraker . Files . ChangeResponse > (
768758 'server.files.move' , {
769- dispatch : 'void' ,
770759 wait : `${ Waits . onFileSystem } /${ source } /` ,
771760 ...options ,
772761 params : {
@@ -780,7 +769,6 @@ export const SocketActions = {
780769 serverFilesCopy ( source : string , dest : string , options ?: NotifyOptions ) {
781770 return baseEmit < Moonraker . Files . ChangeResponse > (
782771 'server.files.copy' , {
783- dispatch : 'void' ,
784772 wait : `${ Waits . onFileSystem } /${ source } /` ,
785773 ...options ,
786774 params : {
@@ -794,7 +782,6 @@ export const SocketActions = {
794782 serverFilesZip ( dest : string , items : string [ ] , store_only ?: boolean , options ?: NotifyOptions ) {
795783 return baseEmit < Moonraker . Files . ZipResponse > (
796784 'server.files.zip' , {
797- dispatch : 'void' ,
798785 wait : `${ Waits . onFileSystem } /${ dest } /` ,
799786 ...options ,
800787 params : {
@@ -813,7 +800,6 @@ export const SocketActions = {
813800 serverFilesPostDirectory ( path : string , options ?: NotifyOptions ) {
814801 return baseEmit < Moonraker . Files . ChangeResponse > (
815802 'server.files.post_directory' , {
816- dispatch : 'void' ,
817803 wait : `${ Waits . onFileSystem } /${ path } /` ,
818804 ...options ,
819805 params : {
@@ -826,7 +812,6 @@ export const SocketActions = {
826812 serverFilesDeleteFile ( path : string , options ?: NotifyOptions ) {
827813 return baseEmit < Moonraker . Files . ChangeResponse > (
828814 'server.files.delete_file' , {
829- dispatch : 'void' ,
830815 wait : `${ Waits . onFileSystem } /${ path } ` ,
831816 ...options ,
832817 params : {
@@ -839,7 +824,6 @@ export const SocketActions = {
839824 serverFilesDeleteDirectory ( path : string , force = false , options ?: NotifyOptions ) {
840825 return baseEmit < Moonraker . Files . ChangeResponse > (
841826 'server.files.delete_directory' , {
842- dispatch : 'void' ,
843827 wait : `${ Waits . onFileSystem } /${ path } /` ,
844828 ...options ,
845829 params : {
@@ -862,7 +846,6 @@ export const SocketActions = {
862846 serverAnnouncementsDismiss ( entry_id : string , wake_time ?: number , options ?: NotifyOptions ) {
863847 return baseEmit < Moonraker . Announcements . DismissResponse > (
864848 'server.announcements.dismiss' , {
865- dispatch : 'void' ,
866849 ...options ,
867850 params : {
868851 entry_id,
@@ -938,7 +921,6 @@ export const SocketActions = {
938921 return baseEmit < Moonraker . Analysis . EstimateResponse > (
939922 'server.analysis.estimate' , {
940923 wait : `${ Waits . onFileSystem } /gcodes/${ filename } ` ,
941- dispatch : 'void' ,
942924 ...options ,
943925 params : {
944926 filename,
0 commit comments