Maps error code (or status) to field name
Styles (that makesStyles takes) as specified in tss-react
Renders error alert (debounced to limit errors on screen)
Renders action alert - info alert with appropriate title and position
Renders info alert
Renders success alert
Renders warning alert
Creates a new notification on screen
Displays formik field error message if error has matching code/status with errorsToFieldName
Returns true if there was a match - error was displayed, false otherwise.
Sets appropriate error for fieldName in Formik form if mutationPromise throws error that
matches one of graphql errorCodes provided.
The promise is passed through (i.e. return promise succeeds if original promise succeeds, fails if original promise fails)
Downloads a file with given filename an text content
Converts enum to list of select options
Finds correct label from given select options based on given value
Same as findSelectedOptions, but for a single object
Find selected options based on their identifiers. Useful to get initial options for Autocomplete
Returns classname string
Gets message of error
Gets initial values to pass to formik without extra fields
Values used by empty form
Values used by none-empty form. Extra fields (that don't appear in emptyValues) are removed.
Checks if currently in browser
Checks if error is Apollo Error, and checks if error codes match
Checks if error is Apollo Network Error and checks if status code matches any of provided
Checks if error is Apollo Network Error with a status code
Checks if object is an error
Checks if key is in object
Converts list of values to list of SelectOptions
Logs an item
(Deep) Merges 2 Styles into one.
(Deep) Merges styles conditionally into commonStyle if their given conditions are satisfied. Conditional styles also take in optional mediaQueryGenerator, that would add media query generated by it to the respective styles.
(Deep) Merges 2 styles conditionally into ${commonStyle} if their conditions are satisfied. Additionally, when styles' prop with key ${propNameForBreakpoint} is non null key (a breakpoint or a number referring to screen width), then both styles will be displayed - the first style displayed for screens with width smaller than the given breakpoint/screen width; the second style will be applied for screens with width bigger than the given breakpoint/screen width.
Navigates to url
Opens a url in a new tab
Removes empty placeholder option (Returns new array)
Removes options from options that match identifiers from removeIdentifiers Useful to remove
some options from Autocomplete options
Generates option nodes for native Select input
Updates cache of a query by adding createdObject to the query. Used after mutation that
creates/adds a new object.
Can be found in mutation update method parameter
The query result cache which needs to be updated. This query should return a List of
objects or if toUpdateListName is specified, query should return with object with
toUpdateListName that has array value
Created object to add to query result
Optional config options
Query variables used on the query
If the cache array we want to update is nested inside query data
Moves createdObject to the begging of the query result instead of the end
Updates cache of a query by deleting object with deleteId from the query. Used after mutation that deletes/removes an object.
Can be found in mutation update method parameter
The query result cache which needs to be updated. This query should return a List of
objects or if toUpdateListName is specified, query should return with object with
toUpdateListName that has array value
Id of deleted object to remove from query result
Optional config options
Query variables used on the query
If the cache array we want to update is nested inside query data
Generated using TypeDoc
Placeholder type for error codes. Override with enum for better type safety