@zeniai/client-epic-state 5.2.92 → 5.2.93-betaNB2
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/lib/entity/reconciliationReport/reconciliationReportPayload.d.ts +1 -0
- package/lib/entity/reconciliationReport/reconciliationReportReducer.js +1 -0
- package/lib/entity/reconciliationReport/reconciliationReportState.d.ts +4 -2
- package/lib/entity/reconciliationReport/reconciliationReportState.js +4 -1
- package/lib/esm/entity/reconciliationReport/reconciliationReportReducer.js +1 -0
- package/lib/esm/entity/reconciliationReport/reconciliationReportState.js +4 -1
- package/lib/esm/view/invoicing/invoicingOverview/invoicingOverviewPayload.js +2 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewPayload.d.ts +2 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewPayload.js +2 -0
- package/lib/view/invoicing/invoicingOverview/invoicingOverviewState.d.ts +2 -0
- package/package.json +1 -1
|
@@ -34,6 +34,7 @@ export interface ReconciliationReportTransactionRowPayload {
|
|
|
34
34
|
date?: string | null;
|
|
35
35
|
gl_account?: string | null;
|
|
36
36
|
issue_date?: string | null;
|
|
37
|
+
qbo_id?: string | null;
|
|
37
38
|
transaction_id?: ID | null;
|
|
38
39
|
}
|
|
39
40
|
export interface ReconciliationReportBucketPayload {
|
|
@@ -54,6 +54,7 @@ function mapCountAmount(payload, currency) {
|
|
|
54
54
|
function mapTransactionRow(payload, currency) {
|
|
55
55
|
return {
|
|
56
56
|
transactionId: payload.transaction_id ?? undefined,
|
|
57
|
+
qboId: payload.qbo_id ?? undefined,
|
|
57
58
|
date: toOptionalDate(payload.date),
|
|
58
59
|
type: payload.type,
|
|
59
60
|
payee: payload.payee,
|
|
@@ -5,8 +5,9 @@ import { ReconciliationStatusCodeType } from '../accountRecon/accountReconState'
|
|
|
5
5
|
declare const RECONCILIATION_REPORT_MATCH_TYPE: readonly ["automatic", "manual"];
|
|
6
6
|
export type ReconciliationReportMatchType = (typeof RECONCILIATION_REPORT_MATCH_TYPE)[number];
|
|
7
7
|
export declare const toReconciliationReportMatchType: (value: string) => ReconciliationReportMatchType;
|
|
8
|
-
|
|
9
|
-
export type ReconciliationReportDataSource =
|
|
8
|
+
declare const RECONCILIATION_REPORT_DATA_SOURCE: readonly ["bank_statement", "plaid"];
|
|
9
|
+
export type ReconciliationReportDataSource = (typeof RECONCILIATION_REPORT_DATA_SOURCE)[number];
|
|
10
|
+
export declare const toReconciliationReportDataSource: (value: string) => ReconciliationReportDataSource;
|
|
10
11
|
export interface ReconciliationReportAccount {
|
|
11
12
|
accountId: ID;
|
|
12
13
|
accountName?: string;
|
|
@@ -44,6 +45,7 @@ export interface ReconciliationReportTransactionRow {
|
|
|
44
45
|
date?: ZeniDate;
|
|
45
46
|
glAccount?: string;
|
|
46
47
|
issueDate?: ZeniDate;
|
|
48
|
+
qboId?: string;
|
|
47
49
|
transactionId?: ID;
|
|
48
50
|
}
|
|
49
51
|
export interface ReconciliationReportBucket {
|
|
@@ -10,6 +10,9 @@ const toReconciliationReportMatchType = (value) => {
|
|
|
10
10
|
return (0, stringToUnion_1.stringToUnion)(value, RECONCILIATION_REPORT_MATCH_TYPE);
|
|
11
11
|
};
|
|
12
12
|
exports.toReconciliationReportMatchType = toReconciliationReportMatchType;
|
|
13
|
-
const RECONCILIATION_REPORT_DATA_SOURCE = [
|
|
13
|
+
const RECONCILIATION_REPORT_DATA_SOURCE = [
|
|
14
|
+
'bank_statement',
|
|
15
|
+
'plaid',
|
|
16
|
+
];
|
|
14
17
|
const toReconciliationReportDataSource = (value) => (0, stringToUnion_1.stringToUnion)(value, RECONCILIATION_REPORT_DATA_SOURCE);
|
|
15
18
|
exports.toReconciliationReportDataSource = toReconciliationReportDataSource;
|
|
@@ -49,6 +49,7 @@ function mapCountAmount(payload, currency) {
|
|
|
49
49
|
function mapTransactionRow(payload, currency) {
|
|
50
50
|
return {
|
|
51
51
|
transactionId: payload.transaction_id ?? undefined,
|
|
52
|
+
qboId: payload.qbo_id ?? undefined,
|
|
52
53
|
date: toOptionalDate(payload.date),
|
|
53
54
|
type: payload.type,
|
|
54
55
|
payee: payload.payee,
|
|
@@ -6,5 +6,8 @@ export const toReconciliationReportMatchType = (value) => {
|
|
|
6
6
|
}
|
|
7
7
|
return stringToUnion(value, RECONCILIATION_REPORT_MATCH_TYPE);
|
|
8
8
|
};
|
|
9
|
-
const RECONCILIATION_REPORT_DATA_SOURCE = [
|
|
9
|
+
const RECONCILIATION_REPORT_DATA_SOURCE = [
|
|
10
|
+
'bank_statement',
|
|
11
|
+
'plaid',
|
|
12
|
+
];
|
|
10
13
|
export const toReconciliationReportDataSource = (value) => stringToUnion(value, RECONCILIATION_REPORT_DATA_SOURCE);
|
|
@@ -18,6 +18,7 @@ export const mapInvoicingMRRDataPointPayloadToState = (payload) => ({
|
|
|
18
18
|
month: payload.month,
|
|
19
19
|
mrr: toAmount(payload.mrr, 'USD', '$'),
|
|
20
20
|
churned: payload.churned,
|
|
21
|
+
contraction: payload.contraction,
|
|
21
22
|
expansion: payload.expansion,
|
|
22
23
|
monthNum: payload.month_num,
|
|
23
24
|
net: payload.net,
|
|
@@ -63,6 +64,7 @@ export const mapInvoicingDashboardSummaryPayloadToState = (payload) => ({
|
|
|
63
64
|
},
|
|
64
65
|
mrrMovement: {
|
|
65
66
|
churned: payload.mrr_movement.churned,
|
|
67
|
+
contraction: payload.mrr_movement.contraction,
|
|
66
68
|
expansions: payload.mrr_movement.expansions,
|
|
67
69
|
netChange: payload.mrr_movement.net_change,
|
|
68
70
|
newSubscriptions: payload.mrr_movement.new_subscriptions,
|
|
@@ -18,6 +18,7 @@ export interface InvoicingMRRDataPointPayload {
|
|
|
18
18
|
month: string;
|
|
19
19
|
mrr: number;
|
|
20
20
|
churned?: number;
|
|
21
|
+
contraction?: number;
|
|
21
22
|
expansion?: number;
|
|
22
23
|
month_num?: number;
|
|
23
24
|
net?: number;
|
|
@@ -65,6 +66,7 @@ export interface InvoicingDashboardSummaryPayload {
|
|
|
65
66
|
};
|
|
66
67
|
mrr_movement: {
|
|
67
68
|
churned: number;
|
|
69
|
+
contraction: number;
|
|
68
70
|
expansions: number;
|
|
69
71
|
net_change: number;
|
|
70
72
|
new_subscriptions: number;
|
|
@@ -23,6 +23,7 @@ const mapInvoicingMRRDataPointPayloadToState = (payload) => ({
|
|
|
23
23
|
month: payload.month,
|
|
24
24
|
mrr: (0, amount_1.toAmount)(payload.mrr, 'USD', '$'),
|
|
25
25
|
churned: payload.churned,
|
|
26
|
+
contraction: payload.contraction,
|
|
26
27
|
expansion: payload.expansion,
|
|
27
28
|
monthNum: payload.month_num,
|
|
28
29
|
net: payload.net,
|
|
@@ -71,6 +72,7 @@ const mapInvoicingDashboardSummaryPayloadToState = (payload) => ({
|
|
|
71
72
|
},
|
|
72
73
|
mrrMovement: {
|
|
73
74
|
churned: payload.mrr_movement.churned,
|
|
75
|
+
contraction: payload.mrr_movement.contraction,
|
|
74
76
|
expansions: payload.mrr_movement.expansions,
|
|
75
77
|
netChange: payload.mrr_movement.net_change,
|
|
76
78
|
newSubscriptions: payload.mrr_movement.new_subscriptions,
|
|
@@ -22,6 +22,7 @@ export interface InvoicingMRRDataPoint {
|
|
|
22
22
|
month: string;
|
|
23
23
|
mrr: Amount;
|
|
24
24
|
churned?: number;
|
|
25
|
+
contraction?: number;
|
|
25
26
|
expansion?: number;
|
|
26
27
|
monthNum?: number;
|
|
27
28
|
net?: number;
|
|
@@ -66,6 +67,7 @@ export interface InvoicingDashboardSummary {
|
|
|
66
67
|
};
|
|
67
68
|
mrrMovement: {
|
|
68
69
|
churned: number;
|
|
70
|
+
contraction: number;
|
|
69
71
|
expansions: number;
|
|
70
72
|
netChange: number;
|
|
71
73
|
newSubscriptions: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.93-betaNB2",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|