alamion_obsidian-jira-sync/src/settings/default.ts
Alamion ef9c7259fa
JQL update:
- JQL pull tasks (with preview)
  - Timekeep settings menu full rework
  - bunch of small fixes with data transformation and pointers
  - now caching Jira key -> file path to increase performance
  - new pointer - `jira-sync-inline-*`
  - readme slight rework
2025-09-12 01:27:42 +03:00

58 lines
1.3 KiB
TypeScript

import {FieldMapping} from "../default/obsidianJiraFieldsMapping";
export interface JiraSettings {
collapsedSections: Record<string, boolean>;
authMethod: "bearer" | "basic" | "session";
apiToken: string;
username: string;
email: string;
password: string;
jiraUrl: string;
issuesFolder: string;
sessionCookieName: string;
templatePath: string;
fieldMappings: Record<string, FieldMapping>;
fieldMappingsStrings: Record<string, { toJira: string; fromJira: string }>;
enableFieldValidation: boolean;
statisticsTimeType: string;
maxItemsToShow: number;
customDateRange: { start: string; end: string };
// Cache for issue key to file path mapping
issueKeyToFilePathCache: Record<string, string>;
}
export const DEFAULT_SETTINGS: JiraSettings = {
collapsedSections: {
connection: true,
general: true,
fieldMappings: false,
rawIssueViewer: false,
testFieldMappings: false,
statistics: false,
},
authMethod: "bearer",
apiToken: "",
username: "",
email: "",
password: "",
jiraUrl: "",
issuesFolder: "jira-issues",
sessionCookieName: "JSESSIONID",
templatePath: "",
fieldMappings: {},
fieldMappingsStrings: {},
enableFieldValidation: true,
statisticsTimeType: "weeks",
maxItemsToShow: 10,
customDateRange: { start: "", end: "" },
// Initialize empty cache
issueKeyToFilePathCache: {}
};