feat: add api package
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { HttpErrorResponseBody } from '../../Http/HttpErrorResponseBody'
|
||||
import { HttpResponse } from '../../Http/HttpResponse'
|
||||
import { UserRegistrationResponseBody } from './UserRegistrationResponseBody'
|
||||
|
||||
export interface UserRegistrationResponse extends HttpResponse {
|
||||
data: UserRegistrationResponseBody | HttpErrorResponseBody
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Uuid } from '@standardnotes/common'
|
||||
import { KeyParamsData, SessionBody } from '@standardnotes/responses'
|
||||
|
||||
export type UserRegistrationResponseBody = {
|
||||
session: SessionBody
|
||||
key_params: KeyParamsData
|
||||
user: {
|
||||
uuid: Uuid
|
||||
email: string
|
||||
}
|
||||
}
|
||||
2
packages/api/src/Domain/Response/index.ts
Normal file
2
packages/api/src/Domain/Response/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './User/UserRegistrationResponse'
|
||||
export * from './User/UserRegistrationResponseBody'
|
||||
Reference in New Issue
Block a user