@c8y/ngx-components 1023.50.2 → 1023.52.0

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.
Files changed (39) hide show
  1. package/datapoint-explorer/view/index.d.ts +8 -0
  2. package/datapoint-explorer/view/index.d.ts.map +1 -1
  3. package/datapoint-selector/index.d.ts +14 -1
  4. package/datapoint-selector/index.d.ts.map +1 -1
  5. package/echart/index.d.ts +2 -0
  6. package/echart/index.d.ts.map +1 -1
  7. package/echart/models/index.d.ts +1 -0
  8. package/echart/models/index.d.ts.map +1 -1
  9. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +33 -4
  10. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  11. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +24 -7
  12. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
  13. package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
  14. package/fesm2022/c8y-ngx-components-echart.mjs +32 -10
  15. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  16. package/fesm2022/c8y-ngx-components-global-context.mjs +7 -2
  17. package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
  18. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +35 -5
  19. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  20. package/fesm2022/c8y-ngx-components.mjs +1338 -1211
  21. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  22. package/global-context/index.d.ts +1 -0
  23. package/global-context/index.d.ts.map +1 -1
  24. package/index.d.ts +1324 -1327
  25. package/index.d.ts.map +1 -1
  26. package/locales/de.po +9 -3
  27. package/locales/es.po +9 -3
  28. package/locales/fr.po +9 -3
  29. package/locales/ja_JP.po +9 -3
  30. package/locales/ko.po +9 -3
  31. package/locales/locales.pot +15 -3
  32. package/locales/nl.po +9 -3
  33. package/locales/pl.po +9 -3
  34. package/locales/pt_BR.po +9 -3
  35. package/locales/zh_CN.po +9 -3
  36. package/locales/zh_TW.po +9 -3
  37. package/package.json +1 -1
  38. package/widgets/implementations/datapoints-graph/index.d.ts +8 -0
  39. package/widgets/implementations/datapoints-graph/index.d.ts.map +1 -1
@@ -987,50 +987,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
987
987
  }] }] });
988
988
 
989
989
  /* tslint:disable:max-line-length */
990
- const bulkOperationAuditLogTextPlaceholders = {
991
- updatesList: {
992
- capture: '$1',
993
- translate: {
994
- "status='(.+?)'": {
995
- gettext: gettext$1('status: "{{ status | translate }}"'),
996
- placeholders: {
997
- status: '$1'
998
- }
999
- },
1000
- "generalStatus='(.+?)'": {
1001
- gettext: gettext$1('general status: "{{ generalStatus | translate }}"'),
1002
- placeholders: {
1003
- generalStatus: '$1'
1004
- }
1005
- },
1006
- "progress='(.+?)'": {
1007
- gettext: gettext$1('progress: "{{ progress }}"'),
1008
- placeholders: {
1009
- progress: '$1'
1010
- }
1011
- },
1012
- 'note=(.+?)': {
1013
- gettext: gettext$1('note: "{{ note }}"'),
1014
- placeholders: {
1015
- note: '$1'
1016
- }
1017
- }
1018
- }
1019
- }
1020
- };
1021
- const MESSAGES_CORE_I18N = {
1022
- '^Access is denied$': {
1023
- gettext: gettext$1('Access denied.')
1024
- },
990
+ const PATTERN_MESSAGES_ALARMS = {
1025
991
  '^Alarm created$': {
1026
992
  gettext: gettext$1('Alarm created')
1027
993
  },
1028
994
  '^Alarm updated$': {
1029
995
  gettext: gettext$1('Alarm updated')
1030
996
  },
1031
- '^API is not available with the new domain$': {
1032
- gettext: gettext$1('Could not activate custom domain. DNS setup is incorrect.')
1033
- },
997
+ "^Device name: '(.+?)', alarm text: '(.+?)'$": {
998
+ gettext: gettext$1('Device name: "{{deviceName}}", alarm text: "{{alarmText | translate}}"'),
999
+ placeholders: {
1000
+ deviceName: '$1',
1001
+ alarmText: '$2'
1002
+ }
1003
+ }
1004
+ };
1005
+
1006
+ /* tslint:disable:max-line-length */
1007
+ const PATTERN_MESSAGES_APPLICATIONS = {
1034
1008
  '^Application with given name already exist$': {
1035
1009
  gettext: gettext$1('Application with given name already exists.')
1036
1010
  },
@@ -1040,234 +1014,245 @@ const MESSAGES_CORE_I18N = {
1040
1014
  tenant: '$2'
1041
1015
  }
1042
1016
  },
1043
- '^Apply software changes: (.+?)\\.?$': {
1044
- gettext: gettext$1('Apply software changes: {{ softwareChanges }}'),
1017
+ '^Cannot update/delete application binary via this endpoint$': {
1018
+ gettext: gettext$1('Cannot update/delete application binary via this endpoint')
1019
+ },
1020
+ '^Error occurred when trying to find an Application for id ID (.+) : Could not find application by ID (\\d+)$': {
1021
+ gettext: gettext$1('Could not find application by ID {{applicationId}}.'),
1045
1022
  placeholders: {
1046
- softwareChanges: {
1047
- capture: '$1',
1048
- translate: {
1049
- 'install "(.+?)" \\(version: (.+?)\\)': {
1050
- gettext: gettext$1('install "{{ softwareName }}" (version: {{ softwareVersion }})'),
1051
- placeholders: {
1052
- softwareName: '$1',
1053
- softwareVersion: '$2'
1054
- }
1055
- },
1056
- 'install "([^"]+)"(?! \\(version: .+?\\))': {
1057
- gettext: gettext$1('install "{{ softwareName }}"'),
1058
- placeholders: {
1059
- softwareName: '$1'
1060
- }
1061
- },
1062
- 'delete "(.+?)" \\(version: (.+?)\\)': {
1063
- gettext: gettext$1('delete "{{ softwareName }}" (version: {{ softwareVersion }})'),
1064
- placeholders: {
1065
- softwareName: '$1',
1066
- softwareVersion: '$2'
1067
- }
1068
- },
1069
- 'delete "([^"]+)"(?! \\(version: .+?\\))': {
1070
- gettext: gettext$1('delete "{{ softwareName }}"'),
1071
- placeholders: {
1072
- softwareName: '$1'
1073
- }
1074
- }
1075
- }
1076
- }
1023
+ applicationId: '$2'
1077
1024
  }
1078
1025
  },
1079
- '^Assign device profile (.+?) to device (.+?)$': {
1080
- gettext: gettext$1('Assign device profile {{profileName}} to device {{deviceName}}'),
1026
+ '^Failed to delete application. : Cannot remove application assigned to other tenants.$': {
1027
+ gettext: gettext$1('Could not delete application assigned to other tenants.')
1028
+ },
1029
+ "^name of Application cannot start with '(.+)' prefix.$": {
1030
+ gettext: gettext$1('Application name must not start with "{{ prefix }}".'),
1081
1031
  placeholders: {
1082
- profileName: '$1',
1083
- deviceName: '$2'
1032
+ prefix: '$1'
1084
1033
  }
1085
1034
  },
1086
- '^(.+)pplication for tenant (.+) with properties \\( (.+?) \\) already exists$': {
1087
- gettext: gettext$1('Application for tenant "{{tenant}}" with the following values ({{valuesList}}) already exists.'),
1035
+ '^Microservice application name incorrect. Please use only lower-case letters, digits and dashes. Maximum length is (\\d+) characters.$': {
1036
+ gettext: gettext$1('Microservice application name is incorrect: only lower case letters, digits and dashes allowed. Maximum length: {{maxLength}}.'),
1088
1037
  placeholders: {
1089
- tenant: '$2',
1090
- valuesList: '$3'
1038
+ maxLength: '$1'
1091
1039
  }
1092
1040
  },
1093
- '^Authentication failed! : User account is locked$': {
1094
- gettext: gettext$1('Authentication failed due to: user account is locked.')
1041
+ '^Platform application cannot be added to, nor removed from any tenant.$': {
1042
+ gettext: gettext$1('Platform application cannot be added to, nor removed from any tenant.')
1095
1043
  },
1096
- '^Availability monitoring record$': {
1097
- gettext: gettext$1('Availability monitoring record')
1044
+ '^Failed to refresh application. : Cannot refresh non local-hosted application.$': {
1045
+ gettext: gettext$1('Could not reactivate the application as it is not hosted locally.')
1098
1046
  },
1099
- '^Can not activate a certificate which is either expired or not yet valid$': {
1100
- gettext: gettext$1('Cannot activate a certificate which is either expired or not yet valid.')
1047
+ '^Failed to refresh application. : Cannot refresh application without active version id.$': {
1048
+ gettext: gettext$1('Could not reactivate the application as it has no active version.')
1101
1049
  },
1102
- '^Cannot add certificate - certificate with (.+?) fingerprint already exists. : Certificate with (.+?) fingerprint already exists.$': {
1103
- gettext: gettext$1('Could not add certificate. Certificate with {{fingerprint}} fingerprint already exists.'),
1050
+ '^Application deleted$': {
1051
+ gettext: gettext$1('Application deleted')
1052
+ },
1053
+ '^Microservice application "(.+?)" deleted for tenant "(.+?)"$': {
1054
+ gettext: gettext$1('Microservice application "{{appName}}" deleted for tenant "{{tenant}}"'),
1104
1055
  placeholders: {
1105
- fingerprint: '$1'
1056
+ appName: '$1',
1057
+ tenant: '$2'
1106
1058
  }
1107
1059
  },
1108
- '^Cannot change password. : Provided token does not exist.$': {
1109
- gettext: gettext$1('Cannot change password: provided token is invalid.')
1110
- },
1111
- '^Cannot deploy module (.*)$': {
1112
- gettext: gettext$1('Cannot deploy module due to error: "{{ errorMessage | translate }}".'),
1060
+ '^Hosted application "(.+?)" deleted for tenant "(.+?)"$': {
1061
+ gettext: gettext$1('Hosted application "{{appName}}" deleted for tenant "{{tenant}}"'),
1113
1062
  placeholders: {
1114
- errorMessage: '$1'
1063
+ appName: '$1',
1064
+ tenant: '$2'
1115
1065
  }
1116
1066
  },
1117
- "^Cannot deploy module (.+?)! : Compilation failed in module '(.+?)' in expression '(.+?)' : Incorrect syntax near '(.+?)' at line (\\d+) column (\\d+) \\[([\\S\\s]+?)\\]$": {
1118
- gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": incorrect syntax near "{{incorrectExpression}}" at line {{line}} column {{column}}.'),
1067
+ '^External application "(.+?)" deleted for tenant "(.+?)"$': {
1068
+ gettext: gettext$1('External application "{{appName}}" deleted for tenant "{{tenant}}"'),
1119
1069
  placeholders: {
1120
- moduleName: '$1',
1121
- expression: '$3',
1122
- incorrectExpression: '$4',
1123
- line: '$5',
1124
- column: '$6'
1070
+ appName: '$1',
1071
+ tenant: '$2'
1125
1072
  }
1126
1073
  },
1127
- "^Cannot deploy module (.+?)! : Compilation failed in module '(.+?)' in expression '(.+?)' : Incorrect syntax near '(.+?)' at line (\\d+) column (\\d+) near reserved keyword '(.+?)' \\[([\\S\\s]+?)\\]$": {
1128
- gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": incorrect syntax near "{{incorrectExpression}}" at line {{line}} column {{column}} near reserved keyword "{{keyword}}".'),
1074
+ '^Application activated$': {
1075
+ gettext: gettext$1('Application activated')
1076
+ },
1077
+ '^Microservice application "(.+?)" activated: version \\[(.+?)\\] added, activeVersionId \\[(.+?)\\] added$': {
1078
+ gettext: gettext$1('Microservice application "{{appName}}" activated: version "{{version}}" added, activeVersionId "{{activeVersionId}}" added'),
1129
1079
  placeholders: {
1130
- moduleName: '$1',
1131
- expression: '$3',
1132
- incorrectExpression: '$4',
1133
- line: '$5',
1134
- column: '$6',
1135
- keyword: '$7'
1080
+ appName: '$1',
1081
+ version: '$2',
1082
+ activeVersionId: '$3'
1136
1083
  }
1137
1084
  },
1138
- "^Cannot deploy module (.+?)! : Compilation failed in module '(.+?)' in expression '(.+?)' : Incorrect syntax near '(.+?)' at line (\\d+) column (\\d+), please check the where clause \\[([\\S\\s]+?)\\]$": {
1139
- gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": incorrect syntax near "{{incorrectExpression}}" at line {{line}} column {{column}}, check "where" clause.'),
1085
+ '^Hosted application "(.+?)" activated: version \\[(.+?)\\] added, activeVersionId \\[(.+?)\\] added$': {
1086
+ gettext: gettext$1('Hosted application "{{appName}}" activated: version "{{version}}" added, activeVersionId "{{activeVersionId}}" added'),
1140
1087
  placeholders: {
1141
- moduleName: '$1',
1142
- expression: '$3',
1143
- incorrectExpression: '$4',
1144
- line: '$5',
1145
- column: '$6'
1088
+ appName: '$1',
1089
+ version: '$2',
1090
+ activeVersionId: '$3'
1146
1091
  }
1147
1092
  },
1148
- "^Cannot deploy module (.+?)! : Deployment failed in module '(.+?)' in expression '(.+?)' : Exception compiling script '(.+?)' of dialect '(.+?)': missing (.+?) before statement \\((.+?)\\) \\[([\\S\\s]+?)\\]$": {
1149
- gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": exception compiling script "{{scriptName}}" of dialect "{{scriptDialect}}": missing "{{missingSyntax}}" before statement "{{affectedStatement}}".'),
1093
+ '^Hosted application "(.+?)" activated: activeVersionId \\[\'(.+?)\'\\] added$': {
1094
+ gettext: gettext$1('Hosted application "{{appName}}" activated: activeVersionId "{{activeVersionId}}" added'),
1150
1095
  placeholders: {
1151
- moduleName: '$1',
1152
- expression: '$3',
1153
- scriptName: '$4',
1154
- scriptDialect: '$5',
1155
- missingSyntax: '$6',
1156
- affectedStatement: '$7'
1096
+ appName: '$1',
1097
+ activeVersionId: '$2'
1157
1098
  }
1158
1099
  },
1159
- "^Cannot execute bulk operation on empty group. Group with id='(\\d+?)' doesn't have child assets.$": {
1160
- gettext: gettext$1('Could not execute bulk operation on an empty group. Group with ID "{{groupId}}" has no child assets.'),
1100
+ '^External application "(.+?)" activated: version \\[(.+?)\\] added, activeVersionId \\[(.+?)\\] added$': {
1101
+ gettext: gettext$1('External application "{{appName}}" activated: version "{{version}}" added, activeVersionId "{{activeVersionId}}" added'),
1161
1102
  placeholders: {
1162
- groupId: '$1'
1103
+ appName: '$1',
1104
+ version: '$2',
1105
+ activeVersionId: '$3'
1163
1106
  }
1164
1107
  },
1165
- "^Cannot execute bulk operation on empty group. DynamicGroup with id='(\\d+?)' doesn't have child assets$": {
1166
- gettext: gettext$1('Could not execute bulk operation on an empty group. Smart group with ID "{{groupId}}" has no child assets.'),
1108
+ "^Scaling application '(.+?)' from (.+?) to (.+?) instances$": {
1109
+ gettext: gettext$1('Scaling application "{{appName}}" from {{from}} to {{to}} instances'),
1167
1110
  placeholders: {
1168
- groupId: '$1'
1111
+ appName: '$1',
1112
+ from: '$2',
1113
+ to: '$3'
1169
1114
  }
1170
1115
  },
1171
- '^Cannot parse X509 certificate. : Could not parse certificate: (.+?)$': {
1172
- gettext: gettext$1('Could not parse X.509 certificate: {{ failureReason | translate }}.'),
1116
+ '^Entry is outside of the target dir: (.+)$': {
1117
+ gettext: gettext$1('File entry outside of the target directory: "{{path}}".'),
1173
1118
  placeholders: {
1174
- failureReason: '$1'
1119
+ path: '$1'
1175
1120
  }
1121
+ }
1122
+ };
1123
+
1124
+ /* tslint:disable:max-line-length */
1125
+ const PATTERN_MESSAGES_AUTHENTICATION = {
1126
+ '^Authentication failed! : User account is locked$': {
1127
+ gettext: gettext$1('Authentication failed due to: user account is locked.')
1176
1128
  },
1177
- '^Cannot reschedule bulk operation. All its operations are successful$': {
1178
- gettext: gettext$1('Cannot reschedule bulk operation. All its operations are already successful.')
1129
+ '^Cannot change password. : Provided token does not exist.$': {
1130
+ gettext: gettext$1('Cannot change password: provided token is invalid.')
1179
1131
  },
1180
1132
  '^Cannot reset user password : Cannot find user with such email.$': {
1181
1133
  gettext: gettext$1('Cannot reset password for user with such email: email not found.')
1182
1134
  },
1183
- '^Cannot update/delete application binary via this endpoint$': {
1184
- gettext: gettext$1('Cannot update/delete application binary via this endpoint')
1135
+ '^Error during password validation. : Password must have at least (\\d+?) characters and no more than (\\d+?) and must contain only Latin1 characters.$': {
1136
+ gettext: gettext$1('Password is invalid. It must have at least {{minCharactersCount}} and no more than {{maxCharactersCount}} characters.'),
1137
+ placeholders: {
1138
+ minCharactersCount: '$1',
1139
+ maxCharactersCount: '$2'
1140
+ }
1185
1141
  },
1186
- "^Can't delete user because it is used by another managed object$": {
1187
- gettext: gettext$1('Cannot delete device with associated device owner because this owner is still assigned to other device(s). Try to remove only the device.')
1142
+ '^Error during password validation. : Your password has been used already. Choose another.$': {
1143
+ gettext: gettext$1('This password has already been used earlier. Use a different one.')
1188
1144
  },
1189
- '^Cep module created$': {
1190
- gettext: gettext$1('CEP module created')
1145
+ '^Invalid credentials! : Bad credentials$': {
1146
+ gettext: gettext$1('Invalid credentials.')
1191
1147
  },
1192
- '^Cep module updated$': {
1193
- gettext: gettext$1('CEP module updated')
1148
+ '^Invalid credentials! : No phone number provided$': {
1149
+ gettext: gettext$1('Log into the management tenant first and enter your phone number.')
1194
1150
  },
1195
- '^Cep module deleted$': {
1196
- gettext: gettext$1('CEP module deleted')
1151
+ '^Password change is temporary blocked.$': {
1152
+ gettext: gettext$1('Password change is temporarily blocked.')
1197
1153
  },
1198
- '^Cep module "(.+?)" created$': {
1199
- gettext: gettext$1('CEP module "{{name}}" created'),
1154
+ '^(.+?) user login with OAuth internal mode failed$': {
1155
+ gettext: gettext$1('"{{name}}" user login with OAI-Secure mode failed'),
1200
1156
  placeholders: {
1201
1157
  name: '$1'
1202
1158
  }
1203
1159
  },
1204
- '^Cep module "(.+?)" updated$': {
1205
- gettext: gettext$1('CEP module "{{name}}" updated'),
1160
+ '^Error updating tenant! Cannot insert second configuration for Password code grant internal/Bad Request$': {
1161
+ gettext: gettext$1('This login mode was already set by another administrator. Refresh the page to update the data.')
1162
+ },
1163
+ '^(.+?) user logged in to the platform with OAuth internal login mode$': {
1164
+ gettext: gettext$1('"{{name}}" user logged in to the platform with OAI-Secure login mode'),
1206
1165
  placeholders: {
1207
1166
  name: '$1'
1208
1167
  }
1209
1168
  },
1210
- '^Cep module "(.+?)" deleted$': {
1211
- gettext: gettext$1('CEP module "{{name}}" deleted'),
1169
+ '^Authentication with id: (.+?) configuration updated.$': {
1170
+ gettext: gettext$1('Authentication configuration with ID "{{id}}" updated.'),
1212
1171
  placeholders: {
1213
- name: '$1'
1172
+ id: '$1'
1214
1173
  }
1215
1174
  },
1216
- '^Command state is invalid: (.+)$': {
1217
- gettext: gettext$1('Command state is invalid: {{violations}}'),
1175
+ '^Authentication configuration with id: (.+?) added.$': {
1176
+ gettext: gettext$1('Authentication configuration with ID "{{id}}" added.'),
1218
1177
  placeholders: {
1219
- violations: {
1220
- capture: '$1',
1221
- translate: {
1222
- '(\\w+?) - may not be null': {
1223
- gettext: gettext$1('"{{field}}" must not be null'),
1224
- placeholders: {
1225
- field: '$1'
1226
- }
1227
- }
1228
- }
1229
- }
1178
+ id: '$1'
1230
1179
  }
1231
1180
  },
1232
- '^Could not connect to endpoint (.+)\\. Could not verify `(.+)` host key with fingerprint `(.+)` for `(.+)` on port (.+)\\. If you expected that key, please remove the previous one from configuration to allow for connection\\.$': {
1233
- gettext: gettext$1('Could not connect to endpoint "{{endpointName}}". Could not verify {{keyType}} host key with fingerprint {{fingerprint}} for host {{host}} on port {{port}}. If you expected this key, please remove the previous one from configuration to allow for connection.'),
1234
- placeholders: {
1235
- endpointName: '$1',
1236
- keyType: '$2',
1237
- fingerprint: '$3',
1238
- host: '$4',
1239
- port: '$5'
1240
- }
1181
+ '^Configuration type: oauth2_internal.$': {
1182
+ gettext: gettext$1('Configuration type: OAI-Secure.')
1241
1183
  },
1242
- '^Could not login to ssh server on endpoint "(.+)"\\. Provided credential for user "(.+)" is incorrect\\.$': {
1243
- gettext: gettext$1('Could not access SSH server on endpoint "{{endpointName}}". Provided credentials for user "{{userName}}" are incorrect.'),
1184
+ '^Configuration type: oauth2.$': {
1185
+ gettext: gettext$1('Configuration type: Single sign-on.')
1186
+ },
1187
+ '^User "(.+?)" password was updated by user "(.+?)"$': {
1188
+ gettext: gettext$1('"{{ targetUserName }}" user\'s password was updated by "{{ userName }}" user'),
1244
1189
  placeholders: {
1245
- endpointName: '$1',
1190
+ targetUserName: '$1',
1246
1191
  userName: '$2'
1247
1192
  }
1248
1193
  },
1249
- '^Could not save object remoteAccessUpdate: (.+)$': {
1250
- gettext: '{{errorMessages}}',
1194
+ '^User password update$': {
1195
+ gettext: gettext$1('User password update')
1196
+ },
1197
+ '^User "(.+?)" password updated$': {
1198
+ gettext: gettext$1('"{{ userName }}" user changed own password'),
1251
1199
  placeholders: {
1252
- errorMessages: {
1253
- capture: '$1',
1254
- translate: {
1255
- 'Could not recognize host-key format': {
1256
- gettext: gettext$1('Could not recognize "Host key" format')
1257
- },
1258
- 'Could not recognize key-pair format': {
1259
- gettext: gettext$1('Could not recognize the format of "Public key" or "Private key"')
1260
- }
1200
+ userName: '$1'
1201
+ }
1202
+ },
1203
+ '^Configuration type: basic.$': {
1204
+ gettext: gettext$1('Configuration type: Basic Auth.')
1205
+ }
1206
+ };
1207
+
1208
+ /* tslint:disable:max-line-length */
1209
+ const bulkOperationAuditLogTextPlaceholders = {
1210
+ updatesList: {
1211
+ capture: '$1',
1212
+ translate: {
1213
+ "status='(.+?)'": {
1214
+ gettext: gettext$1('status: "{{ status | translate }}"'),
1215
+ placeholders: {
1216
+ status: '$1'
1217
+ }
1218
+ },
1219
+ "generalStatus='(.+?)'": {
1220
+ gettext: gettext$1('general status: "{{ generalStatus | translate }}"'),
1221
+ placeholders: {
1222
+ generalStatus: '$1'
1223
+ }
1224
+ },
1225
+ "progress='(.+?)'": {
1226
+ gettext: gettext$1('progress: "{{ progress }}"'),
1227
+ placeholders: {
1228
+ progress: '$1'
1229
+ }
1230
+ },
1231
+ 'note=(.+?)': {
1232
+ gettext: gettext$1('note: "{{ note }}"'),
1233
+ placeholders: {
1234
+ note: '$1'
1261
1235
  }
1262
1236
  }
1263
1237
  }
1238
+ }
1239
+ };
1240
+ const PATTERN_MESSAGES_BULKOPERATIONS = {
1241
+ "^Cannot execute bulk operation on empty group. Group with id='(\\d+?)' doesn't have child assets.$": {
1242
+ gettext: gettext$1('Could not execute bulk operation on an empty group. Group with ID "{{groupId}}" has no child assets.'),
1243
+ placeholders: {
1244
+ groupId: '$1'
1245
+ }
1264
1246
  },
1265
- '^Could not update user. : Error persisting user (.+?)!$': {
1266
- gettext: gettext$1('Could not update user "{{username}}".'),
1247
+ "^Cannot execute bulk operation on empty group. DynamicGroup with id='(\\d+?)' doesn't have child assets$": {
1248
+ gettext: gettext$1('Could not execute bulk operation on an empty group. Smart group with ID "{{groupId}}" has no child assets.'),
1267
1249
  placeholders: {
1268
- username: '$1'
1250
+ groupId: '$1'
1269
1251
  }
1270
1252
  },
1253
+ '^Cannot reschedule bulk operation. All its operations are successful$': {
1254
+ gettext: gettext$1('Cannot reschedule bulk operation. All its operations are already successful.')
1255
+ },
1271
1256
  '^Create bulk operation$': {
1272
1257
  gettext: gettext$1('Create bulk operation')
1273
1258
  },
@@ -1275,39 +1260,6 @@ const MESSAGES_CORE_I18N = {
1275
1260
  gettext: gettext$1('Create bulk operation: {{updatesList}}'),
1276
1261
  placeholders: bulkOperationAuditLogTextPlaceholders
1277
1262
  },
1278
- '^Creation ramp must be greater than (\\d+?)$': {
1279
- gettext: gettext$1('Bulk operation delay must be greater than {{minSeconds}} seconds.'),
1280
- placeholders: {
1281
- minSeconds: '$1'
1282
- }
1283
- },
1284
- '^Created container$': {
1285
- gettext: gettext$1('Container created.')
1286
- },
1287
- '^Created pod: (.+)$': {
1288
- gettext: gettext$1('Pod "{{imageName}}" created.'),
1289
- placeholders: {
1290
- imageName: '$1'
1291
- }
1292
- },
1293
- '^Creating device on LoRa platform failed$': {
1294
- gettext: gettext$1('Could not create the device in the LoRa platform.')
1295
- },
1296
- '^CSV file contained empty dataset$': {
1297
- gettext: gettext$1('No entries found in uploaded CSV file.')
1298
- },
1299
- '^Cycle detected for route (.+?)!$': {
1300
- gettext: gettext$1('Cycle detected for route {{route}}.'),
1301
- placeholders: {
1302
- route: '$1'
1303
- }
1304
- },
1305
- '^Data broker processing is currently overloaded and may stop forwarding your data\\. Please contact support\\.$': {
1306
- gettext: gettext$1('Data broker processing is currently overloaded and may stop forwarding your data. Please contact support.')
1307
- },
1308
- '^Data broker processing is not able to connect do destination tenant, thus data forwarding is not working\\. Please contact support\\.$': {
1309
- gettext: gettext$1('Data broker processing is not able to connect to destination tenant, thus data forwarding is not working. Please contact support.')
1310
- },
1311
1263
  '^Delete bulk operation$': {
1312
1264
  gettext: gettext$1('Delete bulk operation')
1313
1265
  },
@@ -1315,70 +1267,93 @@ const MESSAGES_CORE_I18N = {
1315
1267
  gettext: gettext$1('Delete bulk operation: {{updatesList}}'),
1316
1268
  placeholders: bulkOperationAuditLogTextPlaceholders
1317
1269
  },
1318
- "^Device id '(.+?)' contains '(.+?)' character which is not permitted.$": {
1319
- gettext: gettext$1('ID "{{deviceId}}" contains invalid character: "{{invalidCharacter}}".'),
1270
+ '^Update bulk operation$': {
1271
+ gettext: gettext$1('Update bulk operation')
1272
+ },
1273
+ '^Update bulk operation: (.+)$': {
1274
+ gettext: gettext$1('Update bulk operation: {{updatesList}}'),
1275
+ placeholders: bulkOperationAuditLogTextPlaceholders
1276
+ }
1277
+ };
1278
+
1279
+ /* tslint:disable:max-line-length */
1280
+ const PATTERN_MESSAGES_CEP = {
1281
+ '^Cep module created$': {
1282
+ gettext: gettext$1('CEP module created')
1283
+ },
1284
+ '^Cep module updated$': {
1285
+ gettext: gettext$1('CEP module updated')
1286
+ },
1287
+ '^Cep module deleted$': {
1288
+ gettext: gettext$1('CEP module deleted')
1289
+ },
1290
+ '^Cep module "(.+?)" created$': {
1291
+ gettext: gettext$1('CEP module "{{name}}" created'),
1320
1292
  placeholders: {
1321
- deviceId: '$1',
1322
- invalidCharacter: '$2'
1293
+ name: '$1'
1323
1294
  }
1324
1295
  },
1325
- "^Device name: '(.+?)', alarm text: '(.+?)'$": {
1326
- gettext: gettext$1('Device name: "{{deviceName}}", alarm text: "{{alarmText | translate}}"'),
1296
+ '^Cep module "(.+?)" updated$': {
1297
+ gettext: gettext$1('CEP module "{{name}}" updated'),
1327
1298
  placeholders: {
1328
- deviceName: '$1',
1329
- alarmText: '$2'
1299
+ name: '$1'
1330
1300
  }
1331
1301
  },
1332
- '^Device (.+?) already registered to a tenant.$': {
1333
- gettext: gettext$1('Device {{ devEUI }} is already registered in your tenant or in another tenant in the platform.'),
1302
+ '^Cep module "(.+?)" deleted$': {
1303
+ gettext: gettext$1('CEP module "{{name}}" deleted'),
1334
1304
  placeholders: {
1335
- devEUI: '$1'
1305
+ name: '$1'
1336
1306
  }
1337
1307
  },
1338
- '^Device with external ID(s) (.+?) was replaced by device with external ID(s) (.+?)$': {
1339
- gettext: gettext$1('Device with external ID(s) {{ oldExtIds }} was replaced by device with external ID(s) {{ newExtIds }}.'),
1308
+ // CEP module deployment errors
1309
+ '^Cannot deploy module (.*)$': {
1310
+ gettext: gettext$1('Cannot deploy module due to error: "{{ errorMessage | translate }}".'),
1340
1311
  placeholders: {
1341
- oldExtIds: '$1',
1342
- newExtIds: '$2'
1312
+ errorMessage: '$1'
1343
1313
  }
1344
1314
  },
1345
- '^Display name$': {
1346
- gettext: gettext$1('Login alias')
1347
- },
1348
- '^Domain name in uploaded certificate differs from the one in use$': {
1349
- gettext: gettext$1('Domain name in uploaded certificate differs from the one in use. Please deactivate the custom domain before uploading new certificate.')
1350
- },
1351
- '^Domain name is already in use by another tenant!$': {
1352
- gettext: gettext$1('Domain name is already used by another tenant.')
1353
- },
1354
- '^Duplicated connector for instanceUrl (.+?)!$': {
1355
- gettext: gettext$1('Target URL {{targetUrl}} already used by another connector.'),
1315
+ "^Cannot deploy module (.+?)! : Compilation failed in module '(.+?)' in expression '(.+?)' : Incorrect syntax near '(.+?)' at line (\\d+) column (\\d+) \\[([\\S\\s]+?)\\]$": {
1316
+ gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": incorrect syntax near "{{incorrectExpression}}" at line {{line}} column {{column}}.'),
1356
1317
  placeholders: {
1357
- targetUrl: '$1'
1318
+ moduleName: '$1',
1319
+ expression: '$3',
1320
+ incorrectExpression: '$4',
1321
+ line: '$5',
1322
+ column: '$6'
1358
1323
  }
1359
1324
  },
1360
- '^Duplicated connector for name (.+?)!$': {
1361
- gettext: gettext$1('Connector name "{{name}}" already used by another connector.'),
1325
+ "^Cannot deploy module (.+?)! : Compilation failed in module '(.+?)' in expression '(.+?)' : Incorrect syntax near '(.+?)' at line (\\d+) column (\\d+) near reserved keyword '(.+?)' \\[([\\S\\s]+?)\\]$": {
1326
+ gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": incorrect syntax near "{{incorrectExpression}}" at line {{line}} column {{column}} near reserved keyword "{{keyword}}".'),
1362
1327
  placeholders: {
1363
- name: '$1'
1328
+ moduleName: '$1',
1329
+ expression: '$3',
1330
+ incorrectExpression: '$4',
1331
+ line: '$5',
1332
+ column: '$6',
1333
+ keyword: '$7'
1364
1334
  }
1365
1335
  },
1366
- '^Entry is outside of the target dir: (.+)$': {
1367
- gettext: gettext$1('File entry outside of the target directory: "{{path}}".'),
1336
+ "^Cannot deploy module (.+?)! : Compilation failed in module '(.+?)' in expression '(.+?)' : Incorrect syntax near '(.+?)' at line (\\d+) column (\\d+), please check the where clause \\[([\\S\\s]+?)\\]$": {
1337
+ gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": incorrect syntax near "{{incorrectExpression}}" at line {{line}} column {{column}}, check "where" clause.'),
1368
1338
  placeholders: {
1369
- path: '$1'
1339
+ moduleName: '$1',
1340
+ expression: '$3',
1341
+ incorrectExpression: '$4',
1342
+ line: '$5',
1343
+ column: '$6'
1370
1344
  }
1371
1345
  },
1372
- '^Error during password validation. : Password must have at least (\\d+?) characters and no more than (\\d+?) and must contain only Latin1 characters.$': {
1373
- gettext: gettext$1('Password is invalid. It must have at least {{minCharactersCount}} and no more than {{maxCharactersCount}} characters.'),
1346
+ "^Cannot deploy module (.+?)! : Deployment failed in module '(.+?)' in expression '(.+?)' : Exception compiling script '(.+?)' of dialect '(.+?)': missing (.+?) before statement \\((.+?)\\) \\[([\\S\\s]+?)\\]$": {
1347
+ gettext: gettext$1('Could not deploy module "{{moduleName}}". Compilation failed in expression "{{expression}}": exception compiling script "{{scriptName}}" of dialect "{{scriptDialect}}": missing "{{missingSyntax}}" before statement "{{affectedStatement}}".'),
1374
1348
  placeholders: {
1375
- minCharactersCount: '$1',
1376
- maxCharactersCount: '$2'
1349
+ moduleName: '$1',
1350
+ expression: '$3',
1351
+ scriptName: '$4',
1352
+ scriptDialect: '$5',
1353
+ missingSyntax: '$6',
1354
+ affectedStatement: '$7'
1377
1355
  }
1378
1356
  },
1379
- '^Error during password validation. : Your password has been used already. Choose another.$': {
1380
- gettext: gettext$1('This password has already been used earlier. Use a different one.')
1381
- },
1382
1357
  "^Error in statement (.+?):(.+?)! : Incorrect syntax near '(.+?)' near reserved keyword '(.+?)' \\[([\\S\\s]+?)\\]$": {
1383
1358
  gettext: gettext$1('Error in statement {{moduleName}}:{{statementNumber}}. Incorrect syntax near expression "{{expression}}" near reserved keyword "{{keyword}}".'),
1384
1359
  placeholders: {
@@ -1388,314 +1363,267 @@ const MESSAGES_CORE_I18N = {
1388
1363
  keyword: '$4'
1389
1364
  }
1390
1365
  },
1391
- '^External id not found; external id = ID \\[type=(.+?), value=(.+?)\\]$': {
1392
- gettext: gettext$1('External ID not found for type "{{type}}" and value "{{value}}".'),
1366
+ '^Exception on tenant (.+) in statement \'(.+)\': Http status code: (\\d+) \\{error="alarm/Unprocessable Entity",message="(.+)",info="https://www.cumulocity.com/guides/reference-guide/#error_reporting",details="null"\\}$': {
1367
+ gettext: gettext$1('Exception on tenant {{tenantId}} in statement "{{statement}}": HTTP status code: {{httpStatusCode}} : {{message | translate}}'),
1393
1368
  placeholders: {
1394
- type: '$1',
1395
- value: '$2'
1369
+ tenantId: '$1',
1370
+ statement: '$2',
1371
+ httpStatusCode: '$3',
1372
+ message: '$4'
1396
1373
  }
1397
1374
  },
1398
- '^Error occurred when trying to find an Application for id ID (.+) : Could not find application by ID (\\d+)$': {
1399
- gettext: gettext$1('Could not find application by ID {{applicationId}}.'),
1375
+ "^Exception on tenant (.+) in statement '(.+)': Invocation exception when invoking method '(.+)' of class '(.+)' passing parameters \\[(.+)\\] for statement '(.+)': (.+) : (.+)$": {
1376
+ gettext: gettext$1('Exception on tenant {{tenantId}} in statement "{{moduleName}}": Invocation exception when invoking method "{{methodName}}" of class "{{classPath}}" passing parameters [{{parameters}}] for statement "{{statement}}": {{exceptionType}} : {{exceptionMessage}}.'),
1400
1377
  placeholders: {
1401
- applicationId: '$2'
1378
+ tenantId: '$1',
1379
+ moduleName: '$2',
1380
+ methodName: '$3',
1381
+ classPath: '$4',
1382
+ parameters: '$5',
1383
+ statement: '$6',
1384
+ exceptionType: '$7',
1385
+ exceptionMessage: '$8'
1402
1386
  }
1403
1387
  },
1404
- '^Http status code: 404\n{error="options/Not Found",message="Unable to find option by given key: sigfox-agent/provider.token",info="https://www.cumulocity.com/guides/reference-guide/#error_reporting",details="null"}$': {
1405
- gettext: gettext$1('Unable to find option by given key: sigfox-agent/provider.token')
1388
+ // Smart rules (part of CEP functionality)
1389
+ '^Smart rule created$': {
1390
+ gettext: gettext$1('Smart rule created.')
1406
1391
  },
1407
- '^Failed to delete application. : Cannot remove application assigned to other tenants.$': {
1408
- gettext: gettext$1('Could not delete application assigned to other tenants.')
1392
+ '^Smart rule updated$': {
1393
+ gettext: gettext$1('Smart rule updated.')
1409
1394
  },
1410
- '^Failed to extract certificate from PKCS12$': {
1411
- gettext: gettext$1('Failed to extract certificate from PKCS12.')
1395
+ '^Smart rule enabled$': {
1396
+ gettext: gettext$1('Smart rule activated.')
1412
1397
  },
1413
- '^Failed to update domain at the platform$': {
1414
- gettext: gettext$1('Failed to update domain at the platform.')
1398
+ '^Smart rule disabled$': {
1399
+ gettext: gettext$1('Smart rule deactivated.')
1415
1400
  },
1416
- "^Finding device data from database failed : No managedObject for id '(.+?)'!$": {
1417
- gettext: gettext$1('Could not find managed object with ID "{{deviceId}}".'),
1401
+ '^Smart rule deleted$': {
1402
+ gettext: gettext$1('Smart rule deleted.')
1403
+ },
1404
+ '^Smart rule "(.+?)" created$': {
1405
+ gettext: gettext$1('Smart rule "{{name}}" created.'),
1418
1406
  placeholders: {
1419
- deviceId: '$1'
1407
+ name: '$1'
1420
1408
  }
1421
1409
  },
1422
- '^Following mandatory fields should be included: (.+?)$': {
1423
- gettext: gettext$1('Following mandatory fields should be included: {{fields}}'),
1410
+ '^Smart rule "(.+?)" updated$': {
1411
+ gettext: gettext$1('Smart rule "{{name}}" updated.'),
1424
1412
  placeholders: {
1425
- fields: '$1'
1413
+ name: '$1'
1426
1414
  }
1427
1415
  },
1428
- '^Global Role updated$': {
1429
- gettext: gettext$1('Global role updated')
1430
- },
1431
- '^Global Role (.+?) updated$': {
1432
- gettext: gettext$1('Global role "{{name}}" updated'),
1416
+ '^Smart rule "(.+?)" enabled$': {
1417
+ gettext: gettext$1('Smart rule "{{name}}" activated.'),
1433
1418
  placeholders: {
1434
1419
  name: '$1'
1435
1420
  }
1436
1421
  },
1437
- '^Global Role (.+?) updated: (.+)$': {
1438
- gettext: gettext$1('Global role "{{name}}" updated: {{updatesList}}'),
1422
+ '^Smart rule "(.+?)" disabled$': {
1423
+ gettext: gettext$1('Smart rule "{{name}}" deactivated.'),
1439
1424
  placeholders: {
1440
- name: '$1',
1441
- updatesList: {
1442
- capture: '$2',
1443
- translate: {
1444
- 'applications \\[([^\\]]+?)\\] added': {
1445
- gettext: gettext$1('applications {{list}} added'),
1446
- placeholders: {
1447
- list: '$1'
1448
- }
1449
- },
1450
- 'applications \\[([^\\]]+?)\\] removed': {
1451
- gettext: gettext$1('applications {{list}} removed'),
1452
- placeholders: {
1453
- list: '$1'
1454
- }
1455
- },
1456
- 'roles \\[([^\\]]+?)\\] added': {
1457
- gettext: gettext$1('roles {{list}} added'),
1458
- placeholders: {
1459
- list: '$1'
1460
- }
1461
- },
1462
- 'roles \\[([^\\]]+?)\\] removed': {
1463
- gettext: gettext$1('roles {{list}} removed'),
1464
- placeholders: {
1465
- list: '$1'
1466
- }
1467
- }
1468
- }
1469
- }
1425
+ name: '$1'
1470
1426
  }
1471
1427
  },
1472
- '^Global Roles$': {
1473
- gettext: gettext$1('Global roles')
1428
+ '^Smart rule "(.+?)" deleted$': {
1429
+ gettext: gettext$1('Smart rule "{{name}}" deleted.'),
1430
+ placeholders: {
1431
+ name: '$1'
1432
+ }
1474
1433
  },
1475
- '^Operation updated: (.+)$': {
1476
- gettext: gettext$1('Operation updated: {{updatesList}}'),
1434
+ '^(.+) succeeded for volume "(.+)"$': {
1435
+ gettext: gettext$1('Operation "{{operation}}" succeeded for volume "{{volume}}".'),
1477
1436
  placeholders: {
1478
- updatesList: {
1479
- capture: '$1',
1480
- translate: {
1481
- "status='(.+?)'": {
1482
- gettext: gettext$1('status: "{{ status | translate }}"'),
1483
- placeholders: {
1484
- status: '$1'
1485
- }
1486
- },
1487
- "description='(.+?)'": {
1488
- gettext: gettext$1('description: "{{ description | translate }}"'),
1489
- placeholders: {
1490
- description: '$1'
1491
- }
1492
- },
1493
- "device name='(.+?)'": {
1494
- gettext: gettext$1('device name: "{{ deviceName }}"'),
1495
- placeholders: {
1496
- deviceName: '$1'
1497
- }
1498
- },
1499
- "failure reason='(.+?)'": {
1500
- gettext: gettext$1('failure reason: "{{ failureReason | translate }}"'),
1501
- placeholders: {
1502
- failureReason: '$1'
1503
- }
1504
- }
1505
- }
1506
- }
1437
+ operation: '$1',
1438
+ volume: '$2'
1507
1439
  }
1440
+ }
1441
+ };
1442
+
1443
+ /* tslint:disable:max-line-length */
1444
+ const PATTERN_MESSAGES_CERTIFICATES = {
1445
+ '^Can not activate a certificate which is either expired or not yet valid$': {
1446
+ gettext: gettext$1('Cannot activate a certificate which is either expired or not yet valid.')
1508
1447
  },
1509
- '^ID \\[type=(.+?), value=(.+?)\\] was already bound to different Global ID.$': {
1510
- gettext: gettext$1('External ID "{{value}}" of the type "{{type}}" already exists.'),
1448
+ '^Cannot add certificate - certificate with (.+?) fingerprint already exists. : Certificate with (.+?) fingerprint already exists.$': {
1449
+ gettext: gettext$1('Could not add certificate. Certificate with {{fingerprint}} fingerprint already exists.'),
1511
1450
  placeholders: {
1512
- type: '$1',
1513
- value: '$2'
1451
+ fingerprint: '$1'
1514
1452
  }
1515
1453
  },
1516
- '^Invalid credentials! : Bad credentials$': {
1517
- gettext: gettext$1('Invalid credentials.')
1454
+ '^Cannot parse X509 certificate. : Could not parse certificate: (.+?)$': {
1455
+ gettext: gettext$1('Could not parse X.509 certificate: {{ failureReason | translate }}.'),
1456
+ placeholders: {
1457
+ failureReason: '$1'
1458
+ }
1518
1459
  },
1519
- '^Invalid credentials! : No phone number provided$': {
1520
- gettext: gettext$1('Log into the management tenant first and enter your phone number.')
1460
+ '^Domain name in uploaded certificate differs from the one in use$': {
1461
+ gettext: gettext$1('Domain name in uploaded certificate differs from the one in use. Please deactivate the custom domain before uploading new certificate.')
1521
1462
  },
1522
- '^Inventory Role removed$': {
1523
- gettext: gettext$1('Inventory role removed')
1463
+ '^Failed to extract certificate from PKCS12$': {
1464
+ gettext: gettext$1('Failed to extract certificate from PKCS12.')
1524
1465
  },
1525
- '^Inventory Role (.+?) removed$': {
1526
- gettext: gettext$1('Inventory role "{{name}}" deleted.'),
1466
+ "^Trusted certificate updated on '(.+?)'\\.$": {
1467
+ gettext: gettext$1('Trusted certificate updated on tenant "{{ tenantId }}"'),
1527
1468
  placeholders: {
1528
- name: '$1'
1469
+ tenantId: '$1'
1529
1470
  }
1530
1471
  },
1531
- '^Inventory Role updated$': {
1532
- gettext: gettext$1('Inventory role updated')
1533
- },
1534
- '^Inventory Role (.+?) updated$': {
1535
- gettext: gettext$1('Inventory role "{{name}}" updated.'),
1472
+ "^Trusted certificate deleted from '(.+?)'\\.$": {
1473
+ gettext: gettext$1('Trusted certificate deleted from tenant "{{ tenantId }}"'),
1536
1474
  placeholders: {
1537
- name: '$1'
1475
+ tenantId: '$1'
1538
1476
  }
1539
1477
  },
1540
- '^I/O error: Connection refused; nested exception is Connection refused : Connection refused$': {
1541
- gettext: gettext$1('Connection refused')
1542
- },
1543
- '^I/O error: Read timed out; nested exception is Read timed out : Read timed out$': {
1544
- gettext: gettext$1('Read timed out')
1545
- },
1546
- '^Log file requested$': {
1547
- gettext: gettext$1('Log file requested.')
1478
+ "^Certificate fingerprint: '(.+?)'\\.\\n\\s*Certificate subject name: '(.+?)'\\.\\n$": {
1479
+ gettext: gettext$1('Certificate fingerprint: "{{ fingerprint }}".\nCertificate subject name: "{{ subjectName }}".'),
1480
+ placeholders: {
1481
+ fingerprint: '$1',
1482
+ subjectName: '$2'
1483
+ }
1548
1484
  },
1549
- '^Managed object deleted$': {
1550
- gettext: gettext$1('Managed object deleted')
1485
+ "^Certificate fingerprint: '(.+?)'\\.\\n\\s*Certificate subject name: '(.+?)'\\.\\n\\s*NotAfter='(.+?)'.*$": {
1486
+ gettext: gettext$1('Certificate fingerprint: "{{ fingerprint }}".\nCertificate subject name: "{{ subjectName }}".\nExpiration date: {{ expirationDate | absoluteDate }}.'),
1487
+ placeholders: {
1488
+ fingerprint: '$1',
1489
+ subjectName: '$2',
1490
+ expirationDate: '$3'
1491
+ }
1551
1492
  },
1552
- '^Managed object "(.+?)" deleted$': {
1553
- gettext: gettext$1('Managed object "{{name}}" deleted'),
1493
+ "^Certificate fingerprint: '(.+?)'\\.\\n\\s*Certificate subject name: '(.+?)'\\.\\n\\s*Status='(.+?)'.*$": {
1494
+ gettext: gettext$1('Certificate fingerprint: "{{ fingerprint }}".\nCertificate subject name: "{{ subjectName }}".\nStatus: "{{ status }}".'),
1554
1495
  placeholders: {
1555
- name: '$1'
1496
+ fingerprint: '$1',
1497
+ subjectName: '$2',
1498
+ status: '$3'
1556
1499
  }
1557
1500
  },
1558
- '^Maximum file size exceeded$': {
1559
- gettext: gettext$1('Maximum file size exceeded.')
1501
+ '^The CA certificate has not been refreshed\\.\\s+It may either still have sufficient remaining validity.*$': {
1502
+ gettext: gettext$1('The CA certificate has not been renewed; however, it may still have sufficient validity remaining.')
1560
1503
  },
1561
- "^Message with ID (.+?) doesn't exist in smart rest template (.+?)$": {
1562
- gettext: gettext$1('Message with ID "{{messageId}}" doesn\'t exist in SmartREST template with ID "{{templateId}}"'),
1504
+ "^Provisioned certificate stored in user object: '(.+?)'.*$": {
1505
+ gettext: gettext$1('Provisioned certificate stored in user object: "{{ userName }}"'),
1563
1506
  placeholders: {
1564
- messageId: '$1',
1565
- templateId: '$2'
1507
+ userName: '$1'
1566
1508
  }
1567
1509
  },
1568
- "^name of Application cannot start with '(.+)' prefix.$": {
1569
- gettext: gettext$1('Application name must not start with "{{ prefix }}".'),
1510
+ "^Certificate serial number: '(.+?)'\\.\\n\\s*NotAfter='(.+?)'.*$": {
1511
+ gettext: gettext$1('Certificate serial number: "{{ serialNumber }}".\nExpiration date: {{ expirationDate | absoluteDate }}.'),
1570
1512
  placeholders: {
1571
- prefix: '$1'
1513
+ serialNumber: '$1',
1514
+ expirationDate: '$2'
1572
1515
  }
1573
1516
  },
1574
- '^NewDeviceRequest for id = (.+?) already exists.$': {
1575
- gettext: gettext$1('Device registration request with ID {{id}} already exists.'),
1517
+ "^Provisioned certificates removed from user: '(.+?)'.*$": {
1518
+ gettext: gettext$1('Provisioned certificates removed from user object: "{{ userName }}"'),
1576
1519
  placeholders: {
1577
- id: '$1'
1520
+ userName: '$1'
1578
1521
  }
1579
1522
  },
1580
- '^NewDeviceRequest for device id (.+?) is in state BLOCKED, not PENDING_ACCEPTANCE.$': {
1581
- gettext: gettext$1('Device registration request with ID "{{deviceId}}" is in state "Blocked", not "Pending acceptance". Remove this registration request and start over.'),
1523
+ "^Certificate serial number hex: '(.+?)'.*$": {
1524
+ gettext: gettext$1('Certificate serial number: "{{ serialNumber }}"'),
1582
1525
  placeholders: {
1583
- deviceId: '$1'
1526
+ serialNumber: '$1'
1584
1527
  }
1585
1528
  },
1586
- '^No communication with device since (.+?)$': {
1587
- gettext: gettext$1('No communication with device since {{timestamp | absoluteDate}}.'),
1529
+ "^Tenant certificate authority\\(CA\\) created on '(.+?)'.*$": {
1530
+ gettext: gettext$1('Tenant certificate authority (CA) created for tenant "{{ tenantId }}"'),
1588
1531
  placeholders: {
1589
- timestamp: '$1'
1532
+ tenantId: '$1'
1590
1533
  }
1591
1534
  },
1592
- '^No data received from device within required interval.$': {
1593
- gettext: gettext$1('No data received from device within required interval.')
1594
- },
1595
- '^No LoRa provider settings are found. Please configure the connectivity settings.$': {
1596
- gettext: gettext$1('No LoRa provider settings are found. Please configure the connectivity settings.')
1597
- },
1598
- '^Not within any context!$': {
1599
- gettext: gettext$1('A problem occurred with microservice subscription.')
1535
+ "^Tenant certificate authority\\(CA\\) was renewed for Tenant: '(.+?)'.*$": {
1536
+ gettext: gettext$1('Tenant certificate authority (CA) was renewed for tenant "{{ tenantId }}"'),
1537
+ placeholders: {
1538
+ tenantId: '$1'
1539
+ }
1600
1540
  },
1601
- '^Maximum age cannot be bigger than 10 years.$': {
1602
- gettext: gettext$1('Maximum age cannot be bigger than 10 years.')
1541
+ "^Tenant certificate authority\\(CA\\) renewal for Tenant: '(.+?)' failed.*$": {
1542
+ gettext: gettext$1('Tenant certificate authority (CA) renewal for tenant "{{ tenantId }}" failed'),
1543
+ placeholders: {
1544
+ tenantId: '$1'
1545
+ }
1603
1546
  },
1604
- '^Microservice application name incorrect. Please use only lower-case letters, digits and dashes. Maximum length is (\\d+) characters.$': {
1605
- gettext: gettext$1('Microservice application name is incorrect: only lower case letters, digits and dashes allowed. Maximum length: {{maxLength}}.'),
1547
+ '^Tenant certificate authority\\(CA\\) signed certificate for device: (.+?)\\.$': {
1548
+ gettext: gettext$1('Tenant certificate authority (CA) signed certificate for device: "{{ deviceId }}".'),
1606
1549
  placeholders: {
1607
- maxLength: '$1'
1550
+ deviceId: '$1'
1608
1551
  }
1609
1552
  },
1610
- '^Microservice not available.*$': {
1611
- gettext: gettext$1('Microservice is not available.')
1612
- },
1613
- '^Operation created$': {
1614
- gettext: gettext$1('Operation created.')
1615
- },
1616
- '^Operation updated$': {
1617
- gettext: gettext$1('Operation updated.')
1618
- },
1619
- "^Operation created: status='(.+?)'.$": {
1620
- gettext: gettext$1('Operation created: status: "{{ status | translate }}".'),
1553
+ '^Revoked serials: (.+?)$': {
1554
+ gettext: gettext$1('Revoked serials: {{ revokedSerials }}'),
1621
1555
  placeholders: {
1622
- status: '$1'
1556
+ revokedSerials: '$1'
1623
1557
  }
1624
- },
1625
- '^Option created$': {
1626
- gettext: gettext$1('Option created.')
1627
- },
1628
- '^Option "(.+?)" created$': {
1629
- gettext: gettext$1('Option "{{option}}" created.'),
1558
+ }
1559
+ };
1560
+
1561
+ /* tslint:disable:max-line-length */
1562
+ const PATTERN_MESSAGES_DEVICES = {
1563
+ '^Assign device profile (.+?) to device (.+?)$': {
1564
+ gettext: gettext$1('Assign device profile {{profileName}} to device {{deviceName}}'),
1630
1565
  placeholders: {
1631
- option: '$1'
1566
+ profileName: '$1',
1567
+ deviceName: '$2'
1632
1568
  }
1633
1569
  },
1634
- '^Option deleted$': {
1635
- gettext: gettext$1('Option deleted.')
1636
- },
1637
- '^Option "(.+?)" deleted$': {
1638
- gettext: gettext$1('Option "{{option}}" deleted.'),
1570
+ "^Device id '(.+?)' contains '(.+?)' character which is not permitted.$": {
1571
+ gettext: gettext$1('ID "{{deviceId}}" contains invalid character: "{{invalidCharacter}}".'),
1639
1572
  placeholders: {
1640
- option: '$1'
1573
+ deviceId: '$1',
1574
+ invalidCharacter: '$2'
1641
1575
  }
1642
1576
  },
1643
- '^Owner field error. : Cannot introduce cyclic dependency.$': {
1644
- gettext: gettext$1('Could not introduce cyclic ownership dependency.')
1645
- },
1646
- '^Password change is temporary blocked.$': {
1647
- gettext: gettext$1('Password change is temporarily blocked.')
1648
- },
1649
- '^Password cipher does not match$': {
1650
- gettext: gettext$1('Password cipher does not match.')
1651
- },
1652
- '^Platform application cannot be added to, nor removed from any tenant.$': {
1653
- gettext: gettext$1('Platform application cannot be added to, nor removed from any tenant.')
1654
- },
1655
- '^Private key must be provided in KEY_PAIR credentials$': {
1656
- gettext: gettext$1('Private key must be provided when "Public/private keys" option is selected.')
1657
- },
1658
- '^Private key cipher does not match$': {
1659
- gettext: gettext$1('Private key cipher does not match')
1577
+ '^Device (.+?) already registered to a tenant.$': {
1578
+ gettext: gettext$1('Device {{ devEUI }} is already registered in your tenant or in another tenant in the platform.'),
1579
+ placeholders: {
1580
+ devEUI: '$1'
1581
+ }
1660
1582
  },
1661
- '^Protocol "(.+?)" does not support "(.+?)" credentials type$': {
1662
- gettext: gettext$1('Protocol "{{protocol}}" does not support "{{credentialsType}}" credentials type.'),
1583
+ '^Device with external ID(s) (.+?) was replaced by device with external ID(s) (.+?)$': {
1584
+ gettext: gettext$1('Device with external ID(s) {{ oldExtIds }} was replaced by device with external ID(s) {{ newExtIds }}.'),
1663
1585
  placeholders: {
1664
- protocol: '$1',
1665
- credentialsType: '$2'
1586
+ oldExtIds: '$1',
1587
+ newExtIds: '$2'
1666
1588
  }
1667
1589
  },
1668
- '^Provided security key does not match key stored for device (.+?).$': {
1669
- gettext: gettext$1('Provided security token does not match the security token stored for this device "{{deviceId}}".'),
1590
+ "^Finding device data from database failed : No managedObject for id '(.+?)'!$": {
1591
+ gettext: gettext$1('Could not find managed object with ID "{{deviceId}}".'),
1670
1592
  placeholders: {
1671
1593
  deviceId: '$1'
1672
1594
  }
1673
1595
  },
1674
- '^Provided security key does not match key stored for device (.+?).Reached maximum number of failed attempts while trying to register this device. Request will now be blocked and has to be removed manually to restart the process.$': {
1675
- gettext: gettext$1('The provided security token does not match the token stored for device "{{deviceId}}". You have reached the maximum number of failed attempts while trying to register this device. The request will now be blocked and must be removed manually to restart the process.'),
1596
+ '^NewDeviceRequest for id = (.+?) already exists.$': {
1597
+ gettext: gettext$1('Device registration request with ID {{id}} already exists.'),
1598
+ placeholders: {
1599
+ id: '$1'
1600
+ }
1601
+ },
1602
+ '^NewDeviceRequest for device id (.+?) is in state BLOCKED, not PENDING_ACCEPTANCE.$': {
1603
+ gettext: gettext$1('Device registration request with ID "{{deviceId}}" is in state "Blocked", not "Pending acceptance". Remove this registration request and start over.'),
1676
1604
  placeholders: {
1677
1605
  deviceId: '$1'
1678
1606
  }
1679
1607
  },
1680
- '^pulling image "(.+)"$': {
1681
- gettext: gettext$1('Pulling image: "{{imageName}}".'),
1608
+ '^No communication with device since (.+?)$': {
1609
+ gettext: gettext$1('No communication with device since {{timestamp | absoluteDate}}.'),
1682
1610
  placeholders: {
1683
- imageName: '$1'
1611
+ timestamp: '$1'
1684
1612
  }
1685
1613
  },
1686
- '^Real-time event processing is currently overloaded and may stop processing your events\\. Please contact support\\.$': {
1687
- gettext: gettext$1('Real-time event processing is currently overloaded and may stop processing your events. Please contact support.')
1614
+ '^No data received from device within required interval.$': {
1615
+ gettext: gettext$1('No data received from device within required interval.')
1688
1616
  },
1689
- '^Resource ID \\[type=com_cumulocity_model_idtype_GId, value=(.+?)\\] for this request not found.$': {
1690
- gettext: gettext$1('Could not find the resource with ID "{{id}}".'),
1617
+ '^Provided security key does not match key stored for device (.+?).$': {
1618
+ gettext: gettext$1('Provided security token does not match the security token stored for this device "{{deviceId}}".'),
1691
1619
  placeholders: {
1692
- id: '$1'
1620
+ deviceId: '$1'
1693
1621
  }
1694
1622
  },
1695
- '^RESTART (.+?)$': {
1696
- gettext: gettext$1('RESTART`verb, action` {{service}}'),
1623
+ '^Provided security key does not match key stored for device (.+?).Reached maximum number of failed attempts while trying to register this device. Request will now be blocked and has to be removed manually to restart the process.$': {
1624
+ gettext: gettext$1('The provided security token does not match the token stored for device "{{deviceId}}". You have reached the maximum number of failed attempts while trying to register this device. The request will now be blocked and must be removed manually to restart the process.'),
1697
1625
  placeholders: {
1698
- service: '$1'
1626
+ deviceId: '$1'
1699
1627
  }
1700
1628
  },
1701
1629
  '^Retrieve configuration snapshot from device (.+?)$': {
@@ -1711,13 +1639,6 @@ const MESSAGES_CORE_I18N = {
1711
1639
  deviceName: '$2'
1712
1640
  }
1713
1641
  },
1714
- '^Scaled up replica set (.+) to (\\d+)$': {
1715
- gettext: gettext$1('Replica set "{{replicaSetName}}" scaled up to "{{scaleNumber}}".'),
1716
- placeholders: {
1717
- replicaSetName: '$1',
1718
- scaleNumber: '$2'
1719
- }
1720
- },
1721
1642
  '^Send configuration snapshot (.+?) of configuration type (.+?) to device (.+?)$': {
1722
1643
  gettext: gettext$1('Send configuration snapshot {{snapshotName}} of configuration type {{configurationType}} to device {{deviceName}}'),
1723
1644
  placeholders: {
@@ -1733,96 +1654,183 @@ const MESSAGES_CORE_I18N = {
1733
1654
  deviceName: '$2'
1734
1655
  }
1735
1656
  },
1736
- '^Simulator state is invalid: (.+)$': {
1737
- gettext: gettext$1('Simulator state is invalid: {{violations}}'),
1657
+ '^You have reached devices limit. No more devices can be registered.$': {
1658
+ gettext: gettext$1('You reached devices limit. No more devices can be registered.')
1659
+ },
1660
+ '^Added new child device to "(.+)" \\(ID: (.+)\\).$': {
1661
+ gettext: gettext$1('Added new child device to "{{parentDeviceName}}" (ID: {{parentDeviceId}}).'),
1738
1662
  placeholders: {
1739
- violations: {
1663
+ parentDeviceName: '$1',
1664
+ parentDeviceId: '$2'
1665
+ }
1666
+ },
1667
+ '^Updated child device of "(.+)" \\(ID: (.+)\\).$': {
1668
+ gettext: gettext$1('Updated child device of "{{parentDeviceName}}" (ID: {{parentDeviceId}}).'),
1669
+ placeholders: {
1670
+ parentDeviceName: '$1',
1671
+ parentDeviceId: '$2'
1672
+ }
1673
+ },
1674
+ '^Added child device "(.+)" \\(ID: (.+)\\).$': {
1675
+ gettext: gettext$1('Added child device "{{name}}" (ID: {{id}}).'),
1676
+ placeholders: {
1677
+ name: '$1',
1678
+ id: '$2'
1679
+ }
1680
+ },
1681
+ '^Removed child device "(.+)" \\(ID: (.+)\\).$': {
1682
+ gettext: gettext$1('Removed child device "{{name}}" (ID: {{id}}).'),
1683
+ placeholders: {
1684
+ name: '$1',
1685
+ id: '$2'
1686
+ }
1687
+ },
1688
+ '^Apply device profile: (.+).?$': {
1689
+ gettext: gettext$1('Apply device profile: {{ name }}'),
1690
+ placeholders: {
1691
+ name: '$1'
1692
+ }
1693
+ },
1694
+ '^Device put into maintenance state$': {
1695
+ gettext: gettext$1('Device put into maintenance state')
1696
+ },
1697
+ '^device with id: (.+?) is put into maintenance state$': {
1698
+ gettext: gettext$1('Device with ID "{{deviceId}}" is put into maintenance state'),
1699
+ placeholders: {
1700
+ deviceId: '$1'
1701
+ }
1702
+ },
1703
+ '^External id not found; external id = ID \\[type=(.+?), value=(.+?)\\]$': {
1704
+ gettext: gettext$1('External ID not found for type "{{type}}" and value "{{value}}".'),
1705
+ placeholders: {
1706
+ type: '$1',
1707
+ value: '$2'
1708
+ }
1709
+ },
1710
+ '^ID \\[type=(.+?), value=(.+?)\\] was already bound to different Global ID.$': {
1711
+ gettext: gettext$1('External ID "{{value}}" of the type "{{type}}" already exists.'),
1712
+ placeholders: {
1713
+ type: '$1',
1714
+ value: '$2'
1715
+ }
1716
+ }
1717
+ };
1718
+
1719
+ /* tslint:disable:max-line-length */
1720
+ const PATTERN_MESSAGES_FIRMWARE = {
1721
+ '^Apply software changes: (.+?)\\.?$': {
1722
+ gettext: gettext$1('Apply software changes: {{ softwareChanges }}'),
1723
+ placeholders: {
1724
+ softwareChanges: {
1740
1725
  capture: '$1',
1741
1726
  translate: {
1742
- '(\\w+?) - may not be null': {
1743
- gettext: gettext$1('"{{field}}" should not be null'),
1744
- placeholders: {
1745
- field: '$1'
1746
- }
1747
- },
1748
- '(\\w+?) - must be less than or equal to (\\d+)': {
1749
- gettext: gettext$1('"{{field}}" must be less than or equal to {{maxValue}}'),
1727
+ 'install "(.+?)" \\(version: (.+?)\\)': {
1728
+ gettext: gettext$1('install "{{ softwareName }}" (version: {{ softwareVersion }})'),
1750
1729
  placeholders: {
1751
- field: '$1',
1752
- maxValue: '$2'
1730
+ softwareName: '$1',
1731
+ softwareVersion: '$2'
1753
1732
  }
1754
1733
  },
1755
- '(\\w+?) - should not contain null values': {
1756
- gettext: gettext$1('"{{field}}" should not contain null values'),
1734
+ 'install "([^"]+)"(?! \\(version: .+?\\))': {
1735
+ gettext: gettext$1('install "{{ softwareName }}"'),
1757
1736
  placeholders: {
1758
- field: '$1'
1737
+ softwareName: '$1'
1759
1738
  }
1760
1739
  },
1761
- '(\\w+?) - must be true': {
1762
- gettext: gettext$1('"{{field}}" must be true'),
1740
+ 'delete "(.+?)" \\(version: (.+?)\\)': {
1741
+ gettext: gettext$1('delete "{{ softwareName }}" (version: {{ softwareVersion }})'),
1763
1742
  placeholders: {
1764
- field: '$1'
1743
+ softwareName: '$1',
1744
+ softwareVersion: '$2'
1765
1745
  }
1766
1746
  },
1767
- '(\\w+?) - must not be empty': {
1768
- gettext: gettext$1('"{{field}}" must not be empty'),
1747
+ 'delete "([^"]+)"(?! \\(version: .+?\\))': {
1748
+ gettext: gettext$1('delete "{{ softwareName }}"'),
1769
1749
  placeholders: {
1770
- field: '$1'
1750
+ softwareName: '$1'
1771
1751
  }
1772
1752
  }
1773
1753
  }
1774
1754
  }
1775
1755
  }
1776
1756
  },
1777
- "^Smart rest template (.+?) doesn't exist$": {
1778
- gettext: gettext$1('SmartREST template with ID "{{templateId}}" doesn\'t exist.'),
1757
+ '^Update firmware to: "?(.+?)"? \\(version: (.+)\\)\\.?$': {
1758
+ gettext: gettext$1('Update firmware to: "{{ name }}" (version: {{ version }})'),
1779
1759
  placeholders: {
1780
- templateId: '$1'
1760
+ name: '$1',
1761
+ version: '$2'
1781
1762
  }
1782
1763
  },
1783
- '^Smart rule created$': {
1784
- gettext: gettext$1('Smart rule created.')
1785
- },
1786
- '^Smart rule updated$': {
1787
- gettext: gettext$1('Smart rule updated.')
1788
- },
1789
- '^Smart rule enabled$': {
1790
- gettext: gettext$1('Smart rule activated.')
1791
- },
1792
- '^Smart rule disabled$': {
1793
- gettext: gettext$1('Smart rule deactivated.')
1794
- },
1795
- '^Smart rule deleted$': {
1796
- gettext: gettext$1('Smart rule deleted.')
1797
- },
1798
- '^Smart rule "(.+?)" created$': {
1799
- gettext: gettext$1('Smart rule "{{name}}" created.'),
1764
+ '^Update firmware to: "?(.+?)"?\\.?$': {
1765
+ gettext: gettext$1('Update firmware to: "{{ name }}"'),
1800
1766
  placeholders: {
1801
1767
  name: '$1'
1802
1768
  }
1769
+ }
1770
+ };
1771
+
1772
+ /* tslint:disable:max-line-length */
1773
+ const PATTERN_MESSAGES_MICROSERVICES = {
1774
+ '^Created container$': {
1775
+ gettext: gettext$1('Container created.')
1803
1776
  },
1804
- '^Smart rule "(.+?)" updated$': {
1805
- gettext: gettext$1('Smart rule "{{name}}" updated.'),
1777
+ '^Created pod: (.+)$': {
1778
+ gettext: gettext$1('Pod "{{imageName}}" created.'),
1806
1779
  placeholders: {
1807
- name: '$1'
1780
+ imageName: '$1'
1808
1781
  }
1809
1782
  },
1810
- '^Smart rule "(.+?)" enabled$': {
1811
- gettext: gettext$1('Smart rule "{{name}}" activated.'),
1812
- placeholders: {
1813
- name: '$1'
1783
+ '^Microservice not available.*$': {
1784
+ gettext: gettext$1('Microservice is not available.')
1785
+ },
1786
+ '^Started container$': {
1787
+ gettext: gettext$1('Container started.')
1788
+ },
1789
+ '^Error syncing pod$': {
1790
+ gettext: gettext$1('Pod synchronization error.')
1791
+ },
1792
+ '^Failed create pod sandbox.$': {
1793
+ gettext: gettext$1('Pod sandbox creation failed.')
1794
+ },
1795
+ '^Deleted pod: (.+)$': {
1796
+ gettext: gettext$1('Pod "{{imageName}}" deleted.'),
1797
+ placeholders: {
1798
+ imageName: '$1'
1814
1799
  }
1815
1800
  },
1816
- '^Smart rule "(.+?)" disabled$': {
1817
- gettext: gettext$1('Smart rule "{{name}}" deactivated.'),
1801
+ '^Container image "(.+)" already present on machine$': {
1802
+ gettext: gettext$1('Container image "{{imageName}}" already exists.'),
1818
1803
  placeholders: {
1819
- name: '$1'
1804
+ imageName: '$1'
1820
1805
  }
1821
1806
  },
1822
- '^Smart rule "(.+?)" deleted$': {
1823
- gettext: gettext$1('Smart rule "{{name}}" deleted.'),
1807
+ '^Scaled up replica set (.+) to (\\d+)$': {
1808
+ gettext: gettext$1('Replica set "{{replicaSetName}}" scaled up to "{{scaleNumber}}".'),
1824
1809
  placeholders: {
1825
- name: '$1'
1810
+ replicaSetName: '$1',
1811
+ scaleNumber: '$2'
1812
+ }
1813
+ },
1814
+ '^Scaled down replica set (.+) to (\\d+)$': {
1815
+ gettext: gettext$1('Replica set "{{replicaSetName}}" scaled down to "{{scaleNumber}}".'),
1816
+ placeholders: {
1817
+ replicaSetName: '$1',
1818
+ scaleNumber: '$2'
1819
+ }
1820
+ },
1821
+ '^Not within any context!$': {
1822
+ gettext: gettext$1('A problem occurred with microservice subscription.')
1823
+ },
1824
+ '^pulling image "(.+)"$': {
1825
+ gettext: gettext$1('Pulling image: "{{imageName}}".'),
1826
+ placeholders: {
1827
+ imageName: '$1'
1828
+ }
1829
+ },
1830
+ '^RESTART (.+?)$': {
1831
+ gettext: gettext$1('RESTART`verb, action` {{service}}'),
1832
+ placeholders: {
1833
+ service: '$1'
1826
1834
  }
1827
1835
  },
1828
1836
  '^START (.+?)$': {
@@ -1831,9 +1839,6 @@ const MESSAGES_CORE_I18N = {
1831
1839
  service: '$1'
1832
1840
  }
1833
1841
  },
1834
- '^Started container$': {
1835
- gettext: gettext$1('Container started.')
1836
- },
1837
1842
  '^STOP (.+?)$': {
1838
1843
  gettext: gettext$1('STOP`verb, action` {{service}}'),
1839
1844
  placeholders: {
@@ -1853,371 +1858,564 @@ const MESSAGES_CORE_I18N = {
1853
1858
  imageName: '$1'
1854
1859
  }
1855
1860
  },
1856
- '^Tenant creation failed. : Tenant with given id already exists.$': {
1857
- gettext: gettext$1('Could not create a tenant. Tenant with given domain/URL already exists.')
1861
+ '^Write failed with error code 16733 and error message \'trying to index text where term list is too big, max is 4mb _id: "(.+?)"\'$': {
1862
+ gettext: gettext$1('The uploaded image cannot be bigger than 4 MB. Please upload a smaller one.')
1858
1863
  },
1859
- '^Tenant id cannot be a reserved sql keyword "(.+?)".$': {
1860
- gettext: gettext$1('Could not use a reserved SQL keyword "{{tenantId}}" as a domain name.'),
1864
+ '^Write failed with error code 17280 and error message \'WiredTigerIndex::insert: key too large to index, failing (.+?) { : "(.+?)" }\'$': {
1865
+ gettext: gettext$1('The selected name is too long. Please try a shorter one.')
1866
+ },
1867
+ '^No nodes are available that match all of the predicates: (.+).$': {
1868
+ gettext: gettext$1('No nodes are available that match all of the predicates: [{{predicates}}].'),
1861
1869
  placeholders: {
1862
- tenantId: '$1'
1870
+ predicates: '$1'
1863
1871
  }
1864
1872
  },
1865
- '^Tenant "(.+?)" activated$': {
1866
- gettext: gettext$1('Tenant "{{tenant}}" activated.'),
1873
+ '^Readiness probe failed: (.+) (.+): (.+): request canceled while waiting for connection \\(Client.Timeout exceeded while awaiting headers\\)$': {
1874
+ gettext: gettext$1('Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).'),
1867
1875
  placeholders: {
1868
- tenant: '$1'
1876
+ requestMethod: '$1',
1877
+ uri: '$2',
1878
+ protocol: '$3'
1869
1879
  }
1870
1880
  },
1871
- '^Tenant (.+?) has sub-tenants, please remove them first!$': {
1872
- gettext: gettext$1('Could not remove tenant "{{tenant}}". Remove its subtenants first.'),
1881
+ '^Liveness probe failed: (.+) (.+): (.+): request canceled while waiting for connection \\(Client.Timeout exceeded while awaiting headers\\)$': {
1882
+ gettext: gettext$1('Liveness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).'),
1873
1883
  placeholders: {
1874
- tenant: '$1'
1884
+ requestMethod: '$1',
1885
+ uri: '$2',
1886
+ protocol: '$3'
1875
1887
  }
1876
- },
1877
- '^Tenant activated$': {
1878
- gettext: gettext$1('Tenant activated.')
1879
- },
1880
- '^Tenant "(.+?)" created$': {
1881
- gettext: gettext$1('Tenant "{{tenant}}" created.'),
1888
+ }
1889
+ };
1890
+
1891
+ /* tslint:disable:max-line-length */
1892
+ const PATTERN_MESSAGES_OPERATIONS = {
1893
+ '^Creation ramp must be greater than (\\d+?)$': {
1894
+ gettext: gettext$1('Bulk operation delay must be greater than {{minSeconds}} seconds.'),
1882
1895
  placeholders: {
1883
- tenant: '$1'
1896
+ minSeconds: '$1'
1884
1897
  }
1885
1898
  },
1886
- '^Tenant created$': {
1887
- gettext: gettext$1('Tenant created.')
1888
- },
1889
- '^Tenant "(.+?)" deleted$': {
1890
- gettext: gettext$1('Tenant "{{tenant}}" deleted.'),
1899
+ '^Close relay (.+).$': {
1900
+ gettext: gettext$1('Close relay {{number}}.'),
1891
1901
  placeholders: {
1892
- tenant: '$1'
1902
+ number: '$1'
1893
1903
  }
1894
1904
  },
1895
- '^Tenant deleted$': {
1896
- gettext: gettext$1('Tenant deleted.')
1897
- },
1898
- '^Tenant "(.+?)" suspended$': {
1899
- gettext: gettext$1('Tenant "{{tenant}}" suspended.'),
1905
+ '^Open relay (.+).$': {
1906
+ gettext: gettext$1('Open relay {{number}}.'),
1900
1907
  placeholders: {
1901
- tenant: '$1'
1908
+ number: '$1'
1902
1909
  }
1903
1910
  },
1904
- '^Tenant suspended$': {
1905
- gettext: gettext$1('Tenant suspended')
1906
- },
1907
- '^Tenant "(.+?)" updated: (.+?)$': {
1908
- gettext: gettext$1('Tenant "{{tenant}}" updated: {{properties}}.'),
1911
+ '^Change trace status to (.+).$': {
1912
+ gettext: gettext$1('Change trace status to {{state | translate}}.'),
1909
1913
  placeholders: {
1910
- tenant: '$1',
1911
- properties: '$2'
1914
+ state: '$1'
1912
1915
  }
1913
1916
  },
1914
- '^Tenant updated$': {
1915
- gettext: gettext$1('Tenant updated.')
1916
- },
1917
- '^Too Many Requests$': {
1918
- gettext: gettext$1('Too many requests. Try again later.')
1919
- },
1920
- "^User alias equals username '(.+)'$": {
1921
- gettext: gettext$1('Username and login alias must be different.')
1922
- },
1923
- '^User created$': {
1924
- gettext: gettext$1('User created')
1925
- },
1926
- '^User (.+?) created$': {
1927
- gettext: gettext$1('User "{{name}}" created'),
1917
+ '^Change relay status to (.+).$': {
1918
+ gettext: gettext$1('Change relay status to {{status | translate}}.'),
1928
1919
  placeholders: {
1929
- name: '$1'
1920
+ status: '$1'
1930
1921
  }
1931
1922
  },
1932
- '^User deleted$': {
1933
- gettext: gettext$1('User deleted')
1934
- },
1935
- '^User (.+?) deleted$': {
1936
- gettext: gettext$1('User "{{name}}" deleted'),
1923
+ '^Closing relay (.+).$': {
1924
+ gettext: gettext$1('Closing relay {{number}}.'),
1937
1925
  placeholders: {
1938
- name: '$1'
1926
+ number: '$1'
1939
1927
  }
1940
1928
  },
1941
- '^(.+?) user login with OAuth internal mode failed$': {
1942
- gettext: gettext$1('"{{name}}" user login with OAI-Secure mode failed'),
1929
+ '^Opening relay (.+).$': {
1930
+ gettext: gettext$1('Opening relay {{number}}.'),
1943
1931
  placeholders: {
1944
- name: '$1'
1932
+ number: '$1'
1945
1933
  }
1946
1934
  },
1947
- '^User updated$': {
1948
- gettext: gettext$1('User updated')
1949
- },
1950
- '^User (.+?) updated: (.+)$': {
1951
- gettext: gettext$1('User "{{name}}" updated: {{updatesList}}'),
1935
+ '^Operation updated: (.+)$': {
1936
+ gettext: gettext$1('Operation updated: {{updatesList}}'),
1952
1937
  placeholders: {
1953
- name: '$1',
1954
1938
  updatesList: {
1955
- capture: '$2',
1939
+ capture: '$1',
1956
1940
  translate: {
1957
- "delegatedBy='(.+?)'": {
1958
- gettext: gettext$1('delegated by: "{{delegate}}"'),
1959
- placeholders: {
1960
- delegate: '$1'
1961
- }
1962
- },
1963
- "owner='(.+?)'": {
1964
- gettext: gettext$1('owner: "{{owner}}"'),
1965
- placeholders: {
1966
- owner: '$1'
1967
- }
1968
- },
1969
- 'inventory assignment \\[(.+?)\\] added': {
1970
- gettext: gettext$1('inventory assignment [{{inventoryAssignment}}] added'),
1971
- placeholders: {
1972
- inventoryAssignment: '$1'
1973
- }
1974
- },
1975
- 'inventory assignment \\[(.+?)\\] removed': {
1976
- gettext: gettext$1('inventory assignment [{{inventoryAssignment}}] removed'),
1977
- placeholders: {
1978
- inventoryAssignment: '$1'
1979
- }
1980
- },
1981
- 'applications \\[(.+?)\\] added': {
1982
- gettext: gettext$1('applications [{{applicationsList}}] added'),
1941
+ "status='(.+?)'": {
1942
+ gettext: gettext$1('status: "{{ status | translate }}"'),
1983
1943
  placeholders: {
1984
- applicationsList: '$1'
1944
+ status: '$1'
1985
1945
  }
1986
1946
  },
1987
- 'applications \\[(.+?)\\] removed': {
1988
- gettext: gettext$1('applications [{{applicationsList}}] removed'),
1947
+ "description='(.+?)'": {
1948
+ gettext: gettext$1('description: "{{ description | translate }}"'),
1989
1949
  placeholders: {
1990
- applicationsList: '$1'
1950
+ description: '$1'
1991
1951
  }
1992
1952
  },
1993
- 'global roles \\[(.+?)\\] added': {
1994
- gettext: gettext$1('global roles [{{globalRolesList}}] added'),
1953
+ "device name='(.+?)'": {
1954
+ gettext: gettext$1('device name: "{{ deviceName }}"'),
1995
1955
  placeholders: {
1996
- globalRolesList: '$1'
1956
+ deviceName: '$1'
1997
1957
  }
1998
1958
  },
1999
- 'global roles \\[(.+?)\\] removed': {
2000
- gettext: gettext$1('global roles [{{globalRolesList}}] removed'),
1959
+ "failure reason='(.+?)'": {
1960
+ gettext: gettext$1('failure reason: "{{ failureReason | translate }}"'),
2001
1961
  placeholders: {
2002
- globalRolesList: '$1'
1962
+ failureReason: '$1'
2003
1963
  }
2004
1964
  }
2005
1965
  }
2006
1966
  }
2007
1967
  }
2008
1968
  },
2009
- "^User with username '(.+?)' already exists! : Duplicated: (.+?)$": {
2010
- gettext: gettext$1('User "{{username}}" already exists.'),
2011
- placeholders: {
2012
- username: '$1'
2013
- }
1969
+ '^Operation created$': {
1970
+ gettext: gettext$1('Operation created.')
2014
1971
  },
2015
- "^User with username or alias '(.+)' already exists! : Duplicated: (.+)$": {
2016
- gettext: gettext$1('User with username or login alias "{{usernameOrAlias}}" already exists.'),
1972
+ '^Operation updated$': {
1973
+ gettext: gettext$1('Operation updated.')
1974
+ },
1975
+ "^Operation created: status='(.+?)'.$": {
1976
+ gettext: gettext$1('Operation created: status: "{{ status | translate }}".'),
2017
1977
  placeholders: {
2018
- usernameOrAlias: '$1'
1978
+ status: '$1'
2019
1979
  }
2020
1980
  },
2021
- "^User with email '(.+?)' already exists! : Duplicated: (.+?)$": {
2022
- gettext: gettext$1('User with email "{{email}}" already exists.'),
1981
+ '^Change value of "(.+)" to (.+) (.+).$': {
1982
+ gettext: gettext$1('Change value of "{{name}}" to {{value}}{{unit}}.'),
2023
1983
  placeholders: {
2024
- email: '$1'
1984
+ name: '$1',
1985
+ value: '$2',
1986
+ unit: '$3'
2025
1987
  }
2026
1988
  },
2027
- '^unable to find option with given key (.+?) : Could not find entity Option by ID (.+?)!$': {
2028
- gettext: gettext$1('Unable to get tenant option: "{{option}}".'),
1989
+ '^Change value of "(.+)" to (.+).$': {
1990
+ gettext: gettext$1('Change value of "{{name}}" to {{value}}.'),
2029
1991
  placeholders: {
2030
- option: '$2'
1992
+ name: '$1',
1993
+ value: '$2'
2031
1994
  }
2032
1995
  },
2033
- '^unable to find option with given key (.+?) : There is no system property for key (.+?)$': {
2034
- gettext: gettext$1('Unable to get system option: "{{option}}".'),
1996
+ '^Change status of "(.+)" to "(.+)".$': {
1997
+ gettext: gettext$1('Change status of "{{name}}" to "{{label}}".'),
2035
1998
  placeholders: {
2036
- option: '$2'
1999
+ name: '$1',
2000
+ label: '$2'
2037
2001
  }
2002
+ }
2003
+ };
2004
+
2005
+ /* tslint:disable:max-line-length */
2006
+ const PATTERN_MESSAGES_ROLES = {
2007
+ '^Global Role updated$': {
2008
+ gettext: gettext$1('Global role updated')
2038
2009
  },
2039
- '^Write failed with error code 16733 and error message \'trying to index text where term list is too big, max is 4mb _id: "(.+?)"\'$': {
2040
- gettext: gettext$1('The uploaded image cannot be bigger than 4 MB. Please upload a smaller one.')
2041
- },
2042
- '^Write failed with error code 17280 and error message \'WiredTigerIndex::insert: key too large to index, failing (.+?) { : "(.+?)" }\'$': {
2043
- gettext: gettext$1('The selected name is too long. Please try a shorter one.')
2010
+ '^Global Role (.+?) updated$': {
2011
+ gettext: gettext$1('Global role "{{name}}" updated'),
2012
+ placeholders: {
2013
+ name: '$1'
2014
+ }
2044
2015
  },
2045
- '^You have reached devices limit. No more devices can be registered.$': {
2046
- gettext: gettext$1('You reached devices limit. No more devices can be registered.')
2016
+ '^Global Role (.+?) updated: (.+)$': {
2017
+ gettext: gettext$1('Global role "{{name}}" updated: {{updatesList}}'),
2018
+ placeholders: {
2019
+ name: '$1',
2020
+ updatesList: {
2021
+ capture: '$2',
2022
+ translate: {
2023
+ 'applications \\[([^\\]]+?)\\] added': {
2024
+ gettext: gettext$1('applications {{list}} added'),
2025
+ placeholders: { list: '$1' }
2026
+ },
2027
+ 'applications \\[([^\\]]+?)\\] removed': {
2028
+ gettext: gettext$1('applications {{list}} removed'),
2029
+ placeholders: { list: '$1' }
2030
+ },
2031
+ 'roles \\[([^\\]]+?)\\] added': {
2032
+ gettext: gettext$1('roles {{list}} added'),
2033
+ placeholders: { list: '$1' }
2034
+ },
2035
+ 'roles \\[([^\\]]+?)\\] removed': {
2036
+ gettext: gettext$1('roles {{list}} removed'),
2037
+ placeholders: { list: '$1' }
2038
+ }
2039
+ }
2040
+ }
2041
+ }
2047
2042
  },
2048
- '^(.+) succeeded for volume "(.+)"$': {
2049
- gettext: gettext$1('Operation "{{operation}}" succeeded for volume "{{volume}}".'),
2043
+ '^Global Roles$': {
2044
+ gettext: gettext$1('Global roles')
2045
+ },
2046
+ '^Inventory Role removed$': {
2047
+ gettext: gettext$1('Inventory role removed')
2048
+ },
2049
+ '^Inventory Role (.+?) removed$': {
2050
+ gettext: gettext$1('Inventory role "{{name}}" deleted.'),
2050
2051
  placeholders: {
2051
- operation: '$1',
2052
- volume: '$2'
2052
+ name: '$1'
2053
2053
  }
2054
2054
  },
2055
- "^Exception on tenant (.+) in statement '(.+)': Invocation exception when invoking method '(.+)' of class '(.+)' passing parameters \\[(.+)\\] for statement '(.+)': (.+) : (.+)$": {
2056
- gettext: gettext$1('Exception on tenant {{tenantId}} in statement "{{moduleName}}": Invocation exception when invoking method "{{methodName}}" of class "{{classPath}}" passing parameters [{{parameters}}] for statement "{{statement}}": {{exceptionType}} : {{exceptionMessage}}.'),
2055
+ '^Inventory Role updated$': {
2056
+ gettext: gettext$1('Inventory role updated')
2057
+ },
2058
+ '^Inventory Role (.+?) updated$': {
2059
+ gettext: gettext$1('Inventory role "{{name}}" updated.'),
2057
2060
  placeholders: {
2058
- tenantId: '$1',
2059
- moduleName: '$2',
2060
- methodName: '$3',
2061
- classPath: '$4',
2062
- parameters: '$5',
2063
- statement: '$6',
2064
- exceptionType: '$7',
2065
- exceptionMessage: '$8'
2061
+ name: '$1'
2066
2062
  }
2067
2063
  },
2068
- '^No nodes are available that match all of the predicates: (.+).$': {
2069
- gettext: gettext$1('No nodes are available that match all of the predicates: [{{predicates}}].'),
2064
+ // Global roles and descriptions
2065
+ '^Global Manager$': {
2066
+ gettext: gettext$1('Global Manager')
2067
+ },
2068
+ '^Can read and write all data from all devices$': {
2069
+ gettext: gettext$1('Can read and write all data from all devices.')
2070
+ },
2071
+ '^Global Reader$': {
2072
+ gettext: gettext$1('Global Reader')
2073
+ },
2074
+ '^Can read all data \\(including users, in contrast to "Global Reader"\\)$': {
2075
+ gettext: gettext$1('Can read all data (including users, in contrast to "Global Reader").')
2076
+ },
2077
+ '^Tenant Manager$': {
2078
+ gettext: gettext$1('Tenant Manager')
2079
+ },
2080
+ '^Can manage tenant wide configurations like applications, tenant options and retention rules$': {
2081
+ gettext: gettext$1('Can manage tenant wide configurations like applications, tenant options and retention rules.')
2082
+ },
2083
+ '^CEP Manager$': {
2084
+ gettext: gettext$1('CEP Manager')
2085
+ },
2086
+ '^Has full access to all deployed CEP modules and SmartRules$': {
2087
+ gettext: gettext$1('Has full access to all deployed CEP modules and smart rules.')
2088
+ },
2089
+ '^Cockpit User$': {
2090
+ gettext: gettext$1('Cockpit User')
2091
+ },
2092
+ '^User to work in Cockpit application. This does not include the access to any device data.$': {
2093
+ gettext: gettext$1('User to work in Cockpit application. This does not include the access to any device data.')
2094
+ },
2095
+ '^Global User Manager$': {
2096
+ gettext: gettext$1('Global User Manager')
2097
+ },
2098
+ '^Can access and modify the full user hierarchy$': {
2099
+ gettext: gettext$1('Can access and edit the full user hierarchy.')
2100
+ },
2101
+ '^Shared User Manager$': {
2102
+ gettext: gettext$1('Shared User Manager')
2103
+ },
2104
+ '^Can create new user as his own sub-users and manage this$': {
2105
+ gettext: gettext$1('Can create new own sub-users and manage them.')
2106
+ },
2107
+ // Device management roles
2108
+ '^Reader$': {
2109
+ gettext: gettext$1('Reader')
2110
+ },
2111
+ '^Can read all data of the asset.$': {
2112
+ gettext: gettext$1('Can read all data of the asset.')
2113
+ },
2114
+ '^Devicemanagement User$': {
2115
+ gettext: gettext$1('Device Management User')
2116
+ },
2117
+ '^Gives access to bulk operations and device management application. This does not include access to any device data.$': {
2118
+ gettext: gettext$1('Gives access to bulk operations and Device Management application. This does not include access to any device data.')
2119
+ },
2120
+ // Description for 'devices' role
2121
+ '^A role marker for device users. After registration, a device automatically has this role$': {
2122
+ gettext: gettext$1('A role marker for device users. After registration, a device automatically has this role.')
2123
+ },
2124
+ // Inventory operations all role
2125
+ '^Operations: All$': {
2126
+ gettext: gettext$1('Operations: All')
2127
+ },
2128
+ '^Can remotely manage the assets by sending operations to the device. This includes for example remote configuration, software update, etc.$': {
2129
+ gettext: gettext$1('Can remotely manage the assets by sending operations to the device. This includes remote configuration, software update and more.')
2130
+ },
2131
+ '^Operations: Restart Device$': {
2132
+ gettext: gettext$1('Operations: Restart Device')
2133
+ },
2134
+ '^Can restart devices.$': {
2135
+ gettext: gettext$1('Can restart devices.')
2136
+ },
2137
+ // Description for 'business' role
2138
+ '^Can access all devices and their data but has no management permission in the tenant$': {
2139
+ gettext: gettext$1('Can access all devices and their data but has no management permission in the tenant.')
2140
+ },
2141
+ '^Can read all data from all devices$': {
2142
+ gettext: gettext$1('Can read all data from all devices.')
2143
+ },
2144
+ '^Enables administrative permissions. The first user created for the tenant receives this role$': {
2145
+ gettext: gettext$1('Enables administrative permissions. The first user created for the tenant receives this role.')
2146
+ }
2147
+ };
2148
+
2149
+ /* tslint:disable:max-line-length */
2150
+ const PATTERN_MESSAGES_TENANTS = {
2151
+ '^(.+)pplication for tenant (.+) with properties \\( (.+?) \\) already exists$': {
2152
+ gettext: gettext$1('Application for tenant "{{tenant}}" with the following values ({{valuesList}}) already exists.'),
2070
2153
  placeholders: {
2071
- predicates: '$1'
2154
+ tenant: '$2',
2155
+ valuesList: '$3'
2072
2156
  }
2073
2157
  },
2074
- '^Readiness probe failed: (.+) (.+): (.+): request canceled while waiting for connection \\(Client.Timeout exceeded while awaiting headers\\)$': {
2075
- gettext: gettext$1('Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).'),
2158
+ '^Domain name is already in use by another tenant!$': {
2159
+ gettext: gettext$1('Domain name is already used by another tenant.')
2160
+ },
2161
+ '^Tenant creation failed. : Tenant with given id already exists.$': {
2162
+ gettext: gettext$1('Could not create a tenant. Tenant with given domain/URL already exists.')
2163
+ },
2164
+ '^Tenant id cannot be a reserved sql keyword "(.+?)".$': {
2165
+ gettext: gettext$1('Could not use a reserved SQL keyword "{{tenantId}}" as a domain name.'),
2076
2166
  placeholders: {
2077
- requestMethod: '$1',
2078
- uri: '$2',
2079
- protocol: '$3'
2167
+ tenantId: '$1'
2080
2168
  }
2081
2169
  },
2082
- '^Liveness probe failed: (.+) (.+): (.+): request canceled while waiting for connection \\(Client.Timeout exceeded while awaiting headers\\)$': {
2083
- gettext: gettext$1('Liveness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).'),
2170
+ '^Tenant "(.+?)" activated$': {
2171
+ gettext: gettext$1('Tenant "{{tenant}}" activated.'),
2084
2172
  placeholders: {
2085
- requestMethod: '$1',
2086
- uri: '$2',
2087
- protocol: '$3'
2173
+ tenant: '$1'
2088
2174
  }
2089
2175
  },
2090
- '^Error syncing pod$': {
2091
- gettext: gettext$1('Pod synchronization error.')
2176
+ '^Tenant (.+?) has sub-tenants, please remove them first!$': {
2177
+ gettext: gettext$1('Could not remove tenant "{{tenant}}". Remove its subtenants first.'),
2178
+ placeholders: {
2179
+ tenant: '$1'
2180
+ }
2092
2181
  },
2093
- '^Failed create pod sandbox.$': {
2094
- gettext: gettext$1('Pod sandbox creation failed.')
2182
+ '^Tenant activated$': {
2183
+ gettext: gettext$1('Tenant activated.')
2095
2184
  },
2096
- '^Exception on tenant (.+) in statement \'(.+)\': Http status code: (\\d+) \\{error="alarm/Unprocessable Entity",message="(.+)",info="https://www.cumulocity.com/guides/reference-guide/#error_reporting",details="null"\\}$': {
2097
- gettext: gettext$1('Exception on tenant {{tenantId}} in statement "{{statement}}": HTTP status code: {{httpStatusCode}} : {{message | translate}}'),
2185
+ '^Tenant "(.+?)" created$': {
2186
+ gettext: gettext$1('Tenant "{{tenant}}" created.'),
2098
2187
  placeholders: {
2099
- tenantId: '$1',
2100
- statement: '$2',
2101
- httpStatusCode: '$3',
2102
- message: '$4'
2188
+ tenant: '$1'
2103
2189
  }
2104
2190
  },
2105
- "^User '(.+)' is managed by a remote identity management service defined by an administrator, direct update is forbidden$": {
2106
- gettext: gettext$1('User "{{userName}}" is managed by a remote identity management service defined by an administrator, direct update is forbidden.'),
2191
+ '^Tenant created$': {
2192
+ gettext: gettext$1('Tenant created.')
2193
+ },
2194
+ '^Tenant "(.+?)" deleted$': {
2195
+ gettext: gettext$1('Tenant "{{tenant}}" deleted.'),
2107
2196
  placeholders: {
2108
- userName: '$1'
2197
+ tenant: '$1'
2109
2198
  }
2110
2199
  },
2111
- '^Added new child device to "(.+)" \\(ID: (.+)\\).$': {
2112
- gettext: gettext$1('Added new child device to "{{parentDeviceName}}" (ID: {{parentDeviceId}}).'),
2200
+ '^Tenant deleted$': {
2201
+ gettext: gettext$1('Tenant deleted.')
2202
+ },
2203
+ '^Tenant "(.+?)" suspended$': {
2204
+ gettext: gettext$1('Tenant "{{tenant}}" suspended.'),
2113
2205
  placeholders: {
2114
- parentDeviceName: '$1',
2115
- parentDeviceId: '$2'
2206
+ tenant: '$1'
2116
2207
  }
2117
2208
  },
2118
- '^Updated child device of "(.+)" \\(ID: (.+)\\).$': {
2119
- gettext: gettext$1('Updated child device of "{{parentDeviceName}}" (ID: {{parentDeviceId}}).'),
2209
+ '^Tenant suspended$': {
2210
+ gettext: gettext$1('Tenant suspended')
2211
+ },
2212
+ '^Tenant "(.+?)" updated: (.+?)$': {
2213
+ gettext: gettext$1('Tenant "{{tenant}}" updated: {{properties}}.'),
2120
2214
  placeholders: {
2121
- parentDeviceName: '$1',
2122
- parentDeviceId: '$2'
2215
+ tenant: '$1',
2216
+ properties: '$2'
2123
2217
  }
2124
2218
  },
2125
- '^Added child device "(.+)" \\(ID: (.+)\\).$': {
2126
- gettext: gettext$1('Added child device "{{name}}" (ID: {{id}}).'),
2219
+ '^Tenant updated$': {
2220
+ gettext: gettext$1('Tenant updated.')
2221
+ }
2222
+ };
2223
+
2224
+ /* tslint:disable:max-line-length */
2225
+ const PATTERN_MESSAGES_USERS = {
2226
+ "^Can't delete user because it is used by another managed object$": {
2227
+ gettext: gettext$1('Cannot delete device with associated device owner because this owner is still assigned to other device(s). Try to remove only the device.')
2228
+ },
2229
+ '^Could not update user. : Error persisting user (.+?)!$': {
2230
+ gettext: gettext$1('Could not update user "{{username}}".'),
2127
2231
  placeholders: {
2128
- name: '$1',
2129
- id: '$2'
2232
+ username: '$1'
2130
2233
  }
2131
2234
  },
2132
- '^Removed child device "(.+)" \\(ID: (.+)\\).$': {
2133
- gettext: gettext$1('Removed child device "{{name}}" (ID: {{id}}).'),
2235
+ '^Owner field error. : Cannot introduce cyclic dependency.$': {
2236
+ gettext: gettext$1('Could not introduce cyclic ownership dependency.')
2237
+ },
2238
+ "^User alias equals username '(.+)'$": {
2239
+ gettext: gettext$1('Username and login alias must be different.')
2240
+ },
2241
+ '^User created$': {
2242
+ gettext: gettext$1('User created')
2243
+ },
2244
+ '^User (.+?) created$': {
2245
+ gettext: gettext$1('User "{{name}}" created'),
2134
2246
  placeholders: {
2135
- name: '$1',
2136
- id: '$2'
2247
+ name: '$1'
2137
2248
  }
2138
2249
  },
2139
- '^Change value of "(.+)" to (.+) (.+).$': {
2140
- gettext: gettext$1('Change value of "{{name}}" to {{value}}{{unit}}.'),
2250
+ '^User deleted$': {
2251
+ gettext: gettext$1('User deleted')
2252
+ },
2253
+ '^User (.+?) deleted$': {
2254
+ gettext: gettext$1('User "{{name}}" deleted'),
2141
2255
  placeholders: {
2142
- name: '$1',
2143
- value: '$2',
2144
- unit: '$3'
2256
+ name: '$1'
2145
2257
  }
2146
2258
  },
2147
- '^Change value of "(.+)" to (.+).$': {
2148
- gettext: gettext$1('Change value of "{{name}}" to {{value}}.'),
2259
+ '^User updated$': {
2260
+ gettext: gettext$1('User updated')
2261
+ },
2262
+ '^User (.+?) updated: (.+)$': {
2263
+ gettext: gettext$1('User "{{name}}" updated: {{updatesList}}'),
2149
2264
  placeholders: {
2150
2265
  name: '$1',
2151
- value: '$2'
2266
+ updatesList: {
2267
+ capture: '$2',
2268
+ translate: {
2269
+ "delegatedBy='(.+?)'": {
2270
+ gettext: gettext$1('delegated by: "{{delegate}}"'),
2271
+ placeholders: {
2272
+ delegate: '$1'
2273
+ }
2274
+ },
2275
+ "owner='(.+?)'": {
2276
+ gettext: gettext$1('owner: "{{owner}}"'),
2277
+ placeholders: {
2278
+ owner: '$1'
2279
+ }
2280
+ },
2281
+ 'inventory assignment \\[(.+?)\\] added': {
2282
+ gettext: gettext$1('inventory assignment [{{inventoryAssignment}}] added'),
2283
+ placeholders: {
2284
+ inventoryAssignment: '$1'
2285
+ }
2286
+ },
2287
+ 'inventory assignment \\[(.+?)\\] removed': {
2288
+ gettext: gettext$1('inventory assignment [{{inventoryAssignment}}] removed'),
2289
+ placeholders: {
2290
+ inventoryAssignment: '$1'
2291
+ }
2292
+ },
2293
+ 'applications \\[(.+?)\\] added': {
2294
+ gettext: gettext$1('applications [{{applicationsList}}] added'),
2295
+ placeholders: {
2296
+ applicationsList: '$1'
2297
+ }
2298
+ },
2299
+ 'applications \\[(.+?)\\] removed': {
2300
+ gettext: gettext$1('applications [{{applicationsList}}] removed'),
2301
+ placeholders: {
2302
+ applicationsList: '$1'
2303
+ }
2304
+ },
2305
+ 'global roles \\[(.+?)\\] added': {
2306
+ gettext: gettext$1('global roles [{{globalRolesList}}] added'),
2307
+ placeholders: {
2308
+ globalRolesList: '$1'
2309
+ }
2310
+ },
2311
+ 'global roles \\[(.+?)\\] removed': {
2312
+ gettext: gettext$1('global roles [{{globalRolesList}}] removed'),
2313
+ placeholders: {
2314
+ globalRolesList: '$1'
2315
+ }
2316
+ }
2317
+ }
2318
+ }
2152
2319
  }
2153
2320
  },
2154
- '^Change status of "(.+)" to "(.+)".$': {
2155
- gettext: gettext$1('Change status of "{{name}}" to "{{label}}".'),
2321
+ "^User with username '(.+?)' already exists! : Duplicated: (.+?)$": {
2322
+ gettext: gettext$1('User "{{username}}" already exists.'),
2156
2323
  placeholders: {
2157
- name: '$1',
2158
- label: '$2'
2324
+ username: '$1'
2159
2325
  }
2160
2326
  },
2161
- '^Send message "(.+)".$': {
2162
- gettext: gettext$1('Send message "{{str}}".'),
2327
+ "^User with username or alias '(.+)' already exists! : Duplicated: (.+)$": {
2328
+ gettext: gettext$1('User with username or login alias "{{usernameOrAlias}}" already exists.'),
2163
2329
  placeholders: {
2164
- str: '$1'
2330
+ usernameOrAlias: '$1'
2165
2331
  }
2166
2332
  },
2167
- '^Close relay (.+).$': {
2168
- gettext: gettext$1('Close relay {{number}}.'),
2333
+ "^User with email '(.+?)' already exists! : Duplicated: (.+?)$": {
2334
+ gettext: gettext$1('User with email "{{email}}" already exists.'),
2169
2335
  placeholders: {
2170
- number: '$1'
2336
+ email: '$1'
2171
2337
  }
2172
2338
  },
2173
- '^Open relay (.+).$': {
2174
- gettext: gettext$1('Open relay {{number}}.'),
2339
+ "^User '(.+)' is managed by a remote identity management service defined by an administrator, direct update is forbidden$": {
2340
+ gettext: gettext$1('User "{{userName}}" is managed by a remote identity management service defined by an administrator, direct update is forbidden.'),
2175
2341
  placeholders: {
2176
- number: '$1'
2342
+ userName: '$1'
2177
2343
  }
2178
2344
  },
2179
- '^Change trace status to (.+).$': {
2180
- gettext: gettext$1('Change trace status to {{state | translate}}.'),
2345
+ '^User logout$': {
2346
+ gettext: gettext$1('User logout')
2347
+ },
2348
+ '^(.+?) user logout$': {
2349
+ gettext: gettext$1('"{{name}}" user logout'),
2181
2350
  placeholders: {
2182
- state: '$1'
2351
+ name: '$1'
2183
2352
  }
2184
2353
  },
2185
- '^Change relay status to (.+).$': {
2186
- gettext: gettext$1('Change relay status to {{status | translate}}.'),
2187
- placeholders: {
2188
- status: '$1'
2189
- }
2354
+ '^Display name$': {
2355
+ gettext: gettext$1('Login alias')
2356
+ }
2357
+ };
2358
+
2359
+ /* tslint:disable:max-line-length */
2360
+ const PATTERN_MESSAGES_MISC = {
2361
+ '^Access is denied$': {
2362
+ gettext: gettext$1('Access denied.')
2363
+ },
2364
+ '^API is not available with the new domain$': {
2365
+ gettext: gettext$1('Could not activate custom domain. DNS setup is incorrect.')
2366
+ },
2367
+ '^Availability monitoring record$': {
2368
+ gettext: gettext$1('Availability monitoring record')
2369
+ },
2370
+ '^Failed to update domain at the platform$': {
2371
+ gettext: gettext$1('Failed to update domain at the platform.')
2372
+ },
2373
+ '^Following mandatory fields should be included: (.+?)$': {
2374
+ gettext: gettext$1('Following mandatory fields should be included: {{fields}}'),
2375
+ placeholders: {
2376
+ fields: '$1'
2377
+ }
2378
+ },
2379
+ '^I/O error: Connection refused; nested exception is Connection refused : Connection refused$': {
2380
+ gettext: gettext$1('Connection refused')
2381
+ },
2382
+ '^I/O error: Read timed out; nested exception is Read timed out : Read timed out$': {
2383
+ gettext: gettext$1('Read timed out')
2384
+ },
2385
+ '^Log file requested$': {
2386
+ gettext: gettext$1('Log file requested.')
2387
+ },
2388
+ '^Managed object deleted$': {
2389
+ gettext: gettext$1('Managed object deleted')
2190
2390
  },
2191
- '^Closing relay (.+).$': {
2192
- gettext: gettext$1('Closing relay {{number}}.'),
2391
+ '^Managed object "(.+?)" deleted$': {
2392
+ gettext: gettext$1('Managed object "{{name}}" deleted'),
2193
2393
  placeholders: {
2194
- number: '$1'
2394
+ name: '$1'
2195
2395
  }
2196
2396
  },
2197
- '^Opening relay (.+).$': {
2198
- gettext: gettext$1('Opening relay {{number}}.'),
2199
- placeholders: {
2200
- number: '$1'
2201
- }
2397
+ '^Maximum file size exceeded$': {
2398
+ gettext: gettext$1('Maximum file size exceeded.')
2202
2399
  },
2203
- '^Update bulk operation$': {
2204
- gettext: gettext$1('Update bulk operation')
2400
+ '^Maximum age cannot be bigger than 10 years.$': {
2401
+ gettext: gettext$1('Maximum age cannot be bigger than 10 years.')
2205
2402
  },
2206
- '^Update bulk operation: (.+)$': {
2207
- gettext: gettext$1('Update bulk operation: {{updatesList}}'),
2208
- placeholders: bulkOperationAuditLogTextPlaceholders
2403
+ '^Real-time event processing is currently overloaded and may stop processing your events\\. Please contact support\\.$': {
2404
+ gettext: gettext$1('Real-time event processing is currently overloaded and may stop processing your events. Please contact support.')
2209
2405
  },
2210
- '^Update firmware to: "?(.+?)"? \\(version: (.+)\\)\\.?$': {
2211
- gettext: gettext$1('Update firmware to: "{{ name }}" (version: {{ version }})'),
2406
+ '^Resource ID \\[type=com_cumulocity_model_idtype_GId, value=(.+?)\\] for this request not found.$': {
2407
+ gettext: gettext$1('Could not find the resource with ID "{{id}}".'),
2212
2408
  placeholders: {
2213
- name: '$1',
2214
- version: '$2'
2409
+ id: '$1'
2215
2410
  }
2216
2411
  },
2217
- '^Update firmware to: "?(.+?)"?\\.?$': {
2218
- gettext: gettext$1('Update firmware to: "{{ name }}"'),
2412
+ '^Too Many Requests$': {
2413
+ gettext: gettext$1('Too many requests. Try again later.')
2414
+ },
2415
+ '^Send message "(.+)".$': {
2416
+ gettext: gettext$1('Send message "{{str}}".'),
2219
2417
  placeholders: {
2220
- name: '$1'
2418
+ str: '$1'
2221
2419
  }
2222
2420
  },
2223
2421
  '^Update configuration to (.+).$': {
@@ -2226,163 +2424,173 @@ const MESSAGES_CORE_I18N = {
2226
2424
  name: '$1'
2227
2425
  }
2228
2426
  },
2229
- '^Apply device profile: (.+).?$': {
2230
- gettext: gettext$1('Apply device profile: {{ name }}'),
2231
- placeholders: {
2232
- name: '$1'
2233
- }
2234
- },
2235
2427
  '^Execute generic command: (.+).?$': {
2236
2428
  gettext: gettext$1('Execute generic command: {{command}}'),
2237
2429
  placeholders: {
2238
2430
  command: '$1'
2239
2431
  }
2240
2432
  },
2241
- '^Failed to refresh application. : Cannot refresh non local-hosted application.$': {
2242
- gettext: gettext$1('Could not reactivate the application as it is not hosted locally.')
2243
- },
2244
- '^Failed to refresh application. : Cannot refresh application without active version id.$': {
2245
- gettext: gettext$1('Could not reactivate the application as it has no active version.')
2246
- },
2247
- // TODO: remove if we decide not to translate such messages:
2248
- // '^Killing container with id (.+):Need to kill Pod$': {
2249
- // gettext: gettext('Killing container with ID "{{containerId}}". Need to kill Pod.'),
2250
- // placeholders: {
2251
- // containerId: '$1'
2252
- // }
2253
- // },
2254
- '^Scaled down replica set (.+) to (\\d+)$': {
2255
- gettext: gettext$1('Replica set "{{replicaSetName}}" scaled down to "{{scaleNumber}}".'),
2256
- placeholders: {
2257
- replicaSetName: '$1',
2258
- scaleNumber: '$2'
2259
- }
2260
- },
2261
- '^Deleted pod: (.+)$': {
2262
- gettext: gettext$1('Pod "{{imageName}}" deleted.'),
2263
- placeholders: {
2264
- imageName: '$1'
2265
- }
2266
- },
2267
- '^Container image "(.+)" already present on machine$': {
2268
- gettext: gettext$1('Container image "{{imageName}}" already exists.'),
2269
- placeholders: {
2270
- imageName: '$1'
2271
- }
2272
- },
2273
- '^Error updating tenant! Cannot insert second configuration for Password code grant internal/Bad Request$': {
2274
- gettext: gettext$1('This login mode was already set by another administrator. Refresh the page to update the data.')
2275
- },
2276
- // Translations for audit logs
2277
- '^Application deleted$': {
2278
- gettext: gettext$1('Application deleted')
2433
+ '^Error while processing report$': {
2434
+ gettext: gettext$1('Error while processing report')
2279
2435
  },
2280
- '^Microservice application "(.+?)" deleted for tenant "(.+?)"$': {
2281
- gettext: gettext$1('Microservice application "{{appName}}" deleted for tenant "{{tenant}}"'),
2436
+ '^Expected 1 endpointId argument$': {
2437
+ gettext: gettext$1('Expected 1 endpointId argument')
2438
+ }
2439
+ };
2440
+
2441
+ const PATTERN_MESSAGES_SIMULATION = {
2442
+ '^Command state is invalid: (.+)$': {
2443
+ gettext: gettext$1('Command state is invalid: {{violations}}'),
2282
2444
  placeholders: {
2283
- appName: '$1',
2284
- tenant: '$2'
2445
+ violations: {
2446
+ capture: '$1',
2447
+ translate: {
2448
+ '(\\w+?) - may not be null': {
2449
+ gettext: gettext$1('"{{field}}" must not be null'),
2450
+ placeholders: {
2451
+ field: '$1'
2452
+ }
2453
+ }
2454
+ }
2455
+ }
2285
2456
  }
2286
2457
  },
2287
- '^Hosted application "(.+?)" deleted for tenant "(.+?)"$': {
2288
- gettext: gettext$1('Hosted application "{{appName}}" deleted for tenant "{{tenant}}"'),
2458
+ '^Simulator state is invalid: (.+)$': {
2459
+ gettext: gettext$1('Simulator state is invalid: {{violations}}'),
2289
2460
  placeholders: {
2290
- appName: '$1',
2291
- tenant: '$2'
2461
+ violations: {
2462
+ capture: '$1',
2463
+ translate: {
2464
+ '(\\w+?) - may not be null': {
2465
+ gettext: gettext$1('"{{field}}" should not be null'),
2466
+ placeholders: {
2467
+ field: '$1'
2468
+ }
2469
+ },
2470
+ '(\\w+?) - must be less than or equal to (\\d+)': {
2471
+ gettext: gettext$1('"{{field}}" must be less than or equal to {{maxValue}}'),
2472
+ placeholders: {
2473
+ field: '$1',
2474
+ maxValue: '$2'
2475
+ }
2476
+ },
2477
+ '(\\w+?) - should not contain null values': {
2478
+ gettext: gettext$1('"{{field}}" should not contain null values'),
2479
+ placeholders: {
2480
+ field: '$1'
2481
+ }
2482
+ },
2483
+ '(\\w+?) - must be true': {
2484
+ gettext: gettext$1('"{{field}}" must be true'),
2485
+ placeholders: {
2486
+ field: '$1'
2487
+ }
2488
+ },
2489
+ '(\\w+?) - must not be empty': {
2490
+ gettext: gettext$1('"{{field}}" must not be empty'),
2491
+ placeholders: {
2492
+ field: '$1'
2493
+ }
2494
+ }
2495
+ }
2496
+ }
2292
2497
  }
2293
- },
2294
- '^External application "(.+?)" deleted for tenant "(.+?)"$': {
2295
- gettext: gettext$1('External application "{{appName}}" deleted for tenant "{{tenant}}"'),
2498
+ }
2499
+ };
2500
+
2501
+ const PATTERN_MESSAGE_REMOTE_ACCESS = {
2502
+ '^Could not login to ssh server on endpoint "(.+)"\\. Provided credential for user "(.+)" is incorrect\\.$': {
2503
+ gettext: gettext$1('Could not access SSH server on endpoint "{{endpointName}}". Provided credentials for user "{{userName}}" are incorrect.'),
2296
2504
  placeholders: {
2297
- appName: '$1',
2298
- tenant: '$2'
2505
+ endpointName: '$1',
2506
+ userName: '$2'
2299
2507
  }
2300
2508
  },
2301
- '^Application activated$': {
2302
- gettext: gettext$1('Application activated')
2303
- },
2304
- '^Microservice application "(.+?)" activated: version \\[(.+?)\\] added, activeVersionId \\[(.+?)\\] added$': {
2305
- gettext: gettext$1('Microservice application "{{appName}}" activated: version "{{version}}" added, activeVersionId "{{activeVersionId}}" added'),
2509
+ '^Could not connect to endpoint (.+)\\. Could not verify `(.+)` host key with fingerprint `(.+)` for `(.+)` on port (.+)\\. If you expected that key, please remove the previous one from configuration to allow for connection\\.$': {
2510
+ gettext: gettext$1('Could not connect to endpoint "{{endpointName}}". Could not verify {{keyType}} host key with fingerprint {{fingerprint}} for host {{host}} on port {{port}}. If you expected this key, please remove the previous one from configuration to allow for connection.'),
2306
2511
  placeholders: {
2307
- appName: '$1',
2308
- version: '$2',
2309
- activeVersionId: '$3'
2512
+ endpointName: '$1',
2513
+ keyType: '$2',
2514
+ fingerprint: '$3',
2515
+ host: '$4',
2516
+ port: '$5'
2310
2517
  }
2311
2518
  },
2312
- '^Hosted application "(.+?)" activated: version \\[(.+?)\\] added, activeVersionId \\[(.+?)\\] added$': {
2313
- gettext: gettext$1('Hosted application "{{appName}}" activated: version "{{version}}" added, activeVersionId "{{activeVersionId}}" added'),
2519
+ '^Could not save object remoteAccessUpdate: (.+)$': {
2520
+ gettext: '{{errorMessages}}',
2314
2521
  placeholders: {
2315
- appName: '$1',
2316
- version: '$2',
2317
- activeVersionId: '$3'
2522
+ errorMessages: {
2523
+ capture: '$1',
2524
+ translate: {
2525
+ 'Could not recognize host-key format': {
2526
+ gettext: gettext$1('Could not recognize "Host key" format')
2527
+ },
2528
+ 'Could not recognize key-pair format': {
2529
+ gettext: gettext$1('Could not recognize the format of "Public key" or "Private key"')
2530
+ }
2531
+ }
2532
+ }
2318
2533
  }
2319
2534
  },
2320
- '^Hosted application "(.+?)" activated: activeVersionId \\[\'(.+?)\'\\] added$': {
2321
- gettext: gettext$1('Hosted application "{{appName}}" activated: activeVersionId "{{activeVersionId}}" added'),
2322
- placeholders: {
2323
- appName: '$1',
2324
- activeVersionId: '$2'
2325
- }
2535
+ '^Password cipher does not match$': {
2536
+ gettext: gettext$1('Password cipher does not match.')
2326
2537
  },
2327
- '^External application "(.+?)" activated: version \\[(.+?)\\] added, activeVersionId \\[(.+?)\\] added$': {
2328
- gettext: gettext$1('External application "{{appName}}" activated: version "{{version}}" added, activeVersionId "{{activeVersionId}}" added'),
2329
- placeholders: {
2330
- appName: '$1',
2331
- version: '$2',
2332
- activeVersionId: '$3'
2333
- }
2538
+ '^Private key must be provided in KEY_PAIR credentials$': {
2539
+ gettext: gettext$1('Private key must be provided when "Public/private keys" option is selected.')
2334
2540
  },
2335
- '^(.+?) user logged in to the platform with OAuth internal login mode$': {
2336
- gettext: gettext$1('"{{name}}" user logged in to the platform with OAI-Secure login mode'),
2541
+ '^Protocol "(.+?)" does not support "(.+?)" credentials type$': {
2542
+ gettext: gettext$1('Protocol "{{protocol}}" does not support "{{credentialsType}}" credentials type.'),
2337
2543
  placeholders: {
2338
- name: '$1'
2544
+ protocol: '$1',
2545
+ credentialsType: '$2'
2339
2546
  }
2340
2547
  },
2341
- "^Scaling application '(.+?)' from (.+?) to (.+?) instances$": {
2342
- gettext: gettext$1('Scaling application "{{appName}}" from {{from}} to {{to}} instances'),
2343
- placeholders: {
2344
- appName: '$1',
2345
- from: '$2',
2346
- to: '$3'
2347
- }
2548
+ '^Private key cipher does not match$': {
2549
+ gettext: gettext$1('Private key cipher does not match')
2550
+ }
2551
+ };
2552
+
2553
+ const PATTERN_MESSAGES_BULKREGISTRATION = {
2554
+ '^A bulk registration CSV template showing all mandatory fields$': {
2555
+ gettext: gettext$1('A bulk registration CSV template showing all mandatory fields')
2348
2556
  },
2349
- '^User logout$': {
2350
- gettext: gettext$1('User logout')
2557
+ '^A bulk registration CSV template for NO_SEC devices with all optional fields$': {
2558
+ gettext: gettext$1('A bulk registration CSV template for NO_SEC devices with all optional fields')
2351
2559
  },
2352
- '^(.+?) user logout$': {
2353
- gettext: gettext$1('"{{name}}" user logout'),
2354
- placeholders: {
2355
- name: '$1'
2356
- }
2560
+ '^A general bulk registration CSV template showing all possible fields$': {
2561
+ gettext: gettext$1('A general bulk registration CSV template showing all possible fields')
2357
2562
  },
2358
- '^Authentication with id: (.+?) configuration updated.$': {
2359
- gettext: gettext$1('Authentication configuration with ID "{{id}}" updated.'),
2360
- placeholders: {
2361
- id: '$1'
2362
- }
2563
+ '^A bulk registration CSV template for PSK devices with all optional fields$': {
2564
+ gettext: gettext$1('A bulk registration CSV template for PSK devices with all optional fields')
2363
2565
  },
2364
- '^Authentication configuration with id: (.+?) added.$': {
2365
- gettext: gettext$1('Authentication configuration with ID "{{id}}" added.'),
2566
+ '^CSV file contained empty dataset$': {
2567
+ gettext: gettext$1('No entries found in uploaded CSV file.')
2568
+ }
2569
+ };
2570
+
2571
+ const PATTERN_MESSAGE_DATABROKER = {
2572
+ '^Cycle detected for route (.+?)!$': {
2573
+ gettext: gettext$1('Cycle detected for route {{route}}.'),
2366
2574
  placeholders: {
2367
- id: '$1'
2575
+ route: '$1'
2368
2576
  }
2369
2577
  },
2370
- '^Configuration type: basic.$': {
2371
- gettext: gettext$1('Configuration type: Basic Auth.')
2372
- },
2373
- '^Configuration type: oauth2_internal.$': {
2374
- gettext: gettext$1('Configuration type: OAI-Secure.')
2578
+ '^Data broker processing is currently overloaded and may stop forwarding your data\\. Please contact support\\.$': {
2579
+ gettext: gettext$1('Data broker processing is currently overloaded and may stop forwarding your data. Please contact support.')
2375
2580
  },
2376
- '^Configuration type: oauth2.$': {
2377
- gettext: gettext$1('Configuration type: Single sign-on.')
2581
+ '^Data broker processing is not able to connect do destination tenant, thus data forwarding is not working\\. Please contact support\\.$': {
2582
+ gettext: gettext$1('Data broker processing is not able to connect to destination tenant, thus data forwarding is not working. Please contact support.')
2378
2583
  },
2379
- '^Device put into maintenance state$': {
2380
- gettext: gettext$1('Device put into maintenance state')
2584
+ '^Duplicated connector for instanceUrl (.+?)!$': {
2585
+ gettext: gettext$1('Target URL {{targetUrl}} already used by another connector.'),
2586
+ placeholders: {
2587
+ targetUrl: '$1'
2588
+ }
2381
2589
  },
2382
- '^device with id: (.+?) is put into maintenance state$': {
2383
- gettext: gettext$1('Device with ID "{{deviceId}}" is put into maintenance state'),
2590
+ '^Duplicated connector for name (.+?)!$': {
2591
+ gettext: gettext$1('Connector name "{{name}}" already used by another connector.'),
2384
2592
  placeholders: {
2385
- deviceId: '$1'
2593
+ name: '$1'
2386
2594
  }
2387
2595
  },
2388
2596
  '^Connector updated$': {
@@ -2430,131 +2638,224 @@ const MESSAGES_CORE_I18N = {
2430
2638
  oldConfig: '$2',
2431
2639
  newConfig: '$3'
2432
2640
  }
2641
+ }
2642
+ };
2643
+
2644
+ const PATTERN_MESSAGES_SMARTREST = {
2645
+ "^Message with ID (.+?) doesn't exist in smart rest template (.+?)$": {
2646
+ gettext: gettext$1('Message with ID "{{messageId}}" doesn\'t exist in SmartREST template with ID "{{templateId}}"'),
2647
+ placeholders: {
2648
+ messageId: '$1',
2649
+ templateId: '$2'
2650
+ }
2433
2651
  },
2434
- '^Can read all data of the asset and manage all inventory data, but cannot perform operations. Can also acknowledge and clear alarms. Can create and updates dashboards.$': {
2435
- gettext: gettext$1('Can read all data of the asset and manage all inventory data, but cannot perform operations. Can also acknowledge and clear alarms. Can create and updates dashboards.')
2436
- },
2437
- '^Operations: All$': {
2438
- gettext: gettext$1('Operations: All')
2652
+ "^Smart rest template (.+?) doesn't exist$": {
2653
+ gettext: gettext$1('SmartREST template with ID "{{templateId}}" doesn\'t exist.'),
2654
+ placeholders: {
2655
+ templateId: '$1'
2656
+ }
2657
+ }
2658
+ };
2659
+
2660
+ const PATTERN_MESSAGES_OPTIONS = {
2661
+ '^Option created$': {
2662
+ gettext: gettext$1('Option created.')
2439
2663
  },
2440
- '^Can remotely manage the assets by sending operations to the device. This includes for example remote configuration, software update, etc.$': {
2441
- gettext: gettext$1('Can remotely manage the assets by sending operations to the device. This includes remote configuration, software update and more.')
2664
+ '^Option "(.+?)" created$': {
2665
+ gettext: gettext$1('Option "{{option}}" created.'),
2666
+ placeholders: {
2667
+ option: '$1'
2668
+ }
2442
2669
  },
2443
- '^Operations: Restart Device$': {
2444
- gettext: gettext$1('Operations: Restart Device')
2670
+ '^Option deleted$': {
2671
+ gettext: gettext$1('Option deleted.')
2445
2672
  },
2446
- '^Can restart devices.$': {
2447
- gettext: gettext$1('Can restart devices.')
2673
+ '^Option "(.+?)" deleted$': {
2674
+ gettext: gettext$1('Option "{{option}}" deleted.'),
2675
+ placeholders: {
2676
+ option: '$1'
2677
+ }
2448
2678
  },
2449
- '^Reader$': {
2450
- gettext: gettext$1('Reader')
2679
+ '^unable to find option with given key (.+?) : Could not find entity Option by ID (.+?)!$': {
2680
+ gettext: gettext$1('Unable to get tenant option: "{{option}}".'),
2681
+ placeholders: {
2682
+ option: '$2'
2683
+ }
2451
2684
  },
2452
- '^Can read all data of the asset.$': {
2453
- gettext: gettext$1('Can read all data of the asset.')
2685
+ '^unable to find option with given key (.+?) : There is no system property for key (.+?)$': {
2686
+ gettext: gettext$1('Unable to get system option: "{{option}}".'),
2687
+ placeholders: {
2688
+ option: '$2'
2689
+ }
2690
+ }
2691
+ };
2692
+
2693
+ const PATTERN_MESSAGES_DATAHUB = {
2694
+ '^DATAHUB_ADMINISTRATOR$': {
2695
+ gettext: gettext$1('DataHub Administrator')
2454
2696
  },
2455
- // Default global roles' names and descriptions:
2456
- // Description for 'admins' role
2457
- '^Enables administrative permissions. The first user created for the tenant receives this role$': {
2458
- gettext: gettext$1('Enables administrative permissions. The first user created for the tenant receives this role.')
2697
+ '^Can conduct administrative tasks and manage offloading pipelines$': {
2698
+ gettext: gettext$1('Can conduct administrative tasks and manage offloading pipelines.')
2459
2699
  },
2460
- // Description for 'business' role
2461
- '^Can access all devices and their data but has no management permission in the tenant$': {
2462
- gettext: gettext$1('Can access all devices and their data but has no management permission in the tenant.')
2700
+ '^DATAHUB_MANAGER$': {
2701
+ gettext: gettext$1('DataHub Manager')
2463
2702
  },
2464
- '^CEP Manager$': {
2465
- gettext: gettext$1('CEP Manager')
2703
+ '^Can manage offloading pipelines$': {
2704
+ gettext: gettext$1('Can manage offloading pipelines.')
2466
2705
  },
2467
- '^Has full access to all deployed CEP modules and SmartRules$': {
2468
- gettext: gettext$1('Has full access to all deployed CEP modules and smart rules.')
2706
+ '^DATAHUB_READER$': {
2707
+ gettext: gettext$1('DataHub Reader')
2469
2708
  },
2470
- '^Devicemanagement User$': {
2471
- gettext: gettext$1('Device Management User')
2709
+ '^Can execute SQL queries against the data in the data lake$': {
2710
+ gettext: gettext$1('Can execute SQL queries against the data in the data lake.')
2711
+ }
2712
+ };
2713
+
2714
+ const PATTERN_MESSAGES_LPWAN = {
2715
+ '^Authentication to the Loriot platform failed with status code (.+?). Check if the credentials are correct or if Session ID is expired.$': {
2716
+ gettext: gettext$1('Authentication to the LORIOT platform failed with status code {{ statusCode }}. Check if the credentials are correct or if session ID is expired.'),
2717
+ placeholders: {
2718
+ statusCode: '$1'
2719
+ }
2472
2720
  },
2473
- '^Gives access to bulk operations and device management application. This does not include access to any device data.$': {
2474
- gettext: gettext$1('Gives access to bulk operations and Device Management application. This does not include access to any device data.')
2721
+ '^Authentication to the Loriot platform failed with status code (.+?). Check if the base URL, credentials are correct and the application with the given ID exists.$': {
2722
+ gettext: gettext$1('Authentication to the LORIOT platform failed with status code {{ statusCode }}. Check if the base URL, credentials are correct and the application with the given ID exists.'),
2723
+ placeholders: {
2724
+ statusCode: '$1'
2725
+ }
2475
2726
  },
2476
- // Description for 'devices' role
2477
- '^A role marker for device users. After registration, a device automatically has this role$': {
2478
- gettext: gettext$1('A role marker for device users. After registration, a device automatically has this role.')
2727
+ '^Application output creation failed due to status code (.+?)$': {
2728
+ gettext: gettext$1('Application output creation failed due to status code {{ statusCode }}.'),
2729
+ placeholders: {
2730
+ statusCode: '$1'
2731
+ }
2479
2732
  },
2480
- '^Global Manager$': {
2481
- gettext: gettext$1('Global Manager')
2733
+ '^Application output update failed due to status code (.+?)$': {
2734
+ gettext: gettext$1('Application output update failed due to status code {{ statusCode }}.'),
2735
+ placeholders: {
2736
+ statusCode: '$1'
2737
+ }
2482
2738
  },
2483
- '^Can read and write all data from all devices$': {
2484
- gettext: gettext$1('Can read and write all data from all devices.')
2739
+ '^Error creating the device due to status code (.+?). Check if the application Id, devEui, appEui and appKey are in the correct format or the device limit has been exceeded or has been registered with another account in the Loriot provider$': {
2740
+ gettext: gettext$1('Error creating the device due to status code {{ statusCode }}. Check if the application name, Device EUI, Application EUI and Application key are in the correct format or the device limit has been exceeded or has been registered with another account in the LORIOT provider.'),
2741
+ placeholders: {
2742
+ statusCode: '$1'
2743
+ }
2485
2744
  },
2486
- '^Global Reader$': {
2487
- gettext: gettext$1('Global Reader')
2745
+ '^Error retrieving application with given ID: (.+?) with status code 400. Check if the applicationId provided is in the correct format$': {
2746
+ gettext: gettext$1('Error retrieving application with given ID: {{ applicationId }} with status code 400. Check if the selected application is correct'),
2747
+ placeholders: {
2748
+ applicationId: '$1'
2749
+ }
2488
2750
  },
2489
- '^Can read all data from all devices$': {
2490
- gettext: gettext$1('Can read all data from all devices.')
2751
+ "^LNS connection name can't be null or blank.$": {
2752
+ gettext: gettext$1("LNS connection name can't be empty.")
2491
2753
  },
2492
- '^Cockpit User$': {
2493
- gettext: gettext$1('Cockpit User')
2754
+ '^Unexpected error occurred while accessing the cached LNS connections map with key (.+?)$': {
2755
+ gettext: gettext$1('Unexpected error occurred while accessing the cached LNS connections map with key "{{ connectionName }}".'),
2756
+ placeholders: {
2757
+ connectionName: '$1'
2758
+ }
2494
2759
  },
2495
- '^User to work in Cockpit application. This does not include the access to any device data.$': {
2496
- gettext: gettext$1('User to work in Cockpit application. This does not include the access to any device data.')
2760
+ "^LNS connection named (.+?) doesn't exist.$": {
2761
+ gettext: gettext$1('LNS connection named "{{ connectionName }}" doesn\'t exist.'),
2762
+ placeholders: {
2763
+ connectionName: '$1'
2764
+ }
2497
2765
  },
2498
- '^Global User Manager$': {
2499
- gettext: gettext$1('Global User Manager')
2766
+ '^LNS connection named (.+?) already exists.$': {
2767
+ gettext: gettext$1('LNS connection named "{{ connectionName }}" already exists.'),
2768
+ placeholders: {
2769
+ connectionName: '$1'
2770
+ }
2500
2771
  },
2501
- '^Can access and modify the full user hierarchy$': {
2502
- gettext: gettext$1('Can access and edit the full user hierarchy.')
2772
+ "^New LNS connection can't be null.$": {
2773
+ gettext: gettext$1("New LNS connection can't be empty.")
2503
2774
  },
2504
- // '^readers$': {
2505
- // gettext: gettext('Reader')
2506
- // },
2507
- '^Can read all data \\(including users, in contrast to "Global Reader"\\)$': {
2508
- gettext: gettext$1('Can read all data (including users, in contrast to "Global Reader").')
2775
+ "^LNS connection to update can't be null.$": {
2776
+ gettext: gettext$1("LNS connection to update can't be empty.")
2509
2777
  },
2510
- '^Shared User Manager$': {
2511
- gettext: gettext$1('Shared User Manager')
2778
+ "^The name of the LNS connection to update can't be null.$": {
2779
+ gettext: gettext$1("The name of the LNS connection to update can't be empty.")
2512
2780
  },
2513
- '^Can create new user as his own sub-users and manage this$': {
2514
- gettext: gettext$1('Can create new own sub-users and manage them.')
2781
+ '^Can not delete the LNS connection with name "(.+?)" as it\'s associated with (.+?) device(s).$': {
2782
+ gettext: gettext$1('Could not delete the LNS connection with the name "{{ connectionName }}" as it\'s associated with {{ numberOfDevices }} device(s).'),
2783
+ placeholders: {
2784
+ connectionName: '$1',
2785
+ numberOfDevices: '$2'
2786
+ }
2515
2787
  },
2516
- '^Tenant Manager$': {
2517
- gettext: gettext$1('Tenant Manager')
2788
+ '^Can not update the LNS connection with name "(.+?)" as it\'s associated with (.+?) device(s).$': {
2789
+ gettext: gettext$1('Could not update the LNS connection with the name "{{ connectionName }}" as it\'s associated with {{ numberOfDevices }} device(s).'),
2790
+ placeholders: {
2791
+ connectionName: '$1',
2792
+ numberOfDevices: '$2'
2793
+ }
2518
2794
  },
2519
- '^Can manage tenant wide configurations like applications, tenant options and retention rules$': {
2520
- gettext: gettext$1('Can manage tenant wide configurations like applications, tenant options and retention rules.')
2795
+ '^Authentication to the Actility platform failed with status code (.+?). Check if the credentials are correct.$': {
2796
+ gettext: gettext$1('Authentication to the Actility platform failed with status code {{ statusCode }}. Check if the credentials are correct.'),
2797
+ placeholders: {
2798
+ statusCode: '$1'
2799
+ }
2521
2800
  },
2522
- // DataHub global roles' names and descriptions:
2523
- '^DATAHUB_ADMINISTRATOR$': {
2524
- gettext: gettext$1('DataHub Administrator')
2801
+ '^Authentication to the Actility platform failed with status code (.+?). Check if the profile Id is correct.$': {
2802
+ gettext: gettext$1('Authentication to the Actility platform failed with status code {{ statusCode }}. Check if the Profile ID is correct.'),
2803
+ placeholders: {
2804
+ statusCode: '$1'
2805
+ }
2525
2806
  },
2526
- '^Can conduct administrative tasks and manage offloading pipelines$': {
2527
- gettext: gettext$1('Can conduct administrative tasks and manage offloading pipelines.')
2807
+ '^Authentication to the Actility platform failed. Check if the base URL (.+?) is correct.$': {
2808
+ gettext: gettext$1('Authentication to the Actility platform failed. Check if the base URL {{ baseUrl }} is correct.'),
2809
+ placeholders: {
2810
+ baseUrl: '$1'
2811
+ }
2528
2812
  },
2529
- '^DATAHUB_MANAGER$': {
2530
- gettext: gettext$1('DataHub Manager')
2813
+ '^Authentication to the Sigfox platform failed. Check if the base URL (.+) is correct.$': {
2814
+ gettext: gettext$1('Authentication to the Sigfox platform failed. Check if the base URL {{ baseUrl }} is correct.'),
2815
+ placeholders: {
2816
+ baseUrl: '$1'
2817
+ }
2531
2818
  },
2532
- '^Can manage offloading pipelines$': {
2533
- gettext: gettext$1('Can manage offloading pipelines.')
2819
+ '^Authentication to the Sigfox platform failed. Check if the Parent group Id and/or the credentials are correct.$': {
2820
+ gettext: gettext$1('Authentication to the Sigfox platform failed. Check if the Parent group ID and/or the credentials are correct.')
2534
2821
  },
2535
- '^DATAHUB_READER$': {
2536
- gettext: gettext$1('DataHub Reader')
2822
+ '^Authentication to the Loriot platform failed with status code (.+?). Session Id might have expired.$': {
2823
+ gettext: gettext$1('Authentication to the LORIOT platform failed with status code {{ statusCode }}. Session ID might have expired.'),
2824
+ placeholders: {
2825
+ statusCode: '$1'
2826
+ }
2537
2827
  },
2538
- '^Can execute SQL queries against the data in the data lake$': {
2539
- gettext: gettext$1('Can execute SQL queries against the data in the data lake.')
2828
+ '^Authentication to the Actility platform failed with status code (.+?). Check if the base URL and/or the credentials are correct.$': {
2829
+ gettext: gettext$1('Authentication to the Actility platform failed with status code {{ statusCode }}. Check if the base URL and/or the credentials are correct.'),
2830
+ placeholders: {
2831
+ statusCode: '$1'
2832
+ }
2540
2833
  },
2541
- '^User "(.+?)" password was updated by user "(.+?)"$': {
2542
- gettext: gettext$1('"{{ targetUserName }}" user\'s password was updated by "{{ userName }}" user'),
2834
+ '^Error on deleting group: (.+?) : Role (.+?) is used in SSO dynamic access mapping$': {
2835
+ gettext: gettext$1('Role "{{ roleName }}" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration.'),
2543
2836
  placeholders: {
2544
- targetUserName: '$1',
2545
- userName: '$2'
2837
+ roleName: '$1'
2546
2838
  }
2547
2839
  },
2548
- '^User password update$': {
2549
- gettext: gettext$1('User password update')
2550
- },
2551
- '^User "(.+?)" password updated$': {
2552
- gettext: gettext$1('"{{ userName }}" user changed own password'),
2840
+ '^The series param (.+?) has wrong format. Valid format is (.+?)$': {
2841
+ gettext: gettext$1('The data cannot be retrieved because the fragment and series combination <code>{{ seriesParam }}</code> has an invalid format. Please verify your fragment and series selections in the data point configuration. The correct format should be <code>{{ validFormat }}</code>.'),
2553
2842
  placeholders: {
2554
- userName: '$1'
2843
+ seriesParam: '$1',
2844
+ validFormat: '$2'
2555
2845
  }
2556
2846
  },
2557
- // LWM2M strings (move to submodule when it's migrated from ng1)
2847
+ '^Http status code: 404\n{error="options/Not Found",message="Unable to find option by given key: sigfox-agent/provider.token",info="https://www.cumulocity.com/guides/reference-guide/#error_reporting",details="null"}$': {
2848
+ gettext: gettext$1('Unable to find option by given key: sigfox-agent/provider.token')
2849
+ },
2850
+ '^Creating device on LoRa platform failed$': {
2851
+ gettext: gettext$1('Could not create the device in the LoRa platform.')
2852
+ },
2853
+ '^No LoRa provider settings are found. Please configure the connectivity settings.$': {
2854
+ gettext: gettext$1('No LoRa provider settings are found. Please configure the connectivity settings.')
2855
+ }
2856
+ };
2857
+
2858
+ const PATTERN_MESSAGES_LWM2M = {
2558
2859
  '^LWM2M device type$': {
2559
2860
  gettext: gettext$1('LWM2M device type')
2560
2861
  },
@@ -2755,237 +3056,63 @@ const MESSAGES_CORE_I18N = {
2755
3056
  },
2756
3057
  '^NO_SEC template$': {
2757
3058
  gettext: gettext$1('NO_SEC template')
2758
- },
2759
- // LPWAN device registration and connectivity strings
2760
- '^Authentication to the Loriot platform failed with status code (.+?). Check if the credentials are correct or if Session ID is expired.$': {
2761
- gettext: gettext$1('Authentication to the LORIOT platform failed with status code {{ statusCode }}. Check if the credentials are correct or if session ID is expired.'),
2762
- placeholders: {
2763
- statusCode: '$1'
2764
- }
2765
- },
2766
- '^Authentication to the Loriot platform failed with status code (.+?). Check if the base URL, credentials are correct and the application with the given ID exists.$': {
2767
- gettext: gettext$1('Authentication to the LORIOT platform failed with status code {{ statusCode }}. Check if the base URL, credentials are correct and the application with the given ID exists.'),
2768
- placeholders: {
2769
- statusCode: '$1'
2770
- }
2771
- },
2772
- '^Application output creation failed due to status code (.+?)$': {
2773
- gettext: gettext$1('Application output creation failed due to status code {{ statusCode }}.'),
2774
- placeholders: {
2775
- statusCode: '$1'
2776
- }
2777
- },
2778
- '^Application output update failed due to status code (.+?)$': {
2779
- gettext: gettext$1('Application output update failed due to status code {{ statusCode }}.'),
2780
- placeholders: {
2781
- statusCode: '$1'
2782
- }
2783
- },
2784
- '^Error creating the device due to status code (.+?). Check if the application Id, devEui, appEui and appKey are in the correct format or the device limit has been exceeded or has been registered with another account in the Loriot provider$': {
2785
- gettext: gettext$1('Error creating the device due to status code {{ statusCode }}. Check if the application name, Device EUI, Application EUI and Application key are in the correct format or the device limit has been exceeded or has been registered with another account in the LORIOT provider.'),
2786
- placeholders: {
2787
- statusCode: '$1'
2788
- }
2789
- },
2790
- '^Error retrieving application with given ID: (.+?) with status code 400. Check if the applicationId provided is in the correct format$': {
2791
- gettext: gettext$1('Error retrieving application with given ID: {{ applicationId }} with status code 400. Check if the selected application is correct'),
2792
- placeholders: {
2793
- applicationId: '$1'
2794
- }
2795
- },
2796
- "^LNS connection name can't be null or blank.$": {
2797
- gettext: gettext$1("LNS connection name can't be empty.")
2798
- },
2799
- '^Unexpected error occurred while accessing the cached LNS connections map with key (.+?)$': {
2800
- gettext: gettext$1('Unexpected error occurred while accessing the cached LNS connections map with key "{{ connectionName }}".'),
2801
- placeholders: {
2802
- connectionName: '$1'
2803
- }
2804
- },
2805
- "^LNS connection named (.+?) doesn't exist.$": {
2806
- gettext: gettext$1('LNS connection named "{{ connectionName }}" doesn\'t exist.'),
2807
- placeholders: {
2808
- connectionName: '$1'
2809
- }
2810
- },
2811
- '^LNS connection named (.+?) already exists.$': {
2812
- gettext: gettext$1('LNS connection named "{{ connectionName }}" already exists.'),
2813
- placeholders: {
2814
- connectionName: '$1'
2815
- }
2816
- },
2817
- "^New LNS connection can't be null.$": {
2818
- gettext: gettext$1("New LNS connection can't be empty.")
2819
- },
2820
- "^LNS connection to update can't be null.$": {
2821
- gettext: gettext$1("LNS connection to update can't be empty.")
2822
- },
2823
- "^The name of the LNS connection to update can't be null.$": {
2824
- gettext: gettext$1("The name of the LNS connection to update can't be empty.")
2825
- },
2826
- '^Can not delete the LNS connection with name "(.+?)" as it\'s associated with (.+?) device(s).$': {
2827
- gettext: gettext$1('Could not delete the LNS connection with the name "{{ connectionName }}" as it\'s associated with {{ numberOfDevices }} device(s).'),
2828
- placeholders: {
2829
- connectionName: '$1',
2830
- numberOfDevices: '$2'
2831
- }
2832
- },
2833
- '^Can not update the LNS connection with name "(.+?)" as it\'s associated with (.+?) device(s).$': {
2834
- gettext: gettext$1('Could not update the LNS connection with the name "{{ connectionName }}" as it\'s associated with {{ numberOfDevices }} device(s).'),
2835
- placeholders: {
2836
- connectionName: '$1',
2837
- numberOfDevices: '$2'
2838
- }
2839
- },
2840
- '^Authentication to the Actility platform failed with status code (.+?). Check if the credentials are correct.$': {
2841
- gettext: gettext$1('Authentication to the Actility platform failed with status code {{ statusCode }}. Check if the credentials are correct.'),
2842
- placeholders: {
2843
- statusCode: '$1'
2844
- }
2845
- },
2846
- '^Authentication to the Actility platform failed with status code (.+?). Check if the profile Id is correct.$': {
2847
- gettext: gettext$1('Authentication to the Actility platform failed with status code {{ statusCode }}. Check if the Profile ID is correct.'),
2848
- placeholders: {
2849
- statusCode: '$1'
2850
- }
2851
- },
2852
- '^Authentication to the Actility platform failed. Check if the base URL (.+?) is correct.$': {
2853
- gettext: gettext$1('Authentication to the Actility platform failed. Check if the base URL {{ baseUrl }} is correct.'),
2854
- placeholders: {
2855
- baseUrl: '$1'
2856
- }
2857
- },
2858
- '^Authentication to the Sigfox platform failed. Check if the base URL (.+) is correct.$': {
2859
- gettext: gettext$1('Authentication to the Sigfox platform failed. Check if the base URL {{ baseUrl }} is correct.'),
2860
- placeholders: {
2861
- baseUrl: '$1'
2862
- }
2863
- },
2864
- '^Authentication to the Sigfox platform failed. Check if the Parent group Id and/or the credentials are correct.$': {
2865
- gettext: gettext$1('Authentication to the Sigfox platform failed. Check if the Parent group ID and/or the credentials are correct.')
2866
- },
2867
- '^Authentication to the Loriot platform failed with status code (.+?). Session Id might have expired.$': {
2868
- gettext: gettext$1('Authentication to the LORIOT platform failed with status code {{ statusCode }}. Session ID might have expired.'),
2869
- placeholders: {
2870
- statusCode: '$1'
2871
- }
2872
- },
2873
- '^Authentication to the Actility platform failed with status code (.+?). Check if the base URL and/or the credentials are correct.$': {
2874
- gettext: gettext$1('Authentication to the Actility platform failed with status code {{ statusCode }}. Check if the base URL and/or the credentials are correct.'),
2875
- placeholders: {
2876
- statusCode: '$1'
2877
- }
2878
- },
2879
- '^Error on deleting group: (.+?) : Role (.+?) is used in SSO dynamic access mapping$': {
2880
- gettext: gettext$1('Role "{{ roleName }}" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration.'),
2881
- placeholders: {
2882
- roleName: '$1'
2883
- }
2884
- },
2885
- '^The series param (.+?) has wrong format. Valid format is (.+?)$': {
2886
- gettext: gettext$1('The data cannot be retrieved because the fragment and series combination <code>{{ seriesParam }}</code> has an invalid format. Please verify your fragment and series selections in the data point configuration. The correct format should be <code>{{ validFormat }}</code>.'),
2887
- placeholders: {
2888
- seriesParam: '$1',
2889
- validFormat: '$2'
2890
- }
2891
- },
2892
- // Trusted certificate audit records
2893
- "^Trusted certificate updated on '(.+?)'\\.$": {
2894
- gettext: gettext$1('Trusted certificate updated on tenant "{{ tenantId }}"'),
2895
- placeholders: {
2896
- tenantId: '$1'
2897
- }
2898
- },
2899
- "^Trusted certificate deleted from '(.+?)'\\.$": {
2900
- gettext: gettext$1('Trusted certificate deleted from tenant "{{ tenantId }}"'),
2901
- placeholders: {
2902
- tenantId: '$1'
2903
- }
2904
- },
2905
- // Tenant Certificate Authority audit records
2906
- "^Tenant certificate authority\\(CA\\) created on '(.+?)'.*$": {
2907
- gettext: gettext$1('Tenant certificate authority (CA) created for tenant "{{ tenantId }}"'),
2908
- placeholders: {
2909
- tenantId: '$1'
2910
- }
2911
- },
2912
- "^Certificate fingerprint: '(.+?)'\\.\\n\\s*Certificate subject name: '(.+?)'\\.\\n$": {
2913
- gettext: gettext$1('Certificate fingerprint: "{{ fingerprint }}".\nCertificate subject name: "{{ subjectName }}".'),
2914
- placeholders: {
2915
- fingerprint: '$1',
2916
- subjectName: '$2'
2917
- }
2918
- },
2919
- "^Tenant certificate authority\\(CA\\) was renewed for Tenant: '(.+?)'.*$": {
2920
- gettext: gettext$1('Tenant certificate authority (CA) was renewed for tenant "{{ tenantId }}"'),
2921
- placeholders: {
2922
- tenantId: '$1'
2923
- }
2924
- },
2925
- "^Certificate fingerprint: '(.+?)'\\.\\n\\s*Certificate subject name: '(.+?)'\\.\\n\\s*NotAfter='(.+?)'.*$": {
2926
- gettext: gettext$1('Certificate fingerprint: "{{ fingerprint }}".\nCertificate subject name: "{{ subjectName }}".\nExpiration date: {{ expirationDate | absoluteDate }}.'),
2927
- placeholders: {
2928
- fingerprint: '$1',
2929
- subjectName: '$2',
2930
- expirationDate: '$3'
2931
- }
2932
- },
2933
- "^Certificate fingerprint: '(.+?)'\\.\\n\\s*Certificate subject name: '(.+?)'\\.\\n\\s*Status='(.+?)'.*$": {
2934
- gettext: gettext$1('Certificate fingerprint: "{{ fingerprint }}".\nCertificate subject name: "{{ subjectName }}".\nStatus: "{{ status }}".'),
2935
- placeholders: {
2936
- fingerprint: '$1',
2937
- subjectName: '$2',
2938
- status: '$3'
2939
- }
2940
- },
2941
- "^Tenant certificate authority\\(CA\\) renewal for Tenant: '(.+?)' failed.*$": {
2942
- gettext: gettext$1('Tenant certificate authority (CA) renewal for tenant "{{ tenantId }}" failed'),
2943
- placeholders: {
2944
- tenantId: '$1'
2945
- }
2946
- },
2947
- '^The CA certificate has not been refreshed\\.\\s+It may either still have sufficient remaining validity.*$': {
2948
- gettext: gettext$1('The CA certificate has not been renewed; however, it may still have sufficient validity remaining.')
2949
- },
2950
- "^Provisioned certificate stored in user object: '(.+?)'.*$": {
2951
- gettext: gettext$1('Provisioned certificate stored in user object: "{{ userName }}"'),
2952
- placeholders: {
2953
- userName: '$1'
2954
- }
2955
- },
2956
- "^Certificate serial number: '(.+?)'\\.\\n\\s*NotAfter='(.+?)'.*$": {
2957
- gettext: gettext$1('Certificate serial number: "{{ serialNumber }}".\nExpiration date: {{ expirationDate | absoluteDate }}.'),
2958
- placeholders: {
2959
- serialNumber: '$1',
2960
- expirationDate: '$2'
2961
- }
2962
- },
2963
- "^Provisioned certificates removed from user: '(.+?)'.*$": {
2964
- gettext: gettext$1('Provisioned certificates removed from user object: "{{ userName }}"'),
2965
- placeholders: {
2966
- userName: '$1'
2967
- }
2968
- },
2969
- '^Revoked serials: (.+?)$': {
2970
- gettext: gettext$1('Revoked serials: {{ revokedSerials }}'),
2971
- placeholders: {
2972
- revokedSerials: '$1'
2973
- }
2974
- },
2975
- "^Certificate serial number hex: '(.+?)'.*$": {
2976
- gettext: gettext$1('Certificate serial number: "{{ serialNumber }}"'),
2977
- placeholders: {
2978
- serialNumber: '$1'
2979
- }
2980
- },
2981
- '^Tenant certificate authority\\(CA\\) signed certificate for device: (.+?)\\.$': {
2982
- gettext: gettext$1('Tenant certificate authority (CA) signed certificate for device: "{{ deviceId }}".'),
2983
- placeholders: {
2984
- deviceId: '$1'
2985
- }
2986
3059
  }
2987
3060
  };
2988
3061
 
3062
+ const MESSAGES_CORE_I18N = {
3063
+ ...PATTERN_MESSAGES_ALARMS,
3064
+ ...PATTERN_MESSAGES_APPLICATIONS,
3065
+ ...PATTERN_MESSAGES_AUTHENTICATION,
3066
+ ...PATTERN_MESSAGES_DATAHUB,
3067
+ ...PATTERN_MESSAGES_BULKOPERATIONS,
3068
+ ...PATTERN_MESSAGES_BULKREGISTRATION,
3069
+ ...PATTERN_MESSAGES_CEP,
3070
+ ...PATTERN_MESSAGES_CERTIFICATES,
3071
+ ...PATTERN_MESSAGES_DEVICES,
3072
+ ...PATTERN_MESSAGES_FIRMWARE,
3073
+ ...PATTERN_MESSAGES_MICROSERVICES,
3074
+ ...PATTERN_MESSAGES_OPERATIONS,
3075
+ ...PATTERN_MESSAGES_ROLES,
3076
+ ...PATTERN_MESSAGES_TENANTS,
3077
+ ...PATTERN_MESSAGES_USERS,
3078
+ ...PATTERN_MESSAGES_LPWAN,
3079
+ ...PATTERN_MESSAGES_LWM2M,
3080
+ ...PATTERN_MESSAGE_REMOTE_ACCESS,
3081
+ ...PATTERN_MESSAGE_DATABROKER,
3082
+ ...PATTERN_MESSAGES_SIMULATION,
3083
+ ...PATTERN_MESSAGES_SMARTREST,
3084
+ ...PATTERN_MESSAGES_OPTIONS,
3085
+ ...PATTERN_MESSAGES_MISC
3086
+ };
3087
+
3088
+ /* tslint:disable:max-line-length */
3089
+ /**
3090
+ * Pattern-based i18n messages for Cumulocity IoT.
3091
+ *
3092
+ * This file re-exports all pattern messages from the patterns directory.
3093
+ * Each feature category has its own file for better maintainability:
3094
+ *
3095
+ * - alarms: Alarm-related messages
3096
+ * - applications: Application management messages
3097
+ * - authentication: Authentication and login messages
3098
+ * - bulk-operations: Bulk operation messages
3099
+ * - cep: CEP module messages
3100
+ * - certificates: Certificate and PKI messages
3101
+ * - connectors: Data broker and connector messages
3102
+ * - csv: CSV file messages
3103
+ * - devices: Device, LWM2M, LoRa, Sigfox, and device protocol messages
3104
+ * - firmware: Firmware and software messages
3105
+ * - microservices: Microservice, container, and Kubernetes messages
3106
+ * - operations: Operation and command messages
3107
+ * - roles: Role and permission messages
3108
+ * - tenants: Tenant and domain messages
3109
+ * - users: User management messages
3110
+ * - simulation: Simulation messages
3111
+ * - loriot: LORIOT provider messages
3112
+ * - remote-access: Remote access messages
3113
+ * - misc: Other miscellaneous messages
3114
+ */
3115
+
2989
3116
  /**
2990
3117
  * Messages required to translate texts of events sent by the datahub microservice.
2991
3118
  */