Dev -> Local #14
@@ -48,6 +48,10 @@ export type WikiEventIngestionSettings = {
|
|||||||
maxCharacters: number;
|
maxCharacters: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type WikiEventIngestionSettingsUpdate = Omit<Partial<WikiEventIngestionSettings>, "sources"> & {
|
||||||
|
sources?: Partial<Record<WikiEventIngestionSource, boolean>>;
|
||||||
|
};
|
||||||
|
|
||||||
export type PaperclipIngestionSourceScope =
|
export type PaperclipIngestionSourceScope =
|
||||||
| { kind: "active_projects"; limit: number; statuses?: Array<"in_progress" | "todo" | "done"> }
|
| { kind: "active_projects"; limit: number; statuses?: Array<"in_progress" | "todo" | "done"> }
|
||||||
| { kind: "selected_projects"; projectIds: string[] }
|
| { kind: "selected_projects"; projectIds: string[] }
|
||||||
@@ -1100,7 +1104,7 @@ export async function listPaperclipIngestionCandidates(ctx: PluginContext, input
|
|||||||
|
|
||||||
export async function updateEventIngestionSettings(
|
export async function updateEventIngestionSettings(
|
||||||
ctx: PluginContext,
|
ctx: PluginContext,
|
||||||
input: { companyId: string; settings: Partial<WikiEventIngestionSettings> & { sources?: Partial<Record<WikiEventIngestionSource, boolean>> } },
|
input: { companyId: string; settings: WikiEventIngestionSettingsUpdate },
|
||||||
): Promise<WikiEventIngestionSettings> {
|
): Promise<WikiEventIngestionSettings> {
|
||||||
await requirePaperclipIngestionPolicy(ctx, {
|
await requirePaperclipIngestionPolicy(ctx, {
|
||||||
companyId: input.companyId,
|
companyId: input.companyId,
|
||||||
|
|||||||
@@ -420,6 +420,12 @@ export interface ManagedRoutineMissingRef {
|
|||||||
resourceKey: string;
|
resourceKey: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ManagedRoutineDefaultDrift {
|
||||||
|
changedFields: string[];
|
||||||
|
defaultTitle?: string | null;
|
||||||
|
defaultDescription?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ManagedRoutinesListItem {
|
export interface ManagedRoutinesListItem {
|
||||||
key: string;
|
key: string;
|
||||||
title: string;
|
title: string;
|
||||||
@@ -434,6 +440,7 @@ export interface ManagedRoutinesListItem {
|
|||||||
lastRunStatus?: string | null;
|
lastRunStatus?: string | null;
|
||||||
managedByPluginDisplayName?: string | null;
|
managedByPluginDisplayName?: string | null;
|
||||||
missingRefs?: ManagedRoutineMissingRef[];
|
missingRefs?: ManagedRoutineMissingRef[];
|
||||||
|
defaultDrift?: ManagedRoutineDefaultDrift | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ManagedRoutinesListProps {
|
export interface ManagedRoutinesListProps {
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ export type ManagedRoutineMissingRef = {
|
|||||||
resourceKey: string;
|
resourceKey: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ManagedRoutineDefaultDrift = {
|
||||||
|
changedFields: string[];
|
||||||
|
defaultTitle?: string | null;
|
||||||
|
defaultDescription?: string | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type ManagedRoutinesListItem = {
|
export type ManagedRoutinesListItem = {
|
||||||
key: string;
|
key: string;
|
||||||
title: string;
|
title: string;
|
||||||
@@ -37,6 +43,7 @@ export type ManagedRoutinesListItem = {
|
|||||||
lastRunStatus?: string | null;
|
lastRunStatus?: string | null;
|
||||||
managedByPluginDisplayName?: string | null;
|
managedByPluginDisplayName?: string | null;
|
||||||
missingRefs?: ManagedRoutineMissingRef[];
|
missingRefs?: ManagedRoutineMissingRef[];
|
||||||
|
defaultDrift?: ManagedRoutineDefaultDrift | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ManagedRoutinesListProps = {
|
export type ManagedRoutinesListProps = {
|
||||||
|
|||||||
Reference in New Issue
Block a user