Skip to content

Commit

Permalink
Remove /view/folder and /view/folder/unique-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tomleb committed Nov 22, 2024
1 parent c13522a commit cd72853
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 170 deletions.
79 changes: 0 additions & 79 deletions open-api/immich-openapi-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -969,85 +969,6 @@
"Timeline"
]
}
},
"/view/folder": {
"get": {
"operationId": "getAssetsByOriginalPath",
"parameters": [
{
"name": "path",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"View"
]
}
},
"/view/folder/unique-paths": {
"get": {
"operationId": "getUniqueOriginalPaths",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"type": "string"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"View"
]
}
}
},
"info": {
Expand Down
20 changes: 0 additions & 20 deletions open-api/typescript-sdk/src/fetch-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,26 +456,6 @@ export function getTimeBuckets({ albumId, isArchived, isFavorite, isTrashed, key
...opts
}));
}
export function getAssetsByOriginalPath({ path }: {
path: string;
}, opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: AssetResponseDto[];
}>(`/view/folder${QS.query(QS.explode({
path
}))}`, {
...opts
}));
}
export function getUniqueOriginalPaths(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: string[];
}>("/view/folder/unique-paths", {
...opts
}));
}
export enum AlbumUserRole {
Editor = "editor",
Viewer = "viewer"
Expand Down
69 changes: 0 additions & 69 deletions web/src/lib/stores/folders.store.ts

This file was deleted.

2 changes: 0 additions & 2 deletions web/src/lib/utils/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { browser } from '$app/environment';
import { goto } from '$app/navigation';
import { foldersStore } from '$lib/stores/folders.store';
import { purchaseStore } from '$lib/stores/purchase.store';
import { serverInfo } from '$lib/stores/server-info.store';
import { preferences as preferences$, resetSavedUser, user as user$ } from '$lib/stores/user.store';
Expand Down Expand Up @@ -33,6 +32,5 @@ export const handleLogout = async (redirectUri: string) => {
}
} finally {
resetSavedUser();
foldersStore.clearCache();
}
};

0 comments on commit cd72853

Please sign in to comment.