Skip to content

Commit

Permalink
(generate) API schemas and frontend typing for RateSheet support
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Dec 18, 2023
1 parent 88bb441 commit 3554d5c
Show file tree
Hide file tree
Showing 13 changed files with 2,512 additions and 1,049 deletions.
2 changes: 1 addition & 1 deletion apps/api/karrio/server/static/karrio/js/karrio.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@sentry/nextjs": "^7.77.0",
"@tanstack/react-query": "^4.13.0",
"@uiw/react-codemirror": "^4.19.4",
"axios": "^0.25.0",
"axios": "^1.6.0",
"bulma": "^0.9.4",
"core-js": "^3.34.0",
"graphiql": "^3.0.10",
Expand Down
51 changes: 45 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions packages/hooks/karrio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useAPIMetadata } from "@karrio/hooks/api-metadata";
import { SessionType, KarrioClient } from "@karrio/types";
import { useSyncedSession } from "@karrio/hooks/session";
import { logger, url$ } from "@karrio/lib";
import { AxiosRequestConfig } from "axios";
import getConfig from 'next/config';
import React from "react";

Expand Down Expand Up @@ -38,7 +37,7 @@ export function useKarrio() {
}

function requestInterceptor(session?: SessionType) {
return (config: AxiosRequestConfig<any> = { headers: {} }) => {
return (config: any = { headers: {} }) => {
const orgHeader: any = !!session?.orgId ? { 'x-org-id': session.orgId } : {};
const testHeader: any = !!session?.testMode ? { 'x-test-mode': session.testMode } : {};
const authHeader: any = !!session?.accessToken ? { 'authorization': `Bearer ${session.accessToken}` } : {};
Expand Down
Loading

0 comments on commit 3554d5c

Please sign in to comment.