import { WithId } from "../../../../../fd-toolbox-core/types/resource-with-id";
import { ResourceMeta } from "../../../core/resource-meta";
import { GenericCrudResult } from "../../../../../fd-toolbox/types/crud/crud-result";
/**
 * Configuration object for handling actions after creating a resource.
 *
 * @template T - Type of the created resource, extending {@link WithId}.
 * @property crudServiceResult {@link GenericCrudResult} - Result from the CRUD service after creation.
 * @property createdResource - The newly created resource.
 * @property  resourceMeta {@link ResourceMeta} - Metadata about the resource type.
 */
export interface AfterCreateCrudHandlerConfig<T extends WithId = WithId> {
    crudServiceResult: GenericCrudResult<WithId>;
    createdResource: T;
    resourceMeta: ResourceMeta;
}
