@zeniai/client-epic-state 5.2.92 → 5.2.93-betaNB1

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.
@@ -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
- export declare const toReconciliationReportDataSource: (value: string) => "Statement" | "Plaid";
9
- export type ReconciliationReportDataSource = ReturnType<typeof toReconciliationReportDataSource>;
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;
@@ -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 = ['Statement', 'Plaid'];
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;
@@ -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 = ['Statement', 'Plaid'];
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.92",
3
+ "version": "5.2.93-betaNB1",
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",