feat(snjs): add revisions api v2 (#2154)
* feat(snjs): add revisions api v2 * fix(snjs): reference listing and getting revisions in specs * fix(snjs): revisions specs * fix(web): usage of revision metadata * fix(snjs): add specs for decryption revision * fix(snjs): issue with building mocked specs * fix(snjs): adjust revision creation delay
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { RoleName } from '@standardnotes/common'
|
||||
|
||||
export type RevisionListEntry = {
|
||||
content_type: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
/** The uuid of the revision */
|
||||
uuid: string
|
||||
required_role: RoleName
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
import { HttpResponse } from '../Http/HttpResponse'
|
||||
import { RevisionListEntry } from './RevisionListEntry'
|
||||
|
||||
export type RevisionListResponse = HttpResponse & { data: RevisionListEntry[] }
|
||||
@@ -1,15 +0,0 @@
|
||||
import { ContentType, Uuid } from '@standardnotes/common'
|
||||
|
||||
export type SingleRevision = {
|
||||
auth_hash?: string
|
||||
content_type: ContentType
|
||||
content: string
|
||||
created_at: string
|
||||
enc_item_key: string
|
||||
/** The uuid of the item this revision was created with */
|
||||
item_uuid: string
|
||||
items_key_id: string
|
||||
updated_at: string
|
||||
/** The uuid of the revision */
|
||||
uuid: Uuid
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import { HttpResponse } from '../Http/HttpResponse'
|
||||
import { SingleRevision } from './SingleRevision'
|
||||
|
||||
export type SingleRevisionResponse = HttpResponse & {
|
||||
data: SingleRevision
|
||||
}
|
||||
@@ -34,11 +34,7 @@ export * from './Item/ConflictType'
|
||||
export * from './Item/GetSingleItemResponse'
|
||||
export * from './Item/RawSyncData'
|
||||
export * from './Item/RawSyncResponse'
|
||||
export * from './Item/RevisionListEntry'
|
||||
export * from './Item/RevisionListResponse'
|
||||
export * from './Item/ServerItemResponse'
|
||||
export * from './Item/SingleRevision'
|
||||
export * from './Item/SingleRevisionResponse'
|
||||
export * from './Item/IntegrityPayload'
|
||||
export * from './Listed/ActionResponse'
|
||||
export * from './Listed/ListedAccount'
|
||||
|
||||
Reference in New Issue
Block a user