chore: enum support for new API (#7110)

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
Ben McCann 2024-02-14 06:38:57 -08:00 committed by GitHub
parent 6f5648569a
commit 87ae0be081
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
108 changed files with 545 additions and 379 deletions

View file

@ -1,4 +1,4 @@
import type { AssetResponseDto } from '@api';
import type { AssetResponseDto } from '@immich/sdk';
import { getAssetFilename, getFilenameExtension } from './asset-utils';
describe('get file extension from filename', () => {

View file

@ -1,6 +1,6 @@
import { api } from '$lib/api';
import { notificationController, NotificationType } from '$lib/components/shared-components/notification/notification';
import { downloadManager } from '$lib/stores/download';
import { api } from '@api';
import {
addAssetsToAlbum as addAssets,
getDownloadInfo,

View file

@ -1,10 +1,10 @@
import { api } from '$lib/api';
import { UploadState } from '$lib/models/upload-asset';
import { uploadAssetsStore } from '$lib/stores/upload';
import { getKey } from '$lib/utils';
import { addAssetsToAlbum } from '$lib/utils/asset-utils';
import { ExecutorQueue } from '$lib/utils/executor-queue';
import { api, type AssetFileUploadResponseDto } from '@api';
import { getSupportedMediaTypes } from '@immich/sdk';
import { getSupportedMediaTypes, type AssetFileUploadResponseDto } from '@immich/sdk';
import { getServerErrorMessage, handleError } from './handle-error';
let _extensions: string[];

View file

@ -1,4 +1,4 @@
import type { ApiError } from '@api';
import type { ApiError } from '$lib/utils';
import axios from 'axios';
import { notificationController, NotificationType } from '../components/shared-components/notification/notification';

View file

@ -1,4 +1,4 @@
import type { PersonResponseDto } from '@api';
import type { PersonResponseDto } from '@immich/sdk';
export const searchNameLocal = (
name: string,

View file

@ -1,4 +1,4 @@
import type { AssetResponseDto } from '@api';
import type { AssetResponseDto } from '@immich/sdk';
import { groupBy, sortBy } from 'lodash-es';
import { DateTime, Interval } from 'luxon';