-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(type): add types for
UpsGlobalSubscriptionModel
- Loading branch information
1 parent
bef1153
commit 48d047d
Showing
2 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export interface UpsGlobalSubscriptionConstructor { | ||
new(): UpsGlobalSubscriptionModel; | ||
/** | ||
* | ||
* @param query | ||
* @param options | ||
* @returns Cursor | ||
*/ | ||
public static getCursor(query: any, options: any): Promise<any>; | ||
public static createGlobalSubscription( | ||
globalSubscription: UpsGlobalSubscription | ||
): Promise<UpsGlobalSubscriptionModel>; | ||
public static updateRepositoryInstance( | ||
globalSubscription: UpsGlobalSubscriptionModel | ||
): Promise<UpsGlobalSubscriptionModel>; | ||
public static findOneByAeTitle( | ||
aeTitle: string | ||
): Promise<UpsGlobalSubscriptionModel>; | ||
public static getCountByAeTitle(aeTitle: string): Promise<number>; | ||
public static deleteOneByAeTitle(aeTitle: string): Promise<void>; | ||
} | ||
|
||
export type UpsGlobalSubscription = { | ||
aeTitle: string; | ||
subscribed: number; | ||
queryKeys: any; | ||
isDeletionLock: boolean; | ||
}; | ||
|
||
export interface UpsGlobalSubscriptionModel {} |