@zeniai/client-epic-state 4.19.2-betaAS8 → 4.19.2-betaRR0

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.
@@ -1,2 +1,2 @@
1
- export declare const toAnimationsFileName: (v: string) => "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "Angry" | "AutoTransfer" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Secure" | "Success" | "VeryHappy" | "ZeniAssist";
1
+ export declare const toAnimationsFileName: (v: string) => "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "AutoTransfer" | "CloseCard" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "LockCard" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Secure" | "Success" | "UnlockCard" | "VeryHappy" | "ZeniAssist";
2
2
  export type AnimationFileName = ReturnType<typeof toAnimationsFileName>;
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toAnimationsFileName = void 0;
4
4
  const stringToUnion_1 = require("./stringToUnion");
5
5
  const ALL_ANIMATIONS_FILE_NAMES = [
6
- 'AIPoweredInvoiceDark',
7
- 'AIPoweredInvoiceLight',
8
6
  'AiAgent',
9
7
  'AiIconEntry',
10
8
  'AiIconExit',
@@ -12,8 +10,11 @@ const ALL_ANIMATIONS_FILE_NAMES = [
12
10
  'AiStar',
13
11
  'AiStarIcon',
14
12
  'AiStarPlain',
13
+ 'AIPoweredInvoiceDark',
14
+ 'AIPoweredInvoiceLight',
15
15
  'Angry',
16
16
  'AutoTransfer',
17
+ 'CloseCard',
17
18
  'Confetti',
18
19
  'ConfettiSuccess',
19
20
  'DashboardChristmasSnow',
@@ -33,6 +34,7 @@ const ALL_ANIMATIONS_FILE_NAMES = [
33
34
  'FinanceTeamLight',
34
35
  'Happy',
35
36
  'Liquidity',
37
+ 'LockCard',
36
38
  'MoneyTransferSuccess',
37
39
  'MultiLevelApprovalDark',
38
40
  'MultiLevelApprovalLight',
@@ -48,6 +50,7 @@ const ALL_ANIMATIONS_FILE_NAMES = [
48
50
  'RewardsLightHover',
49
51
  'Secure',
50
52
  'Success',
53
+ 'UnlockCard',
51
54
  'VeryHappy',
52
55
  'ZeniAssist',
53
56
  ];
@@ -13,7 +13,7 @@ const remiListState_1 = require("./remiListState");
13
13
  const fetchRemiListEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(remiListReducer_1.fetchRemiList.match), (0, operators_1.mergeMap)((action) => {
14
14
  const fetchRemiListActions = [];
15
15
  const state = state$.value;
16
- const { period, cacheOverride, isShowDeletedReimbursementEnabled, isIncludeLineItems, isRefreshAccountAndAccountingClass, } = action.payload;
16
+ const { period, cacheOverride, isShowDeletedReimbursementEnabled, isIncludeLineItems, } = action.payload;
17
17
  const tabIds = [
18
18
  'draft',
19
19
  'pending_approval',
@@ -22,7 +22,7 @@ const fetchRemiListEpic = (actions$, state$) => actions$.pipe((0, operators_1.fi
22
22
  ];
23
23
  if (cacheOverride === true) {
24
24
  fetchRemiListActions.push((0, reimbursementConfigReducer_1.fetchReimbursementConfig)());
25
- tabIds.forEach((tab) => fetchRemiListActions.push((0, remiListReducer_1.fetchRemiListPerTab)(period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems, isRefreshAccountAndAccountingClass)));
25
+ tabIds.forEach((tab) => fetchRemiListActions.push((0, remiListReducer_1.fetchRemiListPerTab)(period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems)));
26
26
  }
27
27
  else {
28
28
  if (state.reimbursementConfigState.fetchState !== 'Completed' &&
@@ -33,7 +33,7 @@ const fetchRemiListEpic = (actions$, state$) => actions$.pipe((0, operators_1.fi
33
33
  const key = (0, remiListState_1.getRemiListKey)(period, tab);
34
34
  const remis = (0, get_1.default)(state.remiListState.byRemiListKey, key, undefined);
35
35
  if (remis == null || remis.hasValidState() === false) {
36
- fetchRemiListActions.push((0, remiListReducer_1.fetchRemiListPerTab)(period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems, isRefreshAccountAndAccountingClass));
36
+ fetchRemiListActions.push((0, remiListReducer_1.fetchRemiListPerTab)(period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems));
37
37
  }
38
38
  });
39
39
  }
@@ -10,13 +10,23 @@ const userReducer_1 = require("../../../../entity/user/userReducer");
10
10
  const responsePayload_1 = require("../../../../responsePayload");
11
11
  const remiListReducer_1 = require("./remiListReducer");
12
12
  const fetchRemiListPerTabEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(remiListReducer_1.fetchRemiListPerTab.match), (0, operators_1.mergeMap)((action) => {
13
- const { period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems, isRefreshAccountAndAccountingClass, } = action.payload;
14
- console.log('*************** from epic isRefreshAccountAndAccountingClass *****************', isRefreshAccountAndAccountingClass);
15
- const queryParam = Object.assign({ start_date: (0, timePeriod_1.toString)(period.start), end_date: (0, timePeriod_1.toString)(period.end), sort_by: 'reimbursement_date', sort_order: 'desc', reimbursement_provider: 'zeni', reimbursement_stage_code: tab, is_include_reimbursee_users_info: true, is_include_approval_info: tab === 'pending_approval', is_include_pending_approval_transaction_ids_for_user: tab === 'pending_approval', transaction_type: 'reimbursement', is_include_deleted: isShowDeletedReimbursementEnabled
13
+ const { period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems, } = action.payload;
14
+ const queryParam = {
15
+ start_date: (0, timePeriod_1.toString)(period.start),
16
+ end_date: (0, timePeriod_1.toString)(period.end),
17
+ sort_by: 'reimbursement_date',
18
+ sort_order: 'desc',
19
+ reimbursement_provider: 'zeni',
20
+ reimbursement_stage_code: tab,
21
+ is_include_reimbursee_users_info: true,
22
+ is_include_approval_info: tab === 'pending_approval',
23
+ is_include_pending_approval_transaction_ids_for_user: tab === 'pending_approval',
24
+ transaction_type: 'reimbursement',
25
+ is_include_deleted: isShowDeletedReimbursementEnabled
16
26
  ? tab !== 'draft'
17
- : false, is_include_line_items: isIncludeLineItems ? tab !== 'draft' : false }, (isRefreshAccountAndAccountingClass === false && {
18
- is_refresh_account_and_accounting_class: false,
19
- }));
27
+ : false,
28
+ is_include_line_items: isIncludeLineItems ? tab !== 'draft' : false,
29
+ };
20
30
  return zeniAPI
21
31
  .getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
22
32
  .pipe((0, operators_1.mergeMap)((response) => {
@@ -4,19 +4,17 @@ import { ZeniAPIStatus } from '../../../../responsePayload';
4
4
  import { RemiListPayload } from './remiListPayload';
5
5
  import { ReimbursementFilters, RemiListDownloadUIState, RemiListState, RemiListUIState, RemiTabType, SaveRemiStageCode } from './remiListState';
6
6
  export declare const initialState: RemiListState;
7
- export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, cacheOverride: any, isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isBulkActionCompleteRefresh?: any, isRefreshAccountAndAccountingClass?: boolean | undefined], {
7
+ export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, cacheOverride: any, isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isBulkActionCompleteRefresh?: any], {
8
8
  period: TimePeriod;
9
9
  cacheOverride: any;
10
10
  isShowDeletedReimbursementEnabled: boolean;
11
11
  isIncludeLineItems: boolean;
12
12
  isBulkActionCompleteRefresh: any;
13
- isRefreshAccountAndAccountingClass: boolean | undefined;
14
- }, "remiList/fetchRemiList", never, never>, fetchRemiListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "paid" | "pending_approval" | "scheduled" | "draft", isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isRefreshAccountAndAccountingClass?: boolean | undefined], {
13
+ }, "remiList/fetchRemiList", never, never>, fetchRemiListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "paid" | "pending_approval" | "scheduled" | "draft", isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean], {
15
14
  period: TimePeriod;
16
15
  tab: "paid" | "pending_approval" | "scheduled" | "draft";
17
16
  isShowDeletedReimbursementEnabled: boolean;
18
17
  isIncludeLineItems: boolean;
19
- isRefreshAccountAndAccountingClass: boolean | undefined;
20
18
  }, "remiList/fetchRemiListPerTab", never, never>, updateRemiListByStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
19
  remiList: RemiListPayload;
22
20
  tab: RemiTabType;
@@ -34,15 +34,13 @@ const remiList = (0, toolkit_1.createSlice)({
34
34
  reducer() {
35
35
  //do nothing
36
36
  },
37
- prepare(period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems, isRefreshAccountAndAccountingClass) {
38
- console.log('*************** called fetchRemiListPerTab prepare isRefreshAccountAndAccountingClass *****************', isRefreshAccountAndAccountingClass);
37
+ prepare(period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems) {
39
38
  return {
40
39
  payload: {
41
40
  period,
42
41
  tab,
43
42
  isShowDeletedReimbursementEnabled,
44
43
  isIncludeLineItems,
45
- isRefreshAccountAndAccountingClass,
46
44
  },
47
45
  };
48
46
  },
@@ -70,24 +68,8 @@ const remiList = (0, toolkit_1.createSlice)({
70
68
  ? 'Completed'
71
69
  : 'In-Progress', error: undefined });
72
70
  });
73
- console.log('_________________ called fetchRemiList reducer _________________', {
74
- cacheOverride: action.payload.cacheOverride,
75
- isBulkActionCompleteRefresh: action.payload.isBulkActionCompleteRefresh,
76
- isIncludeLineItems: action.payload.isIncludeLineItems,
77
- isShowDeletedReimbursementEnabled: action.payload.isShowDeletedReimbursementEnabled,
78
- period: action.payload.period,
79
- isRefreshAccountAndAccountingClass: action.payload.isRefreshAccountAndAccountingClass,
80
- });
81
71
  },
82
- prepare(period, cacheOverride = false, isShowDeletedReimbursementEnabled, isIncludeLineItems, isBulkActionCompleteRefresh = false, isRefreshAccountAndAccountingClass) {
83
- console.log('*************** called fetchRemiList prepare isRefreshAccountAndAccountingClass *****************', {
84
- cacheOverride,
85
- isBulkActionCompleteRefresh,
86
- isIncludeLineItems,
87
- isShowDeletedReimbursementEnabled,
88
- period,
89
- isRefreshAccountAndAccountingClass,
90
- });
72
+ prepare(period, cacheOverride = false, isShowDeletedReimbursementEnabled, isIncludeLineItems, isBulkActionCompleteRefresh = false) {
91
73
  return {
92
74
  payload: {
93
75
  period,
@@ -95,7 +77,6 @@ const remiList = (0, toolkit_1.createSlice)({
95
77
  isShowDeletedReimbursementEnabled,
96
78
  isIncludeLineItems,
97
79
  isBulkActionCompleteRefresh,
98
- isRefreshAccountAndAccountingClass,
99
80
  },
100
81
  };
101
82
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.2-betaAS8",
3
+ "version": "4.19.2-betaRR0",
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",