chore: types
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
|||||||
MessageData,
|
MessageData,
|
||||||
Environment,
|
Environment,
|
||||||
Platform,
|
Platform,
|
||||||
|
OutgoingItemMessagePayload,
|
||||||
} from '@standardnotes/models'
|
} from '@standardnotes/models'
|
||||||
import find from 'lodash/find'
|
import find from 'lodash/find'
|
||||||
import uniq from 'lodash/uniq'
|
import uniq from 'lodash/uniq'
|
||||||
@@ -41,7 +42,6 @@ import remove from 'lodash/remove'
|
|||||||
import { SNSyncService } from '@Lib/Services/Sync/SyncService'
|
import { SNSyncService } from '@Lib/Services/Sync/SyncService'
|
||||||
import { environmentToString, platformToString } from '@Lib/Application/Platforms'
|
import { environmentToString, platformToString } from '@Lib/Application/Platforms'
|
||||||
import {
|
import {
|
||||||
OutgoingItemMessagePayload,
|
|
||||||
MessageReply,
|
MessageReply,
|
||||||
StreamItemsMessageData,
|
StreamItemsMessageData,
|
||||||
AllowedBatchContentTypes,
|
AllowedBatchContentTypes,
|
||||||
|
|||||||
@@ -1,25 +1,8 @@
|
|||||||
import { ComponentArea, ComponentAction, FeatureIdentifier, LegacyFileSafeIdentifier } from '@standardnotes/features'
|
import { ComponentArea, ComponentAction, FeatureIdentifier, LegacyFileSafeIdentifier } from '@standardnotes/features'
|
||||||
import { ComponentMessage, ItemContent, MessageData } from '@standardnotes/models'
|
import { ComponentMessage, MessageData, OutgoingItemMessagePayload } from '@standardnotes/models'
|
||||||
import { UuidString } from '@Lib/Types/UuidString'
|
import { UuidString } from '@Lib/Types/UuidString'
|
||||||
import { ContentType } from '@standardnotes/common'
|
import { ContentType } from '@standardnotes/common'
|
||||||
|
|
||||||
export type OutgoingItemMessagePayload = {
|
|
||||||
uuid: string
|
|
||||||
content_type: ContentType
|
|
||||||
created_at: Date
|
|
||||||
updated_at: Date
|
|
||||||
deleted?: boolean
|
|
||||||
content?: ItemContent
|
|
||||||
clientData?: Record<string, unknown>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* isMetadataUpdate implies that the extension should make reference of updated
|
|
||||||
* metadata, but not update content values as they may be stale relative to what the
|
|
||||||
* extension currently has.
|
|
||||||
*/
|
|
||||||
isMetadataUpdate: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extensions allowed to batch stream AllowedBatchContentTypes
|
* Extensions allowed to batch stream AllowedBatchContentTypes
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user