@beinformed/ui 1.20.1 → 1.20.4
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/CHANGELOG.md +21 -0
- package/esm/constants/Constants.js +0 -15
- package/esm/constants/Constants.js.map +1 -1
- package/esm/constants/Settings.js +6 -0
- package/esm/constants/Settings.js.map +1 -1
- package/esm/hooks/useAuthentication.js +41 -5
- package/esm/hooks/useAuthentication.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js +3 -2
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js +4 -3
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/esm/models/application/ApplicationModel.js +6 -1
- package/esm/models/application/ApplicationModel.js.map +1 -1
- package/esm/redux/_modularui/actions.js +1 -1
- package/esm/redux/_modularui/actions.js.map +1 -1
- package/esm/redux/actions/Authorization.js +5 -9
- package/esm/redux/actions/Authorization.js.map +1 -1
- package/esm/redux/actions/Error.js +3 -1
- package/esm/redux/actions/Error.js.map +1 -1
- package/esm/redux/actions/SignIn.js +7 -0
- package/esm/redux/actions/SignIn.js.map +1 -1
- package/esm/redux/types.js.map +1 -1
- package/lib/constants/Constants.js +2 -20
- package/lib/constants/Constants.js.flow +0 -15
- package/lib/constants/Constants.js.map +1 -1
- package/lib/constants/Settings.js +6 -0
- package/lib/constants/Settings.js.flow +9 -0
- package/lib/constants/Settings.js.map +1 -1
- package/lib/hooks/useAuthentication.js +49 -5
- package/lib/hooks/useAuthentication.js.flow +42 -3
- package/lib/hooks/useAuthentication.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js +3 -2
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.flow +3 -2
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js +4 -3
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.flow +4 -3
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/lib/models/application/ApplicationModel.js +7 -1
- package/lib/models/application/ApplicationModel.js.flow +7 -1
- package/lib/models/application/ApplicationModel.js.map +1 -1
- package/lib/redux/_modularui/actions.js +1 -1
- package/lib/redux/_modularui/actions.js.flow +1 -4
- package/lib/redux/_modularui/actions.js.map +1 -1
- package/lib/redux/actions/Authorization.js +7 -12
- package/lib/redux/actions/Authorization.js.flow +4 -16
- package/lib/redux/actions/Authorization.js.map +1 -1
- package/lib/redux/actions/Error.js +4 -1
- package/lib/redux/actions/Error.js.flow +3 -1
- package/lib/redux/actions/Error.js.map +1 -1
- package/lib/redux/actions/SignIn.js +12 -2
- package/lib/redux/actions/SignIn.js.flow +11 -2
- package/lib/redux/actions/SignIn.js.map +1 -1
- package/lib/redux/actions/__tests__/Authorization.spec.js.flow +4 -18
- package/lib/redux/types.js.flow +2 -2
- package/lib/redux/types.js.map +1 -1
- package/package.json +18 -18
- package/src/constants/Constants.js +0 -15
- package/src/constants/Settings.js +9 -0
- package/src/hooks/useAuthentication.js +42 -3
- package/src/i18n/translations/beinformed_error_messages_en.nl.js +3 -2
- package/src/i18n/translations/beinformed_error_messages_nl.nl.js +4 -3
- package/src/models/application/ApplicationModel.js +7 -1
- package/src/redux/_modularui/actions.js +1 -4
- package/src/redux/actions/Authorization.js +4 -16
- package/src/redux/actions/Error.js +3 -1
- package/src/redux/actions/SignIn.js +11 -2
- package/src/redux/actions/__tests__/Authorization.spec.js +4 -18
- package/src/redux/types.js +2 -2
|
@@ -31,6 +31,7 @@ export default {
|
|
|
31
31
|
"Constraint.File.InvalidFormat": "Must meet the requirements of the file name",
|
|
32
32
|
"Constraint.File.InvalidMimeType": "Allowed mime types are: ${mime-types}",
|
|
33
33
|
"Constraint.File.MaxFileSizeExceeded": "Maximum file upload size is ${max-filesize}",
|
|
34
|
+
"Constraint.File.OnlyAllowsOneFile": "Only one file is allowed",
|
|
34
35
|
"Constraint.IBAN.InvalidFormat": "Must be a valid IBAN number",
|
|
35
36
|
"Constraint.InvalidLengthBetween": "Length must be between ${min-length} and ${max-length} characters",
|
|
36
37
|
"Constraint.InvalidLengthExact": "Length must be precisely ${length} characters",
|
|
@@ -65,7 +66,7 @@ export default {
|
|
|
65
66
|
"Constraint.TimeStampRange.InvalidRange": "Start value must be before end value",
|
|
66
67
|
"Constraint.TimeStampRange.Mandatory": "Field is mandatory: must contain at least a start or end value",
|
|
67
68
|
"Constraint.XML.InvalidFormat": "Must be well-formed XML",
|
|
68
|
-
"Constraint.ZipCode.InvalidFormat": "Must be a valid Dutch ZIP code, e.g.
|
|
69
|
+
"Constraint.ZipCode.InvalidFormat": "Must be a valid Dutch ZIP code, e.g. 1234AB",
|
|
69
70
|
"Error.AcceptHeaderRequired": "The 'Accept' request-header field must be provided",
|
|
70
71
|
"Error.Authentication.BlockedUser": "You have been logged out, because your account has been blocked",
|
|
71
72
|
"Error.Authentication.ConcurrentUser": "You have been logged out, since your username has been used at a different location.",
|
|
@@ -76,7 +77,7 @@ export default {
|
|
|
76
77
|
"Error.ChangePasswordRequired": "User password is initial or expired, and must be changed ",
|
|
77
78
|
"Error.CodemapLookup.InvalidToken": "Token for codemap lookup is not valid",
|
|
78
79
|
"Error.DataStore.ConcurrentModification": "Another user has updated a record used in this task",
|
|
79
|
-
"Error.DataStore.RecordAlreadyExists": "
|
|
80
|
+
"Error.DataStore.RecordAlreadyExists": "",
|
|
80
81
|
"Error.DataStore.RowCannotBeLocked": "Another user has already locked a record used in this task",
|
|
81
82
|
"Error.Form.DataNotAvailableForId": "Service can not be completed, data not available for mandatory element ${elementid}",
|
|
82
83
|
"Error.Form.ObjectNotAllowed": "Object '${objectid}' is not allowed",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beinformed_error_messages_en.nl.js","names":[],"sources":["../../../src/i18n/translations/beinformed_error_messages_en.nl.js"],"sourcesContent":["// @flow\n// prettier-ignore\nexport default {\n \"Constraint.Attribute.IncorrectValue\": \"Incorrect value\",\n \"Constraint.Boolean.InvalidValue\": \"Invalid boolean value, only values 'true' or 'false' are valid\",\n \"Constraint.BSN.InvalidFormat\": \"Must be a valid BSN\",\n \"Constraint.Captcha.InvalidToken\": \"The captcha is invalid\",\n \"Constraint.Choice.ConflictingAnswer\": \"Cannot select '${answer-option-key}' because this is not a relevant option, given the other answers\",\n \"Constraint.Choice.ConflictingOptions\": \"Cannot select '${answer-option-key1}' and '${answer-option-key2}' at the same time\",\n \"Constraint.Choice.InvalidOption\": \"Allowed options are: ${options}\",\n \"Constraint.Choice.InvalidOption.General\": \"Value '${value}' is not allowed\",\n \"Constraint.Choice.MultipleNotAllowed\": \"Selecting multiple options is not allowed\",\n \"Constraint.ConfirmCurrentPassword.Invalid\": \"Must match the current password\",\n \"Constraint.Date.AboveMaximum\": \"Must be on or before ${max-date}\",\n \"Constraint.Date.BelowMinimum\": \"Must be on or after ${min-date}\",\n \"Constraint.Date.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.Date.NotOnDate\": \"Must be on ${date}\",\n \"Constraint.Date.OutOfRange\": \"Must be between ${min-date} and ${max-date}\",\n \"Constraint.DateRange.InvalidRange\": \"Start date must be before end date\",\n \"Constraint.DateRange.Mandatory\": \"Field is mandatory: must contain at least a start or end date\",\n \"Constraint.DateTime.AboveMaximum\": \"Must be before ${max-date-time}\",\n \"Constraint.DateTime.BelowMinimum\": \"Must be at ${min-date-time} or after\",\n \"Constraint.DateTime.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.DateTime.OutOfRange\": \"Must be between ${min-date-time} and ${max-date-time}\",\n \"Constraint.DateTimeRange.InvalidRange\": \"Start date-time must be before end date-time\",\n \"Constraint.DateTimeRange.Mandatory\": \"Field is mandatory: must contain at least a start or end date-time\",\n \"Constraint.Document.MimeTypeNotAllowed\": \"The document mime type is not valid for the selected document type\",\n \"Constraint.Email.InvalidFormat\": \"Must be a valid e-mail address\",\n \"Constraint.File.DataEmpty\": \"File does not exist or has no content\",\n \"Constraint.File.InvalidExtension\": \"Allowed extensions are: ${extensions}\",\n \"Constraint.File.InvalidFormat\": \"Must meet the requirements of the file name\",\n \"Constraint.File.InvalidMimeType\": \"Allowed mime types are: ${mime-types}\",\n \"Constraint.File.MaxFileSizeExceeded\": \"Maximum file upload size is ${max-filesize}\",\n \"Constraint.IBAN.InvalidFormat\": \"Must be a valid IBAN number\",\n \"Constraint.InvalidLengthBetween\": \"Length must be between ${min-length} and ${max-length} characters\",\n \"Constraint.InvalidLengthExact\": \"Length must be precisely ${length} characters\",\n \"Constraint.InvalidLengthTooLong\": \"Length must not be larger than ${max-length} characters\",\n \"Constraint.InvalidLengthTooShort\": \"Length must be at least ${min-length} characters\",\n \"Constraint.InvalidRegularExpression\": \"The value is not according the given regular expression ${regexp}\",\n \"Constraint.Mandatory\": \"Field is mandatory\",\n \"Constraint.Missing\": \"Field is mandatory\",\n \"Constraint.Number.AboveMaximum\": \"Must be at most ${max-number}\",\n \"Constraint.Number.BelowMinimum\": \"Must be at least ${min-number}\",\n \"Constraint.Number.InvalidDecimal\": \"Must be a number with up to ${max-digits} decimal places\",\n \"Constraint.Number.InvalidInteger\": \"Must be a whole number\",\n \"Constraint.Number.InvalidLong\": \"Must be a whole number\",\n \"Constraint.Number.OutOfRange\": \"Must be between ${min-number} and ${max-number}\",\n \"Constraint.NumberRange.BothFieldsMandatory\": \"Must contain start and end value\",\n \"Constraint.NumberRange.InvalidRange\": \"Start value must be less than the end value\",\n \"Constraint.NumberRange.Mandatory\": \"Field is mandatory: must contain at least a start or end value\",\n \"Constraint.Password.AlreadyUsed\": \"Must not have been used before\",\n \"Constraint.Password.LowerAndUpperCaseMandatory\": \"Must contain both upper and lowercase characters\",\n \"Constraint.Password.MinNumericCharactersMandatory\": \"Must contain ${min-numeric} or more numerical characters\",\n \"Constraint.Password.MinSpecialCharactersMandatory\": \"Must contain ${min-special} or more special characters\",\n \"Constraint.Password.ThreeConsecutiveCharactersNotAllowed\": \"Must not contain any character more than twice consecutively\",\n \"Constraint.Password.Unchanged\": \"Must not be the same as the old password\",\n \"Constraint.Password.UserNameSubstringNotAllowed\": \"Must not have 5 consecutive characters from username\",\n \"Constraint.SortParameter.InvalidValue\": \"Invalid sort parameter. Allowed values: field+[asc|desc]\",\n \"Constraint.Time.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.TimeRange.InvalidRange\": \"Start time must be before end time\",\n \"Constraint.TimeRange.Mandatory\": \"Field is mandatory: must contain at least a start or end time\",\n \"Constraint.TimeStamp.AboveMaximum\": \"Must be on or before ${max-date}\",\n \"Constraint.TimeStamp.BelowMinimum\": \"Must be on or after ${min-date}\",\n \"Constraint.Timestamp.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.TimeStampRange.InvalidRange\": \"Start value must be before end value\",\n \"Constraint.TimeStampRange.Mandatory\": \"Field is mandatory: must contain at least a start or end value\",\n \"Constraint.XML.InvalidFormat\": \"Must be well-formed XML\",\n \"Constraint.ZipCode.InvalidFormat\": \"Must be a valid Dutch ZIP code, e.g. 1234 AB\",\n \"Error.AcceptHeaderRequired\": \"The 'Accept' request-header field must be provided\",\n \"Error.Authentication.BlockedUser\": \"You have been logged out, because your account has been blocked\",\n \"Error.Authentication.ConcurrentUser\": \"You have been logged out, since your username has been used at a different location.\",\n \"Error.Authentication.InvalidCredentials\": \"Authentication failed\",\n \"Error.Authentication.InvalidUsername\": \"You have been logged out, because your username is not valid anymore\",\n \"Error.Authentication.Required\": \"Authentication is required\",\n \"Error.Case.ConcurrentModification\": \"Another user has updated a case used in this task. As a result, this task can not be completed.\",\n \"Error.ChangePasswordRequired\": \"User password is initial or expired, and must be changed \",\n \"Error.CodemapLookup.InvalidToken\": \"Token for codemap lookup is not valid\",\n \"Error.DataStore.ConcurrentModification\": \"Another user has updated a record used in this task\",\n \"Error.DataStore.RecordAlreadyExists\": \"Row cannot be overwritten because it already exists\",\n \"Error.DataStore.RowCannotBeLocked\": \"Another user has already locked a record used in this task\",\n \"Error.Form.DataNotAvailableForId\": \"Service can not be completed, data not available for mandatory element ${elementid}\",\n \"Error.Form.ObjectNotAllowed\": \"Object '${objectid}' is not allowed\",\n \"Error.Form.ReadOnlyElementId\": \"Element '${elementid}' is read only\",\n \"Error.Form.TooManyObjects\": \"Too many objects '${objectid}' provided\",\n \"Error.Form.UndefinedElementId\": \"Undefined element '${elementid}'\",\n \"Error.Form.UndefinedObject\": \"Undefined object(s) '${objectid}'\",\n \"Error.GeneralError\": \"An unexpected error occurred\",\n \"Error.MethodNotAllowed\": \"The given HTTP method is not allowed for this resource\",\n \"Error.Parameter.InvalidValue\": \"The parameter contains characters that are not allowed\",\n \"Error.Parameter.Mandatory\": \"Parameter ${parameter} is mandatory\",\n \"Error.Parameter.NotAllowed\": \"Parameter '${parameter}' is not allowed\",\n \"Error.ResourceNotFound\": \"The requested resource cannot be found\",\n \"Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch\": \"Password and password confirmation do not match.\",\n \"Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists\": \"A user with email address '${Email}' already exists\",\n \"Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists\": \"A user with username '${Username}' already exists\",\n \"Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists\": \"An organization with id '${ID}' already exists\"\n}\n"],"mappings":";;;;;;AACA;eACe;EACb,uCAAuC,iBAD1B;EAEb,mCAAmC,gEAFtB;EAGb,gCAAgC,qBAHnB;EAIb,mCAAmC,wBAJtB;EAKb,uCAAuC,qGAL1B;EAMb,wCAAwC,oFAN3B;EAOb,mCAAmC,iCAPtB;EAQb,2CAA2C,iCAR9B;EASb,wCAAwC,2CAT3B;EAUb,6CAA6C,iCAVhC;EAWb,gCAAgC,kCAXnB;EAYb,gCAAgC,iCAZnB;EAab,iCAAiC,yCAbpB;EAcb,6BAA6B,oBAdhB;EAeb,8BAA8B,6CAfjB;EAgBb,qCAAqC,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b,oCAAoC,8CAjEvB;EAkEb,8BAA8B,oDAlEjB;EAmEb,oCAAoC,iEAnEvB;EAoEb,uCAAuC,sFApE1B;EAqEb,2CAA2C,uBArE9B;EAsEb,wCAAwC,sEAtE3B;EAuEb,iCAAiC,4BAvEpB;EAwEb,qCAAqC,iGAxExB;EAyEb,gCAAgC,2DAzEnB;EA0Eb,oCAAoC,uCA1EvB;EA2Eb,0CAA0C,qDA3E7B;EA4Eb,uCAAuC,qDA5E1B;EA6Eb,qCAAqC,4DA7ExB;EA8Eb,oCAAoC,qFA9EvB;EA+Eb,+BAA+B,qCA/ElB;EAgFb,gCAAgC,qCAhFnB;EAiFb,6BAA6B,yCAjFhB;EAkFb,iCAAiC,kCAlFpB;EAmFb,8BAA8B,mCAnFjB;EAoFb,sBAAsB,8BApFT;EAqFb,0BAA0B,wDArFb;EAsFb,gCAAgC,wDAtFnB;EAuFb,6BAA6B,qCAvFhB;EAwFb,8BAA8B,yCAxFjB;EAyFb,0BAA0B,wCAzFb;EA0Fb,kEAAkE,kDA1FrD;EA2Fb,qEAAqE,qDA3FxD;EA4Fb,oEAAoE,mDA5FvD;EA6Fb,uEAAuE;AA7F1D,C"}
|
|
1
|
+
{"version":3,"file":"beinformed_error_messages_en.nl.js","names":[],"sources":["../../../src/i18n/translations/beinformed_error_messages_en.nl.js"],"sourcesContent":["// @flow\n// prettier-ignore\nexport default {\n \"Constraint.Attribute.IncorrectValue\": \"Incorrect value\",\n \"Constraint.Boolean.InvalidValue\": \"Invalid boolean value, only values 'true' or 'false' are valid\",\n \"Constraint.BSN.InvalidFormat\": \"Must be a valid BSN\",\n \"Constraint.Captcha.InvalidToken\": \"The captcha is invalid\",\n \"Constraint.Choice.ConflictingAnswer\": \"Cannot select '${answer-option-key}' because this is not a relevant option, given the other answers\",\n \"Constraint.Choice.ConflictingOptions\": \"Cannot select '${answer-option-key1}' and '${answer-option-key2}' at the same time\",\n \"Constraint.Choice.InvalidOption\": \"Allowed options are: ${options}\",\n \"Constraint.Choice.InvalidOption.General\": \"Value '${value}' is not allowed\",\n \"Constraint.Choice.MultipleNotAllowed\": \"Selecting multiple options is not allowed\",\n \"Constraint.ConfirmCurrentPassword.Invalid\": \"Must match the current password\",\n \"Constraint.Date.AboveMaximum\": \"Must be on or before ${max-date}\",\n \"Constraint.Date.BelowMinimum\": \"Must be on or after ${min-date}\",\n \"Constraint.Date.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.Date.NotOnDate\": \"Must be on ${date}\",\n \"Constraint.Date.OutOfRange\": \"Must be between ${min-date} and ${max-date}\",\n \"Constraint.DateRange.InvalidRange\": \"Start date must be before end date\",\n \"Constraint.DateRange.Mandatory\": \"Field is mandatory: must contain at least a start or end date\",\n \"Constraint.DateTime.AboveMaximum\": \"Must be before ${max-date-time}\",\n \"Constraint.DateTime.BelowMinimum\": \"Must be at ${min-date-time} or after\",\n \"Constraint.DateTime.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.DateTime.OutOfRange\": \"Must be between ${min-date-time} and ${max-date-time}\",\n \"Constraint.DateTimeRange.InvalidRange\": \"Start date-time must be before end date-time\",\n \"Constraint.DateTimeRange.Mandatory\": \"Field is mandatory: must contain at least a start or end date-time\",\n \"Constraint.Document.MimeTypeNotAllowed\": \"The document mime type is not valid for the selected document type\",\n \"Constraint.Email.InvalidFormat\": \"Must be a valid e-mail address\",\n \"Constraint.File.DataEmpty\": \"File does not exist or has no content\",\n \"Constraint.File.InvalidExtension\": \"Allowed extensions are: ${extensions}\",\n \"Constraint.File.InvalidFormat\": \"Must meet the requirements of the file name\",\n \"Constraint.File.InvalidMimeType\": \"Allowed mime types are: ${mime-types}\",\n \"Constraint.File.MaxFileSizeExceeded\": \"Maximum file upload size is ${max-filesize}\",\n \"Constraint.File.OnlyAllowsOneFile\": \"Only one file is allowed\",\n \"Constraint.IBAN.InvalidFormat\": \"Must be a valid IBAN number\",\n \"Constraint.InvalidLengthBetween\": \"Length must be between ${min-length} and ${max-length} characters\",\n \"Constraint.InvalidLengthExact\": \"Length must be precisely ${length} characters\",\n \"Constraint.InvalidLengthTooLong\": \"Length must not be larger than ${max-length} characters\",\n \"Constraint.InvalidLengthTooShort\": \"Length must be at least ${min-length} characters\",\n \"Constraint.InvalidRegularExpression\": \"The value is not according the given regular expression ${regexp}\",\n \"Constraint.Mandatory\": \"Field is mandatory\",\n \"Constraint.Missing\": \"Field is mandatory\",\n \"Constraint.Number.AboveMaximum\": \"Must be at most ${max-number}\",\n \"Constraint.Number.BelowMinimum\": \"Must be at least ${min-number}\",\n \"Constraint.Number.InvalidDecimal\": \"Must be a number with up to ${max-digits} decimal places\",\n \"Constraint.Number.InvalidInteger\": \"Must be a whole number\",\n \"Constraint.Number.InvalidLong\": \"Must be a whole number\",\n \"Constraint.Number.OutOfRange\": \"Must be between ${min-number} and ${max-number}\",\n \"Constraint.NumberRange.BothFieldsMandatory\": \"Must contain start and end value\",\n \"Constraint.NumberRange.InvalidRange\": \"Start value must be less than the end value\",\n \"Constraint.NumberRange.Mandatory\": \"Field is mandatory: must contain at least a start or end value\",\n \"Constraint.Password.AlreadyUsed\": \"Must not have been used before\",\n \"Constraint.Password.LowerAndUpperCaseMandatory\": \"Must contain both upper and lowercase characters\",\n \"Constraint.Password.MinNumericCharactersMandatory\": \"Must contain ${min-numeric} or more numerical characters\",\n \"Constraint.Password.MinSpecialCharactersMandatory\": \"Must contain ${min-special} or more special characters\",\n \"Constraint.Password.ThreeConsecutiveCharactersNotAllowed\": \"Must not contain any character more than twice consecutively\",\n \"Constraint.Password.Unchanged\": \"Must not be the same as the old password\",\n \"Constraint.Password.UserNameSubstringNotAllowed\": \"Must not have 5 consecutive characters from username\",\n \"Constraint.SortParameter.InvalidValue\": \"Invalid sort parameter. Allowed values: field+[asc|desc]\",\n \"Constraint.Time.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.TimeRange.InvalidRange\": \"Start time must be before end time\",\n \"Constraint.TimeRange.Mandatory\": \"Field is mandatory: must contain at least a start or end time\",\n \"Constraint.TimeStamp.AboveMaximum\": \"Must be on or before ${max-date}\",\n \"Constraint.TimeStamp.BelowMinimum\": \"Must be on or after ${min-date}\",\n \"Constraint.Timestamp.InvalidFormat\": \"Must be entered in the format ${format}\",\n \"Constraint.TimeStampRange.InvalidRange\": \"Start value must be before end value\",\n \"Constraint.TimeStampRange.Mandatory\": \"Field is mandatory: must contain at least a start or end value\",\n \"Constraint.XML.InvalidFormat\": \"Must be well-formed XML\",\n \"Constraint.ZipCode.InvalidFormat\": \"Must be a valid Dutch ZIP code, e.g. 1234AB\",\n \"Error.AcceptHeaderRequired\": \"The 'Accept' request-header field must be provided\",\n \"Error.Authentication.BlockedUser\": \"You have been logged out, because your account has been blocked\",\n \"Error.Authentication.ConcurrentUser\": \"You have been logged out, since your username has been used at a different location.\",\n \"Error.Authentication.InvalidCredentials\": \"Authentication failed\",\n \"Error.Authentication.InvalidUsername\": \"You have been logged out, because your username is not valid anymore\",\n \"Error.Authentication.Required\": \"Authentication is required\",\n \"Error.Case.ConcurrentModification\": \"Another user has updated a case used in this task. As a result, this task can not be completed.\",\n \"Error.ChangePasswordRequired\": \"User password is initial or expired, and must be changed \",\n \"Error.CodemapLookup.InvalidToken\": \"Token for codemap lookup is not valid\",\n \"Error.DataStore.ConcurrentModification\": \"Another user has updated a record used in this task\",\n \"Error.DataStore.RecordAlreadyExists\": \"\",\n \"Error.DataStore.RowCannotBeLocked\": \"Another user has already locked a record used in this task\",\n \"Error.Form.DataNotAvailableForId\": \"Service can not be completed, data not available for mandatory element ${elementid}\",\n \"Error.Form.ObjectNotAllowed\": \"Object '${objectid}' is not allowed\",\n \"Error.Form.ReadOnlyElementId\": \"Element '${elementid}' is read only\",\n \"Error.Form.TooManyObjects\": \"Too many objects '${objectid}' provided\",\n \"Error.Form.UndefinedElementId\": \"Undefined element '${elementid}'\",\n \"Error.Form.UndefinedObject\": \"Undefined object(s) '${objectid}'\",\n \"Error.GeneralError\": \"An unexpected error occurred\",\n \"Error.MethodNotAllowed\": \"The given HTTP method is not allowed for this resource\",\n \"Error.Parameter.InvalidValue\": \"The parameter contains characters that are not allowed\",\n \"Error.Parameter.Mandatory\": \"Parameter ${parameter} is mandatory\",\n \"Error.Parameter.NotAllowed\": \"Parameter '${parameter}' is not allowed\",\n \"Error.ResourceNotFound\": \"The requested resource cannot be found\",\n \"Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch\": \"Password and password confirmation do not match.\",\n \"Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists\": \"A user with email address '${Email}' already exists\",\n \"Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists\": \"A user with username '${Username}' already exists\",\n \"Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists\": \"An organization with id '${ID}' already exists\"\n}\n"],"mappings":";;;;;;AACA;eACe;EACb,uCAAuC,iBAD1B;EAEb,mCAAmC,gEAFtB;EAGb,gCAAgC,qBAHnB;EAIb,mCAAmC,wBAJtB;EAKb,uCAAuC,qGAL1B;EAMb,wCAAwC,oFAN3B;EAOb,mCAAmC,iCAPtB;EAQb,2CAA2C,iCAR9B;EASb,wCAAwC,2CAT3B;EAUb,6CAA6C,iCAVhC;EAWb,gCAAgC,kCAXnB;EAYb,gCAAgC,iCAZnB;EAab,iCAAiC,yCAbpB;EAcb,6BAA6B,oBAdhB;EAeb,8BAA8B,6CAfjB;EAgBb,qCAAqC,oCAhBxB;EAiBb,kCAAkC,+DAjBrB;EAkBb,oCAAoC,iCAlBvB;EAmBb,oCAAoC,sCAnBvB;EAoBb,qCAAqC,yCApBxB;EAqBb,kCAAkC,uDArBrB;EAsBb,yCAAyC,8CAtB5B;EAuBb,sCAAsC,oEAvBzB;EAwBb,0CAA0C,oEAxB7B;EAyBb,kCAAkC,gCAzBrB;EA0Bb,6BAA6B,uCA1BhB;EA2Bb,oCAAoC,uCA3BvB;EA4Bb,iCAAiC,6CA5BpB;EA6Bb,mCAAmC,uCA7BtB;EA8Bb,uCAAuC,6CA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AAoC,qFA/EvB;EAgFb,+BAA+B,qCAhFlB;EAiFb,gCAAgC,qCAjFnB;EAkFb,6BAA6B,yCAlFhB;EAmFb,iCAAiC,kCAnFpB;EAoFb,8BAA8B,mCApFjB;EAqFb,sBAAsB,8BArFT;EAsFb,0BAA0B,wDAtFb;EAuFb,gCAAgC,wDAvFnB;EAwFb,6BAA6B,qCAxFhB;EAyFb,8BAA8B,yCAzFjB;EA0Fb,0BAA0B,wCA1Fb;EA2Fb,kEAAkE,kDA3FrD;EA4Fb,qEAAqE,qDA5FxD;EA6Fb,oEAAoE,mDA7FvD;EA8Fb,uEAAuE;AA9F1D,C"}
|
|
@@ -36,6 +36,7 @@ var _default = {
|
|
|
36
36
|
"Constraint.File.InvalidFormat": "Voldoet niet aan de voorwaarden van een bestandsnaam",
|
|
37
37
|
"Constraint.File.InvalidMimeType": "Toegestane mime-types zijn: ${mime-types}",
|
|
38
38
|
"Constraint.File.MaxFileSizeExceeded": "De maximum file grootte voor upload is ${max-filesize}",
|
|
39
|
+
"Constraint.File.OnlyAllowsOneFile": "Er is slechts één bestand toegestaan",
|
|
39
40
|
"Constraint.IBAN.InvalidFormat": "Moet een geldig IBAN nummer zijn",
|
|
40
41
|
"Constraint.InvalidLengthBetween": "Lengte moet tussen ${min-length} en ${max-length} karakters liggen",
|
|
41
42
|
"Constraint.InvalidLengthExact": "Lengte moet precies ${length} karakters zijn",
|
|
@@ -70,18 +71,18 @@ var _default = {
|
|
|
70
71
|
"Constraint.TimeStampRange.InvalidRange": "De beginwaarde dient voor de eindwaarde te liggen",
|
|
71
72
|
"Constraint.TimeStampRange.Mandatory": "Veld is verplicht: moet tenminste begin- of eindwaarde bevatten",
|
|
72
73
|
"Constraint.XML.InvalidFormat": "Moet geldige XML zijn",
|
|
73
|
-
"Constraint.ZipCode.InvalidFormat": "Moet een geldige postcode zijn, bijvoorbeeld
|
|
74
|
+
"Constraint.ZipCode.InvalidFormat": "Moet een geldige postcode zijn, bijvoorbeeld 1234AB",
|
|
74
75
|
"Error.AcceptHeaderRequired": "De 'Accept' request-header moet worden meegegeven",
|
|
75
76
|
"Error.Authentication.BlockedUser": "U bent uitgelogd omdat uw account geblokkeerd is",
|
|
76
77
|
"Error.Authentication.ConcurrentUser": "U bent uitgelogd omdat uw gebruikersnaam op een andere locatie is gebruikt om in te loggen.",
|
|
77
78
|
"Error.Authentication.InvalidCredentials": "Inloggen is mislukt",
|
|
78
|
-
"Error.Authentication.InvalidUsername": "
|
|
79
|
+
"Error.Authentication.InvalidUsername": "U bent uitgelogd omdat uw gebruikersnaam niet meer geldig is",
|
|
79
80
|
"Error.Authentication.Required": "Autorisatie is vereist",
|
|
80
81
|
"Error.Case.ConcurrentModification": "Een andere gebruiker heeft het dossier aangepast waardoor deze taak nu niet meer is toegestaan",
|
|
81
82
|
"Error.ChangePasswordRequired": "Gebruikerswachtwoord is initieel of verlopen, en moet worden aangepast",
|
|
82
83
|
"Error.CodemapLookup.InvalidToken": "Token voor keuzelijst lookup is niet valide",
|
|
83
84
|
"Error.DataStore.ConcurrentModification": "Een andere gebruiker heeft de rij in de datastore reeds aangepast",
|
|
84
|
-
"Error.DataStore.RecordAlreadyExists": "
|
|
85
|
+
"Error.DataStore.RecordAlreadyExists": "",
|
|
85
86
|
"Error.DataStore.RowCannotBeLocked": "Een andere gebruiker heeft de rij in bewerking en daarom kan deze taak niet worden volbracht.",
|
|
86
87
|
"Error.Form.DataNotAvailableForId": "Service kan niet worden afgrond, data voor verplicht element ${elementid} is niet beschikbaar",
|
|
87
88
|
"Error.Form.ObjectNotAllowed": "Object '${objectid}' is niet toegestaan",
|
|
@@ -31,6 +31,7 @@ export default {
|
|
|
31
31
|
"Constraint.File.InvalidFormat": "Voldoet niet aan de voorwaarden van een bestandsnaam",
|
|
32
32
|
"Constraint.File.InvalidMimeType": "Toegestane mime-types zijn: ${mime-types}",
|
|
33
33
|
"Constraint.File.MaxFileSizeExceeded": "De maximum file grootte voor upload is ${max-filesize}",
|
|
34
|
+
"Constraint.File.OnlyAllowsOneFile": "Er is slechts één bestand toegestaan",
|
|
34
35
|
"Constraint.IBAN.InvalidFormat": "Moet een geldig IBAN nummer zijn",
|
|
35
36
|
"Constraint.InvalidLengthBetween": "Lengte moet tussen ${min-length} en ${max-length} karakters liggen",
|
|
36
37
|
"Constraint.InvalidLengthExact": "Lengte moet precies ${length} karakters zijn",
|
|
@@ -65,18 +66,18 @@ export default {
|
|
|
65
66
|
"Constraint.TimeStampRange.InvalidRange": "De beginwaarde dient voor de eindwaarde te liggen",
|
|
66
67
|
"Constraint.TimeStampRange.Mandatory": "Veld is verplicht: moet tenminste begin- of eindwaarde bevatten",
|
|
67
68
|
"Constraint.XML.InvalidFormat": "Moet geldige XML zijn",
|
|
68
|
-
"Constraint.ZipCode.InvalidFormat": "Moet een geldige postcode zijn, bijvoorbeeld
|
|
69
|
+
"Constraint.ZipCode.InvalidFormat": "Moet een geldige postcode zijn, bijvoorbeeld 1234AB",
|
|
69
70
|
"Error.AcceptHeaderRequired": "De 'Accept' request-header moet worden meegegeven",
|
|
70
71
|
"Error.Authentication.BlockedUser": "U bent uitgelogd omdat uw account geblokkeerd is",
|
|
71
72
|
"Error.Authentication.ConcurrentUser": "U bent uitgelogd omdat uw gebruikersnaam op een andere locatie is gebruikt om in te loggen.",
|
|
72
73
|
"Error.Authentication.InvalidCredentials": "Inloggen is mislukt",
|
|
73
|
-
"Error.Authentication.InvalidUsername": "
|
|
74
|
+
"Error.Authentication.InvalidUsername": "U bent uitgelogd omdat uw gebruikersnaam niet meer geldig is",
|
|
74
75
|
"Error.Authentication.Required": "Autorisatie is vereist",
|
|
75
76
|
"Error.Case.ConcurrentModification": "Een andere gebruiker heeft het dossier aangepast waardoor deze taak nu niet meer is toegestaan",
|
|
76
77
|
"Error.ChangePasswordRequired": "Gebruikerswachtwoord is initieel of verlopen, en moet worden aangepast",
|
|
77
78
|
"Error.CodemapLookup.InvalidToken": "Token voor keuzelijst lookup is niet valide",
|
|
78
79
|
"Error.DataStore.ConcurrentModification": "Een andere gebruiker heeft de rij in de datastore reeds aangepast",
|
|
79
|
-
"Error.DataStore.RecordAlreadyExists": "
|
|
80
|
+
"Error.DataStore.RecordAlreadyExists": "",
|
|
80
81
|
"Error.DataStore.RowCannotBeLocked": "Een andere gebruiker heeft de rij in bewerking en daarom kan deze taak niet worden volbracht.",
|
|
81
82
|
"Error.Form.DataNotAvailableForId": "Service kan niet worden afgrond, data voor verplicht element ${elementid} is niet beschikbaar",
|
|
82
83
|
"Error.Form.ObjectNotAllowed": "Object '${objectid}' is niet toegestaan",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beinformed_error_messages_nl.nl.js","names":[],"sources":["../../../src/i18n/translations/beinformed_error_messages_nl.nl.js"],"sourcesContent":["// @flow\n// prettier-ignore\nexport default {\n \"Constraint.Attribute.IncorrectValue\": \"Ongeldige waarde\",\n \"Constraint.Boolean.InvalidValue\": \"Waarde voldoet niet aan het boolean formaat, alleen waarden 'true' en 'false' zijn toegestaan\",\n \"Constraint.BSN.InvalidFormat\": \"Moet een geldig BSN zijn\",\n \"Constraint.Captcha.InvalidToken\": \"Captcha is niet correct\",\n \"Constraint.Choice.ConflictingAnswer\": \"'${answer-option-key}' kan niet worden gekozen omdat dit geen relevante optie is, gegeven de andere antwoorden\",\n \"Constraint.Choice.ConflictingOptions\": \"'${answer-option-key1}' and '${answer-option-key2}' kunnen niet tegelijkertijd worden gekozen\",\n \"Constraint.Choice.InvalidOption\": \"Toegestane waarden zijn: ${options}\",\n \"Constraint.Choice.InvalidOption.General\": \"Waarde '${value}' is niet toegestaan\",\n \"Constraint.Choice.MultipleNotAllowed\": \"Meerdere opties selecteren is niet toegestaan\",\n \"Constraint.ConfirmCurrentPassword.Invalid\": \"Moet overeenkomen met het huidige wachtwoord\",\n \"Constraint.Date.AboveMaximum\": \"Moet op of voor ${max-date} liggen\",\n \"Constraint.Date.BelowMinimum\": \"Moet op of na ${min-date} liggen\",\n \"Constraint.Date.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.Date.NotOnDate\": \"Moet op ${date} liggen\",\n \"Constraint.Date.OutOfRange\": \"Moet tussen ${min-date} en ${max-date} liggen\",\n \"Constraint.DateRange.InvalidRange\": \"De begindatum dient voor de einddatum te liggen\",\n \"Constraint.DateRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of einddatum bevatten\",\n \"Constraint.DateTime.AboveMaximum\": \"Moet voor ${max-date-time} liggen\",\n \"Constraint.DateTime.BelowMinimum\": \"Moet op ${min-date-time} of later liggen\",\n \"Constraint.DateTime.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.DateTime.OutOfRange\": \"Moet tussen ${min-date-time} en ${max-date-time} liggen\",\n \"Constraint.DateTimeRange.InvalidRange\": \"De begindatumtijd dient voor de einddatumtijd te liggen\",\n \"Constraint.DateTimeRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of einddatumtijd bevatten\",\n \"Constraint.Document.MimeTypeNotAllowed\": \"Het document mime type voldoet niet aan het document type\",\n \"Constraint.Email.InvalidFormat\": \"Moet een geldig emailadres zijn\",\n \"Constraint.File.DataEmpty\": \"Bestand bestaat niet of heeft geen inhoud\",\n \"Constraint.File.InvalidExtension\": \"Toegestane extensies zijn: ${extensions}\",\n \"Constraint.File.InvalidFormat\": \"Voldoet niet aan de voorwaarden van een bestandsnaam\",\n \"Constraint.File.InvalidMimeType\": \"Toegestane mime-types zijn: ${mime-types}\",\n \"Constraint.File.MaxFileSizeExceeded\": \"De maximum file grootte voor upload is ${max-filesize}\",\n \"Constraint.IBAN.InvalidFormat\": \"Moet een geldig IBAN nummer zijn\",\n \"Constraint.InvalidLengthBetween\": \"Lengte moet tussen ${min-length} en ${max-length} karakters liggen\",\n \"Constraint.InvalidLengthExact\": \"Lengte moet precies ${length} karakters zijn\",\n \"Constraint.InvalidLengthTooLong\": \"Lengte mag niet langer dan ${max-length} karakters zijn\",\n \"Constraint.InvalidLengthTooShort\": \"Lengte moet tenminste ${min-length} karakters zijn\",\n \"Constraint.InvalidRegularExpression\": \"De waarde voldoet niet aan de reguliere expressie ${regexp}\",\n \"Constraint.Mandatory\": \"Veld is verplicht\",\n \"Constraint.Missing\": \"Veld is verplicht\",\n \"Constraint.Number.AboveMaximum\": \"Mag niet groter dan ${max-number} zijn\",\n \"Constraint.Number.BelowMinimum\": \"Moet minstens ${min-number} zijn\",\n \"Constraint.Number.InvalidDecimal\": \"Moet een getal zijn met maximaal ${max-digits} decimalen\",\n \"Constraint.Number.InvalidInteger\": \"Moet een geheel getal zijn\",\n \"Constraint.Number.InvalidLong\": \"Moet een geheel getal zijn\",\n \"Constraint.Number.OutOfRange\": \"Moet tussen ${min-number} en ${max-number} liggen\",\n \"Constraint.NumberRange.BothFieldsMandatory\": \"Moet zowel een begin- als een eindwaarde bevatten\",\n \"Constraint.NumberRange.InvalidRange\": \"De beginwaarde dient kleiner te zijn dan de eindwaarde\",\n \"Constraint.NumberRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten\",\n \"Constraint.Password.AlreadyUsed\": \"Mag niet eerder zijn gebruikt\",\n \"Constraint.Password.LowerAndUpperCaseMandatory\": \"Moet zowel hoofdletters als kleine letters bevatten\",\n \"Constraint.Password.MinNumericCharactersMandatory\": \"Moet ${min-numeric} of meer numerieke karakters bevatten\",\n \"Constraint.Password.MinSpecialCharactersMandatory\": \"Moet ${min-special} of meer speciale karakters bevatten\",\n \"Constraint.Password.ThreeConsecutiveCharactersNotAllowed\": \"Mag niet meer dan twee dezelfde karakters achter elkaar bevatten\",\n \"Constraint.Password.Unchanged\": \"Mag niet hetzelfde zijn als het oude wachtwoord\",\n \"Constraint.Password.UserNameSubstringNotAllowed\": \"Mag niet vijf opeenvolgende karakters van de gebruikersnaam bevatten\",\n \"Constraint.SortParameter.InvalidValue\": \"Ongeldige sorteerparameter. Toegestane waardes: veld+[asc|desc]\",\n \"Constraint.Time.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.TimeRange.InvalidRange\": \"De begintijd dient voor de eindtijd te liggen\",\n \"Constraint.TimeRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindtijd bevatten\",\n \"Constraint.TimeStamp.AboveMaximum\": \"Moet op of voor ${max-date} liggen\",\n \"Constraint.TimeStamp.BelowMinimum\": \"Moet op of na ${min-date} liggen\",\n \"Constraint.Timestamp.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.TimeStampRange.InvalidRange\": \"De beginwaarde dient voor de eindwaarde te liggen\",\n \"Constraint.TimeStampRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten\",\n \"Constraint.XML.InvalidFormat\": \"Moet geldige XML zijn\",\n \"Constraint.ZipCode.InvalidFormat\": \"Moet een geldige postcode zijn, bijvoorbeeld 1234 AB\",\n \"Error.AcceptHeaderRequired\": \"De 'Accept' request-header moet worden meegegeven\",\n \"Error.Authentication.BlockedUser\": \"U bent uitgelogd omdat uw account geblokkeerd is\",\n \"Error.Authentication.ConcurrentUser\": \"U bent uitgelogd omdat uw gebruikersnaam op een andere locatie is gebruikt om in te loggen.\",\n \"Error.Authentication.InvalidCredentials\": \"Inloggen is mislukt\",\n \"Error.Authentication.InvalidUsername\": \"\\\"U bent uitgelogd omdat uw gebruikersnaam niet meer geldig is\",\n \"Error.Authentication.Required\": \"Autorisatie is vereist\",\n \"Error.Case.ConcurrentModification\": \"Een andere gebruiker heeft het dossier aangepast waardoor deze taak nu niet meer is toegestaan\",\n \"Error.ChangePasswordRequired\": \"Gebruikerswachtwoord is initieel of verlopen, en moet worden aangepast\",\n \"Error.CodemapLookup.InvalidToken\": \"Token voor keuzelijst lookup is niet valide\",\n \"Error.DataStore.ConcurrentModification\": \"Een andere gebruiker heeft de rij in de datastore reeds aangepast\",\n \"Error.DataStore.RecordAlreadyExists\": \"Rij kan niet worden overschreven aangezien deze reeds bestaat\",\n \"Error.DataStore.RowCannotBeLocked\": \"Een andere gebruiker heeft de rij in bewerking en daarom kan deze taak niet worden volbracht.\",\n \"Error.Form.DataNotAvailableForId\": \"Service kan niet worden afgrond, data voor verplicht element ${elementid} is niet beschikbaar\",\n \"Error.Form.ObjectNotAllowed\": \"Object '${objectid}' is niet toegestaan\",\n \"Error.Form.ReadOnlyElementId\": \"Element '${elementid}' is alleen lezen\",\n \"Error.Form.TooManyObjects\": \"Te veel objecten '${objectid}' aangeleverd\",\n \"Error.Form.UndefinedElementId\": \"Element '${elementid}' is ongedefinieerd\",\n \"Error.Form.UndefinedObject\": \"Object(en) '${objectid}' ongedefinieerd\",\n \"Error.GeneralError\": \"Er is een onverwachte fout opgetreden\",\n \"Error.MethodNotAllowed\": \"De opgegeven HTTP methode is niet toegestaan op deze resource\",\n \"Error.Parameter.InvalidValue\": \"De parameter bevat karakters die niet zijn toegestaan\",\n \"Error.Parameter.Mandatory\": \"De parameter ${parameter} is verplicht\",\n \"Error.Parameter.NotAllowed\": \"Parameter '${parameter}' is niet toegestaan\",\n \"Error.ResourceNotFound\": \"De opgevraagde resource kan niet worden gevonden\",\n \"Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch\": \"Het wachtwoord en de wachtwoordbevestiging komen niet overeen\",\n \"Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists\": \"Een gebruiker met e-mailadres '${Email}' bestaat al\",\n \"Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists\": \"Een gebruiker met gebruikersnaam '${Username}' bestaat al\",\n \"Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists\": \"Een organisatie met id '${ID}' bestaat al\"\n}\n"],"mappings":";;;;;;AACA;eACe;EACb,uCAAuC,kBAD1B;EAEb,mCAAmC,+FAFtB;EAGb,gCAAgC,0BAHnB;EAIb,mCAAmC,yBAJtB;EAKb,uCAAuC,gHAL1B;EAMb,wCAAwC,+FAN3B;EAOb,mCAAmC,qCAPtB;EAQb,2CAA2C,sCAR9B;EASb,wCAAwC,+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B;EA2Db,qCAAqC,oCA3DxB;EA4Db,qCAAqC,kCA5DxB;EA6Db,sCAAsC,gDA7DzB;EA8Db,0CAA0C,mDA9D7B;EA+Db,uCAAuC,iEA/D1B;EAgEb,gCAAgC,uBAhEnB;EAiEb,oCAAoC,sDAjEvB;EAkEb,8BAA8B,mDAlEjB;EAmEb,oCAAoC,kDAnEvB;EAoEb,uCAAuC,6FApE1B;EAqEb,2CAA2C,qBArE9B;EAsEb,wCAAwC,gEAtE3B;EAuEb,iCAAiC,wBAvEpB;EAwEb,qCAAqC,gGAxExB;EAyEb,gCAAgC,wEAzEnB;EA0Eb,oCAAoC,6CA1EvB;EA2Eb,0CAA0C,mEA3E7B;EA4Eb,uCAAuC,+DA5E1B;EA6Eb,qCAAqC,+FA7ExB;EA8Eb,oCAAoC,+FA9EvB;EA+Eb,+BAA+B,yCA/ElB;EAgFb,gCAAgC,wCAhFnB;EAiFb,6BAA6B,4CAjFhB;EAkFb,iCAAiC,0CAlFpB;EAmFb,8BAA8B,yCAnFjB;EAoFb,sBAAsB,uCApFT;EAqFb,0BAA0B,+DArFb;EAsFb,gCAAgC,uDAtFnB;EAuFb,6BAA6B,wCAvFhB;EAwFb,8BAA8B,6CAxFjB;EAyFb,0BAA0B,kDAzFb;EA0Fb,kEAAkE,+DA1FrD;EA2Fb,qEAAqE,qDA3FxD;EA4Fb,oEAAoE,2DA5FvD;EA6Fb,uEAAuE;AA7F1D,C"}
|
|
1
|
+
{"version":3,"file":"beinformed_error_messages_nl.nl.js","names":[],"sources":["../../../src/i18n/translations/beinformed_error_messages_nl.nl.js"],"sourcesContent":["// @flow\n// prettier-ignore\nexport default {\n \"Constraint.Attribute.IncorrectValue\": \"Ongeldige waarde\",\n \"Constraint.Boolean.InvalidValue\": \"Waarde voldoet niet aan het boolean formaat, alleen waarden 'true' en 'false' zijn toegestaan\",\n \"Constraint.BSN.InvalidFormat\": \"Moet een geldig BSN zijn\",\n \"Constraint.Captcha.InvalidToken\": \"Captcha is niet correct\",\n \"Constraint.Choice.ConflictingAnswer\": \"'${answer-option-key}' kan niet worden gekozen omdat dit geen relevante optie is, gegeven de andere antwoorden\",\n \"Constraint.Choice.ConflictingOptions\": \"'${answer-option-key1}' and '${answer-option-key2}' kunnen niet tegelijkertijd worden gekozen\",\n \"Constraint.Choice.InvalidOption\": \"Toegestane waarden zijn: ${options}\",\n \"Constraint.Choice.InvalidOption.General\": \"Waarde '${value}' is niet toegestaan\",\n \"Constraint.Choice.MultipleNotAllowed\": \"Meerdere opties selecteren is niet toegestaan\",\n \"Constraint.ConfirmCurrentPassword.Invalid\": \"Moet overeenkomen met het huidige wachtwoord\",\n \"Constraint.Date.AboveMaximum\": \"Moet op of voor ${max-date} liggen\",\n \"Constraint.Date.BelowMinimum\": \"Moet op of na ${min-date} liggen\",\n \"Constraint.Date.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.Date.NotOnDate\": \"Moet op ${date} liggen\",\n \"Constraint.Date.OutOfRange\": \"Moet tussen ${min-date} en ${max-date} liggen\",\n \"Constraint.DateRange.InvalidRange\": \"De begindatum dient voor de einddatum te liggen\",\n \"Constraint.DateRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of einddatum bevatten\",\n \"Constraint.DateTime.AboveMaximum\": \"Moet voor ${max-date-time} liggen\",\n \"Constraint.DateTime.BelowMinimum\": \"Moet op ${min-date-time} of later liggen\",\n \"Constraint.DateTime.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.DateTime.OutOfRange\": \"Moet tussen ${min-date-time} en ${max-date-time} liggen\",\n \"Constraint.DateTimeRange.InvalidRange\": \"De begindatumtijd dient voor de einddatumtijd te liggen\",\n \"Constraint.DateTimeRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of einddatumtijd bevatten\",\n \"Constraint.Document.MimeTypeNotAllowed\": \"Het document mime type voldoet niet aan het document type\",\n \"Constraint.Email.InvalidFormat\": \"Moet een geldig emailadres zijn\",\n \"Constraint.File.DataEmpty\": \"Bestand bestaat niet of heeft geen inhoud\",\n \"Constraint.File.InvalidExtension\": \"Toegestane extensies zijn: ${extensions}\",\n \"Constraint.File.InvalidFormat\": \"Voldoet niet aan de voorwaarden van een bestandsnaam\",\n \"Constraint.File.InvalidMimeType\": \"Toegestane mime-types zijn: ${mime-types}\",\n \"Constraint.File.MaxFileSizeExceeded\": \"De maximum file grootte voor upload is ${max-filesize}\",\n \"Constraint.File.OnlyAllowsOneFile\": \"Er is slechts één bestand toegestaan\",\n \"Constraint.IBAN.InvalidFormat\": \"Moet een geldig IBAN nummer zijn\",\n \"Constraint.InvalidLengthBetween\": \"Lengte moet tussen ${min-length} en ${max-length} karakters liggen\",\n \"Constraint.InvalidLengthExact\": \"Lengte moet precies ${length} karakters zijn\",\n \"Constraint.InvalidLengthTooLong\": \"Lengte mag niet langer dan ${max-length} karakters zijn\",\n \"Constraint.InvalidLengthTooShort\": \"Lengte moet tenminste ${min-length} karakters zijn\",\n \"Constraint.InvalidRegularExpression\": \"De waarde voldoet niet aan de reguliere expressie ${regexp}\",\n \"Constraint.Mandatory\": \"Veld is verplicht\",\n \"Constraint.Missing\": \"Veld is verplicht\",\n \"Constraint.Number.AboveMaximum\": \"Mag niet groter dan ${max-number} zijn\",\n \"Constraint.Number.BelowMinimum\": \"Moet minstens ${min-number} zijn\",\n \"Constraint.Number.InvalidDecimal\": \"Moet een getal zijn met maximaal ${max-digits} decimalen\",\n \"Constraint.Number.InvalidInteger\": \"Moet een geheel getal zijn\",\n \"Constraint.Number.InvalidLong\": \"Moet een geheel getal zijn\",\n \"Constraint.Number.OutOfRange\": \"Moet tussen ${min-number} en ${max-number} liggen\",\n \"Constraint.NumberRange.BothFieldsMandatory\": \"Moet zowel een begin- als een eindwaarde bevatten\",\n \"Constraint.NumberRange.InvalidRange\": \"De beginwaarde dient kleiner te zijn dan de eindwaarde\",\n \"Constraint.NumberRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten\",\n \"Constraint.Password.AlreadyUsed\": \"Mag niet eerder zijn gebruikt\",\n \"Constraint.Password.LowerAndUpperCaseMandatory\": \"Moet zowel hoofdletters als kleine letters bevatten\",\n \"Constraint.Password.MinNumericCharactersMandatory\": \"Moet ${min-numeric} of meer numerieke karakters bevatten\",\n \"Constraint.Password.MinSpecialCharactersMandatory\": \"Moet ${min-special} of meer speciale karakters bevatten\",\n \"Constraint.Password.ThreeConsecutiveCharactersNotAllowed\": \"Mag niet meer dan twee dezelfde karakters achter elkaar bevatten\",\n \"Constraint.Password.Unchanged\": \"Mag niet hetzelfde zijn als het oude wachtwoord\",\n \"Constraint.Password.UserNameSubstringNotAllowed\": \"Mag niet vijf opeenvolgende karakters van de gebruikersnaam bevatten\",\n \"Constraint.SortParameter.InvalidValue\": \"Ongeldige sorteerparameter. Toegestane waardes: veld+[asc|desc]\",\n \"Constraint.Time.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.TimeRange.InvalidRange\": \"De begintijd dient voor de eindtijd te liggen\",\n \"Constraint.TimeRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindtijd bevatten\",\n \"Constraint.TimeStamp.AboveMaximum\": \"Moet op of voor ${max-date} liggen\",\n \"Constraint.TimeStamp.BelowMinimum\": \"Moet op of na ${min-date} liggen\",\n \"Constraint.Timestamp.InvalidFormat\": \"Moet worden opgegeven in het formaat ${format}\",\n \"Constraint.TimeStampRange.InvalidRange\": \"De beginwaarde dient voor de eindwaarde te liggen\",\n \"Constraint.TimeStampRange.Mandatory\": \"Veld is verplicht: moet tenminste begin- of eindwaarde bevatten\",\n \"Constraint.XML.InvalidFormat\": \"Moet geldige XML zijn\",\n \"Constraint.ZipCode.InvalidFormat\": \"Moet een geldige postcode zijn, bijvoorbeeld 1234AB\",\n \"Error.AcceptHeaderRequired\": \"De 'Accept' request-header moet worden meegegeven\",\n \"Error.Authentication.BlockedUser\": \"U bent uitgelogd omdat uw account geblokkeerd is\",\n \"Error.Authentication.ConcurrentUser\": \"U bent uitgelogd omdat uw gebruikersnaam op een andere locatie is gebruikt om in te loggen.\",\n \"Error.Authentication.InvalidCredentials\": \"Inloggen is mislukt\",\n \"Error.Authentication.InvalidUsername\": \"U bent uitgelogd omdat uw gebruikersnaam niet meer geldig is\",\n \"Error.Authentication.Required\": \"Autorisatie is vereist\",\n \"Error.Case.ConcurrentModification\": \"Een andere gebruiker heeft het dossier aangepast waardoor deze taak nu niet meer is toegestaan\",\n \"Error.ChangePasswordRequired\": \"Gebruikerswachtwoord is initieel of verlopen, en moet worden aangepast\",\n \"Error.CodemapLookup.InvalidToken\": \"Token voor keuzelijst lookup is niet valide\",\n \"Error.DataStore.ConcurrentModification\": \"Een andere gebruiker heeft de rij in de datastore reeds aangepast\",\n \"Error.DataStore.RecordAlreadyExists\": \"\",\n \"Error.DataStore.RowCannotBeLocked\": \"Een andere gebruiker heeft de rij in bewerking en daarom kan deze taak niet worden volbracht.\",\n \"Error.Form.DataNotAvailableForId\": \"Service kan niet worden afgrond, data voor verplicht element ${elementid} is niet beschikbaar\",\n \"Error.Form.ObjectNotAllowed\": \"Object '${objectid}' is niet toegestaan\",\n \"Error.Form.ReadOnlyElementId\": \"Element '${elementid}' is alleen lezen\",\n \"Error.Form.TooManyObjects\": \"Te veel objecten '${objectid}' aangeleverd\",\n \"Error.Form.UndefinedElementId\": \"Element '${elementid}' is ongedefinieerd\",\n \"Error.Form.UndefinedObject\": \"Object(en) '${objectid}' ongedefinieerd\",\n \"Error.GeneralError\": \"Er is een onverwachte fout opgetreden\",\n \"Error.MethodNotAllowed\": \"De opgegeven HTTP methode is niet toegestaan op deze resource\",\n \"Error.Parameter.InvalidValue\": \"De parameter bevat karakters die niet zijn toegestaan\",\n \"Error.Parameter.Mandatory\": \"De parameter ${parameter} is verplicht\",\n \"Error.Parameter.NotAllowed\": \"Parameter '${parameter}' is niet toegestaan\",\n \"Error.ResourceNotFound\": \"De opgevraagde resource kan niet worden gevonden\",\n \"Validation.StandardCreateAndUpdateUserTask.PasswordsDoNotMatch\": \"Het wachtwoord en de wachtwoordbevestiging komen niet overeen\",\n \"Validation.StandardCreateAndUpdateUserTask.UserEmailAlreadyExists\": \"Een gebruiker met e-mailadres '${Email}' bestaat al\",\n \"Validation.StandardCreateAndUpdateUserTask.UserNameAlreadyExists\": \"Een gebruiker met gebruikersnaam '${Username}' bestaat al\",\n \"Validation.StandardCreateOrganizationTask.OrganizationAlreadyExists\": \"Een organisatie met id '${ID}' bestaat al\"\n}\n"],"mappings":";;;;;;AACA;eACe;EACb,uCAAuC,kBAD1B;EAEb,mCAAmC,+FAFtB;EAGb,gCAAgC,0BAHnB;EAIb,mCAAmC,yBAJtB;EAKb,uCAAuC,gHAL1B;EAMb,wCAAwC,+FAN3B;EAOb,mCAAmC,qCAPtB;EAQb,2CAA2C,sCAR9B;EASb,wCAAwC,+CAT3B;EAUb,6CAA6C,8CAVhC;EAWb,gCAAgC,oCAXnB;EAYb,gCAAgC,kCAZnB;EAab,iCAAiC,gDAbpB;EAcb,6BAA6B,wBAdhB;EAeb,8BAA8B,+CAfjB;EAgBb,qCAAqC,iDAhBxB;EAiBb,kCAAkC,gEAjBrB;EAkBb,oCAAoC,mCAlBvB;EAmBb,oCAAoC,0CAnBvB;EAoBb,qCAAqC,gDApBxB;EAqBb,kCAAkC,yDArBrB;EAsBb,yCAAyC,yDAtB5B;EAuBb,sCAAsC,oEAvBzB;EAwBb,0CAA0C,2DAxB7B;EAyBb,kCAAkC,iCAzBrB;EA0Bb,6BAA6B,2CA1BhB;EA2Bb,oCAAoC,0CA3BvB;EA4Bb,iCAAiC,sDA5BpB;EA6Bb,mCAAmC,2CA7BtB;EA8Bb,uCAAuC,wDA9B1B;EA+Bb,qCAAqC,sCA/BxB;EAgCb,iCAAiC,kCAhCpB;EAiCb,mCAAmC,oEAjCtB;EAkCb,iCAAiC,8CAlCpB;EAmCb,mCAAmC,yDAnCtB;EAoCb,oCAAoC,oDApCvB;EAqCb,uCAAuC,6DArC1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+DAtFb;EAuFb,gCAAgC,uDAvFnB;EAwFb,6BAA6B,wCAxFhB;EAyFb,8BAA8B,6CAzFjB;EA0Fb,0BAA0B,kDA1Fb;EA2Fb,kEAAkE,+DA3FrD;EA4Fb,qEAAqE,qDA5FxD;EA6Fb,oEAAoE,2DA7FvD;EA8Fb,uEAAuE;AA9F1D,C"}
|
|
@@ -13,6 +13,8 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
|
13
13
|
|
|
14
14
|
var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
|
|
15
15
|
|
|
16
|
+
var _sort = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/sort"));
|
|
17
|
+
|
|
16
18
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
17
19
|
|
|
18
20
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
@@ -119,7 +121,11 @@ var ApplicationModel = /*#__PURE__*/function (_ResourceModel) {
|
|
|
119
121
|
}, {
|
|
120
122
|
key: "authenticationTypes",
|
|
121
123
|
get: function get() {
|
|
122
|
-
|
|
124
|
+
var authenticationTypes = this.getContribution("security", []); //put primary first
|
|
125
|
+
|
|
126
|
+
return authenticationTypes === null || authenticationTypes === void 0 ? void 0 : (0, _sort.default)(authenticationTypes).call(authenticationTypes, function (a, b) {
|
|
127
|
+
return a.isPrimary === b.isPrimary ? 0 : a.isPrimary ? -1 : 1;
|
|
128
|
+
});
|
|
123
129
|
}
|
|
124
130
|
/**
|
|
125
131
|
* Getting the tab links
|
|
@@ -68,7 +68,13 @@ export default class ApplicationModel extends ResourceModel {
|
|
|
68
68
|
* Getting the authentication types of the application
|
|
69
69
|
*/
|
|
70
70
|
get authenticationTypes(): Array<AuthenticationType> {
|
|
71
|
-
|
|
71
|
+
const authenticationTypes = this.getContribution("security", []);
|
|
72
|
+
|
|
73
|
+
//put primary first
|
|
74
|
+
return authenticationTypes?.sort(
|
|
75
|
+
(a: AuthenticationType, b: AuthenticationType) =>
|
|
76
|
+
a.isPrimary === b.isPrimary ? 0 : a.isPrimary ? -1 : 1
|
|
77
|
+
);
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* Getting the tab links
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationModel.js","names":["ApplicationModel","userService","links","getLinkByKey","href","path","NotAllowedUriException","models","userServiceModel","model","type","userServices","getContribution","getLinksByGroup","LinkModel","create","_userServices","UserServicesModel","isLoggedIn","userLink","data","contributions","resourcetype","ResourceModel"],"sources":["../../../src/models/application/ApplicationModel.js"],"sourcesContent":["// @flow\nimport ResourceModel from \"../base/ResourceModel\";\nimport LinkModel from \"../links/LinkModel\";\nimport UserServicesModel from \"../user/UserServicesModel\";\n\nimport { NotAllowedUriException } from \"../../exceptions\";\n\nimport type { ModularUIModel, AuthenticationType } from \"../types\";\nimport type { ModularUIResponse } from \"../../modularui\";\nimport type LinkCollection from \"../links/LinkCollection\";\nimport type Href from \"../href/Href\";\n\n/**\n * The Application model\n */\nexport default class ApplicationModel extends ResourceModel {\n _userServices: ?UserServicesModel;\n\n /**\n * Retrieve type of model\n */\n get type(): string {\n return \"Application\";\n }\n\n /**\n */\n static isApplicableModel(data: ModularUIResponse): boolean {\n return (\n data.contributions.resourcetype &&\n data.contributions.resourcetype === \"Application\"\n );\n }\n\n /**\n */\n getInitialChildModelLinks(): Array<LinkModel> {\n const userService = this.links.getLinkByKey(\"UserServices\");\n if (userService && userService.href.path === \"/login\") {\n throw new NotAllowedUriException(\n \"The user service (Login panel) should not have the uri '/login', use a different URI because this uri matches the login service.\"\n );\n }\n\n return userService ? [userService] : [];\n }\n\n /**\n */\n setChildModels(models: Array<ModularUIModel>) {\n const userServiceModel = models.find(\n (model) => model.type === \"UserServices\"\n );\n\n if (userServiceModel) {\n this.userServices = userServiceModel;\n }\n }\n\n /**\n * Getting the label of the application\n */\n get label(): string {\n return this.getContribution(\"label\", \"\");\n }\n\n /**\n * Getting the authentication types of the application\n */\n get authenticationTypes(): Array<AuthenticationType> {\n
|
|
1
|
+
{"version":3,"file":"ApplicationModel.js","names":["ApplicationModel","userService","links","getLinkByKey","href","path","NotAllowedUriException","models","userServiceModel","model","type","userServices","getContribution","authenticationTypes","a","b","isPrimary","getLinksByGroup","LinkModel","create","_userServices","UserServicesModel","isLoggedIn","userLink","data","contributions","resourcetype","ResourceModel"],"sources":["../../../src/models/application/ApplicationModel.js"],"sourcesContent":["// @flow\nimport ResourceModel from \"../base/ResourceModel\";\nimport LinkModel from \"../links/LinkModel\";\nimport UserServicesModel from \"../user/UserServicesModel\";\n\nimport { NotAllowedUriException } from \"../../exceptions\";\n\nimport type { ModularUIModel, AuthenticationType } from \"../types\";\nimport type { ModularUIResponse } from \"../../modularui\";\nimport type LinkCollection from \"../links/LinkCollection\";\nimport type Href from \"../href/Href\";\n\n/**\n * The Application model\n */\nexport default class ApplicationModel extends ResourceModel {\n _userServices: ?UserServicesModel;\n\n /**\n * Retrieve type of model\n */\n get type(): string {\n return \"Application\";\n }\n\n /**\n */\n static isApplicableModel(data: ModularUIResponse): boolean {\n return (\n data.contributions.resourcetype &&\n data.contributions.resourcetype === \"Application\"\n );\n }\n\n /**\n */\n getInitialChildModelLinks(): Array<LinkModel> {\n const userService = this.links.getLinkByKey(\"UserServices\");\n if (userService && userService.href.path === \"/login\") {\n throw new NotAllowedUriException(\n \"The user service (Login panel) should not have the uri '/login', use a different URI because this uri matches the login service.\"\n );\n }\n\n return userService ? [userService] : [];\n }\n\n /**\n */\n setChildModels(models: Array<ModularUIModel>) {\n const userServiceModel = models.find(\n (model) => model.type === \"UserServices\"\n );\n\n if (userServiceModel) {\n this.userServices = userServiceModel;\n }\n }\n\n /**\n * Getting the label of the application\n */\n get label(): string {\n return this.getContribution(\"label\", \"\");\n }\n\n /**\n * Getting the authentication types of the application\n */\n get authenticationTypes(): Array<AuthenticationType> {\n const authenticationTypes = this.getContribution(\"security\", []);\n\n //put primary first\n return authenticationTypes?.sort(\n (a: AuthenticationType, b: AuthenticationType) =>\n a.isPrimary === b.isPrimary ? 0 : a.isPrimary ? -1 : 1\n );\n }\n /**\n * Getting the tab links\n */\n get tabs(): LinkCollection {\n return this.links.getLinksByGroup(\"tab\");\n }\n\n /**\n * Get modelcatalog link\n */\n get modelcatalog(): LinkModel {\n return LinkModel.create(\"modelcatalog\", \"/modelcatalog\", \"Model catalog\");\n }\n\n /**\n * Set the userservices for this application\n */\n set userServices(model: ?ModularUIModel) {\n this._userServices = model instanceof UserServicesModel ? model : null;\n }\n\n /**\n * returns the userservices configured for this application\n */\n get userServices(): ?UserServicesModel {\n return this._userServices ? this._userServices : null;\n }\n\n /**\n * Indicates if the user is logged in\n */\n get isLoggedIn(): boolean {\n return this.userServices?.isLoggedIn ?? false;\n }\n\n /**\n * Retrieve link to the user information,\n * only available when the user services are available\n */\n get userHref(): Href | null {\n if (this.userServices != null && this.userServices.userLink != null) {\n return this.userServices.userLink.href;\n }\n\n return null;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;AAEA;;;;;;AAOA;AACA;AACA;IACqBA,gB;;;;;;;;;;;;;;;;;;;;;;;;IAGnB;AACF;AACA;IACE,eAAmB;MACjB,OAAO,aAAP;IACD;IAED;AACF;;;;;IAQE;AACF;IACE,qCAA8C;MAC5C,IAAMC,WAAW,GAAG,KAAKC,KAAL,CAAWC,YAAX,CAAwB,cAAxB,CAApB;;MACA,IAAIF,WAAW,IAAIA,WAAW,CAACG,IAAZ,CAAiBC,IAAjB,KAA0B,QAA7C,EAAuD;QACrD,MAAM,IAAIC,kCAAJ,CACJ,kIADI,CAAN;MAGD;;MAED,OAAOL,WAAW,GAAG,CAACA,WAAD,CAAH,GAAmB,EAArC;IACD;IAED;AACF;;;;WACE,wBAAeM,MAAf,EAA8C;MAC5C,IAAMC,gBAAgB,GAAG,mBAAA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AACA;;;;SACE,eAA4B;MAC1B,IAAI,KAAKX,YAAL,IAAqB,IAArB,IAA6B,KAAKA,YAAL,CAAkBY,QAAlB,IAA8B,IAA/D,EAAqE;QACnE,OAAO,KAAKZ,YAAL,CAAkBY,QAAlB,CAA2BnB,IAAlC;MACD;;MAED,OAAO,IAAP;IACD;;;WAhGD,2BAAyBoB,IAAzB,EAA2D;MACzD,OACEA,IAAI,CAACC,aAAL,CAAmBC,YAAnB,IACAF,IAAI,CAACC,aAAL,CAAmBC,YAAnB,KAAoC,aAFtC;IAID;;;EAjB2CC,uB"}
|
|
@@ -151,7 +151,7 @@ var loadModel = function loadModel(key, href, options) {
|
|
|
151
151
|
return {
|
|
152
152
|
type: "NO_ACTION"
|
|
153
153
|
};
|
|
154
|
-
} else if (errorResponse.isResourceNotFoundAfterReload
|
|
154
|
+
} else if (errorResponse.isResourceNotFoundAfterReload) {
|
|
155
155
|
return removeModelByKey(key);
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -116,10 +116,7 @@ export const loadModel = (
|
|
|
116
116
|
return {
|
|
117
117
|
type: "NO_ACTION",
|
|
118
118
|
};
|
|
119
|
-
} else if (
|
|
120
|
-
errorResponse.isResourceNotFoundAfterReload ||
|
|
121
|
-
errorResponse.isInvalidUsername
|
|
122
|
-
) {
|
|
119
|
+
} else if (errorResponse.isResourceNotFoundAfterReload) {
|
|
123
120
|
return removeModelByKey(key);
|
|
124
121
|
}
|
|
125
122
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","names":["setModel","key","model","connectKey","type","payload","updateModel","removeModelByKey","resetModularUI","updateStatus","status","loadModelSuccessAction","modelToUpdate","clonedModel","clone","update","Error","loadModel","href","options","Href","method","HTTP_METHODS","GET","data","locale","childmodels","targetModel","successAction","errorAction","error","errorResponse","ErrorResponse","isChangePassword","isResourceNotFoundAfterReload","
|
|
1
|
+
{"version":3,"file":"actions.js","names":["setModel","key","model","connectKey","type","payload","updateModel","removeModelByKey","resetModularUI","updateStatus","status","loadModelSuccessAction","modelToUpdate","clonedModel","clone","update","Error","loadModel","href","options","Href","method","HTTP_METHODS","GET","data","locale","childmodels","targetModel","successAction","errorAction","error","errorResponse","ErrorResponse","isChangePassword","isResourceNotFoundAfterReload","MODULARUI_STATUS","ERROR","loadModularUI","dispatch","LOADING","startProgress","loadModelPromise","resolve","then","response","FINISHED","finishProgress","catch","handleError","reloadModel","selfhref","isReload"],"sources":["../../../src/redux/_modularui/actions.js"],"sourcesContent":["// @flow\nimport { HTTP_METHODS, MODULARUI_STATUS } from \"../../constants/Constants\";\nimport Href from \"../../models/href/Href\";\nimport ErrorResponse from \"../../models/error/ErrorResponse\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type { ModularUIModel } from \"../../models/types\";\nimport type { Dispatch, ThunkAction } from \"../types\";\nimport type {\n ModularUIAction,\n SetModelAction,\n UpdateModelAction,\n RemoveModelByKeyAction,\n ResetModularUIAction,\n UpdateStatusAction,\n} from \"./types\";\nimport type { RequestBaseOptions } from \"../../utils/fetch/types\";\n\n/**\n */\nexport const setModel = (\n key: string,\n model: ModularUIModel\n): SetModelAction => {\n // set key on model for later reference\n model.connectKey = key;\n return {\n type: \"MODULARUI/SET\",\n payload: {\n key,\n model,\n },\n };\n};\n\n/**\n */\nexport const updateModel = (model: ModularUIModel): UpdateModelAction => ({\n type: \"MODULARUI/UPDATE\",\n payload: model,\n});\n\n/**\n */\nexport const removeModelByKey = (key: string): RemoveModelByKeyAction => ({\n type: \"MODULARUI/REMOVE_KEY\",\n payload: key,\n});\n\n/**\n * Removes all models except the application model from the modular ui reducer\n */\nexport const resetModularUI = (): ResetModularUIAction => ({\n type: \"MODULARUI/RESET\",\n});\n\n/**\n */\nexport const updateStatus = (\n key: string,\n status: $Keys<typeof MODULARUI_STATUS>\n): UpdateStatusAction => ({\n type: \"MODULARUI/STATUS\",\n payload: { key, status },\n});\n\n/**\n */\nconst loadModelSuccessAction = (\n key: string,\n model: ModularUIModel,\n modelToUpdate\n): UpdateModelAction | SetModelAction => {\n if (modelToUpdate) {\n // $FlowFixMe[prop-missing]\n if (typeof modelToUpdate[\"update\"] === \"function\") {\n const clonedModel = modelToUpdate.clone();\n clonedModel.update(model);\n\n return updateModel(clonedModel);\n }\n\n throw new Error(\n `loadModel action: updateModel is set as option for ${key}, but the model is missing an update methode`\n );\n }\n\n return setModel(key, model);\n};\n\n/**\n */\nexport const loadModel = (\n key: string,\n href: Href | string,\n options?: RequestBaseOptions\n): ModularUIAction => ({\n type: \"MODULARUI/FETCH\",\n payload: {\n href: href instanceof Href ? href : new Href(href),\n method: options?.method ?? HTTP_METHODS.GET,\n data: options?.data,\n locale: options?.locale ?? \"en\",\n childmodels: options?.childmodels,\n targetModel: options?.targetModel,\n /**\n */\n successAction: (model) =>\n loadModelSuccessAction(key, model, options?.updateModel),\n /**\n */\n errorAction: (error) => {\n const errorResponse = new ErrorResponse(error, key);\n if (errorResponse.isChangePassword) {\n return {\n type: \"NO_ACTION\",\n };\n } else if (errorResponse.isResourceNotFoundAfterReload) {\n return removeModelByKey(key);\n }\n\n return updateStatus(key, MODULARUI_STATUS.ERROR);\n },\n },\n});\n\n/**\n */\nexport const loadModularUI =\n (\n key: string,\n href: Href | string,\n options?: RequestBaseOptions\n ): ThunkAction =>\n (dispatch: Dispatch) => {\n dispatch(updateStatus(key, MODULARUI_STATUS.LOADING));\n dispatch(startProgress());\n\n const loadModelPromise = dispatch(loadModel(key, href, options));\n\n return Promise.resolve(loadModelPromise)\n .then((response) => {\n if (response?.type === \"FINISH_PROGRESS\") {\n dispatch(updateStatus(key, MODULARUI_STATUS.FINISHED));\n }\n\n return dispatch(finishProgress());\n })\n .catch((error) => dispatch(handleError(error)));\n };\n\n/**\n */\nexport const reloadModel = (\n model: ModularUIModel,\n options?: RequestBaseOptions\n): ThunkAction =>\n loadModularUI(model.connectKey, model.selfhref, {\n ...options,\n isReload: true,\n });\n"],"mappings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EAAE;EAFC,GAJY;AAAA,CAApB"}
|
|
@@ -7,16 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.handleUnauthorized = void 0;
|
|
9
9
|
|
|
10
|
-
var _Constants = require("../../constants/Constants");
|
|
11
|
-
|
|
12
10
|
var _ErrorResponse = _interopRequireDefault(require("../../models/error/ErrorResponse"));
|
|
13
11
|
|
|
14
12
|
var _actions = require("../_router/actions");
|
|
15
13
|
|
|
16
14
|
var _SignOut = require("./SignOut");
|
|
17
15
|
|
|
18
|
-
var _Notification = require("./Notification");
|
|
19
|
-
|
|
20
16
|
var _Cache = _interopRequireDefault(require("../../utils/browser/Cache"));
|
|
21
17
|
|
|
22
18
|
var _actions2 = require("../_modularui/actions");
|
|
@@ -27,6 +23,8 @@ var _Application = require("./Application");
|
|
|
27
23
|
|
|
28
24
|
var _constants = require("../../constants");
|
|
29
25
|
|
|
26
|
+
var _SignIn = require("./SignIn");
|
|
27
|
+
|
|
30
28
|
/**
|
|
31
29
|
*/
|
|
32
30
|
var handleUnauthorized = function handleUnauthorized(errorResponse) {
|
|
@@ -47,7 +45,7 @@ var handleUnauthorized = function handleUnauthorized(errorResponse) {
|
|
|
47
45
|
|
|
48
46
|
if (_Cache.default.getItem("auth") || application !== null && application !== void 0 && application.isLoggedIn) {
|
|
49
47
|
dispatch((0, _Application.reloadApplication)());
|
|
50
|
-
} // set logged
|
|
48
|
+
} // set logged out
|
|
51
49
|
|
|
52
50
|
|
|
53
51
|
dispatch((0, _SignOut.logoutSuccess)());
|
|
@@ -55,21 +53,18 @@ var handleUnauthorized = function handleUnauthorized(errorResponse) {
|
|
|
55
53
|
_Cache.default.removeItem("auth");
|
|
56
54
|
|
|
57
55
|
if (errorResponse.isInvalidUsername) {
|
|
58
|
-
|
|
59
|
-
dispatch((0, _Notification.showNotification)(_Constants.NOTIFICATION_TYPES.WARNING, {
|
|
60
|
-
id: errorResponse.id,
|
|
61
|
-
defaultMessage: errorResponse.message
|
|
62
|
-
}, null, WARNING_TIMEOUT));
|
|
56
|
+
dispatch((0, _SignIn.sendAuthenticationError)(errorResponse.message));
|
|
63
57
|
} // add current location as from location before redirect
|
|
64
58
|
|
|
65
59
|
|
|
66
60
|
var location = getState().router.location;
|
|
61
|
+
var LOGIN_PATH = (0, _constants.getSetting)("LOGIN_PATH", "/signin");
|
|
67
62
|
|
|
68
|
-
if ((location === null || location === void 0 ? void 0 : location.pathname) !==
|
|
63
|
+
if ((location === null || location === void 0 ? void 0 : location.pathname) !== LOGIN_PATH) {
|
|
69
64
|
var _location$state;
|
|
70
65
|
|
|
71
66
|
var locationFrom = location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.from;
|
|
72
|
-
return dispatch((0, _actions.replace)(
|
|
67
|
+
return dispatch((0, _actions.replace)(LOGIN_PATH, {
|
|
73
68
|
from: locationFrom ? locationFrom : getState().router.location,
|
|
74
69
|
// cannot open login in a modal, because of previous locations that might be secure
|
|
75
70
|
modal: false
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
// @flow
|
|
2
|
-
import { LOGIN_PATH, NOTIFICATION_TYPES } from "../../constants/Constants";
|
|
3
|
-
|
|
4
2
|
import ErrorResponse from "../../models/error/ErrorResponse";
|
|
5
3
|
|
|
6
4
|
import { replace } from "../_router/actions";
|
|
7
5
|
import { logoutSuccess } from "./SignOut";
|
|
8
|
-
import { showNotification } from "./Notification";
|
|
9
6
|
|
|
10
7
|
import Cache from "../../utils/browser/Cache";
|
|
11
8
|
|
|
@@ -16,6 +13,7 @@ import { reloadApplication } from "./Application";
|
|
|
16
13
|
import { getSetting } from "../../constants";
|
|
17
14
|
|
|
18
15
|
import type { ThunkAction } from "../types";
|
|
16
|
+
import { sendAuthenticationError } from "./SignIn";
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
*/
|
|
@@ -40,28 +38,18 @@ export const handleUnauthorized =
|
|
|
40
38
|
dispatch(reloadApplication());
|
|
41
39
|
}
|
|
42
40
|
|
|
43
|
-
// set logged
|
|
41
|
+
// set logged out
|
|
44
42
|
dispatch(logoutSuccess());
|
|
45
43
|
|
|
46
44
|
Cache.removeItem("auth");
|
|
47
45
|
|
|
48
46
|
if (errorResponse.isInvalidUsername) {
|
|
49
|
-
|
|
50
|
-
dispatch(
|
|
51
|
-
showNotification(
|
|
52
|
-
NOTIFICATION_TYPES.WARNING,
|
|
53
|
-
{
|
|
54
|
-
id: errorResponse.id,
|
|
55
|
-
defaultMessage: errorResponse.message,
|
|
56
|
-
},
|
|
57
|
-
null,
|
|
58
|
-
WARNING_TIMEOUT
|
|
59
|
-
)
|
|
60
|
-
);
|
|
47
|
+
dispatch(sendAuthenticationError(errorResponse.message));
|
|
61
48
|
}
|
|
62
49
|
|
|
63
50
|
// add current location as from location before redirect
|
|
64
51
|
const location = getState().router.location;
|
|
52
|
+
const LOGIN_PATH = getSetting("LOGIN_PATH", "/signin");
|
|
65
53
|
if (location?.pathname !== LOGIN_PATH) {
|
|
66
54
|
const locationFrom = location?.state?.from;
|
|
67
55
|
return dispatch(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorization.js","names":["handleUnauthorized","errorResponse","dispatch","getState","connectKey","removeModelByKey","getSetting","response","error","window","location","reload","application","getApplication","Cache","getItem","isLoggedIn","reloadApplication","logoutSuccess","removeItem","isInvalidUsername","
|
|
1
|
+
{"version":3,"file":"Authorization.js","names":["handleUnauthorized","errorResponse","dispatch","getState","connectKey","removeModelByKey","getSetting","response","error","window","location","reload","application","getApplication","Cache","getItem","isLoggedIn","reloadApplication","logoutSuccess","removeItem","isInvalidUsername","sendAuthenticationError","message","router","LOGIN_PATH","pathname","locationFrom","state","from","replace","modal","type"],"sources":["../../../src/redux/actions/Authorization.js"],"sourcesContent":["// @flow\nimport ErrorResponse from \"../../models/error/ErrorResponse\";\n\nimport { replace } from \"../_router/actions\";\nimport { logoutSuccess } from \"./SignOut\";\n\nimport Cache from \"../../utils/browser/Cache\";\n\nimport { removeModelByKey } from \"../_modularui/actions\";\nimport { getApplication } from \"../_modularui/selectors\";\nimport { reloadApplication } from \"./Application\";\n\nimport { getSetting } from \"../../constants\";\n\nimport type { ThunkAction } from \"../types\";\nimport { sendAuthenticationError } from \"./SignIn\";\n\n/**\n */\nexport const handleUnauthorized =\n (errorResponse: ErrorResponse): ThunkAction =>\n (dispatch, getState) => {\n if (errorResponse.connectKey) {\n dispatch(removeModelByKey(errorResponse.connectKey));\n }\n\n if (\n getSetting(\"PAGE_RELOAD_ON_UNAUTHORIZED_ERROR\", false) &&\n errorResponse.response?.error\n ) {\n window.location.reload();\n return;\n }\n\n // reload application when flag auth is set or isLogged\n const application = getApplication(getState());\n if (Cache.getItem(\"auth\") || application?.isLoggedIn) {\n dispatch(reloadApplication());\n }\n\n // set logged out\n dispatch(logoutSuccess());\n\n Cache.removeItem(\"auth\");\n\n if (errorResponse.isInvalidUsername) {\n dispatch(sendAuthenticationError(errorResponse.message));\n }\n\n // add current location as from location before redirect\n const location = getState().router.location;\n const LOGIN_PATH = getSetting(\"LOGIN_PATH\", \"/signin\");\n if (location?.pathname !== LOGIN_PATH) {\n const locationFrom = location?.state?.from;\n return dispatch(\n replace(LOGIN_PATH, {\n from: locationFrom ? locationFrom : getState().router.location,\n // cannot open login in a modal, because of previous locations that might be secure\n modal: false,\n })\n );\n }\n\n return { type: \"NO_ACTION\" };\n };\n"],"mappings":";;;;;;;;;AACA;;AAEA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;AAEA;;AAGA;;AAEA;AACA;AACO,IAAMA,kBAAkB,GAC7B,SADWA,kBACX,CAACC,aAAD;EAAA,OACA,UAACC,QAAD,EAAWC,QAAX,EAAwB;IAAA;;IACtB,IAAIF,aAAa,CAACG,UAAlB,EAA8B;MAC5BF,QAAQ,CAAC,IAAAG,0BAAA,EAAiBJ,aAAa,CAACG,UAA/B,CAAD,CAAR;IACD;;IAED,IACE,IAAAE,qBAAA,EAAW,mC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A,CADK"}
|
|
@@ -9,6 +9,8 @@ exports.setCustomErrorResponseHandler = exports.handleError = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _Constants = require("../../constants/Constants");
|
|
11
11
|
|
|
12
|
+
var _Settings = require("../../constants/Settings");
|
|
13
|
+
|
|
12
14
|
var _ErrorResponse = _interopRequireDefault(require("../../models/error/ErrorResponse"));
|
|
13
15
|
|
|
14
16
|
var _actions = require("../_router/actions");
|
|
@@ -46,7 +48,8 @@ var defaultErrorResponseHandler = function defaultErrorResponseHandler(error) {
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
if (error.isBlocked || error.isConcurrentUser) {
|
|
49
|
-
|
|
51
|
+
var LOGOUT_PATH = (0, _Settings.getSetting)("LOGOUT_PATH", "/signout");
|
|
52
|
+
dispatch((0, _actions.push)(LOGOUT_PATH));
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
if (error.isChangePassword) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @flow
|
|
2
|
-
import {
|
|
2
|
+
import { IS_SERVER } from "../../constants/Constants";
|
|
3
|
+
import { getSetting } from "../../constants/Settings";
|
|
3
4
|
|
|
4
5
|
import ErrorResponse from "../../models/error/ErrorResponse";
|
|
5
6
|
|
|
@@ -39,6 +40,7 @@ const defaultErrorResponseHandler: DefaultErrorResponseHandler =
|
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
if (error.isBlocked || error.isConcurrentUser) {
|
|
43
|
+
const LOGOUT_PATH = getSetting("LOGOUT_PATH", "/signout");
|
|
42
44
|
dispatch(push(LOGOUT_PATH));
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","names":["saveError","error","type","payload","defaultErrorResponseHandler","dispatch","isResourceNotFoundAfterReload","isRemoteServiceException","isUnauthorized","handleUnauthorized","isBlocked","isConcurrentUser","
|
|
1
|
+
{"version":3,"file":"Error.js","names":["saveError","error","type","payload","defaultErrorResponseHandler","dispatch","isResourceNotFoundAfterReload","isRemoteServiceException","isUnauthorized","handleUnauthorized","isBlocked","isConcurrentUser","LOGOUT_PATH","getSetting","push","isChangePassword","changePassword","IS_SERVER","setTimeout","showXHRErrorNotification","customErrorResponseHandler","errorResponse","defaultHandler","setCustomErrorResponseHandler","handler","handleError","resetProgress","ErrorResponse"],"sources":["../../../src/redux/actions/Error.js"],"sourcesContent":["// @flow\nimport { IS_SERVER } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport ErrorResponse from \"../../models/error/ErrorResponse\";\n\nimport { push } from \"../_router/actions\";\nimport { showXHRErrorNotification } from \"./Notification\";\nimport { resetProgress } from \"./ProgressIndicator\";\nimport { changePassword } from \"./SignIn\";\nimport { handleUnauthorized } from \"./Authorization\";\n\nimport type { FetchException } from \"../../exceptions\";\nimport type { Dispatch, SaveErrorAction, ThunkAction } from \"../types\";\n\ntype DefaultErrorResponseHandler = (error: ErrorResponse) => ThunkAction;\ntype CustomErrorResponseHandler = (\n errorResponse: ErrorResponse,\n defaultHandler: DefaultErrorResponseHandler\n) => ThunkAction;\n\n/**\n */\nconst saveError = (error): SaveErrorAction => ({\n type: \"SAVE_ERROR\",\n payload: error,\n});\n\n/**\n */\nconst defaultErrorResponseHandler: DefaultErrorResponseHandler =\n (error: ErrorResponse): ThunkAction =>\n (dispatch: Dispatch) => {\n if (error.isResourceNotFoundAfterReload || error.isRemoteServiceException) {\n return dispatch({ type: \"NO_ACTION\" });\n }\n\n if (error.isUnauthorized) {\n return dispatch(handleUnauthorized(error));\n }\n\n if (error.isBlocked || error.isConcurrentUser) {\n const LOGOUT_PATH = getSetting(\"LOGOUT_PATH\", \"/signout\");\n dispatch(push(LOGOUT_PATH));\n }\n\n if (error.isChangePassword) {\n return dispatch(changePassword());\n }\n\n if (IS_SERVER) {\n return dispatch(saveError(error));\n }\n\n setTimeout(() => {\n throw error;\n });\n\n return dispatch(showXHRErrorNotification(error));\n };\n\n/**\n * Standard Custom error response, acts as a proxy and can be overwritten by {@link setCustomErrorResponseHandler}\n */\nlet customErrorResponseHandler: CustomErrorResponseHandler =\n (errorResponse, defaultHandler) => (dispatch: Dispatch) =>\n dispatch(defaultHandler(errorResponse));\n\n/**\n * Set a custom error response handler,\n * can be used when custom functionality is needed on certain (error) response\n * of the modular ui, for example when custom logic is needed when a user is unauthorized<br>\n * It receives an {@link ErrorResponse} and the {@link defaultErrorResponseHandler}\n */\nexport const setCustomErrorResponseHandler = (\n handler: CustomErrorResponseHandler\n) => {\n customErrorResponseHandler = handler;\n};\n\n/**\n * Handle errors by sending an error notification message\n */\nexport const handleError =\n (error: Error | FetchException): ThunkAction =>\n (dispatch: Dispatch) => {\n dispatch(resetProgress());\n\n const errorResponse = new ErrorResponse(error);\n\n return dispatch(\n customErrorResponseHandler(errorResponse, defaultErrorResponseHandler)\n );\n };\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAWA;AACA;AACA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD;EAAA,OAA6B;IAC7CC,IAAI,EAAE,YADuC;IAE7CC,OAAO,EAAEF;EAFoC,CAA7B;AAAA,CAAlB;AAKA;AACA;;;AACA,IAAMG,2BAAwD,GAC5D,SADIA,2BACJ,CAACH,KAAD;EAAA,OACA,UAACI,QAAD,EAAwB;IACtB,IAAIJ,KAAK,CAACK,6BAAN,IAAuCL,KAAK,CAACM,wBAAjD,EAA2E;MACzE,OAAOF,QAAQ,CAAC;QAAEH,IAAI,EAAE;MAAR,CAAD,CAAf;IACD;;IAED,IAAID,KAAK,CAACO,cAAV,EAA0B;MACxB,OAAOH,QAAQ,CAAC,IAAAI,iCAAA,EAAmBR,KAAnB,CAAD,CAAf;IACD;;IAED,IAAIA,KAAK,CAACS,SAAN,IAAmBT,KAAK,CAACU,gBAA7B,EAA+C;MAC7C,IAAMC,WAAW,GAAG,IAAAC,oBAAA,EAAW,aAAX,EAA0B,UAA1B,CAApB;MACAR,QAAQ,CAAC,IAAAS,aAAA,EAAKF,WAAL,CAAD,CAAR;IACD;;IAED,IAAIX,KAAK,CAACc,gBAAV,EAA4B;MAC1B,OAAOV,QAAQ,CAAC,IAAAW,sBAAA,GAAD,CAAf;IACD;;IAED,IAAIC,oBAAJ,EAAe;MACb,OAAOZ,QAAQ,CAACL,SAAS,CAACC,KAAD,CAAV,CAAf;IACD;;IAEDiB,UAAU,CAAC,YAAM;MACf,MAAMjB,KAAN;IACD,CAFS,CAAV;IAIA,OAAOI,QAAQ,CAAC,IAAAc,sCAAA,EAAyBlB,KAAzB,CAAD,CAAf;EACD,CA5BD;AAAA,CADF;AA+BA;AACA;AACA;;;AACA,IAAImB,0BAAsD,GACxD,oCAACC,aAAD,EAAgBC,cAAhB;EAAA,OAAmC,UAACjB,QAAD;IAAA,OACjCA,QAAQ,CAACiB,cAAc,CAACD,aAAD,CAAf,CADyB;EAAA,CAAnC;AAAA,CADF;AAIA;AACA;AACA;AACA;AACA;AACA;;;AACO,IAAME,6BAA6B,GAAG,SAAhCA,6BAAgC,CAC3CC,OAD2C,EAExC;EACHJ,0BAA0B,GAAGI,OAA7B;AACD,CAJM;AAMP;AACA;AACA;;;;;AACO,IAAMC,WAAW,GACtB,SADWA,WACX,CAACxB,KAAD;EAAA,OACA,UAACI,QAAD,EAAwB;IACtBA,QAAQ,CAAC,IAAAqB,gCAAA,GAAD,CAAR;IAEA,IAAML,aAAa,GAAG,IAAIM,sBAAJ,CAAkB1B,KAAlB,CAAtB;IAEA,OAAOI,QAAQ,CACbe,0BAA0B,CAACC,aAAD,EAAgBjB,2BAAhB,CADb,CAAf;EAGD,CATD;AAAA,CADK"}
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.resetAuthErrors = exports.loginSuccess = exports.loginFailed = exports.login = exports.changePassword = void 0;
|
|
8
|
+
exports.sendAuthenticationError = exports.resetAuthErrors = exports.loginSuccess = exports.loginFailed = exports.login = exports.changePassword = void 0;
|
|
9
9
|
|
|
10
10
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
11
11
|
|
|
@@ -25,6 +25,16 @@ var _Constants = require("../../constants/Constants");
|
|
|
25
25
|
* Send login failed action
|
|
26
26
|
*/
|
|
27
27
|
var loginFailed = function loginFailed(errorMessage) {
|
|
28
|
+
return sendAuthenticationError(errorMessage);
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Send authentication error action
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.loginFailed = loginFailed;
|
|
36
|
+
|
|
37
|
+
var sendAuthenticationError = function sendAuthenticationError(errorMessage) {
|
|
28
38
|
return {
|
|
29
39
|
type: "AUTHENTICATION_ERROR",
|
|
30
40
|
payload: errorMessage
|
|
@@ -35,7 +45,7 @@ var loginFailed = function loginFailed(errorMessage) {
|
|
|
35
45
|
*/
|
|
36
46
|
|
|
37
47
|
|
|
38
|
-
exports.
|
|
48
|
+
exports.sendAuthenticationError = sendAuthenticationError;
|
|
39
49
|
|
|
40
50
|
var resetAuthErrors = function resetAuthErrors() {
|
|
41
51
|
return {
|