feat: add services package
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import {
|
||||
PayloadInterface,
|
||||
EncryptedPayloadInterface,
|
||||
FullyFormedPayloadInterface,
|
||||
PayloadEmitSource,
|
||||
} from '@standardnotes/models'
|
||||
import { IntegrityPayload } from '@standardnotes/responses'
|
||||
|
||||
export interface PayloadManagerInterface {
|
||||
emitPayloads(
|
||||
payloads: PayloadInterface[],
|
||||
emitSource: PayloadEmitSource,
|
||||
sourceKey?: string,
|
||||
): Promise<PayloadInterface[]>
|
||||
|
||||
integrityPayloads: IntegrityPayload[]
|
||||
|
||||
get invalidPayloads(): EncryptedPayloadInterface[]
|
||||
|
||||
/**
|
||||
* Returns a detached array of all items which are not deleted
|
||||
*/
|
||||
get nonDeletedItems(): FullyFormedPayloadInterface[]
|
||||
}
|
||||
Reference in New Issue
Block a user