enum.ts 5.03 KB
export default {
  aggregateData: {
    min: 'min',
    max: 'max',
    avg: 'avg',
    sum: 'sum',
    count: 'count',
    none: 'none',
  },
  orderBy: {
    DESC: 'Descending order',
    ASC: 'Ascending order',
  },
  timeUnit: {
    SECOND: ' Second',
    MINUTE: ' Minute',
    HOUR: ' Hour',
    DAY: ' Day',
  },
  week: {
    MON: 'Monday',
    TUES: 'Tuesday',
    WED: 'Wednesday',
    THUR: 'Thursday',
    FRI: 'Friday',
    SAT: 'Saturday',
    SUN: 'Sunday',
  },
  periodType: {
    MONTH: 'Monthly',
    WEEK: 'Weekly',
    DAY: 'Daily',
  },
  tcpProtocolType: {
    CUSTOM: 'Custom',
    MODBUS_RTU: 'MODBUS_RTU',
  },
  taskType: {
    MODBUS_RTU: 'MODBUS_RTU polling',
    CUSTOM: 'Custom data distribution',
  },
  executeTimeType: {
    CUSTOM: 'Custom',
    POLL: 'Repeated interval time',
  },
  taskTarget: {
    DEVICES: '@:business.deviceText',
    PRODUCTS: '@:business.productText',
  },

  taskStatus: {
    DEACTIVATE: '@:common.deactivatedText',
    NORMAL: '@:common.enabledText',
  },
  packagesCategory: {
    TEXT: 'Text Component',
    INSTRUMENT: 'Instrument Component',
    CONTROL: 'Control Component',
    MAP: 'Map Component',
    FLOWMETER: 'Flowmeter',
    STATISTICS: 'Statistics',
    ALARM: 'Alarm',
    OTHER: 'Other',
  },
  alarmLevel: {
    CRITICAL: 'Critical',
    MAJOR: 'Major',
    MINOR: 'Minor',
    WARNING: 'Warning',
    INDETERMINATE: 'Indeterminate',
  },
  alarmStaus: {
    CLEARED_UNACK: 'Cleared unack',
    CLEARED_ACK: 'Cleared ack',
    ACTIVE_ACK: 'Active ack',
    ACTIVE_UNACK: 'Active unack',
  },
  deviceType: {
    DIRECT_CONNECTION: 'Direct connection',
    GATEWAY: 'Gateway',
    SENSOR: 'Sensor',
  },
  deviceStatus: {
    ALL: 'Whole',
    INACTIVE: 'Inactive',
    ONLINE: 'Online',
    OFFLINE: 'Offline',
  },
  commandStatus: {
    QUEUED: 'Queue',
    SENT: 'Sent',
    DELIVERED: 'Delivered',
    SUCCESSFUL: 'Successful',
    TIMEOUT: 'Timeout',
    EXPIRED: 'Expired',
    FAILED: 'Failed',
    DELETED: 'Deleted',
  },
  callType: {
    ASYNC: 'Async',
    SYNC: 'Sync',
  },
  commandWay: {
    oneway: 'Oneway',
    twoway: 'Twoway',
  },
  commandType: {
    service: 'Service',
    custom: 'Custom',
  },
  videoAccessMode: {
    ManuallyEnter: 'Manually enter',
    Streaming: 'Streaming',
    GBT28181: 'GBT28181',
  },
  codeStream: {
    MASTER: 'Main code stream',
    CHILD: 'Substream',
    THIRD: 'Third stream',
  },
  articulation: {
    HIGH_DEFINITION: 'High definition',
    SMOOTH: 'Smooth',
  },
  notifyType: {
    NOTICE: 'notice',
    MEETING: 'meeting',
    OTHER: 'other',
  },
  readStatus: {
    Unread: 'unread',
    Read: 'read',
    Other: 'other',
  },
  actionType: {
    INPUT_STATUS_R_02: 'Discrete Input (Read-only, 0x02)',
    COIL_STATUS_R_01: 'Coil Status (Read-only, 0x01)',
    COIL_STATUS_RW_01_05: 'Coil Status (Read/Write, read with 0x01, write with 0x05)',
    COIL_STATUS_RW_01_0F: 'Coil Status (Read/Write, read with 0x01, write with 0x0F)',
    COIL_STATUS_W_05: 'Coil Status (Write-only, 0x05)',
    COIL_STATUS_W_0F: 'Coil Status (Write-only, 0x0F)',
    HOLDING_REGISTER_R_03: 'Holding Register (Read-only, 0x03)',
    HOLDING_REGISTER_RW_03_06: 'Holding Register (Read/Write, read with 0x03, write with 0x06)',
    HOLDING_REGISTER_RW_03_10: 'Holding Register (Read/Write, read with 0x03, write with 0x10)',
    HOLDING_REGISTER_W_06: 'Holding Register (Write-only, 0x06)',
    HOLDING_REGISTER_W_10: 'Holding Register (Write-only, 0x10)',
    INPUT_REGISTER_R_04: 'Input Register (Read-only, 0x04)',
  },
  originalDataType: {
    INT16_AB: '16-bit Signed Integer AB',
    INT16_BA: '16-bit Signed Integer BA',
    UINT16_AB: '16-bit Unsigned Integer AB',
    UINT16_BA: '16-bit Unsigned Integer BA',
    INT32_AB_CD: '32-bit Signed Integer AB_CD',
    INT32_CD_AB: '32-bit Signed Integer CD_AB',
    INT32_BA_DC: '32-bit Signed Integer BA_DC',
    INT32_DC_BA: '32-bit Signed Integer DC_BA',
    UINT32_AB_CD: '32-bit Unsigned Integer AB_CD',
    UINT32_CD_AB: '32-bit Unsigned Integer CD_AB',
    UINT32_BA_DC: '32-bit Unsigned Integer BA_DC',
    UINT32_DC_BA: '32-bit Unsigned Integer DC_BA',
    FLOAT_AB_CD: 'Single-Precision Floating Point AB_CD',
    FLOAT_CD_AB: 'Single-Precision Floating Point CD_AB',
    FLOAT_BA_DC: 'Single-Precision Floating Point BA_DC',
    FLOAT_DC_BA: 'Single-Precision Floating Point DC_BA',
    DOUBLE: 'Double-Precision Floating Point',
    STRING: 'String',
    BOOLEAN: 'Boolean',
    BITS: 'Bits',
  },
  userStatus: {
    NORMAL: 'Normal',
    DISABLED: 'Disabled',
    EXPIRED: 'Expired',
  },
  credentials: {
    ACCESS_TOKEN: 'Access token',
    X509: 'X.509',
    MQTT_CLIENT_ID: 'MQTT client ID',
    MQTT_USER_NAME: 'MQTT user name',
    MQTT_PASSWORD: 'MQTT password',
  },
  direction: {
    FROM: 'From',
    TO: 'To',
  },
  entityType: {
    DEVICE: 'Device',
    ASSET: 'Asset',
    ENTITY_VIEW: 'Entity view',
    TENANT: 'Tenant',
    CUSTOMER: 'Customer',
    USER: 'User',
    DASHBOARD: 'Dashboard',
    EDGE: 'Edge',
  },
  scope: {
    SERVER_SCOPE: 'Server scope',
    CLIENT_SCOPE: 'Client scope',
    SHARED_SCOPE: 'Shared scope',
  },
};