-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1aadc42
commit 233602f
Showing
7 changed files
with
35 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './next-queries.model'; | ||
export * from './next-query.model'; | ||
export * from './related-prompt.model'; | ||
export * from './related-tag.model'; | ||
export * from './semantic-query.model'; |
14 changes: 14 additions & 0 deletions
14
packages/x-types/src/query-signals/related-prompt.model.ts
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,14 @@ | ||
import { NamedModel } from '../named-model.model'; | ||
import { Previewable } from '../previewable.model'; | ||
|
||
/** | ||
* Represents a related prompt. | ||
*/ | ||
export interface RelatedPrompt extends NamedModel<'RelatedPrompt'>, Required<Previewable> { | ||
/** The next queries related to the prompt. */ | ||
nextQueries: Array<string>; | ||
/** The prompt. */ | ||
suggestionText: string; | ||
/** The type of the prompt. */ | ||
type: string; | ||
} |
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
6 changes: 6 additions & 0 deletions
6
packages/x-types/src/request/related-prompts-request.model.ts
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,6 @@ | ||
import { QueryableRequest } from './request.model'; | ||
|
||
/** | ||
* Request for Related Prompts endpoint. | ||
*/ | ||
export interface RelatedPromptsRequest extends QueryableRequest {} |
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
8 changes: 8 additions & 0 deletions
8
packages/x-types/src/response/related-prompts-response.model.ts
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,8 @@ | ||
import { RelatedPrompt } from '../query-signals/related-prompt.model'; | ||
|
||
/** | ||
* Response for the related prompts endpoint. | ||
*/ | ||
export interface RelatedPromptsResponse { | ||
relatedPromptsProducts: RelatedPrompt[]; | ||
} |
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