@zeniai/client-epic-state 5.3.3 → 5.3.5

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.
@@ -12,7 +12,6 @@ export interface InvoicingLineItemPayload {
12
12
  discount_amount?: number;
13
13
  entity_description?: string;
14
14
  entity_type?: string;
15
- gross_amount?: number | null;
16
15
  id?: string;
17
16
  is_taxed?: boolean;
18
17
  item_level_discount_amount?: number;
@@ -17,9 +17,6 @@ const mapLineItem = (payload, currencyCode, currencySymbol) => ({
17
17
  : undefined,
18
18
  entityDescription: payload.entity_description,
19
19
  entityType: payload.entity_type,
20
- grossAmount: payload.gross_amount != null
21
- ? (0, amount_1.toAmount)(payload.gross_amount, currencyCode, currencySymbol)
22
- : undefined,
23
20
  id: payload.id,
24
21
  isTaxed: payload.is_taxed,
25
22
  itemLevelDiscountAmount: payload.item_level_discount_amount != null
@@ -13,8 +13,6 @@ export interface InvoicingLineItem {
13
13
  discountAmount?: Amount;
14
14
  entityDescription?: string;
15
15
  entityType?: string;
16
- /** Price before item-level coupons (`amount` is after); absent on older invoices. */
17
- grossAmount?: Amount;
18
16
  id?: ID;
19
17
  isTaxed?: boolean;
20
18
  itemLevelDiscountAmount?: Amount;
@@ -14,9 +14,6 @@ const mapLineItem = (payload, currencyCode, currencySymbol) => ({
14
14
  : undefined,
15
15
  entityDescription: payload.entity_description,
16
16
  entityType: payload.entity_type,
17
- grossAmount: payload.gross_amount != null
18
- ? toAmount(payload.gross_amount, currencyCode, currencySymbol)
19
- : undefined,
20
17
  id: payload.id,
21
18
  isTaxed: payload.is_taxed,
22
19
  itemLevelDiscountAmount: payload.item_level_discount_amount != null
@@ -26,10 +26,9 @@ export const fetchReconciliationViewEpic = (actions$, state$, zeniAPI) => action
26
26
  }
27
27
  let fetchState;
28
28
  if (accountId != null) {
29
- // Period bucket can be unhydrated during app-shell load.
30
29
  fetchState =
31
30
  accountReconciliationRecords[toMonthYearPeriodId(selectedPeriod)]
32
- ?.reconciliationByAccountID[accountId]?.transactionFetchState
31
+ .reconciliationByAccountID[accountId].transactionFetchState
33
32
  .fetchState;
34
33
  }
35
34
  else {
@@ -29,10 +29,9 @@ const fetchReconciliationViewEpic = (actions$, state$, zeniAPI) => actions$.pipe
29
29
  }
30
30
  let fetchState;
31
31
  if (accountId != null) {
32
- // Period bucket can be unhydrated during app-shell load.
33
32
  fetchState =
34
33
  accountReconciliationRecords[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]
35
- ?.reconciliationByAccountID[accountId]?.transactionFetchState
34
+ .reconciliationByAccountID[accountId].transactionFetchState
36
35
  .fetchState;
37
36
  }
38
37
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.3.3",
3
+ "version": "5.3.5",
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",