@zeniai/client-epic-state 4.10.78 → 4.10.79

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.
@@ -66,13 +66,11 @@ const saveVendorFirstReviewViewEpic = (actions$, state$, zeniAPI) => actions$.pi
66
66
  }
67
67
  else {
68
68
  actions.push((0, snackbarReducer_1.openSnackbar)({
69
- messageSection: payload.is_reimbursements_user === true
69
+ messageSection: payload.is_employee === true
70
70
  ? 'save_vendor_marked_as_employee'
71
71
  : 'save_vendor_sent_for_review',
72
72
  messageText: 'success',
73
- type: payload.is_reimbursements_user === true
74
- ? 'success'
75
- : 'info',
73
+ type: payload.is_employee === true ? 'success' : 'info',
76
74
  variables: [
77
75
  {
78
76
  variableName: '_vendor_name_',
@@ -156,7 +154,7 @@ const prepareSaveVendorFirstReviewViewPayload = (vendorName, recommendations, no
156
154
  qbo_id: vendorQboId !== null && vendorQboId !== void 0 ? vendorQboId : null,
157
155
  selected_global_merchant: markAsEmployee === true ? null : selectedGlobalMerchantBase,
158
156
  recommendations: (0, commonTypes_2.toVendorReviewViewRecommendationPayload)(recommendations, nonExistingRecommendations),
159
- is_reimbursements_user: markAsEmployee,
157
+ is_employee: markAsEmployee,
160
158
  };
161
159
  return payload;
162
160
  };
@@ -49,7 +49,7 @@ export interface SaveVendorFirstReviewViewQueryPayload {
49
49
  vendor_name: string;
50
50
  qbo_id: string | null;
51
51
  selected_global_merchant: AllGlobalMerchantBasePayload | null;
52
- is_reimbursements_user: boolean;
52
+ is_employee: boolean;
53
53
  recommendations: VendorReviewViewAllRecommendationsPayload;
54
54
  }
55
55
  export declare type SaveVendorFirstReviewResponse = ZeniAPIResponse<SaveVendorFirstReviewView>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.10.78",
3
+ "version": "4.10.79",
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",