@zeniai/client-epic-state 4.8.95 → 4.8.97

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.
@@ -23,6 +23,7 @@ export interface FetchRewardsPlanPayload {
23
23
  period: number;
24
24
  period_unit: string;
25
25
  refer_reward_plan_id: string;
26
+ static_referal_link: string;
26
27
  referral_plan_amount: AmountPayload;
27
28
  update_time: string | null;
28
29
  }
@@ -50,6 +50,7 @@ exports.initialState = {
50
50
  currencySymbol: '$',
51
51
  },
52
52
  referRewardPlanId: 'dummy',
53
+ referalUniqueLink: (0, zeniUrl_1.toZeniUrl)(''),
53
54
  },
54
55
  showConfirmationPopup: false,
55
56
  };
@@ -153,6 +154,7 @@ const referral = (0, toolkit_1.createSlice)({
153
154
  draft.rewardsPlanFetchState.error = undefined;
154
155
  draft.rewardsPlan.amount = (0, amount_1.toAmount)(action.payload.referral_plan_amount.amount, action.payload.referral_plan_amount.currency_code, action.payload.referral_plan_amount.currency_symbol);
155
156
  draft.rewardsPlan.referRewardPlanId = action.payload.refer_reward_plan_id;
157
+ draft.rewardsPlan.referalUniqueLink = (0, zeniUrl_1.toZeniUrl)(action.payload.static_referal_link);
156
158
  },
157
159
  updateRewardsPlanFailure(draft, action) {
158
160
  draft.rewardsPlanFetchState.fetchState = 'Error';
@@ -17,6 +17,7 @@ export interface InviteFormSelectorView extends SelectorView {
17
17
  localData: InviteCompanyLocalData[];
18
18
  saveStatus: FetchStateAndError;
19
19
  amount: Amount;
20
+ referalUniqueLink: ZeniUrl;
20
21
  showConfirmationPopup: boolean;
21
22
  }
22
23
  export declare const getReferralListView: (state: RootState) => ReferralListSelectorView;
@@ -80,6 +80,7 @@ const getInviteFormView = (state) => {
80
80
  localData: referralViewState.referralFormLocalData,
81
81
  saveStatus: referralViewState.sendInviteState,
82
82
  amount: referralViewState.rewardsPlan.amount,
83
+ referalUniqueLink: referralViewState.rewardsPlan.referalUniqueLink,
83
84
  fetchState: referralViewState.rewardsPlanFetchState.fetchState,
84
85
  error: referralViewState.rewardsPlanFetchState.error,
85
86
  showConfirmationPopup: referralViewState.showConfirmationPopup,
@@ -37,6 +37,7 @@ export interface ReferralViewUIState {
37
37
  export interface RewardsPlanData {
38
38
  amount: Amount;
39
39
  referRewardPlanId: ID;
40
+ referalUniqueLink: ZeniUrl;
40
41
  }
41
42
  export interface InviteCompanyLocalData {
42
43
  companyName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.95",
3
+ "version": "4.8.97",
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",