@zeniai/client-epic-state 4.9.89 → 4.9.91
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/task/taskPayload.d.ts +8 -3
- package/lib/entity/task/taskPayload.js +15 -4
- package/lib/entity/task/taskReducer.d.ts +1 -1
- package/lib/entity/task/taskSelector.d.ts +1 -1
- package/lib/entity/task/{task.d.ts → taskState.d.ts} +12 -0
- package/lib/entity/task/{task.js → taskState.js} +6 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +5 -1
- package/lib/reducer.d.ts +1 -1
- package/lib/view/common/recurringViewHelper.d.ts +10 -0
- package/lib/view/common/recurringViewHelper.js +65 -0
- package/lib/view/recommendation/recommendationHelper.js +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.js +6 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +2 -1
- package/lib/view/spendManagement/helpers.js +2 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailSelector.js +4 -2
- package/lib/view/taskManager/taskDetailView/epics/initializeTaskToLocalStoreEpic.js +8 -0
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +10 -1
- package/lib/view/taskManager/taskDetailView/taskDetail.d.ts +11 -1
- package/lib/view/taskManager/taskDetailView/taskDetail.js +5 -0
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.d.ts +1 -1
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +10 -6
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
- package/lib/view/taskManager/taskListView/taskListSelector.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { AllowedValueWithCodePayload } from '../../commonPayloadTypes/commonPayload';
|
|
1
2
|
import { AllowedValueWithCode } from '../../commonStateTypes/allowedValue';
|
|
2
|
-
import { Task } from './
|
|
3
|
+
import { Task } from './taskState';
|
|
3
4
|
export interface TaskPayload {
|
|
4
5
|
task_id: string;
|
|
5
6
|
assignees: string[];
|
|
@@ -10,11 +11,15 @@ export interface TaskPayload {
|
|
|
10
11
|
is_archived: boolean;
|
|
11
12
|
is_deleted: boolean;
|
|
12
13
|
name: string;
|
|
13
|
-
priority:
|
|
14
|
-
status:
|
|
14
|
+
priority: AllowedValueWithCodePayload;
|
|
15
|
+
status: AllowedValueWithCodePayload;
|
|
15
16
|
due_date: string | null;
|
|
16
17
|
tag: AllowedValueWithCode | null;
|
|
17
18
|
update_time: string | null;
|
|
19
|
+
type: AllowedValueWithCodePayload;
|
|
20
|
+
recurring_end_date: string | null;
|
|
21
|
+
recurring_frequency: AllowedValueWithCodePayload | null;
|
|
22
|
+
recurring_start_date: string | null;
|
|
18
23
|
sync_token?: string | null;
|
|
19
24
|
}
|
|
20
25
|
export declare const mapTaskPayloadToTask: (payload: TaskPayload) => Task;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mapTaskPayloadToTask = void 0;
|
|
4
|
+
const recurringViewHelper_1 = require("../../view/common/recurringViewHelper");
|
|
4
5
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
5
|
-
const
|
|
6
|
+
const taskState_1 = require("./taskState");
|
|
6
7
|
const mapTaskPayloadToTask = (payload) => {
|
|
7
8
|
var _a;
|
|
8
9
|
return ({
|
|
@@ -16,19 +17,29 @@ const mapTaskPayloadToTask = (payload) => {
|
|
|
16
17
|
name: payload.name,
|
|
17
18
|
syncToken: (_a = payload.sync_token) !== null && _a !== void 0 ? _a : '',
|
|
18
19
|
priority: {
|
|
19
|
-
code: (0,
|
|
20
|
+
code: (0, taskState_1.toPriorityCodeType)(payload.priority.code),
|
|
20
21
|
name: payload.priority.name,
|
|
21
22
|
},
|
|
22
23
|
status: {
|
|
23
|
-
code: (0,
|
|
24
|
+
code: (0, taskState_1.toTaskStatusCodeType)(payload.status.code),
|
|
24
25
|
name: payload.status.name,
|
|
25
26
|
},
|
|
26
27
|
tag: payload.tag != null
|
|
27
28
|
? {
|
|
28
|
-
code: (0,
|
|
29
|
+
code: (0, taskState_1.toTaskTagCodeType)(payload.tag.code),
|
|
29
30
|
name: payload.tag.name,
|
|
30
31
|
}
|
|
31
32
|
: undefined,
|
|
33
|
+
type: { code: (0, taskState_1.toTaskCodeType)(payload.type.code), name: payload.type.name },
|
|
34
|
+
recurringEndDate: payload.recurring_end_date != null
|
|
35
|
+
? (0, zeniDayJS_1.date)(payload.recurring_end_date)
|
|
36
|
+
: undefined,
|
|
37
|
+
recurringFrequency: payload.recurring_frequency != null
|
|
38
|
+
? (0, recurringViewHelper_1.toRecurringFrequencyStrict)(payload.recurring_frequency.code)
|
|
39
|
+
: undefined,
|
|
40
|
+
recurringStartDate: payload.recurring_start_date != null
|
|
41
|
+
? (0, zeniDayJS_1.date)(payload.recurring_start_date)
|
|
42
|
+
: undefined,
|
|
32
43
|
createTime: (0, zeniDayJS_1.date)(payload.create_time),
|
|
33
44
|
dueDate: payload.due_date != null ? (0, zeniDayJS_1.date)(payload.due_date) : undefined,
|
|
34
45
|
updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TaskPayload } from './taskPayload';
|
|
2
|
-
import { TaskState } from './
|
|
2
|
+
import { TaskState } from './taskState';
|
|
3
3
|
export declare const initialState: TaskState;
|
|
4
4
|
export declare const updateTasks: import("@reduxjs/toolkit").ActionCreatorWithPayload<TaskPayload[], string>, updateTask: import("@reduxjs/toolkit").ActionCreatorWithPayload<TaskPayload, string>, removeTask: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearAllTasks: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
5
5
|
declare const _default: import("@reduxjs/toolkit").Reducer<TaskState, import("@reduxjs/toolkit").AnyAction>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { TaskState, Task } from './
|
|
2
|
+
import { TaskState, Task } from './taskState';
|
|
3
3
|
export declare function getTasksByIds(taskState: TaskState, taskIds: ID[]): Task[];
|
|
4
4
|
export declare function getTaskById(taskState: TaskState, taskId: ID): Task | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { RecurringFrequencyType } from '../../view/common/recurringViewHelper';
|
|
2
3
|
import { ZeniDate } from '../../zeniDayJS';
|
|
3
4
|
export interface Task {
|
|
4
5
|
id: ID;
|
|
@@ -13,6 +14,10 @@ export interface Task {
|
|
|
13
14
|
status: TaskStatus;
|
|
14
15
|
createTime: ZeniDate;
|
|
15
16
|
syncToken: string;
|
|
17
|
+
type: TaskType;
|
|
18
|
+
recurringEndDate?: ZeniDate;
|
|
19
|
+
recurringFrequency?: RecurringFrequencyType;
|
|
20
|
+
recurringStartDate?: ZeniDate;
|
|
16
21
|
tag?: TaskTag;
|
|
17
22
|
dueDate?: ZeniDate;
|
|
18
23
|
updateTime?: ZeniDate;
|
|
@@ -44,3 +49,10 @@ export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_
|
|
|
44
49
|
export declare const toTaskStatusCodeType: (v: string) => "done" | "todo" | "in_progress" | "on_hold" | "resolved";
|
|
45
50
|
export declare const toTaskStatusCodeTypeStrict: (v?: string | undefined) => "done" | "todo" | "in_progress" | "on_hold" | "resolved" | undefined;
|
|
46
51
|
export declare type TaskStatusCodeType = ReturnType<typeof toTaskStatusCodeType>;
|
|
52
|
+
export declare const toTaskCodeType: (v: string) => "one_time" | "recurring";
|
|
53
|
+
export declare const toTaskCodeTypeStrict: (v?: string | undefined) => "one_time" | "recurring" | undefined;
|
|
54
|
+
export declare type TaskCodeType = NonNullable<ReturnType<typeof toTaskCodeType>>;
|
|
55
|
+
export interface TaskType {
|
|
56
|
+
code: TaskCodeType;
|
|
57
|
+
name: string;
|
|
58
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toTaskStatusCodeTypeStrict = exports.toTaskStatusCodeType = exports.ALL_TASK_STATUS_CODE = exports.toPriorityCodeTypeStrict = exports.toPriorityCodeType = exports.ALL_PRORITY_CODE = exports.toTaskTagCodeTypeStrict = exports.toTaskTagCodeType = exports.ALL_TASK_TAG_CODE = void 0;
|
|
3
|
+
exports.toTaskCodeTypeStrict = exports.toTaskCodeType = exports.toTaskStatusCodeTypeStrict = exports.toTaskStatusCodeType = exports.ALL_TASK_STATUS_CODE = exports.toPriorityCodeTypeStrict = exports.toPriorityCodeType = exports.ALL_PRORITY_CODE = exports.toTaskTagCodeTypeStrict = exports.toTaskTagCodeType = exports.ALL_TASK_TAG_CODE = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.ALL_TASK_TAG_CODE = [
|
|
6
6
|
'invoices',
|
|
@@ -34,3 +34,8 @@ const toTaskStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, export
|
|
|
34
34
|
exports.toTaskStatusCodeType = toTaskStatusCodeType;
|
|
35
35
|
const toTaskStatusCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_TASK_STATUS_CODE);
|
|
36
36
|
exports.toTaskStatusCodeTypeStrict = toTaskStatusCodeTypeStrict;
|
|
37
|
+
const ALL_TASK_CODE_TYPE = ['one_time', 'recurring'];
|
|
38
|
+
const toTaskCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TASK_CODE_TYPE);
|
|
39
|
+
exports.toTaskCodeType = toTaskCodeType;
|
|
40
|
+
const toTaskCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_TASK_CODE_TYPE);
|
|
41
|
+
exports.toTaskCodeTypeStrict = toTaskCodeTypeStrict;
|
package/lib/index.d.ts
CHANGED
|
@@ -629,14 +629,14 @@ import { ArAgingDetail, getArAgingDetailForCustomer } from './view/arAgingView/a
|
|
|
629
629
|
export { fetchArAging, updateArAgingUIState, fetchArAgingDetail, updateArAgingDetailUIState, ArAgingReport, ArAgingDetail, AgingBalancesByCustomer, getArAgingReport, getArAgingDetailForCustomer, };
|
|
630
630
|
import { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig, RecurringBillStatus, RecurringBillPaymentStatus } from './entity/billPay/recurringBills/recurringBillsState';
|
|
631
631
|
export { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig, RecurringBillStatus, RecurringBillPaymentStatus, };
|
|
632
|
-
import { Task, TaskStatusCodeType, PriorityCodeType, TaskTagCodeType, TaskTag, TaskStatus, TaskPriority } from './entity/task/
|
|
632
|
+
import { Task, TaskStatusCodeType, PriorityCodeType, TaskTagCodeType, TaskTag, TaskStatus, TaskPriority, TaskCodeType, TaskType } from './entity/task/taskState';
|
|
633
633
|
import { TaskListSelectorView, TaskWithUserDetails, getAllTasks } from './view/taskManager/taskListView/taskListSelector';
|
|
634
634
|
import { TaskListViewSortKey, TaskListUIState, TaskListFilters, TASK_LIST_FILTER_CATEGORIES, TaskListFilterCategoryField, TaskFilterCategory } from './view/taskManager/taskListView/taskList';
|
|
635
635
|
import { TaskDetailSelectorView, getTaskDetail, allTaskTags, allTaskStatus, allTaskPriority } from './view/taskManager/taskDetailView/taskDetailSelector';
|
|
636
636
|
import { EditTaskLocalData } from './view/taskManager/taskDetailView/taskDetail';
|
|
637
637
|
import { fetchTaskListPage, updateTaskFilters, updateTaskListSearchText, updateTaskListUIState } from './view/taskManager/taskListView/taskListReducer';
|
|
638
638
|
import { deleteTask, discardTaskUpdatesInLocalStore, fetchTaskDetailPage, saveTaskDetail, archiveTask, saveTaskUpdatesToLocalStore } from './view/taskManager/taskDetailView/taskDetailReducer';
|
|
639
|
-
export { Task, TaskListSelectorView, TaskWithUserDetails, TaskListViewSortKey, TaskListUIState, TaskDetailSelectorView, EditTaskLocalData, TaskStatusCodeType, PriorityCodeType, TaskTagCodeType, TaskTag, TaskStatus, TaskPriority, getAllTasks, fetchTaskListPage, getTaskDetail, fetchTaskDetailPage, saveTaskUpdatesToLocalStore, saveTaskDetail, archiveTask, updateTaskListSearchText, updateTaskListUIState, allTaskTags, allTaskStatus, allTaskPriority, TaskListFilters, updateTaskFilters, TASK_LIST_FILTER_CATEGORIES, TaskListFilterCategoryField, deleteTask, discardTaskUpdatesInLocalStore, TaskFilterCategory, };
|
|
639
|
+
export { Task, TaskListSelectorView, TaskWithUserDetails, TaskListViewSortKey, TaskListUIState, TaskDetailSelectorView, EditTaskLocalData, TaskStatusCodeType, PriorityCodeType, TaskTagCodeType, TaskTag, TaskStatus, TaskPriority, TaskCodeType, getAllTasks, fetchTaskListPage, getTaskDetail, fetchTaskDetailPage, saveTaskUpdatesToLocalStore, saveTaskDetail, archiveTask, updateTaskListSearchText, updateTaskListUIState, allTaskTags, allTaskStatus, allTaskPriority, TaskListFilters, updateTaskFilters, TASK_LIST_FILTER_CATEGORIES, TaskListFilterCategoryField, deleteTask, discardTaskUpdatesInLocalStore, TaskFilterCategory, TaskType, };
|
|
640
640
|
import { getAuditReportGroupViewSelectorView, getAuditRuleGroupViewSelectorView, AuditReportGroupSelectorView, AuditReportGroupViewSelectorView, AuditRuleGroupViewSelectorView } from './view/auditReportView/auditReportViewSelector';
|
|
641
641
|
import { fetchAuditRuleGroupView, fetchAuditReportGroupView, clearAuditReportGroupViewByCompanyId } from './view/auditReportView/auditReportViewReducer';
|
|
642
642
|
import { AuditRuleGroup, AuditReportRule, AuditRuleGroupReport, AuditRuleEntityType, AuditRuleEntityIdType } from './view/auditReportView/auditReportViewState';
|
|
@@ -653,3 +653,5 @@ import { getReferralListView, ReferralListSelectorView, getInviteFormView } from
|
|
|
653
653
|
import { ReferralViewState, InviteCompanyLocalData, ReferralInvitation, ReferralListViewSortKey, ReferralViewUIState, StatusTypes, AmountStatusTypes, toReferralListViewSortKeyType, ReferralStatus, ReferralAmountStatus } from './view/referralView/referralState';
|
|
654
654
|
import { fetchReferrals, sendReferralInvite, clearReferrals, saveReferralFormDataInLocalStore, resendReferralInvite, updateReferralListSortUiState, fetchRewardsPlan } from './view/referralView/referralReducer';
|
|
655
655
|
export { getReferralListView, getInviteFormView, ReferralListSelectorView, ReferralViewState, InviteCompanyLocalData, ReferralInvitation, ReferralListViewSortKey, ReferralViewUIState, toReferralListViewSortKeyType, ReferralStatus, ReferralAmountStatus, StatusTypes, AmountStatusTypes, fetchReferrals, sendReferralInvite, clearReferrals, saveReferralFormDataInLocalStore, updateReferralListSortUiState, resendReferralInvite, fetchRewardsPlan, };
|
|
656
|
+
import { RecurringFrequencyType, getRecurringEndDateFromCount, toRecurringFrequency, getMinAllowedEndDate, RecurringDatePickerOptions } from './view/common/recurringViewHelper';
|
|
657
|
+
export { RecurringFrequencyType, getRecurringEndDateFromCount, toRecurringFrequency, getMinAllowedEndDate, RecurringDatePickerOptions, };
|
package/lib/index.js
CHANGED
|
@@ -46,7 +46,7 @@ exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLo
|
|
|
46
46
|
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 = 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 = void 0;
|
|
47
47
|
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 = 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 = void 0;
|
|
48
48
|
exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.allTaskTags = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = 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 = 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.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = void 0;
|
|
49
|
-
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.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = void 0;
|
|
49
|
+
exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = 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.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = void 0;
|
|
50
50
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
51
51
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
52
52
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -1376,3 +1376,7 @@ Object.defineProperty(exports, "saveReferralFormDataInLocalStore", { enumerable:
|
|
|
1376
1376
|
Object.defineProperty(exports, "resendReferralInvite", { enumerable: true, get: function () { return referralReducer_1.resendReferralInvite; } });
|
|
1377
1377
|
Object.defineProperty(exports, "updateReferralListSortUiState", { enumerable: true, get: function () { return referralReducer_1.updateReferralListSortUiState; } });
|
|
1378
1378
|
Object.defineProperty(exports, "fetchRewardsPlan", { enumerable: true, get: function () { return referralReducer_1.fetchRewardsPlan; } });
|
|
1379
|
+
const recurringViewHelper_1 = require("./view/common/recurringViewHelper");
|
|
1380
|
+
Object.defineProperty(exports, "getRecurringEndDateFromCount", { enumerable: true, get: function () { return recurringViewHelper_1.getRecurringEndDateFromCount; } });
|
|
1381
|
+
Object.defineProperty(exports, "toRecurringFrequency", { enumerable: true, get: function () { return recurringViewHelper_1.toRecurringFrequency; } });
|
|
1382
|
+
Object.defineProperty(exports, "getMinAllowedEndDate", { enumerable: true, get: function () { return recurringViewHelper_1.getMinAllowedEndDate; } });
|
package/lib/reducer.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ import { JESchedulesState } from './entity/jeSchedules/jeSchedulesState';
|
|
|
147
147
|
import { GlobalMerchantAutoCompleteState } from './view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState';
|
|
148
148
|
import { GlobalMerchantViewState } from './view/globalMerchantView/globalMerchantViewState';
|
|
149
149
|
import { AuditReportViewState } from './view/auditReportView/auditReportViewState';
|
|
150
|
-
import { TaskState } from './entity/task/
|
|
150
|
+
import { TaskState } from './entity/task/taskState';
|
|
151
151
|
import { TaskSummaryState } from './entity/taskSummary/taskSummaryState';
|
|
152
152
|
import { TaskListState } from './view/taskManager/taskListView/taskList';
|
|
153
153
|
import { TaskDetailViewState } from './view/taskManager/taskDetailView/taskDetail';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ZeniDate } from '../../zeniDayJS';
|
|
2
|
+
export declare const toRecurringFrequency: (v: string) => "weekly" | "monthly" | "biweekly" | "quarterly";
|
|
3
|
+
export declare const toRecurringFrequencyStrict: (v?: string | undefined) => "weekly" | "monthly" | "biweekly" | "quarterly" | undefined;
|
|
4
|
+
export declare type RecurringFrequencyType = NonNullable<ReturnType<typeof toRecurringFrequency>>;
|
|
5
|
+
export declare const toRecurringDatePickerOptions: (v: string) => "date" | "recurringCount";
|
|
6
|
+
export declare const toRecurringDatePickerOptionsStrict: (v?: string | undefined) => "date" | "recurringCount" | undefined;
|
|
7
|
+
export declare type RecurringDatePickerOptions = NonNullable<ReturnType<typeof toRecurringDatePickerOptions>>;
|
|
8
|
+
export declare const getRecurringFrequencyInDays: (frequency: RecurringFrequencyType) => number;
|
|
9
|
+
export declare const getRecurringEndDateFromCount: (startDate: ZeniDate, frequency: RecurringFrequencyType, recurringCount: number) => ZeniDate;
|
|
10
|
+
export declare const getMinAllowedEndDate: (frequency: RecurringFrequencyType, startDate?: import("dayjs").Dayjs | undefined) => ZeniDate | undefined;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMinAllowedEndDate = exports.getRecurringEndDateFromCount = exports.getRecurringFrequencyInDays = exports.toRecurringDatePickerOptionsStrict = exports.toRecurringDatePickerOptions = exports.toRecurringFrequencyStrict = exports.toRecurringFrequency = void 0;
|
|
4
|
+
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
+
const ALL_RECURRING_FREQUENCY = [
|
|
6
|
+
'weekly',
|
|
7
|
+
'biweekly',
|
|
8
|
+
'monthly',
|
|
9
|
+
'quarterly',
|
|
10
|
+
];
|
|
11
|
+
const toRecurringFrequency = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_RECURRING_FREQUENCY);
|
|
12
|
+
exports.toRecurringFrequency = toRecurringFrequency;
|
|
13
|
+
const toRecurringFrequencyStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_RECURRING_FREQUENCY);
|
|
14
|
+
exports.toRecurringFrequencyStrict = toRecurringFrequencyStrict;
|
|
15
|
+
const ALL_RECURRING_DATE_PICKER_OPTIONS = ['date', 'recurringCount'];
|
|
16
|
+
const toRecurringDatePickerOptions = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_RECURRING_DATE_PICKER_OPTIONS);
|
|
17
|
+
exports.toRecurringDatePickerOptions = toRecurringDatePickerOptions;
|
|
18
|
+
const toRecurringDatePickerOptionsStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_RECURRING_DATE_PICKER_OPTIONS);
|
|
19
|
+
exports.toRecurringDatePickerOptionsStrict = toRecurringDatePickerOptionsStrict;
|
|
20
|
+
const getRecurringFrequencyInDays = (frequency) => {
|
|
21
|
+
switch (frequency) {
|
|
22
|
+
case 'weekly':
|
|
23
|
+
return 7;
|
|
24
|
+
case 'biweekly':
|
|
25
|
+
return 14;
|
|
26
|
+
case 'monthly':
|
|
27
|
+
return 30;
|
|
28
|
+
case 'quarterly':
|
|
29
|
+
return 90;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.getRecurringFrequencyInDays = getRecurringFrequencyInDays;
|
|
33
|
+
const getRecurringEndDateFromCount = (startDate, frequency, recurringCount) => {
|
|
34
|
+
let endDate = startDate;
|
|
35
|
+
switch (frequency) {
|
|
36
|
+
case 'weekly':
|
|
37
|
+
case 'biweekly':
|
|
38
|
+
endDate = startDate.add((0, exports.getRecurringFrequencyInDays)(frequency) * (recurringCount - 1), 'day');
|
|
39
|
+
break;
|
|
40
|
+
case 'monthly':
|
|
41
|
+
endDate = startDate.add(recurringCount - 1, 'month');
|
|
42
|
+
break;
|
|
43
|
+
case 'quarterly':
|
|
44
|
+
endDate = startDate.add(recurringCount - 1, 'quarter');
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
return endDate;
|
|
48
|
+
};
|
|
49
|
+
exports.getRecurringEndDateFromCount = getRecurringEndDateFromCount;
|
|
50
|
+
const getMinAllowedEndDate = (frequency, startDate) => {
|
|
51
|
+
if (startDate == null) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
switch (frequency) {
|
|
55
|
+
case 'weekly':
|
|
56
|
+
return startDate.add(7, 'day');
|
|
57
|
+
case 'biweekly':
|
|
58
|
+
return startDate.add(14, 'day');
|
|
59
|
+
case 'monthly':
|
|
60
|
+
return startDate.add(1, 'month');
|
|
61
|
+
case 'quarterly':
|
|
62
|
+
return startDate.add(1, 'quarter');
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.getMinAllowedEndDate = getMinAllowedEndDate;
|
|
@@ -19,7 +19,7 @@ const getRecommendationByLineIdFromRecommendationPayload = (recommendationPayloa
|
|
|
19
19
|
}
|
|
20
20
|
const recommendationsWithLine = {};
|
|
21
21
|
/* Note: Below case will happen only when we are fetching vendor recomemndations from a JE transaction line item.
|
|
22
|
-
|
|
22
|
+
And in such a case, we only want to update recommendation for that line.lineIds will always have a single element */
|
|
23
23
|
if (lineIds.length !== recommendationPayload.length) {
|
|
24
24
|
recommendationsWithLine[lineIds[0]] = (0, transactionPayload_1.transformRecommendation)(recommendationPayload[parseInt(lineIds[0])]);
|
|
25
25
|
}
|
|
@@ -42,8 +42,8 @@ function toRemindersPayload(localData) {
|
|
|
42
42
|
return remindersPayload;
|
|
43
43
|
}
|
|
44
44
|
function toSaveNotificationSettingsPayload(localData, notificationSettingsData) {
|
|
45
|
-
const { reminderNotificationSettings } = notificationSettingsData;
|
|
46
|
-
const { reminders } = localData;
|
|
45
|
+
const { reminderNotificationSettings, monthEndInsightsNotificationSettings } = notificationSettingsData;
|
|
46
|
+
const { reminders, monthEndInsights } = localData;
|
|
47
47
|
const payload = {
|
|
48
48
|
is_missing_receipt_notification_active: null,
|
|
49
49
|
missing_receipt_notification: null,
|
|
@@ -53,6 +53,10 @@ function toSaveNotificationSettingsPayload(localData, notificationSettingsData)
|
|
|
53
53
|
pending_bill_approval_notification: null,
|
|
54
54
|
pending_reimbursement_approval_notification: null,
|
|
55
55
|
is_pending_reimbursement_approval_notification_active: null,
|
|
56
|
+
is_month_end_insights_active: monthEndInsightsNotificationSettings.enabled != null
|
|
57
|
+
? monthEndInsights.notify
|
|
58
|
+
: null,
|
|
59
|
+
month_end_email_recipient_email_ids: monthEndInsights.recipientEmailIds,
|
|
56
60
|
};
|
|
57
61
|
if (reminderNotificationSettings.missingReceiptNotification != null) {
|
|
58
62
|
payload.is_missing_receipt_notification_active =
|
|
@@ -14,6 +14,7 @@ import { Contact } from '../../../../entity/billPay/contact/contact';
|
|
|
14
14
|
import { RecurringBillFrequency, RecurringBillPaymentStatus, RecurringBillStatus } from '../../../../entity/billPay/recurringBills/recurringBillsState';
|
|
15
15
|
import { BillStage } from '../../../../entity/billPay/billTransaction/billTransactionState';
|
|
16
16
|
import { TransferMoneyParty } from '../../zeniAccounts/transferDetail/transferDetailState';
|
|
17
|
+
import { RecurringDatePickerOptions } from '../../../common/recurringViewHelper';
|
|
17
18
|
export interface EditBillDetail {
|
|
18
19
|
fetchStatus: FetchStateAndError;
|
|
19
20
|
saveStatus: FetchStateAndError;
|
|
@@ -104,7 +105,7 @@ export interface RecurringBillConfigLocalData {
|
|
|
104
105
|
startDate?: ZeniDate;
|
|
105
106
|
endDate?: ZeniDate;
|
|
106
107
|
currentInstance?: number;
|
|
107
|
-
endDateSelectorOptionType?:
|
|
108
|
+
endDateSelectorOptionType?: RecurringDatePickerOptions;
|
|
108
109
|
isActive: boolean;
|
|
109
110
|
updateRecurringBills?: EditRecurringBillType;
|
|
110
111
|
}
|
|
@@ -81,7 +81,8 @@ const updateRecurringBillDetails = (currentRecurringConfig, prevRecurringConfig,
|
|
|
81
81
|
endDateSelectorOptionType === 'date')) {
|
|
82
82
|
currentTotalPayments = (0, exports.getTotalPayments)(startDate, endDate, frequency, currentInstance);
|
|
83
83
|
}
|
|
84
|
-
else if (endDate == null ||
|
|
84
|
+
else if (endDate == null ||
|
|
85
|
+
endDateSelectorOptionType === 'recurringCount') {
|
|
85
86
|
currentEndDate = (0, exports.getEndDate)(startDate, frequency, totalPaymentCycles, currentInstance);
|
|
86
87
|
}
|
|
87
88
|
//editRecurringBill
|
|
@@ -40,10 +40,12 @@ const getTransferMoneyParties = (depositAccounts, paymentAccounts) => {
|
|
|
40
40
|
...depositAccounts.map((depositAcc) => (0, exports.mapDepositAccToTransferMoneyParty)(depositAcc)),
|
|
41
41
|
...paymentAccounts
|
|
42
42
|
.filter((paymentAccount) => {
|
|
43
|
-
var _a, _b;
|
|
43
|
+
var _a, _b, _c;
|
|
44
44
|
return ((_a = paymentAccount.providerVerificationStatus) === null || _a === void 0 ? void 0 : _a.code) === 'verified' ||
|
|
45
45
|
((_b = paymentAccount.providerVerificationStatus) === null || _b === void 0 ? void 0 : _b.code) ===
|
|
46
|
-
'manually_verified'
|
|
46
|
+
'manually_verified' ||
|
|
47
|
+
((_c = paymentAccount.providerVerificationStatus) === null || _c === void 0 ? void 0 : _c.code) ===
|
|
48
|
+
'automatically_verified';
|
|
47
49
|
})
|
|
48
50
|
.map((paymentAcc) => (0, exports.mapPaymentAccToTransferMoneyParty)(paymentAcc)),
|
|
49
51
|
];
|
|
@@ -22,6 +22,14 @@ const initializeTaskToLocalStoreEpic = (actions$, state$) => actions$.pipe((0, o
|
|
|
22
22
|
priority: task.priority.code,
|
|
23
23
|
tag: task.tag != null ? task.tag.code : undefined,
|
|
24
24
|
fileIds: task.fileIds,
|
|
25
|
+
type: task.type,
|
|
26
|
+
recurringFrequency: task.recurringFrequency,
|
|
27
|
+
recurringEndDateLocalData: {
|
|
28
|
+
recurringDatePickerOptionsType: 'date',
|
|
29
|
+
recurringEndDate: task.recurringEndDate,
|
|
30
|
+
},
|
|
31
|
+
savedRecurringEndDate: task.recurringEndDate,
|
|
32
|
+
recurringStartDate: task.recurringStartDate,
|
|
25
33
|
};
|
|
26
34
|
const actions = [
|
|
27
35
|
(0, taskDetailReducer_1.saveTaskUpdatesToLocalStore)({ taskDetailLocalData, taskId }),
|
|
@@ -8,6 +8,7 @@ const taskDetailReducer_1 = require("../taskDetailReducer");
|
|
|
8
8
|
const taskReducer_1 = require("../../../../entity/task/taskReducer");
|
|
9
9
|
const taskSelector_1 = require("../../../../entity/task/taskSelector");
|
|
10
10
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
11
|
+
const formatZeniDateFY_1 = require("../../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
11
12
|
const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(taskDetailReducer_1.saveTaskDetail.match), (0, operators_1.mergeMap)((action) => {
|
|
12
13
|
const { taskId } = action.payload;
|
|
13
14
|
const state = state$.value;
|
|
@@ -58,7 +59,7 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
58
59
|
}));
|
|
59
60
|
exports.saveTaskDetailEpic = saveTaskDetailEpic;
|
|
60
61
|
const prepareTaskPayload = (state, taskId) => {
|
|
61
|
-
var _a, _b, _c, _d;
|
|
62
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
62
63
|
const { taskDetailState, taskState } = state;
|
|
63
64
|
const syncToken = taskId != null ? (_b = (_a = (0, taskSelector_1.getTaskById)(taskState, taskId)) === null || _a === void 0 ? void 0 : _a.syncToken) !== null && _b !== void 0 ? _b : '' : '';
|
|
64
65
|
const sourceState = taskId != null
|
|
@@ -74,6 +75,14 @@ const prepareTaskPayload = (state, taskId) => {
|
|
|
74
75
|
status: localData.status,
|
|
75
76
|
tag: localData.tag,
|
|
76
77
|
file_ids: localData.fileIds,
|
|
78
|
+
type: localData.type.code,
|
|
79
|
+
recurring_end_date: localData.type.code === 'recurring'
|
|
80
|
+
? (_f = (_e = localData.savedRecurringEndDate) === null || _e === void 0 ? void 0 : _e.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _f !== void 0 ? _f : null
|
|
81
|
+
: null,
|
|
82
|
+
recurring_frequency: localData.type.code === 'recurring' ? localData.recurringFrequency : null,
|
|
83
|
+
recurring_start_date: localData.type.code === 'recurring'
|
|
84
|
+
? (_h = (_g = localData.recurringStartDate) === null || _g === void 0 ? void 0 : _g.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _h !== void 0 ? _h : null
|
|
85
|
+
: null,
|
|
77
86
|
sync_token: syncToken,
|
|
78
87
|
};
|
|
79
88
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { TaskStatusCodeType, PriorityCodeType, TaskTagCodeType } from '../../../entity/task/
|
|
2
|
+
import { TaskStatusCodeType, PriorityCodeType, TaskTagCodeType, TaskType } from '../../../entity/task/taskState';
|
|
3
3
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
|
+
import { RecurringDatePickerOptions, RecurringFrequencyType } from '../../common/recurringViewHelper';
|
|
4
5
|
import { CommonHistoryView } from '../../spendManagement/commonHistoryView/commonHistory';
|
|
5
6
|
export interface TaskDetailViewState {
|
|
6
7
|
newTaskState: EditTaskDetail;
|
|
@@ -23,6 +24,15 @@ export interface EditTaskLocalData {
|
|
|
23
24
|
dueDate?: ZeniDate;
|
|
24
25
|
priority: PriorityCodeType;
|
|
25
26
|
tag?: TaskTagCodeType;
|
|
27
|
+
type: TaskType;
|
|
28
|
+
recurringEndDateLocalData: {
|
|
29
|
+
recurringDatePickerOptionsType?: RecurringDatePickerOptions;
|
|
30
|
+
recurringEndDate?: ZeniDate;
|
|
31
|
+
recurringCount?: number;
|
|
32
|
+
};
|
|
33
|
+
savedRecurringEndDate?: ZeniDate;
|
|
34
|
+
recurringFrequency?: RecurringFrequencyType;
|
|
35
|
+
recurringStartDate?: ZeniDate;
|
|
26
36
|
fileIds: ID[];
|
|
27
37
|
}
|
|
28
38
|
export declare const initialTaskDetail: EditTaskDetail;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
3
|
import { Class } from '../../../entity/class/classState';
|
|
4
|
-
import { TaskTag, TaskStatus, TaskPriority } from '../../../entity/task/
|
|
4
|
+
import { TaskTag, TaskStatus, TaskPriority } from '../../../entity/task/taskState';
|
|
5
5
|
import { RootState } from '../../../reducer';
|
|
6
6
|
import { File } from '../../../entity/file/fileState';
|
|
7
7
|
import { UserListSelectorView } from '../../userListView/userListViewSelector';
|
|
@@ -169,13 +169,17 @@ exports.allTaskPriority = [
|
|
|
169
169
|
const showFormFooter = (taskDetailLocalData, taskDetailInStore) => {
|
|
170
170
|
var _a, _b, _c;
|
|
171
171
|
if (taskDetailLocalData.name !== (taskDetailInStore === null || taskDetailInStore === void 0 ? void 0 : taskDetailInStore.name) ||
|
|
172
|
-
taskDetailLocalData.description !==
|
|
173
|
-
taskDetailLocalData.priority !==
|
|
174
|
-
taskDetailLocalData.status !==
|
|
175
|
-
!(0, isEqual_1.default)(taskDetailLocalData.tag, (_a = taskDetailInStore
|
|
172
|
+
taskDetailLocalData.description !== taskDetailInStore.description ||
|
|
173
|
+
taskDetailLocalData.priority !== taskDetailInStore.priority.code ||
|
|
174
|
+
taskDetailLocalData.status !== taskDetailInStore.status.code ||
|
|
175
|
+
!(0, isEqual_1.default)(taskDetailLocalData.tag, (_a = taskDetailInStore.tag) === null || _a === void 0 ? void 0 : _a.code) ||
|
|
176
176
|
!(0, isEqual_1.default)(taskDetailLocalData.assignee, (_b = taskDetailInStore === null || taskDetailInStore === void 0 ? void 0 : taskDetailInStore.assignees) !== null && _b !== void 0 ? _b : []) ||
|
|
177
|
-
!(0, isEqual_1.default)(taskDetailLocalData.fileIds, (_c = taskDetailInStore
|
|
178
|
-
!(0, isEqual_1.default)(taskDetailLocalData.dueDate, taskDetailInStore
|
|
177
|
+
!(0, isEqual_1.default)(taskDetailLocalData.fileIds, (_c = taskDetailInStore.fileIds) !== null && _c !== void 0 ? _c : []) ||
|
|
178
|
+
!(0, isEqual_1.default)(taskDetailLocalData.dueDate, taskDetailInStore.dueDate) ||
|
|
179
|
+
!(0, isEqual_1.default)(taskDetailLocalData.type, taskDetailInStore.type) ||
|
|
180
|
+
!(0, isEqual_1.default)(taskDetailLocalData.savedRecurringEndDate, taskDetailInStore.recurringEndDate) ||
|
|
181
|
+
!(0, isEqual_1.default)(taskDetailLocalData.recurringFrequency, taskDetailInStore.recurringFrequency) ||
|
|
182
|
+
!(0, isEqual_1.default)(taskDetailLocalData.recurringStartDate, taskDetailInStore.recurringStartDate)) {
|
|
179
183
|
return true;
|
|
180
184
|
}
|
|
181
185
|
return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
|
-
import { Task } from '../../../entity/task/
|
|
2
|
+
import { Task } from '../../../entity/task/taskState';
|
|
3
3
|
import { RootState } from '../../../reducer';
|
|
4
4
|
import { UserAndRole } from '../../companyView/types/userAndRole';
|
|
5
5
|
import { TaskListFilters, TaskListUIState } from './taskList';
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getAllTasks = void 0;
|
|
7
7
|
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
8
8
|
const sortOrderPayload_1 = require("../../../commonPayloadTypes/sortOrderPayload");
|
|
9
|
-
const
|
|
9
|
+
const taskState_1 = require("../../../entity/task/taskState");
|
|
10
10
|
const taskSelector_1 = require("../../../entity/task/taskSelector");
|
|
11
11
|
const userAndRole_1 = require("../../companyView/types/userAndRole");
|
|
12
12
|
const userListViewSelector_1 = require("../../userListView/userListViewSelector");
|
|
@@ -41,7 +41,7 @@ const getAllTasks = (state) => {
|
|
|
41
41
|
case 'status':
|
|
42
42
|
return task.status.name;
|
|
43
43
|
case 'priority':
|
|
44
|
-
return
|
|
44
|
+
return taskState_1.ALL_PRORITY_CODE.indexOf(task.priority.code);
|
|
45
45
|
case 'createdBy':
|
|
46
46
|
return (_c = task.createdByUser) === null || _c === void 0 ? void 0 : _c.user.firstName;
|
|
47
47
|
case 'name':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.91",
|
|
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",
|