chore: fix ContentType usage (#2353)

* chore: fix ContentType usage

* chore: fix specs
This commit is contained in:
Karol Sójko
2023-07-12 13:53:29 +02:00
committed by GitHub
parent d057cdff84
commit 325737bfbd
247 changed files with 1092 additions and 1060 deletions

View File

@@ -33,7 +33,7 @@
"typescript": "*"
},
"dependencies": {
"@standardnotes/common": "^1.48.3",
"@standardnotes/common": "^1.50.0",
"@standardnotes/features": "workspace:*",
"@standardnotes/security": "^1.7.6",
"reflect-metadata": "^0.1.13"

View File

@@ -1,7 +1,5 @@
import { ContentType } from '@standardnotes/common'
export interface ServerItemResponse {
content_type: ContentType
content_type: string
content: string | undefined
created_at_timestamp: number
created_at: Date

View File

@@ -1,10 +1,10 @@
import { AnyKeyParamsContent, ContentType } from '@standardnotes/common'
import { AnyKeyParamsContent } from '@standardnotes/common'
import { DeprecatedHttpResponse } from '../Http/DeprecatedHttpResponse'
import { ServerItemResponse } from '../Item/ServerItemResponse'
export type ActionResponse = DeprecatedHttpResponse & {
description: string
supported_types: ContentType[]
supported_types: string[]
deprecation?: string
actions: unknown[]
item?: ServerItemResponse