-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support needed for elem. in databox
- Loading branch information
1 parent
494b297
commit a44c0db
Showing
10 changed files
with
78 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import ICollectedSnippet from '@ulixee/hero-interfaces/ICollectedSnippet'; | ||
import ICollectedElement from '@ulixee/hero-interfaces/ICollectedElement'; | ||
import ICollectedResource from '@ulixee/hero-interfaces/ICollectedResource'; | ||
|
||
// This interface exists for DataboxInternal to import | ||
|
||
export default interface ICoreSession { | ||
sessionId: string; | ||
collectSnippet(name: string, value: any): Promise<void>; | ||
getCollectedSnippets(sessionId: string, name: string): Promise<ICollectedSnippet[]>; | ||
getCollectedElements(sessionId: string, name: string): Promise<ICollectedElement[]>; | ||
getCollectedResources(sessionId: string, name: string): Promise<ICollectedResource[]>; | ||
recordOutput(changes: IOutputChangeToRecord[]): void | ||
} | ||
|
||
export interface IOutputChangeToRecord { | ||
type: string; | ||
value: any; | ||
path: string; | ||
timestamp: number; | ||
} |
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
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
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
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
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