mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
* feat(domain-events-infra): add direct call event message handler * feat: add direct publishing of events into handlers * fix: validating sessions with direct calls
60 lines
1.6 KiB
TypeScript
60 lines
1.6 KiB
TypeScript
import { Request, Response } from 'express'
|
|
|
|
export interface ServiceProxyInterface {
|
|
callEmailServer(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
callAuthServer(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
callAuthServerWithLegacyFormat(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
callRevisionsServer(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
callSyncingServer(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
callLegacySyncingServer(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
callPaymentsServer(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
callWebSocketServer(
|
|
request: Request,
|
|
response: Response,
|
|
endpointOrMethodIdentifier: string,
|
|
payload?: Record<string, unknown> | string,
|
|
): Promise<void>
|
|
validateSession(authorizationHeaderValue: string): Promise<{
|
|
status: number
|
|
data: unknown
|
|
headers: {
|
|
contentType: string
|
|
}
|
|
}>
|
|
}
|