diff --git a/src/Umbraco.Web.UI.Client/src/mocks/data/utils/file-system/types.ts b/src/Umbraco.Web.UI.Client/src/mocks/data/utils/file-system/types.ts new file mode 100644 index 0000000000..d07d69f1b6 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/mocks/data/utils/file-system/types.ts @@ -0,0 +1,26 @@ +import type { FileSystemFolderModel } from '@umbraco-cms/backoffice/external/backend-api'; + +// Temp mock model until they are moved to msw +export type CreateFileRequestModel = { + name: string; + parent?: FileSystemFolderModel | null; + content: string; +}; + +export type FileResponseModel = { + path: string; + name: string; + parent?: FileSystemFolderModel | null; + content: string; +}; + +export type UpdateFileRequestModel = { + content: string; +}; + +export type FileItemResponseModel = { + path: string; + name: string; + parent?: FileSystemFolderModel | null; + isFolder: boolean; +};