Extend square-hole creation flow with visual asset timeout guard
This commit is contained in:
@@ -35,6 +35,21 @@ export interface ExecuteSquareHoleActionRequest {
|
||||
coverImageSrc?: string | null;
|
||||
}
|
||||
|
||||
export interface SquareHoleShapeOption {
|
||||
optionId: string;
|
||||
shapeKind: string;
|
||||
label: string;
|
||||
imagePrompt: string;
|
||||
imageSrc?: string | null;
|
||||
}
|
||||
|
||||
export interface SquareHoleHoleOption {
|
||||
holeId: string;
|
||||
holeKind: string;
|
||||
label: string;
|
||||
bonus: boolean;
|
||||
}
|
||||
|
||||
export interface SquareHoleAnchorItemResponse {
|
||||
key: string;
|
||||
label: string;
|
||||
@@ -54,6 +69,11 @@ export interface SquareHoleCreatorConfig {
|
||||
twistRule: string;
|
||||
shapeCount: number;
|
||||
difficulty: number;
|
||||
shapeOptions: SquareHoleShapeOption[];
|
||||
holeOptions: SquareHoleHoleOption[];
|
||||
backgroundPrompt: string;
|
||||
coverImageSrc?: string | null;
|
||||
backgroundImageSrc?: string | null;
|
||||
}
|
||||
|
||||
export interface SquareHoleResultDraft {
|
||||
@@ -63,6 +83,11 @@ export interface SquareHoleResultDraft {
|
||||
twistRule: string;
|
||||
summary: string;
|
||||
tags: string[];
|
||||
coverImageSrc?: string | null;
|
||||
backgroundPrompt: string;
|
||||
backgroundImageSrc?: string | null;
|
||||
shapeOptions: SquareHoleShapeOption[];
|
||||
holeOptions: SquareHoleHoleOption[];
|
||||
shapeCount: number;
|
||||
difficulty: number;
|
||||
publishReady: boolean;
|
||||
|
||||
@@ -37,6 +37,7 @@ export interface SquareHoleShapeSnapshot {
|
||||
shapeKind: SquareHoleShapeKind;
|
||||
label: string;
|
||||
color: string;
|
||||
imageSrc?: string | null;
|
||||
}
|
||||
|
||||
export interface SquareHoleHoleSnapshot {
|
||||
@@ -45,6 +46,7 @@ export interface SquareHoleHoleSnapshot {
|
||||
label: string;
|
||||
x: number;
|
||||
y: number;
|
||||
bonus: boolean;
|
||||
}
|
||||
|
||||
export interface SquareHoleRunSnapshot {
|
||||
@@ -62,6 +64,7 @@ export interface SquareHoleRunSnapshot {
|
||||
bestCombo: number;
|
||||
score: number;
|
||||
ruleLabel: string;
|
||||
backgroundImageSrc?: string | null;
|
||||
currentShape?: SquareHoleShapeSnapshot | null;
|
||||
holes: SquareHoleHoleSnapshot[];
|
||||
lastFeedback?: SquareHoleDropFeedback | null;
|
||||
|
||||
@@ -4,6 +4,21 @@
|
||||
*/
|
||||
export type SquareHoleWorkPublicationStatus = 'draft' | 'published' | string;
|
||||
|
||||
export interface SquareHoleShapeOption {
|
||||
optionId: string;
|
||||
shapeKind: string;
|
||||
label: string;
|
||||
imagePrompt: string;
|
||||
imageSrc?: string | null;
|
||||
}
|
||||
|
||||
export interface SquareHoleHoleOption {
|
||||
holeId: string;
|
||||
holeKind: string;
|
||||
label: string;
|
||||
bonus: boolean;
|
||||
}
|
||||
|
||||
export interface PutSquareHoleWorkRequest {
|
||||
gameName: string;
|
||||
themeText?: string;
|
||||
@@ -11,6 +26,10 @@ export interface PutSquareHoleWorkRequest {
|
||||
summary: string;
|
||||
tags: string[];
|
||||
coverImageSrc?: string | null;
|
||||
backgroundPrompt?: string;
|
||||
backgroundImageSrc?: string | null;
|
||||
shapeOptions?: SquareHoleShapeOption[];
|
||||
holeOptions?: SquareHoleHoleOption[];
|
||||
shapeCount: number;
|
||||
difficulty: number;
|
||||
}
|
||||
@@ -26,6 +45,10 @@ export interface SquareHoleWorkSummary {
|
||||
summary: string;
|
||||
tags: string[];
|
||||
coverImageSrc?: string | null;
|
||||
backgroundPrompt: string;
|
||||
backgroundImageSrc?: string | null;
|
||||
shapeOptions: SquareHoleShapeOption[];
|
||||
holeOptions: SquareHoleHoleOption[];
|
||||
shapeCount: number;
|
||||
difficulty: number;
|
||||
publicationStatus: SquareHoleWorkPublicationStatus;
|
||||
|
||||
Reference in New Issue
Block a user