Skip to content

Commit

Permalink
Some fixes for note typings (#32)
Browse files Browse the repository at this point in the history
* fix: typos

* fix: params for requestUpdateNoteById

* fix: responseUpdateNotes type

* rm: links for requestUpdateNoteById
  • Loading branch information
yatolstoy authored Oct 24, 2024
1 parent d757f6e commit acd4763
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/note/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ export type RequestAddNote =
};

export type ResponseAddNotes = Links & {
_ebmedded: {
_embedded: {
notes: (Links & Pick<Note, "id" | "entity_id"> & RequestId)[];
};
};

export type RequestUpdateNote = Pick<Note, "id" | "entity_id" | "note_type" | "params">;
export type ResponseUpdateNotes = Links & {
_ebmedded: {
notes: RequestUpdateNoteById[];
_embedded: {
notes: (Links & Pick<Note, "id" | "entity_id" | "updated_at">)[];
};
};

export type RequestUpdateNoteById = Links & Pick<Note, "id" | "entity_id" | "updated_at">;
export type RequestUpdateNoteById = Pick<Note, "entity_id" | "note_type" | "params">;
export type ResponseUpdateNoteById = ResponseUpdateNotes;

0 comments on commit acd4763

Please sign in to comment.