kibana/x-pack/plugins/spaces/common/constants.ts
2024-10-15 07:18:30 -05:00

59 lines
1.7 KiB
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
export const DEFAULT_SPACE_ID = `default`;
/**
* The identifier in a saved object's `namespaces` array when it is shared globally to all spaces.
*/
export const ALL_SPACES_ID = '*';
/**
* The identifier in a saved object's `namespaces` array when it is shared to an unknown space (e.g., one that the end user is not authorized to see).
*/
export const UNKNOWN_SPACE = '?';
/**
* The minimum number of spaces required to show a search control.
*/
export const SPACE_SEARCH_COUNT_THRESHOLD = 8;
/**
* The maximum number of characters allowed in the Space Avatar's initials
*/
export const MAX_SPACE_INITIALS = 2;
/**
* The path to enter a space.
*/
export const ENTER_SPACE_PATH = '/spaces/enter';
/**
* The 'classic' solution view is the default, non-project type of solution view
*/
export const SOLUTION_VIEW_CLASSIC = 'classic' as const;
/**
* The feature privileges constants are used to identify the granularity of the configured feature visibility
*/
export const FEATURE_PRIVILEGES_ALL = 'all' as const;
export const FEATURE_PRIVILEGES_READ = 'read' as const;
export const FEATURE_PRIVILEGES_CUSTOM = 'custom' as const;
/**
* The API version numbers used with the versioned router.
*/
export const API_VERSIONS = {
public: {
v1: '2023-10-31',
},
};
/**
* The setting to control whether the Space Solution Tour is shown.
*/
export const SHOW_SPACE_SOLUTION_TOUR_SETTING = 'showSpaceSolutionTour';