Members
(constant) authenticateMeteorUserByToken
SimpleRest middleware for validating a Meteor.user's login token
This middleware must be processed after the request.token has been set to a
valid login token for a Meteor.user account (from a separate layer of
middleware). If authentication is successful, the request.userId will be set
to the ID of the authenticated user.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
(constant) useStyles
To use without formik(I haven't tested it, so test it before sending for production).
pass a object containing property value and name to prop field.
and to use custom onChange send onChange prop.
Methods
"project.rawUnit.cancel.revive"(options) → {undefined}
Meteor method to cancel or revive the RawUnits associated to particular project due to 'under construction or not dealing yet'
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object | contains {projectId,cancel,reason} |
Returns:
- Type
- undefined
"reports.tcWork.buyer"(options) → {Object}
1. Find all required telecallers 2. Find all rawUnits assigned to those telecallers and loop on them 3. if cancelled, count as cancelled, else { count statuses count callLaters } 4. if (callLater)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Object | assignedToQueryject containing from (Date), to (Date) and assignedTo (Array of ids) fields. |
Returns:
reactive-table-data
- Type
- Object
"reports.tcWork.calls"(options) → {Object}
1. Find all required telecallers 2. Find all rawUnits assigned to those telecallers and loop on them 3. if cancelled, count as cancelled, else { count statuses count callLaters } 4. if (callLater)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Object | assignedToQueryject containing from (Date), to (Date) and assignedTo (Array of ids) fields. |
Returns:
reactive-table-data
- Type
- Object
"reports.work.verifier"(options) → {Object}
1. Find all required telecallers 2. Find all rawUnits assigned to those telecallers and loop on them 3. if cancelled, count as cancelled, else { count statuses count callLaters } 4. if (callLater)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Object | assignedToQueryject containing from (Date), to (Date) and assignedTo (Array of ids) fields. |
Returns:
reactive-table-data
- Type
- Object
"request.updateUnitInfo"(listingId, unitDetail) → {void}
Finds all requests for a given listing id and updates the unit info, for any change in listing id that is triggered by changes in url or refreshUrl fields in the listings section(find updateListings method)
Parameters:
| Name | Type | Description |
|---|---|---|
listingId |
Number | listing Id to query for in requests, this can also be used to query for units, if unit object is not passed i.e calling from frontend |
unitDetail |
Object | Unit details object including id,identifier,location,saleInfo,spaces |
Returns:
- Type
- void
checkAmenities(amenities) → {Set}
This function categorizes the amenities.
Parameters:
| Name | Type | Description |
|---|---|---|
amenities |
array | array of amenities available in unit. |
Returns:
ret -set of amenities name or their category.
- Type
- Set
GenericButton(props) → {JSX}
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
- Source:
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
GenericButton(props) → {JSX}
- Source:
This component renders a Button which shows a CircularProgress animation till client receive response from server.
If client receives error, then error callback is called, otherwise success callback is called.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
Object | props for Button. |
Returns:
-Mui Button with default error callback and success callback.
*******************************************************************************************************************************
props are:
1. onClick {Function} : click handler for click event on Button. It exposes setSubmitting and setSuccess.
2. children {Object} : Content Inside Button.
3. CircularProgressProps {Object} : prop for CircularProgress.
4. style {Object} : prop for inline-styling, if not preferring className.
5. rest {Object} : all the props available for Mui Button(For reference check this link: https://material-ui.com/api/button/)
*******************************************************************************************************************************
States are:
1. isSuccess {Boolean} : state for setting success prop.
2. isSubmitting {Boolean} : state for setting processing and disabled prop.
- Type
- JSX
getUserIdFromAuthToken(token) → {String}
Retrieves the ID of the Meteor.user that the given auth token belongs to
Parameters:
| Name | Type | Description |
|---|---|---|
token |
string | An unhashed auth token |
Returns:
The ID of the authenticated Meteor.user, or null if token
is invalid
- Type
- String
Listing(props) → {ReactElement}
This Component renders a formik form for adding Property with basic details.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
object | props |
Returns:
React component
- Type
- ReactElement
Optional(props) → {ReactElement}
This Component renders a react hook form for adding Property with basic details.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
object | props |
Returns:
React component
- Type
- ReactElement
RawUnitFormWrapper(props) → {ReactElement}
This Component renders a react hook form for adding Property with basic details.
Parameters:
| Name | Type | Description |
|---|---|---|
props |
object | props |
Returns:
React component
- Type
- ReactElement
reviveRawUnit({event,) → {undefined}
Function to revive rawUnit
Parameters:
| Name | Type | Description |
|---|---|---|
{event, |
Object | rawUnitId} : event triggered and ru id |
Returns:
- Type
- undefined
trashRawUnit({id,) → {undefined}
Function to trash rawUnit
Parameters:
| Name | Type | Description |
|---|---|---|
{id, |
Object | reason} : id of ru and reason selected from Popover |
Returns:
- Type
- undefined
validateEachSlide({unit}) → {boolean}
This fuction validate the unit specific data in form.
Parameters:
| Name | Type | Description |
|---|---|---|
{unit} |
object | form data specific to particular unit visited. |
Returns:
if all the fields in unit is not null returns true.
- Type
- boolean