diff --git a/src/controllers/collections/create.ts b/src/controllers/collections/create.ts index e8ccaf2..b3ff2e5 100644 --- a/src/controllers/collections/create.ts +++ b/src/controllers/collections/create.ts @@ -5,7 +5,7 @@ import {makeSchemaValidator} from '../../components/validation-schema-compiler'; import {createCollection} from '../../services/new/collection'; import {formatCollectionWithOperation} from '../../services/new/collection/formatters'; -type CreateCollectionReqBody = { +export type CreateCollectionReqBody = { title: string; description?: string; parentId: Nullable; diff --git a/src/registry/common/utils/controllers-callbacks/collections.ts b/src/registry/common/utils/controllers-callbacks/collections.ts index 779c7a6..087fd55 100644 --- a/src/registry/common/utils/controllers-callbacks/collections.ts +++ b/src/registry/common/utils/controllers-callbacks/collections.ts @@ -1,6 +1,6 @@ import type {AppContext} from '@gravity-ui/nodekit'; -import type {CreateCollectionReqBody} from '../../../../controllers/collections'; +import type {CreateCollectionReqBody} from '../../../../controllers/collections/create'; import type {CollectionModel} from '../../../../db/models/new/collection'; export type OnCreateCollectionSuccess = (args: {