@@ -27,12 +27,11 @@ enum RecordMode {
2727 RawData = 1 ,
2828}
2929
30- enum AllowedAddressFamily
31- {
32- System = - 1 ,
33- Any = 0 ,
34- Ipv4 = 1 ,
35- Ipv6 = 2 ,
30+ enum AllowedAddressFamily {
31+ System = - 1 ,
32+ Any = 0 ,
33+ Ipv4 = 1 ,
34+ Ipv6 = 2 ,
3635}
3736
3837enum DanmakuTransportMode {
@@ -208,7 +207,7 @@ export interface RoomDto {
208207export interface FileApiResult {
209208 exist : boolean ;
210209 path : string ;
211- files : Array < FileDto | FolderDto > ;
210+ files : Array < FileDto | FolderDto > ;
212211}
213212
214213export interface FileDto {
@@ -225,7 +224,7 @@ export interface FileLikeDto {
225224 lastModified : string ;
226225}
227226
228- export interface FileNameTemplateContextDto {
227+ export interface FileNameTemplateContextDto {
229228 roomId : number ;
230229 shortId : number ;
231230 name : string ;
@@ -237,7 +236,7 @@ export interface FileNameTemplateContextDto{
237236 json : string ;
238237}
239238
240- export interface FileNameTemplateOutput {
239+ export interface FileNameTemplateOutput {
241240 status : FileNameTemplateStatus ;
242241 errorMessage : string ;
243242 relativePath : string ;
@@ -262,7 +261,7 @@ export interface GenerateFileNameInput {
262261 context : FileNameTemplateContextDto ;
263262}
264263
265- export interface RoomIOStatsDto {
264+ export interface RoomIOStatsDto {
266265 streamHost : string ;
267266 startTime : string ;
268267 endTime : string ;
@@ -454,11 +453,11 @@ export class Recorder<T = any> {
454453 return await this . request < RoomDto > ( 'POST' , `api/room/${ objectId } /refresh` , { } ) ;
455454 }
456455
457- async fetchLog ( after :number = 0 ) :Promise < JsonLogDto > {
456+ async fetchLog ( after : number = 0 ) : Promise < JsonLogDto > {
458457 return await this . request < JsonLogDto > ( 'GET' , `api/log/fetch?${ new URLSearchParams ( { after : after . toFixed ( 0 ) } ) . toString ( ) } ` ) ;
459458 }
460459
461- async graphql < T > ( queryName : string , query : string , variables : any | null ) : Promise < T > {
460+ async graphql < T > ( queryName : string , query : string , variables : any | null ) : Promise < T > {
462461 const res = await this . request < any > ( 'POST' , `graphql` , { queryName, query, variables } ) ;
463462 if ( res . error ) {
464463 throw res . error ;
@@ -507,9 +506,9 @@ export class Recorder<T = any> {
507506 } ;
508507 }
509508 static getMockGlobalConfig ( ) : GlobalConfigDto {
510- const result :{ [ key :string ] :Optional < any > } = { } ;
509+ const result : { [ key : string ] : Optional < any > } = { } ;
511510 const defaultConfig = this . getMockDefaultConfig ( ) ;
512- Object . keys ( this . getMockDefaultConfig ( ) ) . forEach ( ( e ) => {
511+ Object . keys ( this . getMockDefaultConfig ( ) ) . forEach ( ( e ) => {
513512 const key = 'Optional' + e [ 0 ] . toUpperCase ( ) + e . slice ( 1 - e . length ) ;
514513 result [ key ] = {
515514 hasValue : false ,
0 commit comments