From 881fdeb2f02225abc0b06a1a7c46d7be434ba1c8 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Thu, 19 Oct 2023 16:25:30 +0900 Subject: [PATCH] fix missing api --- packages/cherrypick-js/etc/cherrypick-js.api.md | 10 +++++++++- packages/cherrypick-js/src/api.types.ts | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/cherrypick-js/etc/cherrypick-js.api.md b/packages/cherrypick-js/etc/cherrypick-js.api.md index 3ed128926c..4768f23be5 100644 --- a/packages/cherrypick-js/etc/cherrypick-js.api.md +++ b/packages/cherrypick-js/etc/cherrypick-js.api.md @@ -1787,6 +1787,14 @@ export type Endpoints = { }; res: null; }; + 'notes/update': { + req: { + noteId: Note['id']; + text?: null | string; + cw?: null | string; + }; + res: null; + }; 'notes/favorites/create': { req: { noteId: Note['id']; @@ -3052,7 +3060,7 @@ type UserSorting = '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+u // // src/api.types.ts:16:32 - (ae-forgotten-export) The symbol "TODO" needs to be exported by the entry point index.d.ts // src/api.types.ts:18:25 - (ae-forgotten-export) The symbol "NoParams" needs to be exported by the entry point index.d.ts -// src/api.types.ts:661:18 - (ae-forgotten-export) The symbol "ShowUserReq" needs to be exported by the entry point index.d.ts +// src/api.types.ts:662:18 - (ae-forgotten-export) The symbol "ShowUserReq" needs to be exported by the entry point index.d.ts // src/entities.ts:108:2 - (ae-forgotten-export) The symbol "notificationTypes_2" needs to be exported by the entry point index.d.ts // src/entities.ts:613:2 - (ae-forgotten-export) The symbol "ModerationLogPayloads" needs to be exported by the entry point index.d.ts // src/streaming.types.ts:33:4 - (ae-forgotten-export) The symbol "FIXME" needs to be exported by the entry point index.d.ts diff --git a/packages/cherrypick-js/src/api.types.ts b/packages/cherrypick-js/src/api.types.ts index aedb93d1a8..eccf72759e 100644 --- a/packages/cherrypick-js/src/api.types.ts +++ b/packages/cherrypick-js/src/api.types.ts @@ -526,6 +526,7 @@ export type Endpoints = { } }; res: { createdNote: Note }; }; 'notes/delete': { req: { noteId: Note['id']; }; res: null; }; + 'notes/update': { req: { noteId: Note['id']; text?: null | string; cw?: null | string; }; res: null; }; 'notes/favorites/create': { req: { noteId: Note['id']; }; res: null; }; 'notes/favorites/delete': { req: { noteId: Note['id']; }; res: null; }; 'notes/featured': { req: TODO; res: Note[]; };