File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @carbonhost/typescript" ,
3- "version" : " 1.1.1 " ,
3+ "version" : " 1.1.2 " ,
44 "main" : " dist/index.js" ,
55 "module" : " dist/index.mjs" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 11import type { AxiosInstance } from "axios" ;
22import type { CarbonStar } from "../carbon-star" ;
3- import type { Port , SFTPDetails } from "./types" ;
3+ import type { Port , SFTPAccountDetails , SFTPDetails } from "./types" ;
44
55export class NetworkManager {
66 private star : CarbonStar ;
@@ -27,4 +27,8 @@ export class NetworkManager {
2727 return this . axios . get < SFTPDetails > ( "/network/sftp" ) . then ( res => res . data )
2828 }
2929
30+ async resetSFTPPassword ( ) {
31+ return this . axios . post < SFTPAccountDetails > ( "/network/sftp/reset-password" ) . then ( res => res . data )
32+ }
33+
3034}
Original file line number Diff line number Diff line change @@ -12,4 +12,9 @@ export type SFTPDetails = {
1212 port : number ;
1313 username : string ;
1414 password ?: string ;
15+ }
16+
17+ export type SFTPAccountDetails = {
18+ username : string ;
19+ password : string ;
1520}
You can’t perform that action at this time.
0 commit comments