@@ -22,7 +22,7 @@ const requestCommands = async (params: any) => {
2222 return commands ;
2323} ;
2424
25- export const requestCommandUsagePost = ( commandId : number , usage : object ) =>
25+ export const requestCommandUsagePost = ( commandId : number , usage : Record < string , string > ) =>
2626 requestEntityPost ( `${ API_BASE_URL } /${ commandId } /usages` , usage ) ;
2727
2828const requestCommandUsages = ( commandId : number ) => {
@@ -33,7 +33,7 @@ const requestCommandSchedules = (commandId: number) => {
3333 return secureApiFetch ( `${ API_BASE_URL } /${ commandId } /schedules` , { method : "GET" } ) ;
3434} ;
3535
36- export const requestCommandSchedulePost = ( commandId : number , schedule : object ) =>
36+ export const requestCommandSchedulePost = ( commandId : number , schedule : Record < string , string > ) =>
3737 requestEntityPost ( `${ API_BASE_URL } /${ commandId } /schedules` , schedule ) ;
3838
3939const requestCommandsOutputParsers = ( ) => {
@@ -45,7 +45,7 @@ const requestCommandDelete = (commandId: number) => requestEntityDelete(`${API_B
4545export const requestCommandPut = ( commandId : number , data : any ) =>
4646 requestEntityPut ( `${ API_BASE_URL } /${ commandId } ` , data ) ;
4747
48- const requestCommandPost = ( command : object ) => requestEntityPost ( API_BASE_URL , command ) ;
48+ const requestCommandPost = ( command : Record < string , string > ) => requestEntityPost ( API_BASE_URL , command ) ;
4949
5050const requestCommandScheduleDelete = ( commandId : number , scheduleId : number ) => {
5151 return secureApiFetch ( `${ API_BASE_URL } /${ commandId } /schedules/${ scheduleId } ` , { method : "DELETE" } ) ;
0 commit comments