@zeniai/client-epic-state 4.10.74 → 4.10.76
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.
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +0 -1
- package/lib/entity/companyHealthMetric/companyHealthMetricState.d.ts +0 -1
- package/lib/entity/notification/notificationReducer.d.ts +7 -7
- package/lib/entity/notification/notificationSelector.d.ts +3 -3
- package/lib/entity/notification/notificationState.d.ts +2 -2
- package/lib/entity/notification/types/notificationTypes.d.ts +9 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.js +8 -7
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +5 -12
- package/lib/view/notificationView/notificationViewReducer.d.ts +10 -10
- package/lib/view/notificationView/notificationViewSelector.d.ts +4 -4
- package/lib/view/notificationView/notificationViewSelector.js +1 -2
- package/lib/view/notificationView/notificationViewState.d.ts +2 -2
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +12 -12
- package/lib/view/spendManagement/helpers.js +8 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +6 -3
- package/package.json +1 -2
|
@@ -19,7 +19,6 @@ const toCompanyHealthMetrics = (payload) => {
|
|
|
19
19
|
: undefined,
|
|
20
20
|
verticalProductServices: (0, exports.toVerticalProductServices)(payload.vertical_product_services),
|
|
21
21
|
churnProbabilityReason: (0, exports.toChurnProbabilityReason)(payload.churn_probability_reasons),
|
|
22
|
-
issueCount: 0,
|
|
23
22
|
companyEngagementMetricsUpdatedAt: payload.company_engagement_metrics_update_time != null
|
|
24
23
|
? (0, zeniDayJS_1.dateInUTC)(payload.company_engagement_metrics_update_time)
|
|
25
24
|
: undefined,
|
|
@@ -15,7 +15,6 @@ export interface CompanyHealthMetric {
|
|
|
15
15
|
companyId: ID;
|
|
16
16
|
verticalProductServices: VerticalProductServices[];
|
|
17
17
|
churnProbabilityReason: ChurnProbabilityReason[];
|
|
18
|
-
issueCount: number;
|
|
19
18
|
customerLastDashboardVisit?: ZeniDate;
|
|
20
19
|
runway?: CompanyRunway;
|
|
21
20
|
subscriptionRenewalDate?: ZeniDate;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { CoreNotificationData } from '@cord-sdk/types';
|
|
2
1
|
import { UpdateType } from '../../commonStateTypes/common';
|
|
3
2
|
import { NotificationPayload } from './notificationPayload';
|
|
4
3
|
import { NotificationState } from './notificationState';
|
|
4
|
+
import { CustomNotificationData } from './types/notificationTypes';
|
|
5
5
|
export declare const initialState: NotificationState;
|
|
6
6
|
export declare const updateAllNotifications: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notifications: NotificationPayload[], updateType?: UpdateType | undefined], {
|
|
7
7
|
notifications: NotificationPayload[];
|
|
8
8
|
updateType: UpdateType;
|
|
9
|
-
}, string, never, never>, updateNotificationsStatuses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationIds: string[], newStatus: "
|
|
9
|
+
}, string, never, never>, updateNotificationsStatuses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationIds: string[], newStatus: "read" | "unread"], {
|
|
10
10
|
notificationIds: string[];
|
|
11
|
-
newStatus: "
|
|
12
|
-
}, string, never, never>, updateCommentsNotifications: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notifications:
|
|
13
|
-
notifications:
|
|
11
|
+
newStatus: "read" | "unread";
|
|
12
|
+
}, string, never, never>, updateCommentsNotifications: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notifications: CustomNotificationData[], updateType?: UpdateType | undefined], {
|
|
13
|
+
notifications: CustomNotificationData[];
|
|
14
14
|
updateType: UpdateType;
|
|
15
|
-
}, string, never, never>, updateCommentsNotificationsStatuses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationIds: string[], newStatus: "
|
|
15
|
+
}, string, never, never>, updateCommentsNotificationsStatuses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationIds: string[], newStatus: "read" | "unread"], {
|
|
16
16
|
notificationIds: string[];
|
|
17
|
-
newStatus: "
|
|
17
|
+
newStatus: "read" | "unread";
|
|
18
18
|
}, string, never, never>, removeNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, removeCommentNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearAllNotifications: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
19
19
|
declare const _default: import("@reduxjs/toolkit").Reducer<NotificationState, import("@reduxjs/toolkit").AnyAction>;
|
|
20
20
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CoreNotificationData } from '@cord-sdk/types';
|
|
2
1
|
import { ID } from '../../commonStateTypes/common';
|
|
3
2
|
import { NotificationState } from './notificationState';
|
|
4
3
|
import { NotificationWithAuthors } from './types/notificationSelectorTypes';
|
|
5
4
|
import { UserState } from '../user/userState';
|
|
5
|
+
import { CustomNotificationData } from './types/notificationTypes';
|
|
6
6
|
export declare function getNotificationsByNotificationIds(notificationState: NotificationState, userState: UserState, notificationIds: ID[]): NotificationWithAuthors[];
|
|
7
7
|
export declare function getNotificationByNotificationId(notificationState: NotificationState, userState: UserState, notificationId: ID): NotificationWithAuthors | undefined;
|
|
8
|
-
export declare function getCommentsNotificationsByNotificationIds(notificationState: NotificationState, notificationIds: ID[]):
|
|
9
|
-
export declare function getCommentsNotificationByNotificationId(notificationState: NotificationState, notificationId: ID):
|
|
8
|
+
export declare function getCommentsNotificationsByNotificationIds(notificationState: NotificationState, notificationIds: ID[]): CustomNotificationData[];
|
|
9
|
+
export declare function getCommentsNotificationByNotificationId(notificationState: NotificationState, notificationId: ID): CustomNotificationData | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CoreNotificationData } from '@cord-sdk/types';
|
|
2
1
|
import { ID } from '../../commonStateTypes/common';
|
|
3
2
|
import { Notification } from './types/notificationStateTypes';
|
|
3
|
+
import { CustomNotificationData } from './types/notificationTypes';
|
|
4
4
|
export interface NotificationState {
|
|
5
5
|
notificationById: Record<ID, Notification>;
|
|
6
|
-
commentsNotificationById: Record<ID,
|
|
6
|
+
commentsNotificationById: Record<ID, CustomNotificationData>;
|
|
7
7
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { ID } from '../../../commonStateTypes/common';
|
|
1
2
|
export declare const ALL_NOTIFICATION_GROUPS: readonly ["task_manager"];
|
|
2
3
|
export declare const toNotificationGroup: (v: string) => "task_manager";
|
|
3
4
|
export declare const toNotificationGroupStrict: (v: string) => "task_manager" | undefined;
|
|
4
5
|
export declare type NotificationGroup = ReturnType<typeof toNotificationGroup>;
|
|
5
6
|
export declare const ALL_NOTIFICATION_STATUSES: readonly ["read", "unread"];
|
|
6
|
-
export declare const toNotificationStatus: (v: string) => "
|
|
7
|
-
export declare const toNotificationStatusStrict: (v: string) => "
|
|
7
|
+
export declare const toNotificationStatus: (v: string) => "read" | "unread";
|
|
8
|
+
export declare const toNotificationStatusStrict: (v: string) => "read" | "unread" | undefined;
|
|
8
9
|
export declare type NotificationStatus = ReturnType<typeof toNotificationStatus>;
|
|
9
10
|
export declare const ALL_NOTIFICATION_MODES: readonly ["dashboard", "email"];
|
|
10
11
|
export declare const toNotificationMode: (v: string) => "dashboard" | "email";
|
|
@@ -22,3 +23,9 @@ export declare type NotificationUpdateValue = ReturnType<typeof toNotificationUp
|
|
|
22
23
|
export declare const getNotificationIdentifier: (notificationGroup: NotificationGroup, notificationType: NotificationActivityType) => "task_manager.task_assigned.notification" | "task_manager.task_status_updated.notification" | "task_manager.task_activities.notification" | "task_manager.task_created.notification" | "task_manager.task_deleted.notification" | "task_manager.task_archived.notification" | "task_manager.task_due.notification" | "task_manager.task_overdue.notification";
|
|
23
24
|
export declare type NotificationIdentifierType = ReturnType<typeof getNotificationIdentifier>;
|
|
24
25
|
export declare const toNotificationIdentifier: (notification_identifier: string) => NotificationIdentifierType;
|
|
26
|
+
export interface CustomNotificationData {
|
|
27
|
+
id: ID;
|
|
28
|
+
readStatus: NotificationStatus;
|
|
29
|
+
timeStamp: Date;
|
|
30
|
+
notification: string;
|
|
31
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -462,11 +462,11 @@ import { clearOnboardingCustomerViewUpdateData, fetchCompanyOnboardingView, getO
|
|
|
462
462
|
import { getNewOnboardingCustomerView, getOnboardingCockpitView, NewOnboardingCustomerView, OnboardingCockpitView, ProductInfo } from './view/onboardingView/cockpitView/onboardingCockpitViewSelector';
|
|
463
463
|
import { CustomerCreationStatus, NewOnboardingCustomer, OnboardingCustomer, OnboardingCustomerCompletedStatus, OnboardingCompanyDetails, ProductType, ProductGroupType, toProductType, toProductTypeStrict } from './view/onboardingView/cockpitView/types/onboardingCockpitViewTypes';
|
|
464
464
|
import { OnboardingCustomerListUIState } from './view/onboardingView/cockpitView/onboardingCockpitViewState';
|
|
465
|
-
import { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, isAnyFetchInProgress, isAllFetchCompleted } from './commonStateTypes/reduceFetchState';
|
|
465
|
+
import { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, reduceAnyCompletedFetchState, isAnyFetchInProgress, isAllFetchCompleted } from './commonStateTypes/reduceFetchState';
|
|
466
466
|
import { SortOrder } from './commonStateTypes/selectorTypes/sortOrderTypes';
|
|
467
467
|
import { ALL_FILE_TYPES, FileType, toFileTypeStrict } from './commonStateTypes/fileType';
|
|
468
468
|
import { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, holidaysFormatted, isHoliday, PAYMENT_BUSINESS_DAYS } from './commonStateTypes/workingDayHelper';
|
|
469
|
-
export { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, isAnyFetchInProgress, isAllFetchCompleted, SortOrder, ALL_FILE_TYPES, FileType, toFileTypeStrict, };
|
|
469
|
+
export { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, reduceAnyCompletedFetchState, isAnyFetchInProgress, isAllFetchCompleted, SortOrder, ALL_FILE_TYPES, FileType, toFileTypeStrict, };
|
|
470
470
|
export { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, isHoliday, holidaysFormatted, PAYMENT_BUSINESS_DAYS, };
|
|
471
471
|
export { CustomerRatingCodeType, TeamRatingCodeType };
|
|
472
472
|
export { CustomerSatisfactionInfo };
|
|
@@ -663,11 +663,11 @@ import { ZeniAccountsPromoCardState } from './view/zeniAccountsPromoCard/zeniAcc
|
|
|
663
663
|
import { getZeniAccountsPromoCard, ZeniAccountsPromoCardReport } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector';
|
|
664
664
|
import { fetchZeniAccountsPromoCard } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
|
|
665
665
|
export { ZeniAccountsPromoCardState, getZeniAccountsPromoCard, ZeniAccountsPromoCardReport, fetchZeniAccountsPromoCard, };
|
|
666
|
-
import { NotificationGroup, NotificationActivityType, NotificationIdentifierType, NotificationUpdateValue, NotificationMode, NotificationStatus, toNotificationModeStrict } from './entity/notification/types/notificationTypes';
|
|
666
|
+
import { NotificationGroup, NotificationActivityType, NotificationIdentifierType, NotificationUpdateValue, NotificationMode, NotificationStatus, toNotificationModeStrict, CustomNotificationData } from './entity/notification/types/notificationTypes';
|
|
667
667
|
import { Notification, NotificationMetaData, NotificationEventData, NotificationActivity, NotificationUpdates, NotificationValueFormat } from './entity/notification/types/notificationStateTypes';
|
|
668
668
|
import { NotificationWithAuthors } from './entity/notification/types/notificationSelectorTypes';
|
|
669
669
|
import { updateCommentsNotifications, updateCommentsNotificationsStatuses } from './entity/notification/notificationReducer';
|
|
670
|
-
export { NotificationGroup, NotificationActivityType, NotificationIdentifierType, NotificationUpdateValue, NotificationMode, NotificationStatus, Notification, NotificationWithAuthors, NotificationMetaData, NotificationEventData, NotificationActivity, NotificationUpdates, NotificationValueFormat, toNotificationModeStrict, updateCommentsNotifications, updateCommentsNotificationsStatuses, };
|
|
670
|
+
export { CustomNotificationData, NotificationGroup, NotificationActivityType, NotificationIdentifierType, NotificationUpdateValue, NotificationMode, NotificationStatus, Notification, NotificationWithAuthors, NotificationMetaData, NotificationEventData, NotificationActivity, NotificationUpdates, NotificationValueFormat, toNotificationModeStrict, updateCommentsNotifications, updateCommentsNotificationsStatuses, };
|
|
671
671
|
import { fetchNotificationView, fetchNotificationUnreadCount, fetchNotificationUnreadCountSuccess, updateNotificationViewAllNotificationsStatus, updateNotificationViewNotificationStatus, updateNotificationViewTabState, updateNotificationViewCurrentTabAndSubTab, updateNotificationViewSubTab, updateNotificationViewUIState } from './view/notificationView/notificationViewReducer';
|
|
672
672
|
import { NotificationViewUIState, NotificationTabState, NotificationTabType, NotificationSubTabType, toNotificationSubTabTypeStrict, toNotificationTabTypeStrict } from './view/notificationView/notificationViewState';
|
|
673
673
|
import { NotificationView, getNotificationView, getExternalNotificationsForSelectedSubTab, getNotificationsForSelectedSubTab } from './view/notificationView/notificationViewSelector';
|
package/lib/index.js
CHANGED
|
@@ -41,13 +41,13 @@ exports.updateBillListFilterResult = exports.updateRemiListSearchResult = export
|
|
|
41
41
|
exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.fetchVendorAndUpdateBillLocalData = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = exports.fetchUserDetails = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode = exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.getClassList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = void 0;
|
|
42
42
|
exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getPlaidAccountDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.updatePrimaryFundingAccount = exports.updateMappedCashAccount = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = void 0;
|
|
43
43
|
exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.removeDuplicateReimbursementByLineId = exports.clearDuplicateReimbursementDetail = exports.fetchDuplicateReimbursement = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = void 0;
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = void 0;
|
|
44
|
+
exports.getActualPaymentDate = exports.showReimbursementPromoPage = exports.showBillPayPromoPage = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.toProductTypeStrict = exports.toProductType = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.isAllFetchCompleted = exports.isAnyFetchInProgress = exports.reduceAnyCompletedFetchState = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.clearTentativeMerchantName = void 0;
|
|
45
|
+
exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepostAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsByTransactionId = exports.toVendorReportIDType = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.isVerifiedStatusCode = void 0;
|
|
46
|
+
exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = void 0;
|
|
47
|
+
exports.fetchScheduleList = exports.getScheduleListReport = exports.ALL_SCHEDULES_TYPES = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardDetail = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = void 0;
|
|
48
|
+
exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.fetchVendorTabView = exports.resetMarkAsCompleteStatus = exports.markAsCompleteScheduleDetail = exports.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = exports.resetJELinkInLocalData = exports.updateAmountsInScheduleDetail = exports.updatedJELinkInLocalData = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updatedSelectedJELinkRowIndex = exports.updateScheduleListDownloadState = exports.updateScheduleDetailsLocalData = exports.createNewSchedules = exports.deleteScheduleDetail = exports.saveScheduleDetails = exports.fetchScheduleDetailsPage = exports.getScheduleDetailsView = exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSearchText = exports.updateScheduleListSubTab = exports.toScheduleSubTabType = exports.toScheduleListTabsFileTypeStrict = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.getFetchStateForScheduleAccountList = exports.updateScheduleListLocalData = exports.fetchSchedulesAccount = exports.fetchDownloadSchedules = void 0;
|
|
49
|
+
exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = void 0;
|
|
50
|
+
exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = void 0;
|
|
51
51
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
52
52
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
53
53
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -1032,6 +1032,7 @@ const reduceFetchState_1 = require("./commonStateTypes/reduceFetchState");
|
|
|
1032
1032
|
Object.defineProperty(exports, "reduceFetchState", { enumerable: true, get: function () { return reduceFetchState_1.reduceFetchState; } });
|
|
1033
1033
|
Object.defineProperty(exports, "reduceAnyFetchState", { enumerable: true, get: function () { return reduceFetchState_1.reduceAnyFetchState; } });
|
|
1034
1034
|
Object.defineProperty(exports, "reduceAllFetchState", { enumerable: true, get: function () { return reduceFetchState_1.reduceAllFetchState; } });
|
|
1035
|
+
Object.defineProperty(exports, "reduceAnyCompletedFetchState", { enumerable: true, get: function () { return reduceFetchState_1.reduceAnyCompletedFetchState; } });
|
|
1035
1036
|
Object.defineProperty(exports, "isAnyFetchInProgress", { enumerable: true, get: function () { return reduceFetchState_1.isAnyFetchInProgress; } });
|
|
1036
1037
|
Object.defineProperty(exports, "isAllFetchCompleted", { enumerable: true, get: function () { return reduceFetchState_1.isAllFetchCompleted; } });
|
|
1037
1038
|
const fileType_1 = require("./commonStateTypes/fileType");
|
|
@@ -144,6 +144,7 @@ const removeDuplicatesFromCompaniesArray = (companies) => {
|
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
146
|
const getCategoryValueForCompany = (key, company) => {
|
|
147
|
+
var _a, _b, _c;
|
|
147
148
|
const firstControllerId = (0, companyHelper_1.getFirstControllerIdFromControllers)(company.controllers);
|
|
148
149
|
const customerSuccessManagerIds = (0, companyHelper_1.getFirstControllerId)(company.managegmentInfo.customerSuccessManagerUserIds);
|
|
149
150
|
const runway = (0, exports.getRunwayInfinity)(company.companyHealthMetric.runway);
|
|
@@ -153,17 +154,11 @@ const getCategoryValueForCompany = (key, company) => {
|
|
|
153
154
|
case 'customerSuccessManager':
|
|
154
155
|
return customerSuccessManagerIds;
|
|
155
156
|
case 'lastReportSent':
|
|
156
|
-
return company.managegmentInfo.lastReportSentDate
|
|
157
|
-
? company.managegmentInfo.lastReportSentDate
|
|
158
|
-
: undefined;
|
|
157
|
+
return (_a = company.managegmentInfo.lastReportSentDate) !== null && _a !== void 0 ? _a : undefined;
|
|
159
158
|
case 'subscriptionStartDate':
|
|
160
|
-
return company.companyHealthMetric.subscriptionStartDate
|
|
161
|
-
? company.companyHealthMetric.subscriptionStartDate
|
|
162
|
-
: undefined;
|
|
159
|
+
return (_b = company.companyHealthMetric.subscriptionStartDate) !== null && _b !== void 0 ? _b : undefined;
|
|
163
160
|
case 'subscriptionRenewalDate':
|
|
164
|
-
return company.companyHealthMetric.subscriptionRenewalDate
|
|
165
|
-
? company.companyHealthMetric.subscriptionRenewalDate
|
|
166
|
-
: undefined;
|
|
161
|
+
return (_c = company.companyHealthMetric.subscriptionRenewalDate) !== null && _c !== void 0 ? _c : undefined;
|
|
167
162
|
case 'runway':
|
|
168
163
|
return runway != null ? runway.toString() : undefined;
|
|
169
164
|
case 'verticalProductServices':
|
|
@@ -351,8 +346,6 @@ const sortAndFilterCompanies = (sortKey, sortOrder, filterText, filters, compani
|
|
|
351
346
|
switch (sortKey) {
|
|
352
347
|
case 'productVerticals':
|
|
353
348
|
return company.noOfProductVerticalsEnabled;
|
|
354
|
-
case 'issues':
|
|
355
|
-
return company.companyHealthMetric.issueCount;
|
|
356
349
|
case 'churnProbability':
|
|
357
350
|
return company.companyHealthMetric.churnProbabilityPercentage;
|
|
358
351
|
case 'runway':
|
|
@@ -374,8 +367,8 @@ const sortAndFilterCompanies = (sortKey, sortOrder, filterText, filters, compani
|
|
|
374
367
|
return (0, userSelector_1.getUserNameById)(userState, company.managegmentInfo.controllerUserIds[0]).toLowerCase();
|
|
375
368
|
case 'customerSuccessManager':
|
|
376
369
|
return (0, userSelector_1.getUserNameById)(userState, company.managegmentInfo.customerSuccessManagerUserIds[0]).toLowerCase();
|
|
377
|
-
default:
|
|
378
370
|
case 'companyName':
|
|
371
|
+
default:
|
|
379
372
|
return company.companyInfo.name;
|
|
380
373
|
}
|
|
381
374
|
}, sortOrderKey);
|
|
@@ -4,10 +4,10 @@ import { NotificationTabState, NotificationTabType, NotificationViewState, Notif
|
|
|
4
4
|
import { NotificationGroup } from '../../entity/notification/types/notificationTypes';
|
|
5
5
|
import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
6
6
|
export declare const initialState: NotificationViewState;
|
|
7
|
-
export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "dashboard" | "email" | undefined, status?: ("
|
|
7
|
+
export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "dashboard" | "email" | undefined, status?: ("read" | "unread")[] | undefined, isNewNotificationFetch?: boolean | undefined], {
|
|
8
8
|
notificationGroup: "task_manager";
|
|
9
9
|
mode: "dashboard" | "email";
|
|
10
|
-
status: ("
|
|
10
|
+
status: ("read" | "unread")[];
|
|
11
11
|
isNewNotificationFetch: boolean;
|
|
12
12
|
}, string, never, never>, fetchNotificationViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notifications: NotificationPayload[], totalCount: number, notificationGroup: "task_manager", pageToken: PageToken], {
|
|
13
13
|
notifications: NotificationPayload[];
|
|
@@ -26,9 +26,9 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
26
26
|
}, string, never, never>, fetchNotificationUnreadCountFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
27
27
|
status: ZeniAPIStatus;
|
|
28
28
|
notificationGroup: NotificationGroup;
|
|
29
|
-
}, string>, updateNotificationViewNotificationStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "
|
|
29
|
+
}, string>, updateNotificationViewNotificationStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "read" | "unread", notificationIds?: string[] | undefined, showSnackBarOnSuccess?: any], {
|
|
30
30
|
notificationGroup: "task_manager";
|
|
31
|
-
status: "
|
|
31
|
+
status: "read" | "unread";
|
|
32
32
|
notificationIds: string[];
|
|
33
33
|
showSnackBarOnSuccess: any;
|
|
34
34
|
}, string, never, never>, updateNotificationViewNotificationStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", reduceUnreadCountBy: number], {
|
|
@@ -37,9 +37,9 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
37
37
|
}, string, never, never>, updateNotificationViewNotificationStatusFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
38
38
|
status: ZeniAPIStatus;
|
|
39
39
|
notificationGroup: NotificationGroup;
|
|
40
|
-
}, string>, updateNotificationViewAllNotificationsStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "
|
|
40
|
+
}, string>, updateNotificationViewAllNotificationsStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "read" | "unread"], {
|
|
41
41
|
notificationGroup: "task_manager";
|
|
42
|
-
status: "
|
|
42
|
+
status: "read" | "unread";
|
|
43
43
|
}, string, never, never>, updateNotificationViewAllNotificationsStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager"], {
|
|
44
44
|
notificationGroup: "task_manager";
|
|
45
45
|
}, string, never, never>, updateNotificationViewAllNotificationsStatusFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -48,11 +48,11 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
48
48
|
}, string>, updateNotificationViewTabState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationTabState: Partial<NotificationTabState>, tab: "tasks" | "comments"], {
|
|
49
49
|
notificationTabState: Partial<NotificationTabState>;
|
|
50
50
|
tab: "tasks" | "comments";
|
|
51
|
-
}, string, never, never>, updateNotificationViewCurrentTabAndSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newTab: "tasks" | "comments", newSubTab?: "all" | "
|
|
51
|
+
}, string, never, never>, updateNotificationViewCurrentTabAndSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newTab: "tasks" | "comments", newSubTab?: "all" | "read" | "unread" | "mentions" | undefined], {
|
|
52
52
|
newTab: "tasks" | "comments";
|
|
53
|
-
newSubTab: "all" | "
|
|
54
|
-
}, string, never, never>, updateNotificationViewSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "all" | "
|
|
55
|
-
newSubTab: "all" | "
|
|
53
|
+
newSubTab: "all" | "read" | "unread" | "mentions" | undefined;
|
|
54
|
+
}, string, never, never>, updateNotificationViewSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "all" | "read" | "unread" | "mentions"], {
|
|
55
|
+
newSubTab: "all" | "read" | "unread" | "mentions";
|
|
56
56
|
}, string, never, never>, updateNotificationViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[uiState: Partial<NotificationViewUIState>, tab: "tasks" | "comments"], {
|
|
57
57
|
uiState: Partial<NotificationViewUIState>;
|
|
58
58
|
tab: "tasks" | "comments";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CoreNotificationData } from '@cord-sdk/types';
|
|
2
1
|
import { RootState } from '../../reducer';
|
|
3
2
|
import { NotificationSubTabType, NotificationTabType, NotificationTabState } from './notificationViewState';
|
|
4
3
|
import { NotificationWithAuthors } from '../../entity/notification/types/notificationSelectorTypes';
|
|
5
4
|
import { View } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
6
5
|
import { FetchStateAndError, ID } from '../../commonStateTypes/common';
|
|
6
|
+
import { CustomNotificationData } from '../../entity/notification/types/notificationTypes';
|
|
7
7
|
interface NotificationDetails extends NotificationTabState {
|
|
8
8
|
allNotificationsIdsForSubTab: ID[];
|
|
9
9
|
selectedNotificationIdsForSubTab: ID[];
|
|
@@ -14,9 +14,9 @@ export interface NotificationView extends View {
|
|
|
14
14
|
allSubTabs: NotificationSubTabType[];
|
|
15
15
|
notificationDetailsByTab: Record<NotificationTabType, NotificationDetails>;
|
|
16
16
|
allNotifications: NotificationWithAuthors[];
|
|
17
|
-
allExternalNotifications:
|
|
17
|
+
allExternalNotifications: CustomNotificationData[];
|
|
18
18
|
notificationsForCurrentTabAndSubTab: NotificationWithAuthors[];
|
|
19
|
-
externalNotificationsForCurrentTabAndSubTab:
|
|
19
|
+
externalNotificationsForCurrentTabAndSubTab: CustomNotificationData[];
|
|
20
20
|
reducedFetchCountState: FetchStateAndError;
|
|
21
21
|
totalUnreadCount: number;
|
|
22
22
|
}
|
|
@@ -25,5 +25,5 @@ export declare const getNotificationView: (state: RootState) => NotificationView
|
|
|
25
25
|
* Helpers
|
|
26
26
|
*/
|
|
27
27
|
export declare const getNotificationsForSelectedSubTab: (notifications: NotificationWithAuthors[], currentSubTab: NotificationSubTabType) => NotificationWithAuthors[];
|
|
28
|
-
export declare const getExternalNotificationsForSelectedSubTab: (externalNotifications:
|
|
28
|
+
export declare const getExternalNotificationsForSelectedSubTab: (externalNotifications: CustomNotificationData[], currentSubTab: NotificationSubTabType) => CustomNotificationData[];
|
|
29
29
|
export {};
|
|
@@ -71,7 +71,6 @@ const getNotificationsForSelectedSubTab = (notifications, currentSubTab) => {
|
|
|
71
71
|
exports.getNotificationsForSelectedSubTab = getNotificationsForSelectedSubTab;
|
|
72
72
|
const getExternalNotificationsForSelectedSubTab = (externalNotifications, currentSubTab) => {
|
|
73
73
|
return externalNotifications.filter((externalNotification) => {
|
|
74
|
-
var _a;
|
|
75
74
|
switch (currentSubTab) {
|
|
76
75
|
case 'all':
|
|
77
76
|
return true;
|
|
@@ -80,7 +79,7 @@ const getExternalNotificationsForSelectedSubTab = (externalNotifications, curren
|
|
|
80
79
|
case 'unread':
|
|
81
80
|
return externalNotification.readStatus === 'unread';
|
|
82
81
|
case 'mentions':
|
|
83
|
-
return
|
|
82
|
+
return externalNotification.notification.includes('mention');
|
|
84
83
|
default:
|
|
85
84
|
return false;
|
|
86
85
|
}
|
|
@@ -5,8 +5,8 @@ export declare const toNotificationTabType: (v: string) => "tasks" | "comments";
|
|
|
5
5
|
export declare const toNotificationTabTypeStrict: (v: string) => "tasks" | "comments" | undefined;
|
|
6
6
|
export declare type NotificationTabType = ReturnType<typeof toNotificationTabType>;
|
|
7
7
|
export declare const ALL_NOTIFICATION_SUB_TABS: readonly ["all", "read", "unread", "mentions"];
|
|
8
|
-
export declare const toNotificationSubTabType: (v: string) => "all" | "
|
|
9
|
-
export declare const toNotificationSubTabTypeStrict: (v: string) => "all" | "
|
|
8
|
+
export declare const toNotificationSubTabType: (v: string) => "all" | "read" | "unread" | "mentions";
|
|
9
|
+
export declare const toNotificationSubTabTypeStrict: (v: string) => "all" | "read" | "unread" | "mentions" | undefined;
|
|
10
10
|
export declare type NotificationSubTabType = ReturnType<typeof toNotificationSubTabType>;
|
|
11
11
|
export interface NotificationViewUIState {
|
|
12
12
|
pageToken: PageToken;
|
|
@@ -79,6 +79,6 @@ export interface BusinessVerificationDetails extends CompanyAndOfficerLocalData
|
|
|
79
79
|
export declare function getCommonSetupViewDetails(state: RootState, companyId: ID, setupViewType: SetupViewType, plaidAccountKeyType: PlaidAccountKeyType): SetupView;
|
|
80
80
|
export declare function getBusinessVerificationDetails(state: RootState, companyId: ID): BusinessVerificationDetails;
|
|
81
81
|
export declare const getCompanyAndIdentityDetails: (state: RootState, companyId: ID, companyAndIdentityDetails: CompanyAndIdentityDetails) => CompanyAndOfficerLocalData;
|
|
82
|
-
export declare const getAllFundingAccounts: (depositAccounts: DepositAccount[], paymentAccounts: PaymentAccount[]) => FundingAccount[];
|
|
82
|
+
export declare const getAllFundingAccounts: (depositAccounts: DepositAccount[], paymentAccounts: PaymentAccount[], includeOnlyVerifiedAccounts?: boolean) => FundingAccount[];
|
|
83
83
|
export declare const mapDepositAccToFundingAccount: (depositAcc: DepositAccount) => FundingAccount;
|
|
84
84
|
export declare const mapPaymentAccToFundingAccount: (paymentAcc: PaymentAccount) => FundingAccount;
|
|
@@ -18,7 +18,7 @@ function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccount
|
|
|
18
18
|
const allBankAccounts = (_a = allBankAccountIds === null || allBankAccountIds === void 0 ? void 0 : allBankAccountIds.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, setupViewType)).filter((account) => account != null)) !== null && _a !== void 0 ? _a : [];
|
|
19
19
|
const paymentAccounts = (_b = (0, paymentAccountSelector_1.getPaymentAccountsByPaymentAccountIds)(paymentAccountState, paymentAccountIds).filter((account) => account != null)) !== null && _b !== void 0 ? _b : [];
|
|
20
20
|
const depositAccounts = (_c = (0, depositAccountSelector_1.getDepositAccountsByDepositAccountIds)(depositAccountState, depositAccountIds).filter((account) => account != null)) !== null && _c !== void 0 ? _c : [];
|
|
21
|
-
const allFundingAccounts = (0, exports.getAllFundingAccounts)(depositAccounts, paymentAccounts);
|
|
21
|
+
const allFundingAccounts = (0, exports.getAllFundingAccounts)(depositAccounts, paymentAccounts, false);
|
|
22
22
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
23
23
|
const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
|
|
24
24
|
let paymentAccount;
|
|
@@ -166,19 +166,19 @@ exports.getCompanyAndIdentityDetails = getCompanyAndIdentityDetails;
|
|
|
166
166
|
/* This helper function takes deposit accounts and payment accounts
|
|
167
167
|
and give back FundingAccount type array
|
|
168
168
|
to support single dropdown with both lists */
|
|
169
|
-
const getAllFundingAccounts = (depositAccounts, paymentAccounts) => {
|
|
169
|
+
const getAllFundingAccounts = (depositAccounts, paymentAccounts, includeOnlyVerifiedAccounts = true) => {
|
|
170
170
|
return [
|
|
171
171
|
...depositAccounts.map((depositAcc) => (0, exports.mapDepositAccToFundingAccount)(depositAcc)),
|
|
172
|
-
...
|
|
173
|
-
.filter((paymentAccount) => {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
.map((paymentAcc) => (0, exports.mapPaymentAccToFundingAccount)(paymentAcc)),
|
|
172
|
+
...(includeOnlyVerifiedAccounts
|
|
173
|
+
? paymentAccounts.filter((paymentAccount) => {
|
|
174
|
+
var _a, _b, _c;
|
|
175
|
+
return ((_a = paymentAccount.providerVerificationStatus) === null || _a === void 0 ? void 0 : _a.code) === 'verified' ||
|
|
176
|
+
((_b = paymentAccount.providerVerificationStatus) === null || _b === void 0 ? void 0 : _b.code) ===
|
|
177
|
+
'manually_verified' ||
|
|
178
|
+
((_c = paymentAccount.providerVerificationStatus) === null || _c === void 0 ? void 0 : _c.code) ===
|
|
179
|
+
'automatically_verified';
|
|
180
|
+
})
|
|
181
|
+
: paymentAccounts).map((paymentAcc) => (0, exports.mapPaymentAccToFundingAccount)(paymentAcc)),
|
|
182
182
|
];
|
|
183
183
|
};
|
|
184
184
|
exports.getAllFundingAccounts = getAllFundingAccounts;
|
|
@@ -262,6 +262,13 @@ const getActualPaymentDate = (billPayInfo) => {
|
|
|
262
262
|
};
|
|
263
263
|
exports.getActualPaymentDate = getActualPaymentDate;
|
|
264
264
|
function isVerifiedStatusCode(statusCode) {
|
|
265
|
-
return [
|
|
265
|
+
return [
|
|
266
|
+
'verified',
|
|
267
|
+
'automatically_verified',
|
|
268
|
+
'manually_verified',
|
|
269
|
+
'pending_automatic_verification',
|
|
270
|
+
'pending_manual_verification',
|
|
271
|
+
'pending_verification',
|
|
272
|
+
].includes(statusCode);
|
|
266
273
|
}
|
|
267
274
|
exports.isVerifiedStatusCode = isVerifiedStatusCode;
|
|
@@ -131,8 +131,10 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
131
131
|
fetchState: 'Completed',
|
|
132
132
|
error: undefined,
|
|
133
133
|
} });
|
|
134
|
-
|
|
135
|
-
paymentAccountIds
|
|
134
|
+
if (plaidAccountKeyType !== 'reimbursement_setup') {
|
|
135
|
+
draft[plaidAccountKeyType].accountDetails.paymentAccountIds =
|
|
136
|
+
paymentAccountIds;
|
|
137
|
+
}
|
|
136
138
|
},
|
|
137
139
|
prepare(paymentAccountIds, linkTokenType, plaidAccountKeyType) {
|
|
138
140
|
return {
|
|
@@ -211,7 +213,8 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
211
213
|
fetchState: 'In-Progress',
|
|
212
214
|
error: undefined,
|
|
213
215
|
} });
|
|
214
|
-
if (paymentAccountId != null
|
|
216
|
+
if (paymentAccountId != null &&
|
|
217
|
+
plaidAccountKeyType !== 'reimbursement_setup') {
|
|
215
218
|
draft[plaidAccountKeyType].accountDetails.paymentAccountIds = [
|
|
216
219
|
paymentAccountId,
|
|
217
220
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.76",
|
|
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",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/zeni-ai/client-epic-state#readme",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@cord-sdk/types": "^1.45.1",
|
|
29
28
|
"@types/chai": "^4.2.11",
|
|
30
29
|
"@types/jest": "^29.4.0",
|
|
31
30
|
"@types/lodash": "^4.14.178",
|