fix: update response types to match actual API contract
continuous-integration/drone/push Build was killed Details

Backend Brooke confirmed the actual API response structure uses "definitions"
not "created_definitions". Also added missing preset and pattern fields to
GenerateSlotDefinitionsResponse.

Changes:
- GenerateSlotDefinitionsResponse: added preset and pattern fields
- GenerateSlotDefinitionsResponse: renamed created_definitions → definitions
- CloneSlotDefinitionResponse: renamed created_definitions → definitions

This matches the confirmed API contract from BUILD 348.
master
Guillermo Pages 1 month ago
parent f450c83c4e
commit b239081211

@ -172,7 +172,9 @@ export interface GenerateSlotDefinitionsResponse {
data: {
created_count: number;
skipped_count?: number;
created_definitions: SlotDefinition[];
preset: SlotDefinitionPreset;
pattern: PresetPattern;
definitions: SlotDefinition[];
skipped?: SkippedSlot[];
};
}
@ -195,7 +197,7 @@ export interface CloneSlotDefinitionResponse {
data: {
created_count: number;
skipped_count?: number;
created_definitions: SlotDefinition[];
definitions: SlotDefinition[];
skipped?: SkippedSlot[];
};
}

Loading…
Cancel
Save