reelsort 0.1.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -5,13 +5,18 @@ interface CleanOptions {
5
5
  }
6
6
  declare const clean: ({ dryRun, olderThan }: CleanOptions) => Promise<void>;
7
7
 
8
- interface ConfigAddOptions {
9
- key: string;
10
- value: string;
8
+ interface SourceAddOptions {
9
+ dir: string;
11
10
  }
12
- interface ConfigRemoveOptions {
13
- key: string;
14
- value: string;
11
+ interface SourceRemoveOptions {
12
+ dir: string;
13
+ }
14
+ interface DestAddOptions {
15
+ type: string;
16
+ dir: string;
17
+ }
18
+ interface DestRemoveOptions {
19
+ type: string;
15
20
  }
16
21
  interface ConfigSetOptions {
17
22
  key: string;
@@ -21,8 +26,10 @@ interface ConfigSetOptions {
21
26
  interface ConfigShowOptions {
22
27
  [key: string]: unknown;
23
28
  }
24
- declare const configAdd: ({ key, value }: ConfigAddOptions) => Promise<void>;
25
- declare const configRemove: ({ key, value }: ConfigRemoveOptions) => Promise<void>;
29
+ declare const sourceAdd: ({ dir }: SourceAddOptions) => Promise<void>;
30
+ declare const sourceRemove: ({ dir }: SourceRemoveOptions) => Promise<void>;
31
+ declare const destAdd: ({ type, dir }: DestAddOptions) => Promise<void>;
32
+ declare const destRemove: ({ type }: DestRemoveOptions) => Promise<void>;
26
33
  declare const configSet: ({ key, subkey, value }: ConfigSetOptions) => Promise<void>;
27
34
  declare const configShow: () => Promise<void>;
28
35
 
@@ -70,13 +77,15 @@ interface ResetOptions {
70
77
  declare const reset: ({ dir: inputDir, double }: ResetOptions) => Promise<void>;
71
78
 
72
79
  interface ScanOptions {
73
- type?: 'movie' | 'tv' | 'ps3';
80
+ type?: 'movie' | 'tv' | 'ps3' | 'book';
74
81
  hardlink?: boolean;
75
82
  dryRun?: boolean;
76
83
  verbose?: boolean;
77
84
  auto?: boolean;
85
+ force?: boolean;
86
+ interactive?: boolean;
78
87
  }
79
- declare const scan: ({ type, hardlink: useHardlink, dryRun, verbose, auto }: ScanOptions) => Promise<void>;
88
+ declare const scan: ({ type, hardlink: useHardlink, dryRun, verbose, auto, force, interactive }: ScanOptions) => Promise<void>;
80
89
 
81
90
  declare const undo: () => Promise<void>;
82
91
 
@@ -93,6 +102,7 @@ interface ReelSortConfig {
93
102
  movie?: string;
94
103
  tv?: string;
95
104
  ps3?: string;
105
+ book?: string;
96
106
  };
97
107
  language?: string;
98
108
  tmdbApiKey?: string;
@@ -212,4 +222,4 @@ var videoExtensions = [
212
222
  "yuv"
213
223
  ];
214
224
 
215
- export { type CleanOptions, type ConfigAddOptions, type ConfigRemoveOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type WatchOptions, clean, configAdd, configRemove, configSet, configShow, deleteImport, deleteSession, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };
225
+ export { type CleanOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DestAddOptions, type DestRemoveOptions, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type SourceAddOptions, type SourceRemoveOptions, type WatchOptions, clean, configSet, configShow, deleteImport, deleteSession, destAdd, destRemove, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, sourceAdd, sourceRemove, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };
package/dist/index.d.ts CHANGED
@@ -5,13 +5,18 @@ interface CleanOptions {
5
5
  }
6
6
  declare const clean: ({ dryRun, olderThan }: CleanOptions) => Promise<void>;
7
7
 
8
- interface ConfigAddOptions {
9
- key: string;
10
- value: string;
8
+ interface SourceAddOptions {
9
+ dir: string;
11
10
  }
12
- interface ConfigRemoveOptions {
13
- key: string;
14
- value: string;
11
+ interface SourceRemoveOptions {
12
+ dir: string;
13
+ }
14
+ interface DestAddOptions {
15
+ type: string;
16
+ dir: string;
17
+ }
18
+ interface DestRemoveOptions {
19
+ type: string;
15
20
  }
16
21
  interface ConfigSetOptions {
17
22
  key: string;
@@ -21,8 +26,10 @@ interface ConfigSetOptions {
21
26
  interface ConfigShowOptions {
22
27
  [key: string]: unknown;
23
28
  }
24
- declare const configAdd: ({ key, value }: ConfigAddOptions) => Promise<void>;
25
- declare const configRemove: ({ key, value }: ConfigRemoveOptions) => Promise<void>;
29
+ declare const sourceAdd: ({ dir }: SourceAddOptions) => Promise<void>;
30
+ declare const sourceRemove: ({ dir }: SourceRemoveOptions) => Promise<void>;
31
+ declare const destAdd: ({ type, dir }: DestAddOptions) => Promise<void>;
32
+ declare const destRemove: ({ type }: DestRemoveOptions) => Promise<void>;
26
33
  declare const configSet: ({ key, subkey, value }: ConfigSetOptions) => Promise<void>;
27
34
  declare const configShow: () => Promise<void>;
28
35
 
@@ -70,13 +77,15 @@ interface ResetOptions {
70
77
  declare const reset: ({ dir: inputDir, double }: ResetOptions) => Promise<void>;
71
78
 
72
79
  interface ScanOptions {
73
- type?: 'movie' | 'tv' | 'ps3';
80
+ type?: 'movie' | 'tv' | 'ps3' | 'book';
74
81
  hardlink?: boolean;
75
82
  dryRun?: boolean;
76
83
  verbose?: boolean;
77
84
  auto?: boolean;
85
+ force?: boolean;
86
+ interactive?: boolean;
78
87
  }
79
- declare const scan: ({ type, hardlink: useHardlink, dryRun, verbose, auto }: ScanOptions) => Promise<void>;
88
+ declare const scan: ({ type, hardlink: useHardlink, dryRun, verbose, auto, force, interactive }: ScanOptions) => Promise<void>;
80
89
 
81
90
  declare const undo: () => Promise<void>;
82
91
 
@@ -93,6 +102,7 @@ interface ReelSortConfig {
93
102
  movie?: string;
94
103
  tv?: string;
95
104
  ps3?: string;
105
+ book?: string;
96
106
  };
97
107
  language?: string;
98
108
  tmdbApiKey?: string;
@@ -212,4 +222,4 @@ var videoExtensions = [
212
222
  "yuv"
213
223
  ];
214
224
 
215
- export { type CleanOptions, type ConfigAddOptions, type ConfigRemoveOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type WatchOptions, clean, configAdd, configRemove, configSet, configShow, deleteImport, deleteSession, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };
225
+ export { type CleanOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DestAddOptions, type DestRemoveOptions, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type SourceAddOptions, type SourceRemoveOptions, type WatchOptions, clean, configSet, configShow, deleteImport, deleteSession, destAdd, destRemove, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, sourceAdd, sourceRemove, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };