@zeniai/client-epic-state 5.0.85-betaAR2 → 5.0.85-betaAS1

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.
Files changed (35) hide show
  1. package/lib/entity/tenant/tenantPayload.d.ts +9 -0
  2. package/lib/entity/tenant/tenantReducer.d.ts +1 -1
  3. package/lib/entity/tenant/tenantReducer.js +44 -8
  4. package/lib/entity/tenant/tenantState.d.ts +4 -1
  5. package/lib/entity/tenant/treasuryPromoHelpers.d.ts +6 -0
  6. package/lib/entity/tenant/treasuryPromoHelpers.js +17 -0
  7. package/lib/epic.d.ts +3 -1
  8. package/lib/epic.js +3 -1
  9. package/lib/esm/entity/tenant/tenantReducer.js +43 -7
  10. package/lib/esm/entity/tenant/treasuryPromoHelpers.js +13 -0
  11. package/lib/esm/epic.js +3 -1
  12. package/lib/esm/index.js +7 -6
  13. package/lib/esm/view/dashboard/dashboardReducer.js +1 -5
  14. package/lib/esm/view/dashboard/dashboardSelector.js +1 -2
  15. package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +18 -0
  16. package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +18 -0
  17. package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +2 -2
  18. package/lib/esm/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +45 -1
  19. package/lib/index.d.ts +7 -6
  20. package/lib/index.js +40 -36
  21. package/lib/view/dashboard/dashboardReducer.d.ts +1 -1
  22. package/lib/view/dashboard/dashboardReducer.js +2 -6
  23. package/lib/view/dashboard/dashboardSelector.d.ts +0 -1
  24. package/lib/view/dashboard/dashboardSelector.js +1 -2
  25. package/lib/view/dashboard/dashboardState.d.ts +0 -1
  26. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.d.ts +8 -0
  27. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +22 -0
  28. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.d.ts +8 -0
  29. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +22 -0
  30. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.d.ts +2 -2
  31. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +1 -1
  32. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +1 -1
  33. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +46 -2
  34. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +2 -0
  35. package/package.json +1 -1
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.updateTreasuryVideoViewedFailure = exports.updateTreasuryVideoViewedSuccess = exports.updateTreasuryVideoViewed = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocationFailure = exports.fetchPortfolioAllocationSuccess = exports.fetchPortfolioAllocation = exports.updatePortfolioAllocationFailure = exports.updatePortfolioAllocationSuccess = exports.updatePortfolioAllocation = exports.updateTreasuryFundsFailure = exports.updateTreasuryFundsSuccess = exports.clearTreasurySetupView = exports.acceptTreasuryTermsFailure = exports.acceptTreasuryTermsSuccess = exports.acceptTreasuryTerms = exports.fetchTreasurySetupViewFailure = exports.fetchTreasurySetupViewSuccess = exports.fetchTreasurySetupView = exports.fetchTreasuryFunds = exports.initialState = void 0;
7
+ exports.updateTreasuryVideoViewedSuccess = exports.updateTreasuryVideoViewedFailure = exports.updateTreasuryVideoViewed = exports.updateTreasuryPromoRemindMeLaterClickedSuccess = exports.updateTreasuryPromoRemindMeLaterClickedFailure = exports.updateTreasuryPromoRemindMeLaterClicked = exports.updateTreasuryPromoIntroClosedByOutsideClickSuccess = exports.updateTreasuryPromoIntroClosedByOutsideClickFailure = exports.updateTreasuryPromoIntroClosedByOutsideClick = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocationFailure = exports.fetchPortfolioAllocationSuccess = exports.fetchPortfolioAllocation = exports.updatePortfolioAllocationFailure = exports.updatePortfolioAllocationSuccess = exports.updatePortfolioAllocation = exports.updateTreasuryFundsFailure = exports.updateTreasuryFundsSuccess = exports.clearTreasurySetupView = exports.acceptTreasuryTermsFailure = exports.acceptTreasuryTermsSuccess = exports.acceptTreasuryTerms = exports.fetchTreasurySetupViewFailure = exports.fetchTreasurySetupViewSuccess = exports.fetchTreasurySetupView = exports.fetchTreasuryFunds = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const isEqual_1 = __importDefault(require("lodash/isEqual"));
10
10
  const zeniDayJS_1 = require("../../../../zeniDayJS");
@@ -40,6 +40,14 @@ exports.initialState = {
40
40
  fetchState: 'Not-Started',
41
41
  error: undefined,
42
42
  },
43
+ updateTreasuryPromoIntroClosedByOutsideClickStatus: {
44
+ fetchState: 'Not-Started',
45
+ error: undefined,
46
+ },
47
+ updateTreasuryPromoRemindMeLaterClickedStatus: {
48
+ fetchState: 'Not-Started',
49
+ error: undefined,
50
+ },
43
51
  updateTreasuryVideoViewedStatus: {
44
52
  fetchState: 'Not-Started',
45
53
  error: undefined,
@@ -297,12 +305,48 @@ const treasurySetupView = (0, toolkit_1.createSlice)({
297
305
  error: action.payload,
298
306
  };
299
307
  },
308
+ updateTreasuryPromoRemindMeLaterClicked(draft) {
309
+ draft.updateTreasuryPromoRemindMeLaterClickedStatus = {
310
+ fetchState: 'In-Progress',
311
+ error: undefined,
312
+ };
313
+ },
314
+ updateTreasuryPromoRemindMeLaterClickedSuccess(draft) {
315
+ draft.updateTreasuryPromoRemindMeLaterClickedStatus = {
316
+ fetchState: 'Completed',
317
+ error: undefined,
318
+ };
319
+ },
320
+ updateTreasuryPromoRemindMeLaterClickedFailure(draft, action) {
321
+ draft.updateTreasuryPromoRemindMeLaterClickedStatus = {
322
+ fetchState: 'Error',
323
+ error: action.payload,
324
+ };
325
+ },
326
+ updateTreasuryPromoIntroClosedByOutsideClick(draft) {
327
+ draft.updateTreasuryPromoIntroClosedByOutsideClickStatus = {
328
+ fetchState: 'In-Progress',
329
+ error: undefined,
330
+ };
331
+ },
332
+ updateTreasuryPromoIntroClosedByOutsideClickSuccess(draft) {
333
+ draft.updateTreasuryPromoIntroClosedByOutsideClickStatus = {
334
+ fetchState: 'Completed',
335
+ error: undefined,
336
+ };
337
+ },
338
+ updateTreasuryPromoIntroClosedByOutsideClickFailure(draft, action) {
339
+ draft.updateTreasuryPromoIntroClosedByOutsideClickStatus = {
340
+ fetchState: 'Error',
341
+ error: action.payload,
342
+ };
343
+ },
300
344
  clearTreasurySetupView(draft) {
301
345
  Object.assign(draft, exports.initialState);
302
346
  },
303
347
  },
304
348
  });
305
- _a = treasurySetupView.actions, exports.fetchTreasuryFunds = _a.fetchTreasuryFunds, exports.fetchTreasurySetupView = _a.fetchTreasurySetupView, exports.fetchTreasurySetupViewSuccess = _a.fetchTreasurySetupViewSuccess, exports.fetchTreasurySetupViewFailure = _a.fetchTreasurySetupViewFailure, exports.acceptTreasuryTerms = _a.acceptTreasuryTerms, exports.acceptTreasuryTermsSuccess = _a.acceptTreasuryTermsSuccess, exports.acceptTreasuryTermsFailure = _a.acceptTreasuryTermsFailure, exports.clearTreasurySetupView = _a.clearTreasurySetupView, exports.updateTreasuryFundsSuccess = _a.updateTreasuryFundsSuccess, exports.updateTreasuryFundsFailure = _a.updateTreasuryFundsFailure, exports.updatePortfolioAllocation = _a.updatePortfolioAllocation, exports.updatePortfolioAllocationSuccess = _a.updatePortfolioAllocationSuccess, exports.updatePortfolioAllocationFailure = _a.updatePortfolioAllocationFailure, exports.fetchPortfolioAllocation = _a.fetchPortfolioAllocation, exports.fetchPortfolioAllocationSuccess = _a.fetchPortfolioAllocationSuccess, exports.fetchPortfolioAllocationFailure = _a.fetchPortfolioAllocationFailure, exports.updateFundAllocationLocalData = _a.updateFundAllocationLocalData, exports.updateTreasuryVideoViewed = _a.updateTreasuryVideoViewed, exports.updateTreasuryVideoViewedSuccess = _a.updateTreasuryVideoViewedSuccess, exports.updateTreasuryVideoViewedFailure = _a.updateTreasuryVideoViewedFailure;
349
+ _a = treasurySetupView.actions, exports.fetchTreasuryFunds = _a.fetchTreasuryFunds, exports.fetchTreasurySetupView = _a.fetchTreasurySetupView, exports.fetchTreasurySetupViewSuccess = _a.fetchTreasurySetupViewSuccess, exports.fetchTreasurySetupViewFailure = _a.fetchTreasurySetupViewFailure, exports.acceptTreasuryTerms = _a.acceptTreasuryTerms, exports.acceptTreasuryTermsSuccess = _a.acceptTreasuryTermsSuccess, exports.acceptTreasuryTermsFailure = _a.acceptTreasuryTermsFailure, exports.clearTreasurySetupView = _a.clearTreasurySetupView, exports.updateTreasuryFundsSuccess = _a.updateTreasuryFundsSuccess, exports.updateTreasuryFundsFailure = _a.updateTreasuryFundsFailure, exports.updatePortfolioAllocation = _a.updatePortfolioAllocation, exports.updatePortfolioAllocationSuccess = _a.updatePortfolioAllocationSuccess, exports.updatePortfolioAllocationFailure = _a.updatePortfolioAllocationFailure, exports.fetchPortfolioAllocation = _a.fetchPortfolioAllocation, exports.fetchPortfolioAllocationSuccess = _a.fetchPortfolioAllocationSuccess, exports.fetchPortfolioAllocationFailure = _a.fetchPortfolioAllocationFailure, exports.updateFundAllocationLocalData = _a.updateFundAllocationLocalData, exports.updateTreasuryPromoIntroClosedByOutsideClick = _a.updateTreasuryPromoIntroClosedByOutsideClick, exports.updateTreasuryPromoIntroClosedByOutsideClickFailure = _a.updateTreasuryPromoIntroClosedByOutsideClickFailure, exports.updateTreasuryPromoIntroClosedByOutsideClickSuccess = _a.updateTreasuryPromoIntroClosedByOutsideClickSuccess, exports.updateTreasuryPromoRemindMeLaterClicked = _a.updateTreasuryPromoRemindMeLaterClicked, exports.updateTreasuryPromoRemindMeLaterClickedFailure = _a.updateTreasuryPromoRemindMeLaterClickedFailure, exports.updateTreasuryPromoRemindMeLaterClickedSuccess = _a.updateTreasuryPromoRemindMeLaterClickedSuccess, exports.updateTreasuryVideoViewed = _a.updateTreasuryVideoViewed, exports.updateTreasuryVideoViewedFailure = _a.updateTreasuryVideoViewedFailure, exports.updateTreasuryVideoViewedSuccess = _a.updateTreasuryVideoViewedSuccess;
306
350
  exports.default = treasurySetupView.reducer;
307
351
  function mapTreasuryFundsPayloadToFundData(fundsPayload) {
308
352
  return fundsPayload.funds.map((fund) => ({
@@ -16,6 +16,8 @@ export interface TreasurySetupViewState extends FetchedState {
16
16
  fundAllocationOptions: FundAllocationOption[];
17
17
  fundsDetails: FundData[];
18
18
  };
19
+ updateTreasuryPromoIntroClosedByOutsideClickStatus: FetchStateAndError;
20
+ updateTreasuryPromoRemindMeLaterClickedStatus: FetchStateAndError;
19
21
  updateTreasuryVideoViewedStatus: FetchStateAndError;
20
22
  treasuryTermsDetails?: {
21
23
  fetchStatus: FetchStateAndError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.85-betaAR2",
3
+ "version": "5.0.85-betaAS1",
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
  "module": "lib/esm/index.js",