File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ export class Events {
479
479
unbind ( eventName ?: string , callback ?: Function , context ?: any ) : Events ;
480
480
}
481
481
482
- declare type Queriable = Object | File | Status ;
482
+ declare type Queriable = Object | File ;
483
483
484
484
declare class BaseQuery < T extends Queriable > extends BaseObject {
485
485
className : string ;
@@ -1496,6 +1496,10 @@ export namespace Cloud {
1496
1496
}
1497
1497
1498
1498
export class Status {
1499
+ id ?: string ;
1500
+ createdAt ?: Date ;
1501
+ updatedAt ?: Date ;
1502
+ messageId ?: number ;
1499
1503
inboxType : string ;
1500
1504
constructor ( imageUrl ?: string | null , message ?: string | null ) ;
1501
1505
constructor ( data : Record < string , any > ) ;
@@ -1519,15 +1523,16 @@ export class Status {
1519
1523
options ?: AuthOptions
1520
1524
) : Promise < any > ;
1521
1525
static statusQuery ( source ?: User ) : Query < Object > ;
1522
- static inboxQuery ( owner ?: User , inboxType ?: string ) : InboxQuery < Status > ;
1526
+ static inboxQuery ( owner ?: User , inboxType ?: string ) : InboxQuery ;
1523
1527
get ( key : string ) : any ;
1524
1528
set ( key : string , value : any ) : this;
1525
1529
destroy ( options ?: AuthOptions ) : Promise < any > ;
1526
1530
toObject ( ) : Object ;
1527
1531
send ( options ?: AuthOptions ) : Promise < this> ;
1528
1532
}
1529
1533
1530
- export class InboxQuery < T extends Queriable > extends Query < T > {
1534
+ // @ts -ignore
1535
+ export class InboxQuery extends Query < Status > {
1531
1536
sinceId ( id : number ) : this;
1532
1537
maxId ( id : number ) : this;
1533
1538
owner ( owner : User ) : this;
You can’t perform that action at this time.
0 commit comments