chore: remove axios dependency from CLI (#6888)

This commit is contained in:
Ben McCann
2024-02-05 11:29:00 -08:00
committed by GitHub
parent c29976cd6f
commit 6ed33da2a4
218 changed files with 22789 additions and 237 deletions

View File

@@ -25,7 +25,7 @@ import {
base,
common,
configuration,
} from '@immich/sdk';
} from '@immich/sdk/axios';
import type { ApiParams as ApiParameters } from './types';
class ImmichApi {

View File

@@ -1,3 +1,3 @@
export * from './api';
export * from '@immich/sdk';
export * from '@immich/sdk/axios';
export * from './utils';

View File

@@ -1,4 +1,4 @@
import type { Configuration } from '@immich/sdk';
import type { Configuration } from '@immich/sdk/axios';
/* eslint-disable @typescript-eslint/no-explicit-any */
export type ApiFp = (configuration: Configuration) => Record<any, (...arguments_: any) => any>;

View File

@@ -5,7 +5,7 @@ import {
} from '../lib/components/shared-components/notification/notification';
import { handleError } from '../lib/utils/handle-error';
import { api } from './api';
import type { UserResponseDto } from '@immich/sdk';
import type { UserResponseDto } from '@immich/sdk/axios';
export type ApiError = AxiosError<{ message: string }>;