mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
5371e9c927
Related to #7054 and #6834, this adds the UI changes necessary to support JIT provisioning: A checkbox in the settings page A new template for the activity box This also includes relevant documentation about the feature and how to configure it.
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { IPolicy } from "./policy";
|
|
import { IQuery } from "./query";
|
|
|
|
export enum ActivityType {
|
|
CreatedPack = "created_pack",
|
|
DeletedPack = "deleted_pack",
|
|
EditedPack = "edited_pack",
|
|
CreatedPolicy = "created_policy",
|
|
DeletedPolicy = "deleted_policy",
|
|
EditedPolicy = "edited_policy",
|
|
CreatedSavedQuery = "created_saved_query",
|
|
DeletedSavedQuery = "deleted_saved_query",
|
|
EditedSavedQuery = "edited_saved_query",
|
|
CreatedTeam = "created_team",
|
|
DeletedTeam = "deleted_team",
|
|
LiveQuery = "live_query",
|
|
AppliedSpecPack = "applied_spec_pack",
|
|
AppliedSpecPolicy = "applied_spec_policy",
|
|
AppliedSpecSavedQuery = "applied_spec_saved_query",
|
|
UserAddedBySSO = "user_added_by_sso",
|
|
}
|
|
export interface IActivity {
|
|
created_at: string;
|
|
id: number;
|
|
actor_full_name: string;
|
|
actor_id: number;
|
|
actor_gravatar: string;
|
|
actor_email?: string;
|
|
type: ActivityType;
|
|
details?: IActivityDetails;
|
|
}
|
|
export interface IActivityDetails {
|
|
pack_id?: number;
|
|
pack_name?: string;
|
|
policy_id?: number;
|
|
policy_name?: string;
|
|
query_id?: number;
|
|
query_name?: string;
|
|
team_id?: number;
|
|
team_name?: string;
|
|
targets_count?: number;
|
|
specs?: IQuery[] | IPolicy[];
|
|
}
|