@zeniai/client-epic-state 4.7.95 → 4.7.96

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.
@@ -99,6 +99,7 @@ export interface EditBillDetailSelectorView extends SelectorView {
99
99
  recommendationByLineID?: RecommendationByLineId;
100
100
  vendorDetailLocalData?: VendorDetailLocalData;
101
101
  recommendedVendor?: Vendor;
102
+ lastRecommendedVendorName?: string;
102
103
  isRecurring: boolean;
103
104
  recurringConfig?: RecurringBillConfigLocalData;
104
105
  recurringBillInstances?: RecurringBillInstance[];
@@ -42,6 +42,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
42
42
  : editBillDetailViewState.newBillState;
43
43
  let vendorDetails;
44
44
  let recommendedVendor;
45
+ let lastRecommendedVendorName;
45
46
  let whatForSection;
46
47
  let paymentDetailsSection;
47
48
  let file;
@@ -178,6 +179,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
178
179
  updatedRecord.recommendedVendorId != null
179
180
  ? (0, vendorSelector_1.getVendorByVendorId)(vendorState, updatedRecord.recommendedVendorId)
180
181
  : undefined;
182
+ lastRecommendedVendorName = updatedRecord.lastRecommendedVendorName;
181
183
  paymentDetailsSection =
182
184
  updatedRecord.paymentDetailsSection != null
183
185
  ? getPaymentSection(state, withdrawFromList, updatedRecord.paymentDetailsSection)
@@ -282,6 +284,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
282
284
  const duplicateBills = (0, billPayReviewSelector_1.getDuplicateBills)(state, billId);
283
285
  return {
284
286
  recommendedVendor,
287
+ lastRecommendedVendorName,
285
288
  duplicateBills,
286
289
  fetchState: fetchState,
287
290
  saveStatus: (_z = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.saveStatus) !== null && _z !== void 0 ? _z : undefined,
@@ -57,6 +57,7 @@ export interface BillDetailLocalData {
57
57
  isCollectToAccountInfoFromVendorContact: boolean;
58
58
  currencyConversionState?: FetchStateAndError;
59
59
  recommendedVendorId?: ID;
60
+ lastRecommendedVendorName?: string;
60
61
  isRecurring: boolean;
61
62
  recurringConfig?: RecurringBillConfigLocalData;
62
63
  recurringBillInstances?: RecurringBillInstance[];
@@ -172,6 +172,7 @@ const toBillDetailLocalData = (state, billPayload, vendor, recommendedVendorId)
172
172
  : undefined);
173
173
  return {
174
174
  recommendedVendorId,
175
+ lastRecommendedVendorName: recommendedVendorId != null ? vendor === null || vendor === void 0 ? void 0 : vendor.name : undefined,
175
176
  vendor: vendor,
176
177
  whatForSection: {
177
178
  invoiceNumber: billPayload.invoice_number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.7.95",
3
+ "version": "4.7.96",
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",