@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.
- package/lib/view/referralView/referralPayload.d.ts +1 -0
- package/lib/view/referralView/referralReducer.js +2 -0
- package/lib/view/referralView/referralSelector.d.ts +1 -0
- package/lib/view/referralView/referralSelector.js +1 -0
- package/lib/view/referralView/referralState.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.8.
|
|
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",
|