@zeniai/client-epic-state 4.8.16 → 4.8.18

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.
@@ -141,6 +141,7 @@ export interface CompanyChargeCardInfoPayload {
141
141
  }
142
142
  export interface CompanyMileageConfigInfoPayload {
143
143
  mileage_unit_amount: number | null;
144
+ default_mileage_unit_amount: number;
144
145
  mileage_unit: string;
145
146
  mileage_currency_symbol: string;
146
147
  mileage_currency_code: string;
@@ -195,6 +195,7 @@ const toCompanyMileageConfigInfo = (payload) => {
195
195
  var _a, _b;
196
196
  return ({
197
197
  mileageUnitAmount: (_a = payload.mileage_unit_amount) !== null && _a !== void 0 ? _a : undefined,
198
+ defaultMileageUnitAmount: payload.default_mileage_unit_amount,
198
199
  mileageUnit: payload.mileage_unit,
199
200
  mileageCurrencyCode: payload.mileage_currency_code,
200
201
  mileageCurrencySymbol: payload.mileage_currency_symbol,
@@ -205,11 +205,12 @@ export interface CompanyFeaturesActivationInfo {
205
205
  isFeatureVendorListingEnabled: boolean;
206
206
  }
207
207
  export interface CompanyMileageConfigInfo {
208
- mileageUnitAmount?: number;
208
+ defaultMileageUnitAmount: number;
209
209
  mileageUnit: string;
210
210
  mileageCurrencySymbol: string;
211
211
  mileageCurrencyCode: string;
212
212
  description: string;
213
+ mileageUnitAmount?: number;
213
214
  denominationConversions: {
214
215
  amount?: number;
215
216
  denomination: MileageDenomination;
@@ -21,7 +21,7 @@ const fetchApAgingEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operat
21
21
  .pipe((0, operators_1.mergeMap)((response) => {
22
22
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
23
23
  const actions = [
24
- (0, vendorReducer_1.updateVendors)(response.data.report.vendors),
24
+ (0, vendorReducer_1.updateVendors)(response.data.report.vendors, 'merge'),
25
25
  (0, apAgingReducer_1.updateApAgingOnSuccess)(response.data.report),
26
26
  ];
27
27
  return (0, rxjs_1.from)(actions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.16",
3
+ "version": "4.8.18",
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
  "types": "lib/index.d.ts",