From 79937f198dc1ecb8b68b0c85b215401befbf8d1e Mon Sep 17 00:00:00 2001 From: Timur Valiev Date: Tue, 28 Apr 2020 05:57:19 -0700 Subject: [PATCH] graph api calls to sandbox Summary: We are working on integrating new NT debug api and debug metadata is stored in sandbox Reviewed By: jknoxville Differential Revision: D21155832 fbshipit-source-id: 2a7c8303e62793092f9e5b27f61d9db38eab14c5 --- desktop/app/src/fb-stubs/user.tsx | 11 +++++++++++ desktop/app/src/index.tsx | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/desktop/app/src/fb-stubs/user.tsx b/desktop/app/src/fb-stubs/user.tsx index c4eba22cb..1e4da4f3a 100644 --- a/desktop/app/src/fb-stubs/user.tsx +++ b/desktop/app/src/fb-stubs/user.tsx @@ -18,6 +18,17 @@ export async function internGraphPOSTAPIRequest( _formFields: { [key: string]: any; } = {}, + _internGraphUrl?: string, +): Promise { + throw new Error('Feature not implemented'); +} + +export async function internGraphGETAPIRequest( + _endpoint: string, + _params: { + [key: string]: any; + } = {}, + _internGraphUrl?: string, ): Promise { throw new Error('Feature not implemented'); } diff --git a/desktop/app/src/index.tsx b/desktop/app/src/index.tsx index cacf31270..f8a8f490d 100644 --- a/desktop/app/src/index.tsx +++ b/desktop/app/src/index.tsx @@ -17,7 +17,11 @@ export {serialize, deserialize} from './utils/serialization'; export * from './utils/jsonTypes'; export {default as GK} from './fb-stubs/GK'; export {default as createPaste} from './fb-stubs/createPaste'; -export {internGraphPOSTAPIRequest, graphQLQuery} from './fb-stubs/user'; +export { + internGraphGETAPIRequest, + internGraphPOSTAPIRequest, + graphQLQuery, +} from './fb-stubs/user'; export { FlipperBasePlugin, FlipperPlugin,