@mulmoclaude/accounting-plugin 0.1.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/dist/server/accountNormalize.d.ts +3 -0
- package/dist/server/accountNormalize.d.ts.map +1 -0
- package/dist/server/atomic.d.ts +13 -0
- package/dist/server/atomic.d.ts.map +1 -0
- package/dist/server/context.d.ts +39 -0
- package/dist/server/context.d.ts.map +1 -0
- package/dist/server/defaultAccounts.d.ts +3 -0
- package/dist/server/defaultAccounts.d.ts.map +1 -0
- package/dist/server/eventPublisher.d.ts +14 -0
- package/dist/server/eventPublisher.d.ts.map +1 -0
- package/dist/server/http.d.ts +3 -0
- package/dist/server/http.d.ts.map +1 -0
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/io.d.ts +67 -0
- package/dist/server/io.d.ts.map +1 -0
- package/dist/server/journal.d.ts +74 -0
- package/dist/server/journal.d.ts.map +1 -0
- package/dist/server/openingBalances.d.ts +30 -0
- package/dist/server/openingBalances.d.ts.map +1 -0
- package/dist/server/report.d.ts +98 -0
- package/dist/server/report.d.ts.map +1 -0
- package/dist/server/router.d.ts +7 -0
- package/dist/server/router.d.ts.map +1 -0
- package/dist/server/service.d.ts +148 -0
- package/dist/server/service.d.ts.map +1 -0
- package/dist/server/snapshotCache.d.ts +52 -0
- package/dist/server/snapshotCache.d.ts.map +1 -0
- package/dist/server/timeSeries.d.ts +47 -0
- package/dist/server/timeSeries.d.ts.map +1 -0
- package/dist/server/types.d.ts +134 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server.cjs +2101 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.js +2074 -0
- package/dist/server.js.map +1 -0
- package/dist/shared/actions.d.ts +19 -0
- package/dist/shared/actions.d.ts.map +1 -0
- package/dist/shared/channels.d.ts +46 -0
- package/dist/shared/channels.d.ts.map +1 -0
- package/dist/shared/countries.d.ts +51 -0
- package/dist/shared/countries.d.ts.map +1 -0
- package/dist/shared/currencies.d.ts +34 -0
- package/dist/shared/currencies.d.ts.map +1 -0
- package/dist/shared/dates.d.ts +15 -0
- package/dist/shared/dates.d.ts.map +1 -0
- package/dist/shared/errors.d.ts +2 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/fiscalYear.d.ts +22 -0
- package/dist/shared/fiscalYear.d.ts.map +1 -0
- package/dist/shared/index.d.ts +9 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/timeSeriesEnums.d.ts +5 -0
- package/dist/shared/timeSeriesEnums.d.ts.map +1 -0
- package/dist/shared.cjs +466 -0
- package/dist/shared.cjs.map +1 -0
- package/dist/shared.js +432 -0
- package/dist/shared.js.map +1 -0
- package/dist/style.css +1255 -0
- package/dist/vue/Preview.vue.d.ts +8 -0
- package/dist/vue/Preview.vue.d.ts.map +1 -0
- package/dist/vue/View.vue.d.ts +30 -0
- package/dist/vue/View.vue.d.ts.map +1 -0
- package/dist/vue/api.d.ts +269 -0
- package/dist/vue/api.d.ts.map +1 -0
- package/dist/vue/components/AccountEditor.vue.d.ts +19 -0
- package/dist/vue/components/AccountEditor.vue.d.ts.map +1 -0
- package/dist/vue/components/AccountRow.vue.d.ts +14 -0
- package/dist/vue/components/AccountRow.vue.d.ts.map +1 -0
- package/dist/vue/components/AccountsList.vue.d.ts +15 -0
- package/dist/vue/components/AccountsList.vue.d.ts.map +1 -0
- package/dist/vue/components/AccountsModal.vue.d.ts +15 -0
- package/dist/vue/components/AccountsModal.vue.d.ts.map +1 -0
- package/dist/vue/components/BalanceSheet.vue.d.ts +13 -0
- package/dist/vue/components/BalanceSheet.vue.d.ts.map +1 -0
- package/dist/vue/components/BookSettings.vue.d.ts +18 -0
- package/dist/vue/components/BookSettings.vue.d.ts.map +1 -0
- package/dist/vue/components/BookSwitcher.vue.d.ts +17 -0
- package/dist/vue/components/BookSwitcher.vue.d.ts.map +1 -0
- package/dist/vue/components/DateRangePicker.vue.d.ts +19 -0
- package/dist/vue/components/DateRangePicker.vue.d.ts.map +1 -0
- package/dist/vue/components/JournalEntryForm.vue.d.ts +19 -0
- package/dist/vue/components/JournalEntryForm.vue.d.ts.map +1 -0
- package/dist/vue/components/JournalList.vue.d.ts +30 -0
- package/dist/vue/components/JournalList.vue.d.ts.map +1 -0
- package/dist/vue/components/Ledger.vue.d.ts +21 -0
- package/dist/vue/components/Ledger.vue.d.ts.map +1 -0
- package/dist/vue/components/NewBookForm.vue.d.ts +20 -0
- package/dist/vue/components/NewBookForm.vue.d.ts.map +1 -0
- package/dist/vue/components/OpeningBalancesForm.vue.d.ts +15 -0
- package/dist/vue/components/OpeningBalancesForm.vue.d.ts.map +1 -0
- package/dist/vue/components/ProfitLoss.vue.d.ts +19 -0
- package/dist/vue/components/ProfitLoss.vue.d.ts.map +1 -0
- package/dist/vue/components/accountDraft.d.ts +8 -0
- package/dist/vue/components/accountDraft.d.ts.map +1 -0
- package/dist/vue/components/accountNumbering.d.ts +20 -0
- package/dist/vue/components/accountNumbering.d.ts.map +1 -0
- package/dist/vue/components/accountValidation.d.ts +34 -0
- package/dist/vue/components/accountValidation.d.ts.map +1 -0
- package/dist/vue/components/useLatestRequest.d.ts +10 -0
- package/dist/vue/components/useLatestRequest.d.ts.map +1 -0
- package/dist/vue/hostContext.d.ts +31 -0
- package/dist/vue/hostContext.d.ts.map +1 -0
- package/dist/vue/index.d.ts +7 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/useAccountingChannel.d.ts +13 -0
- package/dist/vue/useAccountingChannel.d.ts.map +1 -0
- package/dist/vue.cjs +3641 -0
- package/dist/vue.cjs.map +1 -0
- package/dist/vue.js +3638 -0
- package/dist/vue.js.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data?: unknown;
|
|
3
|
+
jsonData?: Record<string, unknown>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=Preview.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Preview.vue.d.ts","sourceRoot":"","sources":["../../src/vue/Preview.vue"],"names":[],"mappings":"AAgHA,KAAK,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AA2H1E,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ToolResultComplete } from "gui-chat-protocol/vue";
|
|
2
|
+
interface AccountingAppPayload {
|
|
3
|
+
kind?: string;
|
|
4
|
+
bookId?: string;
|
|
5
|
+
initialTab?: string;
|
|
6
|
+
/** Dispatch verb stamped onto every accounting tool-result envelope
|
|
7
|
+
* (server/api/routes/accounting.ts dispatch()). We read it here to
|
|
8
|
+
* pick the canvas tab + journal preselect for each PREVIEW action. */
|
|
9
|
+
action?: string;
|
|
10
|
+
/** Present on `addEntries` envelopes — the freshly-built journal
|
|
11
|
+
* entries returned by the service. Each carries a server-stamped
|
|
12
|
+
* `id` we use to highlight the row in JournalList. */
|
|
13
|
+
entries?: {
|
|
14
|
+
id?: string;
|
|
15
|
+
}[];
|
|
16
|
+
/** Present on `voidEntry` envelopes — the kind="void-marker" row
|
|
17
|
+
* posted alongside the reversing entry. We surface this row (not
|
|
18
|
+
* the reverseEntry) because the marker is the visual "this entry
|
|
19
|
+
* was voided here" indicator the user is looking for. */
|
|
20
|
+
markerEntry?: {
|
|
21
|
+
id?: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
type __VLS_Props = {
|
|
25
|
+
selectedResult?: ToolResultComplete<AccountingAppPayload, AccountingAppPayload>;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
//# sourceMappingURL=View.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../src/vue/View.vue"],"names":[],"mappings":"AA8nBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAiBhE,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;2EAEuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;2DAEuD;IACvD,OAAO,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5B;;;8DAG0D;IAC1D,WAAW,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/B;AAED,KAAK,WAAW,GAAG;IAAE,cAAc,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAA;CAAE,CAAC;AAg7BvG,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { type ApiResult } from "./hostContext";
|
|
2
|
+
import { type SupportedCountryCode, type FiscalYearEnd, type TimeSeriesGranularity, type TimeSeriesMetric } from "../shared";
|
|
3
|
+
export type AccountType = "asset" | "liability" | "equity" | "income" | "expense";
|
|
4
|
+
export type JournalEntryKind = "normal" | "opening" | "void" | "void-marker";
|
|
5
|
+
export interface Account {
|
|
6
|
+
code: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: AccountType;
|
|
9
|
+
note?: string;
|
|
10
|
+
/** Soft-delete flag. When `false`, the account is hidden from
|
|
11
|
+
* entry/ledger dropdowns but stays visible in Manage Accounts
|
|
12
|
+
* and historical entries. */
|
|
13
|
+
active?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface JournalLine {
|
|
16
|
+
accountCode: string;
|
|
17
|
+
debit?: number;
|
|
18
|
+
credit?: number;
|
|
19
|
+
memo?: string;
|
|
20
|
+
/** Counterparty's tax-authority-issued registration ID — JP
|
|
21
|
+
* T-number, EU VAT ID, UK VAT registration number, GSTIN, ABN,
|
|
22
|
+
* etc. See server/accounting/types.ts for the full doc. */
|
|
23
|
+
taxRegistrationId?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface JournalEntry {
|
|
26
|
+
id: string;
|
|
27
|
+
date: string;
|
|
28
|
+
kind: JournalEntryKind;
|
|
29
|
+
lines: JournalLine[];
|
|
30
|
+
memo?: string;
|
|
31
|
+
voidedEntryId?: string;
|
|
32
|
+
voidReason?: string;
|
|
33
|
+
/** Set on the new entry posted via the "edit" flow — id of the
|
|
34
|
+
* original entry that was voided in the same operation. The
|
|
35
|
+
* void + new-entry pair is two sequential calls on the client,
|
|
36
|
+
* not an atomic transaction. */
|
|
37
|
+
replacesEntryId?: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
}
|
|
40
|
+
export interface BookSummary {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
currency: string;
|
|
44
|
+
/** ISO 3166-1 alpha-2 country code identifying the tax jurisdiction
|
|
45
|
+
* the book is kept under. Constrained to `SupportedCountryCode` —
|
|
46
|
+
* see `countries.ts`. Optional for backward compatibility with
|
|
47
|
+
* books created before the field was introduced. */
|
|
48
|
+
country?: SupportedCountryCode;
|
|
49
|
+
/** Which calendar-quarter end is the book's fiscal year end:
|
|
50
|
+
* Q1 → March 31, Q2 → June 30, Q3 → September 30, Q4 → December 31.
|
|
51
|
+
* Optional in the persisted shape for backward compatibility —
|
|
52
|
+
* read-side code treats absence as Q4 via `resolveFiscalYearEnd`.
|
|
53
|
+
* See `./fiscalYear.ts`. */
|
|
54
|
+
fiscalYearEnd?: FiscalYearEnd;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
}
|
|
57
|
+
export interface OpenAppPayload {
|
|
58
|
+
kind: "accounting-app";
|
|
59
|
+
/** `null` when the workspace has zero books — the View renders the
|
|
60
|
+
* empty state and prompts for book creation. */
|
|
61
|
+
bookId: string | null;
|
|
62
|
+
initialTab?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface AccountBalance {
|
|
65
|
+
accountCode: string;
|
|
66
|
+
netDebit: number;
|
|
67
|
+
}
|
|
68
|
+
export interface BalanceSheetSection {
|
|
69
|
+
type: AccountType;
|
|
70
|
+
rows: {
|
|
71
|
+
accountCode: string;
|
|
72
|
+
accountName: string;
|
|
73
|
+
balance: number;
|
|
74
|
+
}[];
|
|
75
|
+
total: number;
|
|
76
|
+
}
|
|
77
|
+
export interface BalanceSheet {
|
|
78
|
+
asOf: string;
|
|
79
|
+
sections: BalanceSheetSection[];
|
|
80
|
+
imbalance: number;
|
|
81
|
+
}
|
|
82
|
+
export interface ProfitLoss {
|
|
83
|
+
from: string;
|
|
84
|
+
to: string;
|
|
85
|
+
income: {
|
|
86
|
+
rows: {
|
|
87
|
+
accountCode: string;
|
|
88
|
+
accountName: string;
|
|
89
|
+
amount: number;
|
|
90
|
+
}[];
|
|
91
|
+
total: number;
|
|
92
|
+
};
|
|
93
|
+
expense: {
|
|
94
|
+
rows: {
|
|
95
|
+
accountCode: string;
|
|
96
|
+
accountName: string;
|
|
97
|
+
amount: number;
|
|
98
|
+
}[];
|
|
99
|
+
total: number;
|
|
100
|
+
};
|
|
101
|
+
netIncome: number;
|
|
102
|
+
}
|
|
103
|
+
export interface LedgerRow {
|
|
104
|
+
entryId: string;
|
|
105
|
+
date: string;
|
|
106
|
+
kind: JournalEntryKind;
|
|
107
|
+
memo?: string;
|
|
108
|
+
debit: number;
|
|
109
|
+
credit: number;
|
|
110
|
+
runningBalance: number;
|
|
111
|
+
/** Counterparty tax-registration ID per source line. The Ledger
|
|
112
|
+
* view shows it as its own column when the selected account is
|
|
113
|
+
* in the input-tax band (14xx — see `isTaxAccountCode`). */
|
|
114
|
+
taxRegistrationId?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface Ledger {
|
|
117
|
+
accountCode: string;
|
|
118
|
+
accountName: string;
|
|
119
|
+
rows: LedgerRow[];
|
|
120
|
+
closingBalance: number;
|
|
121
|
+
}
|
|
122
|
+
export type ReportPeriod = {
|
|
123
|
+
kind: "month";
|
|
124
|
+
period: string;
|
|
125
|
+
} | {
|
|
126
|
+
kind: "range";
|
|
127
|
+
from: string;
|
|
128
|
+
to: string;
|
|
129
|
+
};
|
|
130
|
+
export declare function getBooks(): Promise<ApiResult<{
|
|
131
|
+
books: BookSummary[];
|
|
132
|
+
}>>;
|
|
133
|
+
export declare function createBook(input: {
|
|
134
|
+
name: string;
|
|
135
|
+
currency?: string;
|
|
136
|
+
country?: SupportedCountryCode;
|
|
137
|
+
/** Q1..Q4 — required at the form boundary, but the server silently
|
|
138
|
+
* defaults absent / empty to Q4 for back-compat. */
|
|
139
|
+
fiscalYearEnd?: FiscalYearEnd;
|
|
140
|
+
}): Promise<ApiResult<{
|
|
141
|
+
book: BookSummary;
|
|
142
|
+
}>>;
|
|
143
|
+
export declare function updateBook(input: {
|
|
144
|
+
bookId: string;
|
|
145
|
+
name?: string;
|
|
146
|
+
/** Pass `""` to explicitly clear the country (server treats it as
|
|
147
|
+
* the "drop the field" sentinel). Any other value must be one of
|
|
148
|
+
* the curated `SupportedCountryCode`s. */
|
|
149
|
+
country?: SupportedCountryCode | "";
|
|
150
|
+
/** Q1..Q4 — pure metadata, only changes how the date-range
|
|
151
|
+
* shortcuts resolve. No "clear" path; absence leaves the existing
|
|
152
|
+
* value untouched. */
|
|
153
|
+
fiscalYearEnd?: FiscalYearEnd;
|
|
154
|
+
}): Promise<ApiResult<{
|
|
155
|
+
book: BookSummary;
|
|
156
|
+
}>>;
|
|
157
|
+
export declare function deleteBook(bookId: string): Promise<ApiResult<{
|
|
158
|
+
deletedBookId: string;
|
|
159
|
+
deletedBookName: string;
|
|
160
|
+
}>>;
|
|
161
|
+
export declare function getAccounts(bookId: string): Promise<ApiResult<{
|
|
162
|
+
bookId: string;
|
|
163
|
+
accounts: Account[];
|
|
164
|
+
}>>;
|
|
165
|
+
export declare function upsertAccount(account: Account, bookId: string): Promise<ApiResult<{
|
|
166
|
+
bookId: string;
|
|
167
|
+
account: Account;
|
|
168
|
+
accounts: Account[];
|
|
169
|
+
}>>;
|
|
170
|
+
export interface AddEntriesItemInput {
|
|
171
|
+
date: string;
|
|
172
|
+
lines: JournalLine[];
|
|
173
|
+
memo?: string;
|
|
174
|
+
/** When set, marks this entry as the replacement posted via the
|
|
175
|
+
* "edit" flow. The caller is expected to have voided
|
|
176
|
+
* `replacesEntryId` separately just before this call — there is
|
|
177
|
+
* no atomic transaction. */
|
|
178
|
+
replacesEntryId?: string;
|
|
179
|
+
}
|
|
180
|
+
export declare function addEntries(input: {
|
|
181
|
+
bookId: string;
|
|
182
|
+
/** One or more entries to post. The server validates every entry
|
|
183
|
+
* before any write, so a single bad entry rejects the whole
|
|
184
|
+
* batch. Pass a single-element array to post just one entry. */
|
|
185
|
+
entries: AddEntriesItemInput[];
|
|
186
|
+
}): Promise<ApiResult<{
|
|
187
|
+
bookId: string;
|
|
188
|
+
entries: JournalEntry[];
|
|
189
|
+
}>>;
|
|
190
|
+
export declare function voidEntry(input: {
|
|
191
|
+
entryId: string;
|
|
192
|
+
reason?: string;
|
|
193
|
+
bookId: string;
|
|
194
|
+
}): Promise<ApiResult<{
|
|
195
|
+
bookId: string;
|
|
196
|
+
reverseEntry: JournalEntry;
|
|
197
|
+
markerEntry: JournalEntry;
|
|
198
|
+
}>>;
|
|
199
|
+
export declare function getJournalEntries(input: {
|
|
200
|
+
from?: string;
|
|
201
|
+
to?: string;
|
|
202
|
+
accountCode?: string;
|
|
203
|
+
bookId: string;
|
|
204
|
+
}): Promise<ApiResult<{
|
|
205
|
+
bookId: string;
|
|
206
|
+
entries: JournalEntry[];
|
|
207
|
+
voidedEntryIds: string[];
|
|
208
|
+
}>>;
|
|
209
|
+
export declare function getOpeningBalances(bookId: string): Promise<ApiResult<{
|
|
210
|
+
bookId: string;
|
|
211
|
+
opening: JournalEntry | null;
|
|
212
|
+
}>>;
|
|
213
|
+
export declare function setOpeningBalances(input: {
|
|
214
|
+
asOfDate: string;
|
|
215
|
+
lines: JournalLine[];
|
|
216
|
+
memo?: string;
|
|
217
|
+
bookId: string;
|
|
218
|
+
}): Promise<ApiResult<{
|
|
219
|
+
bookId: string;
|
|
220
|
+
openingEntry: JournalEntry;
|
|
221
|
+
replacedExisting: boolean;
|
|
222
|
+
}>>;
|
|
223
|
+
export declare function getBalanceSheet(period: ReportPeriod, bookId: string): Promise<ApiResult<{
|
|
224
|
+
bookId: string;
|
|
225
|
+
balanceSheet: BalanceSheet;
|
|
226
|
+
}>>;
|
|
227
|
+
export declare function getProfitLoss(period: ReportPeriod, bookId: string): Promise<ApiResult<{
|
|
228
|
+
bookId: string;
|
|
229
|
+
profitLoss: ProfitLoss;
|
|
230
|
+
}>>;
|
|
231
|
+
export declare function getLedger(accountCode: string, period: ReportPeriod | undefined, bookId: string): Promise<ApiResult<{
|
|
232
|
+
bookId: string;
|
|
233
|
+
ledger: Ledger;
|
|
234
|
+
}>>;
|
|
235
|
+
export interface TimeSeriesPoint {
|
|
236
|
+
label: string;
|
|
237
|
+
from: string;
|
|
238
|
+
to: string;
|
|
239
|
+
value: number;
|
|
240
|
+
}
|
|
241
|
+
export interface TimeSeriesInput {
|
|
242
|
+
bookId: string;
|
|
243
|
+
metric: TimeSeriesMetric;
|
|
244
|
+
granularity: TimeSeriesGranularity;
|
|
245
|
+
/** Inclusive YYYY-MM-DD lower bound. The first bucket is the one
|
|
246
|
+
* CONTAINING this date — it can extend earlier. */
|
|
247
|
+
from: string;
|
|
248
|
+
/** Inclusive YYYY-MM-DD upper bound. The last bucket is the one
|
|
249
|
+
* CONTAINING this date — it can extend later. */
|
|
250
|
+
to: string;
|
|
251
|
+
/** Required when metric === "accountBalance"; forbidden otherwise.
|
|
252
|
+
* The server returns a 400 either way. */
|
|
253
|
+
accountCode?: string;
|
|
254
|
+
}
|
|
255
|
+
export interface TimeSeriesResult {
|
|
256
|
+
bookId: string;
|
|
257
|
+
metric: TimeSeriesMetric;
|
|
258
|
+
granularity: TimeSeriesGranularity;
|
|
259
|
+
from: string;
|
|
260
|
+
to: string;
|
|
261
|
+
accountCode?: string;
|
|
262
|
+
points: TimeSeriesPoint[];
|
|
263
|
+
}
|
|
264
|
+
export declare function getTimeSeries(input: TimeSeriesInput): Promise<ApiResult<TimeSeriesResult>>;
|
|
265
|
+
export declare function rebuildSnapshots(bookId: string): Promise<ApiResult<{
|
|
266
|
+
bookId: string;
|
|
267
|
+
rebuilt: string[];
|
|
268
|
+
}>>;
|
|
269
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/vue/api.ts"],"names":[],"mappings":"AAUA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAsB,KAAK,oBAAoB,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEjJ,MAAM,MAAM,WAAW,GAAG,OAAO,GA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,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAEvJ;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,EAAE,qBAAqB,CAAC;IACnC;wDACoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb;sDACkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX;+CAC2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,EAAE,qBAAqB,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAK1F;AAID,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC,CAE1G"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Account } from "../api";
|
|
2
|
+
import type { AccountDraft } from "./accountDraft";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
draft: AccountDraft;
|
|
5
|
+
isNew: boolean;
|
|
6
|
+
busy: boolean;
|
|
7
|
+
error: string | null;
|
|
8
|
+
existingAccounts: readonly Account[];
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
cancel: () => any;
|
|
12
|
+
save: (draft: AccountDraft) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onCancel?: (() => any) | undefined;
|
|
15
|
+
onSave?: ((draft: AccountDraft) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=AccountEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/AccountEditor.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMnD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,SAAS,OAAO,EAAE,CAAC;CACtC,CAAC;AAyYF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Account } from "../api";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
account: Account;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
edit: () => any;
|
|
7
|
+
toggleActive: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onEdit?: (() => any) | undefined;
|
|
10
|
+
onToggleActive?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=AccountRow.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountRow.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/AccountRow.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAItC,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AA2GxC,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Account } from "../api";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
bookId: string;
|
|
4
|
+
accounts: Account[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
changed: () => any;
|
|
8
|
+
selectAccount: (code: string) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onChanged?: (() => any) | undefined;
|
|
11
|
+
onSelectAccount?: ((code: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=AccountsList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountsList.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/AccountsList.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,QAAQ,CAAC;AAKnD,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC;AA8P3D,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Account } from "../api";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
bookId: string;
|
|
4
|
+
accounts: Account[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
close: () => any;
|
|
8
|
+
changed: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
onChanged?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=AccountsModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountsModal.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/AccountsModal.vue"],"names":[],"mappings":"AAkTA,OAAO,EAAiB,KAAK,OAAO,EAAoB,MAAM,QAAQ,CAAC;AAUvE,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC;AA0hB3D,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
bookId: string;
|
|
3
|
+
currency: string;
|
|
4
|
+
version: number;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
selectAccount: (code: string) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onSelectAccount?: ((code: string) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=BalanceSheet.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BalanceSheet.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/BalanceSheet.vue"],"names":[],"mappings":"AAgNA,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAiYzE,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type SupportedCountryCode, type FiscalYearEnd } from "../../shared";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
bookId: string;
|
|
4
|
+
bookName: string;
|
|
5
|
+
currency: string;
|
|
6
|
+
country?: SupportedCountryCode;
|
|
7
|
+
fiscalYearEnd?: FiscalYearEnd;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"books-changed": () => any;
|
|
11
|
+
deleted: (bookName: string) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onBooks-changed"?: (() => any) | undefined;
|
|
14
|
+
onDeleted?: ((bookName: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=BookSettings.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/BookSettings.vue"],"names":[],"mappings":"AA0SA,OAAO,EAIL,KAAK,oBAAoB,EAIzB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAItB,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAiiBF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BookSummary } from "../api";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
books: BookSummary[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (bookId: string) => any;
|
|
8
|
+
"books-changed": () => any;
|
|
9
|
+
"book-created": (book: BookSummary) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((bookId: string) => any) | undefined;
|
|
12
|
+
"onBooks-changed"?: (() => any) | undefined;
|
|
13
|
+
"onBook-created"?: ((book: BookSummary) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=BookSwitcher.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookSwitcher.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/BookSwitcher.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI1C,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC;AA+JhE,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type DateRange, type FiscalYearEnd } from "../../shared";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: DateRange;
|
|
4
|
+
fiscalYearEnd: FiscalYearEnd;
|
|
5
|
+
/** The active book's opening-balance date. Drives the "Lifetime"
|
|
6
|
+
* shortcut (from = openingDate, to = today). Optional — when
|
|
7
|
+
* absent the Lifetime option is hidden from the menu. The opening
|
|
8
|
+
* gate prevents the tabs that mount this picker from rendering
|
|
9
|
+
* before an opening exists, so in normal use this stays defined. */
|
|
10
|
+
openingDate?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (args_0: DateRange) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((args_0: DateRange) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=DateRangePicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/DateRangePicker.vue"],"names":[],"mappings":"AAwJA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AAItB,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,SAAS,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;yEAIqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA2NF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Account, type JournalEntry } from "../api";
|
|
2
|
+
import { type SupportedCountryCode } from "../../shared";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
bookId: string;
|
|
5
|
+
accounts: Account[];
|
|
6
|
+
currency: string;
|
|
7
|
+
country?: SupportedCountryCode;
|
|
8
|
+
entryToEdit?: JournalEntry | null;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
cancel: () => any;
|
|
12
|
+
submitted: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onCancel?: (() => any) | undefined;
|
|
15
|
+
onSubmitted?: (() => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=JournalEntryForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JournalEntryForm.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/JournalEntryForm.vue"],"names":[],"mappings":"AA4fA,OAAO,EAAyB,KAAK,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,QAAQ,CAAC;AAClG,OAAO,EAAkE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAOzH,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAAC,WAAW,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,CAAC;AAkzBhJ,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type Account } from "../api";
|
|
2
|
+
import { type FiscalYearEnd, type SupportedCountryCode } from "../../shared";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
bookId: string;
|
|
5
|
+
accounts: Account[];
|
|
6
|
+
currency: string;
|
|
7
|
+
country?: SupportedCountryCode;
|
|
8
|
+
version: number;
|
|
9
|
+
fiscalYearEnd?: FiscalYearEnd;
|
|
10
|
+
/** Opening-balance date for the active book — drives the "Lifetime"
|
|
11
|
+
* shortcut in the date picker (from = openingDate, to = today).
|
|
12
|
+
* When absent, the picker hides Lifetime; "All" still works. */
|
|
13
|
+
openingDate?: string;
|
|
14
|
+
/** Entry id to auto-expand and scroll into view. Surfaced by the
|
|
15
|
+
* parent when an `addEntries` tool result lands so the user sees
|
|
16
|
+
* the freshly-posted row highlighted. Captured into
|
|
17
|
+
* `pendingPreselectId` and consumed once the entry actually
|
|
18
|
+
* appears in the fetched list — refetch can race the prop. */
|
|
19
|
+
preselectEntryId?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
editOpening: () => any;
|
|
23
|
+
preselectConsumed: () => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onEditOpening?: (() => any) | undefined;
|
|
26
|
+
onPreselectConsumed?: (() => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
//# sourceMappingURL=JournalList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JournalList.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/JournalList.vue"],"names":[],"mappings":"AA6iBA,OAAO,EAAgC,KAAK,OAAO,EAA8D,MAAM,QAAQ,CAAC;AAChI,OAAO,EAA8E,KAAK,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAQzJ,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;qEAEiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;mEAI+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAmgCF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Account } from "../api";
|
|
2
|
+
import { type FiscalYearEnd } from "../../shared";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
bookId: string;
|
|
5
|
+
accounts: Account[];
|
|
6
|
+
currency: string;
|
|
7
|
+
version: number;
|
|
8
|
+
fiscalYearEnd?: FiscalYearEnd;
|
|
9
|
+
/** Opening-balance date for the active book — drives the "Lifetime"
|
|
10
|
+
* shortcut in the date picker (from = openingDate, to = today).
|
|
11
|
+
* When absent, the picker hides Lifetime; "All" still works. */
|
|
12
|
+
openingDate?: string;
|
|
13
|
+
/** Optional account to preselect (Accounts tab → click). Updates
|
|
14
|
+
* via the watcher below — assigning to the local `accountCode`
|
|
15
|
+
* ref keeps the dropdown's v-model authoritative for user edits. */
|
|
16
|
+
preselectAccountCode?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=Ledger.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ledger.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/Ledger.vue"],"names":[],"mappings":"AAkNA,OAAO,EAAa,KAAK,OAAO,EAAkC,MAAM,QAAQ,CAAC;AACjF,OAAO,EAA0G,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAO1J,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;qEAEiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;yEAEqE;IACrE,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAmZF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type BookSummary } from "../api";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
firstRun?: boolean;
|
|
4
|
+
cancelable?: boolean;
|
|
5
|
+
fullPage?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
cancel: () => any;
|
|
9
|
+
created: (book: BookSummary) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onCancel?: (() => any) | undefined;
|
|
12
|
+
onCreated?: ((book: BookSummary) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
firstRun: boolean;
|
|
15
|
+
cancelable: boolean;
|
|
16
|
+
fullPage: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=NewBookForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewBookForm.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/NewBookForm.vue"],"names":[],"mappings":"AA+NA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAyCtD,KAAK,WAAW,GAAG;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAkWJ,QAAA,MAAM,YAAY;;;;;;;cArWH,OAAO;gBACL,OAAO;cACT,OAAO;6EAuWpB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Account } from "../api";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
bookId: string;
|
|
4
|
+
accounts: Account[];
|
|
5
|
+
currency: string;
|
|
6
|
+
version: number;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
submitted: () => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onSubmitted?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=OpeningBalancesForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpeningBalancesForm.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/OpeningBalancesForm.vue"],"names":[],"mappings":"AAoRA,OAAO,EAA0C,KAAK,OAAO,EAAuC,MAAM,QAAQ,CAAC;AAQnH,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AA6f9F,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|