Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade openapi-typescript to 7.0.2 + swap to openapi-fetch #18532

Merged
merged 149 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
edad54d
Upgrade openapi-typescript to 7.0.2
davelopez Jul 11, 2024
4d9f44f
Update makefile to use default openapi-typescript without transform
davelopez Jul 11, 2024
d73af22
Rebuild client API schema
davelopez Jul 11, 2024
5ff1926
Move openapi-typescript to dev dependencies
davelopez Jul 11, 2024
8867f90
Replace openapi-typescript-fetch with openapi-fetch in Toolshed
davelopez Jul 12, 2024
9aefbd1
Add middleware for error handling in Toolshed API client
davelopez Jul 12, 2024
3ac83e9
Add openapi-fetch dependency
davelopez Jul 15, 2024
f1d63d7
Refactor use openapi-fetch in some invocation related components
davelopez Jul 17, 2024
ac89413
Replace fetcher in api/datasetCollections
davelopez Jul 17, 2024
ef73d65
Replace fetcher in api/datasets.ts
davelopez Jul 17, 2024
39707df
Replace fetcher in api/datatypes.ts
davelopez Jul 17, 2024
91b7e0c
Replace fetcher in api/dbKeys.ts
davelopez Jul 17, 2024
c65cba9
Replace fetcher in api/forms.ts
davelopez Jul 17, 2024
0d7ee45
Replace fetcher in FileSources/Instances/CreateForm.vue
davelopez Jul 17, 2024
caade36
Replace fetcher in ToolHelpForum.vue
davelopez Jul 17, 2024
e3acbec
Remove remaining references to ApiResponse
davelopez Jul 17, 2024
96c1ee1
Update VariableValueType type to include undefined
davelopez Jul 17, 2024
a563024
Replace fetchJobDestinationParams
davelopez Jul 17, 2024
050acfb
Replace job lock fetchers
davelopez Jul 18, 2024
24765b1
Replace fetcher in PageEditor/ObjectPermissions.vue
davelopez Jul 18, 2024
721391f
Replace fetcher in DatasetError and DatasetDetails
davelopez Jul 19, 2024
966144a
Replace fetcher in api/groups.ts
davelopez Jul 19, 2024
197b3ea
Replace fetcher in api/histories.archived.ts
davelopez Jul 23, 2024
9957a25
Replace fetcher in api/histories.export.ts + refactor type imports
davelopez Jul 24, 2024
98da14c
Replace fetcher in api/histories.ts
davelopez Jul 24, 2024
a1bf3d5
Replace fetcher in api/invocations.ts
davelopez Jul 25, 2024
cc012ee
Replace fetcher in api/notifications.broadcast.ts
davelopez Jul 25, 2024
bf80046
Replace fetcher in api/notifications.preferences.ts
davelopez Jul 25, 2024
4eb2d8a
Replace fetcher in api/notifications.ts
davelopez Jul 25, 2024
d577417
Replace fetcher in api/objectStores.ts
davelopez Jul 26, 2024
05a219e
Replace fetcher in api/pages.ts
davelopez Jul 26, 2024
2b580f3
Replace fetcher in api/quotas.ts
davelopez Jul 26, 2024
39aeb82
Replace fetcher in api/remoteFiles.ts
davelopez Jul 26, 2024
fb72a0f
Replace fetcher in api/roles.ts
davelopez Jul 26, 2024
e8863a2
Replace fetcher in api/tags.ts
davelopez Jul 26, 2024
45348f3
Replace fetcher in api/users.ts
davelopez Jul 26, 2024
9865241
Replace fetcher in api/workflows.ts
davelopez Jul 26, 2024
1de016c
Refactor QuotaUsage
davelopez Jul 26, 2024
fd2d6a8
Replace fetcher in DiskUsage Management services
davelopez Jul 26, 2024
cf24fc1
Replace fetcher in ObjectStore Instances services
davelopez Jul 26, 2024
2287dd6
Replace fetcher in FileSources Instances services
davelopez Jul 26, 2024
e63ae3f
Replace fetcher in objectStoreTemplatesStore
davelopez Jul 26, 2024
02b7dd9
Replace fetcher in objectStoreInstancesStore
davelopez Jul 26, 2024
6a87d78
Replace fetcher in fileSourceTemplatesStore
davelopez Jul 26, 2024
80f63ac
Replace fetcher in fileSourceInstancesStore
davelopez Jul 26, 2024
05bcaab
Replace fetcher in configurationStore
davelopez Jul 26, 2024
be9c40f
Replace fetcher in taskMonitor
davelopez Jul 26, 2024
f9ac44b
Replace fetcher in shortTermStorageMonitor
davelopez Jul 26, 2024
accca70
Replace fetcher in handlesMappingJobs
davelopez Jul 26, 2024
317276a
Remove unused fetcher
davelopez Jul 26, 2024
7d06ffd
Replace fetcher in shortTermStorage composable
davelopez Jul 26, 2024
0e28b51
Replace fetcher in visualizations grid config
davelopez Jul 26, 2024
652ee6b
Replace fetcher in visualizationsPublished grid config
davelopez Jul 26, 2024
7af07c6
Replace fetcher in pagesPublished grid config
davelopez Jul 26, 2024
ea9cbdd
Refactor notifications preferences components and utils
davelopez Jul 27, 2024
6b21741
Replace fetcher in WorkflowList component
davelopez Jul 27, 2024
4f399ad
Fix some type inconsistencies
davelopez Jul 27, 2024
5d9455f
Consolidate imports
davelopez Jul 27, 2024
bdc51d3
Remove openapi-typescript-fetch dependency
davelopez Jul 29, 2024
7266a31
Replace some axios calls with openapi-fetch client
davelopez Jul 29, 2024
877f3e0
Add `Mock Service Worker` to mock client API responses
davelopez Jul 30, 2024
5df52c2
Simplify client api exports
davelopez Jul 30, 2024
5e3e4d6
Refactor client API mocks and imports
davelopez Aug 1, 2024
b35cf2e
Refactor Datatypes/index.test.js to use TypeScript + new client mock
davelopez Aug 1, 2024
0ea8512
Refactor client API and mock server usage
davelopez Aug 2, 2024
53a1891
Refactor client API calls to use GalaxyApi factory
davelopez Aug 2, 2024
38b9da4
Expose HttpResponse for mocking untyped responses in tests
davelopez Aug 2, 2024
c73c2ec
Refactor HistoryArchiveExportSelector tests
davelopez Aug 2, 2024
6bed58e
Refactor HistoryExport component tests
davelopez Aug 2, 2024
8bf929e
Improve error handling in simple-error.ts
davelopez Aug 2, 2024
0816a10
Refactor CreateForm test to use server mock
davelopez Aug 2, 2024
3967ce2
Refactor HistoryImport test to use server mock
davelopez Aug 2, 2024
418be52
Refactor BroadcastForm test to use server mock
davelopez Aug 2, 2024
bfa4030
Refactor StsDownloadButton test to use server mock
davelopez Aug 2, 2024
d89fdf3
Refactor fileSources tests to use server mock
davelopez Aug 2, 2024
a809778
Refactor BroadcastsList test to use server mock
davelopez Aug 2, 2024
f69f614
Refactor NotificationsManagement test to use server mock
davelopez Aug 2, 2024
c2b7c59
Refactor ExportRDMForm test to use server mock
davelopez Aug 2, 2024
b4b5c2a
Refactor DatasetStorage test to use TypeScript and server mock
davelopez Aug 2, 2024
86ac6db
Refactor DatasetError.test.ts to use server mock
davelopez Aug 3, 2024
648fd77
Refactor FilesDialog.test.ts to use server mock
davelopez Aug 3, 2024
d142a4f
Refactor FormDirectory.test.js to use server mock
davelopez Aug 3, 2024
fc6dcf5
Refactor HistoryArchiveWizard.test.ts to use server mock
davelopez Aug 3, 2024
c68c684
Refactor ContentItem.test.js to use server mock
davelopez Aug 3, 2024
edda373
Refactor SelectionOperations tests to use server mock
davelopez Aug 3, 2024
cd1db99
Fix HistoryExport/Index.test.js
davelopez Aug 3, 2024
11b2bca
Add jest polyfill for clearImmediate
davelopez Aug 3, 2024
e4cee28
Fix loadDbKeys function to remove unnecessary destructuring
davelopez Aug 3, 2024
869cc21
Refactor UploadModal.test.js to use server mock
davelopez Aug 3, 2024
9473f4c
Refactor JobDestinationParams.test.ts to use server mock
davelopez Aug 3, 2024
0dad124
Refactor Masthead.test.js to use server mock
davelopez Aug 4, 2024
7e0c815
Refactor ShowSelectedObjectStore.test.js to use server mock
davelopez Aug 4, 2024
15bb9ff
Refactor UpgradeForm.test.ts to use server mock
davelopez Aug 4, 2024
d101f90
Refactor ToolForm.test.js to use server mock
davelopez Aug 4, 2024
13a9fdb
Refactor RepositoryDetails/Index.test.js to use server mock
davelopez Aug 4, 2024
c71e38b
Refactor user queries to use GalaxyApi for fetching user data
davelopez Aug 6, 2024
00c4957
Refactor WorkflowList.test.ts to use server mock
davelopez Aug 6, 2024
1e4a95d
Refactor shortTermStorageMonitor.test.ts to use server mock
davelopez Aug 6, 2024
6d56391
Refactor taskMonitor.test.ts to use server mock
davelopez Aug 6, 2024
e417dfe
Refactor collectionAttributesStore.test.ts to use server mock
davelopez Aug 6, 2024
c30b851
Refactor collectionElementsStore.test.ts to use server mock
davelopez Aug 6, 2024
23819fe
Adapt adminUsers.test.js
davelopez Aug 6, 2024
2c523b0
Refactor object store templates types in the client
davelopez Aug 6, 2024
7df8ff6
Remove leftover logs in tests
davelopez Aug 6, 2024
0b3bcee
Fix type in broadcast notifications tests
davelopez Aug 6, 2024
41fdaf8
Refactor DiskUsageSummary.test.ts to use server mock
davelopez Aug 6, 2024
5619615
Use correct query parameters in api/workflows
davelopez Aug 6, 2024
b3d9fe2
Annotate globalThis in jest polyfills
dannon Aug 6, 2024
cb99eac
Add undici peer dependency
dannon Aug 7, 2024
81e5282
Add performance, readableStream to jsdom
dannon Aug 7, 2024
290bab3
Fix jest fetch polyfill by using whatwg-fetch
davelopez Aug 7, 2024
64cddf5
Use fake-indexeddb in tests
davelopez Aug 7, 2024
17d4e30
Drop undici devDependency
dannon Aug 7, 2024
a2685e1
Drop performance polyfill, no longer necessary
dannon Aug 7, 2024
92ffda2
Restore axios MockAdapter in ToolForm.test.js
davelopez Aug 7, 2024
852a416
Convert axios queries to fetcher + type fixes
davelopez Aug 7, 2024
672cabd
Update openapi-fetch and openapi-typescript dependencies
davelopez Aug 8, 2024
918b5fd
Update types and imports for templates
davelopez Aug 8, 2024
3c6778d
Add server mock to SelectPreferredStore test
davelopez Aug 8, 2024
cd33176
Refactor SwitchToHistoryLink test to use server mock
davelopez Aug 8, 2024
b94909d
Refactor RepositoryDetails tests to typescript + mock api calls
davelopez Aug 8, 2024
56fb93c
Adapt fetchItem mock response in useKeyedCache tests
davelopez Aug 8, 2024
2237070
Replace jest-environment-jsdom with jest-fixed-jsdom
davelopez Aug 8, 2024
0f5fd22
Refactor SelectorModal tests to use server mock
davelopez Aug 8, 2024
2a3547a
Adapt async usage in ObjectStore CreateForm tests
davelopez Aug 8, 2024
d44fe9e
Update disk usage summary test to handle pending state
davelopez Aug 8, 2024
022f738
Refactor UserPreferredObjectStore test to use server mock
davelopez Aug 9, 2024
d46f631
Refactor HistoryView test to use server mock and update imports
davelopez Aug 9, 2024
4700e52
Refactor JobInformation test to use server mock
davelopez Aug 9, 2024
de78a11
Fix header accept value in fetchHistoryExportRecords
davelopez Aug 9, 2024
f280804
Update querying-the-api.md to refer to GalaxyApi client
davelopez Aug 9, 2024
6c7acd2
Update writing-tests.md to include useServerMock
davelopez Aug 9, 2024
90830f6
Update querying-the-api.md to use Toast for error handling
davelopez Aug 12, 2024
eed9d04
Refactor DatasetStorage test to simplify API error simulation
davelopez Aug 12, 2024
e136926
Update WorkflowSelectPreferredObjectStore.test.js
davelopez Aug 12, 2024
cdcb5ea
Update ToolSelectPreferredObjectStore.test.js
davelopez Aug 12, 2024
14f3cd7
Refactor MultipleView.test.js to use server mock and update imports
davelopez Aug 12, 2024
dd77a47
Add more details to querying-the-api.md
davelopez Aug 12, 2024
14b793b
Add rethrowSimple error handling to fetchInvocation
davelopez Aug 12, 2024
f7ad8e4
Update error handling in CitableRepositoryPage.vue
davelopez Aug 12, 2024
00faba3
Refactor Tool Shed ManageApiKey.vue to use async/await syntax
davelopez Aug 12, 2024
e49dee7
Include specific error messages in Tool Shed ManageApiKey.vue
davelopez Aug 12, 2024
1d57754
Refactor EditInstance.vue to improve code readability
davelopez Aug 12, 2024
b8270b6
Remove unnecessary try/catch in NotificationForm.vue
davelopez Aug 12, 2024
bd53019
Refactor schema imports and API calls to use ToolShedApi
davelopez Aug 13, 2024
2505309
Refactor error handling in Tool Shed client
davelopez Aug 13, 2024
df6ced6
Refactor current user API call to use ToolShedApi
davelopez Aug 13, 2024
1e5639a
Remove unused axios dependency
davelopez Aug 13, 2024
30e39ea
Handle errors consistently in Tool Shed client
davelopez Aug 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Consolidate imports
- Make sure `client` is always imported from "@/api"
- Use inline type import
davelopez committed Aug 13, 2024

Verified

This commit was signed with the committer’s verified signature.
turkenh Hasan Turken
commit 5d9455faa7eccb22707647a923bf33a75f4f5e09
2 changes: 1 addition & 1 deletion client/src/api/configTemplates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type components } from "@/api/schema/schema";
import { type components } from "@/api/schema";

export type Instance =
| components["schemas"]["UserFileSourceModel"]
3 changes: 1 addition & 2 deletions client/src/api/datasetCollections.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type CollectionEntry, type DCESummary, type HDCADetailed, type HDCASummary, isHDCA } from "@/api";
import { client } from "@/api/schema";
import { client, type CollectionEntry, type DCESummary, type HDCADetailed, type HDCASummary, isHDCA } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";

const DEFAULT_LIMIT = 50;
3 changes: 1 addition & 2 deletions client/src/api/datasets.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import axios from "axios";

import { type HDADetailed } from "@/api";
import { client, type components, type GalaxyApiPaths } from "@/api/schema";
import { client, type components, type GalaxyApiPaths, type HDADetailed } from "@/api";
import { withPrefix } from "@/utils/redirect";
import { rethrowSimple } from "@/utils/simple-error";

2 changes: 1 addition & 1 deletion client/src/api/histories.archived.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { client, type components, type GalaxyApiPaths } from "@/api/schema";
import { client, type components, type GalaxyApiPaths } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";

export type ArchivedHistorySummary = components["schemas"]["ArchivedHistorySummary"];
4 changes: 2 additions & 2 deletions client/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** Contains type alias and definitions related to Galaxy API models. */

import { type components } from "@/api/schema";
import { client, type components, type GalaxyApiPaths } from "@/api/schema";

export { client } from "./schema";
export { client, type components, type GalaxyApiPaths };

/**
* Contains minimal information about a History.
2 changes: 1 addition & 1 deletion client/src/api/notifications.broadcast.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { client, type GalaxyApiPaths } from "@/api/schema";
import { client, type GalaxyApiPaths } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";

// TODO: Move these functions to broadcastStore and refactor other calls to go through the store
3 changes: 1 addition & 2 deletions client/src/api/objectStores.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { client } from "@/api/schema";
import { type components } from "@/api/schema/schema";
import { client, type components } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";

export type UserConcreteObjectStore = components["schemas"]["UserConcreteObjectStoreModel"];
3 changes: 1 addition & 2 deletions client/src/api/remoteFiles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { client } from "@/api";
import { type components } from "@/api/schema";
import { client, type components } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";

/** The browsing mode:
5 changes: 2 additions & 3 deletions client/src/api/schema/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { fetcher } from "./fetcher";
export { client, GalaxyApiPaths } from "./fetcher";
export type { components, operations, paths } from "./schema";
export { client, type GalaxyApiPaths } from "./fetcher";
export { type components } from "./schema";
2 changes: 1 addition & 1 deletion client/src/api/tags.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { client, type components } from "@/api/schema";
import { client, type components } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";

type TaggableItemClass = components["schemas"]["TaggableItemClass"];
2 changes: 1 addition & 1 deletion client/src/components/Grid/configs/pages.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { faEdit, faEye, faPen, faPlus, faShareAlt, faTrash, faTrashRestore } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";

import { client } from "@/api/schema";
import { client } from "@/api";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
import _l from "@/utils/localization";
import { errorMessageAsString, rethrowSimple } from "@/utils/simple-error";
7 changes: 3 additions & 4 deletions client/src/components/History/Content/GenericElement.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<script setup lang="ts">
import type { PropType } from "vue";
import Vue, { ref } from "vue";
import { type PropType, ref, set } from "vue";

import type { components } from "@/api/schema";
import { type components } from "@/api/schema";

import ContentItem from "./ContentItem.vue";

@@ -17,7 +16,7 @@ const expandCollections = ref({});
const expandDatasets = ref({});

function toggle(expansionMap: Record<string, boolean>, itemId: string) {
Vue.set(expansionMap, itemId, !expansionMap[itemId]);
set(expansionMap, itemId, !expansionMap[itemId]);
}
</script>

2 changes: 1 addition & 1 deletion client/src/components/ObjectStore/ObjectStoreBadge.vue
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import "./badgeIcons";
import { FontAwesomeIcon, FontAwesomeLayers } from "@fortawesome/vue-fontawesome";
import { computed } from "vue";

import type { components } from "@/api/schema";
import { type components } from "@/api/schema";

import ConfigurationMarkdown from "./ConfigurationMarkdown.vue";

2 changes: 1 addition & 1 deletion client/src/components/ObjectStore/ObjectStoreBadges.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { components } from "@/api/schema";
import { type components } from "@/api/schema";

import ObjectStoreBadge from "./ObjectStoreBadge.vue";

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from "vue";

import type { components } from "@/api/schema/schema";
import { type components } from "@/api/schema";

import type { ObjectStoreTemplateSummary } from "./types";
import { type ObjectStoreTemplateSummary } from "./types";

import ConfigurationMarkdown from "@/components/ObjectStore/ConfigurationMarkdown.vue";
import ObjectStoreBadges from "@/components/ObjectStore/ObjectStoreBadges.vue";
2 changes: 1 addition & 1 deletion client/src/components/ObjectStore/Templates/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type components } from "@/api/schema/schema";
import { type components } from "@/api/schema";

export type ObjectStoreTemplateSummary = components["schemas"]["ObjectStoreTemplateSummary"];
export type ObjectStoreTemplateSummaries = ObjectStoreTemplateSummary[];
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { client } from "@/api/schema";
import { client } from "@/api";
import { errorMessageAsString, rethrowSimple } from "@/utils/simple-error";

import { type CleanableItem, CleanableSummary, CleanupResult, PaginationOptions } from "./Cleanup/model";
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ import { BAlert, BButton, BCol, BFormGroup, BFormInput, BRow } from "bootstrap-v
import Vue, { computed, ref } from "vue";
import { useRouter } from "vue-router/composables";

import { client, type components } from "@/api";
import { createBroadcast, updateBroadcast } from "@/api/notifications.broadcast";
import { client, type components } from "@/api/schema";
import { Toast } from "@/composables/toast";
import { errorMessageAsString } from "@/utils/simple-error";

Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import { BAlert, BCard, BCol, BFormGroup, BRow } from "bootstrap-vue";
import { computed, type Ref, ref } from "vue";
import { useRouter } from "vue-router/composables";

import { client } from "@/api";
import { type MessageNotificationCreateRequest } from "@/api/notifications";
import { client } from "@/api/schema";
import { Toast } from "@/composables/toast";
import { errorMessageAsString } from "@/utils/simple-error";

2 changes: 1 addition & 1 deletion client/src/stores/configurationStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineStore } from "pinia";
import { computed, ref } from "vue";

import { client } from "@/api/schema";
import { client } from "@/api";

// Temporary set to any until schema model is defined
export type GalaxyConfiguration = any;
3 changes: 1 addition & 2 deletions client/src/stores/fileSourceInstancesStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineStore } from "pinia";

import { client } from "@/api";
import { type components } from "@/api/schema/schema";
import { client, type components } from "@/api";
import { errorMessageAsString } from "@/utils/simple-error";

type UserFileSourceModel = components["schemas"]["UserFileSourceModel"];
3 changes: 1 addition & 2 deletions client/src/stores/fileSourceTemplatesStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineStore } from "pinia";

import { client } from "@/api";
import { type components } from "@/api/schema/schema";
import { client, type components } from "@/api";
import { errorMessageAsString } from "@/utils/simple-error";

import { canUpgrade, findTemplate, getLatestVersion, getLatestVersionMap } from "./configTemplatesUtil";
3 changes: 1 addition & 2 deletions client/src/stores/objectStoreInstancesStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineStore } from "pinia";

import { client } from "@/api";
import { type components } from "@/api/schema/schema";
import { client, type components } from "@/api";
import { errorMessageAsString } from "@/utils/simple-error";

type UserConcreteObjectStoreModel = components["schemas"]["UserConcreteObjectStoreModel"];
3 changes: 1 addition & 2 deletions client/src/stores/objectStoreTemplatesStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineStore } from "pinia";

import { client } from "@/api";
import { type components } from "@/api/schema/schema";
import { client, type components } from "@/api";
import { errorMessageAsString } from "@/utils/simple-error";

import { canUpgrade, findTemplate, getLatestVersion, getLatestVersionMap } from "./configTemplatesUtil";