diff --git a/src/entitiy/template/api/templateApiService.ts b/src/entitiy/template/api/templateApiService.ts index 6fbb555..b58e097 100644 --- a/src/entitiy/template/api/templateApiService.ts +++ b/src/entitiy/template/api/templateApiService.ts @@ -2,6 +2,10 @@ export interface CreateTemplateInput { name: string description?: string elements: Record + attributes?: Array<{ + attribute_id: string + value: string | null + }> } export interface CreateTemplateOutput { diff --git a/src/entitiy/template/model/TemplateContext.tsx b/src/entitiy/template/model/TemplateContext.tsx index f9be20a..cc4070c 100644 --- a/src/entitiy/template/model/TemplateContext.tsx +++ b/src/entitiy/template/model/TemplateContext.tsx @@ -28,7 +28,8 @@ interface TemplateContextType { error: Error | null refetchTemplates: () => void addTemplate: ( - data: Omit + data: Omit, + attributes?: Array<{ attributeId: string; value: string | null }> ) => Promise