/* eslint-disable camelcase,no-unused-vars,new-cap,no-undef,comma-dangle */
// This file is generated automatically and contain definition for code insight.
// It ignored by UnityBase server because name start from "_".
// Do not modify this file directly, instead run `ubcli createCodeInsightHelper -u root`

/**
 * Reports, User messages (notifications), Settings (aka about:config), Counters
 *
 * @version 5.23.58
 * @module @unitybase/ubs
 */

/**
 * @augments EntityNamespace
 * @mixes ftsservice
 */
class fts_ftsDefault_ns extends EntityNamespace {}

/**
 * @typedef ftsFtsDefaultAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsFtsDefaultAttrs}
 */
fts_ftsDefault_ns.attrs = {}

/**
 * @type {fts_ftsDefault_ns}
 */
const fts_ftsDefault = new fts_ftsDefault_ns()
/**
 * @augments EntityNamespace
 * @mixes mStorage
 */
class fts_ftsDefault_en_ns extends EntityNamespace {}

/**
 * @typedef ftsFtsDefaultEnAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsFtsDefaultEnAttrs}
 */
fts_ftsDefault_en_ns.attrs = {}

/**
 * @type {fts_ftsDefault_en_ns}
 */
const fts_ftsDefault_en = new fts_ftsDefault_en_ns()
/**
 * @augments EntityNamespace
 * @mixes mStorage
 */
class fts_ftsDefault_uk_ns extends EntityNamespace {}

/**
 * @typedef ftsFtsDefaultUkAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsFtsDefaultUkAttrs}
 */
fts_ftsDefault_uk_ns.attrs = {}

/**
 * @type {fts_ftsDefault_uk_ns}
 */
const fts_ftsDefault_uk = new fts_ftsDefault_uk_ns()
/**
 * @augments EntityNamespace
 * @mixes ftsservice
 */
class fts_ftsSubjectSearch_ns extends EntityNamespace {}

/**
 * @typedef ftsFtsSubjectSearchAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsFtsSubjectSearchAttrs}
 */
fts_ftsSubjectSearch_ns.attrs = {}

/**
 * @type {fts_ftsSubjectSearch_ns}
 */
const fts_ftsSubjectSearch = new fts_ftsSubjectSearch_ns()
/**
 * @augments EntityNamespace
 * @mixes mStorage
 */
class fts_ftsSubjectSearch_en_ns extends EntityNamespace {}

/**
 * @typedef ftsFtsSubjectSearchEnAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsFtsSubjectSearchEnAttrs}
 */
fts_ftsSubjectSearch_en_ns.attrs = {}

/**
 * @type {fts_ftsSubjectSearch_en_ns}
 */
const fts_ftsSubjectSearch_en = new fts_ftsSubjectSearch_en_ns()
/**
 * @augments EntityNamespace
 * @mixes mStorage
 */
class fts_ftsSubjectSearch_uk_ns extends EntityNamespace {}

/**
 * @typedef ftsFtsSubjectSearchUkAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsFtsSubjectSearchUkAttrs}
 */
fts_ftsSubjectSearch_uk_ns.attrs = {}

/**
 * @type {fts_ftsSubjectSearch_uk_ns}
 */
const fts_ftsSubjectSearch_uk = new fts_ftsSubjectSearch_uk_ns()
/**
 * @augments EntityNamespace
 * @mixes mStorage
 */
class fts_tst_ftsentity_en_ns extends EntityNamespace {}

/**
 * @typedef ftsTstFtsentityEnAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsTstFtsentityEnAttrs}
 */
fts_tst_ftsentity_en_ns.attrs = {}

/**
 * @type {fts_tst_ftsentity_en_ns}
 */
const fts_tst_ftsentity_en = new fts_tst_ftsentity_en_ns()
/**
 * @augments EntityNamespace
 * @mixes mStorage
 */
class fts_tst_ftsentity_uk_ns extends EntityNamespace {}

/**
 * @typedef ftsTstFtsentityUkAttrs
 * @type {object}
 * @property {string} ID
 * @property {number} rowid
 * @property {string} entity
 * @property {string} ftsentity
 * @property {string} dy
 * @property {string} dm
 * @property {string} dd
 * @property {string} datacode
 * @property {string} aclrls
 * @property {string} entitydescr
 * @property {string} databody
 * @property {string} snippet
 * @property {number} rank
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ftsTstFtsentityUkAttrs}
 */
fts_tst_ftsentity_uk_ns.attrs = {}

/**
 * @type {fts_tst_ftsentity_uk_ns}
 */
const fts_tst_ftsentity_uk = new fts_tst_ftsentity_uk_ns()
/**
 * Stored UI filters.
 * doCmd.showList.autofilter use this entity to store user filters definition
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_filter_ns extends EntityNamespace {}

/**
 * @typedef ubsFilterAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} code - Code
 * @property {string} name - Name
 * @property {string} filter - Filter definition
 * @property {boolean} isGlobal - Is global?
 * @property {number|ubaUserAttrs} owner - Filter owner
 * @property {number|ubaUserAttrs} mi_owner
 * @property {Date} mi_createDate
 * @property {number|ubaUserAttrs} mi_createUser
 * @property {Date} mi_modifyDate
 * @property {number|ubaUserAttrs} mi_modifyUser
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsFilterAttrs}
 */
ubs_filter_ns.attrs = {}

/**
 * Stored UI filters.
 * doCmd.showList.autofilter use this entity to store user filters definition
 *
 * @type {ubs_filter_ns}
 */
const ubs_filter = new ubs_filter_ns()
/**
 * Server-side global cache.
 * Read-only access to server-side global cache (for developers)
 *
 * @augments EntityNamespace
 */
class ubs_globalCache_ns extends EntityNamespace {}

/**
 * @typedef ubsGlobalCacheAttrs
 * @type {object}
 * @property {number} ID - ID
 * @property {string} key - key
 * @property {string} value - Value
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsGlobalCacheAttrs}
 */
ubs_globalCache_ns.attrs = {}

/**
 * Server-side global cache.
 * Read-only access to server-side global cache (for developers)
 *
 * @type {ubs_globalCache_ns}
 */
const ubs_globalCache = new ubs_globalCache_ns()
/**
 * System messages.
 * System messages
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_message_ns extends EntityNamespace {}

/**
 * @typedef ubsMessageAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} messageBody - Message
 * @property {boolean} complete - Submitted
 * @property {string|ubmEnumAttrs} messageType - Type
 * @property {Date} startDate - Valid from
 * @property {Date} expireDate - Valid to
 * @property {number|ubsMessageRecipientAttrs} recipients - Message recipients
 * @property {number|ubaUserAttrs} mi_owner
 * @property {Date} mi_createDate
 * @property {number|ubaUserAttrs} mi_createUser
 * @property {Date} mi_modifyDate
 * @property {number|ubaUserAttrs} mi_modifyUser
 * @property {Date} mi_deleteDate
 * @property {number|ubaUserAttrs} mi_deleteUser
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsMessageAttrs}
 */
ubs_message_ns.attrs = {}

/**
 * System messages.
 * System messages
 *
 * @type {ubs_message_ns}
 */
const ubs_message = new ubs_message_ns()
/**
 * System messages.
 * System messages
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_message_edit_ns extends EntityNamespace {}

/**
 * @typedef ubsMessageEditAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} messageBody - Message
 * @property {boolean} complete - Ready to send
 * @property {string|ubmEnumAttrs} messageType - Type
 * @property {Date} startDate - Valid from
 * @property {Date} expireDate - Valid to
 * @property {number|ubaUserAttrs} mi_owner
 * @property {Date} mi_createDate
 * @property {number|ubaUserAttrs} mi_createUser
 * @property {Date} mi_modifyDate
 * @property {number|ubaUserAttrs} mi_modifyUser
 * @property {Date} mi_deleteDate
 * @property {number|ubaUserAttrs} mi_deleteUser
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsMessageEditAttrs}
 */
ubs_message_edit_ns.attrs = {}

/**
 * System messages.
 * System messages
 *
 * @type {ubs_message_edit_ns}
 */
const ubs_message_edit = new ubs_message_edit_ns()
/**
 * System messages recipients.
 * System messages recipient
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_message_recipient_ns extends EntityNamespace {}

/**
 * @typedef ubsMessageRecipientAttrs
 * @type {object}
 * @property {number} ID
 * @property {number|ubsMessageAttrs} messageID - Message
 * @property {number|ubaUserAttrs} userID - User
 * @property {Date} acceptDate - Accept date
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsMessageRecipientAttrs}
 */
ubs_message_recipient_ns.attrs = {}

/**
 * System messages recipients.
 * System messages recipient
 *
 * @type {ubs_message_recipient_ns}
 */
const ubs_message_recipient = new ubs_message_recipient_ns()
/**
 * Registration key counter
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_numcounter_ns extends EntityNamespace {}

/**
 * @typedef ubsNumcounterAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} regKey - Registration key
 * @property {number} counter - Counter
 * @property {number} fakeLock - doNotUse
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsNumcounterAttrs}
 */
ubs_numcounter_ns.attrs = {}

/**
 * Registration key counter
 *
 * @type {ubs_numcounter_ns}
 */
const ubs_numcounter = new ubs_numcounter_ns()
/**
 * Reserved counters for registration keys
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_numcounterreserv_ns extends EntityNamespace {}

/**
 * @typedef ubsNumcounterreservAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} regKey - Registration key
 * @property {number} counter - Counter
 * @property {string} reservedDate - Reserved date
 * @property {string} note - Note
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsNumcounterreservAttrs}
 */
ubs_numcounterreserv_ns.attrs = {}

/**
 * Reserved counters for registration keys
 *
 * @type {ubs_numcounterreserv_ns}
 */
const ubs_numcounterreserv = new ubs_numcounterreserv_ns()
/**
 * Report templates
 *
 * @augments EntityNamespace
 * @mixes fsStorage
 */
class ubs_report_ns extends EntityNamespace {}

/**
 * @typedef ubsReportAttrs
 * @type {object}
 * @property {number} ID - ID
 * @property {string} model - Model
 * @property {string} report_code - Report code
 * @property {string} name - Name
 * @property {string} template - Template
 * @property {string} code - Javascript code
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsReportAttrs}
 */
ubs_report_ns.attrs = {}

/**
 * Report templates
 *
 * @type {ubs_report_ns}
 */
const ubs_report = new ubs_report_ns()
/**
 * Application settings (like about:config in firefox)
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_settings_ns extends EntityNamespace {}

/**
 * @typedef ubsSettingsAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} settingKey - Key
 * @property {string} name - Name
 * @property {string} description - Description
 * @property {string} type - Type
 * @property {string} settingValue - Value
 * @property {string} defaultValue - Default value
 * @property {number|ubaUserAttrs} mi_owner
 * @property {Date} mi_createDate
 * @property {number|ubaUserAttrs} mi_createUser
 * @property {Date} mi_modifyDate
 * @property {number|ubaUserAttrs} mi_modifyUser
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsSettingsAttrs}
 */
ubs_settings_ns.attrs = {}

/**
 * Application settings (like about:config in firefox)
 *
 * @type {ubs_settings_ns}
 */
const ubs_settings = new ubs_settings_ns()
/**
 * Active pessimistic locks
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ubs_softLock_ns extends EntityNamespace {}

/**
 * @typedef ubsSoftLockAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} entity - Entity
 * @property {number} lockID - Instance ID
 * @property {number|ubaUserAttrs} lockUser - User
 * @property {string|ubmEnumAttrs} lockType - Lock type
 * @property {Date} lockTime - Lock time
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubsSoftLockAttrs}
 */
ubs_softLock_ns.attrs = {}

/**
 * Active pessimistic locks
 *
 * @type {ubs_softLock_ns}
 */
const ubs_softLock = new ubs_softLock_ns()