@layerfi/components 0.1.77 → 0.1.79
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/.eslintrc.js +20 -0
- package/LICENSE +33 -21
- package/dist/{index.js → cjs/index.cjs} +2788 -2141
- package/dist/esm/{index.js → index.mjs} +2841 -2190
- package/dist/index.css +7999 -0
- package/dist/index.d.ts +576 -307
- package/dist/styles/index.css +299 -33
- package/package.json +23 -10
- package/.nvmrc +0 -1
- package/dist/esm/index.js.map +0 -7
- package/dist/index.js.map +0 -7
- package/dist/styles/index.css.map +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,20 @@
|
|
|
1
|
-
declare module '@layerfi/components/api/layer/authenticate' {
|
|
2
|
-
import { OAuthResponse } from '@layerfi/components/types';
|
|
3
|
-
type AuthenticationArguments = {
|
|
4
|
-
appId: string;
|
|
5
|
-
appSecret: string;
|
|
6
|
-
authenticationUrl?: string;
|
|
7
|
-
scope: string;
|
|
8
|
-
};
|
|
9
|
-
export const authenticate: ({ appId, appSecret, authenticationUrl, scope, }: AuthenticationArguments) => () => Promise<OAuthResponse>;
|
|
10
|
-
export {};
|
|
11
|
-
|
|
12
|
-
}
|
|
13
1
|
declare module '@layerfi/components/api/layer/authenticated_http' {
|
|
14
2
|
export type HTTPVerb = 'get' | 'put' | 'post' | 'patch' | 'options' | 'delete';
|
|
15
3
|
export const get: <Return extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
16
|
-
params?: Params
|
|
17
|
-
}
|
|
18
|
-
export const request: (verb: HTTPVerb) => <Return extends Record<string, unknown> = Record<string, unknown>,
|
|
19
|
-
params?: Params
|
|
20
|
-
body?:
|
|
21
|
-
}
|
|
22
|
-
export const post: <Return extends Record<string, unknown> = Record<string, unknown>,
|
|
23
|
-
params?: Params
|
|
24
|
-
body?:
|
|
25
|
-
}
|
|
26
|
-
export const put: <Return extends Record<string, unknown> = Record<string, unknown>,
|
|
27
|
-
params?: Params
|
|
28
|
-
body?:
|
|
29
|
-
}
|
|
30
|
-
export const deleteRequest: <Return extends Record<string, unknown> = Record<string, unknown>, Body_1 extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
31
|
-
params?: Params | undefined;
|
|
32
|
-
body?: Body_1 | undefined;
|
|
33
|
-
} | undefined) => Promise<Return>;
|
|
4
|
+
params?: Params;
|
|
5
|
+
}) => () => Promise<Return>;
|
|
6
|
+
export const request: (verb: Exclude<HTTPVerb, "get">) => <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
7
|
+
params?: Params;
|
|
8
|
+
body?: Body;
|
|
9
|
+
}) => Promise<Return>;
|
|
10
|
+
export const post: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
11
|
+
params?: Params;
|
|
12
|
+
body?: Body;
|
|
13
|
+
}) => Promise<Return>;
|
|
14
|
+
export const put: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
15
|
+
params?: Params;
|
|
16
|
+
body?: Body;
|
|
17
|
+
}) => Promise<Return>;
|
|
34
18
|
export const postWithFormData: <Return extends Record<string, unknown> = Record<string, unknown>>(url: string, formData: FormData, baseUrl: string, accessToken: string | undefined) => Promise<Return>;
|
|
35
19
|
|
|
36
20
|
}
|
|
@@ -102,7 +86,7 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
|
102
86
|
export const getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
103
87
|
params?: Record<string, string | undefined> | undefined;
|
|
104
88
|
} | undefined) => () => Promise<{
|
|
105
|
-
data?: S3PresignedUrl
|
|
89
|
+
data?: S3PresignedUrl;
|
|
106
90
|
error?: unknown;
|
|
107
91
|
}>;
|
|
108
92
|
export const getBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
@@ -136,10 +120,10 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
|
136
120
|
params?: Record<string, string | undefined> | undefined;
|
|
137
121
|
body?: Record<string, unknown> | undefined;
|
|
138
122
|
} | undefined) => Promise<{
|
|
139
|
-
data:
|
|
123
|
+
data: Record<never, never>;
|
|
140
124
|
errors: unknown;
|
|
141
125
|
}>;
|
|
142
|
-
export const uploadBankTransactionDocument: (baseUrl: string, accessToken
|
|
126
|
+
export const uploadBankTransactionDocument: (baseUrl: string, accessToken?: string) => ({ businessId, bankTransactionId, file, documentType, }: {
|
|
143
127
|
businessId: string;
|
|
144
128
|
bankTransactionId: string;
|
|
145
129
|
file: File;
|
|
@@ -165,7 +149,7 @@ declare module '@layerfi/components/api/layer/categories' {
|
|
|
165
149
|
params?: Record<string, string | undefined> | undefined;
|
|
166
150
|
} | undefined) => () => Promise<{
|
|
167
151
|
data: {
|
|
168
|
-
type:
|
|
152
|
+
type: "Category_List";
|
|
169
153
|
categories: Category[];
|
|
170
154
|
};
|
|
171
155
|
}>;
|
|
@@ -225,7 +209,7 @@ declare module '@layerfi/components/api/layer/journal' {
|
|
|
225
209
|
export const reverseJournalEntry: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
226
210
|
params?: Record<string, string | undefined> | undefined;
|
|
227
211
|
body?: Record<string, unknown> | undefined;
|
|
228
|
-
} | undefined) => Promise<
|
|
212
|
+
} | undefined) => Promise<Record<never, never>>;
|
|
229
213
|
|
|
230
214
|
}
|
|
231
215
|
declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
@@ -249,20 +233,40 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
|
249
233
|
} | undefined) => () => Promise<{
|
|
250
234
|
data: LinkedAccounts;
|
|
251
235
|
}>;
|
|
252
|
-
export const
|
|
236
|
+
export const confirmAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
253
237
|
params?: {
|
|
254
238
|
businessId: string;
|
|
255
239
|
accountId: string;
|
|
256
240
|
} | undefined;
|
|
257
|
-
body?:
|
|
258
|
-
|
|
259
|
-
|
|
241
|
+
body?: ({
|
|
242
|
+
is_unique: true;
|
|
243
|
+
} & Partial<{
|
|
244
|
+
is_unique: boolean;
|
|
245
|
+
is_relevant: boolean;
|
|
246
|
+
}> & {}) | ({
|
|
247
|
+
is_relevant: true;
|
|
248
|
+
} & Partial<{
|
|
249
|
+
is_unique: boolean;
|
|
250
|
+
is_relevant: boolean;
|
|
251
|
+
}> & {}) | undefined;
|
|
252
|
+
} | undefined) => Promise<never>;
|
|
253
|
+
export const excludeAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
260
254
|
params?: {
|
|
261
255
|
businessId: string;
|
|
262
256
|
accountId: string;
|
|
263
257
|
} | undefined;
|
|
264
|
-
body?:
|
|
265
|
-
|
|
258
|
+
body?: ({
|
|
259
|
+
is_irrelevant: true;
|
|
260
|
+
} & Partial<{
|
|
261
|
+
is_irrelevant: boolean;
|
|
262
|
+
is_duplicate: boolean;
|
|
263
|
+
}> & {}) | ({
|
|
264
|
+
is_duplicate: true;
|
|
265
|
+
} & Partial<{
|
|
266
|
+
is_irrelevant: boolean;
|
|
267
|
+
is_duplicate: boolean;
|
|
268
|
+
}> & {}) | undefined;
|
|
269
|
+
} | undefined) => Promise<never>;
|
|
266
270
|
export const unlinkConnection: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
267
271
|
params?: {
|
|
268
272
|
businessId: string;
|
|
@@ -287,7 +291,7 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
|
287
291
|
body?: Record<string, unknown> | undefined;
|
|
288
292
|
} | undefined) => Promise<{
|
|
289
293
|
data: {
|
|
290
|
-
type:
|
|
294
|
+
type: "Link_Token";
|
|
291
295
|
link_token: string;
|
|
292
296
|
};
|
|
293
297
|
}>;
|
|
@@ -298,7 +302,7 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
|
298
302
|
body?: Record<string, unknown> | undefined;
|
|
299
303
|
} | undefined) => Promise<{
|
|
300
304
|
data: {
|
|
301
|
-
type:
|
|
305
|
+
type: "Link_Token";
|
|
302
306
|
link_token: string;
|
|
303
307
|
};
|
|
304
308
|
}>;
|
|
@@ -331,33 +335,33 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
331
335
|
export const getProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
332
336
|
params?: Record<string, string | undefined> | undefined;
|
|
333
337
|
} | undefined) => () => Promise<{
|
|
334
|
-
data?: ProfitAndLoss
|
|
338
|
+
data?: ProfitAndLoss;
|
|
335
339
|
error?: unknown;
|
|
336
340
|
}>;
|
|
337
341
|
export const compareProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
338
342
|
params?: Record<string, string | undefined> | undefined;
|
|
339
343
|
body?: Record<string, unknown> | undefined;
|
|
340
344
|
} | undefined) => Promise<{
|
|
341
|
-
data?: ProfitAndLossComparison
|
|
345
|
+
data?: ProfitAndLossComparison;
|
|
342
346
|
error?: unknown;
|
|
343
347
|
}>;
|
|
344
348
|
export const getProfitAndLossSummaries: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
345
349
|
params?: Record<string, string | undefined> | undefined;
|
|
346
350
|
} | undefined) => () => Promise<{
|
|
347
|
-
data?: ProfitAndLossSummaries
|
|
351
|
+
data?: ProfitAndLossSummaries;
|
|
348
352
|
error?: unknown;
|
|
349
353
|
}>;
|
|
350
354
|
export const getProfitAndLossCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
351
355
|
params?: Record<string, string | undefined> | undefined;
|
|
352
356
|
} | undefined) => () => Promise<{
|
|
353
|
-
data?: S3PresignedUrl
|
|
357
|
+
data?: S3PresignedUrl;
|
|
354
358
|
error?: unknown;
|
|
355
359
|
}>;
|
|
356
360
|
export const profitAndLossComparisonCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
357
361
|
params?: Record<string, string | undefined> | undefined;
|
|
358
362
|
body?: Record<string, unknown> | undefined;
|
|
359
363
|
} | undefined) => Promise<{
|
|
360
|
-
data?: S3PresignedUrl
|
|
364
|
+
data?: S3PresignedUrl;
|
|
361
365
|
error?: unknown;
|
|
362
366
|
}>;
|
|
363
367
|
|
|
@@ -384,7 +388,7 @@ declare module '@layerfi/components/api/layer/quickbooks' {
|
|
|
384
388
|
body?: Record<string, unknown> | undefined;
|
|
385
389
|
} | undefined) => Promise<{
|
|
386
390
|
data: {
|
|
387
|
-
type:
|
|
391
|
+
type: "Quickbooks_Authorization_Params";
|
|
388
392
|
redirect_url: string;
|
|
389
393
|
};
|
|
390
394
|
}>;
|
|
@@ -444,7 +448,7 @@ declare module '@layerfi/components/api/layer/tasks' {
|
|
|
444
448
|
} | undefined) => Promise<{
|
|
445
449
|
data: TaskTypes;
|
|
446
450
|
}>;
|
|
447
|
-
export const completeTaskWithUpload: (baseUrl: string, accessToken
|
|
451
|
+
export const completeTaskWithUpload: (baseUrl: string, accessToken?: string) => ({ businessId, taskId, file, }: {
|
|
448
452
|
businessId: string;
|
|
449
453
|
taskId: string;
|
|
450
454
|
file: File;
|
|
@@ -456,12 +460,6 @@ declare module '@layerfi/components/api/layer/tasks' {
|
|
|
456
460
|
}
|
|
457
461
|
declare module '@layerfi/components/api/layer' {
|
|
458
462
|
export const Layer: {
|
|
459
|
-
authenticate: ({ appId, appSecret, authenticationUrl, scope, }: {
|
|
460
|
-
appId: string;
|
|
461
|
-
appSecret: string;
|
|
462
|
-
authenticationUrl?: string | undefined;
|
|
463
|
-
scope: string;
|
|
464
|
-
}) => () => Promise<import("@layerfi/components/types").OAuthResponse>;
|
|
465
463
|
getBusiness: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
466
464
|
params?: Record<string, string | undefined> | undefined;
|
|
467
465
|
} | undefined) => () => Promise<{
|
|
@@ -505,7 +503,7 @@ declare module '@layerfi/components/api/layer' {
|
|
|
505
503
|
getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
506
504
|
params?: Record<string, string | undefined> | undefined;
|
|
507
505
|
} | undefined) => () => Promise<{
|
|
508
|
-
data?: import("@layerfi/components/types/general").S3PresignedUrl
|
|
506
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
509
507
|
error?: unknown;
|
|
510
508
|
}>;
|
|
511
509
|
getBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
@@ -530,7 +528,7 @@ declare module '@layerfi/components/api/layer' {
|
|
|
530
528
|
params?: Record<string, string | undefined> | undefined;
|
|
531
529
|
body?: Record<string, unknown> | undefined;
|
|
532
530
|
} | undefined) => Promise<{
|
|
533
|
-
data:
|
|
531
|
+
data: Record<never, never>;
|
|
534
532
|
errors: unknown;
|
|
535
533
|
}>;
|
|
536
534
|
updateBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
@@ -542,7 +540,7 @@ declare module '@layerfi/components/api/layer' {
|
|
|
542
540
|
data: import("@layerfi/components/types/bank_transactions").BankTransactionMetadata;
|
|
543
541
|
errors: unknown;
|
|
544
542
|
}>;
|
|
545
|
-
uploadBankTransactionDocument: (baseUrl: string, accessToken
|
|
543
|
+
uploadBankTransactionDocument: (baseUrl: string, accessToken?: string) => ({ businessId, bankTransactionId, file, documentType, }: {
|
|
546
544
|
businessId: string;
|
|
547
545
|
bankTransactionId: string;
|
|
548
546
|
file: File;
|
|
@@ -582,19 +580,19 @@ declare module '@layerfi/components/api/layer' {
|
|
|
582
580
|
getProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
583
581
|
params?: Record<string, string | undefined> | undefined;
|
|
584
582
|
} | undefined) => () => Promise<{
|
|
585
|
-
data?: import("@layerfi/components/types").ProfitAndLoss
|
|
583
|
+
data?: import("@layerfi/components/types").ProfitAndLoss;
|
|
586
584
|
error?: unknown;
|
|
587
585
|
}>;
|
|
588
586
|
getProfitAndLossSummaries: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
589
587
|
params?: Record<string, string | undefined> | undefined;
|
|
590
588
|
} | undefined) => () => Promise<{
|
|
591
|
-
data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossSummaries
|
|
589
|
+
data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossSummaries;
|
|
592
590
|
error?: unknown;
|
|
593
591
|
}>;
|
|
594
592
|
getProfitAndLossCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
595
593
|
params?: Record<string, string | undefined> | undefined;
|
|
596
594
|
} | undefined) => () => Promise<{
|
|
597
|
-
data?: import("@layerfi/components/types/general").S3PresignedUrl
|
|
595
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
598
596
|
error?: unknown;
|
|
599
597
|
}>;
|
|
600
598
|
getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
@@ -612,19 +610,19 @@ declare module '@layerfi/components/api/layer' {
|
|
|
612
610
|
reverseJournalEntry: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
613
611
|
params?: Record<string, string | undefined> | undefined;
|
|
614
612
|
body?: Record<string, unknown> | undefined;
|
|
615
|
-
} | undefined) => Promise<
|
|
613
|
+
} | undefined) => Promise<Record<never, never>>;
|
|
616
614
|
compareProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
617
615
|
params?: Record<string, string | undefined> | undefined;
|
|
618
616
|
body?: Record<string, unknown> | undefined;
|
|
619
617
|
} | undefined) => Promise<{
|
|
620
|
-
data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparison
|
|
618
|
+
data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparison;
|
|
621
619
|
error?: unknown;
|
|
622
620
|
}>;
|
|
623
621
|
profitAndLossComparisonCsv: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
624
622
|
params?: Record<string, string | undefined> | undefined;
|
|
625
623
|
body?: Record<string, unknown> | undefined;
|
|
626
624
|
} | undefined) => Promise<{
|
|
627
|
-
data?: import("@layerfi/components/types/general").S3PresignedUrl
|
|
625
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
628
626
|
error?: unknown;
|
|
629
627
|
}>;
|
|
630
628
|
createJournalEntries: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
@@ -675,26 +673,46 @@ declare module '@layerfi/components/api/layer' {
|
|
|
675
673
|
} | undefined;
|
|
676
674
|
body?: Record<string, unknown> | undefined;
|
|
677
675
|
} | undefined) => Promise<Record<string, unknown>>;
|
|
678
|
-
|
|
676
|
+
confirmAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
679
677
|
params?: {
|
|
680
678
|
businessId: string;
|
|
681
679
|
accountId: string;
|
|
682
680
|
} | undefined;
|
|
683
|
-
body?:
|
|
684
|
-
|
|
685
|
-
|
|
681
|
+
body?: ({
|
|
682
|
+
is_unique: true;
|
|
683
|
+
} & Partial<{
|
|
684
|
+
is_unique: boolean;
|
|
685
|
+
is_relevant: boolean;
|
|
686
|
+
}> & {}) | ({
|
|
687
|
+
is_relevant: true;
|
|
688
|
+
} & Partial<{
|
|
689
|
+
is_unique: boolean;
|
|
690
|
+
is_relevant: boolean;
|
|
691
|
+
}> & {}) | undefined;
|
|
692
|
+
} | undefined) => Promise<never>;
|
|
693
|
+
excludeAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
686
694
|
params?: {
|
|
687
695
|
businessId: string;
|
|
688
696
|
accountId: string;
|
|
689
697
|
} | undefined;
|
|
690
|
-
body?:
|
|
691
|
-
|
|
698
|
+
body?: ({
|
|
699
|
+
is_irrelevant: true;
|
|
700
|
+
} & Partial<{
|
|
701
|
+
is_irrelevant: boolean;
|
|
702
|
+
is_duplicate: boolean;
|
|
703
|
+
}> & {}) | ({
|
|
704
|
+
is_duplicate: true;
|
|
705
|
+
} & Partial<{
|
|
706
|
+
is_irrelevant: boolean;
|
|
707
|
+
is_duplicate: boolean;
|
|
708
|
+
}> & {}) | undefined;
|
|
709
|
+
} | undefined) => Promise<never>;
|
|
692
710
|
getTasks: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
693
711
|
params?: Record<string, string | undefined> | undefined;
|
|
694
712
|
} | undefined) => () => Promise<{
|
|
695
713
|
data: import("@layerfi/components/types/tasks").TaskTypes[];
|
|
696
714
|
}>;
|
|
697
|
-
completeTaskWithUpload: (baseUrl: string, accessToken
|
|
715
|
+
completeTaskWithUpload: (baseUrl: string, accessToken?: string) => ({ businessId, taskId, file, }: {
|
|
698
716
|
businessId: string;
|
|
699
717
|
taskId: string;
|
|
700
718
|
file: File;
|
|
@@ -771,10 +789,6 @@ declare module '@layerfi/components/api/layer' {
|
|
|
771
789
|
} | undefined) => Promise<Record<string, unknown>>;
|
|
772
790
|
};
|
|
773
791
|
|
|
774
|
-
}
|
|
775
|
-
declare module '@layerfi/components/api/util' {
|
|
776
|
-
export const formStringFromObject: (object: Record<string, string | number | boolean>) => string;
|
|
777
|
-
|
|
778
792
|
}
|
|
779
793
|
declare module '@layerfi/components/components/ActionableList/ActionableList' {
|
|
780
794
|
import React from 'react';
|
|
@@ -934,7 +948,7 @@ declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTab
|
|
|
934
948
|
export const BalanceSheetTable: ({ data, config, stringOverrides, }: {
|
|
935
949
|
data: BalanceSheet;
|
|
936
950
|
config: BalanceSheetRowProps[];
|
|
937
|
-
stringOverrides?: BalanceSheetTableStringOverrides
|
|
951
|
+
stringOverrides?: BalanceSheetTableStringOverrides;
|
|
938
952
|
}) => React.JSX.Element;
|
|
939
953
|
export {};
|
|
940
954
|
|
|
@@ -1082,8 +1096,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/MatchFo
|
|
|
1082
1096
|
import { BankTransaction } from '@layerfi/components/types';
|
|
1083
1097
|
export const MatchForm: ({ bankTransaction, showReceiptUploads, showDescriptions, }: {
|
|
1084
1098
|
bankTransaction: BankTransaction;
|
|
1085
|
-
showReceiptUploads?: boolean
|
|
1086
|
-
showDescriptions?: boolean
|
|
1099
|
+
showReceiptUploads?: boolean;
|
|
1100
|
+
showDescriptions?: boolean;
|
|
1087
1101
|
}) => React.JSX.Element;
|
|
1088
1102
|
|
|
1089
1103
|
}
|
|
@@ -1118,13 +1132,12 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitFo
|
|
|
1118
1132
|
export const SplitForm: ({ bankTransaction, showTooltips, showReceiptUploads, showDescriptions, }: {
|
|
1119
1133
|
bankTransaction: BankTransaction;
|
|
1120
1134
|
showTooltips: boolean;
|
|
1121
|
-
showReceiptUploads?: boolean
|
|
1122
|
-
showDescriptions?: boolean
|
|
1135
|
+
showReceiptUploads?: boolean;
|
|
1136
|
+
showDescriptions?: boolean;
|
|
1123
1137
|
}) => React.JSX.Element;
|
|
1124
1138
|
|
|
1125
1139
|
}
|
|
1126
1140
|
declare module '@layerfi/components/components/BankTransactionMobileList/TransactionToOpenContext' {
|
|
1127
|
-
/// <reference types="react" />
|
|
1128
1141
|
type UseTransactionToOpen = () => {
|
|
1129
1142
|
transactionIdToOpen?: string;
|
|
1130
1143
|
setTransactionIdToOpen: (id: string) => void;
|
|
@@ -1133,7 +1146,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Transac
|
|
|
1133
1146
|
export const useTransactionToOpen: UseTransactionToOpen;
|
|
1134
1147
|
export type TransactionToOpenContextType = ReturnType<typeof useTransactionToOpen>;
|
|
1135
1148
|
export const TransactionToOpenContext: import("react").Context<{
|
|
1136
|
-
transactionIdToOpen?: string
|
|
1149
|
+
transactionIdToOpen?: string;
|
|
1137
1150
|
setTransactionIdToOpen: (id: string) => void;
|
|
1138
1151
|
clearTransactionIdToOpen: () => void;
|
|
1139
1152
|
}>;
|
|
@@ -1293,6 +1306,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
|
|
|
1293
1306
|
import { BankTransactionsTableStringOverrides } from '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable';
|
|
1294
1307
|
import { BankTransactionsHeaderStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactionsHeader';
|
|
1295
1308
|
import { MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
|
|
1309
|
+
import type { LayerError } from '@layerfi/components/models/ErrorHandler';
|
|
1296
1310
|
export type BankTransactionsMode = 'bookkeeping-client' | 'self-serve';
|
|
1297
1311
|
export const categorizationEnabled: (mode: BankTransactionsMode) => boolean;
|
|
1298
1312
|
export interface BankTransactionsStringOverrides {
|
|
@@ -1319,7 +1333,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
|
|
|
1319
1333
|
stringOverrides?: BankTransactionsStringOverrides;
|
|
1320
1334
|
}
|
|
1321
1335
|
export interface BankTransactionsWithErrorProps extends BankTransactionsProps {
|
|
1322
|
-
onError?: (error:
|
|
1336
|
+
onError?: (error: LayerError) => void;
|
|
1323
1337
|
}
|
|
1324
1338
|
export const BankTransactions: ({ onError, ...props }: BankTransactionsWithErrorProps) => React.JSX.Element;
|
|
1325
1339
|
|
|
@@ -1731,7 +1745,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
|
|
|
1731
1745
|
normalityLabel?: string;
|
|
1732
1746
|
}
|
|
1733
1747
|
export const ChartOfAccountsForm: ({ stringOverrides, }: {
|
|
1734
|
-
stringOverrides?: ChartOfAccountsFormStringOverrides
|
|
1748
|
+
stringOverrides?: ChartOfAccountsFormStringOverrides;
|
|
1735
1749
|
}) => React.JSX.Element | null;
|
|
1736
1750
|
|
|
1737
1751
|
}
|
|
@@ -1764,8 +1778,8 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/ChartOfAcc
|
|
|
1764
1778
|
import React, { RefObject } from 'react';
|
|
1765
1779
|
import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
|
|
1766
1780
|
export const ChartOfAccountsSidebar: ({ parentRef: _parentRef, stringOverrides, }: {
|
|
1767
|
-
parentRef?:
|
|
1768
|
-
stringOverrides?: ChartOfAccountsFormStringOverrides
|
|
1781
|
+
parentRef?: RefObject<HTMLDivElement>;
|
|
1782
|
+
stringOverrides?: ChartOfAccountsFormStringOverrides;
|
|
1769
1783
|
}) => React.JSX.Element;
|
|
1770
1784
|
|
|
1771
1785
|
}
|
|
@@ -1781,18 +1795,18 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
1781
1795
|
export const ChartOfAccountsTable: ({ view, stringOverrides, data, error, expandAll, cumulativeIndex, accountsLength, templateAccountsEditable, }: {
|
|
1782
1796
|
view: View;
|
|
1783
1797
|
data: ChartWithBalances;
|
|
1784
|
-
stringOverrides?: ChartOfAccountsTableStringOverrides
|
|
1785
|
-
error?:
|
|
1798
|
+
stringOverrides?: ChartOfAccountsTableStringOverrides;
|
|
1799
|
+
error?: unknown;
|
|
1786
1800
|
expandAll?: ExpandActionState;
|
|
1787
1801
|
cumulativeIndex: number;
|
|
1788
1802
|
accountsLength: number;
|
|
1789
|
-
templateAccountsEditable?: boolean
|
|
1803
|
+
templateAccountsEditable?: boolean;
|
|
1790
1804
|
}) => React.JSX.Element;
|
|
1791
1805
|
export const ChartOfAccountsTableContent: ({ stringOverrides, data, error, expandAll, templateAccountsEditable, }: {
|
|
1792
1806
|
view: View;
|
|
1793
1807
|
data: ChartWithBalances;
|
|
1794
|
-
stringOverrides?: ChartOfAccountsTableStringOverrides
|
|
1795
|
-
error?:
|
|
1808
|
+
stringOverrides?: ChartOfAccountsTableStringOverrides;
|
|
1809
|
+
error?: unknown;
|
|
1796
1810
|
expandAll?: ExpandActionState;
|
|
1797
1811
|
cumulativeIndex: number;
|
|
1798
1812
|
accountsLength: number;
|
|
@@ -1817,11 +1831,11 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
1817
1831
|
export const ChartOfAccountsTableWithPanel: ({ view, containerRef, asWidget, withDateControl, withExpandAllButton, stringOverrides, templateAccountsEditable, }: {
|
|
1818
1832
|
view: View;
|
|
1819
1833
|
containerRef: RefObject<HTMLDivElement>;
|
|
1820
|
-
asWidget?: boolean
|
|
1821
|
-
withDateControl?: boolean
|
|
1822
|
-
withExpandAllButton?: boolean
|
|
1823
|
-
stringOverrides?: ChartOfAccountsTableStringOverrides
|
|
1824
|
-
templateAccountsEditable?: boolean
|
|
1834
|
+
asWidget?: boolean;
|
|
1835
|
+
withDateControl?: boolean;
|
|
1836
|
+
withExpandAllButton?: boolean;
|
|
1837
|
+
stringOverrides?: ChartOfAccountsTableStringOverrides;
|
|
1838
|
+
templateAccountsEditable?: boolean;
|
|
1825
1839
|
}) => React.JSX.Element;
|
|
1826
1840
|
|
|
1827
1841
|
}
|
|
@@ -1930,7 +1944,7 @@ declare module '@layerfi/components/components/DatePicker/DatePickerOptions' {
|
|
|
1930
1944
|
endDate: Date;
|
|
1931
1945
|
};
|
|
1932
1946
|
export const DatePickerOptions: ({ customDateRanges, setSelectedDate, }: {
|
|
1933
|
-
customDateRanges?: CustomDateRange[]
|
|
1947
|
+
customDateRanges?: CustomDateRange[];
|
|
1934
1948
|
setSelectedDate: (dates: [Date | null, Date | null]) => void;
|
|
1935
1949
|
}) => React.JSX.Element;
|
|
1936
1950
|
|
|
@@ -2012,22 +2026,22 @@ declare module '@layerfi/components/components/Drawer/index' {
|
|
|
2012
2026
|
|
|
2013
2027
|
}
|
|
2014
2028
|
declare module '@layerfi/components/components/ErrorBoundary/ErrorBoundary' {
|
|
2015
|
-
import React, { ErrorInfo, Component } from 'react';
|
|
2029
|
+
import React, { ErrorInfo, Component, type PropsWithChildren } from 'react';
|
|
2016
2030
|
import { LayerError } from '@layerfi/components/models/ErrorHandler';
|
|
2017
2031
|
interface ErrorBoundaryProps {
|
|
2018
|
-
onError?: (error:
|
|
2032
|
+
onError?: (error: LayerError) => void;
|
|
2019
2033
|
}
|
|
2020
2034
|
interface ErrorBoundaryState {
|
|
2021
2035
|
hasError?: boolean;
|
|
2022
2036
|
}
|
|
2023
|
-
export class ErrorBoundary extends Component<
|
|
2024
|
-
onError
|
|
2025
|
-
constructor(props:
|
|
2037
|
+
export class ErrorBoundary extends Component<PropsWithChildren<ErrorBoundaryProps>, ErrorBoundaryState> {
|
|
2038
|
+
onError?: (err: LayerError) => void;
|
|
2039
|
+
constructor(props: PropsWithChildren<ErrorBoundaryProps>);
|
|
2026
2040
|
static getDerivedStateFromError(_error: Error): {
|
|
2027
2041
|
hasError: boolean;
|
|
2028
2042
|
};
|
|
2029
2043
|
componentDidCatch(error: Error, _info: ErrorInfo): void;
|
|
2030
|
-
render():
|
|
2044
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
2031
2045
|
}
|
|
2032
2046
|
export {};
|
|
2033
2047
|
|
|
@@ -2332,7 +2346,7 @@ declare module '@layerfi/components/components/JournalForm/JournalForm' {
|
|
|
2332
2346
|
}
|
|
2333
2347
|
export const JournalForm: ({ config, stringOverrides, }: {
|
|
2334
2348
|
config: JournalConfig;
|
|
2335
|
-
stringOverrides?: JournalFormStringOverrides
|
|
2349
|
+
stringOverrides?: JournalFormStringOverrides;
|
|
2336
2350
|
}) => React.JSX.Element;
|
|
2337
2351
|
|
|
2338
2352
|
}
|
|
@@ -2361,9 +2375,9 @@ declare module '@layerfi/components/components/JournalSidebar/JournalSidebar' {
|
|
|
2361
2375
|
import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
|
|
2362
2376
|
import { JournalFormStringOverrides } from '@layerfi/components/components/JournalForm/JournalForm';
|
|
2363
2377
|
export const JournalSidebar: ({ parentRef: _parentRef, config, stringOverrides, }: {
|
|
2364
|
-
parentRef?:
|
|
2378
|
+
parentRef?: RefObject<HTMLDivElement>;
|
|
2365
2379
|
config: JournalConfig;
|
|
2366
|
-
stringOverrides?: JournalFormStringOverrides
|
|
2380
|
+
stringOverrides?: JournalFormStringOverrides;
|
|
2367
2381
|
}) => React.JSX.Element;
|
|
2368
2382
|
|
|
2369
2383
|
}
|
|
@@ -2379,7 +2393,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
|
2379
2393
|
export const JournalTable: ({ view, data, stringOverrides, }: {
|
|
2380
2394
|
view: View;
|
|
2381
2395
|
data: JournalEntry[];
|
|
2382
|
-
stringOverrides?: JournalTableStringOverrides
|
|
2396
|
+
stringOverrides?: JournalTableStringOverrides;
|
|
2383
2397
|
}) => React.JSX.Element;
|
|
2384
2398
|
|
|
2385
2399
|
}
|
|
@@ -2403,9 +2417,9 @@ declare module '@layerfi/components/components/JournalTable/JournalTableWithPane
|
|
|
2403
2417
|
export const JournalTableWithPanel: ({ containerRef, pageSize, config, stringOverrides, view, }: {
|
|
2404
2418
|
view: View;
|
|
2405
2419
|
containerRef: RefObject<HTMLDivElement>;
|
|
2406
|
-
pageSize?: number
|
|
2420
|
+
pageSize?: number;
|
|
2407
2421
|
config: JournalConfig;
|
|
2408
|
-
stringOverrides?: JournalTableStringOverrides
|
|
2422
|
+
stringOverrides?: JournalTableStringOverrides;
|
|
2409
2423
|
}) => React.JSX.Element;
|
|
2410
2424
|
|
|
2411
2425
|
}
|
|
@@ -2474,7 +2488,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerA
|
|
|
2474
2488
|
}
|
|
2475
2489
|
export const SourceDetailView: ({ source, stringOverrides, }: {
|
|
2476
2490
|
source: LedgerEntrySource;
|
|
2477
|
-
stringOverrides?: SourceDetailStringOverrides
|
|
2491
|
+
stringOverrides?: SourceDetailStringOverrides;
|
|
2478
2492
|
}) => React.JSX.Element | null;
|
|
2479
2493
|
interface JournalEntryDetailsStringOverrides {
|
|
2480
2494
|
entryTypeLabel?: string;
|
|
@@ -2501,7 +2515,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerA
|
|
|
2501
2515
|
lineItemsTable?: LineItemsTableStringOverrides;
|
|
2502
2516
|
}
|
|
2503
2517
|
export const LedgerAccountEntryDetails: ({ stringOverrides, }: {
|
|
2504
|
-
stringOverrides?: LedgerAccountEntryDetailsStringOverrides
|
|
2518
|
+
stringOverrides?: LedgerAccountEntryDetailsStringOverrides;
|
|
2505
2519
|
}) => React.JSX.Element;
|
|
2506
2520
|
export {};
|
|
2507
2521
|
|
|
@@ -2562,6 +2576,23 @@ declare module '@layerfi/components/components/LinkedAccountThumb/LinkedAccountT
|
|
|
2562
2576
|
declare module '@layerfi/components/components/LinkedAccountThumb/index' {
|
|
2563
2577
|
export { LinkedAccountThumb } from '@layerfi/components/components/LinkedAccountThumb/LinkedAccountThumb';
|
|
2564
2578
|
|
|
2579
|
+
}
|
|
2580
|
+
declare module '@layerfi/components/components/LinkedAccounts/ConfirmationModal/LinkedAccountToConfirm' {
|
|
2581
|
+
import React from 'react';
|
|
2582
|
+
import type { LinkedAccount } from '@layerfi/components/types/linked_accounts';
|
|
2583
|
+
type LinkedAccountConfirmationProps = {
|
|
2584
|
+
account: LinkedAccount;
|
|
2585
|
+
isConfirmed: boolean;
|
|
2586
|
+
onChangeConfirmed: (isConfirmed: boolean) => void;
|
|
2587
|
+
};
|
|
2588
|
+
export function LinkedAccountToConfirm({ account, isConfirmed, onChangeConfirmed, }: LinkedAccountConfirmationProps): React.JSX.Element;
|
|
2589
|
+
export {};
|
|
2590
|
+
|
|
2591
|
+
}
|
|
2592
|
+
declare module '@layerfi/components/components/LinkedAccounts/ConfirmationModal/LinkedAccountsConfirmationModal' {
|
|
2593
|
+
import React from 'react';
|
|
2594
|
+
export function LinkedAccountsConfirmationModal(): React.JSX.Element;
|
|
2595
|
+
|
|
2565
2596
|
}
|
|
2566
2597
|
declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountItemThumb' {
|
|
2567
2598
|
import React from 'react';
|
|
@@ -2772,9 +2803,9 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2772
2803
|
Context: React.Context<{
|
|
2773
2804
|
data: import("@layerfi/components/types").ProfitAndLoss | undefined;
|
|
2774
2805
|
filteredDataRevenue: import("@layerfi/components/types/line_item").LineBaseItem[];
|
|
2775
|
-
filteredTotalRevenue?: number
|
|
2806
|
+
filteredTotalRevenue?: number;
|
|
2776
2807
|
filteredDataExpenses: import("@layerfi/components/types/line_item").LineBaseItem[];
|
|
2777
|
-
filteredTotalExpenses?: number
|
|
2808
|
+
filteredTotalExpenses?: number;
|
|
2778
2809
|
isLoading: boolean;
|
|
2779
2810
|
isValidating: boolean;
|
|
2780
2811
|
error: unknown;
|
|
@@ -2784,9 +2815,9 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2784
2815
|
sidebarScope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
|
|
2785
2816
|
setSidebarScope: (view: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope) => void;
|
|
2786
2817
|
filters: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").ProfitAndLossFilters;
|
|
2787
|
-
sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types").SortDirection
|
|
2818
|
+
sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types").SortDirection) => void;
|
|
2788
2819
|
setFilterTypes: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, types: string[]) => void;
|
|
2789
|
-
tagFilter?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").PnlTagFilter
|
|
2820
|
+
tagFilter?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").PnlTagFilter;
|
|
2790
2821
|
}>;
|
|
2791
2822
|
ComparisonContext: React.Context<{
|
|
2792
2823
|
data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
|
|
@@ -2799,31 +2830,29 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2799
2830
|
setCompareMonths: (months: number) => void;
|
|
2800
2831
|
compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
|
|
2801
2832
|
setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
|
|
2802
|
-
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean
|
|
2803
|
-
getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat
|
|
2804
|
-
data?: import("@layerfi/components/types/general").S3PresignedUrl
|
|
2833
|
+
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean) => void;
|
|
2834
|
+
getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat) => Promise<{
|
|
2835
|
+
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
2805
2836
|
error?: unknown;
|
|
2806
2837
|
}>;
|
|
2807
2838
|
}>;
|
|
2808
|
-
DatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: import("@layerfi/components/
|
|
2839
|
+
DatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: import("@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker").ProfitAndLossDatePickerProps) => React.JSX.Element;
|
|
2809
2840
|
CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/index").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
|
|
2810
2841
|
Summaries: (props: {
|
|
2811
|
-
actionable?: boolean
|
|
2812
|
-
stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides
|
|
2813
|
-
chartColorsList?: string[]
|
|
2814
|
-
variants?:
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
revenueLabel?: string | undefined;
|
|
2818
|
-
vertical?: boolean | undefined;
|
|
2842
|
+
actionable?: boolean;
|
|
2843
|
+
stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides;
|
|
2844
|
+
chartColorsList?: string[];
|
|
2845
|
+
variants?: import("@layerfi/components/utils/styleUtils/sizeVariants").Variants;
|
|
2846
|
+
revenueLabel?: string;
|
|
2847
|
+
vertical?: boolean;
|
|
2819
2848
|
}) => React.JSX.Element;
|
|
2820
2849
|
Table: (props: import("@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent").ProfitAndLossTableProps) => React.JSX.Element;
|
|
2821
2850
|
DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
|
|
2822
2851
|
scope?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
|
|
2823
|
-
hideClose?: boolean
|
|
2824
|
-
showDatePicker?: boolean
|
|
2825
|
-
chartColorsList?: string[]
|
|
2826
|
-
stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides
|
|
2852
|
+
hideClose?: boolean;
|
|
2853
|
+
showDatePicker?: boolean;
|
|
2854
|
+
chartColorsList?: string[];
|
|
2855
|
+
stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides;
|
|
2827
2856
|
}) => React.JSX.Element;
|
|
2828
2857
|
Header: ({ text, className, headingClassName, withDatePicker, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => React.JSX.Element;
|
|
2829
2858
|
Report: ({ stringOverrides, comparisonConfig, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => React.JSX.Element;
|
|
@@ -2978,10 +3007,10 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Profi
|
|
|
2978
3007
|
}
|
|
2979
3008
|
export const ProfitAndLossDetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
|
|
2980
3009
|
scope?: SidebarScope;
|
|
2981
|
-
hideClose?: boolean
|
|
2982
|
-
showDatePicker?: boolean
|
|
2983
|
-
chartColorsList?: string[]
|
|
2984
|
-
stringOverrides?: ProfitAndLossDetailedChartsStringOverrides
|
|
3010
|
+
hideClose?: boolean;
|
|
3011
|
+
showDatePicker?: boolean;
|
|
3012
|
+
chartColorsList?: string[];
|
|
3013
|
+
stringOverrides?: ProfitAndLossDetailedChartsStringOverrides;
|
|
2985
3014
|
}) => React.JSX.Element;
|
|
2986
3015
|
|
|
2987
3016
|
}
|
|
@@ -3302,7 +3331,7 @@ declare module '@layerfi/components/components/StatementOfCashFlowTable/Statemen
|
|
|
3302
3331
|
export const StatementOfCashFlowTable: ({ data, config, stringOverrides, }: {
|
|
3303
3332
|
data: StatementOfCashFlow;
|
|
3304
3333
|
config: StatementOfCashFlowRowProps[];
|
|
3305
|
-
stringOverrides?: StatementOfCashFlowTableStringOverrides
|
|
3334
|
+
stringOverrides?: StatementOfCashFlowTableStringOverrides;
|
|
3306
3335
|
}) => React.JSX.Element;
|
|
3307
3336
|
export {};
|
|
3308
3337
|
|
|
@@ -3417,20 +3446,20 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
|
3417
3446
|
import { useTasks } from '@layerfi/components/hooks/useTasks/index';
|
|
3418
3447
|
export type UseTasksContextType = ReturnType<typeof useTasks>;
|
|
3419
3448
|
export const UseTasksContext: React.Context<{
|
|
3420
|
-
data?: import("@layerfi/components/types/tasks").TaskTypes[]
|
|
3421
|
-
isLoading?: boolean
|
|
3422
|
-
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus
|
|
3423
|
-
isValidating?: boolean
|
|
3449
|
+
data?: import("@layerfi/components/types/tasks").TaskTypes[];
|
|
3450
|
+
isLoading?: boolean;
|
|
3451
|
+
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
|
|
3452
|
+
isValidating?: boolean;
|
|
3424
3453
|
error?: unknown;
|
|
3425
3454
|
refetch: () => void;
|
|
3426
3455
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
3427
3456
|
uploadDocumentForTask: (taskId: string, file: File) => void;
|
|
3428
3457
|
}>;
|
|
3429
3458
|
export const useTasksContext: () => {
|
|
3430
|
-
data?: import("@layerfi/components/types/tasks").TaskTypes[]
|
|
3431
|
-
isLoading?: boolean
|
|
3432
|
-
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus
|
|
3433
|
-
isValidating?: boolean
|
|
3459
|
+
data?: import("@layerfi/components/types/tasks").TaskTypes[];
|
|
3460
|
+
isLoading?: boolean;
|
|
3461
|
+
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
|
|
3462
|
+
isValidating?: boolean;
|
|
3434
3463
|
error?: unknown;
|
|
3435
3464
|
refetch: () => void;
|
|
3436
3465
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
@@ -3440,21 +3469,21 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
|
3440
3469
|
header?: string;
|
|
3441
3470
|
}
|
|
3442
3471
|
export const Tasks: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
|
|
3443
|
-
tasksHeader?: string
|
|
3444
|
-
collapsable?: boolean
|
|
3445
|
-
defaultCollapsed?: boolean
|
|
3446
|
-
collapsedWhenComplete?: boolean
|
|
3447
|
-
stringOverrides?: TasksStringOverrides
|
|
3472
|
+
tasksHeader?: string;
|
|
3473
|
+
collapsable?: boolean;
|
|
3474
|
+
defaultCollapsed?: boolean;
|
|
3475
|
+
collapsedWhenComplete?: boolean;
|
|
3476
|
+
stringOverrides?: TasksStringOverrides;
|
|
3448
3477
|
}) => React.JSX.Element;
|
|
3449
3478
|
export const TasksProvider: ({ children }: {
|
|
3450
3479
|
children: ReactNode;
|
|
3451
3480
|
}) => React.JSX.Element;
|
|
3452
3481
|
export const TasksComponent: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
|
|
3453
|
-
tasksHeader?: string
|
|
3454
|
-
collapsable?: boolean
|
|
3455
|
-
defaultCollapsed?: boolean
|
|
3456
|
-
collapsedWhenComplete?: boolean
|
|
3457
|
-
stringOverrides?: TasksStringOverrides
|
|
3482
|
+
tasksHeader?: string;
|
|
3483
|
+
collapsable?: boolean;
|
|
3484
|
+
defaultCollapsed?: boolean;
|
|
3485
|
+
collapsedWhenComplete?: boolean;
|
|
3486
|
+
stringOverrides?: TasksStringOverrides;
|
|
3458
3487
|
}) => React.JSX.Element;
|
|
3459
3488
|
|
|
3460
3489
|
}
|
|
@@ -3465,9 +3494,9 @@ declare module '@layerfi/components/components/Tasks/index' {
|
|
|
3465
3494
|
declare module '@layerfi/components/components/TasksHeader/TasksHeader' {
|
|
3466
3495
|
import React from 'react';
|
|
3467
3496
|
export const TasksHeader: ({ tasksHeader, collapsable, open, toggleContent, }: {
|
|
3468
|
-
tasksHeader?: string
|
|
3469
|
-
collapsable?: boolean
|
|
3470
|
-
open?: boolean
|
|
3497
|
+
tasksHeader?: string;
|
|
3498
|
+
collapsable?: boolean;
|
|
3499
|
+
open?: boolean;
|
|
3471
3500
|
toggleContent: () => void;
|
|
3472
3501
|
}) => React.JSX.Element;
|
|
3473
3502
|
|
|
@@ -3479,7 +3508,7 @@ declare module '@layerfi/components/components/TasksHeader/index' {
|
|
|
3479
3508
|
declare module '@layerfi/components/components/TasksList/TasksList' {
|
|
3480
3509
|
import React from 'react';
|
|
3481
3510
|
export const TasksList: ({ pageSize }: {
|
|
3482
|
-
pageSize?: number
|
|
3511
|
+
pageSize?: number;
|
|
3483
3512
|
}) => React.JSX.Element;
|
|
3484
3513
|
|
|
3485
3514
|
}
|
|
@@ -3581,7 +3610,7 @@ declare module '@layerfi/components/components/Tooltip/Tooltip' {
|
|
|
3581
3610
|
children: ReactNode;
|
|
3582
3611
|
} & TooltipOptions) => React.JSX.Element;
|
|
3583
3612
|
export const TooltipTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
|
|
3584
|
-
asChild?: boolean
|
|
3613
|
+
asChild?: boolean;
|
|
3585
3614
|
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3586
3615
|
type TooltipContentProps = Omit<HTMLProps<HTMLDivElement>, 'style'>;
|
|
3587
3616
|
export const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3627,7 +3656,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
3627
3656
|
update: () => void;
|
|
3628
3657
|
floatingStyles: React.CSSProperties;
|
|
3629
3658
|
open: boolean;
|
|
3630
|
-
onOpenChange: (open: boolean, event?: Event
|
|
3659
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
3631
3660
|
events: import("@floating-ui/react").FloatingEvents;
|
|
3632
3661
|
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
3633
3662
|
nodeId: string | undefined;
|
|
@@ -3635,12 +3664,12 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
3635
3664
|
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
3636
3665
|
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
3637
3666
|
};
|
|
3638
|
-
getReferenceProps: (userProps?: React.HTMLProps<Element>
|
|
3639
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>
|
|
3640
|
-
getItemProps: (userProps?:
|
|
3641
|
-
active?: boolean
|
|
3642
|
-
selected?: boolean
|
|
3643
|
-
})
|
|
3667
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
3668
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
3669
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
3670
|
+
active?: boolean;
|
|
3671
|
+
selected?: boolean;
|
|
3672
|
+
}) => Record<string, unknown>;
|
|
3644
3673
|
open: boolean;
|
|
3645
3674
|
setOpen: (open: boolean) => void;
|
|
3646
3675
|
isMounted: boolean;
|
|
@@ -3676,7 +3705,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
3676
3705
|
update: () => void;
|
|
3677
3706
|
floatingStyles: React.CSSProperties;
|
|
3678
3707
|
open: boolean;
|
|
3679
|
-
onOpenChange: (open: boolean, event?: Event
|
|
3708
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
3680
3709
|
events: import("@floating-ui/react").FloatingEvents;
|
|
3681
3710
|
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
3682
3711
|
nodeId: string | undefined;
|
|
@@ -3684,12 +3713,12 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
|
|
|
3684
3713
|
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
3685
3714
|
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
3686
3715
|
};
|
|
3687
|
-
getReferenceProps: (userProps?: React.HTMLProps<Element>
|
|
3688
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>
|
|
3689
|
-
getItemProps: (userProps?:
|
|
3690
|
-
active?: boolean
|
|
3691
|
-
selected?: boolean
|
|
3692
|
-
})
|
|
3716
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
3717
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
3718
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
3719
|
+
active?: boolean;
|
|
3720
|
+
selected?: boolean;
|
|
3721
|
+
}) => Record<string, unknown>;
|
|
3693
3722
|
open: boolean;
|
|
3694
3723
|
setOpen: (open: boolean) => void;
|
|
3695
3724
|
isMounted: boolean;
|
|
@@ -3813,13 +3842,119 @@ declare module '@layerfi/components/components/ViewHeader/index' {
|
|
|
3813
3842
|
export { ViewHeader } from '@layerfi/components/components/ViewHeader/ViewHeader';
|
|
3814
3843
|
|
|
3815
3844
|
}
|
|
3816
|
-
declare module '@layerfi/components/components/ui/
|
|
3845
|
+
declare module '@layerfi/components/components/ui/Button/Button' {
|
|
3846
|
+
import React from 'react';
|
|
3847
|
+
import { type ButtonProps } from 'react-aria-components';
|
|
3848
|
+
type ButtonVariant = 'solid' | 'ghost';
|
|
3849
|
+
type ButtonSize = 'md' | 'lg';
|
|
3850
|
+
const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "className"> & {
|
|
3851
|
+
icon?: true;
|
|
3852
|
+
size?: ButtonSize;
|
|
3853
|
+
variant?: ButtonVariant;
|
|
3854
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
3855
|
+
export { Button };
|
|
3856
|
+
|
|
3857
|
+
}
|
|
3858
|
+
declare module '@layerfi/components/components/ui/Checkbox/Checkbox' {
|
|
3859
|
+
import React from 'react';
|
|
3860
|
+
import { type CheckboxProps } from 'react-aria-components';
|
|
3861
|
+
export function Checkbox({ children, ...props }: Omit<CheckboxProps, 'className'>): React.JSX.Element;
|
|
3862
|
+
|
|
3863
|
+
}
|
|
3864
|
+
declare module '@layerfi/components/components/ui/Loading/LoadingSpinner' {
|
|
3865
|
+
import React from 'react';
|
|
3866
|
+
import { type LucideProps } from 'lucide-react';
|
|
3867
|
+
export function LoadingSpinner({ size }: Pick<LucideProps, 'size'>): React.JSX.Element;
|
|
3868
|
+
|
|
3869
|
+
}
|
|
3870
|
+
declare module '@layerfi/components/components/ui/Modal/Modal' {
|
|
3871
|
+
import React, { type ComponentProps } from 'react';
|
|
3872
|
+
import { type DialogProps, type ModalOverlayProps } from 'react-aria-components';
|
|
3873
|
+
const ModalOverlay: React.ForwardRefExoticComponent<Omit<ModalOverlayProps, "className"> & React.RefAttributes<HTMLDivElement>>;
|
|
3874
|
+
const Dialog: React.ForwardRefExoticComponent<Omit<DialogProps, "className"> & React.RefAttributes<HTMLElement>>;
|
|
3875
|
+
type AllowedModalProps = Pick<ComponentProps<typeof ModalOverlay>, 'isOpen' | 'onOpenChange'>;
|
|
3876
|
+
type AllowedDialogProps = Pick<ComponentProps<typeof Dialog>, 'children'>;
|
|
3877
|
+
type ModalProps = AllowedModalProps & AllowedDialogProps;
|
|
3878
|
+
export function Modal({ isOpen, onOpenChange, children }: ModalProps): React.JSX.Element;
|
|
3879
|
+
export {};
|
|
3880
|
+
|
|
3881
|
+
}
|
|
3882
|
+
declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
|
|
3883
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3884
|
+
type ModalContextBarProps = {
|
|
3885
|
+
onClose?: () => void;
|
|
3886
|
+
};
|
|
3887
|
+
function ModalContextBar({ onClose }: ModalContextBarProps): React.JSX.Element;
|
|
3888
|
+
const ModalHeading: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react-aria-components").HeadingProps & React.RefAttributes<HTMLHeadingElement>, "className"> & {
|
|
3889
|
+
size?: "sm";
|
|
3890
|
+
pbe?: "2xs" | "xs" | "sm" | "md" | "lg";
|
|
3891
|
+
}, "ref"> & React.RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
3892
|
+
const ModalDescription: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
3893
|
+
slot?: string;
|
|
3894
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
3895
|
+
pbe?: "xs" | "sm" | "md" | "lg";
|
|
3896
|
+
align?: "center";
|
|
3897
|
+
} & {
|
|
3898
|
+
children?: React.ReactNode | undefined;
|
|
3899
|
+
} & React.RefAttributes<HTMLParagraphElement>, "slot">, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
3900
|
+
function ModalContent({ children }: PropsWithChildren): React.JSX.Element;
|
|
3901
|
+
function ModalActions({ children }: PropsWithChildren): React.JSX.Element;
|
|
3902
|
+
export { ModalContextBar, ModalHeading, ModalDescription, ModalContent, ModalActions, };
|
|
3903
|
+
|
|
3904
|
+
}
|
|
3905
|
+
declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
3817
3906
|
import React, { type PropsWithChildren } from 'react';
|
|
3818
3907
|
export type StackProps = PropsWithChildren<{
|
|
3819
3908
|
gap?: '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '5xl';
|
|
3820
|
-
align?: 'start';
|
|
3909
|
+
align?: 'start' | 'center';
|
|
3910
|
+
justify?: 'center';
|
|
3911
|
+
slot?: string;
|
|
3821
3912
|
}>;
|
|
3822
|
-
export function VStack({ align, children, gap }: StackProps): React.JSX.Element;
|
|
3913
|
+
export function VStack({ align, children, gap, justify, ...restProps }: StackProps): React.JSX.Element;
|
|
3914
|
+
|
|
3915
|
+
}
|
|
3916
|
+
declare module '@layerfi/components/components/ui/Typography/Heading' {
|
|
3917
|
+
import React from 'react';
|
|
3918
|
+
type HeadingDataProps = {
|
|
3919
|
+
size?: 'sm';
|
|
3920
|
+
pbe?: '2xs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
3921
|
+
};
|
|
3922
|
+
const Heading: React.ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & React.RefAttributes<HTMLHeadingElement>, "className"> & HeadingDataProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
3923
|
+
export { Heading };
|
|
3924
|
+
|
|
3925
|
+
}
|
|
3926
|
+
declare module '@layerfi/components/components/ui/Typography/Text' {
|
|
3927
|
+
import React from 'react';
|
|
3928
|
+
type TextProps = {
|
|
3929
|
+
slot?: string;
|
|
3930
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3931
|
+
pbe?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3932
|
+
align?: 'center';
|
|
3933
|
+
};
|
|
3934
|
+
const P: React.ForwardRefExoticComponent<TextProps & {
|
|
3935
|
+
children?: React.ReactNode | undefined;
|
|
3936
|
+
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
3937
|
+
export { P };
|
|
3938
|
+
|
|
3939
|
+
}
|
|
3940
|
+
declare module '@layerfi/components/components/utility/ConditionalList' {
|
|
3941
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3942
|
+
type ConditionalListProps<T> = {
|
|
3943
|
+
list: ReadonlyArray<T>;
|
|
3944
|
+
Empty: React.ReactNode;
|
|
3945
|
+
children: React.FC<{
|
|
3946
|
+
item: T;
|
|
3947
|
+
}>;
|
|
3948
|
+
Container?: React.FC<PropsWithChildren>;
|
|
3949
|
+
} & ({
|
|
3950
|
+
isLoading: boolean;
|
|
3951
|
+
Loading: React.ReactNode;
|
|
3952
|
+
} | {
|
|
3953
|
+
isLoading?: never;
|
|
3954
|
+
Loading?: never;
|
|
3955
|
+
});
|
|
3956
|
+
export function ConditionalList<T>({ list, isLoading, Empty, Container, Loading, children }: ConditionalListProps<T>): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
3957
|
+
export {};
|
|
3823
3958
|
|
|
3824
3959
|
}
|
|
3825
3960
|
declare module '@layerfi/components/config/charts' {
|
|
@@ -3896,7 +4031,6 @@ declare module '@layerfi/components/config/theme' {
|
|
|
3896
4031
|
|
|
3897
4032
|
}
|
|
3898
4033
|
declare module '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext' {
|
|
3899
|
-
/// <reference types="react" />
|
|
3900
4034
|
import { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/index';
|
|
3901
4035
|
export type BalanceSheetContextType = ReturnType<typeof useBalanceSheet>;
|
|
3902
4036
|
export const BalanceSheetContext: import("react").Context<{
|
|
@@ -3912,49 +4046,48 @@ declare module '@layerfi/components/contexts/BalanceSheetContext/index' {
|
|
|
3912
4046
|
|
|
3913
4047
|
}
|
|
3914
4048
|
declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
|
|
3915
|
-
/// <reference types="react" />
|
|
3916
4049
|
import { useBankTransactions } from '@layerfi/components/hooks/useBankTransactions/index';
|
|
3917
4050
|
import { DisplayState } from '@layerfi/components/types';
|
|
3918
4051
|
export type BankTransactionsContextType = ReturnType<typeof useBankTransactions>;
|
|
3919
4052
|
export const BankTransactionsContext: import("react").Context<{
|
|
3920
|
-
data?: import("@layerfi/components/types").BankTransaction[]
|
|
3921
|
-
metadata?: import("@layerfi/components/types").Metadata
|
|
4053
|
+
data?: import("@layerfi/components/types").BankTransaction[];
|
|
4054
|
+
metadata?: import("@layerfi/components/types").Metadata;
|
|
3922
4055
|
loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
|
|
3923
4056
|
isLoading: boolean;
|
|
3924
4057
|
isValidating: boolean;
|
|
3925
4058
|
error: unknown;
|
|
3926
|
-
hasMore?: boolean
|
|
3927
|
-
filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters
|
|
3928
|
-
accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[]
|
|
4059
|
+
hasMore?: boolean;
|
|
4060
|
+
filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters;
|
|
4061
|
+
accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
|
|
3929
4062
|
display: DisplayState;
|
|
3930
|
-
categorize: (id:
|
|
3931
|
-
match: (id:
|
|
4063
|
+
categorize: (id: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
|
|
4064
|
+
match: (id: import("@layerfi/components/types").BankTransaction["id"], matchId: import("../../types").BankTransaction["id"], notify?: boolean) => Promise<void>;
|
|
3932
4065
|
updateOneLocal: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
3933
4066
|
shouldHideAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => boolean;
|
|
3934
4067
|
removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
3935
4068
|
refetch: () => void;
|
|
3936
|
-
setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>
|
|
4069
|
+
setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
|
|
3937
4070
|
activate: () => void;
|
|
3938
4071
|
fetchMore: () => void;
|
|
3939
4072
|
}>;
|
|
3940
4073
|
export const useBankTransactionsContext: () => {
|
|
3941
|
-
data?: import("@layerfi/components/types").BankTransaction[]
|
|
3942
|
-
metadata?: import("@layerfi/components/types").Metadata
|
|
4074
|
+
data?: import("@layerfi/components/types").BankTransaction[];
|
|
4075
|
+
metadata?: import("@layerfi/components/types").Metadata;
|
|
3943
4076
|
loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
|
|
3944
4077
|
isLoading: boolean;
|
|
3945
4078
|
isValidating: boolean;
|
|
3946
4079
|
error: unknown;
|
|
3947
|
-
hasMore?: boolean
|
|
3948
|
-
filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters
|
|
3949
|
-
accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[]
|
|
4080
|
+
hasMore?: boolean;
|
|
4081
|
+
filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters;
|
|
4082
|
+
accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
|
|
3950
4083
|
display: DisplayState;
|
|
3951
|
-
categorize: (id:
|
|
3952
|
-
match: (id:
|
|
4084
|
+
categorize: (id: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
|
|
4085
|
+
match: (id: import("@layerfi/components/types").BankTransaction["id"], matchId: import("../../types").BankTransaction["id"], notify?: boolean) => Promise<void>;
|
|
3953
4086
|
updateOneLocal: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
3954
4087
|
shouldHideAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => boolean;
|
|
3955
4088
|
removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
3956
4089
|
refetch: () => void;
|
|
3957
|
-
setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>
|
|
4090
|
+
setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
|
|
3958
4091
|
activate: () => void;
|
|
3959
4092
|
fetchMore: () => void;
|
|
3960
4093
|
};
|
|
@@ -3965,7 +4098,6 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/index' {
|
|
|
3965
4098
|
|
|
3966
4099
|
}
|
|
3967
4100
|
declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext' {
|
|
3968
|
-
/// <reference types="react" />
|
|
3969
4101
|
import { useChartOfAccounts } from '@layerfi/components/hooks/useChartOfAccounts/index';
|
|
3970
4102
|
export type ChartOfAccountsContextType = ReturnType<typeof useChartOfAccounts>;
|
|
3971
4103
|
export const ChartOfAccountsContext: import("react").Context<{
|
|
@@ -3998,7 +4130,6 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/index' {
|
|
|
3998
4130
|
|
|
3999
4131
|
}
|
|
4000
4132
|
declare module '@layerfi/components/contexts/DrawerContext/DrawerContext' {
|
|
4001
|
-
/// <reference types="react" />
|
|
4002
4133
|
import { useDrawer } from '@layerfi/components/hooks/useDrawer/index';
|
|
4003
4134
|
export type DrawerContextType = ReturnType<typeof useDrawer>;
|
|
4004
4135
|
export const DrawerContext: import("react").Context<{
|
|
@@ -4015,33 +4146,35 @@ declare module '@layerfi/components/contexts/DrawerContext/index' {
|
|
|
4015
4146
|
|
|
4016
4147
|
}
|
|
4017
4148
|
declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
|
|
4018
|
-
/// <reference types="react" />
|
|
4019
4149
|
import { useJournal } from '@layerfi/components/hooks/useJournal/index';
|
|
4020
4150
|
export type JournalContextType = ReturnType<typeof useJournal>;
|
|
4021
4151
|
export const JournalContext: import("react").Context<{
|
|
4022
|
-
data?: import("@layerfi/components/types").JournalEntry[]
|
|
4023
|
-
isLoading?: boolean
|
|
4024
|
-
isLoadingEntry?: boolean
|
|
4025
|
-
isValidating?: boolean
|
|
4026
|
-
isValidatingEntry?: boolean
|
|
4152
|
+
data?: import("@layerfi/components/types").JournalEntry[];
|
|
4153
|
+
isLoading?: boolean;
|
|
4154
|
+
isLoadingEntry?: boolean;
|
|
4155
|
+
isValidating?: boolean;
|
|
4156
|
+
isValidatingEntry?: boolean;
|
|
4027
4157
|
error?: unknown;
|
|
4028
4158
|
errorEntry?: unknown;
|
|
4029
4159
|
refetch: () => void;
|
|
4030
|
-
selectedEntryId?: string
|
|
4031
|
-
setSelectedEntryId: (id?: string
|
|
4160
|
+
selectedEntryId?: string;
|
|
4161
|
+
setSelectedEntryId: (id?: string) => void;
|
|
4032
4162
|
closeSelectedEntry: () => void;
|
|
4033
4163
|
create: (newJournalEntry: import("@layerfi/components/types/journal").NewApiJournalEntry) => void;
|
|
4034
|
-
changeFormData: (name: string, value: string |
|
|
4164
|
+
changeFormData: (name: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined | number, lineItemIndex?: number, accounts?: import("../../types/chart_of_accounts").LedgerAccountBalance[] | undefined) => void;
|
|
4035
4165
|
submitForm: () => void;
|
|
4036
4166
|
cancelForm: () => void;
|
|
4037
4167
|
addEntry: () => void;
|
|
4038
4168
|
sendingForm: boolean;
|
|
4039
|
-
form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes
|
|
4040
|
-
apiError?: string
|
|
4041
|
-
setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes
|
|
4169
|
+
form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes;
|
|
4170
|
+
apiError?: string;
|
|
4171
|
+
setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes) => void;
|
|
4042
4172
|
addEntryLine: (direction: import("@layerfi/components/index").Direction) => void;
|
|
4043
4173
|
removeEntryLine: (index: number) => void;
|
|
4044
|
-
reverseEntry: (entryId: string) =>
|
|
4174
|
+
reverseEntry: (entryId: string) => ReturnType<(baseUrl: string, accessToken: string | undefined, options?: {
|
|
4175
|
+
params?: Record<string, string | undefined> | undefined;
|
|
4176
|
+
body?: Record<string, unknown> | undefined;
|
|
4177
|
+
} | undefined) => Promise<Record<never, never>>>;
|
|
4045
4178
|
}>;
|
|
4046
4179
|
|
|
4047
4180
|
}
|
|
@@ -4050,7 +4183,6 @@ declare module '@layerfi/components/contexts/JournalContext/index' {
|
|
|
4050
4183
|
|
|
4051
4184
|
}
|
|
4052
4185
|
declare module '@layerfi/components/contexts/LayerContext/LayerContext' {
|
|
4053
|
-
/// <reference types="react" />
|
|
4054
4186
|
import { LayerContextValues } from '@layerfi/components/types';
|
|
4055
4187
|
import { LayerContextHelpers, LayerThemeConfig } from '@layerfi/components/types/layer_context';
|
|
4056
4188
|
export const LayerContext: import("react").Context<LayerContextValues & LayerContextHelpers & {
|
|
@@ -4066,23 +4198,22 @@ declare module '@layerfi/components/contexts/LayerContext/index' {
|
|
|
4066
4198
|
|
|
4067
4199
|
}
|
|
4068
4200
|
declare module '@layerfi/components/contexts/LedgerAccountsContext/LedgerAccountsContext' {
|
|
4069
|
-
/// <reference types="react" />
|
|
4070
4201
|
import { useLedgerAccounts } from '@layerfi/components/hooks/useLedgerAccounts/index';
|
|
4071
4202
|
export type LedgerAccountsContextType = ReturnType<typeof useLedgerAccounts>;
|
|
4072
4203
|
export const LedgerAccountsContext: import("react").Context<{
|
|
4073
|
-
data?: import("@layerfi/components/types").LedgerAccounts
|
|
4074
|
-
entryData?: import("@layerfi/components/types").LedgerAccountsEntry
|
|
4075
|
-
isLoading?: boolean
|
|
4076
|
-
isLoadingEntry?: boolean
|
|
4077
|
-
isValidating?: boolean
|
|
4078
|
-
isValidatingEntry?: boolean
|
|
4204
|
+
data?: import("@layerfi/components/types").LedgerAccounts;
|
|
4205
|
+
entryData?: import("@layerfi/components/types").LedgerAccountsEntry;
|
|
4206
|
+
isLoading?: boolean;
|
|
4207
|
+
isLoadingEntry?: boolean;
|
|
4208
|
+
isValidating?: boolean;
|
|
4209
|
+
isValidatingEntry?: boolean;
|
|
4079
4210
|
error?: unknown;
|
|
4080
4211
|
errorEntry?: unknown;
|
|
4081
4212
|
refetch: () => void;
|
|
4082
|
-
accountId?: string
|
|
4083
|
-
setAccountId: (id?: string
|
|
4084
|
-
selectedEntryId?: string
|
|
4085
|
-
setSelectedEntryId: (id?: string
|
|
4213
|
+
accountId?: string;
|
|
4214
|
+
setAccountId: (id?: string) => void;
|
|
4215
|
+
selectedEntryId?: string;
|
|
4216
|
+
setSelectedEntryId: (id?: string) => void;
|
|
4086
4217
|
closeSelectedEntry: () => void;
|
|
4087
4218
|
}>;
|
|
4088
4219
|
|
|
@@ -4092,25 +4223,24 @@ declare module '@layerfi/components/contexts/LedgerAccountsContext/index' {
|
|
|
4092
4223
|
|
|
4093
4224
|
}
|
|
4094
4225
|
declare module '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccountsContext' {
|
|
4095
|
-
/// <reference types="react" />
|
|
4096
4226
|
import { useLinkedAccounts } from '@layerfi/components/hooks/useLinkedAccounts/index';
|
|
4097
4227
|
export type LinkedAccountsContextType = ReturnType<typeof useLinkedAccounts>;
|
|
4098
4228
|
export const LinkedAccountsContext: import("react").Context<{
|
|
4099
|
-
data?: import("@layerfi/components/types/linked_accounts").LinkedAccount[]
|
|
4229
|
+
data?: import("@layerfi/components/types/linked_accounts").LinkedAccount[];
|
|
4100
4230
|
isLoading: boolean;
|
|
4101
4231
|
loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
|
|
4102
4232
|
isValidating: boolean;
|
|
4103
4233
|
error: unknown;
|
|
4104
|
-
addConnection: (source: import("@layerfi/components/types/linked_accounts").
|
|
4105
|
-
removeConnection: (source: import("@layerfi/components/types/linked_accounts").
|
|
4106
|
-
repairConnection: (source: import("@layerfi/components/types/linked_accounts").
|
|
4234
|
+
addConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource) => void;
|
|
4235
|
+
removeConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource, sourceId: string) => void;
|
|
4236
|
+
repairConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource, sourceId: string) => void;
|
|
4107
4237
|
updateConnectionStatus: () => void;
|
|
4108
|
-
refetchAccounts: () => void
|
|
4238
|
+
refetchAccounts: () => import("@layerfi/components/types/utility/promises").Awaitable<void>;
|
|
4109
4239
|
syncAccounts: () => void;
|
|
4110
|
-
unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").
|
|
4111
|
-
confirmAccount: (source: import("@layerfi/components/types/linked_accounts").
|
|
4112
|
-
|
|
4113
|
-
breakConnection: (source: import("@layerfi/components/types/linked_accounts").
|
|
4240
|
+
unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
|
|
4241
|
+
confirmAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
|
|
4242
|
+
excludeAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
|
|
4243
|
+
breakConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource, connectionExternalId: string) => void;
|
|
4114
4244
|
}>;
|
|
4115
4245
|
|
|
4116
4246
|
}
|
|
@@ -4119,7 +4249,6 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
|
|
|
4119
4249
|
|
|
4120
4250
|
}
|
|
4121
4251
|
declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/ProfitAndLossComparisonContext' {
|
|
4122
|
-
/// <reference types="react" />
|
|
4123
4252
|
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
4124
4253
|
export const PNLComparisonContext: import("react").Context<{
|
|
4125
4254
|
data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
|
|
@@ -4132,9 +4261,9 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
|
|
|
4132
4261
|
setCompareMonths: (months: number) => void;
|
|
4133
4262
|
compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
|
|
4134
4263
|
setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
|
|
4135
|
-
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean
|
|
4136
|
-
getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat
|
|
4137
|
-
data?: S3PresignedUrl
|
|
4264
|
+
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean) => void;
|
|
4265
|
+
getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat) => Promise<{
|
|
4266
|
+
data?: S3PresignedUrl;
|
|
4138
4267
|
error?: unknown;
|
|
4139
4268
|
}>;
|
|
4140
4269
|
}>;
|
|
@@ -4145,7 +4274,6 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/inde
|
|
|
4145
4274
|
|
|
4146
4275
|
}
|
|
4147
4276
|
declare module '@layerfi/components/contexts/ReceiptsContext/ReceiptsContext' {
|
|
4148
|
-
/// <reference types="react" />
|
|
4149
4277
|
import { useReceipts } from '@layerfi/components/hooks/useReceipts/index';
|
|
4150
4278
|
export type ReceiptsContextType = ReturnType<typeof useReceipts>;
|
|
4151
4279
|
export const ReceiptsContext: import("react").Context<{
|
|
@@ -4165,7 +4293,6 @@ declare module '@layerfi/components/contexts/ReceiptsContext/index' {
|
|
|
4165
4293
|
|
|
4166
4294
|
}
|
|
4167
4295
|
declare module '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext' {
|
|
4168
|
-
/// <reference types="react" />
|
|
4169
4296
|
import { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/index';
|
|
4170
4297
|
export type StatementOfCashFlowContextType = ReturnType<typeof useStatementOfCashFlow>;
|
|
4171
4298
|
export const StatementOfCashFlowContext: import("react").Context<{
|
|
@@ -4196,14 +4323,13 @@ declare module '@layerfi/components/contexts/TableContext/index' {
|
|
|
4196
4323
|
|
|
4197
4324
|
}
|
|
4198
4325
|
declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
|
|
4199
|
-
/// <reference types="react" />
|
|
4200
4326
|
import { useTasks } from '@layerfi/components/hooks/useTasks/index';
|
|
4201
4327
|
export type TasksContextType = ReturnType<typeof useTasks>;
|
|
4202
4328
|
export const TasksContext: import("react").Context<{
|
|
4203
|
-
data?: import("@layerfi/components/types/tasks").TaskTypes[]
|
|
4204
|
-
isLoading?: boolean
|
|
4205
|
-
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus
|
|
4206
|
-
isValidating?: boolean
|
|
4329
|
+
data?: import("@layerfi/components/types/tasks").TaskTypes[];
|
|
4330
|
+
isLoading?: boolean;
|
|
4331
|
+
loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
|
|
4332
|
+
isValidating?: boolean;
|
|
4207
4333
|
error?: unknown;
|
|
4208
4334
|
refetch: () => void;
|
|
4209
4335
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
@@ -4214,6 +4340,22 @@ declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
|
|
|
4214
4340
|
declare module '@layerfi/components/contexts/TasksContext/index' {
|
|
4215
4341
|
export { TasksContext } from '@layerfi/components/contexts/TasksContext/TasksContext';
|
|
4216
4342
|
|
|
4343
|
+
}
|
|
4344
|
+
declare module '@layerfi/components/hooks/useAuth' {
|
|
4345
|
+
export function useAuth(): import("swr").SWRResponse<{
|
|
4346
|
+
access_token: string;
|
|
4347
|
+
token_type: string;
|
|
4348
|
+
expires_in: number;
|
|
4349
|
+
apiUrl: "https://api.layerfi.com" | "https://sandbox.layerfi.com" | "https://staging.layerfi.com";
|
|
4350
|
+
}, any, {
|
|
4351
|
+
refreshInterval: (latestData: {
|
|
4352
|
+
access_token: string;
|
|
4353
|
+
token_type: string;
|
|
4354
|
+
expires_in: number;
|
|
4355
|
+
apiUrl: "https://api.layerfi.com" | "https://sandbox.layerfi.com" | "https://staging.layerfi.com";
|
|
4356
|
+
} | undefined) => number;
|
|
4357
|
+
}>;
|
|
4358
|
+
|
|
4217
4359
|
}
|
|
4218
4360
|
declare module '@layerfi/components/hooks/useBalanceSheet/index' {
|
|
4219
4361
|
export { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/useBalanceSheet';
|
|
@@ -4255,9 +4397,11 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
|
|
|
4255
4397
|
dateRange?: Partial<DateRange>;
|
|
4256
4398
|
tagFilter?: TagFilterInput;
|
|
4257
4399
|
}
|
|
4258
|
-
export type
|
|
4400
|
+
export type UseBankTransactionsParams = {
|
|
4259
4401
|
scope?: DisplayState;
|
|
4260
|
-
|
|
4402
|
+
monthlyView?: boolean;
|
|
4403
|
+
};
|
|
4404
|
+
export type UseBankTransactions = (params?: UseBankTransactionsParams) => {
|
|
4261
4405
|
data?: BankTransaction[];
|
|
4262
4406
|
metadata?: Metadata;
|
|
4263
4407
|
loadingStatus: LoadedStatus;
|
|
@@ -4281,7 +4425,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
|
|
|
4281
4425
|
|
|
4282
4426
|
}
|
|
4283
4427
|
declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
|
|
4284
|
-
import { UseBankTransactions } from
|
|
4428
|
+
import { UseBankTransactions } from "@layerfi/components/hooks/useBankTransactions/types";
|
|
4285
4429
|
export const useBankTransactions: UseBankTransactions;
|
|
4286
4430
|
|
|
4287
4431
|
}
|
|
@@ -4391,7 +4535,6 @@ declare module '@layerfi/components/hooks/useElementSize/index' {
|
|
|
4391
4535
|
|
|
4392
4536
|
}
|
|
4393
4537
|
declare module '@layerfi/components/hooks/useElementSize/useElementSize' {
|
|
4394
|
-
/// <reference types="react" />
|
|
4395
4538
|
export const useElementSize: <T extends HTMLElement>(callback: (target: T, entry: ResizeObserverEntry, size: {
|
|
4396
4539
|
width: number;
|
|
4397
4540
|
height: number;
|
|
@@ -4405,10 +4548,26 @@ declare module '@layerfi/components/hooks/useElementViewSize/index' {
|
|
|
4405
4548
|
|
|
4406
4549
|
}
|
|
4407
4550
|
declare module '@layerfi/components/hooks/useElementViewSize/useElementViewSize' {
|
|
4408
|
-
/// <reference types="react" />
|
|
4409
4551
|
import { View } from '@layerfi/components/types/general';
|
|
4410
4552
|
export const useElementViewSize: <T extends HTMLElement>(callback: (view: View) => void) => import("react").RefObject<T>;
|
|
4411
4553
|
|
|
4554
|
+
}
|
|
4555
|
+
declare module '@layerfi/components/hooks/useIsVisible/index' {
|
|
4556
|
+
export { useIsVisible } from '@layerfi/components/hooks/useIsVisible/useIsVisible';
|
|
4557
|
+
|
|
4558
|
+
}
|
|
4559
|
+
declare module '@layerfi/components/hooks/useIsVisible/useIsVisible' {
|
|
4560
|
+
/**
|
|
4561
|
+
* Attach via ref to the element you want to monitor visibility of the element on the page
|
|
4562
|
+
*
|
|
4563
|
+
* @example
|
|
4564
|
+
* const scrollPaginationRef = useRef(null)
|
|
4565
|
+
* const isVisible = useIsVisible(scrollPaginationRef)
|
|
4566
|
+
*
|
|
4567
|
+
* <div ref={scrollPaginationRef} />
|
|
4568
|
+
*/
|
|
4569
|
+
export const useIsVisible: (ref: React.RefObject<HTMLElement>) => boolean;
|
|
4570
|
+
|
|
4412
4571
|
}
|
|
4413
4572
|
declare module '@layerfi/components/hooks/useJournal/index' {
|
|
4414
4573
|
export { useJournal } from '@layerfi/components/hooks/useJournal/useJournal';
|
|
@@ -4494,23 +4653,25 @@ declare module '@layerfi/components/hooks/useLinkedAccounts/mockData' {
|
|
|
4494
4653
|
}
|
|
4495
4654
|
declare module '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts' {
|
|
4496
4655
|
import { LoadedStatus } from '@layerfi/components/types/general';
|
|
4497
|
-
import { LinkedAccount,
|
|
4656
|
+
import { LinkedAccount, AccountSource } from '@layerfi/components/types/linked_accounts';
|
|
4657
|
+
import type { Awaitable } from '@layerfi/components/types/utility/promises';
|
|
4658
|
+
export function getAccountsNeedingConfirmation(linkedAccounts: ReadonlyArray<LinkedAccount>): LinkedAccount[];
|
|
4498
4659
|
type UseLinkedAccounts = () => {
|
|
4499
4660
|
data?: LinkedAccount[];
|
|
4500
4661
|
isLoading: boolean;
|
|
4501
4662
|
loadingStatus: LoadedStatus;
|
|
4502
4663
|
isValidating: boolean;
|
|
4503
4664
|
error: unknown;
|
|
4504
|
-
addConnection: (source:
|
|
4505
|
-
removeConnection: (source:
|
|
4506
|
-
repairConnection: (source:
|
|
4665
|
+
addConnection: (source: AccountSource) => void;
|
|
4666
|
+
removeConnection: (source: AccountSource, sourceId: string) => void;
|
|
4667
|
+
repairConnection: (source: AccountSource, sourceId: string) => void;
|
|
4507
4668
|
updateConnectionStatus: () => void;
|
|
4508
|
-
refetchAccounts: () => void
|
|
4669
|
+
refetchAccounts: () => Awaitable<void>;
|
|
4509
4670
|
syncAccounts: () => void;
|
|
4510
|
-
unlinkAccount: (source:
|
|
4511
|
-
confirmAccount: (source:
|
|
4512
|
-
|
|
4513
|
-
breakConnection: (source:
|
|
4671
|
+
unlinkAccount: (source: AccountSource, accountId: string) => void;
|
|
4672
|
+
confirmAccount: (source: AccountSource, accountId: string) => void;
|
|
4673
|
+
excludeAccount: (source: AccountSource, accountId: string) => void;
|
|
4674
|
+
breakConnection: (source: AccountSource, connectionExternalId: string) => void;
|
|
4514
4675
|
};
|
|
4515
4676
|
export const useLinkedAccounts: UseLinkedAccounts;
|
|
4516
4677
|
export {};
|
|
@@ -4599,7 +4760,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossLTM'
|
|
|
4599
4760
|
data: ProfitAndLossSummaryData[];
|
|
4600
4761
|
isLoading?: boolean;
|
|
4601
4762
|
loaded?: LoadedStatus;
|
|
4602
|
-
error?:
|
|
4763
|
+
error?: unknown;
|
|
4603
4764
|
pullData: (date: Date) => void;
|
|
4604
4765
|
refetch: () => void;
|
|
4605
4766
|
};
|
|
@@ -4626,7 +4787,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossQuery
|
|
|
4626
4787
|
data?: ProfitAndLoss;
|
|
4627
4788
|
isLoading: boolean;
|
|
4628
4789
|
isValidating: boolean;
|
|
4629
|
-
error:
|
|
4790
|
+
error: unknown;
|
|
4630
4791
|
refetch: () => void;
|
|
4631
4792
|
startDate: Date;
|
|
4632
4793
|
endDate: Date;
|
|
@@ -5164,6 +5325,43 @@ declare module '@layerfi/components/models/Money' {
|
|
|
5164
5325
|
};
|
|
5165
5326
|
export default _default;
|
|
5166
5327
|
|
|
5328
|
+
}
|
|
5329
|
+
declare module '@layerfi/components/providers/AccountConfirmationStoreProvider' {
|
|
5330
|
+
import React, { type PropsWithChildren } from 'react';
|
|
5331
|
+
const ACCOUNT_CONFIRMATION_VISIBILITY: readonly ["PRELOADED", "DEFAULT", "DISMISSED"];
|
|
5332
|
+
type AccountConfirmationVisibility = typeof ACCOUNT_CONFIRMATION_VISIBILITY[number];
|
|
5333
|
+
type AccountConfirmationStoreShape = {
|
|
5334
|
+
visibility: AccountConfirmationVisibility;
|
|
5335
|
+
actions: {
|
|
5336
|
+
dismiss: () => void;
|
|
5337
|
+
preload: () => void;
|
|
5338
|
+
reset: () => void;
|
|
5339
|
+
};
|
|
5340
|
+
};
|
|
5341
|
+
export function useAccountConfirmationStore(): AccountConfirmationStoreShape;
|
|
5342
|
+
export function useAccountConfirmationStoreActions(): {
|
|
5343
|
+
dismiss: () => void;
|
|
5344
|
+
preload: () => void;
|
|
5345
|
+
reset: () => void;
|
|
5346
|
+
};
|
|
5347
|
+
type AccountConfirmationStoreProviderProps = PropsWithChildren<{
|
|
5348
|
+
initialVisibility?: AccountConfirmationVisibility;
|
|
5349
|
+
}>;
|
|
5350
|
+
export function AccountConfirmationStoreProvider({ children, initialVisibility, }: AccountConfirmationStoreProviderProps): React.JSX.Element;
|
|
5351
|
+
export {};
|
|
5352
|
+
|
|
5353
|
+
}
|
|
5354
|
+
declare module '@layerfi/components/providers/AuthInputProvider' {
|
|
5355
|
+
import React, { type PropsWithChildren } from 'react';
|
|
5356
|
+
type AuthInputShape = {
|
|
5357
|
+
appId?: string;
|
|
5358
|
+
appSecret?: string;
|
|
5359
|
+
businessAccessToken?: string;
|
|
5360
|
+
};
|
|
5361
|
+
export function useAuthInput(): AuthInputShape;
|
|
5362
|
+
export function AuthInputProvider({ appId, appSecret, businessAccessToken, children, }: PropsWithChildren<AuthInputShape>): React.JSX.Element;
|
|
5363
|
+
export {};
|
|
5364
|
+
|
|
5167
5365
|
}
|
|
5168
5366
|
declare module '@layerfi/components/providers/BankTransactionsProvider/BankTransactionsProvider' {
|
|
5169
5367
|
import React, { ReactNode } from 'react';
|
|
@@ -5180,38 +5378,83 @@ declare module '@layerfi/components/providers/BankTransactionsProvider/index' {
|
|
|
5180
5378
|
}
|
|
5181
5379
|
declare module '@layerfi/components/providers/BusinessProvider/BusinessProvider' {
|
|
5182
5380
|
import React, { PropsWithChildren } from 'react';
|
|
5183
|
-
import {
|
|
5184
|
-
|
|
5381
|
+
import { LayerProviderProps } from '@layerfi/components/providers/LayerProvider/LayerProvider';
|
|
5382
|
+
type BusinessProviderProps = PropsWithChildren<Pick<LayerProviderProps, 'businessId' | 'theme' | 'onError' | 'eventCallbacks'>>;
|
|
5383
|
+
export const BusinessProvider: ({ businessId, children, theme, onError, eventCallbacks, }: PropsWithChildren<BusinessProviderProps>) => React.JSX.Element;
|
|
5384
|
+
export {};
|
|
5385
|
+
|
|
5386
|
+
}
|
|
5387
|
+
declare module '@layerfi/components/providers/Environment/EnvironmentInputProvider' {
|
|
5388
|
+
import React, { type PropsWithChildren } from 'react';
|
|
5389
|
+
import { type Environment } from '@layerfi/components/providers/Environment/environmentConfigs';
|
|
5390
|
+
type EnvironmentInputShape = {
|
|
5391
|
+
environment?: Environment;
|
|
5392
|
+
usePlaidSandbox?: boolean;
|
|
5393
|
+
};
|
|
5394
|
+
export function useEnvironment(): {
|
|
5395
|
+
environment: "sandbox" | "production" | "staging" | "internalStaging";
|
|
5396
|
+
apiUrl: "https://api.layerfi.com" | "https://sandbox.layerfi.com" | "https://staging.layerfi.com";
|
|
5397
|
+
authUrl: "https://auth.layerfi.com/oauth2/token";
|
|
5398
|
+
scope: "https://api.layerfi.com/production" | "https://sandbox.layerfi.com/sandbox";
|
|
5399
|
+
usePlaidSandbox: boolean;
|
|
5400
|
+
};
|
|
5401
|
+
export function EnvironmentInputProvider({ children, environment, usePlaidSandbox, }: PropsWithChildren<EnvironmentInputShape>): React.JSX.Element;
|
|
5402
|
+
export {};
|
|
5403
|
+
|
|
5404
|
+
}
|
|
5405
|
+
declare module '@layerfi/components/providers/Environment/environmentConfigs' {
|
|
5406
|
+
const ENVIRONMENTS: readonly ["production", "sandbox", "staging", "internalStaging"];
|
|
5407
|
+
export type Environment = typeof ENVIRONMENTS[number];
|
|
5408
|
+
export const EnvironmentConfigs: {
|
|
5409
|
+
readonly production: {
|
|
5410
|
+
readonly apiUrl: "https://api.layerfi.com";
|
|
5411
|
+
readonly authUrl: "https://auth.layerfi.com/oauth2/token";
|
|
5412
|
+
readonly scope: "https://api.layerfi.com/production";
|
|
5413
|
+
readonly usePlaidSandbox: false;
|
|
5414
|
+
};
|
|
5415
|
+
readonly sandbox: {
|
|
5416
|
+
readonly apiUrl: "https://sandbox.layerfi.com";
|
|
5417
|
+
readonly authUrl: "https://auth.layerfi.com/oauth2/token";
|
|
5418
|
+
readonly scope: "https://sandbox.layerfi.com/sandbox";
|
|
5419
|
+
readonly usePlaidSandbox: true;
|
|
5420
|
+
};
|
|
5421
|
+
readonly staging: {
|
|
5422
|
+
readonly apiUrl: "https://staging.layerfi.com";
|
|
5423
|
+
readonly authUrl: "https://auth.layerfi.com/oauth2/token";
|
|
5424
|
+
readonly scope: "https://sandbox.layerfi.com/sandbox";
|
|
5425
|
+
readonly usePlaidSandbox: true;
|
|
5426
|
+
};
|
|
5427
|
+
readonly internalStaging: {
|
|
5428
|
+
readonly apiUrl: "https://staging.layerfi.com";
|
|
5429
|
+
readonly authUrl: "https://auth.layerfi.com/oauth2/token";
|
|
5430
|
+
readonly scope: "https://sandbox.layerfi.com/sandbox";
|
|
5431
|
+
readonly usePlaidSandbox: true;
|
|
5432
|
+
};
|
|
5433
|
+
};
|
|
5434
|
+
export {};
|
|
5185
5435
|
|
|
5186
5436
|
}
|
|
5187
5437
|
declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
|
|
5188
5438
|
import React, { PropsWithChildren } from 'react';
|
|
5189
5439
|
import { LayerError } from '@layerfi/components/models/ErrorHandler';
|
|
5190
5440
|
import { LayerThemeConfig } from '@layerfi/components/types/layer_context';
|
|
5191
|
-
type
|
|
5192
|
-
url: string;
|
|
5193
|
-
scope: string;
|
|
5194
|
-
apiUrl: string;
|
|
5195
|
-
usePlaidSandbox: boolean;
|
|
5196
|
-
};
|
|
5197
|
-
export const LayerEnvironment: Record<string, LayerEnvironmentConfig>;
|
|
5441
|
+
import type { Environment } from '@layerfi/components/providers/Environment/environmentConfigs';
|
|
5198
5442
|
export type EventCallbacks = {
|
|
5199
5443
|
onTransactionCategorized?: (bankTransactionId: string) => void;
|
|
5200
5444
|
onTransactionsFetched?: () => void;
|
|
5201
5445
|
};
|
|
5202
|
-
export type
|
|
5446
|
+
export type LayerProviderProps = {
|
|
5203
5447
|
businessId: string;
|
|
5204
5448
|
appId?: string;
|
|
5205
5449
|
appSecret?: string;
|
|
5206
5450
|
businessAccessToken?: string;
|
|
5207
|
-
environment?:
|
|
5451
|
+
environment?: Environment;
|
|
5208
5452
|
theme?: LayerThemeConfig;
|
|
5209
5453
|
usePlaidSandbox?: boolean;
|
|
5210
5454
|
onError?: (error: LayerError) => void;
|
|
5211
5455
|
eventCallbacks?: EventCallbacks;
|
|
5212
5456
|
};
|
|
5213
|
-
export const LayerProvider: (
|
|
5214
|
-
export {};
|
|
5457
|
+
export const LayerProvider: ({ appId, appSecret, businessAccessToken, environment, usePlaidSandbox, ...restProps }: PropsWithChildren<LayerProviderProps>) => React.JSX.Element;
|
|
5215
5458
|
|
|
5216
5459
|
}
|
|
5217
5460
|
declare module '@layerfi/components/providers/LayerProvider/index' {
|
|
@@ -5219,12 +5462,8 @@ declare module '@layerfi/components/providers/LayerProvider/index' {
|
|
|
5219
5462
|
|
|
5220
5463
|
}
|
|
5221
5464
|
declare module '@layerfi/components/providers/LinkedAccountsProvider/LinkedAccountsProvider' {
|
|
5222
|
-
import React, {
|
|
5223
|
-
|
|
5224
|
-
children: ReactNode;
|
|
5225
|
-
}
|
|
5226
|
-
export const LinkedAccountsProvider: ({ children, }: LinkedAccountsProviderProps) => React.JSX.Element;
|
|
5227
|
-
export {};
|
|
5465
|
+
import React, { type PropsWithChildren } from 'react';
|
|
5466
|
+
export const LinkedAccountsProvider: ({ children, }: PropsWithChildren) => React.JSX.Element;
|
|
5228
5467
|
|
|
5229
5468
|
}
|
|
5230
5469
|
declare module '@layerfi/components/providers/LinkedAccountsProvider/index' {
|
|
@@ -5447,7 +5686,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
|
|
|
5447
5686
|
export interface ChartOfAccounts {
|
|
5448
5687
|
type: string;
|
|
5449
5688
|
accounts: Account[];
|
|
5450
|
-
entries?:
|
|
5689
|
+
entries?: unknown[];
|
|
5451
5690
|
}
|
|
5452
5691
|
export interface AccountEntry {
|
|
5453
5692
|
account: Account;
|
|
@@ -5543,6 +5782,7 @@ declare module '@layerfi/components/types/general' {
|
|
|
5543
5782
|
fileType: string;
|
|
5544
5783
|
fileName: string;
|
|
5545
5784
|
createdAt: string;
|
|
5785
|
+
documentId?: string;
|
|
5546
5786
|
}
|
|
5547
5787
|
export type LoadedStatus = 'initial' | 'loading' | 'complete';
|
|
5548
5788
|
export enum DataModel {
|
|
@@ -5625,19 +5865,14 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
5625
5865
|
import { LayerError } from '@layerfi/components/models/ErrorHandler';
|
|
5626
5866
|
import { EventCallbacks } from '@layerfi/components/providers/LayerProvider/LayerProvider';
|
|
5627
5867
|
import { Business, Category } from '@layerfi/components/types';
|
|
5628
|
-
import { ExpiringOAuthResponse } from '@layerfi/components/types/authentication';
|
|
5629
5868
|
import { DataModel } from '@layerfi/components/types/general';
|
|
5630
5869
|
export type LayerContextValues = {
|
|
5631
|
-
auth: ExpiringOAuthResponse;
|
|
5632
5870
|
businessId: string;
|
|
5633
5871
|
business?: Business;
|
|
5634
5872
|
categories: Category[];
|
|
5635
|
-
apiUrl: string;
|
|
5636
5873
|
theme?: LayerThemeConfig;
|
|
5637
5874
|
colors: ColorsPalette;
|
|
5638
|
-
usePlaidSandbox: boolean;
|
|
5639
5875
|
onboardingStep?: OnboardingStep;
|
|
5640
|
-
environment: string;
|
|
5641
5876
|
toasts: (ToastProps & {
|
|
5642
5877
|
isExiting: boolean;
|
|
5643
5878
|
})[];
|
|
@@ -5703,7 +5938,6 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
5703
5938
|
}
|
|
5704
5939
|
export type OnboardingStep = undefined | 'connectAccount' | 'complete';
|
|
5705
5940
|
export enum LayerContextActionName {
|
|
5706
|
-
setAuth = "LayerContext.setAuth",
|
|
5707
5941
|
setBusiness = "LayerContext.setBusiness",
|
|
5708
5942
|
setCategories = "LayerContext.setCategories",
|
|
5709
5943
|
setTheme = "LayerContext.setTheme",
|
|
@@ -5714,11 +5948,6 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
5714
5948
|
setToastExit = "LayerContext.setToastExit"
|
|
5715
5949
|
}
|
|
5716
5950
|
export type LayerContextAction = {
|
|
5717
|
-
type: LayerContextActionName.setAuth;
|
|
5718
|
-
payload: {
|
|
5719
|
-
auth: LayerContextValues['auth'];
|
|
5720
|
-
};
|
|
5721
|
-
} | {
|
|
5722
5951
|
type: LayerContextActionName.setBusiness;
|
|
5723
5952
|
payload: {
|
|
5724
5953
|
business: LayerContextValues['business'];
|
|
@@ -5880,19 +6109,31 @@ declare module '@layerfi/components/types/line_item' {
|
|
|
5880
6109
|
|
|
5881
6110
|
}
|
|
5882
6111
|
declare module '@layerfi/components/types/linked_accounts' {
|
|
5883
|
-
import { PlaidInstitution } from 'react-plaid-link';
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
6112
|
+
import type { PlaidInstitution } from 'react-plaid-link';
|
|
6113
|
+
import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
|
|
6114
|
+
export type PublicToken = {
|
|
6115
|
+
public_token: string;
|
|
6116
|
+
institution: PlaidInstitution | null;
|
|
6117
|
+
};
|
|
6118
|
+
export type AccountSource = EnumWithUnknownValues<'PLAID' | 'STRIPE'>;
|
|
6119
|
+
const KNOWN_ACCOUNT_NOTIFICATION_TYPES: readonly ["CONFIRM_RELEVANT", "CONFIRM_UNIQUE"];
|
|
6120
|
+
type KnownAccountNotificationType = typeof KNOWN_ACCOUNT_NOTIFICATION_TYPES[number];
|
|
6121
|
+
const KNOWN_ACCOUNT_NOTIFICATION_SCOPES: readonly ["USER"];
|
|
6122
|
+
type KnownAccountNotificationScope = typeof KNOWN_ACCOUNT_NOTIFICATION_SCOPES[number];
|
|
6123
|
+
type AccountNotificationType = EnumWithUnknownValues<KnownAccountNotificationType>;
|
|
6124
|
+
type AccountNotificationScope = EnumWithUnknownValues<KnownAccountNotificationScope>;
|
|
6125
|
+
type AccountNotification = {
|
|
6126
|
+
type: AccountNotificationType;
|
|
6127
|
+
scope: AccountNotificationScope;
|
|
6128
|
+
};
|
|
6129
|
+
export type LinkedAccount = {
|
|
5889
6130
|
id: string;
|
|
5890
6131
|
external_account_external_id: string;
|
|
5891
|
-
external_account_source:
|
|
6132
|
+
external_account_source: AccountSource;
|
|
5892
6133
|
external_account_name: string;
|
|
5893
6134
|
latest_balance_timestamp: {
|
|
5894
6135
|
external_account_external_id: string;
|
|
5895
|
-
external_account_source:
|
|
6136
|
+
external_account_source: AccountSource;
|
|
5896
6137
|
balance: number;
|
|
5897
6138
|
at: string;
|
|
5898
6139
|
created_at: string;
|
|
@@ -5902,18 +6143,18 @@ declare module '@layerfi/components/types/linked_accounts' {
|
|
|
5902
6143
|
name: string;
|
|
5903
6144
|
logo: string | null;
|
|
5904
6145
|
};
|
|
6146
|
+
notifications?: ReadonlyArray<AccountNotification>;
|
|
5905
6147
|
mask?: string;
|
|
5906
6148
|
connection_id?: string;
|
|
5907
6149
|
connection_external_id?: string;
|
|
5908
6150
|
connection_needs_repair_as_of: string | null;
|
|
5909
|
-
requires_user_confirmation_as_of: string | null;
|
|
5910
6151
|
is_syncing: boolean;
|
|
5911
|
-
}
|
|
5912
|
-
export type PublicToken = {
|
|
5913
|
-
public_token: string;
|
|
5914
|
-
institution: PlaidInstitution | null;
|
|
5915
6152
|
};
|
|
5916
|
-
export type
|
|
6153
|
+
export type LinkedAccounts = {
|
|
6154
|
+
type: string;
|
|
6155
|
+
external_accounts: Array<LinkedAccount>;
|
|
6156
|
+
};
|
|
6157
|
+
export {};
|
|
5917
6158
|
|
|
5918
6159
|
}
|
|
5919
6160
|
declare module '@layerfi/components/types/profit_and_loss' {
|
|
@@ -6089,6 +6330,25 @@ declare module '@layerfi/components/types/tasks' {
|
|
|
6089
6330
|
export type TasksResponseType = 'FREE_RESPONSE' | 'UPLOAD_DOCUMENT';
|
|
6090
6331
|
export function isComplete(taskType: TasksStatusType): boolean;
|
|
6091
6332
|
|
|
6333
|
+
}
|
|
6334
|
+
declare module '@layerfi/components/types/utility/enumWithUnknownValues' {
|
|
6335
|
+
type UnknownEnumValue = string & Record<never, never>;
|
|
6336
|
+
export type EnumWithUnknownValues<T extends string> = T | UnknownEnumValue;
|
|
6337
|
+
export {};
|
|
6338
|
+
|
|
6339
|
+
}
|
|
6340
|
+
declare module '@layerfi/components/types/utility/oneOf' {
|
|
6341
|
+
type OnlyFirst<First, Second> = First & {
|
|
6342
|
+
[Key in keyof Omit<Second, keyof First>]: never;
|
|
6343
|
+
};
|
|
6344
|
+
type MergeTypes<Types extends Array<unknown>, Result = Record<never, never>> = Types extends [infer Head, ...infer Remaining] ? MergeTypes<Remaining, Result & Head> : Result;
|
|
6345
|
+
export type OneOf<Types extends Array<unknown>, Result = never, AllProperties = MergeTypes<Types>> = Types extends [infer Head, ...infer Remaining] ? OneOf<Remaining, Result | OnlyFirst<Head, AllProperties>, AllProperties> : Result;
|
|
6346
|
+
export {};
|
|
6347
|
+
|
|
6348
|
+
}
|
|
6349
|
+
declare module '@layerfi/components/types/utility/promises' {
|
|
6350
|
+
export type Awaitable<T> = T | Promise<T>;
|
|
6351
|
+
|
|
6092
6352
|
}
|
|
6093
6353
|
declare module '@layerfi/components/types' {
|
|
6094
6354
|
export { OAuthResponse } from '@layerfi/components/types/authentication';
|
|
@@ -6124,11 +6384,11 @@ declare module '@layerfi/components/utils/bankTransactions' {
|
|
|
6124
6384
|
import { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
|
|
6125
6385
|
import { BankTransaction, DateRange } from '@layerfi/components/types';
|
|
6126
6386
|
export const hasMatch: (bankTransaction?: BankTransaction) => boolean;
|
|
6127
|
-
export const isCredit: ({ direction }: Pick<BankTransaction,
|
|
6387
|
+
export const isCredit: ({ direction }: Pick<BankTransaction, "direction">) => boolean;
|
|
6128
6388
|
export const isAlreadyMatched: (bankTransaction?: BankTransaction) => string | undefined;
|
|
6129
6389
|
export const countTransactionsToReview: ({ transactions, dateRange, }: {
|
|
6130
|
-
transactions?: BankTransaction[]
|
|
6131
|
-
dateRange?: DateRange
|
|
6390
|
+
transactions?: BankTransaction[];
|
|
6391
|
+
dateRange?: DateRange;
|
|
6132
6392
|
}) => number;
|
|
6133
6393
|
export const getCategorizePayload: (category: CategoryOption) => {
|
|
6134
6394
|
type: "Exclusion";
|
|
@@ -6245,6 +6505,15 @@ declare module '@layerfi/components/utils/styleUtils/toDataProperties' {
|
|
|
6245
6505
|
export function toDataProperties<T extends Record<string, unknown>>(input: T): DataProperties<T>;
|
|
6246
6506
|
export {};
|
|
6247
6507
|
|
|
6508
|
+
}
|
|
6509
|
+
declare module '@layerfi/components/utils/swr/defaultSWRConfig' {
|
|
6510
|
+
export const DEFAULT_SWR_CONFIG: {
|
|
6511
|
+
readonly refreshInterval: 0;
|
|
6512
|
+
readonly revalidateOnFocus: false;
|
|
6513
|
+
readonly revalidateOnReconnect: false;
|
|
6514
|
+
readonly revalidateIfStale: false;
|
|
6515
|
+
};
|
|
6516
|
+
|
|
6248
6517
|
}
|
|
6249
6518
|
declare module '@layerfi/components/views/AccountingOverview/AccountingOverview' {
|
|
6250
6519
|
import React, { ReactNode } from 'react';
|