- Source:
Members
-
<static, constant> allowFirstWeighInConfirmation
-
Allow access to the initial height and weight confirmation process if on the first weigh in of a journey we also allow access if the form is in progress, because on step 3 we set the journey confirmation state, breaking the unconfirmed requirement
- Source:
-
<static, constant> authenticated :RouteRequirement
-
Requires that the user is logged in if on the server. On the client, the check for authentication will happen in ClientAuthenticationManager. This is because the page render can start before authentication happens.
Type:
- Source:
-
<static, constant> firstWeighInConfirmed
-
Same as hasConfirmedFirstWeighIn above but used for disabling wizard steps
- Source:
-
<static, constant> firstWeighInConfirmFailed
-
When a user has completed the initial checks but their BMI was too low and we don't want them to proceed with weigh in
- Source:
-
<static, constant> hasConfirmedFirstWeighIn
-
A user hasn't confirmed their initial weights and heights before attempting the first weigh in of a journey, send them to do so. We also let them through if they've got more than one weigh in already as when this work is released we don't want to prompt all users
- Source:
-
<static, constant> hasNoWeightEntry
-
For weigh in, if you've confirmed weight you shouldn't be able to go back to that screen again as the BE will block you anyway
- Source:
-
<static, constant> hasPaymentResponse :RouteRequirement
-
Requires that the user has a payment response (including a non-success response) in the redux state
Type:
- Source:
-
<static, constant> inviteRequiredForGroupRegistration
-
UK group registration - ensure that we have an inviteId to procceeed through group registration
- check if /group-register/ has an inviteId
- Source:
-
<static, constant> isAuthenticatedAndNotMigrating :RouteRequirement
-
Requires that the user has completed migration flow.
Note: On the client side, this RouteRequirement will wait until authentication is handled before checking for a migration status
Type:
- Source:
-
<static, constant> isDeveloper :RouteRequirement
-
Requires that the user has a developer role
Type:
- Source:
-
<static, constant> isGroupMember :RouteRequirement
-
Requires that a user has a valid group membership
Note: On the client side, this RouteRequirement will wait until authentication is handled before checking for a subscription
Type:
- Source:
-
<static, constant> isNotAFree2GoMember :RouteRequirement
-
Requires that the user does NOT have the Free2Go role If they do have the Free2Go role - (redirect them to the Free2Go landing page)
Type:
- Source:
-
<static, constant> isOnlineMember
-
TODO: GR-336 can this be replaced entirely by the definitive check (e.g. memberType) Requires that a user has a valid subscription or is migrating by checking accountState flags.
- Source:
-
<static, constant> memberTypeIsOnline
-
As above, but using memberType rather than account state flags GR-336 to review and see if this can become the principal way to determine group or online
- Source:
-
<static, constant> noAccount :RouteRequirement
-
You cannot have an account during registration. If you do, when you don't have a subscription, you are redirected to the payment page. Otherwise you are redirected to the member site, or to the finished page when doing client-side routing.
Type:
- Source:
-
<static, constant> noValidPaymentResponse :RouteRequirement
-
Requires that a valid payment response has NOT parsed from the query string. If there is a valid payment response, redirect to the payment finished route.
Type:
- Source:
-
<static, constant> profileCompleted :RouteRequirement
-
Requires that the user has a completed profile. If no completed profile is present, we will redirect the user to finish their registration. If the user has not payed yet, they will be redirected to account to finish payment. If a valid subscription is already present, the user will be redirected to the profile builder.
Note: On the client side, this RouteRequirement will wait until authentication is handled before checking for a completed profile
Type:
- Source:
-
<static, constant> profileNotCompleted :RouteRequirement
-
Requires that the user does not have a completed profile
Note: On the client side, this RouteRequirement will wait until authentication is handled before checking for a completed profile
Type:
- Source:
-
<static, constant> requireNoGroupId :RouteRequirement
-
Redirects the user to the correct page when going to the my slimming group
Type:
- Source:
-
<static, constant> subscriptionValid
-
- Source: