Showing
95 changed files
with
1683 additions
and
469 deletions
src/locales/lang/en/designer_config/actions/index.ts
renamed from
src/locales/lang/en/actions/index.ts
src/locales/lang/en/designer_config/enrichments/index.ts
renamed from
src/locales/lang/en/enrichments/index.ts
src/locales/lang/en/designer_config/externals/index.ts
renamed from
src/locales/lang/en/externals/index.ts
src/locales/lang/en/designer_config/filters/index.ts
renamed from
src/locales/lang/en/filters/index.ts
src/locales/lang/en/designer_config/flows/index.ts
renamed from
src/locales/lang/en/flows/index.ts
src/locales/lang/en/designer_config/transformations/index.ts
renamed from
src/locales/lang/en/transformations/index.ts
| 1 | +/** | ||
| 2 | + *规则链 动作 英文配置文件 | ||
| 3 | + 目前共有22个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + AssignToCustomerFieldsNameEnum: { | ||
| 7 | + CUSTOMER_NAME_PATTERN: 'Customer name pattern', | ||
| 8 | + CREATE_CUSTOMER_IF_NOT_EXISTS: 'Create new customer if not exists', | ||
| 9 | + CUSTOMER_CACHE_EXPIRATION: 'Customers cache expiration time(sec)', | ||
| 10 | + }, | ||
| 11 | + ClearAlarmFieldsNameEnum: { | ||
| 12 | + ALARM_TYPE: 'Alarm type', | ||
| 13 | + ALARM_DETAILS_BUILD_JS: 'Alarm details builder', | ||
| 14 | + }, | ||
| 15 | + CreateAlarmFieldsNameEnum: { | ||
| 16 | + ALARM_DETAILS_BUILD_JS: 'Alarm details builder', | ||
| 17 | + USE_MESSAGE_ALARM_DATA: 'Use message alarm data', | ||
| 18 | + OVERWRITE_ALARM_DETAILS: 'Overwrite alarm details', | ||
| 19 | + ALARM_TYPE: 'Alarm type', | ||
| 20 | + SEVERITY: 'Alarm severity pattern', | ||
| 21 | + PROPAGATE: 'Propagate alarm to related entities', | ||
| 22 | + RELATION_TYPES: 'Relation types to propagate', | ||
| 23 | + PROPAGATE_TO_OWNER: 'Propagate alarm to entity owner (Customer or Tenant)', | ||
| 24 | + PROPAGATE_TO_TENANT: 'Propagate alarm to Tenant', | ||
| 25 | + DYNAMIC_SEVERITY: 'Use alarm severity pattern', | ||
| 26 | + }, | ||
| 27 | + CreateRelationFieldsNameEnum: { | ||
| 28 | + DIRECTION: 'Direction', | ||
| 29 | + ENTITY_TYPE: 'Type', | ||
| 30 | + ENTITY_NAME_PATTERN: 'Name pattern', | ||
| 31 | + ENTITY_TYPE_PATTERN: 'Type pattern', | ||
| 32 | + RELATION_TYPE: 'Relation type pattern', | ||
| 33 | + CREATE_ENTITY_IF_NOT_EXISTS: 'Create new entity if not exists', | ||
| 34 | + REMOVE_CURRENT_RELATIONS: 'Remove current relations', | ||
| 35 | + CHANGE_ORIGINATOR_TO_RELATED_ENTITY: 'Change originator to related entity', | ||
| 36 | + ENTITY_CACHE_EXPIRATION: 'Entities cache expiration time(sec)', | ||
| 37 | + }, | ||
| 38 | + DelayDeprecatedFieldsNameEnum: { | ||
| 39 | + USE_METADATA_PERIOD_IN_SECONDS_PATTERNS: 'Use period in seconds pattern', | ||
| 40 | + PERIOD_IN_SECONDS: 'Period in seconds', | ||
| 41 | + PERIOD_IN_SECONDS_PATTERN: 'Period in seconds pattern', | ||
| 42 | + MAX_PENDING_MSGS: 'Maximum pending messages', | ||
| 43 | + }, | ||
| 44 | + DeleteRelationFieldsNameEnum: { | ||
| 45 | + DELETE_FOR_SINGLE_ENTITY: 'Delete relation to specific entity', | ||
| 46 | + DIRECTION: 'Direction', | ||
| 47 | + ENTITY_TYPE: 'Type', | ||
| 48 | + ENTITY_NAME_PATTERN: 'Name pattern', | ||
| 49 | + RELATION_TYPE: 'Relation type pattern', | ||
| 50 | + ENTITY_CACHE_EXPIRATION: 'Entities cache expiration time(sec)', | ||
| 51 | + }, | ||
| 52 | + DeviceProfileFieldsNameEnum: { | ||
| 53 | + PERSIST_ALARM_RULES_STATE: 'Persist state of alarm rules', | ||
| 54 | + FETCH_ALARM_RULES_STATE_ON_START: 'Fetch state of alarm rules', | ||
| 55 | + }, | ||
| 56 | + GeneratorFieldsNameEnum: { | ||
| 57 | + MSG_COUNT: 'Message count(0 - unlimited)', | ||
| 58 | + PERIOD_IN_SECONDS: 'Period in seconds', | ||
| 59 | + JS_SCRIPT: 'Generate', | ||
| 60 | + // ORIGINATOR_ID = '资产', | ||
| 61 | + ORIGINATOR_TYPE: 'Type', | ||
| 62 | + }, | ||
| 63 | + GpsGeofencingEventsFieldsNameEnum: { | ||
| 64 | + LATITUDE_KEY_NAME: 'Latitude key name', | ||
| 65 | + LONGITUDE_KEY_NAME: 'longitude key name', | ||
| 66 | + PERIMETER_TYPE: 'Perimeter type', | ||
| 67 | + FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA: 'Fetch perimeter information from message metadata', | ||
| 68 | + PERIMETER_KEY_NAME: 'Perimeter key name', | ||
| 69 | + CENTER_LATITUDE: 'Center Latitude', | ||
| 70 | + CENTER_LONGITUDE: 'Center Longitude', | ||
| 71 | + RANGE: 'Range', | ||
| 72 | + RANGE_UNIT: 'Range units', | ||
| 73 | + POLYGONS_DEFINITION: 'Polygon definition', | ||
| 74 | + MIN_INSIDE_DURATION: 'Minimal inside duration', | ||
| 75 | + MIN_INSIDE_DURATION_TIME_UNIT: 'Minimal inside duration time unit', | ||
| 76 | + MIN_OUTSIDE_DURATION: 'Minimal outside duration', | ||
| 77 | + MIN_OUTSIDE_DURATION_TIME_UNIT: 'Minimal outside duration time unit', | ||
| 78 | + }, | ||
| 79 | + LogFieldsNameEnum: { | ||
| 80 | + JS_SCRIPT: 'To string', | ||
| 81 | + }, | ||
| 82 | + MessageCountFieldsNameEnum: { | ||
| 83 | + INTERVAL: 'Interval in seconds', | ||
| 84 | + TELEMETRY_PREFIX: 'Output timeseries key prefix', | ||
| 85 | + }, | ||
| 86 | + PushToEdgeFieldsNameEnum: { | ||
| 87 | + SCOPE: 'Device Attribute Range', | ||
| 88 | + }, | ||
| 89 | + RpcCallReplyFieldsNameEnum: { | ||
| 90 | + REQUEST_ID_META_DATA_ATTRIBUTE: 'Request Id Metadata attribute name', | ||
| 91 | + }, | ||
| 92 | + RpcCallRequestFieldsNameEnum: { | ||
| 93 | + TIMEOUT_IN_SECONDS: 'Timeout in seconds', | ||
| 94 | + }, | ||
| 95 | + SaveAttributesFieldsNameEnum: { | ||
| 96 | + NOTIFY_DEVICE: 'Notify Device', | ||
| 97 | + SCOPE: 'Device Attribute Range', | ||
| 98 | + }, | ||
| 99 | + SaveEventFieldsNameEnum: { | ||
| 100 | + CONFIGURATION: 'configuration', | ||
| 101 | + }, | ||
| 102 | + SaveTimeseriesFieldsNameEnum: { | ||
| 103 | + DEFAULT_TTL: 'Default TTL in seconds', | ||
| 104 | + SKIP_LATEST_PERSISTENCE: 'Skit latest persistence', | ||
| 105 | + USE_SERVER_TS: 'Use server ts', | ||
| 106 | + }, | ||
| 107 | + SaveToCustomTableFieldsNameEnum: { | ||
| 108 | + FIELDS_MAPPING: 'Fields mapping', | ||
| 109 | + TABLE_NAME: 'Custom table name', | ||
| 110 | + }, | ||
| 111 | + UnassignFromCustomerFieldsNameEnum: { | ||
| 112 | + CUSTOMER_NAME_PATTERN: 'Customer name pattern', | ||
| 113 | + CUSTOMER_CACHE_EXPIRATION: 'Customer cache expiration time(sec)', | ||
| 114 | + }, | ||
| 115 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 属性集表单 英文配置文件 | ||
| 3 | + 目前共有10个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + CalculateDeltaFieldsNameEnum: { | ||
| 7 | + INPUT_VALUE_KEY: 'Input value key', | ||
| 8 | + OUTPUT_VALUE_KEY: 'Output value key', | ||
| 9 | + ROUND: 'Decimals', | ||
| 10 | + USE_CACHE: 'Use cache for latest value', | ||
| 11 | + TELL_FAILURE_IF_DELTA_IS_NEGATIVE: 'Tell Failure if delta is negative', | ||
| 12 | + ADD_PERIOD_BETWEEN_MSGS: 'Add period between messages', | ||
| 13 | + PERIOD_VALUE_KEY: 'Period value key', | ||
| 14 | + }, | ||
| 15 | + CustomerAttributesFieldsNameEnum: { | ||
| 16 | + ATTR_MAPING: 'Attributes mapping', | ||
| 17 | + TELEMETRY: 'Latest telemetry', | ||
| 18 | + }, | ||
| 19 | + CustomerDetailsFieldsNameEnum: { | ||
| 20 | + DETAILS_LIST: 'Select entity details', | ||
| 21 | + ADD_TO_METADATA: 'Add selected details to message metadata', | ||
| 22 | + }, | ||
| 23 | + OriginatorAttributesNameEnum: { | ||
| 24 | + TELL_FAILURE_IF_ABSENT: 'Tell Failure', | ||
| 25 | + CLIENT_ATTRIBUTE_NAMES: 'Client attributes', | ||
| 26 | + SHARED_ATTRIBUTE_NAMES: 'Shared attributes', | ||
| 27 | + SERVER_ATTRIBUTE_NAMES: 'Server attributes', | ||
| 28 | + LATEST_TS_KEY_NAMES: 'Latest timeseries', | ||
| 29 | + GET_LATEST_VALUE_WITH_TS: 'Fetch Latest telemetry with Timestamp', | ||
| 30 | + }, | ||
| 31 | + OriginatorFieldsNameEnum: { | ||
| 32 | + FIELDS_MAPPING: 'Fields mapping', | ||
| 33 | + }, | ||
| 34 | + OriginatorTelemetryFieldsNameEnum: { | ||
| 35 | + LATEST_TS_KEY_NAMES: 'Timeseries key', | ||
| 36 | + AGGREGATION: 'Data aggregation function', | ||
| 37 | + FETCH_MODE: 'Fetch Mode', | ||
| 38 | + ORDER_BY: 'Order by', | ||
| 39 | + LIMIT: 'Limit', | ||
| 40 | + USE_METADATA_INTERVAL_PATTERNS: 'Use interval patterns', | ||
| 41 | + START_INTERVAL: 'Start Interval', | ||
| 42 | + START_INTERVAL_TIME_UNIT: 'Start Interval Time Unit', | ||
| 43 | + END_INTERVAL: 'End Interval', | ||
| 44 | + END_INTERVAL_TIME_UNIT: 'End Interval Time Unit', | ||
| 45 | + START_INTERVAL_PATTERN: 'startIntervalPattern', | ||
| 46 | + END_INTERVAL_PATTERN: 'endIntervalPattern', | ||
| 47 | + }, | ||
| 48 | + RelatedAttributesFieldsNameEnum: { | ||
| 49 | + RELATIONS_QUERY: 'Relations query', | ||
| 50 | + ATTR_MAPPING: 'Attributes mapping', | ||
| 51 | + TELEMETRY: 'Latest telemetry', | ||
| 52 | + }, | ||
| 53 | + RelatedDeviceAttributeFieldsNameEnum: { | ||
| 54 | + DEVICE_RELATIONS_QUERY: 'DeviceRelationsQuery', | ||
| 55 | + TELL_FAILURE_IF_ABSENT: 'Tell Failure', | ||
| 56 | + CLIENT_ATTRIBUTE_NAMES: 'Client attributes', | ||
| 57 | + SHARED_ATTRIBUTE_NAMES: 'Shared attributes', | ||
| 58 | + SERVER_ATTRIBUTE_NAMES: 'Server attributes', | ||
| 59 | + LATEST_TS_KEY_NAMES: 'Latest timeseries', | ||
| 60 | + GET_LATEST_VALUE_WITH_TS: 'Fetch Latest telemetry with Timestamp', | ||
| 61 | + FETCH_LAST_LEVEL_ONLY: 'Obtain only the last level of association', | ||
| 62 | + // DEVICE_RELATIONS_QUERY | ||
| 63 | + DIRECTION: 'Direction', | ||
| 64 | + MAX_LEVEL: 'Max relation level', | ||
| 65 | + RELATION_TYPE: 'Association type', | ||
| 66 | + DEVICE_TYPES: 'Device Type', | ||
| 67 | + }, | ||
| 68 | + TenantAttributesFieldsNameEnum: { | ||
| 69 | + ATTR_MAPING: 'attrMapping', | ||
| 70 | + TELEMETRY: 'Latest telemetry', | ||
| 71 | + }, | ||
| 72 | + TenantDetailsFieldsNameEnum: { | ||
| 73 | + DETAILS_LIST: 'Add selected details to message metadata', | ||
| 74 | + ADD_TO_METADATA: 'Select entity details', | ||
| 75 | + }, | ||
| 76 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 外部的 英文配置文件 | ||
| 3 | + 目前共有11个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + AlarmNoticeFieldsNameEnum: { | ||
| 7 | + CONFIGURATION: 'configuration', | ||
| 8 | + }, | ||
| 9 | + AwsSnsFieldsNameEnum: { | ||
| 10 | + TOPIC_ARN_PATTERN: 'Topic ARN pattern', | ||
| 11 | + ACCESS_KEY_ID: 'AWS Access Key ID', | ||
| 12 | + SECRET_ACCESS_KEY: 'AWS Secret Access Key', | ||
| 13 | + REGION: 'AWS Region', | ||
| 14 | + }, | ||
| 15 | + AwsSqsFieldsNameEnum: { | ||
| 16 | + QUEUE_TYPE: 'Queue type', | ||
| 17 | + QUEUE_URL_PATTERN: 'Queue URL pattern', | ||
| 18 | + DELAY_SECONDS: 'Delay(seconds)', | ||
| 19 | + MESSAGE_ATTRIBUTES: 'Message attributes', | ||
| 20 | + ACCESS_KEY_ID: 'AWS Access Key ID', | ||
| 21 | + SECRET_ACCESS_KEY: 'AWS Secret Access Key', | ||
| 22 | + REGION: 'AWS Region', | ||
| 23 | + }, | ||
| 24 | + AzureIotHubFieldsNameEnum: { | ||
| 25 | + TOPIC_PATTERN: 'Topic', | ||
| 26 | + HOST: 'Hostname', | ||
| 27 | + PORT: 'port', | ||
| 28 | + CONNECT_TIMEOUT_SEC: 'connectTimeoutSec', | ||
| 29 | + CLIENT_ID: 'Device ID', | ||
| 30 | + CLEAN_SESSION: 'cleanSession', | ||
| 31 | + SSL: 'ssl', | ||
| 32 | + CREDENTIALS: 'credentials', | ||
| 33 | + TYPE: 'Credentials type', | ||
| 34 | + SAS_KEY: 'sasKey', | ||
| 35 | + CA_CERT: 'CA certificate file', | ||
| 36 | + CA_CERT_FILE_NAME: 'caCertFileName', | ||
| 37 | + PRIVATE_KEY: 'Client private key file', | ||
| 38 | + PRIVATE_KEY_FILE_NAME: 'privateKeyFileName', | ||
| 39 | + CERT: 'Client certificate file', | ||
| 40 | + CERT_FILE_NAME: 'certFileName', | ||
| 41 | + PASSWORD: 'Private key password', | ||
| 42 | + }, | ||
| 43 | + GcpPubsubFieldsNameEnum: { | ||
| 44 | + PROJECT_ID: 'GCP project ID', | ||
| 45 | + TOPIC_NAME: 'Topic name', | ||
| 46 | + SERVICE_ACCOUNT_KEY: 'GCP service account key file', | ||
| 47 | + SERVICE_ACCOUNT_KEY_FILE_NAME: 'serviceAccountKeyFileName', | ||
| 48 | + MESSAGE_ATTRIBUTES: 'Message attributes', | ||
| 49 | + }, | ||
| 50 | + KafkaFieldsNameEnum: { | ||
| 51 | + TOPIC_PATTERN: 'Topic pattern', | ||
| 52 | + BOOTSTRAP_SERVERS: 'Bootstrap servers', | ||
| 53 | + RETRIES: 'Automatically retry times if fails', | ||
| 54 | + BATCH_SIZE: 'Produces batch size in bytes', | ||
| 55 | + LINGER: 'Time to buffer locally(ms)', | ||
| 56 | + BUFFER_MEMORY: 'Client buffer max size in bytes', | ||
| 57 | + ACKS: 'Number of acknowledgments', | ||
| 58 | + KEY_SERIALIZER: 'Key serializer', | ||
| 59 | + VALUE_SERIALIZER: 'Value serializer', | ||
| 60 | + OTHER_PROPERTIES: 'Other properties', | ||
| 61 | + ADD_METADATA_KEY_VALUES_AS_KAFKA_HEADERS: | ||
| 62 | + 'Add Message metadata key-value pairs to Kafka record headers', | ||
| 63 | + KAFKA_HEADERS_CHARSET: 'Charset encoding', | ||
| 64 | + }, | ||
| 65 | + MqttFieldsNameEnum: { | ||
| 66 | + TOPIC_PATTERN: 'Topic pattern', | ||
| 67 | + HOST: 'Host', | ||
| 68 | + PORT: 'Port', | ||
| 69 | + CONNECT_TIMEOUT_SEC: 'Connection timeout(sec)', | ||
| 70 | + CLIENT_ID: 'Client ID', | ||
| 71 | + APPEND_CLIENT_ID_SUFFIX: 'Add Service ID as suffix to Client ID', | ||
| 72 | + CLEAN_SESSION: 'Clean session', | ||
| 73 | + SSL: 'Enable SSL', | ||
| 74 | + CREDENTIALS: 'credentials', | ||
| 75 | + | ||
| 76 | + TYPE: 'Credentials type', | ||
| 77 | + PASSWORD: 'Password', | ||
| 78 | + CA_CERT: 'Server CA certificate file', | ||
| 79 | + CA_CERT_FILE_NAME: 'caCertFileName', | ||
| 80 | + PRIVATE_KEY: 'Client private key file', | ||
| 81 | + PRIVATE_KEY_FILE_NAME: 'privateKeyFileName', | ||
| 82 | + CERT: 'Client certificate file', | ||
| 83 | + CERT_FILE_NAME: 'certFileName', | ||
| 84 | + USERNAME: 'Username', | ||
| 85 | + }, | ||
| 86 | + RabbitmqFieldsNameEnum: { | ||
| 87 | + EXCHANGE_NAME_PATTERN: 'Exchange name pattern', | ||
| 88 | + ROUTING_KEY_PATTERN: 'Routing key pattern', | ||
| 89 | + MESSAGE_PROPERTIES: 'Message properties', | ||
| 90 | + HOST: 'Host', | ||
| 91 | + PORT: 'Port', | ||
| 92 | + VIRTUAL_HOST: 'Virtual host', | ||
| 93 | + USERNAME: 'Username', | ||
| 94 | + PASSWORD: 'Password', | ||
| 95 | + AUTOMATIC_RECOVERY_ENABLED: 'Automatic recovery', | ||
| 96 | + CONNECTION_TIMEOUT: 'Connection timeout(ms)', | ||
| 97 | + HANDSHAKE_TIMEOUT: 'Handshake timeout(ms)', | ||
| 98 | + CLIENT_PROPERTIES: 'Client properties', | ||
| 99 | + }, | ||
| 100 | + RestApiCallFieldsNameEnum: { | ||
| 101 | + REST_ENDPOINT_URL_PATTERN: 'Endpoint URL pattern', | ||
| 102 | + REQUEST_METHOD: 'Request method', | ||
| 103 | + USE_SIMPLE_CLIENT_HTTP_FACTORY: 'Use simple client HTTP factory', | ||
| 104 | + IGNORE_REQUEST_BODY: 'Without request body', | ||
| 105 | + ENABLE_PROXY: 'Enable proxy', | ||
| 106 | + USE_SYSTEM_PROXY_PROPERTIES: 'Use system proxy properties', | ||
| 107 | + PROXY_SCHEME: 'Proxy scheme', | ||
| 108 | + PROXY_HOST: 'Proxy host', | ||
| 109 | + PROXY_PORT: 'Proxy port', | ||
| 110 | + PROXY_USER: 'Proxy user', | ||
| 111 | + PROXY_PASSWORD: 'Proxy password', | ||
| 112 | + READ_TIMEOUT_MS: 'Read timeout in millis', | ||
| 113 | + MAX_PARALLEL_REQUESTS_COUNT: 'Max number of parallel request', | ||
| 114 | + HEADERS: 'Header', | ||
| 115 | + USE_REDIS_QUEUE_FOR_MSG_PERSISTENCE: 'Use redis queue for message persistence', | ||
| 116 | + TRIM_QUEUE: 'Trim redis queue', | ||
| 117 | + MAX_QUEUE_SIZE: 'Redis queue max size', | ||
| 118 | + CREDENTIALS: 'Credentials', | ||
| 119 | + | ||
| 120 | + TYPE: 'Credentials type', | ||
| 121 | + PASSWORD: 'Password', | ||
| 122 | + CA_CERT: 'Server CA certificate file', | ||
| 123 | + CA_CERT_FILE_NAME: 'caCertFileName', | ||
| 124 | + PRIVATE_KEY: 'Client private key file', | ||
| 125 | + PRIVATE_KEY_FILE_NAME: 'privateKeyFileName', | ||
| 126 | + CERT: 'Client certificate file', | ||
| 127 | + CERT_FILE_NAME: 'certFileName', | ||
| 128 | + USERNAME: 'Username', | ||
| 129 | + }, | ||
| 130 | + SendEmailFieldsNameEnum: { | ||
| 131 | + USE_SYSTEM_SMTP_SETTINGS: 'Use system SMTP settings', | ||
| 132 | + SMTP_PROTOCOL: 'Protocol', | ||
| 133 | + SMTP_HOST: 'SMTP host', | ||
| 134 | + SMTP_PORT: 'SMTP port', | ||
| 135 | + TIMEOUT: 'Timeout ms', | ||
| 136 | + ENABLE_TLS: 'Enable TLS', | ||
| 137 | + TLS_VERSION: 'TLS version', | ||
| 138 | + ENABLE_PROXY: 'Enable proxy', | ||
| 139 | + PROXY_HOST: 'Proxy host', | ||
| 140 | + PROXY_PORT: 'Proxy port', | ||
| 141 | + PROXY_USER: 'Proxy user', | ||
| 142 | + PROXY_PASSWORD: 'Proxy password', | ||
| 143 | + USERNAME: 'Username', | ||
| 144 | + PASSWORD: 'Password', | ||
| 145 | + }, | ||
| 146 | + SendSMSFieldsNameEnum: { | ||
| 147 | + NUMBERS_TO_TEMPLATE: 'Phone Numbers To Template', | ||
| 148 | + SMS_MESSAGE_TEMPLATE: 'SMS message Template', | ||
| 149 | + USE_SYSTEM_SMS_SETTINGS: 'User system SMS provider settings', | ||
| 150 | + SMS_PROVIDER_CONFIGURATION: 'smsProviderConfiguration', | ||
| 151 | + | ||
| 152 | + ACCESS_KEY_ID: 'AWS Access Key ID', | ||
| 153 | + SECRET_ACCESS_KEY: 'AWS Access Key', | ||
| 154 | + REGION: 'AWS Area', | ||
| 155 | + TYPE: 'SMS Service provider type', | ||
| 156 | + NUMBER_FROM: "Sender's phone number", | ||
| 157 | + ACCOUNT_SID: 'Twilio Account SID', | ||
| 158 | + ACCOUNT_TOKEN: 'Twilio Account Token', | ||
| 159 | + }, | ||
| 160 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 筛选器表单 英文配置文件 | ||
| 3 | + 目前共有11个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + CheckAlarmStatusFieldNameEnum: { | ||
| 7 | + ALARM_STATUS_LIST: 'Alarm status filter', | ||
| 8 | + }, | ||
| 9 | + CheckExistenceFieldsNameEnum: { | ||
| 10 | + MESSAGE_NAMES: 'Message data', | ||
| 11 | + METADATA_NAMES: 'Message metadata', | ||
| 12 | + CHECK_ALL_KEYS: 'Check that all selected keys are present', | ||
| 13 | + }, | ||
| 14 | + CheckRelationFieldsNameEnum: { | ||
| 15 | + DIRECTION: 'Direction', | ||
| 16 | + CHECK_FOR_SINGLE_ENTITY: 'Check relation to specific entity', | ||
| 17 | + ENTITY_TYPE: 'Type', | ||
| 18 | + RELEATION_TYPE: 'Association type', | ||
| 19 | + }, | ||
| 20 | + GpsGeofencingFilterFieldsNameEnum: { | ||
| 21 | + LATITUDE_KEY_NAME: 'Latitude Key Name', | ||
| 22 | + LONGITUDE_KEY_NAME: 'Longitude Key Name', | ||
| 23 | + PERIMETER_TYPE: 'Perimeter Type', | ||
| 24 | + FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA: 'Fetch perimeter information from message metadata', | ||
| 25 | + CENTER_LATITUDE: 'Center latitude', | ||
| 26 | + CENTER_LONGITUDE: 'Center longitude', | ||
| 27 | + RANGE: 'Range', | ||
| 28 | + RANGE_UNIT: 'Range unit', | ||
| 29 | + PERIMETER_KEY_NAME: 'Perimeter key name', | ||
| 30 | + POLYGONS_DEFINITION: 'Polygons definition', | ||
| 31 | + }, | ||
| 32 | + MessageTypeFieldsNameEnum: { | ||
| 33 | + MESSAGE_TYPES: 'Message Types Filter', | ||
| 34 | + }, | ||
| 35 | + OriginatorTypeFieldsNameEnum: { | ||
| 36 | + ORIGINATOR_TYPES: 'Originator types filter', | ||
| 37 | + }, | ||
| 38 | + ScriptFieldsNameEnum: { | ||
| 39 | + JS_SCRIPT: 'Filter', | ||
| 40 | + }, | ||
| 41 | + SwitchFieldsNameEnum: { | ||
| 42 | + JS_SCRIPT: 'Filter', | ||
| 43 | + }, | ||
| 44 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 变换 英文配置文件 | ||
| 3 | + 目前共有3个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + ChangeOriginatorFieldsNameEnum: { | ||
| 7 | + ORIGINATOR_SOURCE: 'Originator source', | ||
| 8 | + RELATIONS_QUERY: 'Relations Query', | ||
| 9 | + }, | ||
| 10 | + ScriptFieldsNameEnum: { | ||
| 11 | + JS_SCRIPT: 'Transform', | ||
| 12 | + }, | ||
| 13 | + ToEmailFieldsNameEnum: { | ||
| 14 | + FROM_TEMPLATE: 'From Template', | ||
| 15 | + TO_TEMPLATE: 'To Template', | ||
| 16 | + CC_TEMPLATE: 'Cc Template', | ||
| 17 | + BCC_TEMPLATE: 'Bcc Template', | ||
| 18 | + SUBJECT_TEMPLATE: 'Subject Template', | ||
| 19 | + MAIL_BODY_TYPE: 'Mail body type', | ||
| 20 | + IS_HTML_TEMPLATE: 'Dynamic mail body type', | ||
| 21 | + BODY_TEMPLATE: 'Body Template', | ||
| 22 | + }, | ||
| 23 | +}; |
src/locales/lang/zh-CN/designer_config/actions/index.ts
renamed from
src/locales/lang/zh-CN/actions/index.ts
src/locales/lang/zh-CN/designer_config/enrichments/index.ts
renamed from
src/locales/lang/zh-CN/enrichments/index.ts
src/locales/lang/zh-CN/designer_config/externals/index.ts
renamed from
src/locales/lang/zh-CN/externals/index.ts
src/locales/lang/zh-CN/designer_config/filters/index.ts
renamed from
src/locales/lang/zh-CN/filters/index.ts
src/locales/lang/zh-CN/designer_config/flows/index.ts
renamed from
src/locales/lang/zh-CN/flows/index.ts
src/locales/lang/zh-CN/designer_config/transformations/index.ts
renamed from
src/locales/lang/zh-CN/transformations/index.ts
| 1 | +/** | ||
| 2 | + *规则链 动作 中文配置文件 | ||
| 3 | + 目前共有22个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + AssignToCustomerFieldsNameEnum: { | ||
| 7 | + CUSTOMER_NAME_PATTERN: '客户名称模式', | ||
| 8 | + CREATE_CUSTOMER_IF_NOT_EXISTS: '创建新客户(如果不存在)', | ||
| 9 | + CUSTOMER_CACHE_EXPIRATION: '客户缓存过期时间(秒)', | ||
| 10 | + }, | ||
| 11 | + ClearAlarmFieldsNameEnum: { | ||
| 12 | + ALARM_TYPE: '报警类型', | ||
| 13 | + ALARM_DETAILS_BUILD_JS: '报警详细信息生成器', | ||
| 14 | + }, | ||
| 15 | + CreateAlarmFieldsNameEnum: { | ||
| 16 | + ALARM_DETAILS_BUILD_JS: '报警详细信息生成器', | ||
| 17 | + USE_MESSAGE_ALARM_DATA: '使用消息报警数据', | ||
| 18 | + OVERWRITE_ALARM_DETAILS: '覆盖报警详细信息', | ||
| 19 | + ALARM_TYPE: '报警类型', | ||
| 20 | + SEVERITY: '报警严重性模式', | ||
| 21 | + PROPAGATE: '向相关实体传播警报', | ||
| 22 | + RELATION_TYPES: '要传播的关系类型', | ||
| 23 | + PROPAGATE_TO_OWNER: '向实体所有者(客户或租户)传播警报', | ||
| 24 | + PROPAGATE_TO_TENANT: '向租户传播警报', | ||
| 25 | + DYNAMIC_SEVERITY: '使用警报严重性模式', | ||
| 26 | + }, | ||
| 27 | + CreateRelationFieldsNameEnum: { | ||
| 28 | + DIRECTION: '方向', | ||
| 29 | + ENTITY_TYPE: '类型', | ||
| 30 | + ENTITY_NAME_PATTERN: '名称模式', | ||
| 31 | + ENTITY_TYPE_PATTERN: '类型模式', | ||
| 32 | + RELATION_TYPE: '关系类型模式', | ||
| 33 | + CREATE_ENTITY_IF_NOT_EXISTS: '如果不存在,则创建新实体', | ||
| 34 | + REMOVE_CURRENT_RELATIONS: '删除当前关系', | ||
| 35 | + CHANGE_ORIGINATOR_TO_RELATED_ENTITY: '将发起人变更为相关实体', | ||
| 36 | + ENTITY_CACHE_EXPIRATION: '实体缓存过期时间(秒)', | ||
| 37 | + }, | ||
| 38 | + DelayDeprecatedFieldsNameEnum: { | ||
| 39 | + USE_METADATA_PERIOD_IN_SECONDS_PATTERNS: '使用周期(秒)模式', | ||
| 40 | + PERIOD_IN_SECONDS: '周期(秒)', | ||
| 41 | + PERIOD_IN_SECONDS_PATTERN: '以秒为单位的周期模式', | ||
| 42 | + MAX_PENDING_MSGS: '最大挂起邮件数', | ||
| 43 | + }, | ||
| 44 | + DeleteRelationFieldsNameEnum: { | ||
| 45 | + DELETE_FOR_SINGLE_ENTITY: '删除与特定实体的关系', | ||
| 46 | + DIRECTION: '方向', | ||
| 47 | + ENTITY_TYPE: '类型', | ||
| 48 | + ENTITY_NAME_PATTERN: '名称模式', | ||
| 49 | + RELATION_TYPE: '关系类型模式', | ||
| 50 | + ENTITY_CACHE_EXPIRATION: '实体缓存过期时间(秒)', | ||
| 51 | + }, | ||
| 52 | + DeviceProfileFieldsNameEnum: { | ||
| 53 | + PERSIST_ALARM_RULES_STATE: '坚持报警规则的状态', | ||
| 54 | + FETCH_ALARM_RULES_STATE_ON_START: '获取报警规则的状态', | ||
| 55 | + }, | ||
| 56 | + GeneratorFieldsNameEnum: { | ||
| 57 | + MSG_COUNT: '邮件计数(0-无限制)', | ||
| 58 | + PERIOD_IN_SECONDS: '周期(秒)', | ||
| 59 | + JS_SCRIPT: '产生', | ||
| 60 | + // ORIGINATOR_ID = '资产', | ||
| 61 | + ORIGINATOR_TYPE: '类型', | ||
| 62 | + }, | ||
| 63 | + GpsGeofencingEventsFieldsNameEnum: { | ||
| 64 | + LATITUDE_KEY_NAME: '纬度键名称', | ||
| 65 | + LONGITUDE_KEY_NAME: '经度关键字名称', | ||
| 66 | + PERIMETER_TYPE: '周界类型', | ||
| 67 | + FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA: '从消息元数据中获取周边信息', | ||
| 68 | + PERIMETER_KEY_NAME: '周界密钥名称', | ||
| 69 | + CENTER_LATITUDE: '中心纬度', | ||
| 70 | + CENTER_LONGITUDE: '中心经度', | ||
| 71 | + RANGE: '范围', | ||
| 72 | + RANGE_UNIT: '量程单位', | ||
| 73 | + POLYGONS_DEFINITION: '范围单位多边形定义', | ||
| 74 | + MIN_INSIDE_DURATION: '最小内部持续时间', | ||
| 75 | + MIN_INSIDE_DURATION_TIME_UNIT: '最小内部持续时间单位', | ||
| 76 | + MIN_OUTSIDE_DURATION: '最小外部持续时间', | ||
| 77 | + MIN_OUTSIDE_DURATION_TIME_UNIT: '最小外部持续时间单位', | ||
| 78 | + }, | ||
| 79 | + LogFieldsNameEnum: { | ||
| 80 | + JS_SCRIPT: '转换成字符串', | ||
| 81 | + }, | ||
| 82 | + MessageCountFieldsNameEnum: { | ||
| 83 | + INTERVAL: '间隔(秒)', | ||
| 84 | + TELEMETRY_PREFIX: '输出时间序列密钥前缀', | ||
| 85 | + }, | ||
| 86 | + PushToEdgeFieldsNameEnum: { | ||
| 87 | + SCOPE: '设备属性范围', | ||
| 88 | + }, | ||
| 89 | + RpcCallReplyFieldsNameEnum: { | ||
| 90 | + REQUEST_ID_META_DATA_ATTRIBUTE: '请求Id元数据属性名称', | ||
| 91 | + }, | ||
| 92 | + RpcCallRequestFieldsNameEnum: { | ||
| 93 | + TIMEOUT_IN_SECONDS: '超时(秒)', | ||
| 94 | + }, | ||
| 95 | + SaveAttributesFieldsNameEnum: { | ||
| 96 | + NOTIFY_DEVICE: '通知设备', | ||
| 97 | + SCOPE: '设备属性范围', | ||
| 98 | + }, | ||
| 99 | + SaveEventFieldsNameEnum: { | ||
| 100 | + CONFIGURATION: '配置', | ||
| 101 | + }, | ||
| 102 | + SaveTimeseriesFieldsNameEnum: { | ||
| 103 | + DEFAULT_TTL: '默认TTL(秒)', | ||
| 104 | + SKIP_LATEST_PERSISTENCE: '滑雪最新坚持', | ||
| 105 | + USE_SERVER_TS: '使用服务器ts', | ||
| 106 | + }, | ||
| 107 | + SaveToCustomTableFieldsNameEnum: { | ||
| 108 | + FIELDS_MAPPING: '字段映射', | ||
| 109 | + TABLE_NAME: '自定义表名称', | ||
| 110 | + }, | ||
| 111 | + UnassignFromCustomerFieldsNameEnum: { | ||
| 112 | + CUSTOMER_NAME_PATTERN: '客户名称模式', | ||
| 113 | + CUSTOMER_CACHE_EXPIRATION: '客户缓存过期时间(秒)', | ||
| 114 | + }, | ||
| 115 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 属性集表单 中文配置文件 | ||
| 3 | + 目前共有11个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + CalculateDeltaFieldsNameEnum: { | ||
| 7 | + INPUT_VALUE_KEY: '输入值键', | ||
| 8 | + OUTPUT_VALUE_KEY: '输出值键', | ||
| 9 | + ROUND: '小数', | ||
| 10 | + USE_CACHE: '使用缓存获取最新值', | ||
| 11 | + TELL_FAILURE_IF_DELTA_IS_NEGATIVE: '如果delta为负数,则告知Failure', | ||
| 12 | + ADD_PERIOD_BETWEEN_MSGS: '在消息之间添加句点', | ||
| 13 | + PERIOD_VALUE_KEY: '期间值键', | ||
| 14 | + }, | ||
| 15 | + CustomerAttributesFieldsNameEnum: { | ||
| 16 | + ATTR_MAPING: '属性映射', | ||
| 17 | + TELEMETRY: '最新遥测', | ||
| 18 | + }, | ||
| 19 | + CustomerDetailsFieldsNameEnum: { | ||
| 20 | + DETAILS_LIST: '选择实体详细信息', | ||
| 21 | + ADD_TO_METADATA: '将选定的详细信息添加到消息元数据', | ||
| 22 | + }, | ||
| 23 | + OriginatorAttributesNameEnum: { | ||
| 24 | + TELL_FAILURE_IF_ABSENT: '告知失败', | ||
| 25 | + CLIENT_ATTRIBUTE_NAMES: '客户端属性', | ||
| 26 | + SHARED_ATTRIBUTE_NAMES: '共享属性', | ||
| 27 | + SERVER_ATTRIBUTE_NAMES: '服务器属性', | ||
| 28 | + LATEST_TS_KEY_NAMES: '最新时间序列', | ||
| 29 | + GET_LATEST_VALUE_WITH_TS: '获取带有时间戳的最新遥测', | ||
| 30 | + }, | ||
| 31 | + OriginatorFieldsNameEnum: { | ||
| 32 | + FIELDS_MAPPING: '字段映射', | ||
| 33 | + }, | ||
| 34 | + OriginatorTelemetryFieldsNameEnum: { | ||
| 35 | + LATEST_TS_KEY_NAMES: '时间序列键', | ||
| 36 | + AGGREGATION: '数据聚合功能', | ||
| 37 | + FETCH_MODE: '提取模式', | ||
| 38 | + ORDER_BY: '升序', | ||
| 39 | + LIMIT: '限制', | ||
| 40 | + USE_METADATA_INTERVAL_PATTERNS: '使用间隔模式', | ||
| 41 | + START_INTERVAL: '启动间隔', | ||
| 42 | + START_INTERVAL_TIME_UNIT: '开始间隔时间单位', | ||
| 43 | + END_INTERVAL: '结束间隔', | ||
| 44 | + END_INTERVAL_TIME_UNIT: '结束间隔时间单位', | ||
| 45 | + START_INTERVAL_PATTERN: '开始间隔模式', | ||
| 46 | + END_INTERVAL_PATTERN: '结束间隔模式', | ||
| 47 | + }, | ||
| 48 | + RelatedAttributesFieldsNameEnum: { | ||
| 49 | + RELATIONS_QUERY: '关系查询', | ||
| 50 | + ATTR_MAPPING: '属性映射', | ||
| 51 | + TELEMETRY: '最新遥测', | ||
| 52 | + }, | ||
| 53 | + RelatedDeviceAttributeFieldsNameEnum: { | ||
| 54 | + DEVICE_RELATIONS_QUERY: '设备关系查询', | ||
| 55 | + TELL_FAILURE_IF_ABSENT: '告知失败', | ||
| 56 | + CLIENT_ATTRIBUTE_NAMES: '客户端属性', | ||
| 57 | + SHARED_ATTRIBUTE_NAMES: '共享属性', | ||
| 58 | + SERVER_ATTRIBUTE_NAMES: '服务器属性', | ||
| 59 | + LATEST_TS_KEY_NAMES: '最新时间序列', | ||
| 60 | + GET_LATEST_VALUE_WITH_TS: '获取带有时间戳的最新遥测', | ||
| 61 | + FETCH_LAST_LEVEL_ONLY: '仅获取最后一级关联', | ||
| 62 | + // DEVICE_RELATIONS_QUERY | ||
| 63 | + DIRECTION: '方向', | ||
| 64 | + MAX_LEVEL: '最大关系级别', | ||
| 65 | + RELATION_TYPE: '关联类型', | ||
| 66 | + DEVICE_TYPES: '设备类型', | ||
| 67 | + }, | ||
| 68 | + TenantAttributesFieldsNameEnum: { | ||
| 69 | + ATTR_MAPING: '属性映射', | ||
| 70 | + TELEMETRY: '最新遥测', | ||
| 71 | + }, | ||
| 72 | + TenantDetailsFieldsNameEnum: { | ||
| 73 | + DETAILS_LIST: '将选定的详细信息添加到消息元数据', | ||
| 74 | + ADD_TO_METADATA: '选择实体详细信息', | ||
| 75 | + }, | ||
| 76 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 外部的 中文配置文件 | ||
| 3 | + 目前共有11个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + AlarmNoticeFieldsNameEnum: { | ||
| 7 | + CONFIGURATION: '配置', | ||
| 8 | + }, | ||
| 9 | + AwsSnsFieldsNameEnum: { | ||
| 10 | + TOPIC_ARN_PATTERN: '主题ARN模式', | ||
| 11 | + ACCESS_KEY_ID: 'AWS访问密钥ID', | ||
| 12 | + SECRET_ACCESS_KEY: 'AWS秘密访问密钥', | ||
| 13 | + REGION: 'AWS地区', | ||
| 14 | + }, | ||
| 15 | + AwsSqsFieldsNameEnum: { | ||
| 16 | + QUEUE_TYPE: '队列类型', | ||
| 17 | + QUEUE_URL_PATTERN: '队列URL模式', | ||
| 18 | + DELAY_SECONDS: '延迟(秒)', | ||
| 19 | + MESSAGE_ATTRIBUTES: '消息属性', | ||
| 20 | + ACCESS_KEY_ID: 'AWS访问密钥ID', | ||
| 21 | + SECRET_ACCESS_KEY: 'AWS秘密访问密钥', | ||
| 22 | + REGION: 'AWS地区', | ||
| 23 | + }, | ||
| 24 | + AzureIotHubFieldsNameEnum: { | ||
| 25 | + TOPIC_PATTERN: '话题', | ||
| 26 | + HOST: '主机名', | ||
| 27 | + PORT: '端口', | ||
| 28 | + CONNECT_TIMEOUT_SEC: '连接超时秒', | ||
| 29 | + CLIENT_ID: '设备ID', | ||
| 30 | + CLEAN_SESSION: '清理会话', | ||
| 31 | + SSL: '安全套接层', | ||
| 32 | + CREDENTIALS: '证书', | ||
| 33 | + TYPE: '证书类型', | ||
| 34 | + SAS_KEY: 'sas密钥', | ||
| 35 | + CA_CERT: 'CA证书文件', | ||
| 36 | + CA_CERT_FILE_NAME: 'ca证书文件名', | ||
| 37 | + PRIVATE_KEY: '客户端私钥文件', | ||
| 38 | + PRIVATE_KEY_FILE_NAME: '私钥文件名', | ||
| 39 | + CERT: '客户端证书文件', | ||
| 40 | + CERT_FILE_NAME: '证书文件名', | ||
| 41 | + PASSWORD: '私钥密码', | ||
| 42 | + }, | ||
| 43 | + GcpPubsubFieldsNameEnum: { | ||
| 44 | + PROJECT_ID: 'GCP项目ID', | ||
| 45 | + TOPIC_NAME: '主题名称', | ||
| 46 | + SERVICE_ACCOUNT_KEY: 'GCP服务帐户密钥文件', | ||
| 47 | + SERVICE_ACCOUNT_KEY_FILE_NAME: '服务帐户密钥文件名', | ||
| 48 | + MESSAGE_ATTRIBUTES: '消息属性', | ||
| 49 | + }, | ||
| 50 | + KafkaFieldsNameEnum: { | ||
| 51 | + TOPIC_PATTERN: '主题模式', | ||
| 52 | + BOOTSTRAP_SERVERS: '引导服务器', | ||
| 53 | + RETRIES: '失败时自动重试次数', | ||
| 54 | + BATCH_SIZE: '生成以字节为单位的批大小', | ||
| 55 | + LINGER: '本地缓冲时间(ms)', | ||
| 56 | + BUFFER_MEMORY: '客户端缓冲区最大大小(字节)', | ||
| 57 | + ACKS: '确认数量', | ||
| 58 | + KEY_SERIALIZER: '密钥序列化程序', | ||
| 59 | + VALUE_SERIALIZER: '值序列化程序', | ||
| 60 | + OTHER_PROPERTIES: '其他财产', | ||
| 61 | + ADD_METADATA_KEY_VALUES_AS_KAFKA_HEADERS: '向Kafka记录头添加消息元数据键值对', | ||
| 62 | + KAFKA_HEADERS_CHARSET: '字符集编码', | ||
| 63 | + }, | ||
| 64 | + MqttFieldsNameEnum: { | ||
| 65 | + TOPIC_PATTERN: '主题模式', | ||
| 66 | + HOST: '主机', | ||
| 67 | + PORT: '端口', | ||
| 68 | + CONNECT_TIMEOUT_SEC: '连接超时(秒)', | ||
| 69 | + CLIENT_ID: '客户端ID', | ||
| 70 | + APPEND_CLIENT_ID_SUFFIX: '将服务ID作为后缀添加到客户端ID', | ||
| 71 | + CLEAN_SESSION: '清洁会话', | ||
| 72 | + SSL: '启用SSL', | ||
| 73 | + CREDENTIALS: '凭证', | ||
| 74 | + | ||
| 75 | + TYPE: '凭证类型', | ||
| 76 | + PASSWORD: '密码', | ||
| 77 | + CA_CERT: '服务器CA证书文件', | ||
| 78 | + CA_CERT_FILE_NAME: 'ca证书文件名', | ||
| 79 | + PRIVATE_KEY: '客户端私钥文件', | ||
| 80 | + PRIVATE_KEY_FILE_NAME: '私钥文件名', | ||
| 81 | + CERT: '客户端证书文件', | ||
| 82 | + CERT_FILE_NAME: '证书文件名', | ||
| 83 | + USERNAME: '用户名', | ||
| 84 | + }, | ||
| 85 | + RabbitmqFieldsNameEnum: { | ||
| 86 | + EXCHANGE_NAME_PATTERN: 'Exchange名称模式', | ||
| 87 | + ROUTING_KEY_PATTERN: '路由密钥模式', | ||
| 88 | + MESSAGE_PROPERTIES: '消息属性', | ||
| 89 | + HOST: '主机', | ||
| 90 | + PORT: '端口', | ||
| 91 | + VIRTUAL_HOST: '虚拟主机', | ||
| 92 | + USERNAME: '用户名', | ||
| 93 | + PASSWORD: '密码', | ||
| 94 | + AUTOMATIC_RECOVERY_ENABLED: '自动恢复', | ||
| 95 | + CONNECTION_TIMEOUT: '连接超时(秒)', | ||
| 96 | + HANDSHAKE_TIMEOUT: '握手超时(ms)', | ||
| 97 | + CLIENT_PROPERTIES: '客户机属性', | ||
| 98 | + }, | ||
| 99 | + RestApiCallFieldsNameEnum: { | ||
| 100 | + REST_ENDPOINT_URL_PATTERN: '端点URL模式', | ||
| 101 | + REQUEST_METHOD: '请求方法', | ||
| 102 | + USE_SIMPLE_CLIENT_HTTP_FACTORY: '使用简单的客户端HTTP工厂', | ||
| 103 | + IGNORE_REQUEST_BODY: '无请求正文', | ||
| 104 | + ENABLE_PROXY: '启用代理', | ||
| 105 | + USE_SYSTEM_PROXY_PROPERTIES: '使用系统代理属性', | ||
| 106 | + PROXY_SCHEME: '代理协议', | ||
| 107 | + PROXY_HOST: '代理主机', | ||
| 108 | + PROXY_PORT: '代理端口', | ||
| 109 | + PROXY_USER: '代理用户', | ||
| 110 | + PROXY_PASSWORD: '代码密码', | ||
| 111 | + READ_TIMEOUT_MS: '读取超时(毫秒)', | ||
| 112 | + MAX_PARALLEL_REQUESTS_COUNT: '最大并行请求数', | ||
| 113 | + HEADERS: '头部', | ||
| 114 | + USE_REDIS_QUEUE_FOR_MSG_PERSISTENCE: '使用redis队列进行消息持久化', | ||
| 115 | + TRIM_QUEUE: '修剪redis队列', | ||
| 116 | + MAX_QUEUE_SIZE: 'Redis队列最大大小', | ||
| 117 | + CREDENTIALS: '凭据', | ||
| 118 | + | ||
| 119 | + TYPE: '凭据类型', | ||
| 120 | + PASSWORD: '密码', | ||
| 121 | + CA_CERT: '服务器CA证书文件', | ||
| 122 | + CA_CERT_FILE_NAME: 'ca证书文件名', | ||
| 123 | + PRIVATE_KEY: '客户端私钥文件', | ||
| 124 | + PRIVATE_KEY_FILE_NAME: '私钥文件名', | ||
| 125 | + CERT: '客户端证书文件', | ||
| 126 | + CERT_FILE_NAME: '证书文件名', | ||
| 127 | + USERNAME: '用户名', | ||
| 128 | + }, | ||
| 129 | + SendEmailFieldsNameEnum: { | ||
| 130 | + USE_SYSTEM_SMTP_SETTINGS: '使用系统SMTP设置', | ||
| 131 | + SMTP_PROTOCOL: '协议', | ||
| 132 | + SMTP_HOST: 'SMTP主机', | ||
| 133 | + SMTP_PORT: 'SMTP端口', | ||
| 134 | + TIMEOUT: '超时(ms)', | ||
| 135 | + ENABLE_TLS: '启用TLS', | ||
| 136 | + TLS_VERSION: 'TLS 版本', | ||
| 137 | + ENABLE_PROXY: '启用代理', | ||
| 138 | + PROXY_HOST: '代理主机', | ||
| 139 | + PROXY_PORT: '代理端口', | ||
| 140 | + PROXY_USER: '代理用户', | ||
| 141 | + PROXY_PASSWORD: '代理密码', | ||
| 142 | + USERNAME: '用户名', | ||
| 143 | + PASSWORD: '密码', | ||
| 144 | + }, | ||
| 145 | + SendSMSFieldsNameEnum: { | ||
| 146 | + NUMBERS_TO_TEMPLATE: '发送模板的电话号码', | ||
| 147 | + SMS_MESSAGE_TEMPLATE: 'SMS消息模板', | ||
| 148 | + USE_SYSTEM_SMS_SETTINGS: '用户系统短信提供商设置', | ||
| 149 | + SMS_PROVIDER_CONFIGURATION: 'sms提供商配置', | ||
| 150 | + | ||
| 151 | + ACCESS_KEY_ID: 'AWS访问密钥ID', | ||
| 152 | + SECRET_ACCESS_KEY: 'AWS访问密钥', | ||
| 153 | + REGION: 'AWS地区', | ||
| 154 | + TYPE: 'SMS服务商类型', | ||
| 155 | + NUMBER_FROM: '发送方电话号码', | ||
| 156 | + ACCOUNT_SID: 'Twilio账户SID', | ||
| 157 | + ACCOUNT_TOKEN: 'Twilio账户令牌', | ||
| 158 | + }, | ||
| 159 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 筛选器表单 中文配置文件 | ||
| 3 | + 目前共有11个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + CheckAlarmStatusFieldNameEnum: { | ||
| 7 | + ALARM_STATUS_LIST: '报警状态过滤器', | ||
| 8 | + }, | ||
| 9 | + CheckExistenceFieldsNameEnum: { | ||
| 10 | + MESSAGE_NAMES: '消息数据', | ||
| 11 | + METADATA_NAMES: '消息元数据', | ||
| 12 | + CHECK_ALL_KEYS: '检查所有选择的键是否都存在', | ||
| 13 | + }, | ||
| 14 | + CheckRelationFieldsNameEnum: { | ||
| 15 | + DIRECTION: '方向', | ||
| 16 | + CHECK_FOR_SINGLE_ENTITY: '检查与特定实体的关系', | ||
| 17 | + ENTITY_TYPE: '类型', | ||
| 18 | + RELEATION_TYPE: '关联类型', | ||
| 19 | + }, | ||
| 20 | + GpsGeofencingFilterFieldsNameEnum: { | ||
| 21 | + LATITUDE_KEY_NAME: '纬度键名称', | ||
| 22 | + LONGITUDE_KEY_NAME: '经度键名称', | ||
| 23 | + PERIMETER_TYPE: '周长类型', | ||
| 24 | + FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA: '从消息元数据中获取周边信息', | ||
| 25 | + CENTER_LATITUDE: '中心纬度', | ||
| 26 | + CENTER_LONGITUDE: '中心经度', | ||
| 27 | + RANGE: '范围', | ||
| 28 | + RANGE_UNIT: '范围的单位', | ||
| 29 | + PERIMETER_KEY_NAME: '周界密钥名称', | ||
| 30 | + POLYGONS_DEFINITION: '多边形定义', | ||
| 31 | + }, | ||
| 32 | + MessageTypeFieldsNameEnum: { | ||
| 33 | + MESSAGE_TYPES: '消息类型筛选器', | ||
| 34 | + }, | ||
| 35 | + OriginatorTypeFieldsNameEnum: { | ||
| 36 | + ORIGINATOR_TYPES: '发起人类型过滤器', | ||
| 37 | + }, | ||
| 38 | + ScriptFieldsNameEnum: { | ||
| 39 | + JS_SCRIPT: '过滤器', | ||
| 40 | + }, | ||
| 41 | + SwitchFieldsNameEnum: { | ||
| 42 | + JS_SCRIPT: '过滤器', | ||
| 43 | + }, | ||
| 44 | +}; |
| 1 | +/** | ||
| 2 | + *规则链 变换 中文配置文件 | ||
| 3 | + 目前共有3个,分类按名称进行配置 | ||
| 4 | + */ | ||
| 5 | +export default { | ||
| 6 | + ChangeOriginatorFieldsNameEnum: { | ||
| 7 | + ORIGINATOR_SOURCE: '发起人来源', | ||
| 8 | + RELATIONS_QUERY: '关系查询', | ||
| 9 | + }, | ||
| 10 | + ScriptFieldsNameEnum: { | ||
| 11 | + JS_SCRIPT: '变换', | ||
| 12 | + }, | ||
| 13 | + ToEmailFieldsNameEnum: { | ||
| 14 | + FROM_TEMPLATE: '来自模板', | ||
| 15 | + TO_TEMPLATE: '到模板', | ||
| 16 | + CC_TEMPLATE: '抄送模板', | ||
| 17 | + BCC_TEMPLATE: '密件抄送模板', | ||
| 18 | + SUBJECT_TEMPLATE: '主题模板', | ||
| 19 | + MAIL_BODY_TYPE: '邮件正文类型', | ||
| 20 | + IS_HTML_TEMPLATE: '动态邮件正文类型', | ||
| 21 | + BODY_TEMPLATE: '正文模板', | ||
| 22 | + }, | ||
| 23 | +}; |
| 1 | +import { useI18n } from '/@/hooks/web/useI18n'; | ||
| 2 | + | ||
| 3 | +const { t } = useI18n() as any; //加载国际化 | ||
| 4 | + | ||
| 1 | // Assign to customer | 5 | // Assign to customer |
| 2 | export enum AssignToCustomerFieldsEnum { | 6 | export enum AssignToCustomerFieldsEnum { |
| 3 | CUSTOMER_NAME_PATTERN = 'customerNamePattern', | 7 | CUSTOMER_NAME_PATTERN = 'customerNamePattern', |
| @@ -6,9 +10,15 @@ export enum AssignToCustomerFieldsEnum { | @@ -6,9 +10,15 @@ export enum AssignToCustomerFieldsEnum { | ||
| 6 | } | 10 | } |
| 7 | 11 | ||
| 8 | export enum AssignToCustomerFieldsNameEnum { | 12 | export enum AssignToCustomerFieldsNameEnum { |
| 9 | - CUSTOMER_NAME_PATTERN = 'Customer name pattern', | ||
| 10 | - CREATE_CUSTOMER_IF_NOT_EXISTS = 'Create new customer if not exists', | ||
| 11 | - CUSTOMER_CACHE_EXPIRATION = 'Customers cache expiration time(sec)', | 13 | + CUSTOMER_NAME_PATTERN = t( |
| 14 | + 'designer_form_label.actions.index.AssignToCustomerFieldsNameEnum.CUSTOMER_NAME_PATTERN' | ||
| 15 | + ), | ||
| 16 | + CREATE_CUSTOMER_IF_NOT_EXISTS = t( | ||
| 17 | + 'designer_form_label.actions.index.AssignToCustomerFieldsNameEnum.CREATE_CUSTOMER_IF_NOT_EXISTS' | ||
| 18 | + ), | ||
| 19 | + CUSTOMER_CACHE_EXPIRATION = t( | ||
| 20 | + 'designer_form_label.actions.index.AssignToCustomerFieldsNameEnum.CUSTOMER_CACHE_EXPIRATION' | ||
| 21 | + ), | ||
| 12 | } | 22 | } |
| 13 | 23 | ||
| 14 | // clear alarm | 24 | // clear alarm |
| @@ -18,8 +28,10 @@ export enum ClearAlarmFieldsEnum { | @@ -18,8 +28,10 @@ export enum ClearAlarmFieldsEnum { | ||
| 18 | } | 28 | } |
| 19 | 29 | ||
| 20 | export enum ClearAlarmFieldsNameEnum { | 30 | export enum ClearAlarmFieldsNameEnum { |
| 21 | - ALARM_TYPE = 'Alarm type', | ||
| 22 | - ALARM_DETAILS_BUILD_JS = 'Alarm details builder', | 31 | + ALARM_TYPE = t('designer_form_label.actions.index.ClearAlarmFieldsNameEnum.ALARM_TYPE'), |
| 32 | + ALARM_DETAILS_BUILD_JS = t( | ||
| 33 | + 'designer_form_label.actions.index.ClearAlarmFieldsNameEnum.ALARM_DETAILS_BUILD_JS' | ||
| 34 | + ), | ||
| 23 | } | 35 | } |
| 24 | 36 | ||
| 25 | // Create alarm | 37 | // Create alarm |
| @@ -37,16 +49,28 @@ export enum CreateAlarmFieldsEnum { | @@ -37,16 +49,28 @@ export enum CreateAlarmFieldsEnum { | ||
| 37 | } | 49 | } |
| 38 | 50 | ||
| 39 | export enum CreateAlarmFieldsNameEnum { | 51 | export enum CreateAlarmFieldsNameEnum { |
| 40 | - ALARM_DETAILS_BUILD_JS = 'Alarm details builder', | ||
| 41 | - USE_MESSAGE_ALARM_DATA = 'Use message alarm data', | ||
| 42 | - OVERWRITE_ALARM_DETAILS = 'Overwrite alarm details', | ||
| 43 | - ALARM_TYPE = 'Alarm type', | ||
| 44 | - SEVERITY = 'Alarm severity pattern', | ||
| 45 | - PROPAGATE = 'Propagate alarm to related entities', | ||
| 46 | - RELATION_TYPES = 'Relation types to propagate', | ||
| 47 | - PROPAGATE_TO_OWNER = 'Propagate alarm to entity owner (Customer or Tenant)', | ||
| 48 | - PROPAGATE_TO_TENANT = 'Propagate alarm to Tenant', | ||
| 49 | - DYNAMIC_SEVERITY = 'Use alarm severity pattern', | 52 | + ALARM_DETAILS_BUILD_JS = t( |
| 53 | + 'designer_form_label.actions.index.CreateAlarmFieldsNameEnum.ALARM_DETAILS_BUILD_JS' | ||
| 54 | + ), | ||
| 55 | + USE_MESSAGE_ALARM_DATA = t( | ||
| 56 | + 'designer_form_label.actions.index.CreateAlarmFieldsNameEnum.USE_MESSAGE_ALARM_DATA' | ||
| 57 | + ), | ||
| 58 | + OVERWRITE_ALARM_DETAILS = t( | ||
| 59 | + 'designer_form_label.actions.index.CreateAlarmFieldsNameEnum.OVERWRITE_ALARM_DETAILS' | ||
| 60 | + ), | ||
| 61 | + ALARM_TYPE = t('designer_form_label.actions.index.CreateAlarmFieldsNameEnum.ALARM_TYPE'), | ||
| 62 | + SEVERITY = t('designer_form_label.actions.index.CreateAlarmFieldsNameEnum.SEVERITY'), | ||
| 63 | + PROPAGATE = t('designer_form_label.actions.index.CreateAlarmFieldsNameEnum.PROPAGATE'), | ||
| 64 | + RELATION_TYPES = t('designer_form_label.actions.index.CreateAlarmFieldsNameEnum.RELATION_TYPES'), | ||
| 65 | + PROPAGATE_TO_OWNER = t( | ||
| 66 | + 'designer_form_label.actions.index.CreateAlarmFieldsNameEnum.PROPAGATE_TO_OWNER' | ||
| 67 | + ), | ||
| 68 | + PROPAGATE_TO_TENANT = t( | ||
| 69 | + 'designer_form_label.actions.index.CreateAlarmFieldsNameEnum.PROPAGATE_TO_TENANT' | ||
| 70 | + ), | ||
| 71 | + DYNAMIC_SEVERITY = t( | ||
| 72 | + 'designer_form_label.actions.index.CreateAlarmFieldsNameEnum.DYNAMIC_SEVERITY' | ||
| 73 | + ), | ||
| 50 | } | 74 | } |
| 51 | 75 | ||
| 52 | // Create relation | 76 | // Create relation |
| @@ -63,15 +87,27 @@ export enum CreateRelationFieldsEnum { | @@ -63,15 +87,27 @@ export enum CreateRelationFieldsEnum { | ||
| 63 | } | 87 | } |
| 64 | 88 | ||
| 65 | export enum CreateRelationFieldsNameEnum { | 89 | export enum CreateRelationFieldsNameEnum { |
| 66 | - DIRECTION = '方向', | ||
| 67 | - ENTITY_TYPE = '类型', | ||
| 68 | - ENTITY_NAME_PATTERN = 'Name pattern', | ||
| 69 | - ENTITY_TYPE_PATTERN = 'Type pattern', | ||
| 70 | - RELATION_TYPE = 'Relation type pattern', | ||
| 71 | - CREATE_ENTITY_IF_NOT_EXISTS = 'Create new entity if not exists', | ||
| 72 | - REMOVE_CURRENT_RELATIONS = 'Remove current relations', | ||
| 73 | - CHANGE_ORIGINATOR_TO_RELATED_ENTITY = 'Change originator to related entity', | ||
| 74 | - ENTITY_CACHE_EXPIRATION = 'Entities cache expiration time(sec)', | 90 | + DIRECTION = t('designer_form_label.actions.index.CreateRelationFieldsNameEnum.DIRECTION'), |
| 91 | + ENTITY_TYPE = t('designer_form_label.actions.index.CreateRelationFieldsNameEnum.ENTITY_TYPE'), | ||
| 92 | + ENTITY_NAME_PATTERN = t( | ||
| 93 | + 'designer_form_label.actions.index.CreateRelationFieldsNameEnum.ENTITY_NAME_PATTERN' | ||
| 94 | + ), | ||
| 95 | + ENTITY_TYPE_PATTERN = t( | ||
| 96 | + 'designer_form_label.actions.index.CreateRelationFieldsNameEnum.ENTITY_TYPE_PATTERN' | ||
| 97 | + ), | ||
| 98 | + RELATION_TYPE = t('designer_form_label.actions.index.CreateRelationFieldsNameEnum.RELATION_TYPE'), | ||
| 99 | + CREATE_ENTITY_IF_NOT_EXISTS = t( | ||
| 100 | + 'designer_form_label.actions.index.CreateRelationFieldsNameEnum.CREATE_ENTITY_IF_NOT_EXISTS' | ||
| 101 | + ), | ||
| 102 | + REMOVE_CURRENT_RELATIONS = t( | ||
| 103 | + 'designer_form_label.actions.index.CreateRelationFieldsNameEnum.REMOVE_CURRENT_RELATIONS' | ||
| 104 | + ), | ||
| 105 | + CHANGE_ORIGINATOR_TO_RELATED_ENTITY = t( | ||
| 106 | + 'designer_form_label.actions.index.CreateRelationFieldsNameEnum.CHANGE_ORIGINATOR_TO_RELATED_ENTITY' | ||
| 107 | + ), | ||
| 108 | + ENTITY_CACHE_EXPIRATION = t( | ||
| 109 | + 'designer_form_label.actions.index.CreateRelationFieldsNameEnum.ENTITY_CACHE_EXPIRATION' | ||
| 110 | + ), | ||
| 75 | } | 111 | } |
| 76 | 112 | ||
| 77 | // Delay deprecated | 113 | // Delay deprecated |
| @@ -83,10 +119,18 @@ export enum DelayDeprecatedFieldsEnum { | @@ -83,10 +119,18 @@ export enum DelayDeprecatedFieldsEnum { | ||
| 83 | } | 119 | } |
| 84 | 120 | ||
| 85 | export enum DelayDeprecatedFieldsNameEnum { | 121 | export enum DelayDeprecatedFieldsNameEnum { |
| 86 | - USE_METADATA_PERIOD_IN_SECONDS_PATTERNS = 'Use period in seconds pattern', | ||
| 87 | - PERIOD_IN_SECONDS = 'Period in seconds', | ||
| 88 | - PERIOD_IN_SECONDS_PATTERN = 'Period in seconds pattern', | ||
| 89 | - MAX_PENDING_MSGS = 'Maximum pending messages', | 122 | + USE_METADATA_PERIOD_IN_SECONDS_PATTERNS = t( |
| 123 | + 'designer_form_label.actions.index.DelayDeprecatedFieldsNameEnum.USE_METADATA_PERIOD_IN_SECONDS_PATTERNS' | ||
| 124 | + ), | ||
| 125 | + PERIOD_IN_SECONDS = t( | ||
| 126 | + 'designer_form_label.actions.index.DelayDeprecatedFieldsNameEnum.PERIOD_IN_SECONDS' | ||
| 127 | + ), | ||
| 128 | + PERIOD_IN_SECONDS_PATTERN = t( | ||
| 129 | + 'designer_form_label.actions.index.DelayDeprecatedFieldsNameEnum.PERIOD_IN_SECONDS_PATTERN' | ||
| 130 | + ), | ||
| 131 | + MAX_PENDING_MSGS = t( | ||
| 132 | + 'designer_form_label.actions.index.DelayDeprecatedFieldsNameEnum.MAX_PENDING_MSGS' | ||
| 133 | + ), | ||
| 90 | } | 134 | } |
| 91 | 135 | ||
| 92 | export enum DeleteRelationFieldsEnum { | 136 | export enum DeleteRelationFieldsEnum { |
| @@ -99,12 +143,18 @@ export enum DeleteRelationFieldsEnum { | @@ -99,12 +143,18 @@ export enum DeleteRelationFieldsEnum { | ||
| 99 | } | 143 | } |
| 100 | 144 | ||
| 101 | export enum DeleteRelationFieldsNameEnum { | 145 | export enum DeleteRelationFieldsNameEnum { |
| 102 | - DELETE_FOR_SINGLE_ENTITY = 'Delete relation to specific entity', | ||
| 103 | - DIRECTION = '方向', | ||
| 104 | - ENTITY_TYPE = '类型', | ||
| 105 | - ENTITY_NAME_PATTERN = 'Name pattern', | ||
| 106 | - RELATION_TYPE = 'Relation type pattern', | ||
| 107 | - ENTITY_CACHE_EXPIRATION = 'Entities cache expiration time(sec)', | 146 | + DELETE_FOR_SINGLE_ENTITY = t( |
| 147 | + 'designer_form_label.actions.index.DeleteRelationFieldsNameEnum.DELETE_FOR_SINGLE_ENTITY' | ||
| 148 | + ), | ||
| 149 | + DIRECTION = t('designer_form_label.actions.index.DeleteRelationFieldsNameEnum.DIRECTION'), | ||
| 150 | + ENTITY_TYPE = t('designer_form_label.actions.index.DeleteRelationFieldsNameEnum.ENTITY_TYPE'), | ||
| 151 | + ENTITY_NAME_PATTERN = t( | ||
| 152 | + 'designer_form_label.actions.index.DeleteRelationFieldsNameEnum.ENTITY_NAME_PATTERN' | ||
| 153 | + ), | ||
| 154 | + RELATION_TYPE = t('designer_form_label.actions.index.DeleteRelationFieldsNameEnum.RELATION_TYPE'), | ||
| 155 | + ENTITY_CACHE_EXPIRATION = t( | ||
| 156 | + 'designer_form_label.actions.index.DeleteRelationFieldsNameEnum.ENTITY_CACHE_EXPIRATION' | ||
| 157 | + ), | ||
| 108 | } | 158 | } |
| 109 | 159 | ||
| 110 | // device profile | 160 | // device profile |
| @@ -114,8 +164,12 @@ export enum DeviceProfileFieldsEnum { | @@ -114,8 +164,12 @@ export enum DeviceProfileFieldsEnum { | ||
| 114 | } | 164 | } |
| 115 | 165 | ||
| 116 | export enum DeviceProfileFieldsNameEnum { | 166 | export enum DeviceProfileFieldsNameEnum { |
| 117 | - PERSIST_ALARM_RULES_STATE = 'Persist state of alarm rules', | ||
| 118 | - FETCH_ALARM_RULES_STATE_ON_START = 'Fetch state of alarm rules', | 167 | + PERSIST_ALARM_RULES_STATE = t( |
| 168 | + 'designer_form_label.actions.index.DeviceProfileFieldsNameEnum.PERSIST_ALARM_RULES_STATE' | ||
| 169 | + ), | ||
| 170 | + FETCH_ALARM_RULES_STATE_ON_START = t( | ||
| 171 | + 'designer_form_label.actions.index.DeviceProfileFieldsNameEnum.FETCH_ALARM_RULES_STATE_ON_START' | ||
| 172 | + ), | ||
| 119 | } | 173 | } |
| 120 | 174 | ||
| 121 | // Generator | 175 | // Generator |
| @@ -128,11 +182,13 @@ export enum GeneratorFieldsEnum { | @@ -128,11 +182,13 @@ export enum GeneratorFieldsEnum { | ||
| 128 | } | 182 | } |
| 129 | 183 | ||
| 130 | export enum GeneratorFieldsNameEnum { | 184 | export enum GeneratorFieldsNameEnum { |
| 131 | - MSG_COUNT = 'Message count(0 - unlimited)', | ||
| 132 | - PERIOD_IN_SECONDS = 'Period in seconds', | ||
| 133 | - JS_SCRIPT = 'Generate', | 185 | + MSG_COUNT = t('designer_form_label.actions.index.GeneratorFieldsNameEnum.MSG_COUNT'), |
| 186 | + PERIOD_IN_SECONDS = t( | ||
| 187 | + 'designer_form_label.actions.index.GeneratorFieldsNameEnum.PERIOD_IN_SECONDS' | ||
| 188 | + ), | ||
| 189 | + JS_SCRIPT = t('designer_form_label.actions.index.GeneratorFieldsNameEnum.JS_SCRIPT'), | ||
| 134 | // ORIGINATOR_ID = '资产', | 190 | // ORIGINATOR_ID = '资产', |
| 135 | - ORIGINATOR_TYPE = '类型', | 191 | + ORIGINATOR_TYPE = t('designer_form_label.actions.index.GeneratorFieldsNameEnum.ORIGINATOR_TYPE'), |
| 136 | } | 192 | } |
| 137 | 193 | ||
| 138 | // Gps geofencing events | 194 | // Gps geofencing events |
| @@ -154,20 +210,44 @@ export enum GpsGeofencingEventsFieldsEnum { | @@ -154,20 +210,44 @@ export enum GpsGeofencingEventsFieldsEnum { | ||
| 154 | } | 210 | } |
| 155 | 211 | ||
| 156 | export enum GpsGeofencingEventsFieldsNameEnum { | 212 | export enum GpsGeofencingEventsFieldsNameEnum { |
| 157 | - LATITUDE_KEY_NAME = 'Latitude key name', | ||
| 158 | - LONGITUDE_KEY_NAME = 'longitude key name', | ||
| 159 | - PERIMETER_TYPE = 'Perimeter type', | ||
| 160 | - FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA = 'Fetch perimeter information from message metadata', | ||
| 161 | - PERIMETER_KEY_NAME = 'Perimeter key name', | ||
| 162 | - CENTER_LATITUDE = 'Center Latitude', | ||
| 163 | - CENTER_LONGITUDE = 'Center Longitude', | ||
| 164 | - RANGE = 'Range', | ||
| 165 | - RANGE_UNIT = 'Range units', | ||
| 166 | - POLYGONS_DEFINITION = 'Polygon definition', | ||
| 167 | - MIN_INSIDE_DURATION = 'Minimal inside duration', | ||
| 168 | - MIN_INSIDE_DURATION_TIME_UNIT = 'Minimal inside duration time unit', | ||
| 169 | - MIN_OUTSIDE_DURATION = 'Minimal outside duration', | ||
| 170 | - MIN_OUTSIDE_DURATION_TIME_UNIT = 'Minimal outside duration time unit', | 213 | + LATITUDE_KEY_NAME = t( |
| 214 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.LATITUDE_KEY_NAME' | ||
| 215 | + ), | ||
| 216 | + LONGITUDE_KEY_NAME = t( | ||
| 217 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.LONGITUDE_KEY_NAME' | ||
| 218 | + ), | ||
| 219 | + PERIMETER_TYPE = t( | ||
| 220 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.PERIMETER_TYPE' | ||
| 221 | + ), | ||
| 222 | + FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA = t( | ||
| 223 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA' | ||
| 224 | + ), | ||
| 225 | + PERIMETER_KEY_NAME = t( | ||
| 226 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.PERIMETER_KEY_NAME' | ||
| 227 | + ), | ||
| 228 | + CENTER_LATITUDE = t( | ||
| 229 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.CENTER_LATITUDE' | ||
| 230 | + ), | ||
| 231 | + CENTER_LONGITUDE = t( | ||
| 232 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.CENTER_LONGITUDE' | ||
| 233 | + ), | ||
| 234 | + RANGE = t('designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.RANGE'), | ||
| 235 | + RANGE_UNIT = t('designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.RANGE_UNIT'), | ||
| 236 | + POLYGONS_DEFINITION = t( | ||
| 237 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.POLYGONS_DEFINITION' | ||
| 238 | + ), | ||
| 239 | + MIN_INSIDE_DURATION = t( | ||
| 240 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.MIN_INSIDE_DURATION' | ||
| 241 | + ), | ||
| 242 | + MIN_INSIDE_DURATION_TIME_UNIT = t( | ||
| 243 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.MIN_INSIDE_DURATION_TIME_UNIT' | ||
| 244 | + ), | ||
| 245 | + MIN_OUTSIDE_DURATION = t( | ||
| 246 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.MIN_OUTSIDE_DURATION' | ||
| 247 | + ), | ||
| 248 | + MIN_OUTSIDE_DURATION_TIME_UNIT = t( | ||
| 249 | + 'designer_form_label.actions.index.GpsGeofencingEventsFieldsNameEnum.MIN_OUTSIDE_DURATION_TIME_UNIT' | ||
| 250 | + ), | ||
| 171 | } | 251 | } |
| 172 | 252 | ||
| 173 | // Log | 253 | // Log |
| @@ -176,7 +256,7 @@ export enum LogFieldsEnum { | @@ -176,7 +256,7 @@ export enum LogFieldsEnum { | ||
| 176 | } | 256 | } |
| 177 | 257 | ||
| 178 | export enum LogFieldsNameEnum { | 258 | export enum LogFieldsNameEnum { |
| 179 | - JS_SCRIPT = 'To string', | 259 | + JS_SCRIPT = t('designer_form_label.actions.index.LogFieldsNameEnum.JS_SCRIPT'), |
| 180 | } | 260 | } |
| 181 | 261 | ||
| 182 | // Message Count | 262 | // Message Count |
| @@ -186,8 +266,10 @@ export enum MessageCountFieldsEnum { | @@ -186,8 +266,10 @@ export enum MessageCountFieldsEnum { | ||
| 186 | } | 266 | } |
| 187 | 267 | ||
| 188 | export enum MessageCountFieldsNameEnum { | 268 | export enum MessageCountFieldsNameEnum { |
| 189 | - INTERVAL = 'Interval in seconds', | ||
| 190 | - TELEMETRY_PREFIX = 'Output timeseries key prefix', | 269 | + INTERVAL = t('designer_form_label.actions.index.MessageCountFieldsNameEnum.INTERVAL'), |
| 270 | + TELEMETRY_PREFIX = t( | ||
| 271 | + 'designer_form_label.actions.index.MessageCountFieldsNameEnum.TELEMETRY_PREFIX' | ||
| 272 | + ), | ||
| 191 | } | 273 | } |
| 192 | 274 | ||
| 193 | // Push to edge | 275 | // Push to edge |
| @@ -196,7 +278,7 @@ export enum PushToEdgeFieldsEnum { | @@ -196,7 +278,7 @@ export enum PushToEdgeFieldsEnum { | ||
| 196 | } | 278 | } |
| 197 | 279 | ||
| 198 | export enum PushToEdgeFieldsNameEnum { | 280 | export enum PushToEdgeFieldsNameEnum { |
| 199 | - SCOPE = '设备属性范围', | 281 | + SCOPE = t('designer_form_label.actions.index.PushToEdgeFieldsNameEnum.SCOPE'), |
| 200 | } | 282 | } |
| 201 | // Rpc call reply | 283 | // Rpc call reply |
| 202 | export enum RpcCallReplyFieldsEnum { | 284 | export enum RpcCallReplyFieldsEnum { |
| @@ -204,7 +286,9 @@ export enum RpcCallReplyFieldsEnum { | @@ -204,7 +286,9 @@ export enum RpcCallReplyFieldsEnum { | ||
| 204 | } | 286 | } |
| 205 | 287 | ||
| 206 | export enum RpcCallReplyFieldsNameEnum { | 288 | export enum RpcCallReplyFieldsNameEnum { |
| 207 | - REQUEST_ID_META_DATA_ATTRIBUTE = 'Request Id Metadata attribute name', | 289 | + REQUEST_ID_META_DATA_ATTRIBUTE = t( |
| 290 | + 'designer_form_label.actions.index.RpcCallReplyFieldsNameEnum.REQUEST_ID_META_DATA_ATTRIBUTE' | ||
| 291 | + ), | ||
| 208 | } | 292 | } |
| 209 | 293 | ||
| 210 | // Rpc call request | 294 | // Rpc call request |
| @@ -213,7 +297,9 @@ export enum RpcCallRequestFieldsEnum { | @@ -213,7 +297,9 @@ export enum RpcCallRequestFieldsEnum { | ||
| 213 | } | 297 | } |
| 214 | 298 | ||
| 215 | export enum RpcCallRequestFieldsNameEnum { | 299 | export enum RpcCallRequestFieldsNameEnum { |
| 216 | - TIMEOUT_IN_SECONDS = 'Timeout in seconds', | 300 | + TIMEOUT_IN_SECONDS = t( |
| 301 | + 'designer_form_label.actions.index.RpcCallRequestFieldsNameEnum.TIMEOUT_IN_SECONDS' | ||
| 302 | + ), | ||
| 217 | } | 303 | } |
| 218 | 304 | ||
| 219 | // Save attribute | 305 | // Save attribute |
| @@ -223,8 +309,8 @@ export enum SaveAttributesFieldsEnum { | @@ -223,8 +309,8 @@ export enum SaveAttributesFieldsEnum { | ||
| 223 | } | 309 | } |
| 224 | 310 | ||
| 225 | export enum SaveAttributesFieldsNameEnum { | 311 | export enum SaveAttributesFieldsNameEnum { |
| 226 | - NOTIFY_DEVICE = 'Notify Device', | ||
| 227 | - SCOPE = '设备属性范围', | 312 | + NOTIFY_DEVICE = t('designer_form_label.actions.index.SaveAttributesFieldsNameEnum.NOTIFY_DEVICE'), |
| 313 | + SCOPE = t('designer_form_label.actions.index.SaveAttributesFieldsNameEnum.SCOPE'), | ||
| 228 | } | 314 | } |
| 229 | 315 | ||
| 230 | // Save event | 316 | // Save event |
| @@ -233,7 +319,7 @@ export enum SaveEventFieldsEnum { | @@ -233,7 +319,7 @@ export enum SaveEventFieldsEnum { | ||
| 233 | } | 319 | } |
| 234 | 320 | ||
| 235 | export enum SaveEventFieldsNameEnum { | 321 | export enum SaveEventFieldsNameEnum { |
| 236 | - CONFIGURATION = '配置', | 322 | + CONFIGURATION = t('designer_form_label.actions.index.SaveEventFieldsNameEnum.CONFIGURATION'), |
| 237 | } | 323 | } |
| 238 | 324 | ||
| 239 | // Save timeseries | 325 | // Save timeseries |
| @@ -244,9 +330,11 @@ export enum SaveTimeseriesFieldsEnum { | @@ -244,9 +330,11 @@ export enum SaveTimeseriesFieldsEnum { | ||
| 244 | } | 330 | } |
| 245 | 331 | ||
| 246 | export enum SaveTimeseriesFieldsNameEnum { | 332 | export enum SaveTimeseriesFieldsNameEnum { |
| 247 | - DEFAULT_TTL = 'Default TTL in seconds', | ||
| 248 | - SKIP_LATEST_PERSISTENCE = 'Skit latest persistence', | ||
| 249 | - USE_SERVER_TS = 'Use server ts', | 333 | + DEFAULT_TTL = t('designer_form_label.actions.index.SaveTimeseriesFieldsNameEnum.DEFAULT_TTL'), |
| 334 | + SKIP_LATEST_PERSISTENCE = t( | ||
| 335 | + 'designer_form_label.actions.index.SaveTimeseriesFieldsNameEnum.SKIP_LATEST_PERSISTENCE' | ||
| 336 | + ), | ||
| 337 | + USE_SERVER_TS = t('designer_form_label.actions.index.SaveTimeseriesFieldsNameEnum.USE_SERVER_TS'), | ||
| 250 | } | 338 | } |
| 251 | 339 | ||
| 252 | // save to custom table | 340 | // save to custom table |
| @@ -256,8 +344,10 @@ export enum SaveToCustomTableFieldsEnum { | @@ -256,8 +344,10 @@ export enum SaveToCustomTableFieldsEnum { | ||
| 256 | } | 344 | } |
| 257 | 345 | ||
| 258 | export enum SaveToCustomTableFieldsNameEnum { | 346 | export enum SaveToCustomTableFieldsNameEnum { |
| 259 | - FIELDS_MAPPING = 'Fields mapping', | ||
| 260 | - TABLE_NAME = 'Custom table name', | 347 | + FIELDS_MAPPING = t( |
| 348 | + 'designer_form_label.actions.index.SaveToCustomTableFieldsNameEnum.FIELDS_MAPPING' | ||
| 349 | + ), | ||
| 350 | + TABLE_NAME = t('designer_form_label.actions.index.SaveToCustomTableFieldsNameEnum.TABLE_NAME'), | ||
| 261 | } | 351 | } |
| 262 | 352 | ||
| 263 | // Unassign from customer | 353 | // Unassign from customer |
| @@ -267,6 +357,10 @@ export enum UnassignFromCustomerFieldsEnum { | @@ -267,6 +357,10 @@ export enum UnassignFromCustomerFieldsEnum { | ||
| 267 | } | 357 | } |
| 268 | 358 | ||
| 269 | export enum UnassignFromCustomerFieldsNameEnum { | 359 | export enum UnassignFromCustomerFieldsNameEnum { |
| 270 | - CUSTOMER_NAME_PATTERN = 'Customer name pattern', | ||
| 271 | - CUSTOMER_CACHE_EXPIRATION = 'Customer cache expiration time(sec)', | 360 | + CUSTOMER_NAME_PATTERN = t( |
| 361 | + 'designer_form_label.actions.index.UnassignFromCustomerFieldsNameEnum.CUSTOMER_NAME_PATTERN' | ||
| 362 | + ), | ||
| 363 | + CUSTOMER_CACHE_EXPIRATION = t( | ||
| 364 | + 'designer_form_label.actions.index.UnassignFromCustomerFieldsNameEnum.CUSTOMER_CACHE_EXPIRATION' | ||
| 365 | + ), | ||
| 272 | } | 366 | } |
| 1 | +import { useI18n } from '/@/hooks/web/useI18n'; | ||
| 2 | + | ||
| 3 | +const { t } = useI18n() as any; //加载国际化 | ||
| 4 | + | ||
| 1 | export enum CommonFieldsEnum { | 5 | export enum CommonFieldsEnum { |
| 2 | NAME = 'name', | 6 | NAME = 'name', |
| 3 | DESCRIPTION = 'description', | 7 | DESCRIPTION = 'description', |
| @@ -5,9 +9,9 @@ export enum CommonFieldsEnum { | @@ -5,9 +9,9 @@ export enum CommonFieldsEnum { | ||
| 5 | } | 9 | } |
| 6 | 10 | ||
| 7 | export enum CommonFieldsNameEnum { | 11 | export enum CommonFieldsNameEnum { |
| 8 | - NAME = '名称', | ||
| 9 | - DESCRIPTION = '说明', | ||
| 10 | - DEBUG_MODE = '调试模式', | 12 | + NAME = t('designer_form_label.common.index.CommonFieldsNameEnum.NAME'), |
| 13 | + DESCRIPTION = t('designer_form_label.common.index.CommonFieldsNameEnum.DESCRIPTION'), | ||
| 14 | + DEBUG_MODE = t('designer_form_label.common.index.CommonFieldsNameEnum.DEBUG_MODE'), | ||
| 11 | } | 15 | } |
| 12 | 16 | ||
| 13 | export const CommonFields = { ...CommonFieldsEnum }; | 17 | export const CommonFields = { ...CommonFieldsEnum }; |
| 1 | +import { useI18n } from '/@/hooks/web/useI18n'; | ||
| 2 | + | ||
| 3 | +const { t } = useI18n() as any; //加载国际化 | ||
| 4 | + | ||
| 1 | // Enrichment Calculate delta | 5 | // Enrichment Calculate delta |
| 2 | export enum CalculateDeltaFieldsEnum { | 6 | export enum CalculateDeltaFieldsEnum { |
| 3 | INPUT_VALUE_KEY = 'inputValueKey', | 7 | INPUT_VALUE_KEY = 'inputValueKey', |
| @@ -10,13 +14,23 @@ export enum CalculateDeltaFieldsEnum { | @@ -10,13 +14,23 @@ export enum CalculateDeltaFieldsEnum { | ||
| 10 | } | 14 | } |
| 11 | 15 | ||
| 12 | export enum CalculateDeltaFieldsNameEnum { | 16 | export enum CalculateDeltaFieldsNameEnum { |
| 13 | - INPUT_VALUE_KEY = 'Input value key', | ||
| 14 | - OUTPUT_VALUE_KEY = 'Output value key', | ||
| 15 | - ROUND = 'Decimals', | ||
| 16 | - USE_CACHE = 'Use cache for latest value', | ||
| 17 | - TELL_FAILURE_IF_DELTA_IS_NEGATIVE = 'Tell Failure if delta is negative', | ||
| 18 | - ADD_PERIOD_BETWEEN_MSGS = 'Add period between messages', | ||
| 19 | - PERIOD_VALUE_KEY = 'Period value key', | 17 | + INPUT_VALUE_KEY = t( |
| 18 | + 'designer_form_label.enrichments.index.CalculateDeltaFieldsNameEnum.INPUT_VALUE_KEY' | ||
| 19 | + ), | ||
| 20 | + OUTPUT_VALUE_KEY = t( | ||
| 21 | + 'designer_form_label.enrichments.index.CalculateDeltaFieldsNameEnum.OUTPUT_VALUE_KEY' | ||
| 22 | + ), | ||
| 23 | + ROUND = t('designer_form_label.enrichments.index.CalculateDeltaFieldsNameEnum.ROUND'), | ||
| 24 | + USE_CACHE = t('designer_form_label.enrichments.index.CalculateDeltaFieldsNameEnum.USE_CACHE'), | ||
| 25 | + TELL_FAILURE_IF_DELTA_IS_NEGATIVE = t( | ||
| 26 | + 'designer_form_label.enrichments.index.CalculateDeltaFieldsNameEnum.TELL_FAILURE_IF_DELTA_IS_NEGATIVE' | ||
| 27 | + ), | ||
| 28 | + ADD_PERIOD_BETWEEN_MSGS = t( | ||
| 29 | + 'designer_form_label.enrichments.index.CalculateDeltaFieldsNameEnum.ADD_PERIOD_BETWEEN_MSGS' | ||
| 30 | + ), | ||
| 31 | + PERIOD_VALUE_KEY = t( | ||
| 32 | + 'designer_form_label.enrichments.index.CalculateDeltaFieldsNameEnum.PERIOD_VALUE_KEY' | ||
| 33 | + ), | ||
| 20 | } | 34 | } |
| 21 | 35 | ||
| 22 | // Enrichment Customer Attributes | 36 | // Enrichment Customer Attributes |
| @@ -26,8 +40,10 @@ export enum CustomerAttributesFieldsEnum { | @@ -26,8 +40,10 @@ export enum CustomerAttributesFieldsEnum { | ||
| 26 | } | 40 | } |
| 27 | 41 | ||
| 28 | export enum CustomerAttributesFieldsNameEnum { | 42 | export enum CustomerAttributesFieldsNameEnum { |
| 29 | - ATTR_MAPING = 'Attributes mapping', | ||
| 30 | - TELEMETRY = 'Latest telemetry', | 43 | + ATTR_MAPING = t( |
| 44 | + 'designer_form_label.enrichments.index.CustomerAttributesFieldsNameEnum.ATTR_MAPING' | ||
| 45 | + ), | ||
| 46 | + TELEMETRY = t('designer_form_label.enrichments.index.CustomerAttributesFieldsNameEnum.TELEMETRY'), | ||
| 31 | } | 47 | } |
| 32 | 48 | ||
| 33 | // Enrichment Customer details | 49 | // Enrichment Customer details |
| @@ -37,8 +53,12 @@ export enum CustomerDetailsFieldsEnum { | @@ -37,8 +53,12 @@ export enum CustomerDetailsFieldsEnum { | ||
| 37 | } | 53 | } |
| 38 | 54 | ||
| 39 | export enum CustomerDetailsFieldsNameEnum { | 55 | export enum CustomerDetailsFieldsNameEnum { |
| 40 | - DETAILS_LIST = 'Select entity details', | ||
| 41 | - ADD_TO_METADATA = 'Add selected details to message metadata', | 56 | + DETAILS_LIST = t( |
| 57 | + 'designer_form_label.enrichments.index.CustomerDetailsFieldsNameEnum.DETAILS_LIST' | ||
| 58 | + ), | ||
| 59 | + ADD_TO_METADATA = t( | ||
| 60 | + 'designer_form_label.enrichments.index.CustomerDetailsFieldsNameEnum.ADD_TO_METADATA' | ||
| 61 | + ), | ||
| 42 | } | 62 | } |
| 43 | 63 | ||
| 44 | // Enrichment Originator attributes | 64 | // Enrichment Originator attributes |
| @@ -52,12 +72,24 @@ export enum OriginatorAttributesEnum { | @@ -52,12 +72,24 @@ export enum OriginatorAttributesEnum { | ||
| 52 | } | 72 | } |
| 53 | 73 | ||
| 54 | export enum OriginatorAttributesNameEnum { | 74 | export enum OriginatorAttributesNameEnum { |
| 55 | - TELL_FAILURE_IF_ABSENT = 'Tell Failure', | ||
| 56 | - CLIENT_ATTRIBUTE_NAMES = 'Client attributes', | ||
| 57 | - SHARED_ATTRIBUTE_NAMES = 'Shared attributes', | ||
| 58 | - SERVER_ATTRIBUTE_NAMES = 'Server attributes', | ||
| 59 | - LATEST_TS_KEY_NAMES = 'Latest timeseries', | ||
| 60 | - GET_LATEST_VALUE_WITH_TS = 'Fetch Latest telemetry with Timestamp', | 75 | + TELL_FAILURE_IF_ABSENT = t( |
| 76 | + 'designer_form_label.enrichments.index.OriginatorAttributesNameEnum.TELL_FAILURE_IF_ABSENT' | ||
| 77 | + ), | ||
| 78 | + CLIENT_ATTRIBUTE_NAMES = t( | ||
| 79 | + 'designer_form_label.enrichments.index.OriginatorAttributesNameEnum.CLIENT_ATTRIBUTE_NAMES' | ||
| 80 | + ), | ||
| 81 | + SHARED_ATTRIBUTE_NAMES = t( | ||
| 82 | + 'designer_form_label.enrichments.index.OriginatorAttributesNameEnum.SHARED_ATTRIBUTE_NAMES' | ||
| 83 | + ), | ||
| 84 | + SERVER_ATTRIBUTE_NAMES = t( | ||
| 85 | + 'designer_form_label.enrichments.index.OriginatorAttributesNameEnum.SERVER_ATTRIBUTE_NAMES' | ||
| 86 | + ), | ||
| 87 | + LATEST_TS_KEY_NAMES = t( | ||
| 88 | + 'designer_form_label.enrichments.index.OriginatorAttributesNameEnum.LATEST_TS_KEY_NAMES' | ||
| 89 | + ), | ||
| 90 | + GET_LATEST_VALUE_WITH_TS = t( | ||
| 91 | + 'designer_form_label.enrichments.index.OriginatorAttributesNameEnum.GET_LATEST_VALUE_WITH_TS' | ||
| 92 | + ), | ||
| 61 | } | 93 | } |
| 62 | 94 | ||
| 63 | // Enrichment Originator Fields | 95 | // Enrichment Originator Fields |
| @@ -66,7 +98,9 @@ export enum OriginatorFieldsEnum { | @@ -66,7 +98,9 @@ export enum OriginatorFieldsEnum { | ||
| 66 | } | 98 | } |
| 67 | 99 | ||
| 68 | export enum OriginatorFieldsNameEnum { | 100 | export enum OriginatorFieldsNameEnum { |
| 69 | - FIELDS_MAPPING = 'Fields mapping', | 101 | + FIELDS_MAPPING = t( |
| 102 | + 'designer_form_label.enrichments.index.OriginatorFieldsNameEnum.FIELDS_MAPPING' | ||
| 103 | + ), | ||
| 70 | } | 104 | } |
| 71 | 105 | ||
| 72 | // Enrichment originator telemetry | 106 | // Enrichment originator telemetry |
| @@ -86,18 +120,38 @@ export enum OriginatorTelemetryFieldsEnum { | @@ -86,18 +120,38 @@ export enum OriginatorTelemetryFieldsEnum { | ||
| 86 | } | 120 | } |
| 87 | 121 | ||
| 88 | export enum OriginatorTelemetryFieldsNameEnum { | 122 | export enum OriginatorTelemetryFieldsNameEnum { |
| 89 | - LATEST_TS_KEY_NAMES = 'Timeseries key', | ||
| 90 | - AGGREGATION = '数据聚合功能', | ||
| 91 | - FETCH_MODE = 'Fetch Mode', | ||
| 92 | - ORDER_BY = 'Order by', | ||
| 93 | - LIMIT = 'Limit', | ||
| 94 | - USE_METADATA_INTERVAL_PATTERNS = 'Use interval patterns', | ||
| 95 | - START_INTERVAL = 'Start Interval', | ||
| 96 | - START_INTERVAL_TIME_UNIT = 'Start Interval Time Unit', | ||
| 97 | - END_INTERVAL = 'End Interval', | ||
| 98 | - END_INTERVAL_TIME_UNIT = 'End Interval Time Unit', | ||
| 99 | - START_INTERVAL_PATTERN = 'startIntervalPattern', | ||
| 100 | - END_INTERVAL_PATTERN = 'endIntervalPattern', | 123 | + LATEST_TS_KEY_NAMES = t( |
| 124 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.LATEST_TS_KEY_NAMES' | ||
| 125 | + ), | ||
| 126 | + AGGREGATION = t( | ||
| 127 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.AGGREGATION' | ||
| 128 | + ), | ||
| 129 | + FETCH_MODE = t( | ||
| 130 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.FETCH_MODE' | ||
| 131 | + ), | ||
| 132 | + ORDER_BY = t('designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.ORDER_BY'), | ||
| 133 | + LIMIT = t('designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.LIMIT'), | ||
| 134 | + USE_METADATA_INTERVAL_PATTERNS = t( | ||
| 135 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.USE_METADATA_INTERVAL_PATTERNS' | ||
| 136 | + ), | ||
| 137 | + START_INTERVAL = t( | ||
| 138 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.START_INTERVAL' | ||
| 139 | + ), | ||
| 140 | + START_INTERVAL_TIME_UNIT = t( | ||
| 141 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.START_INTERVAL_TIME_UNIT' | ||
| 142 | + ), | ||
| 143 | + END_INTERVAL = t( | ||
| 144 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.END_INTERVAL' | ||
| 145 | + ), | ||
| 146 | + END_INTERVAL_TIME_UNIT = t( | ||
| 147 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.END_INTERVAL_TIME_UNIT' | ||
| 148 | + ), | ||
| 149 | + START_INTERVAL_PATTERN = t( | ||
| 150 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.START_INTERVAL_PATTERN' | ||
| 151 | + ), | ||
| 152 | + END_INTERVAL_PATTERN = t( | ||
| 153 | + 'designer_form_label.enrichments.index.OriginatorTelemetryFieldsNameEnum.END_INTERVAL_PATTERN' | ||
| 154 | + ), | ||
| 101 | } | 155 | } |
| 102 | 156 | ||
| 103 | // Enrichment Related attributes | 157 | // Enrichment Related attributes |
| @@ -108,9 +162,13 @@ export enum RelatedAttributesFieldsEnum { | @@ -108,9 +162,13 @@ export enum RelatedAttributesFieldsEnum { | ||
| 108 | } | 162 | } |
| 109 | 163 | ||
| 110 | export enum RelatedAttributesFieldsNameEnum { | 164 | export enum RelatedAttributesFieldsNameEnum { |
| 111 | - RELATIONS_QUERY = 'Relations query', | ||
| 112 | - ATTR_MAPPING = 'Attributes mapping', | ||
| 113 | - TELEMETRY = 'Latest telemetry', | 165 | + RELATIONS_QUERY = t( |
| 166 | + 'designer_form_label.enrichments.index.RelatedAttributesFieldsNameEnum.RELATIONS_QUERY' | ||
| 167 | + ), | ||
| 168 | + ATTR_MAPPING = t( | ||
| 169 | + 'designer_form_label.enrichments.index.RelatedAttributesFieldsNameEnum.ATTR_MAPPING' | ||
| 170 | + ), | ||
| 171 | + TELEMETRY = t('designer_form_label.enrichments.index.RelatedAttributesFieldsNameEnum.TELEMETRY'), | ||
| 114 | } | 172 | } |
| 115 | 173 | ||
| 116 | // Enrichment Related device Attributes | 174 | // Enrichment Related device Attributes |
| @@ -132,20 +190,44 @@ export enum RelatedDeviceAttributeFieldsEnum { | @@ -132,20 +190,44 @@ export enum RelatedDeviceAttributeFieldsEnum { | ||
| 132 | } | 190 | } |
| 133 | 191 | ||
| 134 | export enum RelatedDeviceAttributeFieldsNameEnum { | 192 | export enum RelatedDeviceAttributeFieldsNameEnum { |
| 135 | - DEVICE_RELATIONS_QUERY = 'deviceRelationsQuery', | ||
| 136 | - TELL_FAILURE_IF_ABSENT = 'Tell Failure', | ||
| 137 | - CLIENT_ATTRIBUTE_NAMES = 'Client attributes', | ||
| 138 | - SHARED_ATTRIBUTE_NAMES = 'Shared attributes', | ||
| 139 | - SERVER_ATTRIBUTE_NAMES = 'Server attributes', | ||
| 140 | - LATEST_TS_KEY_NAMES = 'Latest timeseries', | ||
| 141 | - GET_LATEST_VALUE_WITH_TS = 'Fetch Latest telemetry with Timestamp', | ||
| 142 | - FETCH_LAST_LEVEL_ONLY = '仅获取最后一级关联', | 193 | + DEVICE_RELATIONS_QUERY = t( |
| 194 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.DEVICE_RELATIONS_QUERY' | ||
| 195 | + ), | ||
| 196 | + TELL_FAILURE_IF_ABSENT = t( | ||
| 197 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.TELL_FAILURE_IF_ABSENT' | ||
| 198 | + ), | ||
| 199 | + CLIENT_ATTRIBUTE_NAMES = t( | ||
| 200 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.CLIENT_ATTRIBUTE_NAMES' | ||
| 201 | + ), | ||
| 202 | + SHARED_ATTRIBUTE_NAMES = t( | ||
| 203 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.SHARED_ATTRIBUTE_NAMES' | ||
| 204 | + ), | ||
| 205 | + SERVER_ATTRIBUTE_NAMES = t( | ||
| 206 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.SERVER_ATTRIBUTE_NAMES' | ||
| 207 | + ), | ||
| 208 | + LATEST_TS_KEY_NAMES = t( | ||
| 209 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.LATEST_TS_KEY_NAMES' | ||
| 210 | + ), | ||
| 211 | + GET_LATEST_VALUE_WITH_TS = t( | ||
| 212 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.GET_LATEST_VALUE_WITH_TS' | ||
| 213 | + ), | ||
| 214 | + FETCH_LAST_LEVEL_ONLY = t( | ||
| 215 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.FETCH_LAST_LEVEL_ONLY' | ||
| 216 | + ), | ||
| 143 | 217 | ||
| 144 | // DEVICE_RELATIONS_QUERY | 218 | // DEVICE_RELATIONS_QUERY |
| 145 | - DIRECTION = '方向', | ||
| 146 | - MAX_LEVEL = 'Max relation level', | ||
| 147 | - RELATION_TYPE = '关联类型', | ||
| 148 | - DEVICE_TYPES = '设备类型', | 219 | + DIRECTION = t( |
| 220 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.DIRECTION' | ||
| 221 | + ), | ||
| 222 | + MAX_LEVEL = t( | ||
| 223 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.MAX_LEVEL' | ||
| 224 | + ), | ||
| 225 | + RELATION_TYPE = t( | ||
| 226 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.RELATION_TYPE' | ||
| 227 | + ), | ||
| 228 | + DEVICE_TYPES = t( | ||
| 229 | + 'designer_form_label.enrichments.index.RelatedDeviceAttributeFieldsNameEnum.DEVICE_TYPES' | ||
| 230 | + ), | ||
| 149 | } | 231 | } |
| 150 | 232 | ||
| 151 | // Tenant attributes | 233 | // Tenant attributes |
| @@ -155,8 +237,10 @@ export enum TenantAttributesFieldsEnum { | @@ -155,8 +237,10 @@ export enum TenantAttributesFieldsEnum { | ||
| 155 | } | 237 | } |
| 156 | 238 | ||
| 157 | export enum TenantAttributesFieldsNameEnum { | 239 | export enum TenantAttributesFieldsNameEnum { |
| 158 | - ATTR_MAPING = 'attrMapping', | ||
| 159 | - TELEMETRY = 'Latest telemetry', | 240 | + ATTR_MAPING = t( |
| 241 | + 'designer_form_label.enrichments.index.TenantAttributesFieldsNameEnum.ATTR_MAPING' | ||
| 242 | + ), | ||
| 243 | + TELEMETRY = t('designer_form_label.enrichments.index.TenantAttributesFieldsNameEnum.TELEMETRY'), | ||
| 160 | } | 244 | } |
| 161 | 245 | ||
| 162 | // Enrichment Tenant details | 246 | // Enrichment Tenant details |
| @@ -166,6 +250,10 @@ export enum TenantDetailsFieldsEnum { | @@ -166,6 +250,10 @@ export enum TenantDetailsFieldsEnum { | ||
| 166 | } | 250 | } |
| 167 | 251 | ||
| 168 | export enum TenantDetailsFieldsNameEnum { | 252 | export enum TenantDetailsFieldsNameEnum { |
| 169 | - DETAILS_LIST = 'Add selected details to message metadata', | ||
| 170 | - ADD_TO_METADATA = 'Select entity details', | 253 | + DETAILS_LIST = t( |
| 254 | + 'designer_form_label.enrichments.index.TenantDetailsFieldsNameEnum.DETAILS_LIST' | ||
| 255 | + ), | ||
| 256 | + ADD_TO_METADATA = t( | ||
| 257 | + 'designer_form_label.enrichments.index.TenantDetailsFieldsNameEnum.ADD_TO_METADATA' | ||
| 258 | + ), | ||
| 171 | } | 259 | } |
| 1 | +import { useI18n } from '/@/hooks/web/useI18n'; | ||
| 2 | + | ||
| 3 | +const { t } = useI18n() as any; //加载国际化 | ||
| 4 | + | ||
| 1 | // Alarm notice | 5 | // Alarm notice |
| 2 | export enum AlarmNoticeFieldsEnum { | 6 | export enum AlarmNoticeFieldsEnum { |
| 3 | CONFIGURATION = 'CONFIGURATION', | 7 | CONFIGURATION = 'CONFIGURATION', |
| 4 | } | 8 | } |
| 5 | 9 | ||
| 6 | export enum AlarmNoticeFieldsNameEnum { | 10 | export enum AlarmNoticeFieldsNameEnum { |
| 7 | - CONFIGURATION = '配置', | 11 | + CONFIGURATION = t('designer_form_label.externals.index.AlarmNoticeFieldsNameEnum.CONFIGURATION'), |
| 8 | } | 12 | } |
| 9 | 13 | ||
| 10 | // aws sns | 14 | // aws sns |
| @@ -16,10 +20,14 @@ export enum AwsSnsFieldsEnum { | @@ -16,10 +20,14 @@ export enum AwsSnsFieldsEnum { | ||
| 16 | } | 20 | } |
| 17 | 21 | ||
| 18 | export enum AwsSnsFieldsNameEnum { | 22 | export enum AwsSnsFieldsNameEnum { |
| 19 | - TOPIC_ARN_PATTERN = 'Topic ARN pattern', | ||
| 20 | - ACCESS_KEY_ID = 'AWS Access Key ID', | ||
| 21 | - SECRET_ACCESS_KEY = 'AWS Secret Access Key', | ||
| 22 | - REGION = 'AWS Region', | 23 | + TOPIC_ARN_PATTERN = t( |
| 24 | + 'designer_form_label.externals.index.AwsSnsFieldsNameEnum.TOPIC_ARN_PATTERN' | ||
| 25 | + ), | ||
| 26 | + ACCESS_KEY_ID = t('designer_form_label.externals.index.AwsSnsFieldsNameEnum.ACCESS_KEY_ID'), | ||
| 27 | + SECRET_ACCESS_KEY = t( | ||
| 28 | + 'designer_form_label.externals.index.AwsSnsFieldsNameEnum.SECRET_ACCESS_KEY' | ||
| 29 | + ), | ||
| 30 | + REGION = t('designer_form_label.externals.index.AwsSnsFieldsNameEnum.REGION'), | ||
| 23 | } | 31 | } |
| 24 | 32 | ||
| 25 | // Aws sqs | 33 | // Aws sqs |
| @@ -34,13 +42,19 @@ export enum AwsSqsFieldsEnum { | @@ -34,13 +42,19 @@ export enum AwsSqsFieldsEnum { | ||
| 34 | } | 42 | } |
| 35 | 43 | ||
| 36 | export enum AwsSqsFieldsNameEnum { | 44 | export enum AwsSqsFieldsNameEnum { |
| 37 | - QUEUE_TYPE = 'Queue type', | ||
| 38 | - QUEUE_URL_PATTERN = 'Queue URL pattern', | ||
| 39 | - DELAY_SECONDS = 'Delay(seconds)', | ||
| 40 | - MESSAGE_ATTRIBUTES = 'Message attributes', | ||
| 41 | - ACCESS_KEY_ID = 'AWS Access Key ID', | ||
| 42 | - SECRET_ACCESS_KEY = 'AWS Secret Access Key', | ||
| 43 | - REGION = 'AWS Region', | 45 | + QUEUE_TYPE = t('designer_form_label.externals.index.AwsSqsFieldsNameEnum.QUEUE_TYPE'), |
| 46 | + QUEUE_URL_PATTERN = t( | ||
| 47 | + 'designer_form_label.externals.index.AwsSqsFieldsNameEnum.QUEUE_URL_PATTERN' | ||
| 48 | + ), | ||
| 49 | + DELAY_SECONDS = t('designer_form_label.externals.index.AwsSqsFieldsNameEnum.DELAY_SECONDS'), | ||
| 50 | + MESSAGE_ATTRIBUTES = t( | ||
| 51 | + 'designer_form_label.externals.index.AwsSqsFieldsNameEnum.MESSAGE_ATTRIBUTES' | ||
| 52 | + ), | ||
| 53 | + ACCESS_KEY_ID = t('designer_form_label.externals.index.AwsSqsFieldsNameEnum.ACCESS_KEY_ID'), | ||
| 54 | + SECRET_ACCESS_KEY = t( | ||
| 55 | + 'designer_form_label.externals.index.AwsSqsFieldsNameEnum.SECRET_ACCESS_KEY' | ||
| 56 | + ), | ||
| 57 | + REGION = t('designer_form_label.externals.index.AwsSqsFieldsNameEnum.REGION'), | ||
| 44 | } | 58 | } |
| 45 | 59 | ||
| 46 | // Azure iot hub | 60 | // Azure iot hub |
| @@ -66,24 +80,32 @@ export enum AzureIotHubFieldsEnum { | @@ -66,24 +80,32 @@ export enum AzureIotHubFieldsEnum { | ||
| 66 | } | 80 | } |
| 67 | 81 | ||
| 68 | export enum AzureIotHubFieldsNameEnum { | 82 | export enum AzureIotHubFieldsNameEnum { |
| 69 | - TOPIC_PATTERN = 'Topic', | ||
| 70 | - HOST = 'Hostname', | ||
| 71 | - PORT = 'port', | ||
| 72 | - CONNECT_TIMEOUT_SEC = 'connectTimeoutSec', | ||
| 73 | - CLIENT_ID = 'Device ID', | ||
| 74 | - CLEAN_SESSION = 'cleanSession', | ||
| 75 | - SSL = 'ssl', | ||
| 76 | - CREDENTIALS = 'credentials', | 83 | + TOPIC_PATTERN = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.TOPIC_PATTERN'), |
| 84 | + HOST = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.HOST'), | ||
| 85 | + PORT = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.PORT'), | ||
| 86 | + CONNECT_TIMEOUT_SEC = t( | ||
| 87 | + 'designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CONNECT_TIMEOUT_SEC' | ||
| 88 | + ), | ||
| 89 | + CLIENT_ID = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CLIENT_ID'), | ||
| 90 | + CLEAN_SESSION = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CLEAN_SESSION'), | ||
| 91 | + SSL = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.SSL'), | ||
| 92 | + CREDENTIALS = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CREDENTIALS'), | ||
| 77 | 93 | ||
| 78 | - TYPE = 'Credentials type', | ||
| 79 | - SAS_KEY = 'sasKey', | ||
| 80 | - CA_CERT = 'CA certificate file', | ||
| 81 | - CA_CERT_FILE_NAME = 'caCertFileName', | ||
| 82 | - PRIVATE_KEY = 'Client private key file', | ||
| 83 | - PRIVATE_KEY_FILE_NAME = 'privateKeyFileName', | ||
| 84 | - CERT = 'Client certificate file', | ||
| 85 | - CERT_FILE_NAME = 'certFileName', | ||
| 86 | - PASSWORD = 'Private key password', | 94 | + TYPE = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.TYPE'), |
| 95 | + SAS_KEY = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.SAS_KEY'), | ||
| 96 | + CA_CERT = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CA_CERT'), | ||
| 97 | + CA_CERT_FILE_NAME = t( | ||
| 98 | + 'designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CA_CERT_FILE_NAME' | ||
| 99 | + ), | ||
| 100 | + PRIVATE_KEY = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.PRIVATE_KEY'), | ||
| 101 | + PRIVATE_KEY_FILE_NAME = t( | ||
| 102 | + 'designer_form_label.externals.index.AzureIotHubFieldsNameEnum.PRIVATE_KEY_FILE_NAME' | ||
| 103 | + ), | ||
| 104 | + CERT = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CERT'), | ||
| 105 | + CERT_FILE_NAME = t( | ||
| 106 | + 'designer_form_label.externals.index.AzureIotHubFieldsNameEnum.CERT_FILE_NAME' | ||
| 107 | + ), | ||
| 108 | + PASSWORD = t('designer_form_label.externals.index.AzureIotHubFieldsNameEnum.PASSWORD'), | ||
| 87 | } | 109 | } |
| 88 | 110 | ||
| 89 | // GCP pubsub | 111 | // GCP pubsub |
| @@ -96,11 +118,17 @@ export enum GcpPubsubFieldsEnum { | @@ -96,11 +118,17 @@ export enum GcpPubsubFieldsEnum { | ||
| 96 | } | 118 | } |
| 97 | 119 | ||
| 98 | export enum GcpPubsubFieldsNameEnum { | 120 | export enum GcpPubsubFieldsNameEnum { |
| 99 | - PROJECT_ID = 'GCP project ID', | ||
| 100 | - TOPIC_NAME = 'Topic name', | ||
| 101 | - SERVICE_ACCOUNT_KEY = 'GCP service account key file', | ||
| 102 | - SERVICE_ACCOUNT_KEY_FILE_NAME = 'serviceAccountKeyFileName', | ||
| 103 | - MESSAGE_ATTRIBUTES = 'Message attributes', | 121 | + PROJECT_ID = t('designer_form_label.externals.index.GcpPubsubFieldsNameEnum.PROJECT_ID'), |
| 122 | + TOPIC_NAME = t('designer_form_label.externals.index.GcpPubsubFieldsNameEnum.TOPIC_NAME'), | ||
| 123 | + SERVICE_ACCOUNT_KEY = t( | ||
| 124 | + 'designer_form_label.externals.index.GcpPubsubFieldsNameEnum.SERVICE_ACCOUNT_KEY' | ||
| 125 | + ), | ||
| 126 | + SERVICE_ACCOUNT_KEY_FILE_NAME = t( | ||
| 127 | + 'designer_form_label.externals.index.GcpPubsubFieldsNameEnum.SERVICE_ACCOUNT_KEY_FILE_NAME' | ||
| 128 | + ), | ||
| 129 | + MESSAGE_ATTRIBUTES = t( | ||
| 130 | + 'designer_form_label.externals.index.GcpPubsubFieldsNameEnum.MESSAGE_ATTRIBUTES' | ||
| 131 | + ), | ||
| 104 | } | 132 | } |
| 105 | 133 | ||
| 106 | // Kafka | 134 | // Kafka |
| @@ -120,18 +148,24 @@ export enum KafkaFieldsEnum { | @@ -120,18 +148,24 @@ export enum KafkaFieldsEnum { | ||
| 120 | } | 148 | } |
| 121 | 149 | ||
| 122 | export enum KafkaFieldsNameEnum { | 150 | export enum KafkaFieldsNameEnum { |
| 123 | - TOPIC_PATTERN = 'Topic pattern', | ||
| 124 | - BOOTSTRAP_SERVERS = 'Bootstrap servers', | ||
| 125 | - RETRIES = 'Automatically retry times if fails', | ||
| 126 | - BATCH_SIZE = 'Produces batch size in bytes', | ||
| 127 | - LINGER = 'Time to buffer locally(ms)', | ||
| 128 | - BUFFER_MEMORY = 'Client buffer max size in bytes', | ||
| 129 | - ACKS = 'Number of acknowledgments', | ||
| 130 | - KEY_SERIALIZER = 'Key serializer', | ||
| 131 | - VALUE_SERIALIZER = 'Value serializer', | ||
| 132 | - OTHER_PROPERTIES = 'Other properties', | ||
| 133 | - ADD_METADATA_KEY_VALUES_AS_KAFKA_HEADERS = 'Add Message metadata key-value pairs to Kafka record headers', | ||
| 134 | - KAFKA_HEADERS_CHARSET = 'Charset encoding', | 151 | + TOPIC_PATTERN = t('designer_form_label.externals.index.KafkaFieldsNameEnum.TOPIC_PATTERN'), |
| 152 | + BOOTSTRAP_SERVERS = t( | ||
| 153 | + 'designer_form_label.externals.index.KafkaFieldsNameEnum.BOOTSTRAP_SERVERS' | ||
| 154 | + ), | ||
| 155 | + RETRIES = t('designer_form_label.externals.index.KafkaFieldsNameEnum.RETRIES'), | ||
| 156 | + BATCH_SIZE = t('designer_form_label.externals.index.KafkaFieldsNameEnum.BATCH_SIZE'), | ||
| 157 | + LINGER = t('designer_form_label.externals.index.KafkaFieldsNameEnum.LINGER'), | ||
| 158 | + BUFFER_MEMORY = t('designer_form_label.externals.index.KafkaFieldsNameEnum.BUFFER_MEMORY'), | ||
| 159 | + ACKS = t('designer_form_label.externals.index.KafkaFieldsNameEnum.ACKS'), | ||
| 160 | + KEY_SERIALIZER = t('designer_form_label.externals.index.KafkaFieldsNameEnum.KEY_SERIALIZER'), | ||
| 161 | + VALUE_SERIALIZER = t('designer_form_label.externals.index.KafkaFieldsNameEnum.VALUE_SERIALIZER'), | ||
| 162 | + OTHER_PROPERTIES = t('designer_form_label.externals.index.KafkaFieldsNameEnum.OTHER_PROPERTIES'), | ||
| 163 | + ADD_METADATA_KEY_VALUES_AS_KAFKA_HEADERS = t( | ||
| 164 | + 'designer_form_label.externals.index.KafkaFieldsNameEnum.ADD_METADATA_KEY_VALUES_AS_KAFKA_HEADERS' | ||
| 165 | + ), | ||
| 166 | + KAFKA_HEADERS_CHARSET = t( | ||
| 167 | + 'designer_form_label.externals.index.KafkaFieldsNameEnum.KAFKA_HEADERS_CHARSET' | ||
| 168 | + ), | ||
| 135 | } | 169 | } |
| 136 | 170 | ||
| 137 | // Mqtt | 171 | // Mqtt |
| @@ -158,25 +192,31 @@ export enum MqttFieldsEnum { | @@ -158,25 +192,31 @@ export enum MqttFieldsEnum { | ||
| 158 | } | 192 | } |
| 159 | 193 | ||
| 160 | export enum MqttFieldsNameEnum { | 194 | export enum MqttFieldsNameEnum { |
| 161 | - TOPIC_PATTERN = 'Topic pattern', | ||
| 162 | - HOST = 'Host', | ||
| 163 | - PORT = 'Port', | ||
| 164 | - CONNECT_TIMEOUT_SEC = 'Connection timeout(sec)', | ||
| 165 | - CLIENT_ID = 'Client ID', | ||
| 166 | - APPEND_CLIENT_ID_SUFFIX = 'Add Service ID as suffix to Client ID', | ||
| 167 | - CLEAN_SESSION = 'Clean session', | ||
| 168 | - SSL = 'Enable SSL', | ||
| 169 | - CREDENTIALS = 'credentials', | 195 | + TOPIC_PATTERN = t('designer_form_label.externals.index.MqttFieldsNameEnum.TOPIC_PATTERN'), |
| 196 | + HOST = t('designer_form_label.externals.index.MqttFieldsNameEnum.HOST'), | ||
| 197 | + PORT = t('designer_form_label.externals.index.MqttFieldsNameEnum.PORT'), | ||
| 198 | + CONNECT_TIMEOUT_SEC = t( | ||
| 199 | + 'designer_form_label.externals.index.MqttFieldsNameEnum.CONNECT_TIMEOUT_SEC' | ||
| 200 | + ), | ||
| 201 | + CLIENT_ID = t('designer_form_label.externals.index.MqttFieldsNameEnum.CLIENT_ID'), | ||
| 202 | + APPEND_CLIENT_ID_SUFFIX = t( | ||
| 203 | + 'designer_form_label.externals.index.MqttFieldsNameEnum.APPEND_CLIENT_ID_SUFFIX' | ||
| 204 | + ), | ||
| 205 | + CLEAN_SESSION = t('designer_form_label.externals.index.MqttFieldsNameEnum.CLEAN_SESSION'), | ||
| 206 | + SSL = t('designer_form_label.externals.index.MqttFieldsNameEnum.SSL'), | ||
| 207 | + CREDENTIALS = t('designer_form_label.externals.index.MqttFieldsNameEnum.CREDENTIALS'), | ||
| 170 | 208 | ||
| 171 | - TYPE = 'Credentials type', | ||
| 172 | - PASSWORD = 'Password', | ||
| 173 | - CA_CERT = 'Server CA certificate file', | ||
| 174 | - CA_CERT_FILE_NAME = 'caCertFileName', | ||
| 175 | - PRIVATE_KEY = 'Client private key file', | ||
| 176 | - PRIVATE_KEY_FILE_NAME = 'privateKeyFileName', | ||
| 177 | - CERT = 'Client certificate file', | ||
| 178 | - CERT_FILE_NAME = 'certFileName', | ||
| 179 | - USERNAME = 'Username', | 209 | + TYPE = t('designer_form_label.externals.index.MqttFieldsNameEnum.TYPE'), |
| 210 | + PASSWORD = t('designer_form_label.externals.index.MqttFieldsNameEnum.PASSWORD'), | ||
| 211 | + CA_CERT = t('designer_form_label.externals.index.MqttFieldsNameEnum.CA_CERT'), | ||
| 212 | + CA_CERT_FILE_NAME = t('designer_form_label.externals.index.MqttFieldsNameEnum.CA_CERT_FILE_NAME'), | ||
| 213 | + PRIVATE_KEY = t('designer_form_label.externals.index.MqttFieldsNameEnum.PRIVATE_KEY'), | ||
| 214 | + PRIVATE_KEY_FILE_NAME = t( | ||
| 215 | + 'designer_form_label.externals.index.MqttFieldsNameEnum.PRIVATE_KEY_FILE_NAME' | ||
| 216 | + ), | ||
| 217 | + CERT = t('designer_form_label.externals.index.MqttFieldsNameEnum.CERT'), | ||
| 218 | + CERT_FILE_NAME = t('designer_form_label.externals.index.MqttFieldsNameEnum.CERT_FILE_NAME'), | ||
| 219 | + USERNAME = t('designer_form_label.externals.index.MqttFieldsNameEnum.USERNAME'), | ||
| 180 | } | 220 | } |
| 181 | 221 | ||
| 182 | // Rabbitmq | 222 | // Rabbitmq |
| @@ -196,18 +236,32 @@ export enum RabbitmqFieldsEnum { | @@ -196,18 +236,32 @@ export enum RabbitmqFieldsEnum { | ||
| 196 | } | 236 | } |
| 197 | 237 | ||
| 198 | export enum RabbitmqFieldsNameEnum { | 238 | export enum RabbitmqFieldsNameEnum { |
| 199 | - EXCHANGE_NAME_PATTERN = 'Exchange name pattern', | ||
| 200 | - ROUTING_KEY_PATTERN = 'Routing key pattern', | ||
| 201 | - MESSAGE_PROPERTIES = 'Message properties', | ||
| 202 | - HOST = 'Host', | ||
| 203 | - PORT = 'Port', | ||
| 204 | - VIRTUAL_HOST = 'Virtual host', | ||
| 205 | - USERNAME = 'Username', | ||
| 206 | - PASSWORD = 'Password', | ||
| 207 | - AUTOMATIC_RECOVERY_ENABLED = 'Automatic recovery', | ||
| 208 | - CONNECTION_TIMEOUT = 'Connection timeout(ms)', | ||
| 209 | - HANDSHAKE_TIMEOUT = 'Handshake timeout(ms)', | ||
| 210 | - CLIENT_PROPERTIES = 'Client properties', | 239 | + EXCHANGE_NAME_PATTERN = t( |
| 240 | + 'designer_form_label.externals.index.RabbitmqFieldsNameEnum.EXCHANGE_NAME_PATTERN' | ||
| 241 | + ), | ||
| 242 | + ROUTING_KEY_PATTERN = t( | ||
| 243 | + 'designer_form_label.externals.index.RabbitmqFieldsNameEnum.ROUTING_KEY_PATTERN' | ||
| 244 | + ), | ||
| 245 | + MESSAGE_PROPERTIES = t( | ||
| 246 | + 'designer_form_label.externals.index.RabbitmqFieldsNameEnum.MESSAGE_PROPERTIES' | ||
| 247 | + ), | ||
| 248 | + HOST = t('designer_form_label.externals.index.RabbitmqFieldsNameEnum.HOST'), | ||
| 249 | + PORT = t('designer_form_label.externals.index.RabbitmqFieldsNameEnum.PORT'), | ||
| 250 | + VIRTUAL_HOST = t('designer_form_label.externals.index.RabbitmqFieldsNameEnum.VIRTUAL_HOST'), | ||
| 251 | + USERNAME = t('designer_form_label.externals.index.RabbitmqFieldsNameEnum.USERNAME'), | ||
| 252 | + PASSWORD = t('designer_form_label.externals.index.RabbitmqFieldsNameEnum.PASSWORD'), | ||
| 253 | + AUTOMATIC_RECOVERY_ENABLED = t( | ||
| 254 | + 'designer_form_label.externals.index.RabbitmqFieldsNameEnum.AUTOMATIC_RECOVERY_ENABLED' | ||
| 255 | + ), | ||
| 256 | + CONNECTION_TIMEOUT = t( | ||
| 257 | + 'designer_form_label.externals.index.RabbitmqFieldsNameEnum.CONNECTION_TIMEOUT' | ||
| 258 | + ), | ||
| 259 | + HANDSHAKE_TIMEOUT = t( | ||
| 260 | + 'designer_form_label.externals.index.RabbitmqFieldsNameEnum.HANDSHAKE_TIMEOUT' | ||
| 261 | + ), | ||
| 262 | + CLIENT_PROPERTIES = t( | ||
| 263 | + 'designer_form_label.externals.index.RabbitmqFieldsNameEnum.CLIENT_PROPERTIES' | ||
| 264 | + ), | ||
| 211 | } | 265 | } |
| 212 | 266 | ||
| 213 | // Rest api call | 267 | // Rest api call |
| @@ -243,34 +297,60 @@ export enum RestApiCallFieldsEnum { | @@ -243,34 +297,60 @@ export enum RestApiCallFieldsEnum { | ||
| 243 | } | 297 | } |
| 244 | 298 | ||
| 245 | export enum RestApiCallFieldsNameEnum { | 299 | export enum RestApiCallFieldsNameEnum { |
| 246 | - REST_ENDPOINT_URL_PATTERN = 'Endpoint URL pattern', | ||
| 247 | - REQUEST_METHOD = 'Request method', | ||
| 248 | - USE_SIMPLE_CLIENT_HTTP_FACTORY = 'Use simple client HTTP factory', | ||
| 249 | - IGNORE_REQUEST_BODY = 'Without request body', | ||
| 250 | - ENABLE_PROXY = 'Enable proxy', | ||
| 251 | - USE_SYSTEM_PROXY_PROPERTIES = 'Use system proxy properties', | ||
| 252 | - PROXY_SCHEME = 'Proxy scheme', | ||
| 253 | - PROXY_HOST = 'Proxy host', | ||
| 254 | - PROXY_PORT = 'Proxy port', | ||
| 255 | - PROXY_USER = 'Proxy user', | ||
| 256 | - PROXY_PASSWORD = 'Proxy password', | ||
| 257 | - READ_TIMEOUT_MS = 'Read timeout in millis', | ||
| 258 | - MAX_PARALLEL_REQUESTS_COUNT = 'Max number of parallel request', | ||
| 259 | - HEADERS = 'Header', | ||
| 260 | - USE_REDIS_QUEUE_FOR_MSG_PERSISTENCE = 'Use redis queue for message persistence', | ||
| 261 | - TRIM_QUEUE = 'Trim redis queue', | ||
| 262 | - MAX_QUEUE_SIZE = 'Redis queue max size', | ||
| 263 | - CREDENTIALS = 'Credentials', | 300 | + REST_ENDPOINT_URL_PATTERN = t( |
| 301 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.REST_ENDPOINT_URL_PATTERN' | ||
| 302 | + ), | ||
| 303 | + REQUEST_METHOD = t( | ||
| 304 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.REQUEST_METHOD' | ||
| 305 | + ), | ||
| 306 | + USE_SIMPLE_CLIENT_HTTP_FACTORY = t( | ||
| 307 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.USE_SIMPLE_CLIENT_HTTP_FACTORY' | ||
| 308 | + ), | ||
| 309 | + IGNORE_REQUEST_BODY = t( | ||
| 310 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.IGNORE_REQUEST_BODY' | ||
| 311 | + ), | ||
| 312 | + ENABLE_PROXY = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.ENABLE_PROXY'), | ||
| 313 | + USE_SYSTEM_PROXY_PROPERTIES = t( | ||
| 314 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.USE_SYSTEM_PROXY_PROPERTIES' | ||
| 315 | + ), | ||
| 316 | + PROXY_SCHEME = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.PROXY_SCHEME'), | ||
| 317 | + PROXY_HOST = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.PROXY_HOST'), | ||
| 318 | + PROXY_PORT = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.PROXY_PORT'), | ||
| 319 | + PROXY_USER = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.PROXY_USER'), | ||
| 320 | + PROXY_PASSWORD = t( | ||
| 321 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.PROXY_PASSWORD' | ||
| 322 | + ), | ||
| 323 | + READ_TIMEOUT_MS = t( | ||
| 324 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.READ_TIMEOUT_MS' | ||
| 325 | + ), | ||
| 326 | + MAX_PARALLEL_REQUESTS_COUNT = t( | ||
| 327 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.MAX_PARALLEL_REQUESTS_COUNT' | ||
| 328 | + ), | ||
| 329 | + HEADERS = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.HEADERS'), | ||
| 330 | + USE_REDIS_QUEUE_FOR_MSG_PERSISTENCE = t( | ||
| 331 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.USE_REDIS_QUEUE_FOR_MSG_PERSISTENCE' | ||
| 332 | + ), | ||
| 333 | + TRIM_QUEUE = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.TRIM_QUEUE'), | ||
| 334 | + MAX_QUEUE_SIZE = t( | ||
| 335 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.MAX_QUEUE_SIZE' | ||
| 336 | + ), | ||
| 337 | + CREDENTIALS = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.CREDENTIALS'), | ||
| 264 | 338 | ||
| 265 | - TYPE = 'Credentials type', | ||
| 266 | - PASSWORD = 'Password', | ||
| 267 | - CA_CERT = 'Server CA certificate file', | ||
| 268 | - CA_CERT_FILE_NAME = 'caCertFileName', | ||
| 269 | - PRIVATE_KEY = 'Client private key file', | ||
| 270 | - PRIVATE_KEY_FILE_NAME = 'privateKeyFileName', | ||
| 271 | - CERT = 'Client certificate file', | ||
| 272 | - CERT_FILE_NAME = 'certFileName', | ||
| 273 | - USERNAME = 'Username', | 339 | + TYPE = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.TYPE'), |
| 340 | + PASSWORD = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.PASSWORD'), | ||
| 341 | + CA_CERT = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.CA_CERT'), | ||
| 342 | + CA_CERT_FILE_NAME = t( | ||
| 343 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.CA_CERT_FILE_NAME' | ||
| 344 | + ), | ||
| 345 | + PRIVATE_KEY = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.PRIVATE_KEY'), | ||
| 346 | + PRIVATE_KEY_FILE_NAME = t( | ||
| 347 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.PRIVATE_KEY_FILE_NAME' | ||
| 348 | + ), | ||
| 349 | + CERT = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.CERT'), | ||
| 350 | + CERT_FILE_NAME = t( | ||
| 351 | + 'designer_form_label.externals.index.RestApiCallFieldsNameEnum.CERT_FILE_NAME' | ||
| 352 | + ), | ||
| 353 | + USERNAME = t('designer_form_label.externals.index.RestApiCallFieldsNameEnum.USERNAME'), | ||
| 274 | } | 354 | } |
| 275 | 355 | ||
| 276 | // send email | 356 | // send email |
| @@ -292,20 +372,22 @@ export enum SendEmailFieldsEnum { | @@ -292,20 +372,22 @@ export enum SendEmailFieldsEnum { | ||
| 292 | } | 372 | } |
| 293 | 373 | ||
| 294 | export enum SendEmailFieldsNameEnum { | 374 | export enum SendEmailFieldsNameEnum { |
| 295 | - USE_SYSTEM_SMTP_SETTINGS = 'Use system SMTP settings', | ||
| 296 | - SMTP_PROTOCOL = 'Protocol', | ||
| 297 | - SMTP_HOST = 'SMTP host', | ||
| 298 | - SMTP_PORT = 'SMTP port', | ||
| 299 | - TIMEOUT = 'Timeout ms', | ||
| 300 | - ENABLE_TLS = 'Enable TLS', | ||
| 301 | - TLS_VERSION = 'TLS version', | ||
| 302 | - ENABLE_PROXY = 'Enable proxy', | ||
| 303 | - PROXY_HOST = 'Proxy host', | ||
| 304 | - PROXY_PORT = 'Proxy port', | ||
| 305 | - PROXY_USER = 'Proxy user', | ||
| 306 | - PROXY_PASSWORD = 'Proxy password', | ||
| 307 | - USERNAME = 'Username', | ||
| 308 | - PASSWORD = 'Password', | 375 | + USE_SYSTEM_SMTP_SETTINGS = t( |
| 376 | + 'designer_form_label.externals.index.SendEmailFieldsNameEnum.USE_SYSTEM_SMTP_SETTINGS' | ||
| 377 | + ), | ||
| 378 | + SMTP_PROTOCOL = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.SMTP_PROTOCOL'), | ||
| 379 | + SMTP_HOST = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.SMTP_HOST'), | ||
| 380 | + SMTP_PORT = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.SMTP_PORT'), | ||
| 381 | + TIMEOUT = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.TIMEOUT'), | ||
| 382 | + ENABLE_TLS = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.ENABLE_TLS'), | ||
| 383 | + TLS_VERSION = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.TLS_VERSION'), | ||
| 384 | + ENABLE_PROXY = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.ENABLE_PROXY'), | ||
| 385 | + PROXY_HOST = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.PROXY_HOST'), | ||
| 386 | + PROXY_PORT = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.PROXY_PORT'), | ||
| 387 | + PROXY_USER = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.PROXY_USER'), | ||
| 388 | + PROXY_PASSWORD = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.PROXY_PASSWORD'), | ||
| 389 | + USERNAME = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.USERNAME'), | ||
| 390 | + PASSWORD = t('designer_form_label.externals.index.SendEmailFieldsNameEnum.PASSWORD'), | ||
| 309 | } | 391 | } |
| 310 | 392 | ||
| 311 | export enum SendSMSFieldsEnum { | 393 | export enum SendSMSFieldsEnum { |
| @@ -324,16 +406,26 @@ export enum SendSMSFieldsEnum { | @@ -324,16 +406,26 @@ export enum SendSMSFieldsEnum { | ||
| 324 | } | 406 | } |
| 325 | 407 | ||
| 326 | export enum SendSMSFieldsNameEnum { | 408 | export enum SendSMSFieldsNameEnum { |
| 327 | - NUMBERS_TO_TEMPLATE = 'Phone Numbers To Template', | ||
| 328 | - SMS_MESSAGE_TEMPLATE = 'SMS message Template', | ||
| 329 | - USE_SYSTEM_SMS_SETTINGS = 'User system SMS provider settings', | ||
| 330 | - SMS_PROVIDER_CONFIGURATION = 'smsProviderConfiguration', | 409 | + NUMBERS_TO_TEMPLATE = t( |
| 410 | + 'designer_form_label.externals.index.SendSMSFieldsNameEnum.NUMBERS_TO_TEMPLATE' | ||
| 411 | + ), | ||
| 412 | + SMS_MESSAGE_TEMPLATE = t( | ||
| 413 | + 'designer_form_label.externals.index.SendSMSFieldsNameEnum.SMS_MESSAGE_TEMPLATE' | ||
| 414 | + ), | ||
| 415 | + USE_SYSTEM_SMS_SETTINGS = t( | ||
| 416 | + 'designer_form_label.externals.index.SendSMSFieldsNameEnum.USE_SYSTEM_SMS_SETTINGS' | ||
| 417 | + ), | ||
| 418 | + SMS_PROVIDER_CONFIGURATION = t( | ||
| 419 | + 'designer_form_label.externals.index.SendSMSFieldsNameEnum.SMS_PROVIDER_CONFIGURATION' | ||
| 420 | + ), | ||
| 331 | 421 | ||
| 332 | - ACCESS_KEY_ID = 'AWS访问密钥ID', | ||
| 333 | - SECRET_ACCESS_KEY = 'AWS访问密钥', | ||
| 334 | - REGION = 'AWS地区', | ||
| 335 | - TYPE = 'SMS服务商类型', | ||
| 336 | - NUMBER_FROM = '发送方电话号码', | ||
| 337 | - ACCOUNT_SID = 'Twilio账户SID', | ||
| 338 | - ACCOUNT_TOKEN = 'Twilio账户令牌', | 422 | + ACCESS_KEY_ID = t('designer_form_label.externals.index.SendSMSFieldsNameEnum.ACCESS_KEY_ID'), |
| 423 | + SECRET_ACCESS_KEY = t( | ||
| 424 | + 'designer_form_label.externals.index.SendSMSFieldsNameEnum.SECRET_ACCESS_KEY' | ||
| 425 | + ), | ||
| 426 | + REGION = t('designer_form_label.externals.index.SendSMSFieldsNameEnum.REGION'), | ||
| 427 | + TYPE = t('designer_form_label.externals.index.SendSMSFieldsNameEnum.TYPE'), | ||
| 428 | + NUMBER_FROM = t('designer_form_label.externals.index.SendSMSFieldsNameEnum.NUMBER_FROM'), | ||
| 429 | + ACCOUNT_SID = t('designer_form_label.externals.index.SendSMSFieldsNameEnum.ACCOUNT_SID'), | ||
| 430 | + ACCOUNT_TOKEN = t('designer_form_label.externals.index.SendSMSFieldsNameEnum.ACCOUNT_TOKEN'), | ||
| 339 | } | 431 | } |
| 1 | +import { useI18n } from '/@/hooks/web/useI18n'; | ||
| 2 | + | ||
| 3 | +const { t } = useI18n() as any; //加载国际化 | ||
| 4 | + | ||
| 1 | // Filter Check Alarm Status Fields | 5 | // Filter Check Alarm Status Fields |
| 2 | export enum CheckAlarmStatusFieldEnum { | 6 | export enum CheckAlarmStatusFieldEnum { |
| 3 | ALARM_STATUS_LIST = 'alarmStatusList', | 7 | ALARM_STATUS_LIST = 'alarmStatusList', |
| 4 | } | 8 | } |
| 5 | 9 | ||
| 6 | export enum CheckAlarmStatusFieldNameEnum { | 10 | export enum CheckAlarmStatusFieldNameEnum { |
| 7 | - ALARM_STATUS_LIST = 'Alarm status filter', | 11 | + ALARM_STATUS_LIST = t( |
| 12 | + 'designer_form_label.filters.index.CheckAlarmStatusFieldNameEnum.ALARM_STATUS_LIST' | ||
| 13 | + ), | ||
| 8 | } | 14 | } |
| 9 | 15 | ||
| 10 | // Filter CHeck Existence Fields | 16 | // Filter CHeck Existence Fields |
| @@ -15,9 +21,13 @@ export enum CheckExistenceFieldsEnum { | @@ -15,9 +21,13 @@ export enum CheckExistenceFieldsEnum { | ||
| 15 | } | 21 | } |
| 16 | 22 | ||
| 17 | export enum CheckExistenceFieldsNameEnum { | 23 | export enum CheckExistenceFieldsNameEnum { |
| 18 | - MESSAGE_NAMES = '消息数据', | ||
| 19 | - METADATA_NAMES = '消息元数据', | ||
| 20 | - CHECK_ALL_KEYS = '检查所有选择的键是否都存在', | 24 | + MESSAGE_NAMES = t('designer_form_label.filters.index.CheckExistenceFieldsNameEnum.MESSAGE_NAMES'), |
| 25 | + METADATA_NAMES = t( | ||
| 26 | + 'designer_form_label.filters.index.CheckExistenceFieldsNameEnum.METADATA_NAMES' | ||
| 27 | + ), | ||
| 28 | + CHECK_ALL_KEYS = t( | ||
| 29 | + 'designer_form_label.filters.index.CheckExistenceFieldsNameEnum.CHECK_ALL_KEYS' | ||
| 30 | + ), | ||
| 21 | } | 31 | } |
| 22 | 32 | ||
| 23 | // Filter Check Relation Fields | 33 | // Filter Check Relation Fields |
| @@ -30,10 +40,14 @@ export enum CheckRelationFieldsEnum { | @@ -30,10 +40,14 @@ export enum CheckRelationFieldsEnum { | ||
| 30 | } | 40 | } |
| 31 | 41 | ||
| 32 | export enum CheckRelationFieldsNameEnum { | 42 | export enum CheckRelationFieldsNameEnum { |
| 33 | - DIRECTION = '方向', | ||
| 34 | - CHECK_FOR_SINGLE_ENTITY = 'Check relation to specific entity', | ||
| 35 | - ENTITY_TYPE = '类型', | ||
| 36 | - RELEATION_TYPE = '关联类型', | 43 | + DIRECTION = t('designer_form_label.filters.index.CheckRelationFieldsNameEnum.DIRECTION'), |
| 44 | + CHECK_FOR_SINGLE_ENTITY = t( | ||
| 45 | + 'designer_form_label.filters.index.CheckRelationFieldsNameEnum.CHECK_FOR_SINGLE_ENTITY' | ||
| 46 | + ), | ||
| 47 | + ENTITY_TYPE = t('designer_form_label.filters.index.CheckRelationFieldsNameEnum.ENTITY_TYPE'), | ||
| 48 | + RELEATION_TYPE = t( | ||
| 49 | + 'designer_form_label.filters.index.CheckRelationFieldsNameEnum.RELEATION_TYPE' | ||
| 50 | + ), | ||
| 37 | } | 51 | } |
| 38 | 52 | ||
| 39 | // Filter Gps geofencing filter | 53 | // Filter Gps geofencing filter |
| @@ -51,16 +65,32 @@ export enum GpsGeofencingFilterFieldsEnum { | @@ -51,16 +65,32 @@ export enum GpsGeofencingFilterFieldsEnum { | ||
| 51 | } | 65 | } |
| 52 | 66 | ||
| 53 | export enum GpsGeofencingFilterFieldsNameEnum { | 67 | export enum GpsGeofencingFilterFieldsNameEnum { |
| 54 | - LATITUDE_KEY_NAME = 'Latitude Key Name', | ||
| 55 | - LONGITUDE_KEY_NAME = 'Longitude Key Name', | ||
| 56 | - PERIMETER_TYPE = 'Perimeter Type', | ||
| 57 | - FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA = 'Fetch perimeter information from message metadata', | ||
| 58 | - CENTER_LATITUDE = 'Center latitude', | ||
| 59 | - CENTER_LONGITUDE = 'Center longitude', | ||
| 60 | - RANGE = 'Range', | ||
| 61 | - RANGE_UNIT = 'Range unit', | ||
| 62 | - PERIMETER_KEY_NAME = 'Perimeter key name', | ||
| 63 | - POLYGONS_DEFINITION = 'Polygons definition', | 68 | + LATITUDE_KEY_NAME = t( |
| 69 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.LATITUDE_KEY_NAME' | ||
| 70 | + ), | ||
| 71 | + LONGITUDE_KEY_NAME = t( | ||
| 72 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.LONGITUDE_KEY_NAME' | ||
| 73 | + ), | ||
| 74 | + PERIMETER_TYPE = t( | ||
| 75 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.PERIMETER_TYPE' | ||
| 76 | + ), | ||
| 77 | + FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA = t( | ||
| 78 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.FETCH_PERIMETER_INFO_FROM_MESSAGE_METADATA' | ||
| 79 | + ), | ||
| 80 | + CENTER_LATITUDE = t( | ||
| 81 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.CENTER_LATITUDE' | ||
| 82 | + ), | ||
| 83 | + CENTER_LONGITUDE = t( | ||
| 84 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.CENTER_LONGITUDE' | ||
| 85 | + ), | ||
| 86 | + RANGE = t('designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.RANGE'), | ||
| 87 | + RANGE_UNIT = t('designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.RANGE_UNIT'), | ||
| 88 | + PERIMETER_KEY_NAME = t( | ||
| 89 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.PERIMETER_KEY_NAME' | ||
| 90 | + ), | ||
| 91 | + POLYGONS_DEFINITION = t( | ||
| 92 | + 'designer_form_label.filters.index.GpsGeofencingFilterFieldsNameEnum.POLYGONS_DEFINITION' | ||
| 93 | + ), | ||
| 64 | } | 94 | } |
| 65 | 95 | ||
| 66 | // Filter Message Type | 96 | // Filter Message Type |
| @@ -69,7 +99,7 @@ export enum MessageTypeFieldsEnum { | @@ -69,7 +99,7 @@ export enum MessageTypeFieldsEnum { | ||
| 69 | } | 99 | } |
| 70 | 100 | ||
| 71 | export enum MessageTypeFieldsNameEnum { | 101 | export enum MessageTypeFieldsNameEnum { |
| 72 | - MESSAGE_TYPES = 'Message Types Filter', | 102 | + MESSAGE_TYPES = t('designer_form_label.filters.index.MessageTypeFieldsNameEnum.MESSAGE_TYPES'), |
| 73 | } | 103 | } |
| 74 | 104 | ||
| 75 | // Filter Originator Type | 105 | // Filter Originator Type |
| @@ -78,7 +108,9 @@ export enum OriginatorTypeFieldsEnum { | @@ -78,7 +108,9 @@ export enum OriginatorTypeFieldsEnum { | ||
| 78 | } | 108 | } |
| 79 | 109 | ||
| 80 | export enum OriginatorTypeFieldsNameEnum { | 110 | export enum OriginatorTypeFieldsNameEnum { |
| 81 | - ORIGINATOR_TYPES = 'Originator types filter', | 111 | + ORIGINATOR_TYPES = t( |
| 112 | + 'designer_form_label.filters.index.OriginatorTypeFieldsNameEnum.ORIGINATOR_TYPES' | ||
| 113 | + ), | ||
| 82 | } | 114 | } |
| 83 | 115 | ||
| 84 | // Filter Script | 116 | // Filter Script |
| @@ -87,7 +119,7 @@ export enum ScriptFieldsEnum { | @@ -87,7 +119,7 @@ export enum ScriptFieldsEnum { | ||
| 87 | } | 119 | } |
| 88 | 120 | ||
| 89 | export enum ScriptFieldsNameEnum { | 121 | export enum ScriptFieldsNameEnum { |
| 90 | - JS_SCRIPT = 'Filter', | 122 | + JS_SCRIPT = t('designer_form_label.filters.index.ScriptFieldsNameEnum.JS_SCRIPT'), |
| 91 | } | 123 | } |
| 92 | 124 | ||
| 93 | // Filter Switch | 125 | // Filter Switch |
| @@ -96,5 +128,5 @@ export enum SwitchFieldsEnum { | @@ -96,5 +128,5 @@ export enum SwitchFieldsEnum { | ||
| 96 | } | 128 | } |
| 97 | 129 | ||
| 98 | export enum SwitchFieldsNameEnum { | 130 | export enum SwitchFieldsNameEnum { |
| 99 | - JS_SCRIPT = 'Filter', | 131 | + JS_SCRIPT = t('designer_form_label.filters.index.SwitchFieldsNameEnum.JS_SCRIPT'), |
| 100 | } | 132 | } |
| 1 | +import { useI18n } from '/@/hooks/web/useI18n'; | ||
| 2 | + | ||
| 3 | +const { t } = useI18n() as any; //加载国际化 | ||
| 4 | + | ||
| 1 | export enum CheckPointFieldsEnum { | 5 | export enum CheckPointFieldsEnum { |
| 2 | QUEUE_NAME = 'queueName', | 6 | QUEUE_NAME = 'queueName', |
| 3 | } | 7 | } |
| 4 | - | ||
| 5 | export enum CheckPointFieldsNameEnum { | 8 | export enum CheckPointFieldsNameEnum { |
| 6 | - QUEUE_NAME = '队列名称', | 9 | + QUEUE_NAME = t('designer_form_label.flows.index.CheckPointFieldsNameEnum.QUEUE_NAME'), |
| 7 | } | 10 | } |
| 8 | 11 | ||
| 9 | export enum RuleChainFieldsEnum { | 12 | export enum RuleChainFieldsEnum { |
| @@ -11,5 +14,5 @@ export enum RuleChainFieldsEnum { | @@ -11,5 +14,5 @@ export enum RuleChainFieldsEnum { | ||
| 11 | } | 14 | } |
| 12 | 15 | ||
| 13 | export enum RuleChainFieldsNameEnum { | 16 | export enum RuleChainFieldsNameEnum { |
| 14 | - RULE_CHAIN_ID = '规则链', | 17 | + RULE_CHAIN_ID = t('designer_form_label.flows.index.RuleChainFieldsNameEnum.RULE_CHAIN_ID'), |
| 15 | } | 18 | } |
| 1 | +import { useI18n } from '/@/hooks/web/useI18n'; | ||
| 2 | + | ||
| 3 | +const { t } = useI18n() as any; //加载国际化 | ||
| 4 | + | ||
| 1 | // Change originator | 5 | // Change originator |
| 2 | export enum ChangeOriginatorFieldsEnum { | 6 | export enum ChangeOriginatorFieldsEnum { |
| 3 | ORIGINATOR_SOURCE = 'originatorSource', | 7 | ORIGINATOR_SOURCE = 'originatorSource', |
| @@ -5,8 +9,12 @@ export enum ChangeOriginatorFieldsEnum { | @@ -5,8 +9,12 @@ export enum ChangeOriginatorFieldsEnum { | ||
| 5 | } | 9 | } |
| 6 | 10 | ||
| 7 | export enum ChangeOriginatorFieldsNameEnum { | 11 | export enum ChangeOriginatorFieldsNameEnum { |
| 8 | - ORIGINATOR_SOURCE = 'Originator source', | ||
| 9 | - RELATIONS_QUERY = 'Relations Query', | 12 | + ORIGINATOR_SOURCE = t( |
| 13 | + 'designer_form_label.transformations.index.ChangeOriginatorFieldsNameEnum.ORIGINATOR_SOURCE' | ||
| 14 | + ), | ||
| 15 | + RELATIONS_QUERY = t( | ||
| 16 | + 'designer_form_label.transformations.index.ChangeOriginatorFieldsNameEnum.RELATIONS_QUERY' | ||
| 17 | + ), | ||
| 10 | } | 18 | } |
| 11 | 19 | ||
| 12 | export enum ScriptFieldsEnum { | 20 | export enum ScriptFieldsEnum { |
| @@ -14,7 +22,7 @@ export enum ScriptFieldsEnum { | @@ -14,7 +22,7 @@ export enum ScriptFieldsEnum { | ||
| 14 | } | 22 | } |
| 15 | 23 | ||
| 16 | export enum ScriptFieldsNameEnum { | 24 | export enum ScriptFieldsNameEnum { |
| 17 | - JS_SCRIPT = 'Transform', | 25 | + JS_SCRIPT = t('designer_form_label.transformations.index.ScriptFieldsNameEnum.JS_SCRIPT'), |
| 18 | } | 26 | } |
| 19 | 27 | ||
| 20 | export enum ToEmailFieldsEnum { | 28 | export enum ToEmailFieldsEnum { |
| @@ -29,12 +37,22 @@ export enum ToEmailFieldsEnum { | @@ -29,12 +37,22 @@ export enum ToEmailFieldsEnum { | ||
| 29 | } | 37 | } |
| 30 | 38 | ||
| 31 | export enum ToEmailFieldsNameEnum { | 39 | export enum ToEmailFieldsNameEnum { |
| 32 | - FROM_TEMPLATE = 'From Template', | ||
| 33 | - TO_TEMPLATE = 'To Template', | ||
| 34 | - CC_TEMPLATE = 'Cc Template', | ||
| 35 | - BCC_TEMPLATE = 'Bcc Template', | ||
| 36 | - SUBJECT_TEMPLATE = 'Subject Template', | ||
| 37 | - MAIL_BODY_TYPE = 'Mail body type', | ||
| 38 | - IS_HTML_TEMPLATE = 'Dynamic mail body type', | ||
| 39 | - BODY_TEMPLATE = 'Body Template', | 40 | + FROM_TEMPLATE = t( |
| 41 | + 'designer_form_label.transformations.index.ToEmailFieldsNameEnum.FROM_TEMPLATE' | ||
| 42 | + ), | ||
| 43 | + TO_TEMPLATE = t('designer_form_label.transformations.index.ToEmailFieldsNameEnum.TO_TEMPLATE'), | ||
| 44 | + CC_TEMPLATE = t('designer_form_label.transformations.index.ToEmailFieldsNameEnum.CC_TEMPLATE'), | ||
| 45 | + BCC_TEMPLATE = t('designer_form_label.transformations.index.ToEmailFieldsNameEnum.BCC_TEMPLATE'), | ||
| 46 | + SUBJECT_TEMPLATE = t( | ||
| 47 | + 'designer_form_label.transformations.index.ToEmailFieldsNameEnum.SUBJECT_TEMPLATE' | ||
| 48 | + ), | ||
| 49 | + MAIL_BODY_TYPE = t( | ||
| 50 | + 'designer_form_label.transformations.index.ToEmailFieldsNameEnum.MAIL_BODY_TYPE' | ||
| 51 | + ), | ||
| 52 | + IS_HTML_TEMPLATE = t( | ||
| 53 | + 'designer_form_label.transformations.index.ToEmailFieldsNameEnum.IS_HTML_TEMPLATE' | ||
| 54 | + ), | ||
| 55 | + BODY_TEMPLATE = t( | ||
| 56 | + 'designer_form_label.transformations.index.ToEmailFieldsNameEnum.BODY_TEMPLATE' | ||
| 57 | + ), | ||
| 40 | } | 58 | } |
| @@ -15,11 +15,11 @@ export const AssignToCustomerConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const AssignToCustomerConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbAssignToCustomerNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbAssignToCustomerNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.assignToCustomer.name'), | 18 | + name: t('designer_config.actions.index.assignToCustomer.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.assignToCustomer.details'), | ||
| 22 | - description: t('actions.index.assignToCustomer.description'), | 21 | + details: t('designer_config.actions.index.assignToCustomer.details'), |
| 22 | + description: t('designer_config.actions.index.assignToCustomer.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const ClearAlarmConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const ClearAlarmConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbClearAlarmNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbClearAlarmNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.clearAlarm.name'), | 18 | + name: t('designer_config.actions.index.clearAlarm.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.clearAlarm.details'), | ||
| 22 | - description: t('actions.index.clearAlarm.description'), | 21 | + details: t('designer_config.actions.index.clearAlarm.details'), |
| 22 | + description: t('designer_config.actions.index.clearAlarm.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Cleared', 'False', 'Failure'], | 25 | relationTypes: ['Cleared', 'False', 'Failure'], |
| @@ -15,11 +15,11 @@ export const CopyToViewConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CopyToViewConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbCopyAttributesToEntityViewNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbCopyAttributesToEntityViewNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.copyToView.name'), | 18 | + name: t('designer_config.actions.index.copyToView.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.copyToView.details'), | ||
| 22 | - description: t('actions.index.copyToView.description'), | 21 | + details: t('designer_config.actions.index.copyToView.details'), |
| 22 | + description: t('designer_config.actions.index.copyToView.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const CreateAlarmConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CreateAlarmConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbCreateAlarmNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbCreateAlarmNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.createAlarm.name'), | 18 | + name: t('designer_config.actions.index.createAlarm.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.createAlarm.details'), | ||
| 22 | - description: t('actions.index.createAlarm.description'), | 21 | + details: t('designer_config.actions.index.createAlarm.details'), |
| 22 | + description: t('designer_config.actions.index.createAlarm.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Created', 'Updated', 'False', 'Failure'], | 25 | relationTypes: ['Created', 'Updated', 'False', 'Failure'], |
| @@ -15,11 +15,11 @@ export const CreateRelationConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CreateRelationConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbCreateRelationNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbCreateRelationNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.createRelation.name'), | 18 | + name: t('designer_config.actions.index.createRelation.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.createRelation.details'), | ||
| 22 | - description: t('actions.index.createRelation.description'), | 21 | + details: t('designer_config.actions.index.createRelation.details'), |
| 22 | + description: t('designer_config.actions.index.createRelation.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const DelayDeprecatedConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const DelayDeprecatedConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.delay.TbMsgDelayNode', | 16 | clazz: 'org.thingsboard.rule.engine.delay.TbMsgDelayNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.delay.name'), | 18 | + name: t('designer_config.actions.index.delay.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.delay.details'), | ||
| 22 | - description: t('actions.index.delay.description'), | 21 | + details: t('designer_config.actions.index.delay.details'), |
| 22 | + description: t('designer_config.actions.index.delay.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -16,11 +16,11 @@ export const DeleteRelationConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const DeleteRelationConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.action.TbDeleteRelationNode', | 17 | clazz: 'org.thingsboard.rule.engine.action.TbDeleteRelationNode', |
| 18 | categoryType: RuleNodeTypeEnum.ACTION, | 18 | categoryType: RuleNodeTypeEnum.ACTION, |
| 19 | - name: t('actions.index.deleteRelation.name'), | 19 | + name: t('designer_config.actions.index.deleteRelation.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('actions.index.deleteRelation.details'), | ||
| 23 | - description: t('actions.index.deleteRelation.description'), | 22 | + details: t('designer_config.actions.index.deleteRelation.details'), |
| 23 | + description: t('designer_config.actions.index.deleteRelation.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['Success', 'Failure'], | 26 | relationTypes: ['Success', 'Failure'], |
| @@ -16,11 +16,11 @@ export const DeviceProfileConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const DeviceProfileConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.profile.TbDeviceProfileNode', | 17 | clazz: 'org.thingsboard.rule.engine.profile.TbDeviceProfileNode', |
| 18 | categoryType: RuleNodeTypeEnum.ACTION, | 18 | categoryType: RuleNodeTypeEnum.ACTION, |
| 19 | - name: t('actions.index.deviceProfile.name'), | 19 | + name: t('designer_config.actions.index.deviceProfile.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('actions.index.deviceProfile.details'), | ||
| 23 | - description: t('actions.index.deviceProfile.description'), | 22 | + details: t('designer_config.actions.index.deviceProfile.details'), |
| 23 | + description: t('designer_config.actions.index.deviceProfile.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: [ | 26 | relationTypes: [ |
| @@ -16,11 +16,11 @@ export const GeneratorConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const GeneratorConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.debug.TbMsgGeneratorNode', | 17 | clazz: 'org.thingsboard.rule.engine.debug.TbMsgGeneratorNode', |
| 18 | categoryType: RuleNodeTypeEnum.ACTION, | 18 | categoryType: RuleNodeTypeEnum.ACTION, |
| 19 | - name: t('actions.index.generator.name'), | 19 | + name: t('designer_config.actions.index.generator.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('actions.index.generator.details'), | ||
| 23 | - description: t('actions.index.generator.description'), | 22 | + details: t('designer_config.actions.index.generator.details'), |
| 23 | + description: t('designer_config.actions.index.generator.description'), | ||
| 24 | inEnabled: false, | 24 | inEnabled: false, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['Success', 'Failure'], | 26 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const GpsGeofencingEventsConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const GpsGeofencingEventsConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.geo.TbGpsGeofencingActionNode', | 16 | clazz: 'org.thingsboard.rule.engine.geo.TbGpsGeofencingActionNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.gpsGeofencingEvents.name'), | 18 | + name: t('designer_config.actions.index.gpsGeofencingEvents.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.gpsGeofencingEvents.details'), | ||
| 22 | - description: t('actions.index.gpsGeofencingEvents.description'), | 21 | + details: t('designer_config.actions.index.gpsGeofencingEvents.details'), |
| 22 | + description: t('designer_config.actions.index.gpsGeofencingEvents.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Entered', 'Left', 'Inside', 'Outside', 'Failure'], | 25 | relationTypes: ['Success', 'Entered', 'Left', 'Inside', 'Outside', 'Failure'], |
| @@ -15,11 +15,11 @@ export const LogConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const LogConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbLogNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbLogNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.log.name'), | 18 | + name: t('designer_config.actions.index.log.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.log.details'), | ||
| 22 | - description: t('actions.index.log.description'), | 21 | + details: t('designer_config.actions.index.log.details'), |
| 22 | + description: t('designer_config.actions.index.log.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -16,11 +16,11 @@ export const MessageCountConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const MessageCountConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.action.TbMsgCountNode', | 17 | clazz: 'org.thingsboard.rule.engine.action.TbMsgCountNode', |
| 18 | categoryType: RuleNodeTypeEnum.ACTION, | 18 | categoryType: RuleNodeTypeEnum.ACTION, |
| 19 | - name: t('actions.index.messageCount.name'), | 19 | + name: t('designer_config.actions.index.messageCount.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('actions.index.messageCount.details'), | ||
| 23 | - description: t('actions.index.messageCount.description'), | 22 | + details: t('designer_config.actions.index.messageCount.details'), |
| 23 | + description: t('designer_config.actions.index.messageCount.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['Success', 'Failure'], | 26 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const PushToEdgeConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const PushToEdgeConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.edge.TbMsgPushToEdgeNode', | 16 | clazz: 'org.thingsboard.rule.engine.edge.TbMsgPushToEdgeNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.pushToEdge.name'), | 18 | + name: t('designer_config.actions.index.pushToEdge.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.pushToEdge.details'), | ||
| 22 | - description: t('actions.index.pushToEdge.description'), | 21 | + details: t('designer_config.actions.index.pushToEdge.details'), |
| 22 | + description: t('designer_config.actions.index.pushToEdge.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const RpcCallReplyConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const RpcCallReplyConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.rpc.TbSendRPCReplyNode', | 16 | clazz: 'org.thingsboard.rule.engine.rpc.TbSendRPCReplyNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.rpcCallReply.name'), | 18 | + name: t('designer_config.actions.index.rpcCallReply.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.rpcCallReply.details'), | ||
| 22 | - description: t('actions.index.rpcCallReply.description'), | 21 | + details: t('designer_config.actions.index.rpcCallReply.details'), |
| 22 | + description: t('designer_config.actions.index.rpcCallReply.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const RpcCallRequestConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const RpcCallRequestConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode', | 16 | clazz: 'org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.rpcCallRequest.name'), | 18 | + name: t('designer_config.actions.index.rpcCallRequest.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.rpcCallRequest.details'), | ||
| 22 | - description: t('actions.index.rpcCallRequest.description'), | 21 | + details: t('designer_config.actions.index.rpcCallRequest.details'), |
| 22 | + description: t('designer_config.actions.index.rpcCallRequest.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SaveAttributesConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SaveAttributesConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode', | 16 | clazz: 'org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.saveAttributes.name'), | 18 | + name: t('designer_config.actions.index.saveAttributes.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.saveAttributes.details'), | ||
| 22 | - description: t('actions.index.saveAttributes.description'), | 21 | + details: t('designer_config.actions.index.saveAttributes.details'), |
| 22 | + description: t('designer_config.actions.index.saveAttributes.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SaveEventConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SaveEventConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.yunteng.event.TkMsgEventNode', | 16 | clazz: 'org.thingsboard.rule.engine.yunteng.event.TkMsgEventNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.saveEvent.name'), | 18 | + name: t('designer_config.actions.index.saveEvent.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.saveEvent.details'), | ||
| 22 | - description: t('actions.index.saveEvent.description'), | 21 | + details: t('designer_config.actions.index.saveEvent.details'), |
| 22 | + description: t('designer_config.actions.index.saveEvent.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SaveTimeseriesConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SaveTimeseriesConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode', | 16 | clazz: 'org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.saveTimeseries.name'), | 18 | + name: t('designer_config.actions.index.saveTimeseries.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.saveTimeseries.details'), | ||
| 22 | - description: t('actions.index.saveTimeseries.description'), | 21 | + details: t('designer_config.actions.index.saveTimeseries.details'), |
| 22 | + description: t('designer_config.actions.index.saveTimeseries.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SaveToCustomTableConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SaveToCustomTableConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbSaveToCustomCassandraTableNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbSaveToCustomCassandraTableNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.saveToCustomTable.name'), | 18 | + name: t('designer_config.actions.index.saveToCustomTable.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.saveToCustomTable.details'), | ||
| 22 | - description: t('actions.index.saveToCustomTable.description'), | 21 | + details: t('designer_config.actions.index.saveToCustomTable.details'), |
| 22 | + description: t('designer_config.actions.index.saveToCustomTable.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SynchronizationEndConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SynchronizationEndConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.transaction.TbSynchronizationEndNode', | 16 | clazz: 'org.thingsboard.rule.engine.transaction.TbSynchronizationEndNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.synchronizationEnd.name'), | 18 | + name: t('designer_config.actions.index.synchronizationEnd.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.synchronizationEnd.details'), | ||
| 22 | - description: t('actions.index.synchronizationEnd.description'), | 21 | + details: t('designer_config.actions.index.synchronizationEnd.details'), |
| 22 | + description: t('designer_config.actions.index.synchronizationEnd.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SynchronizationStartConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SynchronizationStartConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.transaction.TbSynchronizationBeginNode', | 16 | clazz: 'org.thingsboard.rule.engine.transaction.TbSynchronizationBeginNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.synchronizationStart.name'), | 18 | + name: t('designer_config.actions.index.synchronizationStart.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.synchronizationStart.details'), | ||
| 22 | - description: t('actions.index.synchronizationStart.description'), | 21 | + details: t('designer_config.actions.index.synchronizationStart.details'), |
| 22 | + description: t('designer_config.actions.index.synchronizationStart.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const UnassignFromCustomerConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const UnassignFromCustomerConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.action.TbUnassignFromCustomerNode', | 16 | clazz: 'org.thingsboard.rule.engine.action.TbUnassignFromCustomerNode', |
| 17 | categoryType: RuleNodeTypeEnum.ACTION, | 17 | categoryType: RuleNodeTypeEnum.ACTION, |
| 18 | - name: t('actions.index.unassigFromCustomer.name'), | 18 | + name: t('designer_config.actions.index.unassigFromCustomer.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('actions.index.unassigFromCustomer.details'), | ||
| 22 | - description: t('actions.index.unassigFromCustomer.description'), | 21 | + details: t('designer_config.actions.index.unassigFromCustomer.details'), |
| 22 | + description: t('designer_config.actions.index.unassigFromCustomer.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const CalculateDeltaConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CalculateDeltaConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.CalculateDeltaNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.CalculateDeltaNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.calculateDelta.name'), | 18 | + name: t('designer_config.enrichments.index.calculateDelta.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.calculateDelta.details'), | ||
| 22 | - description: t('enrichments.index.calculateDelta.description'), | 21 | + details: t('designer_config.enrichments.index.calculateDelta.details'), |
| 22 | + description: t('designer_config.enrichments.index.calculateDelta.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure', 'Other'], | 25 | relationTypes: ['Success', 'Failure', 'Other'], |
| @@ -15,11 +15,11 @@ export const CustomerAttributesConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CustomerAttributesConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetCustomerAttributeNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetCustomerAttributeNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.customerAttributes.name'), | 18 | + name: t('designer_config.enrichments.index.customerAttributes.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.customerAttributes.details'), | ||
| 22 | - description: t('enrichments.index.customerAttributes.description'), | 21 | + details: t('designer_config.enrichments.index.customerAttributes.details'), |
| 22 | + description: t('designer_config.enrichments.index.customerAttributes.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const CustomerDetailsConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CustomerDetailsConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetCustomerDetailsNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetCustomerDetailsNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.customerDetails.name'), | 18 | + name: t('designer_config.enrichments.index.customerDetails.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.customerDetails.details'), | ||
| 22 | - description: t('enrichments.index.customerDetails.description'), | 21 | + details: t('designer_config.enrichments.index.customerDetails.details'), |
| 22 | + description: t('designer_config.enrichments.index.customerDetails.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const OriginatorAttributesConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const OriginatorAttributesConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetAttributesNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetAttributesNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.originatorAttributes.name'), | 18 | + name: t('designer_config.enrichments.index.originatorAttributes.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.originatorAttributes.details'), | ||
| 22 | - description: t('enrichments.index.originatorAttributes.description'), | 21 | + details: t('designer_config.enrichments.index.originatorAttributes.details'), |
| 22 | + description: t('designer_config.enrichments.index.originatorAttributes.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const OriginatorFieldsConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const OriginatorFieldsConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetOriginatorFieldsNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetOriginatorFieldsNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.originatorFields.name'), | 18 | + name: t('designer_config.enrichments.index.originatorFields.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.originatorFields.details'), | ||
| 22 | - description: t('enrichments.index.originatorFields.description'), | 21 | + details: t('designer_config.enrichments.index.originatorFields.details'), |
| 22 | + description: t('designer_config.enrichments.index.originatorFields.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const OriginatorTelemetryConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const OriginatorTelemetryConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetTelemetryNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetTelemetryNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.originatorTelemetry.name'), | 18 | + name: t('designer_config.enrichments.index.originatorTelemetry.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.originatorTelemetry.details'), | ||
| 22 | - description: t('enrichments.index.originatorTelemetry.description'), | 21 | + details: t('designer_config.enrichments.index.originatorTelemetry.details'), |
| 22 | + description: t('designer_config.enrichments.index.originatorTelemetry.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const RelatedAttributesConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const RelatedAttributesConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetRelatedAttributeNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetRelatedAttributeNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.relatedAttributes.name'), | 18 | + name: t('designer_config.enrichments.index.relatedAttributes.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.relatedAttributes.details'), | ||
| 22 | - description: t('enrichments.index.relatedAttributes.description'), | 21 | + details: t('designer_config.enrichments.index.relatedAttributes.details'), |
| 22 | + description: t('designer_config.enrichments.index.relatedAttributes.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const RelatedDeviceAttributesConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const RelatedDeviceAttributesConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetDeviceAttrNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetDeviceAttrNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.relatedDeviceAttributes.name'), | 18 | + name: t('designer_config.enrichments.index.relatedDeviceAttributes.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.relatedDeviceAttributes.details'), | ||
| 22 | - description: t('enrichments.index.relatedDeviceAttributes.description'), | 21 | + details: t('designer_config.enrichments.index.relatedDeviceAttributes.details'), |
| 22 | + description: t('designer_config.enrichments.index.relatedDeviceAttributes.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const TenantAttributesConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const TenantAttributesConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetTenantAttributeNode', | 16 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetTenantAttributeNode', |
| 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 17 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 18 | - name: t('enrichments.index.tenantAttributes.name'), | 18 | + name: t('designer_config.enrichments.index.tenantAttributes.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('enrichments.index.tenantAttributes.details'), | ||
| 22 | - description: t('enrichments.index.tenantAttributes.description'), | 21 | + details: t('designer_config.enrichments.index.tenantAttributes.details'), |
| 22 | + description: t('designer_config.enrichments.index.tenantAttributes.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -16,11 +16,11 @@ export const TenantDetailsConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const TenantDetailsConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetTenantDetailsNode', | 17 | clazz: 'org.thingsboard.rule.engine.metadata.TbGetTenantDetailsNode', |
| 18 | categoryType: RuleNodeTypeEnum.ENRICHMENT, | 18 | categoryType: RuleNodeTypeEnum.ENRICHMENT, |
| 19 | - name: t('enrichments.index.tenantDetails.name'), | 19 | + name: t('designer_config.enrichments.index.tenantDetails.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('enrichments.index.tenantDetails.details'), | ||
| 23 | - description: t('enrichments.index.tenantDetails.description'), | 22 | + details: t('designer_config.enrichments.index.tenantDetails.details'), |
| 23 | + description: t('designer_config.enrichments.index.tenantDetails.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['Success', 'Failure'], | 26 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const AlarmNoticeConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const AlarmNoticeConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.notice.AlarmNoticeNode', | 16 | clazz: 'org.thingsboard.rule.engine.notice.AlarmNoticeNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.alarmNotice.name'), | 18 | + name: t('designer_config.externals.index.alarmNotice.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.alarmNotice.details'), | ||
| 22 | - description: t('externals.index.alarmNotice.description'), | 21 | + details: t('designer_config.externals.index.alarmNotice.details'), |
| 22 | + description: t('designer_config.externals.index.alarmNotice.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const AwsSnsConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const AwsSnsConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.aws.sns.TbSnsNode', | 16 | clazz: 'org.thingsboard.rule.engine.aws.sns.TbSnsNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.awsSns.name'), | 18 | + name: t('designer_config.externals.index.awsSns.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.awsSns.details'), | ||
| 22 | - description: t('externals.index.awsSns.description'), | 21 | + details: t('designer_config.externals.index.awsSns.details'), |
| 22 | + description: t('designer_config.externals.index.awsSns.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const AwsSqsConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const AwsSqsConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.aws.sqs.TbSqsNode', | 16 | clazz: 'org.thingsboard.rule.engine.aws.sqs.TbSqsNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.awsSqs.name'), | 18 | + name: t('designer_config.externals.index.awsSqs.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.awsSqs.details'), | ||
| 22 | - description: t('externals.index.awsSqs.description'), | 21 | + details: t('designer_config.externals.index.awsSqs.details'), |
| 22 | + description: t('designer_config.externals.index.awsSqs.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const AzureIotHubConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const AzureIotHubConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.mqtt.azure.TbAzureIotHubNode', | 16 | clazz: 'org.thingsboard.rule.engine.mqtt.azure.TbAzureIotHubNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.azureIotHub.name'), | 18 | + name: t('designer_config.externals.index.azureIotHub.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.azureIotHub.details'), | ||
| 22 | - description: t('externals.index.azureIotHub.description'), | 21 | + details: t('designer_config.externals.index.azureIotHub.details'), |
| 22 | + description: t('designer_config.externals.index.azureIotHub.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const GcpPubsubConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const GcpPubsubConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.gcp.pubsub.TbPubSubNode', | 16 | clazz: 'org.thingsboard.rule.engine.gcp.pubsub.TbPubSubNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.gcpPubsub.name'), | 18 | + name: t('designer_config.externals.index.gcpPubsub.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.gcpPubsub.details'), | ||
| 22 | - description: t('externals.index.gcpPubsub.description'), | 21 | + details: t('designer_config.externals.index.gcpPubsub.details'), |
| 22 | + description: t('designer_config.externals.index.gcpPubsub.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const KafkaConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const KafkaConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.kafka.TbKafkaNode', | 16 | clazz: 'org.thingsboard.rule.engine.kafka.TbKafkaNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.kafka.name'), | 18 | + name: t('designer_config.externals.index.kafka.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.kafka.details'), | ||
| 22 | - description: t('externals.index.kafka.description'), | 21 | + details: t('designer_config.externals.index.kafka.details'), |
| 22 | + description: t('designer_config.externals.index.kafka.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const MqttConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const MqttConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.mqtt.TbMqttNode', | 16 | clazz: 'org.thingsboard.rule.engine.mqtt.TbMqttNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.mqtt.name'), | 18 | + name: t('designer_config.externals.index.mqtt.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.mqtt.details'), | ||
| 22 | - description: t('externals.index.mqtt.description'), | 21 | + details: t('designer_config.externals.index.mqtt.details'), |
| 22 | + description: t('designer_config.externals.index.mqtt.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -16,11 +16,11 @@ export const RabbitmqConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const RabbitmqConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNode', | 17 | clazz: 'org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNode', |
| 18 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 18 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 19 | - name: t('externals.index.rabbitmq.name'), | 19 | + name: t('designer_config.externals.index.rabbitmq.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('externals.index.rabbitmq.details'), | ||
| 23 | - description: t('externals.index.rabbitmq.description'), | 22 | + details: t('designer_config.externals.index.rabbitmq.details'), |
| 23 | + description: t('designer_config.externals.index.rabbitmq.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['Success', 'Failure'], | 26 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const RestApiCallConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const RestApiCallConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.rest.TbRestApiCallNode', | 16 | clazz: 'org.thingsboard.rule.engine.rest.TbRestApiCallNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.restApiCall.name'), | 18 | + name: t('designer_config.externals.index.restApiCall.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.restApiCall.details'), | ||
| 22 | - description: t('externals.index.restApiCall.description'), | 21 | + details: t('designer_config.externals.index.restApiCall.details'), |
| 22 | + description: t('designer_config.externals.index.restApiCall.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SendEmailConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SendEmailConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.mail.TbSendEmailNode', | 16 | clazz: 'org.thingsboard.rule.engine.mail.TbSendEmailNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.sendEmail.name'), | 18 | + name: t('designer_config.externals.index.sendEmail.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.sendEmail.details'), | ||
| 22 | - description: t('externals.index.sendEmail.description'), | 21 | + details: t('designer_config.externals.index.sendEmail.details'), |
| 22 | + description: t('designer_config.externals.index.sendEmail.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SendSmsConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SendSmsConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.sms.TbSendSmsNode', | 16 | clazz: 'org.thingsboard.rule.engine.sms.TbSendSmsNode', |
| 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, | 17 | categoryType: RuleNodeTypeEnum.EXTERNAL, |
| 18 | - name: t('externals.index.sendSms.name'), | 18 | + name: t('designer_config.externals.index.sendSms.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('externals.index.sendSms.details'), | ||
| 22 | - description: t('externals.index.sendSms.description'), | 21 | + details: t('designer_config.externals.index.sendSms.details'), |
| 22 | + description: t('designer_config.externals.index.sendSms.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -16,12 +16,12 @@ export const CheckAlarmStatusConfig: NodeItemConfigType = { | @@ -16,12 +16,12 @@ export const CheckAlarmStatusConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.filter.TbCheckAlarmStatusNode', | 17 | clazz: 'org.thingsboard.rule.engine.filter.TbCheckAlarmStatusNode', |
| 18 | categoryType: RuleNodeTypeEnum.FILTER, | 18 | categoryType: RuleNodeTypeEnum.FILTER, |
| 19 | - name: t('filters.index.checkAlarmStatus.name'), | 19 | + name: t('designer_config.filters.index.checkAlarmStatus.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | icon: 'material-symbols:filter-list', | 22 | icon: 'material-symbols:filter-list', |
| 23 | - details: t('filters.index.checkAlarmStatus.details'), | ||
| 24 | - description: t('filters.index.checkAlarmStatus.description'), | 23 | + details: t('designer_config.filters.index.checkAlarmStatus.details'), |
| 24 | + description: t('designer_config.filters.index.checkAlarmStatus.description'), | ||
| 25 | inEnabled: true, | 25 | inEnabled: true, |
| 26 | outEnabled: true, | 26 | outEnabled: true, |
| 27 | relationTypes: ['True', 'False', 'Failure'], | 27 | relationTypes: ['True', 'False', 'Failure'], |
| @@ -15,11 +15,11 @@ export const CheckExistenceFieldsConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CheckExistenceFieldsConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.filter.TbCheckMessageNode', | 16 | clazz: 'org.thingsboard.rule.engine.filter.TbCheckMessageNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.checkExistenceFields.name'), | 18 | + name: t('designer_config.filters.index.checkExistenceFields.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.checkExistenceFields.details'), | ||
| 22 | - description: t('filters.index.checkExistenceFields.description'), | 21 | + details: t('designer_config.filters.index.checkExistenceFields.details'), |
| 22 | + description: t('designer_config.filters.index.checkExistenceFields.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['True', 'False', 'Failure'], | 25 | relationTypes: ['True', 'False', 'Failure'], |
| @@ -98,6 +98,7 @@ export const formSchemas: FormSchema[] = [ | @@ -98,6 +98,7 @@ export const formSchemas: FormSchema[] = [ | ||
| 98 | }, | 98 | }, |
| 99 | }; | 99 | }; |
| 100 | }, | 100 | }, |
| 101 | + ifShow: ({ values }) => values[CheckRelationFieldsEnum.CHECK_FOR_SINGLE_ENTITY], | ||
| 101 | }, | 102 | }, |
| 102 | { | 103 | { |
| 103 | field: CheckRelationFieldsEnum.ENTITY_ID, | 104 | field: CheckRelationFieldsEnum.ENTITY_ID, |
| @@ -110,6 +111,7 @@ export const formSchemas: FormSchema[] = [ | @@ -110,6 +111,7 @@ export const formSchemas: FormSchema[] = [ | ||
| 110 | 111 | ||
| 111 | return getEntityIdSelect(entityType); | 112 | return getEntityIdSelect(entityType); |
| 112 | }, | 113 | }, |
| 114 | + ifShow: ({ values }) => values[CheckRelationFieldsEnum.CHECK_FOR_SINGLE_ENTITY], | ||
| 113 | }, | 115 | }, |
| 114 | { | 116 | { |
| 115 | field: CheckRelationFieldsEnum.RELEATION_TYPE, | 117 | field: CheckRelationFieldsEnum.RELEATION_TYPE, |
| @@ -16,11 +16,11 @@ export const CheckRelationConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const CheckRelationConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.filter.TbCheckRelationNode', | 17 | clazz: 'org.thingsboard.rule.engine.filter.TbCheckRelationNode', |
| 18 | categoryType: RuleNodeTypeEnum.FILTER, | 18 | categoryType: RuleNodeTypeEnum.FILTER, |
| 19 | - name: t('filters.index.checkRelation.name'), | 19 | + name: t('designer_config.filters.index.checkRelation.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('filters.index.checkRelation.details'), | ||
| 23 | - description: t('filters.index.checkRelation.description'), | 22 | + details: t('designer_config.filters.index.checkRelation.details'), |
| 23 | + description: t('designer_config.filters.index.checkRelation.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['True', 'False', 'Failure'], | 26 | relationTypes: ['True', 'False', 'Failure'], |
| @@ -15,11 +15,11 @@ export const GpsGeofencingFilterConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const GpsGeofencingFilterConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.geo.TbGpsGeofencingFilterNode', | 16 | clazz: 'org.thingsboard.rule.engine.geo.TbGpsGeofencingFilterNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.gpsGeofencingFilter.name'), | 18 | + name: t('designer_config.filters.index.gpsGeofencingFilter.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.gpsGeofencingFilter.details'), | ||
| 22 | - description: t('filters.index.gpsGeofencingFilter.description'), | 21 | + details: t('designer_config.filters.index.gpsGeofencingFilter.details'), |
| 22 | + description: t('designer_config.filters.index.gpsGeofencingFilter.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['True', 'False', 'Failure'], | 25 | relationTypes: ['True', 'False', 'Failure'], |
| @@ -16,11 +16,11 @@ export const MessageTypeConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const MessageTypeConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.filter.TbMsgTypeFilterNode', | 17 | clazz: 'org.thingsboard.rule.engine.filter.TbMsgTypeFilterNode', |
| 18 | categoryType: RuleNodeTypeEnum.FILTER, | 18 | categoryType: RuleNodeTypeEnum.FILTER, |
| 19 | - name: t('filters.index.messageType.name'), | 19 | + name: t('designer_config.filters.index.messageType.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('filters.index.messageType.details'), | ||
| 23 | - description: t('filters.index.messageType.description'), | 22 | + details: t('designer_config.filters.index.messageType.details'), |
| 23 | + description: t('designer_config.filters.index.messageType.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['True', 'False', 'Failure'], | 26 | relationTypes: ['True', 'False', 'Failure'], |
| @@ -15,11 +15,11 @@ export const MessageTypeSwitchConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const MessageTypeSwitchConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode', | 16 | clazz: 'org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.messageTypeSwitch.name'), | 18 | + name: t('designer_config.filters.index.messageTypeSwitch.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.messageTypeSwitch.details'), | ||
| 22 | - description: t('filters.index.messageTypeSwitch.description'), | 21 | + details: t('designer_config.filters.index.messageTypeSwitch.details'), |
| 22 | + description: t('designer_config.filters.index.messageTypeSwitch.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: [ | 25 | relationTypes: [ |
| @@ -15,11 +15,11 @@ export const OriginatorTypeConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const OriginatorTypeConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.filter.TbOriginatorTypeFilterNode', | 16 | clazz: 'org.thingsboard.rule.engine.filter.TbOriginatorTypeFilterNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.originatorType.name'), | 18 | + name: t('designer_config.filters.index.originatorType.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.originatorType.details'), | ||
| 22 | - description: t('filters.index.originatorType.description'), | 21 | + details: t('designer_config.filters.index.originatorType.details'), |
| 22 | + description: t('designer_config.filters.index.originatorType.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['True', 'False', 'Failure'], | 25 | relationTypes: ['True', 'False', 'Failure'], |
| @@ -15,11 +15,11 @@ export const OriginatorTypeSwitchConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const OriginatorTypeSwitchConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.filter.TbOriginatorTypeSwitchNode', | 16 | clazz: 'org.thingsboard.rule.engine.filter.TbOriginatorTypeSwitchNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.originatorTypeSwitch.name'), | 18 | + name: t('designer_config.filters.index.originatorTypeSwitch.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.originatorTypeSwitch.details'), | ||
| 22 | - description: t('filters.index.originatorTypeSwitch.description'), | 21 | + details: t('designer_config.filters.index.originatorTypeSwitch.details'), |
| 22 | + description: t('designer_config.filters.index.originatorTypeSwitch.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: [ | 25 | relationTypes: [ |
| @@ -15,11 +15,11 @@ export const SceneReactConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SceneReactConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.yunteng.scene.TbSceneReactNode', | 16 | clazz: 'org.thingsboard.rule.engine.yunteng.scene.TbSceneReactNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.sceneReact.name'), | 18 | + name: t('designer_config.filters.index.sceneReact.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.sceneReact.details'), | ||
| 22 | - description: t('filters.index.sceneReact.description'), | 21 | + details: t('designer_config.filters.index.sceneReact.details'), |
| 22 | + description: t('designer_config.filters.index.sceneReact.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Message', 'Alarm Created', 'Alarm Updated', 'RPC Request', 'Failure'], | 25 | relationTypes: ['Message', 'Alarm Created', 'Alarm Updated', 'RPC Request', 'Failure'], |
| @@ -15,11 +15,11 @@ export const ScriptConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const ScriptConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.filter.TbJsFilterNode', | 16 | clazz: 'org.thingsboard.rule.engine.filter.TbJsFilterNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.script.name'), | 18 | + name: t('designer_config.filters.index.script.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.script.details'), | ||
| 22 | - description: t('filters.index.script.description'), | 21 | + details: t('designer_config.filters.index.script.details'), |
| 22 | + description: t('designer_config.filters.index.script.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['True', 'False', 'Failure'], | 25 | relationTypes: ['True', 'False', 'Failure'], |
| @@ -15,11 +15,11 @@ export const SwitchConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const SwitchConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.filter.TbJsSwitchNode', | 16 | clazz: 'org.thingsboard.rule.engine.filter.TbJsSwitchNode', |
| 17 | categoryType: RuleNodeTypeEnum.FILTER, | 17 | categoryType: RuleNodeTypeEnum.FILTER, |
| 18 | - name: t('filters.index.switch.name'), | 18 | + name: t('designer_config.filters.index.switch.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('filters.index.switch.details'), | ||
| 22 | - description: t('filters.index.switch.description'), | 21 | + details: t('designer_config.filters.index.switch.details'), |
| 22 | + description: t('designer_config.filters.index.switch.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Failure'], | 25 | relationTypes: ['Failure'], |
| @@ -15,11 +15,11 @@ export const AcknowledgeConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const AcknowledgeConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.flow.TbAckNode', | 16 | clazz: 'org.thingsboard.rule.engine.flow.TbAckNode', |
| 17 | categoryType: RuleNodeTypeEnum.FLOW, | 17 | categoryType: RuleNodeTypeEnum.FLOW, |
| 18 | - name: t('flows.index.acknowledge.name'), | 18 | + name: t('designer_config.flows.index.acknowledge.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('flows.index.acknowledge.details'), | ||
| 22 | - description: t('flows.index.acknowledge.description'), | 21 | + details: t('designer_config.flows.index.acknowledge.details'), |
| 22 | + description: t('designer_config.flows.index.acknowledge.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const CheckpointConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const CheckpointConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.flow.TbCheckpointNode', | 16 | clazz: 'org.thingsboard.rule.engine.flow.TbCheckpointNode', |
| 17 | categoryType: RuleNodeTypeEnum.FLOW, | 17 | categoryType: RuleNodeTypeEnum.FLOW, |
| 18 | - name: t('flows.index.checkpoint.name'), | 18 | + name: t('designer_config.flows.index.checkpoint.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('flows.index.checkpoint.details'), | ||
| 22 | - description: t('flows.index.checkpoint.description'), | 21 | + details: t('designer_config.flows.index.checkpoint.details'), |
| 22 | + description: t('designer_config.flows.index.checkpoint.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const OutputConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const OutputConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.flow.TbRuleChainOutputNode', | 16 | clazz: 'org.thingsboard.rule.engine.flow.TbRuleChainOutputNode', |
| 17 | categoryType: RuleNodeTypeEnum.FLOW, | 17 | categoryType: RuleNodeTypeEnum.FLOW, |
| 18 | - name: t('flows.index.output.name'), | 18 | + name: t('designer_config.flows.index.output.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('flows.index.output.details'), | ||
| 22 | - description: t('flows.index.output.description'), | 21 | + details: t('designer_config.flows.index.output.details'), |
| 22 | + description: t('designer_config.flows.index.output.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: false, | 24 | outEnabled: false, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -15,12 +15,12 @@ export const RuleChainConfig: NodeItemConfigType = { | @@ -15,12 +15,12 @@ export const RuleChainConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.flow.TbRuleChainInputNode', | 16 | clazz: 'org.thingsboard.rule.engine.flow.TbRuleChainInputNode', |
| 17 | categoryType: RuleNodeTypeEnum.FLOW, | 17 | categoryType: RuleNodeTypeEnum.FLOW, |
| 18 | - name: t('flows.index.ruleChain.name'), | 18 | + name: t('designer_config.flows.index.ruleChain.name'), |
| 19 | // backgroundColor: '#d6c4f1', | 19 | // backgroundColor: '#d6c4f1', |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('flows.index.ruleChain.details'), | ||
| 23 | - description: t('flows.index.ruleChain.description'), | 22 | + details: t('designer_config.flows.index.ruleChain.details'), |
| 23 | + description: t('designer_config.flows.index.ruleChain.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['Failure'], | 26 | relationTypes: ['Failure'], |
| @@ -15,11 +15,11 @@ export const ChangeOriginatorConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const ChangeOriginatorConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.transform.TbChangeOriginatorNode', | 16 | clazz: 'org.thingsboard.rule.engine.transform.TbChangeOriginatorNode', |
| 17 | categoryType: RuleNodeTypeEnum.TRANSFORMATION, | 17 | categoryType: RuleNodeTypeEnum.TRANSFORMATION, |
| 18 | - name: t('transformations.index.changeOriginator.name'), | 18 | + name: t('designer_config.transformations.index.changeOriginator.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('transformations.index.changeOriginator.details'), | ||
| 22 | - description: t('transformations.index.changeOriginator.description'), | 21 | + details: t('designer_config.transformations.index.changeOriginator.details'), |
| 22 | + description: t('designer_config.transformations.index.changeOriginator.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |
| @@ -16,11 +16,11 @@ export const ScriptConfig: NodeItemConfigType = { | @@ -16,11 +16,11 @@ export const ScriptConfig: NodeItemConfigType = { | ||
| 16 | ...keys, | 16 | ...keys, |
| 17 | clazz: 'org.thingsboard.rule.engine.transform.TbTransformMsgNode', | 17 | clazz: 'org.thingsboard.rule.engine.transform.TbTransformMsgNode', |
| 18 | categoryType: RuleNodeTypeEnum.TRANSFORMATION, | 18 | categoryType: RuleNodeTypeEnum.TRANSFORMATION, |
| 19 | - name: t('transformations.index.script.name'), | 19 | + name: t('designer_config.transformations.index.script.name'), |
| 20 | configurationDescriptor: { | 20 | configurationDescriptor: { |
| 21 | nodeDefinition: { | 21 | nodeDefinition: { |
| 22 | - details: t('transformations.index.script.details'), | ||
| 23 | - description: t('transformations.index.script.description'), | 22 | + details: t('designer_config.transformations.index.script.details'), |
| 23 | + description: t('designer_config.transformations.index.script.description'), | ||
| 24 | inEnabled: true, | 24 | inEnabled: true, |
| 25 | outEnabled: true, | 25 | outEnabled: true, |
| 26 | relationTypes: ['Success', 'Failure'], | 26 | relationTypes: ['Success', 'Failure'], |
| @@ -15,11 +15,11 @@ export const ToEmailConfig: NodeItemConfigType = { | @@ -15,11 +15,11 @@ export const ToEmailConfig: NodeItemConfigType = { | ||
| 15 | ...keys, | 15 | ...keys, |
| 16 | clazz: 'org.thingsboard.rule.engine.mail.TbMsgToEmailNode', | 16 | clazz: 'org.thingsboard.rule.engine.mail.TbMsgToEmailNode', |
| 17 | categoryType: RuleNodeTypeEnum.TRANSFORMATION, | 17 | categoryType: RuleNodeTypeEnum.TRANSFORMATION, |
| 18 | - name: t('transformations.index.toEmail.name'), | 18 | + name: t('designer_config.transformations.index.toEmail.name'), |
| 19 | configurationDescriptor: { | 19 | configurationDescriptor: { |
| 20 | nodeDefinition: { | 20 | nodeDefinition: { |
| 21 | - details: t('transformations.index.toEmail.details'), | ||
| 22 | - description: t('transformations.index.toEmail.description'), | 21 | + details: t('designer_config.transformations.index.toEmail.details'), |
| 22 | + description: t('designer_config.transformations.index.toEmail.description'), | ||
| 23 | inEnabled: true, | 23 | inEnabled: true, |
| 24 | outEnabled: true, | 24 | outEnabled: true, |
| 25 | relationTypes: ['Success', 'Failure'], | 25 | relationTypes: ['Success', 'Failure'], |