• Nick Lanam's avatar
    Initial split of TypeScript API library. · bd5e6efb
    Nick Lanam authored
    Summary:
    Separates usage of the gRPC and GraphQL APIs into a TypeScript library. This cleans up a bit, and creates a reusable option for other interfaces like extensions to Grafana or VS Code.
    This diff only moves the core API files to the new package, sets it up, and cleans up in the places affected. Future diffs will do the real work, including a proper README.md. That way there isn't a monstrous green diff burying the meaningful changes later.
    Quick notes on some of the less direct changes:
    * Deleting `local-gql.tsx`: dead code. We don't use it.
    * Extracting the `redirect` usage in CloudClient: avoids sending flags across the module boundary / avoids an import.
    * Existing support files like the arc lint config: making everything aware of the new package.
    * Cloning the Protobuf definitions rather than moving them: cleanup for this is complex enough for its own diff.
    
    Test Plan: `yarn dev` in `src/ui` and verify everything still behaves as usual.
    
    Reviewers: michelle, vihang, nserrino, philkuz, #engineering
    
    Reviewed By: michelle, vihang, #engineering
    
    Subscribers: zasgar
    
    JIRA Issues: PC-738
    
    Differential Revision: https://phab.corp.pixielabs.ai/D7209
    
    GitOrigin-RevId: d43fd634a25bbf06c4a05a009a5dee97a68aefcc
    bd5e6efb