@actual-app/api 26.2.0-nightly.20260114 → 26.2.0-nightly.20260116
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.
|
@@ -7,12 +7,27 @@ import * as db from './db';
|
|
|
7
7
|
export declare let handlers: Handlers;
|
|
8
8
|
export declare function getDefaultDocumentDir(): string;
|
|
9
9
|
export declare function initApp(isDev: any, socketName: any): Promise<void>;
|
|
10
|
-
|
|
10
|
+
type BaseInitConfig = {
|
|
11
11
|
dataDir?: string;
|
|
12
|
-
serverURL?: string;
|
|
13
|
-
password?: string;
|
|
14
12
|
verbose?: boolean;
|
|
15
13
|
};
|
|
14
|
+
type ServerInitConfig = BaseInitConfig & {
|
|
15
|
+
serverURL: string;
|
|
16
|
+
};
|
|
17
|
+
type PasswordAuthConfig = ServerInitConfig & {
|
|
18
|
+
password: string;
|
|
19
|
+
sessionToken?: never;
|
|
20
|
+
};
|
|
21
|
+
type SessionTokenAuthConfig = ServerInitConfig & {
|
|
22
|
+
sessionToken: string;
|
|
23
|
+
password?: never;
|
|
24
|
+
};
|
|
25
|
+
type NoServerConfig = BaseInitConfig & {
|
|
26
|
+
serverURL?: undefined;
|
|
27
|
+
password?: never;
|
|
28
|
+
sessionToken?: never;
|
|
29
|
+
};
|
|
30
|
+
export type InitConfig = PasswordAuthConfig | SessionTokenAuthConfig | NoServerConfig;
|
|
16
31
|
export declare function init(config: InitConfig): Promise<{
|
|
17
32
|
getDataDir: typeof fs.getDataDir;
|
|
18
33
|
sendMessage: (msg: any, args: any) => void;
|
|
@@ -33,3 +48,4 @@ export declare const lib: {
|
|
|
33
48
|
amountToInteger: typeof amountToInteger;
|
|
34
49
|
integerToAmount: typeof integerToAmount;
|
|
35
50
|
};
|
|
51
|
+
export {};
|
|
@@ -45,7 +45,7 @@ type BaseConditionEntity<Field extends keyof FieldValueTypes, Op extends RuleCon
|
|
|
45
45
|
$oneof: string[];
|
|
46
46
|
}>;
|
|
47
47
|
};
|
|
48
|
-
export type RuleConditionEntity = BaseConditionEntity<'account', 'is' | 'isNot' | 'oneOf' | 'notOneOf' | 'contains' | 'doesNotContain' | 'matches' | 'onBudget' | 'offBudget'> | BaseConditionEntity<'category', 'is' | 'isNot' | 'oneOf' | 'notOneOf' | 'contains' | 'doesNotContain' | 'matches'> | BaseConditionEntity<'amount', 'is' | 'isapprox' | 'isbetween' | 'gt' | 'gte' | 'lt' | 'lte'> | BaseConditionEntity<'date', 'is' | 'isapprox' | 'isbetween' | 'gt' | 'gte' | 'lt' | 'lte'> | BaseConditionEntity<'notes', 'is' | 'isNot' | '
|
|
48
|
+
export type RuleConditionEntity = BaseConditionEntity<'account', 'is' | 'isNot' | 'oneOf' | 'notOneOf' | 'contains' | 'doesNotContain' | 'matches' | 'onBudget' | 'offBudget'> | BaseConditionEntity<'category', 'is' | 'isNot' | 'oneOf' | 'notOneOf' | 'contains' | 'doesNotContain' | 'matches'> | BaseConditionEntity<'amount', 'is' | 'isapprox' | 'isbetween' | 'gt' | 'gte' | 'lt' | 'lte'> | BaseConditionEntity<'date', 'is' | 'isapprox' | 'isbetween' | 'gt' | 'gte' | 'lt' | 'lte'> | BaseConditionEntity<'notes', 'is' | 'isNot' | 'contains' | 'doesNotContain' | 'matches' | 'hasTags'> | BaseConditionEntity<'payee', 'is' | 'isNot' | 'oneOf' | 'notOneOf' | 'contains' | 'doesNotContain' | 'matches'> | BaseConditionEntity<'imported_payee', 'is' | 'isNot' | 'oneOf' | 'notOneOf' | 'contains' | 'doesNotContain' | 'matches'> | BaseConditionEntity<'saved', 'is'> | BaseConditionEntity<'cleared', 'is'> | BaseConditionEntity<'reconciled', 'is'> | BaseConditionEntity<'transfer', 'is'>;
|
|
49
49
|
export type RuleActionEntity = SetRuleActionEntity | SetSplitAmountRuleActionEntity | LinkScheduleRuleActionEntity | PrependNoteRuleActionEntity | AppendNoteRuleActionEntity | DeleteTransactionRuleActionEntity;
|
|
50
50
|
export type SetRuleActionEntity = {
|
|
51
51
|
field: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type FeatureFlag = 'goalTemplatesEnabled' | 'goalTemplatesUIEnabled' | 'actionTemplating' | 'formulaMode' | 'currency' | 'crossoverReport';
|
|
1
|
+
export type FeatureFlag = 'goalTemplatesEnabled' | 'goalTemplatesUIEnabled' | 'actionTemplating' | 'formulaMode' | 'currency' | 'crossoverReport' | 'customThemes';
|
|
2
2
|
/**
|
|
3
3
|
* Cross-device preferences. These sync across devices when they are changed.
|
|
4
4
|
*/
|
|
@@ -55,6 +55,7 @@ export type GlobalPrefs = Partial<{
|
|
|
55
55
|
baseTheme?: 'light' | 'dark' | 'midnight';
|
|
56
56
|
colors: Record<string, string>;
|
|
57
57
|
}>;
|
|
58
|
+
installedCustomTheme?: string;
|
|
58
59
|
documentDir: string;
|
|
59
60
|
serverSelfSignedCert: string;
|
|
60
61
|
syncServerConfig?: {
|
|
@@ -80,6 +81,7 @@ export type GlobalPrefsJson = Partial<{
|
|
|
80
81
|
language?: GlobalPrefs['language'];
|
|
81
82
|
theme?: GlobalPrefs['theme'];
|
|
82
83
|
'preferred-dark-theme'?: GlobalPrefs['preferredDarkTheme'];
|
|
84
|
+
'installed-custom-theme'?: GlobalPrefs['installedCustomTheme'];
|
|
83
85
|
plugins?: string;
|
|
84
86
|
'plugin-theme'?: string;
|
|
85
87
|
'server-self-signed-cert'?: GlobalPrefs['serverSelfSignedCert'];
|