@actual-app/api 25.4.0 → 25.5.0
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/@types/app/bundle.api.d.ts +1 -5
- package/@types/loot-core/client/budgets/budgetsSlice.d.ts +6 -2
- package/@types/loot-core/client/modals/modalsSlice.d.ts +5 -1
- package/@types/loot-core/client/prefs/prefsSlice.d.ts +2 -8
- package/@types/loot-core/client/queries/queriesSlice.d.ts +1 -1
- package/@types/loot-core/client/users/usersSlice.d.ts +28 -12
- package/@types/loot-core/mocks/index.d.ts +5 -2
- package/@types/loot-core/mocks/util.d.ts +1 -0
- package/@types/loot-core/platform/server/asyncStorage/index.d.ts +7 -6
- package/@types/loot-core/platform/server/indexeddb/index.d.ts +15 -24
- package/@types/loot-core/server/accounts/sync.d.ts +1 -9
- package/@types/loot-core/server/api-models.d.ts +2 -10
- package/@types/loot-core/server/aql/schema/executors.d.ts +2 -0
- package/@types/loot-core/server/auth/app.d.ts +142 -0
- package/@types/loot-core/server/budget/base.d.ts +2 -1
- package/@types/loot-core/server/budget/envelope.d.ts +3 -0
- package/@types/loot-core/server/budget/report.d.ts +4 -1
- package/@types/loot-core/server/budgetfiles/app.d.ts +139 -0
- package/@types/loot-core/server/cloud-storage.d.ts +2 -2
- package/@types/loot-core/server/db/index.d.ts +3 -2
- package/@types/loot-core/server/encryption/app.d.ts +40 -0
- package/@types/loot-core/server/{encryption-internals.d.ts → encryption/encryption-internals.d.ts} +0 -1
- package/@types/loot-core/server/errors.d.ts +4 -0
- package/@types/loot-core/server/importers/index.d.ts +1 -2
- package/@types/loot-core/server/main-app.d.ts +1 -1
- package/@types/loot-core/server/reports/app.d.ts +2 -2
- package/@types/loot-core/server/spreadsheet/spreadsheet.d.ts +9 -2
- package/@types/loot-core/server/transactions/app.d.ts +4 -1
- package/@types/loot-core/server/transactions/import/ofx2json.d.ts +1 -0
- package/@types/loot-core/server/transactions/import/parse-file.d.ts +1 -0
- package/@types/loot-core/server/transactions/index.d.ts +1 -0
- package/@types/loot-core/server/transactions/merge.d.ts +2 -0
- package/@types/loot-core/server/transactions/transaction-rules.d.ts +1 -0
- package/@types/loot-core/server/transactions/transfer.d.ts +2 -2
- package/@types/loot-core/shared/errors.d.ts +4 -4
- package/@types/loot-core/types/api-handlers.d.ts +170 -183
- package/@types/loot-core/types/budget.d.ts +6 -6
- package/@types/loot-core/types/file.d.ts +23 -36
- package/@types/loot-core/types/handlers.d.ts +5 -21
- package/@types/loot-core/types/models/bank-sync.d.ts +10 -17
- package/@types/loot-core/types/models/category-group.d.ts +8 -13
- package/@types/loot-core/types/models/category.d.ts +7 -8
- package/@types/loot-core/types/models/dashboard.d.ts +43 -88
- package/@types/loot-core/types/models/gocardless.d.ts +56 -71
- package/@types/loot-core/types/models/note.d.ts +2 -2
- package/@types/loot-core/types/models/openid.d.ts +6 -6
- package/@types/loot-core/types/models/payee.d.ts +6 -7
- package/@types/loot-core/types/models/reports.d.ts +98 -118
- package/@types/loot-core/types/models/rule.d.ts +62 -161
- package/@types/loot-core/types/models/schedule.d.ts +36 -38
- package/@types/loot-core/types/models/simplefin.d.ts +13 -17
- package/@types/loot-core/types/models/transaction-filter.d.ts +5 -6
- package/@types/loot-core/types/models/transaction.d.ts +29 -30
- package/@types/loot-core/types/prefs.d.ts +2 -4
- package/@types/loot-core/types/server-events.d.ts +43 -68
- package/@types/loot-core/types/server-handlers.d.ts +26 -198
- package/@types/loot-core/types/util.d.ts +7 -18
- package/@types/methods.d.ts +1 -1
- package/@types/vitest.config.d.ts +7 -0
- package/dist/app/bundle.api.js +17541 -110891
- package/dist/package.json +5 -7
- package/dist/vitest.config.js +11 -0
- package/package.json +5 -7
- package/@types/jest.config.d.ts +0 -9
- package/@types/loot-core/client/accounts/accountsSlice.d.ts +0 -175
- package/@types/loot-core/server/backups.test.d.ts +0 -1
- package/@types/loot-core/server/encryption-internals.web.d.ts +0 -23
- package/@types/loot-core/server/encryption.test.d.ts +0 -1
- package/dist/jest.config.js +0 -22
- /package/@types/loot-core/server/{backups.d.ts → budgetfiles/backups.d.ts} +0 -0
- /package/@types/loot-core/server/{encryption.d.ts → encryption/index.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type Budget = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
id: string;
|
|
3
|
+
cloudFileId?: string;
|
|
4
|
+
encryptKeyId?: string;
|
|
5
|
+
groupId?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
owner?: string;
|
|
8
8
|
};
|
|
@@ -1,47 +1,34 @@
|
|
|
1
1
|
import { UsersWithAccess } from '../server/cloud-storage';
|
|
2
|
-
|
|
3
2
|
import { Budget } from './budget';
|
|
4
|
-
|
|
5
|
-
export type FileState =
|
|
6
|
-
| 'local'
|
|
7
|
-
| 'remote'
|
|
8
|
-
| 'synced'
|
|
9
|
-
| 'detached'
|
|
10
|
-
| 'broken'
|
|
11
|
-
| 'unknown';
|
|
12
|
-
|
|
3
|
+
export type FileState = 'local' | 'remote' | 'synced' | 'detached' | 'broken' | 'unknown';
|
|
13
4
|
export type LocalFile = Omit<Budget, 'cloudFileId' | 'groupId'> & {
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
state: 'local';
|
|
6
|
+
hasKey: boolean;
|
|
16
7
|
};
|
|
17
|
-
|
|
18
8
|
export type SyncableLocalFile = Budget & {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
cloudFileId: string;
|
|
10
|
+
groupId: string;
|
|
11
|
+
state: 'broken' | 'unknown';
|
|
12
|
+
hasKey: boolean;
|
|
13
|
+
owner: string;
|
|
24
14
|
};
|
|
25
|
-
|
|
26
15
|
export type SyncedLocalFile = Budget & {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
cloudFileId: string;
|
|
17
|
+
groupId: string;
|
|
18
|
+
encryptKeyId?: string;
|
|
19
|
+
hasKey: boolean;
|
|
20
|
+
state: 'synced' | 'detached';
|
|
21
|
+
owner: string;
|
|
22
|
+
usersWithAccess: UsersWithAccess[];
|
|
34
23
|
};
|
|
35
|
-
|
|
36
24
|
export type RemoteFile = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
25
|
+
cloudFileId: string;
|
|
26
|
+
groupId: string;
|
|
27
|
+
name: string;
|
|
28
|
+
encryptKeyId?: string;
|
|
29
|
+
hasKey: boolean;
|
|
30
|
+
state: 'remote';
|
|
31
|
+
owner: string;
|
|
32
|
+
usersWithAccess: UsersWithAccess[];
|
|
45
33
|
};
|
|
46
|
-
|
|
47
34
|
export type File = LocalFile | SyncableLocalFile | SyncedLocalFile | RemoteFile;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { AccountHandlers } from '../server/accounts/app';
|
|
2
2
|
import type { AdminHandlers } from '../server/admin/app';
|
|
3
|
+
import type { AuthHandlers } from '../server/auth/app';
|
|
3
4
|
import type { BudgetHandlers } from '../server/budget/app';
|
|
5
|
+
import type { BudgetFileHandlers } from '../server/budgetfiles/app';
|
|
4
6
|
import type { DashboardHandlers } from '../server/dashboard/app';
|
|
7
|
+
import type { EncryptionHandlers } from '../server/encryption/app';
|
|
5
8
|
import type { FiltersHandlers } from '../server/filters/app';
|
|
6
9
|
import type { NotesHandlers } from '../server/notes/app';
|
|
7
10
|
import type { PayeesHandlers } from '../server/payees/app';
|
|
@@ -13,27 +16,8 @@ import type { SpreadsheetHandlers } from '../server/spreadsheet/app';
|
|
|
13
16
|
import type { SyncHandlers } from '../server/sync/app';
|
|
14
17
|
import type { ToolsHandlers } from '../server/tools/app';
|
|
15
18
|
import type { TransactionHandlers } from '../server/transactions/app';
|
|
16
|
-
|
|
17
19
|
import type { ApiHandlers } from './api-handlers';
|
|
18
20
|
import type { ServerHandlers } from './server-handlers';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
extends ServerHandlers,
|
|
22
|
-
ApiHandlers,
|
|
23
|
-
BudgetHandlers,
|
|
24
|
-
DashboardHandlers,
|
|
25
|
-
FiltersHandlers,
|
|
26
|
-
NotesHandlers,
|
|
27
|
-
PreferencesHandlers,
|
|
28
|
-
ReportsHandlers,
|
|
29
|
-
RulesHandlers,
|
|
30
|
-
SchedulesHandlers,
|
|
31
|
-
TransactionHandlers,
|
|
32
|
-
AdminHandlers,
|
|
33
|
-
ToolsHandlers,
|
|
34
|
-
AccountHandlers,
|
|
35
|
-
PayeesHandlers,
|
|
36
|
-
SpreadsheetHandlers,
|
|
37
|
-
SyncHandlers {}
|
|
38
|
-
|
|
21
|
+
export interface Handlers extends ServerHandlers, ApiHandlers, BudgetHandlers, DashboardHandlers, FiltersHandlers, NotesHandlers, PreferencesHandlers, ReportsHandlers, RulesHandlers, SchedulesHandlers, TransactionHandlers, AdminHandlers, ToolsHandlers, AccountHandlers, PayeesHandlers, SpreadsheetHandlers, SyncHandlers, BudgetFileHandlers, EncryptionHandlers, AuthHandlers {
|
|
22
|
+
}
|
|
39
23
|
export type HandlerFunctions = Handlers[keyof Handlers];
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GoCardlessAmount,
|
|
3
|
-
GoCardlessBalance,
|
|
4
|
-
GoCardlessTransaction,
|
|
5
|
-
} from './gocardless';
|
|
6
|
-
|
|
1
|
+
import { GoCardlessAmount, GoCardlessBalance, GoCardlessTransaction } from './gocardless';
|
|
7
2
|
export type BankSyncBalance = GoCardlessBalance;
|
|
8
3
|
export type BankSyncAmount = GoCardlessAmount;
|
|
9
4
|
export type BankSyncTransaction = GoCardlessTransaction;
|
|
10
|
-
|
|
11
5
|
export type BankSyncResponse = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
transactions: {
|
|
7
|
+
all: BankSyncTransaction[];
|
|
8
|
+
booked: BankSyncTransaction[];
|
|
9
|
+
pending: BankSyncTransaction[];
|
|
10
|
+
};
|
|
11
|
+
balances: BankSyncBalance[];
|
|
12
|
+
startingBalance: number;
|
|
13
|
+
error_type: string;
|
|
14
|
+
error_code: string;
|
|
21
15
|
};
|
|
22
|
-
|
|
23
16
|
export type BankSyncProviders = 'goCardless' | 'simpleFin' | 'pluggyai';
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { CategoryEntity } from './category';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface CategoryGroupEntity extends NewCategoryGroupEntity {
|
|
13
|
-
id: string;
|
|
14
|
-
categories?: CategoryEntity[];
|
|
2
|
+
export interface CategoryGroupEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
is_income?: boolean;
|
|
6
|
+
sort_order?: number;
|
|
7
|
+
tombstone?: boolean;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
categories?: CategoryEntity[];
|
|
15
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { CategoryGroupEntity } from './category-group';
|
|
2
|
-
|
|
3
2
|
export interface CategoryEntity {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
is_income?: boolean;
|
|
6
|
+
group: CategoryGroupEntity['id'];
|
|
7
|
+
sort_order?: number;
|
|
8
|
+
tombstone?: boolean;
|
|
9
|
+
hidden?: boolean;
|
|
11
10
|
}
|
|
@@ -1,48 +1,34 @@
|
|
|
1
1
|
import { type CustomReportEntity } from './reports';
|
|
2
2
|
import { type RuleConditionEntity } from './rule';
|
|
3
|
-
|
|
4
3
|
export type TimeFrame = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
|
+
mode: 'sliding-window' | 'static' | 'full' | 'lastYear' | 'yearToDate';
|
|
8
7
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
meta: Meta;
|
|
21
|
-
tombstone: boolean;
|
|
8
|
+
type AbstractWidget<T extends string, Meta extends Record<string, unknown> | null = null> = {
|
|
9
|
+
id: string;
|
|
10
|
+
type: T;
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
meta: Meta;
|
|
16
|
+
tombstone: boolean;
|
|
22
17
|
};
|
|
23
|
-
|
|
24
|
-
export type NetWorthWidget = AbstractWidget<
|
|
25
|
-
'net-worth-card',
|
|
26
|
-
{
|
|
18
|
+
export type NetWorthWidget = AbstractWidget<'net-worth-card', {
|
|
27
19
|
name?: string;
|
|
28
20
|
conditions?: RuleConditionEntity[];
|
|
29
21
|
conditionsOp?: 'and' | 'or';
|
|
30
22
|
timeFrame?: TimeFrame;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export type CashFlowWidget = AbstractWidget<
|
|
34
|
-
'cash-flow-card',
|
|
35
|
-
{
|
|
23
|
+
} | null>;
|
|
24
|
+
export type CashFlowWidget = AbstractWidget<'cash-flow-card', {
|
|
36
25
|
name?: string;
|
|
37
26
|
conditions?: RuleConditionEntity[];
|
|
38
27
|
conditionsOp?: 'and' | 'or';
|
|
39
28
|
timeFrame?: TimeFrame;
|
|
40
29
|
showBalance?: boolean;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export type SpendingWidget = AbstractWidget<
|
|
44
|
-
'spending-card',
|
|
45
|
-
{
|
|
30
|
+
} | null>;
|
|
31
|
+
export type SpendingWidget = AbstractWidget<'spending-card', {
|
|
46
32
|
name?: string;
|
|
47
33
|
conditions?: RuleConditionEntity[];
|
|
48
34
|
conditionsOp?: 'and' | 'or';
|
|
@@ -50,79 +36,48 @@ export type SpendingWidget = AbstractWidget<
|
|
|
50
36
|
compareTo?: string;
|
|
51
37
|
isLive?: boolean;
|
|
52
38
|
mode?: 'single-month' | 'budget' | 'average';
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
>;
|
|
63
|
-
|
|
64
|
-
type SpecializedWidget =
|
|
65
|
-
| NetWorthWidget
|
|
66
|
-
| CashFlowWidget
|
|
67
|
-
| SpendingWidget
|
|
68
|
-
| MarkdownWidget
|
|
69
|
-
| SummaryWidget
|
|
70
|
-
| CalendarWidget;
|
|
39
|
+
} | null>;
|
|
40
|
+
export type CustomReportWidget = AbstractWidget<'custom-report', {
|
|
41
|
+
id: string;
|
|
42
|
+
}>;
|
|
43
|
+
export type MarkdownWidget = AbstractWidget<'markdown-card', {
|
|
44
|
+
content: string;
|
|
45
|
+
text_align?: 'left' | 'right' | 'center';
|
|
46
|
+
}>;
|
|
47
|
+
type SpecializedWidget = NetWorthWidget | CashFlowWidget | SpendingWidget | MarkdownWidget | SummaryWidget | CalendarWidget;
|
|
71
48
|
export type Widget = SpecializedWidget | CustomReportWidget;
|
|
72
49
|
export type NewWidget = Omit<Widget, 'id' | 'tombstone'>;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export type ExportImportCustomReportWidget = Omit<
|
|
76
|
-
CustomReportWidget,
|
|
77
|
-
'id' | 'meta' | 'tombstone'
|
|
78
|
-
> & {
|
|
79
|
-
meta: Omit<CustomReportEntity, 'tombstone'>;
|
|
50
|
+
export type ExportImportCustomReportWidget = Omit<CustomReportWidget, 'id' | 'meta' | 'tombstone'> & {
|
|
51
|
+
meta: Omit<CustomReportEntity, 'tombstone'>;
|
|
80
52
|
};
|
|
81
|
-
export type ExportImportDashboardWidget = Omit<
|
|
82
|
-
ExportImportCustomReportWidget | SpecializedWidget,
|
|
83
|
-
'tombstone'
|
|
84
|
-
>;
|
|
85
|
-
|
|
53
|
+
export type ExportImportDashboardWidget = Omit<ExportImportCustomReportWidget | SpecializedWidget, 'tombstone'>;
|
|
86
54
|
export type ExportImportDashboard = {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// future versions
|
|
90
|
-
version: 1;
|
|
91
|
-
widgets: ExportImportDashboardWidget[];
|
|
55
|
+
version: 1;
|
|
56
|
+
widgets: ExportImportDashboardWidget[];
|
|
92
57
|
};
|
|
93
|
-
|
|
94
|
-
export type SummaryWidget = AbstractWidget<
|
|
95
|
-
'summary-card',
|
|
96
|
-
{
|
|
58
|
+
export type SummaryWidget = AbstractWidget<'summary-card', {
|
|
97
59
|
name?: string;
|
|
98
60
|
conditions?: RuleConditionEntity[];
|
|
99
61
|
conditionsOp?: 'and' | 'or';
|
|
100
62
|
timeFrame?: TimeFrame;
|
|
101
63
|
content?: string;
|
|
102
|
-
|
|
103
|
-
>;
|
|
104
|
-
|
|
64
|
+
} | null>;
|
|
105
65
|
export type BaseSummaryContent = {
|
|
106
|
-
|
|
107
|
-
|
|
66
|
+
type: 'sum' | 'avgPerMonth' | 'avgPerTransact';
|
|
67
|
+
fontSize?: number;
|
|
108
68
|
};
|
|
109
|
-
|
|
110
69
|
export type PercentageSummaryContent = {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
70
|
+
type: 'percentage';
|
|
71
|
+
divisorConditions: RuleConditionEntity[];
|
|
72
|
+
divisorConditionsOp: 'and' | 'or';
|
|
73
|
+
divisorAllTimeDateRange?: boolean;
|
|
74
|
+
fontSize?: number;
|
|
116
75
|
};
|
|
117
|
-
|
|
118
76
|
export type SummaryContent = BaseSummaryContent | PercentageSummaryContent;
|
|
119
|
-
|
|
120
|
-
export type CalendarWidget = AbstractWidget<
|
|
121
|
-
'calendar-card',
|
|
122
|
-
{
|
|
77
|
+
export type CalendarWidget = AbstractWidget<'calendar-card', {
|
|
123
78
|
name?: string;
|
|
124
79
|
conditions?: RuleConditionEntity[];
|
|
125
80
|
conditionsOp?: 'and' | 'or';
|
|
126
81
|
timeFrame?: TimeFrame;
|
|
127
|
-
|
|
128
|
-
|
|
82
|
+
} | null>;
|
|
83
|
+
export {};
|
|
@@ -1,83 +1,68 @@
|
|
|
1
1
|
export type GoCardlessToken = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
id: string;
|
|
3
|
+
accounts: unknown[];
|
|
4
4
|
};
|
|
5
|
-
|
|
6
5
|
export type GoCardlessInstitution = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
bic?: string;
|
|
9
|
+
transaction_total_days?: string;
|
|
10
|
+
countries: string[];
|
|
11
|
+
logo: string;
|
|
12
|
+
identification_codes: string[];
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
export type GoCardlessBalance = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
| 'interimBooked'
|
|
24
|
-
| 'nonInvoiced'
|
|
25
|
-
| 'openingBooked';
|
|
26
|
-
creditLimitIncluded?: boolean;
|
|
27
|
-
lastChangeDateTime?: string;
|
|
28
|
-
lastCommittedTransaction?: string;
|
|
29
|
-
referenceDate?: string;
|
|
15
|
+
balanceAmount: GoCardlessAmount;
|
|
16
|
+
balanceType: 'closingBooked' | 'expected' | 'forwardAvailable' | 'interimAvailable' | 'interimBooked' | 'nonInvoiced' | 'openingBooked';
|
|
17
|
+
creditLimitIncluded?: boolean;
|
|
18
|
+
lastChangeDateTime?: string;
|
|
19
|
+
lastCommittedTransaction?: string;
|
|
20
|
+
referenceDate?: string;
|
|
30
21
|
};
|
|
31
|
-
|
|
32
22
|
export type GoCardlessAmount = {
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
amount: string;
|
|
24
|
+
currency: string;
|
|
35
25
|
};
|
|
36
|
-
|
|
37
26
|
export type GoCardlessTransaction = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
ultimateDebtor?: string;
|
|
73
|
-
valueDate?: string;
|
|
74
|
-
valueDateTime?: string;
|
|
27
|
+
additionalInformation?: string;
|
|
28
|
+
bookingStatus?: string;
|
|
29
|
+
balanceAfterTransaction?: Pick<GoCardlessBalance, 'balanceType' | 'balanceAmount'>;
|
|
30
|
+
bankTransactionCode?: string;
|
|
31
|
+
bookingDate?: string;
|
|
32
|
+
bookingDateTime?: string;
|
|
33
|
+
checkId?: string;
|
|
34
|
+
creditorAccount?: string;
|
|
35
|
+
creditorAgent?: string;
|
|
36
|
+
creditorId?: string;
|
|
37
|
+
creditorName?: string;
|
|
38
|
+
currencyExchange?: string[];
|
|
39
|
+
debtorAccount?: {
|
|
40
|
+
iban: string;
|
|
41
|
+
};
|
|
42
|
+
debtorAgent?: string;
|
|
43
|
+
debtorName?: string;
|
|
44
|
+
endToEndId?: string;
|
|
45
|
+
entryReference?: string;
|
|
46
|
+
internalTransactionId?: string;
|
|
47
|
+
mandateId?: string;
|
|
48
|
+
merchantCategoryCode?: string;
|
|
49
|
+
proprietaryBankTransactionCode?: string;
|
|
50
|
+
purposeCode?: string;
|
|
51
|
+
remittanceInformationStructured?: string;
|
|
52
|
+
remittanceInformationStructuredArray?: string[];
|
|
53
|
+
remittanceInformationUnstructured?: string;
|
|
54
|
+
remittanceInformationUnstructuredArray?: string[];
|
|
55
|
+
transactionAmount: GoCardlessAmount;
|
|
56
|
+
transactionId?: string;
|
|
57
|
+
ultimateCreditor?: string;
|
|
58
|
+
ultimateDebtor?: string;
|
|
59
|
+
valueDate?: string;
|
|
60
|
+
valueDateTime?: string;
|
|
75
61
|
};
|
|
76
|
-
|
|
77
62
|
export type SyncServerGoCardlessAccount = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
63
|
+
institution: string;
|
|
64
|
+
account_id: string;
|
|
65
|
+
mask: string;
|
|
66
|
+
name: string;
|
|
67
|
+
official_name: string;
|
|
83
68
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type OpenIdConfig = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
selectedProvider: string;
|
|
3
|
+
issuer?: string;
|
|
4
|
+
client_id: string;
|
|
5
|
+
client_secret: string;
|
|
6
|
+
server_hostname: string;
|
|
7
|
+
discoveryURL: string;
|
|
8
8
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AccountEntity } from './account';
|
|
2
|
-
|
|
3
2
|
export interface PayeeEntity {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
transfer_acct?: AccountEntity['id'];
|
|
6
|
+
favorite?: boolean;
|
|
7
|
+
learn_categories?: boolean;
|
|
8
|
+
tombstone?: boolean;
|
|
10
9
|
}
|