mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-21 13:20:13 +00:00
fix: allow nullable name fields in user and cipher interfaces for better flexibility
This commit is contained in:
@@ -116,7 +116,7 @@ export async function handleCreateCipher(request: Request, env: Env, userId: str
|
|||||||
userId: userId,
|
userId: userId,
|
||||||
type: Number(cipherData.type) || 1,
|
type: Number(cipherData.type) || 1,
|
||||||
folderId: cipherData.folderId || null,
|
folderId: cipherData.folderId || null,
|
||||||
name: cipherData.name,
|
name: cipherData.name || null,
|
||||||
notes: cipherData.notes || null,
|
notes: cipherData.notes || null,
|
||||||
favorite: cipherData.favorite || false,
|
favorite: cipherData.favorite || false,
|
||||||
login: cipherData.login || null,
|
login: cipherData.login || null,
|
||||||
|
|||||||
+4
-4
@@ -23,7 +23,7 @@ export interface Attachment {
|
|||||||
export interface User {
|
export interface User {
|
||||||
id: string;
|
id: string;
|
||||||
email: string;
|
email: string;
|
||||||
name: string;
|
name: string | null;
|
||||||
masterPasswordHash: string;
|
masterPasswordHash: string;
|
||||||
key: string;
|
key: string;
|
||||||
privateKey: string | null;
|
privateKey: string | null;
|
||||||
@@ -119,7 +119,7 @@ export interface Cipher {
|
|||||||
userId: string;
|
userId: string;
|
||||||
type: CipherType;
|
type: CipherType;
|
||||||
folderId: string | null;
|
folderId: string | null;
|
||||||
name: string;
|
name: string | null;
|
||||||
notes: string | null;
|
notes: string | null;
|
||||||
favorite: boolean;
|
favorite: boolean;
|
||||||
login: CipherLogin | null;
|
login: CipherLogin | null;
|
||||||
@@ -200,7 +200,7 @@ export interface TokenResponse {
|
|||||||
|
|
||||||
export interface ProfileResponse {
|
export interface ProfileResponse {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string | null;
|
||||||
email: string;
|
email: string;
|
||||||
emailVerified: boolean;
|
emailVerified: boolean;
|
||||||
premium: boolean;
|
premium: boolean;
|
||||||
@@ -227,7 +227,7 @@ export interface CipherResponse {
|
|||||||
organizationId: string | null;
|
organizationId: string | null;
|
||||||
folderId: string | null;
|
folderId: string | null;
|
||||||
type: number;
|
type: number;
|
||||||
name: string;
|
name: string | null;
|
||||||
notes: string | null;
|
notes: string | null;
|
||||||
favorite: boolean;
|
favorite: boolean;
|
||||||
login: CipherLogin | null;
|
login: CipherLogin | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user