Skip to content

Commit 15ea4df

Browse files
committed
Uses common def for api version
1 parent 68de9e8 commit 15ea4df

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

x-pack/plugins/spaces/public/spaces_manager/spaces_manager.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ import type { SavedObjectsCollectMultiNamespaceReferencesResponse } from '@kbn/c
1313
import type { LegacyUrlAliasTarget } from '@kbn/core-saved-objects-common';
1414
import type { Role } from '@kbn/security-plugin-types-common';
1515

16-
import type { GetAllSpacesOptions, GetSpaceResult, Space } from '../../common';
16+
import {
17+
API_VERSIONS,
18+
type GetAllSpacesOptions,
19+
type GetSpaceResult,
20+
type Space,
21+
} from '../../common';
1722
import type { CopySavedObjectsToSpaceResponse } from '../copy_saved_objects_to_space/types';
1823
import type { SpaceContentTypeSummaryItem } from '../types';
1924

@@ -23,7 +28,7 @@ interface SavedObjectTarget {
2328
}
2429

2530
const TAG_TYPE = 'tag';
26-
const version = '2023-10-31';
31+
const version = API_VERSIONS.public.v1;
2732

2833
export class SpacesManager {
2934
private activeSpace$: BehaviorSubject<Space | null> = new BehaviorSubject<Space | null>(null);

0 commit comments

Comments
 (0)