@servicelabsco/nestjs-utility-services 2.0.15 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -1
- package/README.md +14 -1
- package/dist/app.controller.d.ts +6 -5
- package/dist/app.controller.js +22 -39
- package/dist/app.controller.js.map +1 -1
- package/dist/app.module.js +9 -2
- package/dist/app.module.js.map +1 -1
- package/dist/auth/controllers/admin.auth.controller.d.ts +6 -2
- package/dist/auth/controllers/admin.auth.controller.js +32 -18
- package/dist/auth/controllers/admin.auth.controller.js.map +1 -1
- package/dist/auth/controllers/social.controller.d.ts +4 -2
- package/dist/auth/controllers/social.controller.js +18 -8
- package/dist/auth/controllers/social.controller.js.map +1 -1
- package/dist/auth/controllers/user.controller.d.ts +2 -2
- package/dist/auth/controllers/user.controller.js +4 -4
- package/dist/auth/controllers/user.controller.js.map +1 -1
- package/dist/auth/dtos/index.d.ts +1 -0
- package/dist/auth/dtos/index.js +1 -0
- package/dist/auth/dtos/index.js.map +1 -1
- package/dist/auth/dtos/user.attributes.dto.d.ts +5 -0
- package/dist/auth/dtos/user.attributes.dto.js +31 -0
- package/dist/auth/dtos/user.attributes.dto.js.map +1 -0
- package/dist/auth/entities/country.entity.js +1 -1
- package/dist/auth/entities/country.entity.js.map +1 -1
- package/dist/auth/entities/device.token.entity.js +1 -1
- package/dist/auth/entities/device.token.entity.js.map +1 -1
- package/dist/auth/entities/index.d.ts +1 -0
- package/dist/auth/entities/index.js +1 -0
- package/dist/auth/entities/index.js.map +1 -1
- package/dist/auth/entities/refresh.token.entity.d.ts +4 -1
- package/dist/auth/entities/refresh.token.entity.js +14 -2
- package/dist/auth/entities/refresh.token.entity.js.map +1 -1
- package/dist/auth/entities/session.identifier.entity.js +1 -1
- package/dist/auth/entities/session.identifier.entity.js.map +1 -1
- package/dist/auth/entities/social.identity.entity.d.ts +9 -0
- package/dist/{system/entities/system.log.entity.js → auth/entities/social.identity.entity.js} +19 -22
- package/dist/auth/entities/social.identity.entity.js.map +1 -0
- package/dist/auth/entities/user.entity.d.ts +2 -1
- package/dist/auth/entities/user.entity.js +3 -2
- package/dist/auth/entities/user.entity.js.map +1 -1
- package/dist/auth/entities/user.referral.entity.js +1 -1
- package/dist/auth/entities/user.referral.entity.js.map +1 -1
- package/dist/auth/es6.classes.d.ts +5 -3
- package/dist/auth/es6.classes.js +25 -3
- package/dist/auth/es6.classes.js.map +1 -1
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/interfaces/index.d.ts +1 -0
- package/dist/auth/interfaces/index.js +18 -0
- package/dist/auth/interfaces/index.js.map +1 -0
- package/dist/auth/interfaces/verified.social.identity.interface.d.ts +7 -0
- package/dist/auth/interfaces/verified.social.identity.interface.js +3 -0
- package/dist/auth/interfaces/verified.social.identity.interface.js.map +1 -0
- package/dist/auth/middlewares/basic.auth.middleware.js +6 -1
- package/dist/auth/middlewares/basic.auth.middleware.js.map +1 -1
- package/dist/auth/middlewares/internal.middleware.d.ts +2 -0
- package/dist/auth/middlewares/internal.middleware.js +29 -4
- package/dist/auth/middlewares/internal.middleware.js.map +1 -1
- package/dist/auth/middlewares/jwt.middleware.js +7 -2
- package/dist/auth/middlewares/jwt.middleware.js.map +1 -1
- package/dist/auth/services/access.service.d.ts +1 -1
- package/dist/auth/services/access.service.js +41 -33
- package/dist/auth/services/access.service.js.map +1 -1
- package/dist/auth/services/auth.service.d.ts +1 -1
- package/dist/auth/services/auth.service.js +25 -4
- package/dist/auth/services/auth.service.js.map +1 -1
- package/dist/auth/services/device.token.service.d.ts +4 -1
- package/dist/auth/services/device.token.service.js +67 -8
- package/dist/auth/services/device.token.service.js.map +1 -1
- package/dist/auth/services/index.d.ts +1 -0
- package/dist/auth/services/index.js +1 -0
- package/dist/auth/services/index.js.map +1 -1
- package/dist/auth/services/refresh.token.service.d.ts +16 -1
- package/dist/auth/services/refresh.token.service.js +80 -10
- package/dist/auth/services/refresh.token.service.js.map +1 -1
- package/dist/auth/services/social.identity.service.d.ts +5 -0
- package/dist/auth/services/social.identity.service.js +52 -0
- package/dist/auth/services/social.identity.service.js.map +1 -0
- package/dist/auth/services/social.service.d.ts +3 -2
- package/dist/auth/services/social.service.js +51 -19
- package/dist/auth/services/social.service.js.map +1 -1
- package/dist/auth/services/user.service.d.ts +2 -3
- package/dist/auth/services/user.service.js +10 -3
- package/dist/auth/services/user.service.js.map +1 -1
- package/dist/auth/subscribers/session.identifier.subscriber.d.ts +2 -2
- package/dist/auth/subscribers/session.identifier.subscriber.js +2 -2
- package/dist/auth/subscribers/session.identifier.subscriber.js.map +1 -1
- package/dist/common/constants/index.d.ts +2 -0
- package/dist/common/constants/index.js +19 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/constants/role.constants.d.ts +5 -0
- package/dist/common/constants/role.constants.js +9 -0
- package/dist/common/constants/role.constants.js.map +1 -0
- package/dist/common/constants/user.constants.d.ts +4 -0
- package/dist/common/constants/user.constants.js +8 -0
- package/dist/common/constants/user.constants.js.map +1 -0
- package/dist/common/decorators/index.d.ts +1 -0
- package/dist/common/decorators/index.js +18 -0
- package/dist/common/decorators/index.js.map +1 -0
- package/dist/common/decorators/public.exposed.decorator.d.ts +6 -0
- package/dist/common/decorators/public.exposed.decorator.js +23 -0
- package/dist/common/decorators/public.exposed.decorator.js.map +1 -0
- package/dist/common/dtos/database.event.dto.d.ts +1 -1
- package/dist/common/dtos/generic.index.param.dto.d.ts +1 -1
- package/dist/common/dtos/record.data.manager.dto.d.ts +1 -1
- package/dist/common/dtos/record.tab.dto.d.ts +3 -3
- package/dist/common/dtos/report.body.dto.d.ts +1 -1
- package/dist/common/dtos/report.data.manager.dto.d.ts +1 -1
- package/dist/common/es6.classes.d.ts +20 -3
- package/dist/common/es6.classes.js +15 -0
- package/dist/common/es6.classes.js.map +1 -1
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.js +2 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/libraries/auth.d.ts +5 -3
- package/dist/common/libraries/auth.js +14 -4
- package/dist/common/libraries/auth.js.map +1 -1
- package/dist/common/libraries/base.migration.utility.d.ts +3 -0
- package/dist/common/libraries/base.migration.utility.js +17 -3
- package/dist/common/libraries/base.migration.utility.js.map +1 -1
- package/dist/common/libraries/cached.property.d.ts +12 -0
- package/dist/common/libraries/cached.property.js +50 -0
- package/dist/common/libraries/cached.property.js.map +1 -0
- package/dist/common/libraries/common.entity.d.ts +2 -2
- package/dist/common/libraries/common.entity.js +79 -20
- package/dist/common/libraries/common.entity.js.map +1 -1
- package/dist/common/libraries/common.job.d.ts +3 -11
- package/dist/common/libraries/common.job.js +7 -38
- package/dist/common/libraries/common.job.js.map +1 -1
- package/dist/common/libraries/common.subscriber.d.ts +9 -1
- package/dist/common/libraries/common.subscriber.js +79 -7
- package/dist/common/libraries/common.subscriber.js.map +1 -1
- package/dist/common/libraries/custom.crypt.d.ts +16 -3
- package/dist/common/libraries/custom.crypt.js +104 -21
- package/dist/common/libraries/custom.crypt.js.map +1 -1
- package/dist/common/libraries/data.manager.d.ts +3 -1
- package/dist/common/libraries/data.manager.js +9 -13
- package/dist/common/libraries/data.manager.js.map +1 -1
- package/dist/common/libraries/database.event.evaluator.js +3 -4
- package/dist/common/libraries/database.event.evaluator.js.map +1 -1
- package/dist/common/libraries/date.util.d.ts +2 -1
- package/dist/common/libraries/date.util.js +8 -4
- package/dist/common/libraries/date.util.js.map +1 -1
- package/dist/common/libraries/decimal.column.transformer.d.ts +6 -0
- package/dist/common/libraries/decimal.column.transformer.js +18 -0
- package/dist/common/libraries/decimal.column.transformer.js.map +1 -0
- package/dist/common/libraries/entity.evaluator.js +12 -17
- package/dist/common/libraries/entity.evaluator.js.map +1 -1
- package/dist/common/libraries/generic.index.parser.d.ts +1 -1
- package/dist/common/libraries/generic.index.parser.js +15 -5
- package/dist/common/libraries/generic.index.parser.js.map +1 -1
- package/dist/common/libraries/hash.d.ts +1 -1
- package/dist/common/libraries/hash.js +13 -2
- package/dist/common/libraries/hash.js.map +1 -1
- package/dist/common/libraries/index.d.ts +5 -0
- package/dist/common/libraries/index.js +5 -0
- package/dist/common/libraries/index.js.map +1 -1
- package/dist/common/libraries/json.evaluator.d.ts +1 -0
- package/dist/common/libraries/json.evaluator.js +23 -2
- package/dist/common/libraries/json.evaluator.js.map +1 -1
- package/dist/common/libraries/list.manager.d.ts +0 -1
- package/dist/common/libraries/list.manager.js +9 -3
- package/dist/common/libraries/list.manager.js.map +1 -1
- package/dist/common/libraries/log.redactor.d.ts +11 -0
- package/dist/common/libraries/log.redactor.js +72 -0
- package/dist/common/libraries/log.redactor.js.map +1 -0
- package/dist/common/libraries/money.d.ts +29 -0
- package/dist/common/libraries/money.js +87 -0
- package/dist/common/libraries/money.js.map +1 -0
- package/dist/common/libraries/platform.utility.d.ts +6 -2
- package/dist/common/libraries/platform.utility.js +45 -20
- package/dist/common/libraries/platform.utility.js.map +1 -1
- package/dist/common/libraries/record.manager.d.ts +1 -1
- package/dist/common/libraries/record.manager.js +29 -9
- package/dist/common/libraries/record.manager.js.map +1 -1
- package/dist/common/libraries/report.data.manager.d.ts +3 -1
- package/dist/common/libraries/report.data.manager.js +8 -9
- package/dist/common/libraries/report.data.manager.js.map +1 -1
- package/dist/common/libraries/report.list.manager.d.ts +1 -1
- package/dist/common/libraries/report.list.manager.js +24 -5
- package/dist/common/libraries/report.list.manager.js.map +1 -1
- package/dist/common/libraries/subscriber.registry.d.ts +9 -0
- package/dist/common/libraries/subscriber.registry.js +31 -0
- package/dist/common/libraries/subscriber.registry.js.map +1 -0
- package/dist/config/cors.config.js +7 -0
- package/dist/config/cors.config.js.map +1 -1
- package/dist/config/entity.constants.d.ts +2 -4
- package/dist/config/entity.constants.js +2 -4
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/config/jwt.config.js +13 -1
- package/dist/config/jwt.config.js.map +1 -1
- package/dist/config/mongo.config.js +1 -1
- package/dist/config/mongo.config.js.map +1 -1
- package/dist/config/platform.constants.d.ts +1 -0
- package/dist/config/platform.constants.js +1 -0
- package/dist/config/platform.constants.js.map +1 -1
- package/dist/config/rate.limiter.config.js +1 -1
- package/dist/config/rate.limiter.config.js.map +1 -1
- package/dist/config/read.typeorm.config.js +3 -1
- package/dist/config/read.typeorm.config.js.map +1 -1
- package/dist/config/sentry.config.d.ts +1 -6
- package/dist/config/sentry.config.js +2 -6
- package/dist/config/sentry.config.js.map +1 -1
- package/dist/config/sentry.options.d.ts +6 -0
- package/dist/config/sentry.options.js +85 -0
- package/dist/config/sentry.options.js.map +1 -0
- package/dist/config/typeorm.config.js +3 -1
- package/dist/config/typeorm.config.js.map +1 -1
- package/dist/health.check.controller.d.ts +2 -0
- package/dist/health.check.controller.js +41 -23
- package/dist/health.check.controller.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/instrument.d.ts +1 -0
- package/dist/instrument.js +5 -0
- package/dist/instrument.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +3 -9
- package/dist/main.js.map +1 -1
- package/dist/migrations/{1580011348975-SysUsersTable.ts.js → 1580011348975-SysUsersTable.js} +1 -1
- package/dist/migrations/1580011348975-SysUsersTable.js.map +1 -0
- package/dist/migrations/{1580012157523-SysRolesTable.ts.js → 1580012157523-SysRolesTable.js} +1 -1
- package/dist/migrations/1580012157523-SysRolesTable.js.map +1 -0
- package/dist/migrations/{1580012268960-SysPermissionsTable.ts.js → 1580012268960-SysPermissionsTable.js} +1 -1
- package/dist/migrations/1580012268960-SysPermissionsTable.js.map +1 -0
- package/dist/migrations/{1580012428385-SysPropertiesTable.ts.js → 1580012428385-SysPropertiesTable.js} +1 -1
- package/dist/migrations/1580012428385-SysPropertiesTable.js.map +1 -0
- package/dist/migrations/{1580012617487-SysOpenPropertiesTable.ts.js → 1580012617487-SysOpenPropertiesTable.js} +1 -1
- package/dist/migrations/1580012617487-SysOpenPropertiesTable.js.map +1 -0
- package/dist/migrations/{1580012802170-SysLookupTypesTable.ts.js → 1580012802170-SysLookupTypesTable.js} +1 -1
- package/dist/migrations/1580012802170-SysLookupTypesTable.js.map +1 -0
- package/dist/migrations/{1580012876576-SysLookupValuesTable.ts.js → 1580012876576-SysLookupValuesTable.js} +1 -1
- package/dist/migrations/1580012876576-SysLookupValuesTable.js.map +1 -0
- package/dist/migrations/{1580013243446-SysSystemScriptsTable.ts.js → 1580013243446-SysSystemScriptsTable.js} +1 -1
- package/dist/migrations/1580013243446-SysSystemScriptsTable.js.map +1 -0
- package/dist/migrations/{1580013426935-SysUserGroupsTable.ts.js → 1580013426935-SysUserGroupsTable.js} +1 -1
- package/dist/migrations/1580013426935-SysUserGroupsTable.js.map +1 -0
- package/dist/migrations/{1580013438750-SysUserGroupMembersTable.ts.js → 1580013438750-SysUserGroupMembersTable.js} +1 -1
- package/dist/migrations/1580013438750-SysUserGroupMembersTable.js.map +1 -0
- package/dist/migrations/{1580013583515-SysColumnDefinitionsTable.ts.js → 1580013583515-SysColumnDefinitionsTable.js} +1 -1
- package/dist/migrations/1580013583515-SysColumnDefinitionsTable.js.map +1 -0
- package/dist/migrations/{1580013737722-SysModelDetailsTable.ts.js → 1580013737722-SysModelDetailsTable.js} +1 -1
- package/dist/migrations/1580013737722-SysModelDetailsTable.js.map +1 -0
- package/dist/migrations/{1580032909794-SysColumnDetailsTable.ts.js → 1580032909794-SysColumnDetailsTable.js} +1 -1
- package/dist/migrations/1580032909794-SysColumnDetailsTable.js.map +1 -0
- package/dist/migrations/{1580033076554-SysModelColumnsTable.ts.js → 1580033076554-SysModelColumnsTable.js} +1 -1
- package/dist/migrations/1580033076554-SysModelColumnsTable.js.map +1 -0
- package/dist/migrations/{1580033241460-SysModelRelationshipsTable.ts.js → 1580033241460-SysModelRelationshipsTable.js} +1 -1
- package/dist/migrations/1580033241460-SysModelRelationshipsTable.js.map +1 -0
- package/dist/migrations/{1580033439057-SysPageDefinitionsTable.ts.js → 1580033439057-SysPageDefinitionsTable.js} +1 -1
- package/dist/migrations/1580033439057-SysPageDefinitionsTable.js.map +1 -0
- package/dist/migrations/{1580033536134-SysModuleDetailsTable.ts.js → 1580033536134-SysModuleDetailsTable.js} +1 -1
- package/dist/migrations/1580033536134-SysModuleDetailsTable.js.map +1 -0
- package/dist/migrations/{1580033654069-SysMenuDetailsTable.ts.js → 1580033654069-SysMenuDetailsTable.js} +1 -1
- package/dist/migrations/1580033654069-SysMenuDetailsTable.js.map +1 -0
- package/dist/migrations/{1580034121887-SysModuleMenusTable.ts.js → 1580034121887-SysModuleMenusTable.js} +1 -1
- package/dist/migrations/1580034121887-SysModuleMenusTable.js.map +1 -0
- package/dist/migrations/{1580034434762-SysParentMenusTable.ts.js → 1580034434762-SysParentMenusTable.js} +1 -1
- package/dist/migrations/1580034434762-SysParentMenusTable.js.map +1 -0
- package/dist/migrations/{1580034626349-SysUserPreferencesTable.ts.js → 1580034626349-SysUserPreferencesTable.js} +1 -1
- package/dist/migrations/1580034626349-SysUserPreferencesTable.js.map +1 -0
- package/dist/migrations/{1580034717318-SysFormDetailsTable.ts.js → 1580034717318-SysFormDetailsTable.js} +1 -1
- package/dist/migrations/1580034717318-SysFormDetailsTable.js.map +1 -0
- package/dist/migrations/{1580034866284-SysFormColumnsTable.ts.js → 1580034866284-SysFormColumnsTable.js} +1 -1
- package/dist/migrations/1580034866284-SysFormColumnsTable.js.map +1 -0
- package/dist/migrations/{1580034927543-SysBusinessRulesTable.ts.js → 1580034927543-SysBusinessRulesTable.js} +1 -1
- package/dist/migrations/1580034927543-SysBusinessRulesTable.js.map +1 -0
- package/dist/migrations/{1580035169090-SysFormPreferencesTable.ts.js → 1580035169090-SysFormPreferencesTable.js} +1 -1
- package/dist/migrations/1580035169090-SysFormPreferencesTable.js.map +1 -0
- package/dist/migrations/{1580035241990-SysListPreferencesTable.ts.js → 1580035241990-SysListPreferencesTable.js} +1 -1
- package/dist/migrations/1580035241990-SysListPreferencesTable.js.map +1 -0
- package/dist/migrations/{1580035351803-SysSecurityRulesTable.ts.js → 1580035351803-SysSecurityRulesTable.js} +1 -1
- package/dist/migrations/1580035351803-SysSecurityRulesTable.js.map +1 -0
- package/dist/migrations/{1580035532119-SysUiActionsTable.ts.js → 1580035532119-SysUiActionsTable.js} +1 -1
- package/dist/migrations/1580035532119-SysUiActionsTable.js.map +1 -0
- package/dist/migrations/{1580035823624-SysDeviceTokensTable.ts.js → 1580035823624-SysDeviceTokensTable.js} +1 -1
- package/dist/migrations/1580035823624-SysDeviceTokensTable.js.map +1 -0
- package/dist/migrations/{1580036042576-SysCountriesTable.ts.js → 1580036042576-SysCountriesTable.js} +1 -1
- package/dist/migrations/1580036042576-SysCountriesTable.js.map +1 -0
- package/dist/migrations/{1580036055684-SysRefreshTokensTable.ts.js → 1580036055684-SysRefreshTokensTable.js} +1 -1
- package/dist/migrations/1580036055684-SysRefreshTokensTable.js.map +1 -0
- package/dist/migrations/{1580036754269-SysUserRolesTable.ts.js → 1580036754269-SysUserRolesTable.js} +1 -1
- package/dist/migrations/1580036754269-SysUserRolesTable.js.map +1 -0
- package/dist/migrations/{1580036787378-SysMenuRolesTable.ts.js → 1580036787378-SysMenuRolesTable.js} +1 -1
- package/dist/migrations/1580036787378-SysMenuRolesTable.js.map +1 -0
- package/dist/migrations/{1580036809003-SysModelRolesTable.ts.js → 1580036809003-SysModelRolesTable.js} +1 -1
- package/dist/migrations/1580036809003-SysModelRolesTable.js.map +1 -0
- package/dist/migrations/{1580037052174-SysUiActionRolesTable.ts.js → 1580037052174-SysUiActionRolesTable.js} +1 -1
- package/dist/migrations/1580037052174-SysUiActionRolesTable.js.map +1 -0
- package/dist/migrations/{1580037081670-SysUserGroupRolesTable.ts.js → 1580037081670-SysUserGroupRolesTable.js} +1 -1
- package/dist/migrations/1580037081670-SysUserGroupRolesTable.js.map +1 -0
- package/dist/migrations/{1580037119302-SysUserPermissionsTable.ts.js → 1580037119302-SysUserPermissionsTable.js} +1 -1
- package/dist/migrations/1580037119302-SysUserPermissionsTable.js.map +1 -0
- package/dist/migrations/{1599034575440-AddTimezoneOffsetSysCountriesTable.ts.js → 1599034575440-AddTimezoneOffsetSysCountriesTable.js} +1 -1
- package/dist/migrations/1599034575440-AddTimezoneOffsetSysCountriesTable.js.map +1 -0
- package/dist/migrations/1599567001962-AddUserSequence.js +1 -1
- package/dist/migrations/1599567001962-AddUserSequence.js.map +1 -1
- package/dist/migrations/{1606282995979-ActiveColumnSysDeviceTokensTable.ts.js → 1606282995979-ActiveColumnSysDeviceTokensTable.js} +1 -1
- package/dist/migrations/1606282995979-ActiveColumnSysDeviceTokensTable.js.map +1 -0
- package/dist/migrations/{1609583413782-SystemGeneratedSysCommentsTable.ts.js → 1609583413782-SystemGeneratedSysCommentsTable.js} +1 -1
- package/dist/migrations/1609583413782-SystemGeneratedSysCommentsTable.js.map +1 -0
- package/dist/migrations/{1610226459497-AddIndexOnTokenSysDeviceTokensTable.ts.js → 1610226459497-AddIndexOnTokenSysDeviceTokensTable.js} +1 -1
- package/dist/migrations/1610226459497-AddIndexOnTokenSysDeviceTokensTable.js.map +1 -0
- package/dist/migrations/{1615622117306-DeleteValueColumnSysUserPreferencesTable.ts.js → 1615622117306-DeleteValueColumnSysUserPreferencesTable.js} +1 -1
- package/dist/migrations/1615622117306-DeleteValueColumnSysUserPreferencesTable.js.map +1 -0
- package/dist/migrations/{1615622742904-AddValueJsonColumnSysUserPreferencesTable.ts.js → 1615622742904-AddValueJsonColumnSysUserPreferencesTable.js} +1 -1
- package/dist/migrations/1615622742904-AddValueJsonColumnSysUserPreferencesTable.js.map +1 -0
- package/dist/migrations/{1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.ts.js → 1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.js} +1 -1
- package/dist/migrations/1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.js.map +1 -0
- package/dist/migrations/{1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.ts.js → 1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.js} +1 -1
- package/dist/migrations/1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.js.map +1 -0
- package/dist/migrations/{1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.ts.js → 1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.js} +1 -1
- package/dist/migrations/1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.js.map +1 -0
- package/dist/migrations/{1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.ts.js → 1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.js} +1 -1
- package/dist/migrations/1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.js.map +1 -0
- package/dist/migrations/{1616255314846-RenameRouteColumnSysMenuDetailsTable.ts.js → 1616255314846-RenameRouteColumnSysMenuDetailsTable.js} +1 -1
- package/dist/migrations/1616255314846-RenameRouteColumnSysMenuDetailsTable.js.map +1 -0
- package/dist/migrations/{1616257589431-RenameRouteColumnSysModelDetailsTable.ts.js → 1616257589431-RenameRouteColumnSysModelDetailsTable.js} +1 -1
- package/dist/migrations/1616257589431-RenameRouteColumnSysModelDetailsTable.js.map +1 -0
- package/dist/migrations/{1616329406291-AddIncludesColumnSysMenuDetailsTable.ts.js → 1616329406291-AddIncludesColumnSysMenuDetailsTable.js} +1 -1
- package/dist/migrations/1616329406291-AddIncludesColumnSysMenuDetailsTable.js.map +1 -0
- package/dist/migrations/{1616738455290-AddNameColumnSysReportParamsTable.ts.js → 1616738455290-AddNameColumnSysReportParamsTable.js} +1 -1
- package/dist/migrations/1616738455290-AddNameColumnSysReportParamsTable.js.map +1 -0
- package/dist/migrations/{1616749370769-AddSourceColumnsSysRelationshipDetailsTable.ts.js → 1616749370769-AddSourceColumnsSysRelationshipDetailsTable.js} +1 -1
- package/dist/migrations/1616749370769-AddSourceColumnsSysRelationshipDetailsTable.js.map +1 -0
- package/dist/migrations/{1616750113885-CreateTableSysModelRelationshipsTable.ts.js → 1616750113885-CreateTableSysModelRelationshipsTable.js} +1 -1
- package/dist/migrations/1616750113885-CreateTableSysModelRelationshipsTable.js.map +1 -0
- package/dist/migrations/{1617433544860-AddRouteColumnIncludesSysReportDetailsTable.ts.js → 1617433544860-AddRouteColumnIncludesSysReportDetailsTable.js} +1 -1
- package/dist/migrations/1617433544860-AddRouteColumnIncludesSysReportDetailsTable.js.map +1 -0
- package/dist/migrations/{1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.ts.js → 1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.js} +1 -1
- package/dist/migrations/1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.js.map +1 -0
- package/dist/migrations/1619193418460-AddDefaultUserDataSeederTable.js +4 -4
- package/dist/migrations/1619193418460-AddDefaultUserDataSeederTable.js.map +1 -1
- package/dist/migrations/{1619555997151-AddSourceColumnsSysUserRolesTable.ts.js → 1619555997151-AddSourceColumnsSysUserRolesTable.js} +1 -1
- package/dist/migrations/1619555997151-AddSourceColumnsSysUserRolesTable.js.map +1 -0
- package/dist/migrations/{1619556025823-AddSourceColumnsSysUserPermissionsTable.ts.js → 1619556025823-AddSourceColumnsSysUserPermissionsTable.js} +1 -1
- package/dist/migrations/1619556025823-AddSourceColumnsSysUserPermissionsTable.js.map +1 -0
- package/dist/migrations/{1633602353156-AddWhatsAppNumberSysCountriesTable.ts.js → 1633602353156-AddWhatsAppNumberSysCountriesTable.js} +1 -1
- package/dist/migrations/1633602353156-AddWhatsAppNumberSysCountriesTable.js.map +1 -0
- package/dist/migrations/{1645886071349-AddSubjectSysEmailTemplatesTable.ts.js → 1645886071349-AddSubjectSysEmailTemplatesTable.js} +1 -1
- package/dist/migrations/1645886071349-AddSubjectSysEmailTemplatesTable.js.map +1 -0
- package/dist/migrations/{1652332064735-AddOrdinalPositionSysColumnDetailsTable.ts.js → 1652332064735-AddOrdinalPositionSysColumnDetailsTable.js} +1 -1
- package/dist/migrations/1652332064735-AddOrdinalPositionSysColumnDetailsTable.js.map +1 -0
- package/dist/migrations/{1662188562840-AddAttemptsSysUsersTable.ts.js → 1662188562840-AddAttemptsSysUsersTable.js} +1 -1
- package/dist/migrations/1662188562840-AddAttemptsSysUsersTable.js.map +1 -0
- package/dist/migrations/{1675176639864-AddReportFilterTableSysReportFiltersTable.ts.js → 1675176639864-AddReportFilterTableSysReportFiltersTable.js} +1 -1
- package/dist/migrations/1675176639864-AddReportFilterTableSysReportFiltersTable.js.map +1 -0
- package/dist/migrations/{1675876187420-AddIsEncryptedSysPropertiesTable.ts.js → 1675876187420-AddIsEncryptedSysPropertiesTable.js} +1 -1
- package/dist/migrations/1675876187420-AddIsEncryptedSysPropertiesTable.js.map +1 -0
- package/dist/migrations/{1679473705431-RemoveModelSysRelationshipDetailsTable.ts.js → 1679473705431-RemoveModelSysRelationshipDetailsTable.js} +1 -1
- package/dist/migrations/1679473705431-RemoveModelSysRelationshipDetailsTable.js.map +1 -0
- package/dist/migrations/{1684649589572-AddTypeSysCommentsTable.ts.js → 1684649589572-AddTypeSysCommentsTable.js} +1 -1
- package/dist/migrations/1684649589572-AddTypeSysCommentsTable.js.map +1 -0
- package/dist/migrations/{1692726438006-AddColumnTypeSysReportFiltersTable.ts.js → 1692726438006-AddColumnTypeSysReportFiltersTable.js} +1 -1
- package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.js.map +1 -0
- package/dist/migrations/{1698026335959-AddActiveSysSmsTemplatesTable.ts.js → 1698026335959-AddActiveSysSmsTemplatesTable.js} +1 -1
- package/dist/migrations/1698026335959-AddActiveSysSmsTemplatesTable.js.map +1 -0
- package/dist/migrations/{1700393526749-AddBodySysMailLogsTable.ts.js → 1700393526749-AddBodySysMailLogsTable.js} +1 -1
- package/dist/migrations/1700393526749-AddBodySysMailLogsTable.js.map +1 -0
- package/dist/migrations/{1700401846961-RemoveToColumnSysMailLogsTable.ts.js → 1700401846961-RemoveToColumnSysMailLogsTable.js} +1 -1
- package/dist/migrations/1700401846961-RemoveToColumnSysMailLogsTable.js.map +1 -0
- package/dist/migrations/{1732962774052-AddJsonDataSysScheduledEventsTable.ts.js → 1732962774052-AddJsonDataSysScheduledEventsTable.js} +1 -1
- package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.js.map +1 -0
- package/dist/migrations/{1732962856845-AddJsonPayloadSysEventQueuesTable.ts.js → 1732962856845-AddJsonPayloadSysEventQueuesTable.js} +1 -1
- package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.js.map +1 -0
- package/dist/migrations/{1735153438257-AddTimingSysCodefixScriptsTable.ts.js → 1735153438257-AddTimingSysCodefixScriptsTable.js} +1 -1
- package/dist/migrations/1735153438257-AddTimingSysCodefixScriptsTable.js.map +1 -0
- package/dist/migrations/{1735154396259-AddQuerySysRecurringQueriesTable.ts.js → 1735154396259-AddQuerySysRecurringQueriesTable.js} +1 -1
- package/dist/migrations/1735154396259-AddQuerySysRecurringQueriesTable.js.map +1 -0
- package/dist/migrations/{1735882485286-AddLastRunTimeSysCodefixScriptsTable.ts.js → 1735882485286-AddLastRunTimeSysCodefixScriptsTable.js} +1 -1
- package/dist/migrations/1735882485286-AddLastRunTimeSysCodefixScriptsTable.js.map +1 -0
- package/dist/migrations/{1735882522813-AddLastRunTimeSysRecurringQueriesTable.ts.js → 1735882522813-AddLastRunTimeSysRecurringQueriesTable.js} +1 -1
- package/dist/migrations/1735882522813-AddLastRunTimeSysRecurringQueriesTable.js.map +1 -0
- package/dist/migrations/{1739166543991-AddJobIdentifierSysPendingBullJobsTable.ts.js → 1739166543991-AddJobIdentifierSysPendingBullJobsTable.js} +1 -1
- package/dist/migrations/1739166543991-AddJobIdentifierSysPendingBullJobsTable.js.map +1 -0
- package/dist/migrations/{1739166586058-AddJobIdentifierSysFailedBullJobsTable.ts.js → 1739166586058-AddJobIdentifierSysFailedBullJobsTable.js} +1 -1
- package/dist/migrations/1739166586058-AddJobIdentifierSysFailedBullJobsTable.js.map +1 -0
- package/dist/migrations/{1742242110370-AddIsDownloadableSysReportDetailsTable.ts.js → 1742242110370-AddIsDownloadableSysReportDetailsTable.js} +1 -1
- package/dist/migrations/1742242110370-AddIsDownloadableSysReportDetailsTable.js.map +1 -0
- package/dist/migrations/{1762178107733-AddDataSysEventLogsTable.ts.js → 1762178107733-AddDataSysEventLogsTable.js} +1 -1
- package/dist/migrations/1762178107733-AddDataSysEventLogsTable.js.map +1 -0
- package/dist/migrations/{1770625065996-AddIdentifierSysDocumentsTable.ts.js → 1770625065996-AddIdentifierSysDocumentsTable.js} +1 -1
- package/dist/migrations/1770625065996-AddIdentifierSysDocumentsTable.js.map +1 -0
- package/dist/migrations/{1773949393819-AddFileHashSysDocumentsTable.ts.js → 1773949393819-AddFileHashSysDocumentsTable.js} +1 -1
- package/dist/migrations/1773949393819-AddFileHashSysDocumentsTable.js.map +1 -0
- package/dist/migrations/1779607111923-AddUniqueIndexSysPropertiesName.d.ts +7 -0
- package/dist/migrations/1779607111923-AddUniqueIndexSysPropertiesName.js +34 -0
- package/dist/migrations/1779607111923-AddUniqueIndexSysPropertiesName.js.map +1 -0
- package/dist/migrations/1779607111924-AddUniqueIndexSysDocumentsFileHash.d.ts +7 -0
- package/dist/migrations/1779607111924-AddUniqueIndexSysDocumentsFileHash.js +39 -0
- package/dist/migrations/1779607111924-AddUniqueIndexSysDocumentsFileHash.js.map +1 -0
- package/dist/migrations/1779685411636-RemoveSysEventLogsTable.d.ts +5 -0
- package/dist/migrations/1779685411636-RemoveSysEventLogsTable.js +23 -0
- package/dist/migrations/1779685411636-RemoveSysEventLogsTable.js.map +1 -0
- package/dist/migrations/1779685411637-RemoveSysSystemLogsTable.d.ts +5 -0
- package/dist/migrations/1779685411637-RemoveSysSystemLogsTable.js +21 -0
- package/dist/migrations/1779685411637-RemoveSysSystemLogsTable.js.map +1 -0
- package/dist/migrations/1779690834611-ReplaceDefaultUserSeedPii.d.ts +5 -0
- package/dist/migrations/1779690834611-ReplaceDefaultUserSeedPii.js +21 -0
- package/dist/migrations/1779690834611-ReplaceDefaultUserSeedPii.js.map +1 -0
- package/dist/migrations/1779690904231-FixSysColumnDetailsRequiredNullable.d.ts +5 -0
- package/dist/migrations/1779690904231-FixSysColumnDetailsRequiredNullable.js +19 -0
- package/dist/migrations/1779690904231-FixSysColumnDetailsRequiredNullable.js.map +1 -0
- package/dist/migrations/1779690975270-AddUniqueIndexSysSessionIdentifiers.d.ts +6 -0
- package/dist/migrations/1779690975270-AddUniqueIndexSysSessionIdentifiers.js +34 -0
- package/dist/migrations/1779690975270-AddUniqueIndexSysSessionIdentifiers.js.map +1 -0
- package/dist/migrations/1779773659655-AddIdempotencyIndexesForJobs.d.ts +8 -0
- package/dist/migrations/1779773659655-AddIdempotencyIndexesForJobs.js +65 -0
- package/dist/migrations/1779773659655-AddIdempotencyIndexesForJobs.js.map +1 -0
- package/dist/migrations/1779807657061-AddRefreshTokenHashingAndRotation.d.ts +9 -0
- package/dist/migrations/1779807657061-AddRefreshTokenHashingAndRotation.js +86 -0
- package/dist/migrations/1779807657061-AddRefreshTokenHashingAndRotation.js.map +1 -0
- package/dist/migrations/1779810674046-AddSocialIdentitiesTable.d.ts +5 -0
- package/dist/migrations/1779810674046-AddSocialIdentitiesTable.js +37 -0
- package/dist/migrations/1779810674046-AddSocialIdentitiesTable.js.map +1 -0
- package/dist/migrations/1780002352495-MigrateJsonColumnsToJsonb.d.ts +17 -0
- package/dist/migrations/1780002352495-MigrateJsonColumnsToJsonb.js +209 -0
- package/dist/migrations/1780002352495-MigrateJsonColumnsToJsonb.js.map +1 -0
- package/dist/migrations/1788287350858-ReplaceUniqueIndexesWithSoftDeleteAware.d.ts +12 -0
- package/dist/migrations/1788287350858-ReplaceUniqueIndexesWithSoftDeleteAware.js +87 -0
- package/dist/migrations/1788287350858-ReplaceUniqueIndexesWithSoftDeleteAware.js.map +1 -0
- package/dist/migrations/1788287350859-NormalizeSocialIdentitiesUuidDefault.d.ts +8 -0
- package/dist/migrations/1788287350859-NormalizeSocialIdentitiesUuidDefault.js +36 -0
- package/dist/migrations/1788287350859-NormalizeSocialIdentitiesUuidDefault.js.map +1 -0
- package/dist/platformUtility/constants/index.d.ts +1 -0
- package/dist/{system/mentities → platformUtility/constants}/index.js +1 -1
- package/dist/platformUtility/constants/index.js.map +1 -0
- package/dist/platformUtility/constants/sms.constants.d.ts +4 -0
- package/dist/platformUtility/constants/sms.constants.js +8 -0
- package/dist/platformUtility/constants/sms.constants.js.map +1 -0
- package/dist/platformUtility/consumers/job.consumer.d.ts +1 -0
- package/dist/platformUtility/consumers/job.consumer.js +84 -27
- package/dist/platformUtility/consumers/job.consumer.js.map +1 -1
- package/dist/platformUtility/controllers/bull.job.controller.js +2 -1
- package/dist/platformUtility/controllers/bull.job.controller.js.map +1 -1
- package/dist/platformUtility/controllers/queue.controller.js +2 -1
- package/dist/platformUtility/controllers/queue.controller.js.map +1 -1
- package/dist/platformUtility/dtos/aws.config.dto.d.ts +2 -2
- package/dist/platformUtility/dtos/aws.config.dto.js.map +1 -1
- package/dist/platformUtility/dtos/index.d.ts +1 -0
- package/dist/platformUtility/dtos/index.js +1 -0
- package/dist/platformUtility/dtos/index.js.map +1 -1
- package/dist/platformUtility/dtos/remote.request.config.dto.d.ts +1 -0
- package/dist/platformUtility/dtos/remote.request.config.dto.js.map +1 -1
- package/dist/platformUtility/dtos/s3.service.upload.options.dto.d.ts +4 -0
- package/dist/platformUtility/dtos/s3.service.upload.options.dto.js +7 -0
- package/dist/platformUtility/dtos/s3.service.upload.options.dto.js.map +1 -0
- package/dist/platformUtility/entities/failed.bull.job.entity.js +4 -4
- package/dist/platformUtility/entities/failed.bull.job.entity.js.map +1 -1
- package/dist/platformUtility/entities/pending.bull.job.entity.js +3 -3
- package/dist/platformUtility/entities/pending.bull.job.entity.js.map +1 -1
- package/dist/platformUtility/entities/remote.request.log.entity.js +3 -3
- package/dist/platformUtility/entities/remote.request.log.entity.js.map +1 -1
- package/dist/platformUtility/es6.classes.d.ts +18 -5
- package/dist/platformUtility/es6.classes.js +18 -2
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/filters/index.d.ts +1 -0
- package/dist/{system/interceptors → platformUtility/filters}/index.js +1 -1
- package/dist/platformUtility/filters/index.js.map +1 -0
- package/dist/platformUtility/filters/sentry.reporting.filter.d.ts +9 -0
- package/dist/platformUtility/filters/sentry.reporting.filter.js +63 -0
- package/dist/platformUtility/filters/sentry.reporting.filter.js.map +1 -0
- package/dist/platformUtility/index.d.ts +4 -0
- package/dist/platformUtility/index.js +4 -0
- package/dist/platformUtility/index.js.map +1 -1
- package/dist/platformUtility/interceptors/index.d.ts +1 -0
- package/dist/platformUtility/interceptors/index.js +18 -0
- package/dist/platformUtility/interceptors/index.js.map +1 -0
- package/dist/{system/interceptors/sentry.interceptor.d.ts → platformUtility/interceptors/sentry.user.scope.interceptor.d.ts} +1 -1
- package/dist/platformUtility/interceptors/sentry.user.scope.interceptor.js +24 -0
- package/dist/platformUtility/interceptors/sentry.user.scope.interceptor.js.map +1 -0
- package/dist/platformUtility/interfaces/html.pdf.upload.options.interface.d.ts +3 -0
- package/dist/platformUtility/interfaces/html.pdf.upload.options.interface.js +3 -0
- package/dist/platformUtility/interfaces/html.pdf.upload.options.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/index.d.ts +1 -0
- package/dist/platformUtility/interfaces/index.js +1 -0
- package/dist/platformUtility/interfaces/index.js.map +1 -1
- package/dist/platformUtility/jobs/remote.request.log.job.js +3 -0
- package/dist/platformUtility/jobs/remote.request.log.job.js.map +1 -1
- package/dist/platformUtility/jobs/test.job.d.ts +1 -1
- package/dist/platformUtility/jobs/test.job.js +2 -8
- package/dist/platformUtility/jobs/test.job.js.map +1 -1
- package/dist/platformUtility/libraries/common.sms.service.d.ts +7 -0
- package/dist/platformUtility/libraries/common.sms.service.js +7 -0
- package/dist/platformUtility/libraries/common.sms.service.js.map +1 -0
- package/dist/platformUtility/libraries/common.sqs.polling.js +11 -2
- package/dist/platformUtility/libraries/common.sqs.polling.js.map +1 -1
- package/dist/platformUtility/libraries/create.index.file.d.ts +2 -0
- package/dist/platformUtility/libraries/create.index.file.js +40 -1
- package/dist/platformUtility/libraries/create.index.file.js.map +1 -1
- package/dist/platformUtility/libraries/index.d.ts +3 -0
- package/dist/platformUtility/libraries/index.js +3 -0
- package/dist/platformUtility/libraries/index.js.map +1 -1
- package/dist/platformUtility/libraries/process.common.emithook.mail.js +1 -2
- package/dist/platformUtility/libraries/process.common.emithook.mail.js.map +1 -1
- package/dist/platformUtility/libraries/process.common.mail.d.ts +9 -0
- package/dist/platformUtility/libraries/process.common.mail.js +65 -3
- package/dist/platformUtility/libraries/process.common.mail.js.map +1 -1
- package/dist/platformUtility/libraries/process.common.ses.mail.d.ts +2 -2
- package/dist/platformUtility/libraries/process.common.ses.mail.js +1 -5
- package/dist/platformUtility/libraries/process.common.ses.mail.js.map +1 -1
- package/dist/platformUtility/libraries/process.emithook.mail.d.ts +2 -0
- package/dist/platformUtility/libraries/process.emithook.mail.js +21 -1
- package/dist/platformUtility/libraries/process.emithook.mail.js.map +1 -1
- package/dist/platformUtility/libraries/process.kaleyra.sms.d.ts +10 -1
- package/dist/platformUtility/libraries/process.kaleyra.sms.js +50 -13
- package/dist/platformUtility/libraries/process.kaleyra.sms.js.map +1 -1
- package/dist/platformUtility/libraries/process.ses.mail.d.ts +3 -3
- package/dist/platformUtility/libraries/process.ses.mail.js +9 -15
- package/dist/platformUtility/libraries/process.ses.mail.js.map +1 -1
- package/dist/platformUtility/libraries/process.ses.raw.mail.d.ts +3 -3
- package/dist/platformUtility/libraries/process.ses.raw.mail.js +2 -2
- package/dist/platformUtility/libraries/sentry.bootstrap.d.ts +12 -0
- package/dist/platformUtility/libraries/sentry.bootstrap.js +25 -0
- package/dist/platformUtility/libraries/sentry.bootstrap.js.map +1 -0
- package/dist/platformUtility/libraries/sentry.context.d.ts +13 -0
- package/dist/platformUtility/libraries/sentry.context.js +44 -0
- package/dist/platformUtility/libraries/sentry.context.js.map +1 -0
- package/dist/platformUtility/libraries/set.sms.message.d.ts +2 -0
- package/dist/platformUtility/libraries/set.sms.message.js +14 -2
- package/dist/platformUtility/libraries/set.sms.message.js.map +1 -1
- package/dist/platformUtility/middlewares/trim.pipe.d.ts +4 -2
- package/dist/platformUtility/middlewares/trim.pipe.js +41 -21
- package/dist/platformUtility/middlewares/trim.pipe.js.map +1 -1
- package/dist/platformUtility/sentry.reporting.module.d.ts +4 -0
- package/dist/platformUtility/sentry.reporting.module.js +36 -0
- package/dist/platformUtility/sentry.reporting.module.js.map +1 -0
- package/dist/platformUtility/services/audit.service.d.ts +1 -2
- package/dist/platformUtility/services/audit.service.js +4 -9
- package/dist/platformUtility/services/audit.service.js.map +1 -1
- package/dist/platformUtility/services/aws.client.factory.d.ts +19 -0
- package/dist/platformUtility/services/aws.client.factory.js +42 -0
- package/dist/platformUtility/services/aws.client.factory.js.map +1 -0
- package/dist/platformUtility/services/aws.config.service.js +7 -5
- package/dist/platformUtility/services/aws.config.service.js.map +1 -1
- package/dist/platformUtility/services/aws.secret.service.d.ts +3 -3
- package/dist/platformUtility/services/aws.secret.service.js +50 -10
- package/dist/platformUtility/services/aws.secret.service.js.map +1 -1
- package/dist/platformUtility/services/cache.service.d.ts +0 -2
- package/dist/platformUtility/services/cache.service.js +5 -47
- package/dist/platformUtility/services/cache.service.js.map +1 -1
- package/dist/platformUtility/services/dynamo.service.d.ts +6 -3
- package/dist/platformUtility/services/dynamo.service.js +51 -20
- package/dist/platformUtility/services/dynamo.service.js.map +1 -1
- package/dist/platformUtility/services/emithook.mail.service.d.ts +1 -0
- package/dist/platformUtility/services/emithook.mail.service.js +7 -2
- package/dist/platformUtility/services/emithook.mail.service.js.map +1 -1
- package/dist/platformUtility/services/es6.service.d.ts +1 -15
- package/dist/platformUtility/services/es6.service.js +3 -31
- package/dist/platformUtility/services/es6.service.js.map +1 -1
- package/dist/platformUtility/services/index.d.ts +1 -0
- package/dist/platformUtility/services/index.js +1 -0
- package/dist/platformUtility/services/index.js.map +1 -1
- package/dist/platformUtility/services/mail.service.d.ts +4 -5
- package/dist/platformUtility/services/mail.service.js +21 -21
- package/dist/platformUtility/services/mail.service.js.map +1 -1
- package/dist/platformUtility/services/maintenance.service.js +1 -1
- package/dist/platformUtility/services/maintenance.service.js.map +1 -1
- package/dist/platformUtility/services/pdf.service.d.ts +9 -4
- package/dist/platformUtility/services/pdf.service.js +32 -11
- package/dist/platformUtility/services/pdf.service.js.map +1 -1
- package/dist/platformUtility/services/queue.service.d.ts +3 -5
- package/dist/platformUtility/services/queue.service.js +8 -7
- package/dist/platformUtility/services/queue.service.js.map +1 -1
- package/dist/platformUtility/services/redis.service.d.ts +4 -2
- package/dist/platformUtility/services/redis.service.js +27 -7
- package/dist/platformUtility/services/redis.service.js.map +1 -1
- package/dist/platformUtility/services/remote.request.service.d.ts +9 -1
- package/dist/platformUtility/services/remote.request.service.js +184 -6
- package/dist/platformUtility/services/remote.request.service.js.map +1 -1
- package/dist/platformUtility/services/s3.service.d.ts +7 -5
- package/dist/platformUtility/services/s3.service.js +25 -18
- package/dist/platformUtility/services/s3.service.js.map +1 -1
- package/dist/platformUtility/services/shutdown.service.d.ts +1 -0
- package/dist/platformUtility/services/shutdown.service.js +26 -4
- package/dist/platformUtility/services/shutdown.service.js.map +1 -1
- package/dist/platformUtility/services/sms.service.d.ts +2 -0
- package/dist/platformUtility/services/sms.service.js +14 -2
- package/dist/platformUtility/services/sms.service.js.map +1 -1
- package/dist/platformUtility/services/split.pdf.service.d.ts +5 -1
- package/dist/platformUtility/services/split.pdf.service.js +44 -4
- package/dist/platformUtility/services/split.pdf.service.js.map +1 -1
- package/dist/platformUtility/services/sql.service.d.ts +7 -1
- package/dist/platformUtility/services/sql.service.js +45 -1
- package/dist/platformUtility/services/sql.service.js.map +1 -1
- package/dist/platformUtility/services/sqs.service.d.ts +13 -5
- package/dist/platformUtility/services/sqs.service.js +43 -27
- package/dist/platformUtility/services/sqs.service.js.map +1 -1
- package/dist/platformUtility/services/startup.service.d.ts +3 -2
- package/dist/platformUtility/services/startup.service.js +6 -2
- package/dist/platformUtility/services/startup.service.js.map +1 -1
- package/dist/platformUtility/services/zip.service.d.ts +6 -1
- package/dist/platformUtility/services/zip.service.js +31 -12
- package/dist/platformUtility/services/zip.service.js.map +1 -1
- package/dist/platformUtility/subscribers/base.subscriber.d.ts +2 -2
- package/dist/platformUtility/subscribers/base.subscriber.js +2 -2
- package/dist/platformUtility/subscribers/base.subscriber.js.map +1 -1
- package/dist/platformUtility/subscribers/dispatcher.subscriber.d.ts +18 -0
- package/dist/platformUtility/subscribers/dispatcher.subscriber.js +89 -0
- package/dist/platformUtility/subscribers/dispatcher.subscriber.js.map +1 -0
- package/dist/platformUtility/subscribers/index.d.ts +1 -1
- package/dist/platformUtility/subscribers/index.js +1 -1
- package/dist/platformUtility/subscribers/index.js.map +1 -1
- package/dist/security/entities/permission.entity.js +1 -1
- package/dist/security/entities/permission.entity.js.map +1 -1
- package/dist/security/entities/role.entity.js +1 -1
- package/dist/security/entities/role.entity.js.map +1 -1
- package/dist/security/entities/user.permission.entity.js +1 -1
- package/dist/security/entities/user.permission.entity.js.map +1 -1
- package/dist/security/entities/user.role.entity.js +1 -1
- package/dist/security/entities/user.role.entity.js.map +1 -1
- package/dist/system/constants/index.d.ts +2 -0
- package/dist/system/constants/index.js +2 -0
- package/dist/system/constants/index.js.map +1 -1
- package/dist/system/constants/ui.action.constants.d.ts +7 -0
- package/dist/system/constants/ui.action.constants.js +11 -0
- package/dist/system/constants/ui.action.constants.js.map +1 -0
- package/dist/system/constants/upload.allow.list.d.ts +4 -0
- package/dist/system/constants/upload.allow.list.js +34 -0
- package/dist/system/constants/upload.allow.list.js.map +1 -0
- package/dist/system/controllers/base.controller.d.ts +1 -0
- package/dist/system/controllers/base.controller.js +21 -2
- package/dist/system/controllers/base.controller.js.map +1 -1
- package/dist/system/controllers/form.controller.js +3 -0
- package/dist/system/controllers/form.controller.js.map +1 -1
- package/dist/system/controllers/preference.controller.js +6 -5
- package/dist/system/controllers/preference.controller.js.map +1 -1
- package/dist/system/controllers/report.controller.js +8 -0
- package/dist/system/controllers/report.controller.js.map +1 -1
- package/dist/system/controllers/upload.controller.js +6 -2
- package/dist/system/controllers/upload.controller.js.map +1 -1
- package/dist/system/dtos/file.upload.spec.dto.d.ts +1 -0
- package/dist/system/dtos/file.upload.spec.dto.js.map +1 -1
- package/dist/system/dtos/index.d.ts +2 -2
- package/dist/system/dtos/index.js +2 -2
- package/dist/system/dtos/index.js.map +1 -1
- package/dist/system/dtos/{event.log.attributes.dto.d.ts → scheduled.event.attributes.dto.d.ts} +1 -1
- package/dist/system/dtos/scheduled.event.attributes.dto.js +8 -0
- package/dist/system/dtos/scheduled.event.attributes.dto.js.map +1 -0
- package/dist/system/dtos/sms.template.attributes.dto.d.ts +4 -0
- package/dist/system/{jobs/event.log.job.js → dtos/sms.template.attributes.dto.js} +13 -19
- package/dist/system/dtos/sms.template.attributes.dto.js.map +1 -0
- package/dist/system/dtos/storage.upload.options.dto.d.ts +1 -0
- package/dist/system/dtos/storage.upload.options.dto.js +5 -0
- package/dist/system/dtos/storage.upload.options.dto.js.map +1 -1
- package/dist/system/entities/business.rule.entity.js +1 -1
- package/dist/system/entities/business.rule.entity.js.map +1 -1
- package/dist/system/entities/business.rule.role.entity.js +1 -1
- package/dist/system/entities/business.rule.role.entity.js.map +1 -1
- package/dist/system/entities/chart.entity.js +1 -1
- package/dist/system/entities/chart.entity.js.map +1 -1
- package/dist/system/entities/client.credential.entity.js +1 -1
- package/dist/system/entities/client.credential.entity.js.map +1 -1
- package/dist/system/entities/client.entity.js +1 -1
- package/dist/system/entities/client.entity.js.map +1 -1
- package/dist/system/entities/client.script.entity.js +1 -1
- package/dist/system/entities/client.script.entity.js.map +1 -1
- package/dist/system/entities/code.fix.log.entity.js +3 -3
- package/dist/system/entities/code.fix.log.entity.js.map +1 -1
- package/dist/system/entities/code.fix.script.entity.js +1 -1
- package/dist/system/entities/code.fix.script.entity.js.map +1 -1
- package/dist/system/entities/column.definition.entity.js +1 -1
- package/dist/system/entities/column.definition.entity.js.map +1 -1
- package/dist/system/entities/column.entity.js +1 -1
- package/dist/system/entities/column.entity.js.map +1 -1
- package/dist/system/entities/comment.entity.d.ts +2 -1
- package/dist/system/entities/comment.entity.js +4 -3
- package/dist/system/entities/comment.entity.js.map +1 -1
- package/dist/system/entities/credential.ip.entity.js +1 -1
- package/dist/system/entities/credential.ip.entity.js.map +1 -1
- package/dist/system/entities/data.log.entity.js +2 -2
- package/dist/system/entities/data.log.entity.js.map +1 -1
- package/dist/system/entities/document.entity.js +1 -1
- package/dist/system/entities/document.entity.js.map +1 -1
- package/dist/system/entities/dynamo.table.entity.js +1 -1
- package/dist/system/entities/dynamo.table.entity.js.map +1 -1
- package/dist/system/entities/email.template.entity.js +1 -1
- package/dist/system/entities/email.template.entity.js.map +1 -1
- package/dist/system/entities/event.detail.entity.js +1 -1
- package/dist/system/entities/event.detail.entity.js.map +1 -1
- package/dist/system/entities/event.queue.entity.js +2 -2
- package/dist/system/entities/event.queue.entity.js.map +1 -1
- package/dist/system/entities/executable.script.entity.js +2 -2
- package/dist/system/entities/executable.script.entity.js.map +1 -1
- package/dist/system/entities/form.column.entity.js +1 -1
- package/dist/system/entities/form.column.entity.js.map +1 -1
- package/dist/system/entities/form.entity.js +1 -1
- package/dist/system/entities/form.entity.js.map +1 -1
- package/dist/system/entities/form.preference.entity.js +2 -2
- package/dist/system/entities/form.preference.entity.js.map +1 -1
- package/dist/system/entities/index.d.ts +0 -2
- package/dist/system/entities/index.js +0 -2
- package/dist/system/entities/index.js.map +1 -1
- package/dist/system/entities/list.preference.entity.js +2 -2
- package/dist/system/entities/list.preference.entity.js.map +1 -1
- package/dist/system/entities/lookup.type.entity.js +1 -1
- package/dist/system/entities/lookup.type.entity.js.map +1 -1
- package/dist/system/entities/lookup.value.entity.js +1 -1
- package/dist/system/entities/lookup.value.entity.js.map +1 -1
- package/dist/system/entities/mail.event.entity.js +1 -1
- package/dist/system/entities/mail.event.entity.js.map +1 -1
- package/dist/system/entities/mail.log.entity.js +2 -2
- package/dist/system/entities/mail.log.entity.js.map +1 -1
- package/dist/system/entities/mail.recipient.entity.js +2 -2
- package/dist/system/entities/mail.recipient.entity.js.map +1 -1
- package/dist/system/entities/mail.validation.entity.js +1 -1
- package/dist/system/entities/mail.validation.entity.js.map +1 -1
- package/dist/system/entities/material.view.entity.js +1 -1
- package/dist/system/entities/material.view.entity.js.map +1 -1
- package/dist/system/entities/menu.entity.js +1 -1
- package/dist/system/entities/menu.entity.js.map +1 -1
- package/dist/system/entities/menu.role.entity.js +1 -1
- package/dist/system/entities/menu.role.entity.js.map +1 -1
- package/dist/system/entities/mobile.validation.entity.js +1 -1
- package/dist/system/entities/mobile.validation.entity.js.map +1 -1
- package/dist/system/entities/model.column.entity.js +1 -1
- package/dist/system/entities/model.column.entity.js.map +1 -1
- package/dist/system/entities/model.entity.js +1 -1
- package/dist/system/entities/model.entity.js.map +1 -1
- package/dist/system/entities/model.relationship.entity.js +1 -1
- package/dist/system/entities/model.relationship.entity.js.map +1 -1
- package/dist/system/entities/model.role.entity.js +1 -1
- package/dist/system/entities/model.role.entity.js.map +1 -1
- package/dist/system/entities/module.entity.js +1 -1
- package/dist/system/entities/module.entity.js.map +1 -1
- package/dist/system/entities/module.menu.entity.js +1 -1
- package/dist/system/entities/module.menu.entity.js.map +1 -1
- package/dist/system/entities/open.property.entity.js +1 -1
- package/dist/system/entities/open.property.entity.js.map +1 -1
- package/dist/system/entities/page.definition.entity.js +1 -1
- package/dist/system/entities/page.definition.entity.js.map +1 -1
- package/dist/system/entities/parent.menu.entity.js +1 -1
- package/dist/system/entities/parent.menu.entity.js.map +1 -1
- package/dist/system/entities/primary.axis.entity.js +1 -1
- package/dist/system/entities/primary.axis.entity.js.map +1 -1
- package/dist/system/entities/property.entity.js +1 -1
- package/dist/system/entities/property.entity.js.map +1 -1
- package/dist/system/entities/recurring.query.entity.js +1 -1
- package/dist/system/entities/recurring.query.entity.js.map +1 -1
- package/dist/system/entities/relationship.entity.js +1 -1
- package/dist/system/entities/relationship.entity.js.map +1 -1
- package/dist/system/entities/report.column.entity.js +1 -1
- package/dist/system/entities/report.column.entity.js.map +1 -1
- package/dist/system/entities/report.entity.js +2 -2
- package/dist/system/entities/report.entity.js.map +1 -1
- package/dist/system/entities/report.filter.entity.js +1 -1
- package/dist/system/entities/report.filter.entity.js.map +1 -1
- package/dist/system/entities/report.param.entity.js +1 -1
- package/dist/system/entities/report.param.entity.js.map +1 -1
- package/dist/system/entities/report.relationship.entity.js +1 -1
- package/dist/system/entities/report.relationship.entity.js.map +1 -1
- package/dist/system/entities/report.role.entity.js +1 -1
- package/dist/system/entities/report.role.entity.js.map +1 -1
- package/dist/system/entities/report.sheet.entity.js +1 -1
- package/dist/system/entities/report.sheet.entity.js.map +1 -1
- package/dist/system/entities/scheduled.event.entity.d.ts +2 -1
- package/dist/system/entities/scheduled.event.entity.js +4 -3
- package/dist/system/entities/scheduled.event.entity.js.map +1 -1
- package/dist/system/entities/secondary.axis.entity.js +1 -1
- package/dist/system/entities/secondary.axis.entity.js.map +1 -1
- package/dist/system/entities/security.rule.entity.js +1 -1
- package/dist/system/entities/security.rule.entity.js.map +1 -1
- package/dist/system/entities/service.entity.js +1 -1
- package/dist/system/entities/service.entity.js.map +1 -1
- package/dist/system/entities/sms.message.entity.js +1 -1
- package/dist/system/entities/sms.message.entity.js.map +1 -1
- package/dist/system/entities/sms.template.entity.d.ts +2 -1
- package/dist/system/entities/sms.template.entity.js +3 -2
- package/dist/system/entities/sms.template.entity.js.map +1 -1
- package/dist/system/entities/system.script.entity.js +1 -1
- package/dist/system/entities/system.script.entity.js.map +1 -1
- package/dist/system/entities/ui.action.entity.js +1 -1
- package/dist/system/entities/ui.action.entity.js.map +1 -1
- package/dist/system/entities/ui.action.permission.entity.js +1 -1
- package/dist/system/entities/ui.action.permission.entity.js.map +1 -1
- package/dist/system/entities/ui.action.role.entity.js +1 -1
- package/dist/system/entities/ui.action.role.entity.js.map +1 -1
- package/dist/system/entities/user.group.entity.js +1 -1
- package/dist/system/entities/user.group.entity.js.map +1 -1
- package/dist/system/entities/user.group.member.entity.js +1 -1
- package/dist/system/entities/user.group.member.entity.js.map +1 -1
- package/dist/system/entities/user.group.permission.entity.js +1 -1
- package/dist/system/entities/user.group.permission.entity.js.map +1 -1
- package/dist/system/entities/user.group.role.entity.js +1 -1
- package/dist/system/entities/user.group.role.entity.js.map +1 -1
- package/dist/system/entities/user.preference.entity.js +2 -2
- package/dist/system/entities/user.preference.entity.js.map +1 -1
- package/dist/system/entities/whatsapp.template.entity.js +1 -1
- package/dist/system/entities/whatsapp.template.entity.js.map +1 -1
- package/dist/system/es6.classes.d.ts +21 -44
- package/dist/system/es6.classes.js +19 -77
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/index.d.ts +0 -3
- package/dist/system/index.js +0 -3
- package/dist/system/index.js.map +1 -1
- package/dist/system/interfaces/crypt.re.encrypt.result.interface.d.ts +11 -0
- package/dist/system/interfaces/crypt.re.encrypt.result.interface.js +3 -0
- package/dist/system/interfaces/crypt.re.encrypt.result.interface.js.map +1 -0
- package/dist/system/interfaces/crypt.re.encrypt.target.interface.d.ts +6 -0
- package/dist/system/interfaces/crypt.re.encrypt.target.interface.js +3 -0
- package/dist/system/interfaces/crypt.re.encrypt.target.interface.js.map +1 -0
- package/dist/system/interfaces/index.d.ts +3 -0
- package/dist/system/interfaces/index.js +3 -0
- package/dist/system/interfaces/index.js.map +1 -1
- package/dist/system/interfaces/polymorphic.source.interface.d.ts +4 -0
- package/dist/system/interfaces/polymorphic.source.interface.js +3 -0
- package/dist/system/interfaces/polymorphic.source.interface.js.map +1 -0
- package/dist/system/jobs/client.credential.job.d.ts +2 -0
- package/dist/system/jobs/client.credential.job.js +7 -0
- package/dist/system/jobs/client.credential.job.js.map +1 -1
- package/dist/system/jobs/client.job.js +3 -0
- package/dist/system/jobs/client.job.js.map +1 -1
- package/dist/system/jobs/code.fix.log.job.js +3 -0
- package/dist/system/jobs/code.fix.log.job.js.map +1 -1
- package/dist/system/jobs/code.fix.script.job.d.ts +4 -0
- package/dist/system/jobs/code.fix.script.job.js +23 -0
- package/dist/system/jobs/code.fix.script.job.js.map +1 -1
- package/dist/system/jobs/column.mapper.job.d.ts +5 -3
- package/dist/system/jobs/column.mapper.job.js +9 -4
- package/dist/system/jobs/column.mapper.job.js.map +1 -1
- package/dist/system/jobs/comment.job.js +2 -0
- package/dist/system/jobs/comment.job.js.map +1 -1
- package/dist/system/jobs/credential.ip.job.js +3 -0
- package/dist/system/jobs/credential.ip.job.js.map +1 -1
- package/dist/system/jobs/data.log.job.js +3 -0
- package/dist/system/jobs/data.log.job.js.map +1 -1
- package/dist/system/jobs/document.job.js +2 -0
- package/dist/system/jobs/document.job.js.map +1 -1
- package/dist/system/jobs/executable.script.job.js +3 -0
- package/dist/system/jobs/executable.script.job.js.map +1 -1
- package/dist/system/jobs/execute.material.view.job.js +8 -1
- package/dist/system/jobs/execute.material.view.job.js.map +1 -1
- package/dist/system/jobs/index.d.ts +1 -3
- package/dist/system/jobs/index.js +1 -3
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/jobs/mail.event.job.js +3 -0
- package/dist/system/jobs/mail.event.job.js.map +1 -1
- package/dist/system/jobs/mail.recipient.job.js +3 -0
- package/dist/system/jobs/mail.recipient.job.js.map +1 -1
- package/dist/system/jobs/mail.validation.job.js +3 -0
- package/dist/system/jobs/mail.validation.job.js.map +1 -1
- package/dist/system/jobs/material.view.job.d.ts +4 -0
- package/dist/system/jobs/material.view.job.js +23 -0
- package/dist/system/jobs/material.view.job.js.map +1 -1
- package/dist/system/jobs/mobile.validation.job.js +3 -0
- package/dist/system/jobs/mobile.validation.job.js.map +1 -1
- package/dist/system/jobs/model.scanner.job.d.ts +1 -1
- package/dist/system/jobs/model.scanner.job.js +3 -2
- package/dist/system/jobs/model.scanner.job.js.map +1 -1
- package/dist/system/jobs/orphan.sweeper.job.d.ts +19 -0
- package/dist/system/jobs/orphan.sweeper.job.js +167 -0
- package/dist/system/jobs/orphan.sweeper.job.js.map +1 -0
- package/dist/system/jobs/property.job.d.ts +3 -0
- package/dist/system/jobs/property.job.js +12 -0
- package/dist/system/jobs/property.job.js.map +1 -1
- package/dist/system/jobs/recurring.query.job.d.ts +4 -0
- package/dist/system/jobs/recurring.query.job.js +23 -0
- package/dist/system/jobs/recurring.query.job.js.map +1 -1
- package/dist/system/jobs/refresh.material.view.job.d.ts +1 -0
- package/dist/system/jobs/refresh.material.view.job.js +25 -8
- package/dist/system/jobs/refresh.material.view.job.js.map +1 -1
- package/dist/system/jobs/refresh.property.cache.job.js +2 -5
- package/dist/system/jobs/refresh.property.cache.job.js.map +1 -1
- package/dist/system/jobs/relationship.mapper.job.d.ts +5 -3
- package/dist/system/jobs/relationship.mapper.job.js +8 -3
- package/dist/system/jobs/relationship.mapper.job.js.map +1 -1
- package/dist/system/jobs/report.column.sync.job.js +11 -8
- package/dist/system/jobs/report.column.sync.job.js.map +1 -1
- package/dist/system/jobs/report.sheet.job.js +3 -0
- package/dist/system/jobs/report.sheet.job.js.map +1 -1
- package/dist/system/jobs/scheduled.event.job.d.ts +4 -0
- package/dist/system/jobs/scheduled.event.job.js +36 -4
- package/dist/system/jobs/scheduled.event.job.js.map +1 -1
- package/dist/system/jobs/set.codefix.script.event.job.js +10 -9
- package/dist/system/jobs/set.codefix.script.event.job.js.map +1 -1
- package/dist/system/jobs/set.event.queue.job.d.ts +1 -0
- package/dist/system/jobs/set.event.queue.job.js +19 -6
- package/dist/system/jobs/set.event.queue.job.js.map +1 -1
- package/dist/system/jobs/set.recurring.query.event.job.js +9 -8
- package/dist/system/jobs/set.recurring.query.event.job.js.map +1 -1
- package/dist/system/jobs/set.scheduled.event.job.js +10 -10
- package/dist/system/jobs/set.scheduled.event.job.js.map +1 -1
- package/dist/system/jobs/sms.message.job.js +3 -0
- package/dist/system/jobs/sms.message.job.js.map +1 -1
- package/dist/system/jobs/sqs.polling.job.d.ts +1 -0
- package/dist/system/jobs/sqs.polling.job.js +42 -4
- package/dist/system/jobs/sqs.polling.job.js.map +1 -1
- package/dist/system/jobs/sync.all.code.job.js +18 -16
- package/dist/system/jobs/sync.all.code.job.js.map +1 -1
- package/dist/system/jobs/user.group.member.job.d.ts +2 -1
- package/dist/system/jobs/user.group.member.job.js +17 -13
- package/dist/system/jobs/user.group.member.job.js.map +1 -1
- package/dist/system/jobs/user.group.permission.job.d.ts +2 -1
- package/dist/system/jobs/user.group.permission.job.js +11 -7
- package/dist/system/jobs/user.group.permission.job.js.map +1 -1
- package/dist/system/jobs/user.group.role.job.d.ts +2 -1
- package/dist/system/jobs/user.group.role.job.js +11 -7
- package/dist/system/jobs/user.group.role.job.js.map +1 -1
- package/dist/system/libraries/business.rule.filter.validator.d.ts +1 -0
- package/dist/system/libraries/business.rule.filter.validator.js +18 -5
- package/dist/system/libraries/business.rule.filter.validator.js.map +1 -1
- package/dist/system/libraries/business.rule.query.evaluator.d.ts +1 -0
- package/dist/system/libraries/business.rule.query.evaluator.js +54 -10
- package/dist/system/libraries/business.rule.query.evaluator.js.map +1 -1
- package/dist/system/libraries/code.evaluator.d.ts +1 -4
- package/dist/system/libraries/code.evaluator.js +16 -25
- package/dist/system/libraries/code.evaluator.js.map +1 -1
- package/dist/system/libraries/common.storage.service.d.ts +1 -0
- package/dist/system/libraries/common.storage.service.js.map +1 -1
- package/dist/system/libraries/crypt.re.encrypt.processor.d.ts +17 -0
- package/dist/system/libraries/crypt.re.encrypt.processor.js +69 -0
- package/dist/system/libraries/crypt.re.encrypt.processor.js.map +1 -0
- package/dist/system/libraries/execute.code.fix.d.ts +1 -3
- package/dist/system/libraries/execute.code.fix.js +22 -27
- package/dist/system/libraries/execute.code.fix.js.map +1 -1
- package/dist/system/libraries/generate.downloadable.report.file.d.ts +1 -0
- package/dist/system/libraries/generate.downloadable.report.file.js +13 -5
- package/dist/system/libraries/generate.downloadable.report.file.js.map +1 -1
- package/dist/system/libraries/get.report.query.js +7 -4
- package/dist/system/libraries/get.report.query.js.map +1 -1
- package/dist/system/libraries/index.d.ts +5 -0
- package/dist/system/libraries/index.js +5 -0
- package/dist/system/libraries/index.js.map +1 -1
- package/dist/system/libraries/material.view.freshness.d.ts +11 -0
- package/dist/system/libraries/material.view.freshness.js +31 -0
- package/dist/system/libraries/material.view.freshness.js.map +1 -0
- package/dist/system/libraries/process.script.execution.d.ts +2 -6
- package/dist/system/libraries/process.script.execution.js +17 -29
- package/dist/system/libraries/process.script.execution.js.map +1 -1
- package/dist/system/libraries/report.batch.paginator.d.ts +29 -0
- package/dist/system/libraries/report.batch.paginator.js +136 -0
- package/dist/system/libraries/report.batch.paginator.js.map +1 -0
- package/dist/system/libraries/sandboxed.script.executor.d.ts +38 -0
- package/dist/system/libraries/sandboxed.script.executor.js +458 -0
- package/dist/system/libraries/sandboxed.script.executor.js.map +1 -0
- package/dist/system/libraries/script.fn.helpers.d.ts +36 -0
- package/dist/system/libraries/script.fn.helpers.js +78 -0
- package/dist/system/libraries/script.fn.helpers.js.map +1 -0
- package/dist/system/libraries/security.rule.evaluator.d.ts +1 -0
- package/dist/system/libraries/security.rule.evaluator.js +18 -5
- package/dist/system/libraries/security.rule.evaluator.js.map +1 -1
- package/dist/system/libraries/sync.dynamo.tables.js +0 -1
- package/dist/system/libraries/sync.dynamo.tables.js.map +1 -1
- package/dist/system/services/aws.s3.service.d.ts +3 -1
- package/dist/system/services/aws.s3.service.js +7 -7
- package/dist/system/services/aws.s3.service.js.map +1 -1
- package/dist/system/services/business.rule.service.d.ts +0 -1
- package/dist/system/services/business.rule.service.js +2 -1
- package/dist/system/services/business.rule.service.js.map +1 -1
- package/dist/system/services/client.credential.service.js +0 -1
- package/dist/system/services/client.credential.service.js.map +1 -1
- package/dist/system/services/comment.service.d.ts +0 -1
- package/dist/system/services/comment.service.js +2 -1
- package/dist/system/services/comment.service.js.map +1 -1
- package/dist/system/services/document.service.d.ts +1 -1
- package/dist/system/services/document.service.js +13 -4
- package/dist/system/services/document.service.js.map +1 -1
- package/dist/system/services/es6.jobs.service.d.ts +3 -7
- package/dist/system/services/es6.jobs.service.js +5 -13
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/dist/system/services/event.queue.service.d.ts +8 -1
- package/dist/system/services/event.queue.service.js +100 -17
- package/dist/system/services/event.queue.service.js.map +1 -1
- package/dist/system/services/executable.script.service.d.ts +1 -7
- package/dist/system/services/executable.script.service.js +2 -35
- package/dist/system/services/executable.script.service.js.map +1 -1
- package/dist/system/services/index.d.ts +0 -1
- package/dist/system/services/index.js +0 -1
- package/dist/system/services/index.js.map +1 -1
- package/dist/system/services/internal.server.connect.service.js +0 -1
- package/dist/system/services/internal.server.connect.service.js.map +1 -1
- package/dist/system/services/menu.service.js +3 -2
- package/dist/system/services/menu.service.js.map +1 -1
- package/dist/system/services/model.service.js +8 -7
- package/dist/system/services/model.service.js.map +1 -1
- package/dist/system/services/property.service.d.ts +0 -1
- package/dist/system/services/property.service.js +28 -14
- package/dist/system/services/property.service.js.map +1 -1
- package/dist/system/services/report.service.js +2 -2
- package/dist/system/services/report.service.js.map +1 -1
- package/dist/system/services/scheduled.event.service.js +7 -2
- package/dist/system/services/scheduled.event.service.js.map +1 -1
- package/dist/system/services/security.rule.service.js +8 -9
- package/dist/system/services/security.rule.service.js.map +1 -1
- package/dist/system/services/storage.service.js +6 -2
- package/dist/system/services/storage.service.js.map +1 -1
- package/dist/system/services/upload.service.d.ts +2 -1
- package/dist/system/services/upload.service.js +60 -6
- package/dist/system/services/upload.service.js.map +1 -1
- package/dist/system/system.module.js +1 -1
- package/dist/system/system.module.js.map +1 -1
- package/dist/worker.js +29 -2
- package/dist/worker.js.map +1 -1
- package/docs/sentry-reporting.md +147 -0
- package/docs/upgrade-3.0-backward-compatibility.md +223 -0
- package/package.json +13 -4
- package/AGENTS.md +0 -189
- package/CLAUDE.md +0 -189
- package/CODEBASE-LINEAR-VALIDATION-2026-06-03.md +0 -104
- package/CODEBASE-REVIEW-2026-06-03.md +0 -102
- package/CODEBASE-REVIEW.md +0 -227
- package/CODEBASE_REFERENCE.md +0 -568
- package/CONTRIBUTING.md +0 -31
- package/dist/auth/services/es6.service.d.ts +0 -12
- package/dist/auth/services/es6.service.js +0 -45
- package/dist/auth/services/es6.service.js.map +0 -1
- package/dist/config/role.mapping.d.ts +0 -6
- package/dist/config/role.mapping.js +0 -8
- package/dist/config/role.mapping.js.map +0 -1
- package/dist/migrations/1580011348975-SysUsersTable.ts.js.map +0 -1
- package/dist/migrations/1580012157523-SysRolesTable.ts.js.map +0 -1
- package/dist/migrations/1580012268960-SysPermissionsTable.ts.js.map +0 -1
- package/dist/migrations/1580012428385-SysPropertiesTable.ts.js.map +0 -1
- package/dist/migrations/1580012617487-SysOpenPropertiesTable.ts.js.map +0 -1
- package/dist/migrations/1580012802170-SysLookupTypesTable.ts.js.map +0 -1
- package/dist/migrations/1580012876576-SysLookupValuesTable.ts.js.map +0 -1
- package/dist/migrations/1580013243446-SysSystemScriptsTable.ts.js.map +0 -1
- package/dist/migrations/1580013426935-SysUserGroupsTable.ts.js.map +0 -1
- package/dist/migrations/1580013438750-SysUserGroupMembersTable.ts.js.map +0 -1
- package/dist/migrations/1580013583515-SysColumnDefinitionsTable.ts.js.map +0 -1
- package/dist/migrations/1580013737722-SysModelDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1580032909794-SysColumnDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1580033076554-SysModelColumnsTable.ts.js.map +0 -1
- package/dist/migrations/1580033241460-SysModelRelationshipsTable.ts.js.map +0 -1
- package/dist/migrations/1580033439057-SysPageDefinitionsTable.ts.js.map +0 -1
- package/dist/migrations/1580033536134-SysModuleDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1580033654069-SysMenuDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1580034121887-SysModuleMenusTable.ts.js.map +0 -1
- package/dist/migrations/1580034434762-SysParentMenusTable.ts.js.map +0 -1
- package/dist/migrations/1580034626349-SysUserPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1580034717318-SysFormDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1580034866284-SysFormColumnsTable.ts.js.map +0 -1
- package/dist/migrations/1580034927543-SysBusinessRulesTable.ts.js.map +0 -1
- package/dist/migrations/1580035169090-SysFormPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1580035241990-SysListPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1580035351803-SysSecurityRulesTable.ts.js.map +0 -1
- package/dist/migrations/1580035532119-SysUiActionsTable.ts.js.map +0 -1
- package/dist/migrations/1580035823624-SysDeviceTokensTable.ts.js.map +0 -1
- package/dist/migrations/1580036042576-SysCountriesTable.ts.js.map +0 -1
- package/dist/migrations/1580036055684-SysRefreshTokensTable.ts.js.map +0 -1
- package/dist/migrations/1580036754269-SysUserRolesTable.ts.js.map +0 -1
- package/dist/migrations/1580036787378-SysMenuRolesTable.ts.js.map +0 -1
- package/dist/migrations/1580036809003-SysModelRolesTable.ts.js.map +0 -1
- package/dist/migrations/1580037052174-SysUiActionRolesTable.ts.js.map +0 -1
- package/dist/migrations/1580037081670-SysUserGroupRolesTable.ts.js.map +0 -1
- package/dist/migrations/1580037119302-SysUserPermissionsTable.ts.js.map +0 -1
- package/dist/migrations/1599034575440-AddTimezoneOffsetSysCountriesTable.ts.js.map +0 -1
- package/dist/migrations/1606282995979-ActiveColumnSysDeviceTokensTable.ts.js.map +0 -1
- package/dist/migrations/1609583413782-SystemGeneratedSysCommentsTable.ts.js.map +0 -1
- package/dist/migrations/1610226459497-AddIndexOnTokenSysDeviceTokensTable.ts.js.map +0 -1
- package/dist/migrations/1615622117306-DeleteValueColumnSysUserPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1615622742904-AddValueJsonColumnSysUserPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.ts.js.map +0 -1
- package/dist/migrations/1616255314846-RenameRouteColumnSysMenuDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1616257589431-RenameRouteColumnSysModelDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1616329406291-AddIncludesColumnSysMenuDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1616738455290-AddNameColumnSysReportParamsTable.ts.js.map +0 -1
- package/dist/migrations/1616749370769-AddSourceColumnsSysRelationshipDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1616750113885-CreateTableSysModelRelationshipsTable.ts.js.map +0 -1
- package/dist/migrations/1617433544860-AddRouteColumnIncludesSysReportDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1619555997151-AddSourceColumnsSysUserRolesTable.ts.js.map +0 -1
- package/dist/migrations/1619556025823-AddSourceColumnsSysUserPermissionsTable.ts.js.map +0 -1
- package/dist/migrations/1633602353156-AddWhatsAppNumberSysCountriesTable.ts.js.map +0 -1
- package/dist/migrations/1645886071349-AddSubjectSysEmailTemplatesTable.ts.js.map +0 -1
- package/dist/migrations/1652332064735-AddOrdinalPositionSysColumnDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1662188562840-AddAttemptsSysUsersTable.ts.js.map +0 -1
- package/dist/migrations/1675176639864-AddReportFilterTableSysReportFiltersTable.ts.js.map +0 -1
- package/dist/migrations/1675876187420-AddIsEncryptedSysPropertiesTable.ts.js.map +0 -1
- package/dist/migrations/1679473705431-RemoveModelSysRelationshipDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1684649589572-AddTypeSysCommentsTable.ts.js.map +0 -1
- package/dist/migrations/1692726438006-AddColumnTypeSysReportFiltersTable.ts.js.map +0 -1
- package/dist/migrations/1698026335959-AddActiveSysSmsTemplatesTable.ts.js.map +0 -1
- package/dist/migrations/1700393526749-AddBodySysMailLogsTable.ts.js.map +0 -1
- package/dist/migrations/1700401846961-RemoveToColumnSysMailLogsTable.ts.js.map +0 -1
- package/dist/migrations/1732962774052-AddJsonDataSysScheduledEventsTable.ts.js.map +0 -1
- package/dist/migrations/1732962856845-AddJsonPayloadSysEventQueuesTable.ts.js.map +0 -1
- package/dist/migrations/1735153438257-AddTimingSysCodefixScriptsTable.ts.js.map +0 -1
- package/dist/migrations/1735154396259-AddQuerySysRecurringQueriesTable.ts.js.map +0 -1
- package/dist/migrations/1735882485286-AddLastRunTimeSysCodefixScriptsTable.ts.js.map +0 -1
- package/dist/migrations/1735882522813-AddLastRunTimeSysRecurringQueriesTable.ts.js.map +0 -1
- package/dist/migrations/1739166543991-AddJobIdentifierSysPendingBullJobsTable.ts.js.map +0 -1
- package/dist/migrations/1739166586058-AddJobIdentifierSysFailedBullJobsTable.ts.js.map +0 -1
- package/dist/migrations/1742242110370-AddIsDownloadableSysReportDetailsTable.ts.js.map +0 -1
- package/dist/migrations/1762178107733-AddDataSysEventLogsTable.ts.js.map +0 -1
- package/dist/migrations/1770625065996-AddIdentifierSysDocumentsTable.ts.js.map +0 -1
- package/dist/migrations/1773949393819-AddFileHashSysDocumentsTable.ts.js.map +0 -1
- package/dist/platformUtility/subscribers/remote.request.log.subscriber.d.ts +0 -10
- package/dist/platformUtility/subscribers/remote.request.log.subscriber.js +0 -34
- package/dist/platformUtility/subscribers/remote.request.log.subscriber.js.map +0 -1
- package/dist/system/dtos/event.log.attributes.dto.js +0 -8
- package/dist/system/dtos/event.log.attributes.dto.js.map +0 -1
- package/dist/system/dtos/system.log.attributes.dto.d.ts +0 -3
- package/dist/system/dtos/system.log.attributes.dto.js +0 -8
- package/dist/system/dtos/system.log.attributes.dto.js.map +0 -1
- package/dist/system/entities/event.log.entity.d.ts +0 -11
- package/dist/system/entities/event.log.entity.js +0 -50
- package/dist/system/entities/event.log.entity.js.map +0 -1
- package/dist/system/entities/system.log.entity.d.ts +0 -10
- package/dist/system/entities/system.log.entity.js.map +0 -1
- package/dist/system/interceptors/index.d.ts +0 -1
- package/dist/system/interceptors/index.js.map +0 -1
- package/dist/system/interceptors/sentry.interceptor.js +0 -66
- package/dist/system/interceptors/sentry.interceptor.js.map +0 -1
- package/dist/system/jobs/event.log.job.d.ts +0 -9
- package/dist/system/jobs/event.log.job.js.map +0 -1
- package/dist/system/jobs/system.log.job.d.ts +0 -9
- package/dist/system/jobs/system.log.job.js +0 -30
- package/dist/system/jobs/system.log.job.js.map +0 -1
- package/dist/system/jobs/test.mongo.job.d.ts +0 -9
- package/dist/system/jobs/test.mongo.job.js +0 -30
- package/dist/system/jobs/test.mongo.job.js.map +0 -1
- package/dist/system/mentities/index.d.ts +0 -1
- package/dist/system/mentities/index.js.map +0 -1
- package/dist/system/mentities/test.mentity.d.ts +0 -7
- package/dist/system/mentities/test.mentity.js +0 -37
- package/dist/system/mentities/test.mentity.js.map +0 -1
- package/dist/system/services/es6.service.d.ts +0 -18
- package/dist/system/services/es6.service.js +0 -57
- package/dist/system/services/es6.service.js.map +0 -1
- package/dist/system/services/logger.service.d.ts +0 -30
- package/dist/system/services/logger.service.js +0 -141
- package/dist/system/services/logger.service.js.map +0 -1
- package/dist/system/subscribers/client.credential.subscriber.d.ts +0 -11
- package/dist/system/subscribers/client.credential.subscriber.js +0 -38
- package/dist/system/subscribers/client.credential.subscriber.js.map +0 -1
- package/dist/system/subscribers/client.subscriber.d.ts +0 -10
- package/dist/system/subscribers/client.subscriber.js +0 -34
- package/dist/system/subscribers/client.subscriber.js.map +0 -1
- package/dist/system/subscribers/code.fix.log.subscriber.d.ts +0 -10
- package/dist/system/subscribers/code.fix.log.subscriber.js +0 -34
- package/dist/system/subscribers/code.fix.log.subscriber.js.map +0 -1
- package/dist/system/subscribers/code.fix.script.subscriber.d.ts +0 -13
- package/dist/system/subscribers/code.fix.script.subscriber.js +0 -56
- package/dist/system/subscribers/code.fix.script.subscriber.js.map +0 -1
- package/dist/system/subscribers/column.subscriber.d.ts +0 -10
- package/dist/system/subscribers/column.subscriber.js +0 -34
- package/dist/system/subscribers/column.subscriber.js.map +0 -1
- package/dist/system/subscribers/comment.subscriber.d.ts +0 -10
- package/dist/system/subscribers/comment.subscriber.js +0 -34
- package/dist/system/subscribers/comment.subscriber.js.map +0 -1
- package/dist/system/subscribers/credential.ip.subscriber.d.ts +0 -10
- package/dist/system/subscribers/credential.ip.subscriber.js +0 -34
- package/dist/system/subscribers/credential.ip.subscriber.js.map +0 -1
- package/dist/system/subscribers/data.log.subscriber.d.ts +0 -10
- package/dist/system/subscribers/data.log.subscriber.js +0 -34
- package/dist/system/subscribers/data.log.subscriber.js.map +0 -1
- package/dist/system/subscribers/document.subscriber.d.ts +0 -10
- package/dist/system/subscribers/document.subscriber.js +0 -34
- package/dist/system/subscribers/document.subscriber.js.map +0 -1
- package/dist/system/subscribers/event.log.subscriber.d.ts +0 -10
- package/dist/system/subscribers/event.log.subscriber.js +0 -34
- package/dist/system/subscribers/event.log.subscriber.js.map +0 -1
- package/dist/system/subscribers/executable.script.subscriber.d.ts +0 -10
- package/dist/system/subscribers/executable.script.subscriber.js +0 -34
- package/dist/system/subscribers/executable.script.subscriber.js.map +0 -1
- package/dist/system/subscribers/index.d.ts +0 -27
- package/dist/system/subscribers/index.js +0 -44
- package/dist/system/subscribers/index.js.map +0 -1
- package/dist/system/subscribers/mail.event.subscriber.d.ts +0 -10
- package/dist/system/subscribers/mail.event.subscriber.js +0 -34
- package/dist/system/subscribers/mail.event.subscriber.js.map +0 -1
- package/dist/system/subscribers/mail.recipient.subscriber.d.ts +0 -10
- package/dist/system/subscribers/mail.recipient.subscriber.js +0 -34
- package/dist/system/subscribers/mail.recipient.subscriber.js.map +0 -1
- package/dist/system/subscribers/mail.validation.subscriber.d.ts +0 -10
- package/dist/system/subscribers/mail.validation.subscriber.js +0 -34
- package/dist/system/subscribers/mail.validation.subscriber.js.map +0 -1
- package/dist/system/subscribers/material.view.subscriber.d.ts +0 -13
- package/dist/system/subscribers/material.view.subscriber.js +0 -56
- package/dist/system/subscribers/material.view.subscriber.js.map +0 -1
- package/dist/system/subscribers/mobile.validation.subscriber.d.ts +0 -10
- package/dist/system/subscribers/mobile.validation.subscriber.js +0 -34
- package/dist/system/subscribers/mobile.validation.subscriber.js.map +0 -1
- package/dist/system/subscribers/property.subscriber.d.ts +0 -12
- package/dist/system/subscribers/property.subscriber.js +0 -43
- package/dist/system/subscribers/property.subscriber.js.map +0 -1
- package/dist/system/subscribers/recurring.query.subscriber.d.ts +0 -13
- package/dist/system/subscribers/recurring.query.subscriber.js +0 -56
- package/dist/system/subscribers/recurring.query.subscriber.js.map +0 -1
- package/dist/system/subscribers/relationship.subscriber.d.ts +0 -10
- package/dist/system/subscribers/relationship.subscriber.js +0 -34
- package/dist/system/subscribers/relationship.subscriber.js.map +0 -1
- package/dist/system/subscribers/report.sheet.subscriber.d.ts +0 -10
- package/dist/system/subscribers/report.sheet.subscriber.js +0 -34
- package/dist/system/subscribers/report.sheet.subscriber.js.map +0 -1
- package/dist/system/subscribers/scheduled.event.subscriber.d.ts +0 -13
- package/dist/system/subscribers/scheduled.event.subscriber.js +0 -56
- package/dist/system/subscribers/scheduled.event.subscriber.js.map +0 -1
- package/dist/system/subscribers/sms.message.subscriber.d.ts +0 -10
- package/dist/system/subscribers/sms.message.subscriber.js +0 -34
- package/dist/system/subscribers/sms.message.subscriber.js.map +0 -1
- package/dist/system/subscribers/system.log.subscriber.d.ts +0 -10
- package/dist/system/subscribers/system.log.subscriber.js +0 -34
- package/dist/system/subscribers/system.log.subscriber.js.map +0 -1
- package/dist/system/subscribers/test.mongo.subscriber.d.ts +0 -6
- package/dist/system/subscribers/test.mongo.subscriber.js +0 -26
- package/dist/system/subscribers/test.mongo.subscriber.js.map +0 -1
- package/dist/system/subscribers/user.group.member.subscriber.d.ts +0 -10
- package/dist/system/subscribers/user.group.member.subscriber.js +0 -34
- package/dist/system/subscribers/user.group.member.subscriber.js.map +0 -1
- package/dist/system/subscribers/user.group.permission.subscriber.d.ts +0 -10
- package/dist/system/subscribers/user.group.permission.subscriber.js +0 -34
- package/dist/system/subscribers/user.group.permission.subscriber.js.map +0 -1
- package/dist/system/subscribers/user.group.role.subscriber.d.ts +0 -10
- package/dist/system/subscribers/user.group.role.subscriber.js +0 -34
- package/dist/system/subscribers/user.group.role.subscriber.js.map +0 -1
- /package/dist/migrations/{1580011348975-SysUsersTable.ts.d.ts → 1580011348975-SysUsersTable.d.ts} +0 -0
- /package/dist/migrations/{1580012157523-SysRolesTable.ts.d.ts → 1580012157523-SysRolesTable.d.ts} +0 -0
- /package/dist/migrations/{1580012268960-SysPermissionsTable.ts.d.ts → 1580012268960-SysPermissionsTable.d.ts} +0 -0
- /package/dist/migrations/{1580012428385-SysPropertiesTable.ts.d.ts → 1580012428385-SysPropertiesTable.d.ts} +0 -0
- /package/dist/migrations/{1580012617487-SysOpenPropertiesTable.ts.d.ts → 1580012617487-SysOpenPropertiesTable.d.ts} +0 -0
- /package/dist/migrations/{1580012802170-SysLookupTypesTable.ts.d.ts → 1580012802170-SysLookupTypesTable.d.ts} +0 -0
- /package/dist/migrations/{1580012876576-SysLookupValuesTable.ts.d.ts → 1580012876576-SysLookupValuesTable.d.ts} +0 -0
- /package/dist/migrations/{1580013243446-SysSystemScriptsTable.ts.d.ts → 1580013243446-SysSystemScriptsTable.d.ts} +0 -0
- /package/dist/migrations/{1580013426935-SysUserGroupsTable.ts.d.ts → 1580013426935-SysUserGroupsTable.d.ts} +0 -0
- /package/dist/migrations/{1580013438750-SysUserGroupMembersTable.ts.d.ts → 1580013438750-SysUserGroupMembersTable.d.ts} +0 -0
- /package/dist/migrations/{1580013583515-SysColumnDefinitionsTable.ts.d.ts → 1580013583515-SysColumnDefinitionsTable.d.ts} +0 -0
- /package/dist/migrations/{1580013737722-SysModelDetailsTable.ts.d.ts → 1580013737722-SysModelDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1580032909794-SysColumnDetailsTable.ts.d.ts → 1580032909794-SysColumnDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1580033076554-SysModelColumnsTable.ts.d.ts → 1580033076554-SysModelColumnsTable.d.ts} +0 -0
- /package/dist/migrations/{1580033241460-SysModelRelationshipsTable.ts.d.ts → 1580033241460-SysModelRelationshipsTable.d.ts} +0 -0
- /package/dist/migrations/{1580033439057-SysPageDefinitionsTable.ts.d.ts → 1580033439057-SysPageDefinitionsTable.d.ts} +0 -0
- /package/dist/migrations/{1580033536134-SysModuleDetailsTable.ts.d.ts → 1580033536134-SysModuleDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1580033654069-SysMenuDetailsTable.ts.d.ts → 1580033654069-SysMenuDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1580034121887-SysModuleMenusTable.ts.d.ts → 1580034121887-SysModuleMenusTable.d.ts} +0 -0
- /package/dist/migrations/{1580034434762-SysParentMenusTable.ts.d.ts → 1580034434762-SysParentMenusTable.d.ts} +0 -0
- /package/dist/migrations/{1580034626349-SysUserPreferencesTable.ts.d.ts → 1580034626349-SysUserPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1580034717318-SysFormDetailsTable.ts.d.ts → 1580034717318-SysFormDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1580034866284-SysFormColumnsTable.ts.d.ts → 1580034866284-SysFormColumnsTable.d.ts} +0 -0
- /package/dist/migrations/{1580034927543-SysBusinessRulesTable.ts.d.ts → 1580034927543-SysBusinessRulesTable.d.ts} +0 -0
- /package/dist/migrations/{1580035169090-SysFormPreferencesTable.ts.d.ts → 1580035169090-SysFormPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1580035241990-SysListPreferencesTable.ts.d.ts → 1580035241990-SysListPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1580035351803-SysSecurityRulesTable.ts.d.ts → 1580035351803-SysSecurityRulesTable.d.ts} +0 -0
- /package/dist/migrations/{1580035532119-SysUiActionsTable.ts.d.ts → 1580035532119-SysUiActionsTable.d.ts} +0 -0
- /package/dist/migrations/{1580035823624-SysDeviceTokensTable.ts.d.ts → 1580035823624-SysDeviceTokensTable.d.ts} +0 -0
- /package/dist/migrations/{1580036042576-SysCountriesTable.ts.d.ts → 1580036042576-SysCountriesTable.d.ts} +0 -0
- /package/dist/migrations/{1580036055684-SysRefreshTokensTable.ts.d.ts → 1580036055684-SysRefreshTokensTable.d.ts} +0 -0
- /package/dist/migrations/{1580036754269-SysUserRolesTable.ts.d.ts → 1580036754269-SysUserRolesTable.d.ts} +0 -0
- /package/dist/migrations/{1580036787378-SysMenuRolesTable.ts.d.ts → 1580036787378-SysMenuRolesTable.d.ts} +0 -0
- /package/dist/migrations/{1580036809003-SysModelRolesTable.ts.d.ts → 1580036809003-SysModelRolesTable.d.ts} +0 -0
- /package/dist/migrations/{1580037052174-SysUiActionRolesTable.ts.d.ts → 1580037052174-SysUiActionRolesTable.d.ts} +0 -0
- /package/dist/migrations/{1580037081670-SysUserGroupRolesTable.ts.d.ts → 1580037081670-SysUserGroupRolesTable.d.ts} +0 -0
- /package/dist/migrations/{1580037119302-SysUserPermissionsTable.ts.d.ts → 1580037119302-SysUserPermissionsTable.d.ts} +0 -0
- /package/dist/migrations/{1599034575440-AddTimezoneOffsetSysCountriesTable.ts.d.ts → 1599034575440-AddTimezoneOffsetSysCountriesTable.d.ts} +0 -0
- /package/dist/migrations/{1606282995979-ActiveColumnSysDeviceTokensTable.ts.d.ts → 1606282995979-ActiveColumnSysDeviceTokensTable.d.ts} +0 -0
- /package/dist/migrations/{1609583413782-SystemGeneratedSysCommentsTable.ts.d.ts → 1609583413782-SystemGeneratedSysCommentsTable.d.ts} +0 -0
- /package/dist/migrations/{1610226459497-AddIndexOnTokenSysDeviceTokensTable.ts.d.ts → 1610226459497-AddIndexOnTokenSysDeviceTokensTable.d.ts} +0 -0
- /package/dist/migrations/{1615622117306-DeleteValueColumnSysUserPreferencesTable.ts.d.ts → 1615622117306-DeleteValueColumnSysUserPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1615622742904-AddValueJsonColumnSysUserPreferencesTable.ts.d.ts → 1615622742904-AddValueJsonColumnSysUserPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.ts.d.ts → 1615661067542-RemoveColumnDefinitionColumnSysListPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.ts.d.ts → 1615661131556-AddColumnDefinitionJsonColumnSysListPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.ts.d.ts → 1615743889725-RemoveColumnDefinitionColumnSysFormPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.ts.d.ts → 1615743931363-AddColumnDefinitionColumnSysFormPreferencesTable.d.ts} +0 -0
- /package/dist/migrations/{1616255314846-RenameRouteColumnSysMenuDetailsTable.ts.d.ts → 1616255314846-RenameRouteColumnSysMenuDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1616257589431-RenameRouteColumnSysModelDetailsTable.ts.d.ts → 1616257589431-RenameRouteColumnSysModelDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1616329406291-AddIncludesColumnSysMenuDetailsTable.ts.d.ts → 1616329406291-AddIncludesColumnSysMenuDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1616738455290-AddNameColumnSysReportParamsTable.ts.d.ts → 1616738455290-AddNameColumnSysReportParamsTable.d.ts} +0 -0
- /package/dist/migrations/{1616749370769-AddSourceColumnsSysRelationshipDetailsTable.ts.d.ts → 1616749370769-AddSourceColumnsSysRelationshipDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1616750113885-CreateTableSysModelRelationshipsTable.ts.d.ts → 1616750113885-CreateTableSysModelRelationshipsTable.d.ts} +0 -0
- /package/dist/migrations/{1617433544860-AddRouteColumnIncludesSysReportDetailsTable.ts.d.ts → 1617433544860-AddRouteColumnIncludesSysReportDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.ts.d.ts → 1619186436996-AddRouteIdentifierColumnSysModelDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1619555997151-AddSourceColumnsSysUserRolesTable.ts.d.ts → 1619555997151-AddSourceColumnsSysUserRolesTable.d.ts} +0 -0
- /package/dist/migrations/{1619556025823-AddSourceColumnsSysUserPermissionsTable.ts.d.ts → 1619556025823-AddSourceColumnsSysUserPermissionsTable.d.ts} +0 -0
- /package/dist/migrations/{1633602353156-AddWhatsAppNumberSysCountriesTable.ts.d.ts → 1633602353156-AddWhatsAppNumberSysCountriesTable.d.ts} +0 -0
- /package/dist/migrations/{1645886071349-AddSubjectSysEmailTemplatesTable.ts.d.ts → 1645886071349-AddSubjectSysEmailTemplatesTable.d.ts} +0 -0
- /package/dist/migrations/{1652332064735-AddOrdinalPositionSysColumnDetailsTable.ts.d.ts → 1652332064735-AddOrdinalPositionSysColumnDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1662188562840-AddAttemptsSysUsersTable.ts.d.ts → 1662188562840-AddAttemptsSysUsersTable.d.ts} +0 -0
- /package/dist/migrations/{1675176639864-AddReportFilterTableSysReportFiltersTable.ts.d.ts → 1675176639864-AddReportFilterTableSysReportFiltersTable.d.ts} +0 -0
- /package/dist/migrations/{1675876187420-AddIsEncryptedSysPropertiesTable.ts.d.ts → 1675876187420-AddIsEncryptedSysPropertiesTable.d.ts} +0 -0
- /package/dist/migrations/{1679473705431-RemoveModelSysRelationshipDetailsTable.ts.d.ts → 1679473705431-RemoveModelSysRelationshipDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1684649589572-AddTypeSysCommentsTable.ts.d.ts → 1684649589572-AddTypeSysCommentsTable.d.ts} +0 -0
- /package/dist/migrations/{1692726438006-AddColumnTypeSysReportFiltersTable.ts.d.ts → 1692726438006-AddColumnTypeSysReportFiltersTable.d.ts} +0 -0
- /package/dist/migrations/{1698026335959-AddActiveSysSmsTemplatesTable.ts.d.ts → 1698026335959-AddActiveSysSmsTemplatesTable.d.ts} +0 -0
- /package/dist/migrations/{1700393526749-AddBodySysMailLogsTable.ts.d.ts → 1700393526749-AddBodySysMailLogsTable.d.ts} +0 -0
- /package/dist/migrations/{1700401846961-RemoveToColumnSysMailLogsTable.ts.d.ts → 1700401846961-RemoveToColumnSysMailLogsTable.d.ts} +0 -0
- /package/dist/migrations/{1732962774052-AddJsonDataSysScheduledEventsTable.ts.d.ts → 1732962774052-AddJsonDataSysScheduledEventsTable.d.ts} +0 -0
- /package/dist/migrations/{1732962856845-AddJsonPayloadSysEventQueuesTable.ts.d.ts → 1732962856845-AddJsonPayloadSysEventQueuesTable.d.ts} +0 -0
- /package/dist/migrations/{1735153438257-AddTimingSysCodefixScriptsTable.ts.d.ts → 1735153438257-AddTimingSysCodefixScriptsTable.d.ts} +0 -0
- /package/dist/migrations/{1735154396259-AddQuerySysRecurringQueriesTable.ts.d.ts → 1735154396259-AddQuerySysRecurringQueriesTable.d.ts} +0 -0
- /package/dist/migrations/{1735882485286-AddLastRunTimeSysCodefixScriptsTable.ts.d.ts → 1735882485286-AddLastRunTimeSysCodefixScriptsTable.d.ts} +0 -0
- /package/dist/migrations/{1735882522813-AddLastRunTimeSysRecurringQueriesTable.ts.d.ts → 1735882522813-AddLastRunTimeSysRecurringQueriesTable.d.ts} +0 -0
- /package/dist/migrations/{1739166543991-AddJobIdentifierSysPendingBullJobsTable.ts.d.ts → 1739166543991-AddJobIdentifierSysPendingBullJobsTable.d.ts} +0 -0
- /package/dist/migrations/{1739166586058-AddJobIdentifierSysFailedBullJobsTable.ts.d.ts → 1739166586058-AddJobIdentifierSysFailedBullJobsTable.d.ts} +0 -0
- /package/dist/migrations/{1742242110370-AddIsDownloadableSysReportDetailsTable.ts.d.ts → 1742242110370-AddIsDownloadableSysReportDetailsTable.d.ts} +0 -0
- /package/dist/migrations/{1762178107733-AddDataSysEventLogsTable.ts.d.ts → 1762178107733-AddDataSysEventLogsTable.d.ts} +0 -0
- /package/dist/migrations/{1770625065996-AddIdentifierSysDocumentsTable.ts.d.ts → 1770625065996-AddIdentifierSysDocumentsTable.d.ts} +0 -0
- /package/dist/migrations/{1773949393819-AddFileHashSysDocumentsTable.ts.d.ts → 1773949393819-AddFileHashSysDocumentsTable.d.ts} +0 -0
package/CODEBASE_REFERENCE.md
DELETED
|
@@ -1,568 +0,0 @@
|
|
|
1
|
-
# CODEBASE_REFERENCE.md
|
|
2
|
-
|
|
3
|
-
**Single-source reference for `@servicelabsco/nestjs-utility-services`. Read this before scanning the repo.**
|
|
4
|
-
|
|
5
|
-
This file catalogs every service, controller, entity, DTO, job, subscriber, library, middleware, exception, config, and env var with its path. If you need to know what's in this codebase, read this. If a section is wrong or stale because of changes you just made, update it here as part of the change.
|
|
6
|
-
|
|
7
|
-
For higher-level architecture and conventions, see `CLAUDE.md`.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## Repo orientation
|
|
12
|
-
|
|
13
|
-
- **Type**: Publishable npm library (`main: dist/index.js`); also runnable as standalone NestJS app (`main.ts`) and worker (`worker.ts`).
|
|
14
|
-
- **Public API barrel** (`dist/index.js`): re-exports `auth`, `common`, `platformUtility`, `security`, `system`, `worker.service`.
|
|
15
|
-
- **DI registration**: every module folder has `es6.classes.ts` aggregating its classes — register here or DI ignores them. The `slnu syncClassess` step in `commit.sh` regenerates these.
|
|
16
|
-
- **Three TypeORM connections**: `default` (postgres write), `read` (postgres read replica), `mongodb`. Entity globs include `node_modules/@servicelabsco/**` so sibling packages contribute entities and migrations.
|
|
17
|
-
- **Filename suffix rules**: `*.entity.ts` (postgres), `*.mentity.ts` (mongo), `*.subscriber.ts` (postgres), `*.mongo.subscriber.ts` (mongo), `*.spec.ts` (jest), `*.dto.ts` (DTO), `*.job.ts` (BullMQ job).
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Top-level `src/` files
|
|
22
|
-
|
|
23
|
-
- `src/main.ts` — HTTP entrypoint. Bootstraps `AppModule`, sets up `express.json()`, `httpContext.middleware`, `helmet`, CORS (`cors.config`), `rateLimit` (`rate.limiter.config`), `compression`, `trust proxy=1`. Optional graceful shutdown via `SERVER_COOL_DOWN_PERIOD`. Optional Sentry init via `SENTRY_DSN` + global `SentryInterceptor`. Global `ValidationPipe({ whitelist: true, transform: true })`. Listens on `SERVER_PORT` or 4000.
|
|
24
|
-
- `src/worker.ts` — Worker entrypoint. Same `AppModule`, no `listen()`, just `init()` + `enableShutdownHooks()`. Requires `BULL_QUEUE_WORKER=true` for `JobConsumer` to register.
|
|
25
|
-
- `src/worker.service.ts` — `WorkerService` (OnModuleInit). Calls `MaintenanceService.disableQueueIfRequired()` before processing starts.
|
|
26
|
-
- `src/app.module.ts` — Root module. Imports `TypeOrmModule.forRoot` x3 (write+read+mongo), `BullModule.forRoot(queueConfig)`, `ConfigModule.forRoot({ isGlobal: true })`, `TerminusModule`, and the five module folders. Registers controllers `AppController`, `AdminAuthController`, `MenuController`, `HealthCheckController`. Middleware chain: `Maintenance → JWT → BasicAuth` for all routes; `Restricted` for `api/*`; `Internal` for `internal/*`.
|
|
27
|
-
- `src/app.controller.ts` — `AppController`. Routes: `GET /` (hello), `GET api/auth` (current user), `GET api/test` (current user), `GET un-set` (placeholder), `GET queue` (queue data), `GET queue/:id` (job details), `POST sets` (zip-service test). Constructor injects most platform services for ad-hoc testing.
|
|
28
|
-
- `src/app.service.ts` — `AppService` placeholder.
|
|
29
|
-
- `src/health.check.controller.ts` — `HealthCheckController` at `/health`. Routes: `GET /health` (full check: pg-master + pg-read + redis + filesystem), `GET /health/detailed` (full + nodeVersion/platform/uptime), `GET /health/quick` (master + redis + fs only), `GET /health/runtime-check` (validates `cron-parser v5` next-fire + `CacheService` set/get/delete round-trip). Uses `tmpDir = process.env.TMP_DIR || '/tmp'`. The runtime-check is what `yarn runtime-check` curls.
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## `src/config/`
|
|
34
|
-
|
|
35
|
-
| File | Purpose | Env vars |
|
|
36
|
-
|---|---|---|
|
|
37
|
-
| `cors.config.ts` | CORS for `app.enableCors()`: methods POST/GET/PUT/PATCH/DELETE/HEAD, `credentials: true`, `maxAge: 3600`, `origin: true` | — |
|
|
38
|
-
| `entity.constants.ts` | Maps `<EntityName> → EntityClass` for all entities across auth/security/system/platformUtility (used by `PlatformUtility.setEntities`) | — |
|
|
39
|
-
| `jwt.config.ts` | `JwtModule.register(jwtConfig)`: `secret`, `signOptions.expiresIn` | `JWT_SECRET`, `JWT_EXPIRY` |
|
|
40
|
-
| `mongo.config.ts` | TypeORM mongo connection (`name: 'mongodb'`); entities `*.mentity.{ts,js}`, subscribers `*.mongo.subscriber.{ts,js}`; `synchronize: false`, logging on | `MONGO_URL`, `MONGO_DATABASE` |
|
|
41
|
-
| `orm.config.ts` | DataSource for typeorm-cli (used by `yarn m:*` commands). Same shape as `typeorm.config.ts` | `PG_DB_HOST`, `PG_DB_PORT`, `PG_DB_USERNAME`, `PG_DB_PASSWORD`, `PG_DB_DATABASE`, `PG_DB_LOGGING` |
|
|
42
|
-
| `platform.constants.ts` | Default-export `{ queue, entities, jobs, services, mails, whoColumns }`. **`whoColumns = ['id','created_at','updated_at','deleted_at','created_by','updated_by']`** — used by class mapper to strip audit cols | `BULL_QUEUE_NAME` |
|
|
43
|
-
| `queue.config.ts` | `BullModule.forRoot()` connection URL | `REDIS_HOST`, `REDIS_PORT`, `REDIS_USERNAME`, `REDIS_PASSWORD` |
|
|
44
|
-
| `rate.limiter.config.ts` | `express-rate-limit` window+max | `THROTTLE_WINDOW` (default 60000), `THROTTLE_RATE` (default 10000) |
|
|
45
|
-
| `read.typeorm.config.ts` | TypeORM read replica (`name: 'read'`); pg type parsers for bigint/decimal | `PG_DB_READ_HOST`, `PG_DB_PORT`, `PG_DB_USERNAME`, `PG_DB_PASSWORD`, `PG_DB_DATABASE`, `PG_DB_LOGGING` |
|
|
46
|
-
| `redis.config.ts` | Redis URL for `RedisModule.forRoot` (used by `PlatformUtilityModule`) | `REDIS_HOST`, `REDIS_PORT`, `REDIS_USERNAME`, `REDIS_PASSWORD` |
|
|
47
|
-
| `role.mapping.ts` | `{ super_admin: 1, public: 2, internal: 3 }`. **User id `2` is logged in by `InternalMiddleware`.** | — |
|
|
48
|
-
| `sentry.config.ts` | `Sentry.init` config: `dsn`, `includeLocalVariables: true`, `attachStacktrace: true` | `SENTRY_DSN` |
|
|
49
|
-
| `source.hash.ts` | Map of `<sourceName> → md5 hash` (e.g. `scheduledEvent: 'c2b08dc02f...'`). Used by source-type lookups | — |
|
|
50
|
-
| `typeorm.config.ts` | TypeORM postgres write (`name: 'default'`); SnakeNamingStrategy; `migrationsTableName: 'sys_migrations'`; entity glob includes `node_modules/@servicelabsco/**`; pg type parsers cast bigint→int and decimal→float | `PG_DB_HOST`, `PG_DB_PORT`, `PG_DB_USERNAME`, `PG_DB_PASSWORD`, `PG_DB_DATABASE`, `PG_DB_LOGGING` |
|
|
51
|
-
|
|
52
|
-
### All env vars referenced in `src/`
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
APP_KEY AUDIT_DISABLED BULL_LOG_DISABLE BULL_MAX_METRIC_POINTS_WEEKS
|
|
56
|
-
BULL_QUEUE_COMPLETE_LIMIT BULL_QUEUE_FAILURE_LIMIT BULL_QUEUE_NAME
|
|
57
|
-
BULL_QUEUE_WORKER ENABLE_SQL_LOG JWT_EXPIRY JWT_SECRET
|
|
58
|
-
MONGO_DATABASE MONGO_URL NOTIFICATION_DISABLED PG_DB_DATABASE
|
|
59
|
-
PG_DB_HOST PG_DB_LOGGING PG_DB_PASSWORD PG_DB_PORT PG_DB_READ_HOST
|
|
60
|
-
PG_DB_USERNAME REDIS_HOST REDIS_PASSWORD REDIS_PORT REDIS_PREFIX
|
|
61
|
-
REDIS_SLUG REDIS_USERNAME SENTRY_DSN SERVER_COOL_DOWN_PERIOD
|
|
62
|
-
SERVER_ENV SERVER_PORT SHOW_CONSOLE_LOGS STORAGE_ENGINE
|
|
63
|
-
THROTTLE_RATE THROTTLE_WINDOW TMP_DIR
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
`SERVER_COOL_DOWN_PERIOD` (truthy) toggles `enableShutdownHooks`. `BULL_QUEUE_WORKER=true` registers consumers. `SHOW_CONSOLE_LOGS` (comma-separated levels: `log,info,warn,error,debug`) gates `CustomLogger`. `STORAGE_ENGINE` selects `s3` vs `r2` in `UploadService`.
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## `src/auth/`
|
|
71
|
-
|
|
72
|
-
### Services (`src/auth/services/`)
|
|
73
|
-
|
|
74
|
-
| File | Class | Key methods |
|
|
75
|
-
|---|---|---|
|
|
76
|
-
| `auth.service.ts` | `AuthService` | `getUserLoginInfo`, `getUserInfo`, `getUserObject`, `generateAuthJwtToken`, `signJwtToken`, `verifyJwtToken` |
|
|
77
|
-
| `user.service.ts` | `UserService` | `findUserByEmail`, `createUser`, `validateUser`, `findOrCreate`, `setRolesCache` |
|
|
78
|
-
| `access.service.ts` | `AccessService` | `getUser`, `validateRoleId`, `validateRoleIdentifier`, `hasRoleId`, `hasRoleIds`, `hasRoleIdentifiers`, `hasRoleAssignments`, `hasPermissionAssignments` |
|
|
79
|
-
| `refresh.token.service.ts` | `RefreshTokenService` | `setRefreshToken`, `generateRefreshToken` |
|
|
80
|
-
| `device.token.service.ts` | `DeviceTokenService` | `setDeviceToken`, `attachUserDevice`, `getDeviceIdentifier` |
|
|
81
|
-
| `social.service.ts` | `SocialService` | `fbLogin`, `googleLogin` |
|
|
82
|
-
| `es6.service.ts` | `Es6Service` | `alignServices`, `setServices` (registry locator by hash) |
|
|
83
|
-
| `es6.jobs.service.ts` | `Es6JobsService` | `alignJobs`, `setJobs` (registry locator by hash) |
|
|
84
|
-
|
|
85
|
-
### Controllers (`src/auth/controllers/`)
|
|
86
|
-
|
|
87
|
-
| File | Class | Routes |
|
|
88
|
-
|---|---|---|
|
|
89
|
-
| `admin.auth.controller.ts` | `AdminAuthController` | `GET /user-auth`, `POST /user-auth/login`, `POST /user-auth/verify-token`, `POST /user-auth/refresh-token`, `POST /user-auth/attach-device`, `POST /user-auth/set-device-token` |
|
|
90
|
-
| `user.controller.ts` | `UserController` | `POST /user` |
|
|
91
|
-
| `social.controller.ts` | `SocialController` | `POST /social/fb`, `POST /social/google` |
|
|
92
|
-
|
|
93
|
-
### Middlewares (`src/auth/middlewares/`)
|
|
94
|
-
|
|
95
|
-
| File | Class | What it does |
|
|
96
|
-
|---|---|---|
|
|
97
|
-
| `jwt.middleware.ts` | `JwtMiddleware` | Parses `Authorization: Bearer <token>`, decodes, sets `Auth.login()`. Skips if already logged in or no token |
|
|
98
|
-
| `basic.auth.middleware.ts` | `BasicAuthMiddleware` | HTTP Basic; validates against `SERVER_PASSWORD` |
|
|
99
|
-
| `restricted.middleware.ts` | `RestrictedMiddleware` | Throws `NoLoggedUserException` if `Auth.check()` is false. Mounted on `api/*` |
|
|
100
|
-
| `internal.middleware.ts` | `InternalMiddleware` | Reads `x-internal-token` header, compares to `internal.server.key` property, calls `Auth.login(getUserObject(2))` (id 2 = `public` role from `role.mapping.ts`). Mounted on `internal/*` |
|
|
101
|
-
| `client.connect.middleware.ts` | `ClientConnectMiddleware` | Validates `X-Client-ID`/`X-Client-Secret` via `ClientCredentialService.validate` |
|
|
102
|
-
|
|
103
|
-
### Entities (`src/auth/entities/`)
|
|
104
|
-
|
|
105
|
-
| File | Entity | Table |
|
|
106
|
-
|---|---|---|
|
|
107
|
-
| `user.entity.ts` | `UserEntity` | `sys_users` (name, email, password, mobile, dialing_code, attempts, image_url, mobile_verified_at, roles, permissions) |
|
|
108
|
-
| `creator.entity.ts` | `CreatorEntity` | `sys_users` (audit lookup mirror) |
|
|
109
|
-
| `refresh.token.entity.ts` | `RefreshTokenEntity` | `sys_refresh_tokens` |
|
|
110
|
-
| `device.token.entity.ts` | `DeviceTokenEntity` | `sys_device_tokens` |
|
|
111
|
-
| `country.entity.ts` | `CountryEntity` | `sys_countries` |
|
|
112
|
-
| `session.identifier.entity.ts` | `SessionIdentifierEntity` | `sys_session_identifiers` |
|
|
113
|
-
| `user.referral.entity.ts` | `UserReferralEntity` | `sys_user_referrals` |
|
|
114
|
-
|
|
115
|
-
### DTOs (`src/auth/dtos/`)
|
|
116
|
-
|
|
117
|
-
`create.user.dto.ts`, `offline.user.dto.ts`, `update.user.dto.ts`, `user.access.dto.ts` (current user shape with roles/permissions/access_token/refresh_token), `user.login.dto.ts`, `user.roles.access.object.dto.ts`, `permission.assignment.dto.ts`, `role.assignment.dto.ts`, `session.identifier.attributes.dto.ts`.
|
|
118
|
-
|
|
119
|
-
### Jobs / Subscribers
|
|
120
|
-
|
|
121
|
-
- `src/auth/jobs/session.identifier.job.ts` — `SessionIdentifierJob` extends `CommonJob`. Handles SessionIdentifier insert/update.
|
|
122
|
-
- `src/auth/subscribers/session.identifier.subscriber.ts` — `SessionIdentifierSubscriber` listens to `SessionIdentifierEntity` events, dispatches to `SessionIdentifierJob`.
|
|
123
|
-
|
|
124
|
-
### Module file
|
|
125
|
-
|
|
126
|
-
- `src/auth/auth.module.ts` — Imports `TypeOrmModule.forFeature(es6Classes.entities)`, `JwtModule.register(jwtConfig)`, `forwardRef(() => PlatformUtilityModule)`. Provides+exports services and jobs (no controllers — those are mounted via `app.module.ts`).
|
|
127
|
-
- `src/auth/es6.classes.ts` — Aggregates all auth classes for DI registration.
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## `src/common/`
|
|
132
|
-
|
|
133
|
-
The module is empty (`@Module({})`); its exports are pure helpers and base classes consumed throughout the codebase and by sibling packages.
|
|
134
|
-
|
|
135
|
-
### Libraries (`src/common/libraries/`)
|
|
136
|
-
|
|
137
|
-
| File | Class | Purpose / key methods |
|
|
138
|
-
|---|---|---|
|
|
139
|
-
| `auth.ts` | `Auth` | Static-only request user accessor over `express-http-context2`. `Auth.user()` → `UserAccessDto`, `Auth.check()`, `Auth.id()`, `Auth.login(user)` |
|
|
140
|
-
| `common.entity.ts` | `CommonEntity` | Postgres base. Adds id/uuid/created_at/updated_at/deleted_at/created_by/updated_by + `firstOrNew`, `firstOrCreate`, `first`, `softDelete`, `destroy` (static). All postgres entities extend this |
|
|
141
|
-
| `common.mongo.entity.ts` | `CommonMongoEntity` | Mongo equivalent of `CommonEntity` with same static API |
|
|
142
|
-
| `common.service.ts` | `CommonService` | Base for services; `protected publicExposed = false` |
|
|
143
|
-
| `common.subscriber.ts` | `CommonSubscriber<T>` | Generic base subscriber with `afterInsert`/`afterUpdate`/`afterRemove` that dispatch to an `entityJob` (BullMQ). All subscribers extend this |
|
|
144
|
-
| `common.job.ts` | `CommonJob` | Base BullMQ job: `dispatch(data?)`, `delayedDispatch(data, ms)`, `handle(data)` |
|
|
145
|
-
| `common.consumer.ts` | `CommonConsumer` | Base BullMQ consumer (used by `JobConsumer`) |
|
|
146
|
-
| `common.mapper.job.ts` | `CommonMapperJob` | Mapping job pattern: `handle`, `addMapping`, `removeMapping` |
|
|
147
|
-
| `base.job.interface.ts` | (interface) | Two-method contract for jobs |
|
|
148
|
-
| `base.migration.utility.ts` | `BaseMigrationUtility` | Migration DSL: `primary()`, `uuid()`, `boolean()`, `string()`, `bigString()`, `text()`, `float()`, `column()`, `number()`, `bigNumber()`, `renameColumn()`, `foreign()`, `dropForeign()`. Subclassed by `MigrationUtility` |
|
|
149
|
-
| `migration.utility.ts` | `MigrationUtility` | Wraps `BaseMigrationUtility` to flip up/down on `reverseMigration` flag |
|
|
150
|
-
| `reverse.migration.utility.ts` | `ReverseMigrationUtility` | Migration that runs in reverse direction by default |
|
|
151
|
-
| `seeder.utility.ts` | `SeederUtility` | Seeder migration with `addRecord()` |
|
|
152
|
-
| `class.mapper.ts` | `ClassMapper` | Static plain-object/dto helpers: `extract`, `extractNumber`, `removeWhoColumns`, `removeArrayWhoColumns`, `getUniqueEntities`, `castToDto` |
|
|
153
|
-
| `custom.crypt.ts` | `CustomCrypt` | AES via `crypto`. `encrypt(data)`, `decrypt(cipherText)` |
|
|
154
|
-
| `custom.logger.ts` | `CustomLogger` | Console wrapper gated by `SHOW_CONSOLE_LOGS`. Static `log/info/warn/error/debug` |
|
|
155
|
-
| `data.manager.ts` | `DataManager` | Generic single-record fetch/build pipeline: `handle`, `setBaseModelObjects`, `setBase`, `setReadDictionary`, `setQueryRestrictions`, `setupColumnJoins`, `setRequestCache`, `loadFromCache`, `checkForCache` |
|
|
156
|
-
| `database.event.evaluator.ts` | `DatabaseEventEvaluator<Entity>` | extends `EntityEvaluator`. Evaluates DB event payloads against rules |
|
|
157
|
-
| `entity.evaluator.ts` | `EntityEvaluator` | Base entity evaluator; column null/undefined checks |
|
|
158
|
-
| `date.util.ts` | `DateUtil` | `getDateTime`, `getDateTimeInFormat`, `getDateInFormat`, `getMonthInFormat`, `getFutureDateTime(min)`, `getPastDateTime(min)`, `getMonday`, `getDateFromDateString`, `getDateFromDatetimeString`, `now`, `getTimezoneDate`, `getUtcDate`, `addMonths`, `subMonths`, `subDays` |
|
|
159
|
-
| `generic.index.parser.ts` | `GenericIndexParser` | Parses raw query → `GenericIndexParamDto` (filters/sort/pagination) |
|
|
160
|
-
| `generic.show.parser.ts` | `GenericShowParser` | Parses raw query for show endpoints |
|
|
161
|
-
| `hash.ts` | `Hash` | `hash(str)` (bcrypt), `compare(str, hash)`, `hashMD5`, `generateSalt`, `easyHash` (xxhash-wasm async) |
|
|
162
|
-
| `json.evaluator.ts` | `JsonEvaluator` | Evaluates `JsonConditionSettingsDto` against reference data |
|
|
163
|
-
| `list.manager.ts` | `ListManager` | List endpoint pipeline: `process`, `handleRequest`, `listData`, `aggregationData`, `processIncludes`, `getAggregationData`, `loadListData` |
|
|
164
|
-
| `record.manager.ts` | `RecordManager` | Single-record build pipeline: `process(id)`, `segregateIncludes` |
|
|
165
|
-
| `report.body.parser.ts` | `ReportBodyParser` | Parses raw report body → `ReportBodyDto` |
|
|
166
|
-
| `report.data.manager.ts` | `ReportDataManager` | Report-specific equivalent of `DataManager` |
|
|
167
|
-
| `report.list.manager.ts` | `ReportListManager` | Report-specific equivalent of `ListManager` |
|
|
168
|
-
| `platform.utility.ts` | `PlatformUtility` | `getConstantInstance`, `ucwords`, `generateRandomNumber/Alpha/AlphaNumeric/Base32/Chars`, `getEntity(hash)`, `setEntity`, `setEntities`, `initObject(data)`, `getService(hash)`, `setService`, `setServices`, `getJob(hash)`, `getIpFromRequest`, `isValidUrl` |
|
|
169
|
-
|
|
170
|
-
### Exceptions (`src/common/exceptions/`)
|
|
171
|
-
|
|
172
|
-
All extend `HttpException`. Throw these instead of raw `Error`/`HttpException`.
|
|
173
|
-
|
|
174
|
-
| Class | HTTP status | Default message / shape |
|
|
175
|
-
|---|---|---|
|
|
176
|
-
| `OperationException` | 401 | `string \| any`; falls back to `'Invalid Operation'`. Generic operation failure |
|
|
177
|
-
| `AccessException` | 403 | `'You donot have access for this operation'` |
|
|
178
|
-
| `FormException` | 403 | `{ column, err }` → wraps as `{ columns: { [column]: err } }` |
|
|
179
|
-
| `MaintenanceException` | 410 | `'System is down for maintenance'` |
|
|
180
|
-
| `NoLoggedUserException` | 401 | `'No logged user record'` |
|
|
181
|
-
| `SubscriptionException` | 409 | `'No active Subscription!'` |
|
|
182
|
-
|
|
183
|
-
### DTOs (`src/common/dtos/`)
|
|
184
|
-
|
|
185
|
-
`aggregation.param.dto.ts`, `capture.record.index.dto.ts`, `capture.record.show.dto.ts`, `database.event.dto.ts`, `foreign.migration.dto.ts`, `generic.index.param.dto.ts`, `generic.show.param.dto.ts`, `group.param.dto.ts`, `index.column.dto.ts`, `index.params.dto.ts`, `json.condition.settings.dto.ts`, `json.field.condition.dto.ts`, `json.field.rule.dto.ts`, `key.value.param.dto.ts`, `layout.column.db.dto.ts`, `meta.data.dto.ts`, `record.data.manager.dto.ts`, `record.tab.dto.ts`, `rename.column.dto.ts`, `report.body.dto.ts`, `report.data.manager.dto.ts`.
|
|
186
|
-
|
|
187
|
-
### Adapters
|
|
188
|
-
|
|
189
|
-
- `src/common/adapters/redis.io.adapter.ts` — `RedisIoAdapter` extends `IoAdapter`. Wires socket.io to `@socket.io/redis-adapter` for multi-instance pub/sub.
|
|
190
|
-
|
|
191
|
-
### Module file
|
|
192
|
-
|
|
193
|
-
- `src/common/common.module.ts` — `@Module({})` (empty; exports are direct imports).
|
|
194
|
-
- `src/common/es6.classes.ts` — Aggregator (adapters/dtos/exceptions/libraries) but unused by `CommonModule` itself; provided for downstream consumption.
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## `src/security/`
|
|
199
|
-
|
|
200
|
-
Tiny module that registers role/permission entities for TypeORM `forFeature`. No services, controllers, or jobs.
|
|
201
|
-
|
|
202
|
-
### Entities (`src/security/entities/`)
|
|
203
|
-
|
|
204
|
-
| File | Entity | Table |
|
|
205
|
-
|---|---|---|
|
|
206
|
-
| `role.entity.ts` | `RoleEntity` | `sys_roles` |
|
|
207
|
-
| `permission.entity.ts` | `PermissionEntity` | `sys_permissions` |
|
|
208
|
-
| `user.role.entity.ts` | `UserRoleEntity` | `sys_user_roles` |
|
|
209
|
-
| `user.permission.entity.ts` | `UserPermissionEntity` | `sys_user_permissions` |
|
|
210
|
-
|
|
211
|
-
### Module file
|
|
212
|
-
|
|
213
|
-
- `src/security/security.module.ts` — `imports: [TypeOrmModule.forFeature(es6Classes.entities)]`. Nothing else.
|
|
214
|
-
- `src/security/es6.classes.ts` — Aggregates the four entities.
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## `src/platformUtility/`
|
|
219
|
-
|
|
220
|
-
Infrastructure-adjacent module: queue, AWS, Redis, mail, sms, FCM, HTTP, file storage, audit, maintenance.
|
|
221
|
-
|
|
222
|
-
Module-specific behavior: `platform.utility.module.ts` reads `BULL_QUEUE_WORKER`; if not `'true'`, sets `es6Classes.consumers = []` so the worker `JobConsumer` does NOT register on API instances. Imports `RedisModule.forRoot({ type: 'single', ...redisConfig })`, `BullModule.registerQueue({ name: BULL_QUEUE_NAME })`, `forwardRef(() => AuthModule)`, `forwardRef(() => SystemModule)`.
|
|
223
|
-
|
|
224
|
-
### Services (`src/platformUtility/services/`)
|
|
225
|
-
|
|
226
|
-
| File | Class | Key methods |
|
|
227
|
-
|---|---|---|
|
|
228
|
-
| `queue.service.ts` | `QueueService` | `addJob`, `getCompletedJobs`, `getFailedJobs`, `getStats`, `getWorkers`, `pauseQueue`, `resumeQueue`, `getJobDetails`, `data` (queue instance) |
|
|
229
|
-
| `mail.service.ts` | `MailService` | `send` (single-gateway), `processMail`, `getBody` (handlebars), `setRecipients`. Multi-gateway via SMTP/SES libraries below |
|
|
230
|
-
| `sms.service.ts` | `SmsService` | `sendWithoutMessage`, `setAndSendMessage`, `sendMessage`, `handleTestEnvironment`. Uses Kaleyra |
|
|
231
|
-
| `cache.service.ts` | `CacheService` | `set`, `get`, `delete`, `remember(key, ttl, fn)`, `forget`. Redis-backed |
|
|
232
|
-
| `redis.service.ts` | `RedisService` | `lpush`, `lrange`, `del`, `get`, `set`, `hset`, `hget`, `sadd`, `smembers`, `exists`, `expire` |
|
|
233
|
-
| `s3.service.ts` | `S3Service` | `uploadFile`, `uploadContent`, `getFile`, `deleteFile`, `getSignedUrl` |
|
|
234
|
-
| `sqs.service.ts` | `SqsService` | `sendMessage`, `sendMessageBatch`, `receiveMessage`, `deleteMessage` |
|
|
235
|
-
| `dynamo.service.ts` | `DynamoService` | `createTable`, `describeTable`, `getItem`, `setItem`, `queryItems`, `listTables` |
|
|
236
|
-
| `audit.service.ts` | `AuditService` | `setAuditRecord`, `getAuditHistory`, `getAuditTable` (DynamoDB-backed, gated by `AUDIT_DISABLED`) |
|
|
237
|
-
| `fcm.notification.service.ts` | `FcmNotificationService` | `sendNotification`, `sendNotificationToDevices`, `deactivateInactiveDevices`. Gated by `NOTIFICATION_DISABLED` |
|
|
238
|
-
| `sql.service.ts` | `SqlService` | `sql(...)` (write connection), `read(...)` (read replica). Gated logging by `ENABLE_SQL_LOG` |
|
|
239
|
-
| `remote.request.service.ts` | `RemoteRequestService` | `sendThroughAxios`, `getRawResponse`, `getProxyResponse`, `saveLog` |
|
|
240
|
-
| `maintenance.service.ts` | `MaintenanceService` | `isInMaintenance`, `putOnMaintenance`, `removeFromMaintenance`, `setRuntimeLock`, `disableQueueIfRequired` |
|
|
241
|
-
| `zip.service.ts` | `ZipService` | `zip(files)`, `unzip`, `getZipToken`, `getUnzipToken`. Lambda-backed |
|
|
242
|
-
| `startup.service.ts` | `StartupService` | `onModuleInit`, `checkForWorkerQueue` |
|
|
243
|
-
| `shutdown.service.ts` | `ShutdownService` | `onModuleDestroy`, `closeAllRunningQueues` |
|
|
244
|
-
| `local.property.service.ts` | `LocalPropertyService` | In-memory store: `set`, `get`, `setEntities`, `setServices`, `setJobs` |
|
|
245
|
-
| `aws.config.service.ts` | `AwsConfigService` | `getConfig`, `validateConfig` |
|
|
246
|
-
| `aws.secret.service.ts` | `AwsSecretService` | `getSecret`, `getSecretValue`, `cacheSecret` |
|
|
247
|
-
| `ses.mail.notification.service.ts` | `SesMailNotificationService` | `getNotificationPayload`, `processSesDeliveryData`, `processSesBouncedData`, `processSesBounceData` |
|
|
248
|
-
|
|
249
|
-
### Controllers (`src/platformUtility/controllers/`)
|
|
250
|
-
|
|
251
|
-
| File | Class | Routes |
|
|
252
|
-
|---|---|---|
|
|
253
|
-
| `bull.job.controller.ts` | `BullJobController` | `GET /api/admin/bull-job/completed`, `GET /api/admin/bull-job/failed`, `GET /api/admin/bull-job/waiting`, `GET /api/admin/bull-job/delayed`, `DELETE /api/admin/bull-job/:id` |
|
|
254
|
-
| `queue.controller.ts` | `QueueController` | `GET /api/admin/queue` (stats), `GET /api/admin/queue/workers` |
|
|
255
|
-
|
|
256
|
-
### Consumer
|
|
257
|
-
|
|
258
|
-
- `src/platformUtility/consumers/job.consumer.ts` — `JobConsumer` (BullMQ). Generic processor for all job types; failure tracking, draining logic, metrics. **Only registered when `BULL_QUEUE_WORKER=true`**.
|
|
259
|
-
|
|
260
|
-
### Middlewares
|
|
261
|
-
|
|
262
|
-
- `src/platformUtility/middlewares/maintenance.middleware.ts` — `MaintenanceMiddleware`. Throws `MaintenanceException` if system in maintenance mode (checked via `MaintenanceService`).
|
|
263
|
-
- `src/platformUtility/middlewares/trim.pipe.ts` — `TrimPipe` validation pipe. Trims whitespace from request body strings (excludes `password` field).
|
|
264
|
-
|
|
265
|
-
### Entities
|
|
266
|
-
|
|
267
|
-
| File | Entity | Table |
|
|
268
|
-
|---|---|---|
|
|
269
|
-
| `failed.bull.job.entity.ts` | `FailedBullJobEntity` | `sys_failed_bull_jobs` |
|
|
270
|
-
| `pending.bull.job.entity.ts` | `PendingBullJobEntity` | `sys_pending_bull_jobs` |
|
|
271
|
-
| `remote.request.log.entity.ts` | `RemoteRequestLogEntity` | `utl_remote_request_logs` |
|
|
272
|
-
|
|
273
|
-
### Jobs
|
|
274
|
-
|
|
275
|
-
| File | Class | Purpose |
|
|
276
|
-
|---|---|---|
|
|
277
|
-
| `test.job.ts` | `TestJob` | Dummy queue test |
|
|
278
|
-
| `remote.request.log.job.ts` | `RemoteRequestLogJob` | Persist remote request log on insert/update |
|
|
279
|
-
| `reload.pending.bull.job.ts` | `ReloadPendingBullJob` | Reprocess pending jobs in batches of 500 |
|
|
280
|
-
| `load.failed.bull.job.ts` | `LoadFailedBullJob` | Requeue failed jobs from DB |
|
|
281
|
-
| `process.ses.delivery.webhook.job.ts` | `ProcessSesDeliveryWebhookJob` | Handle SES Delivery/Bounce/Complaint notifications |
|
|
282
|
-
| `process.tracking.webhook.job.ts` | `ProcessTrackingWebhookJob` | Email open/click tracking events |
|
|
283
|
-
| `record.watcher.job.ts` | `RecordWatcherJob` | **Hub for all DB change events** — triggers audit logging + observers |
|
|
284
|
-
|
|
285
|
-
### Subscribers
|
|
286
|
-
|
|
287
|
-
- `src/platformUtility/subscribers/base.subscriber.ts` — `BaseSubscriber`. Listens to all entities; injects `created_at`/`updated_at`/`created_by`/`updated_by`; dispatches `RecordWatcherJob` for audit + observers.
|
|
288
|
-
- `src/platformUtility/subscribers/remote.request.log.subscriber.ts` — Listens to `RemoteRequestLogEntity` insert; dispatches `RemoteRequestLogJob`.
|
|
289
|
-
|
|
290
|
-
### Libraries (`src/platformUtility/libraries/`)
|
|
291
|
-
|
|
292
|
-
| File | Class | Purpose |
|
|
293
|
-
|---|---|---|
|
|
294
|
-
| `file.system.utility.ts` | `FileSystemUtility` | FS scanning: `getModules`, `getAllDirectories`, `getAllFiles`, `getClassName`, `isPackage` |
|
|
295
|
-
| `process.common.mail.ts` | `ProcessCommonMail` | Shared mail send pipeline |
|
|
296
|
-
| `process.common.ses.mail.ts` | `ProcessCommonSesMail` | SES mail processing |
|
|
297
|
-
| `process.common.smtp.mail.ts` | `ProcessCommonSmtpMail` | SMTP mail processing |
|
|
298
|
-
| `process.ses.mail.ts` | `ProcessSesMail` | SES `SendEmailCommand` send |
|
|
299
|
-
| `process.ses.raw.mail.ts` | `ProcessSesRawMail` | SES `SendRawEmailCommand` (with attachments) |
|
|
300
|
-
| `process.smtp.mail.ts` | `ProcessSmtpMail` | Nodemailer SMTP send |
|
|
301
|
-
| `process.kaleyra.sms.ts` | `ProcessKaleyraSms` | Kaleyra SMS API send |
|
|
302
|
-
| `process.kaleyra.callback.response.ts` | `ProcessKaleyraCallbackResponse` | Kaleyra webhook parser |
|
|
303
|
-
| `set.sms.message.ts` | `SetSmsMessage` | SMS entity creation/validation |
|
|
304
|
-
| `process.audit.log.data.ts` | `ProcessAuditLogData` | DynamoDB audit record formatter |
|
|
305
|
-
| `common.sqs.polling.ts` | `CommonSqsPolling` | SQS polling base loop with maintenance checks |
|
|
306
|
-
| `create.es6.classes.file.ts` | `CreateEs6ClassesFile` | Generates module `es6.classes.ts` files |
|
|
307
|
-
| `create.es6.service.file.ts` | `CreateEs6ServiceFile` | Generates service registry file |
|
|
308
|
-
| `create.es6.jobs.file.ts` | `CreateEs6JobsFile` | Generates job registry file |
|
|
309
|
-
| `create.entity.constants.file.ts` | `CreateEntityConstantsFile` | Generates entity constants mappings |
|
|
310
|
-
| `create.index.file.ts` | `CreateIndexFile` | Generates barrel `index.ts` files |
|
|
311
|
-
|
|
312
|
-
### DTOs (`src/platformUtility/dtos/`)
|
|
313
|
-
|
|
314
|
-
`aws.config.dto.ts`, `common.attributes.dto.ts`, `failed.bull.job.attributes.dto.ts`, `pending.bull.job.attributes.dto.ts`, `fcm.response.dto.ts`, `job.payload.dto.ts`, `kaleyra.callback.payload.dto.ts`, `lambda.zip.dto.ts`, `mail.options.dto.ts` (to/cc/bcc/subject/html/text/attachments/gateway/track_pairs), `push.notification.response.dto.ts`, `push.notification.template.dto.ts`, `queue.options.dto.ts` (delay/priority/attempts/backoff/removeOnComplete), `remote.raw.response.dto.ts`, `remote.request.config.dto.ts`, `remote.request.log.attributes.dto.ts`, `set.sms.payload.dto.ts`, `sms.payload.dto.ts`, `smtp.config.dto.ts`, `source.column.dto.ts`, `string.search.dto.ts`.
|
|
315
|
-
|
|
316
|
-
---
|
|
317
|
-
|
|
318
|
-
## `src/system/`
|
|
319
|
-
|
|
320
|
-
The largest module: ~70 entities for menus, roles, models, columns, relationships, properties, lookups, forms, reports, charts, scripts, scheduled events, mail/sms/whatsapp templates, document storage. Imports `forwardRef(() => AuthModule)`, `forwardRef(() => PlatformUtilityModule)`, `TypeOrmModule.forFeature(es6Classes.entities)`. Provides+exports services and jobs; controllers from this module are mounted via the controllers array.
|
|
321
|
-
|
|
322
|
-
### Services (`src/system/services/`)
|
|
323
|
-
|
|
324
|
-
| File | Class | Key methods |
|
|
325
|
-
|---|---|---|
|
|
326
|
-
| `aws.s3.service.ts` | `AwsS3Service` | `getBucket`, `getS3BucketKeyFromUrl`, `upload`. **Different from `platformUtility/s3.service.ts`** — this is the upload-engine impl chosen by `UploadService` |
|
|
327
|
-
| `cloudflare.r2.service.ts` | `CloudflareR2Service` | Same shape as AwsS3Service for R2 |
|
|
328
|
-
| `base.service.ts` | `BaseService` | `checkOrSetRecord(hash)`, `getServiceInstance(identifier)`, `getEntityInstance(identifier)` |
|
|
329
|
-
| `business.rule.service.ts` | `BusinessRuleService` | `getQueryRestrictions(modelId, action)`, `validateRoleCheck(role)`. Restricts list queries based on rules |
|
|
330
|
-
| `client.credential.service.ts` | `ClientCredentialService` | `validate(payload)` (client_id/secret + IP allowlist), `setCredentialCache(key)` |
|
|
331
|
-
| `client.script.service.ts` | `ClientScriptService` | `getClientScripts(identifier)` |
|
|
332
|
-
| `column.service.ts` | `ColumnService` | `getModelColumns(id)` |
|
|
333
|
-
| `comment.service.ts` | `CommentService` | `getComments(query)`, `setComment(body)` (handles attachments) |
|
|
334
|
-
| `document.service.ts` | `DocumentService` | `getDocuments(query)`, `setDocument(source)`, `setDocuments(source)` |
|
|
335
|
-
| `event.detail.service.ts` | `EventDetailService` | `checkOrSetRecord(identifier)` |
|
|
336
|
-
| `event.queue.service.ts` | `EventQueueService` | `getActiveEvents`, `setEvent(identifier)`, `trigger(event)`, `triggerById(id)` |
|
|
337
|
-
| `executable.script.service.ts` | `ExecutableScriptService` | `execute(data)` — runs stored scripts via `ProcessScriptExecution` |
|
|
338
|
-
| `form.service.ts` | `FormService` | `getDictionary(form)` |
|
|
339
|
-
| `internal.server.connect.service.ts` | `InternalServerConnectService` | `post(type, ...)`, `get(type, ...)`. Handles outbound calls to other internal servers using `internal.server.key` and credential expiry |
|
|
340
|
-
| `list.service.ts` | `ListService` | `index(param)`, `show(id)`, `getLayoutDefinition(layoutId)`, `getBaseFromModel(model)` |
|
|
341
|
-
| `logger.service.ts` | `LoggerService` | `set(message)`, `log`, `info`, `warn`, `error`. Persists to `SystemLogEntity` (writes via `SystemLogJob`) |
|
|
342
|
-
| `mail.validation.service.ts` | `MailValidationService` | `generate(email)` (OTP), `validate(payload)` |
|
|
343
|
-
| `mobile.validation.service.ts` | `MobileValidationService` | `generate(mobile)`, `validate(payload)` |
|
|
344
|
-
| `menu.service.ts` | `MenuService` | `getMenus`, `getMenuDetails(id)` |
|
|
345
|
-
| `model.service.ts` | `ModelService` | `getUiActions(model)`, `validateHashAccess(hash)`, `validateModelAccess(model, action)`, `getModelFromHash` |
|
|
346
|
-
| `preference.service.ts` | `PreferenceService` | `getMenuListPreferences`, `getTabListPreferences`, `getTabFormPreferences`, `getListPreferences`, `getFormPreferences`, `getModelFormPreferences` |
|
|
347
|
-
| `property.service.ts` | `PropertyService` | `get(key, default?)`, `getFromDb(key, default?)`. Handles encryption via `CustomCrypt` and caching. **Use this to read `internal.server.key` and other system properties** |
|
|
348
|
-
| `report.service.ts` | `ReportService` | `hasAccess(id)`, `getReportDetails(id)` |
|
|
349
|
-
| `scheduled.event.service.ts` | `ScheduledEventService` | `getActiveEventsSummary(source)`, `deleteActiveEvents(source)`, `getSchedules(source)` (cron-parser based; respects `inQueueCount`/`maxCount`) |
|
|
350
|
-
| `security.rule.service.ts` | `SecurityRuleService` | `getModelSecurityRules(model)`, `getFormSecurityRules(form)`, `getSecurityObjectNotation(identifier)`, `getScript(id)`, `getSecurityRules(id)` |
|
|
351
|
-
| `ui.action.service.ts` | `UiActionService` | `getUiActions(source_type)`, role/permission gate via `accessService.hasRoleAssignments`/`hasPermissionAssignments` |
|
|
352
|
-
| `upload.service.ts` | `UploadService` | `upload(file, options)`, `uploadWithStats`, `uploadFile(param)`, `saveLocalFileOnS3(option)`. Selects engine via `STORAGE_ENGINE` env (`s3`/`r2`) |
|
|
353
|
-
| `user.preference.service.ts` | `UserPreferenceService` | `getUserPreferences`, `getUserPreference(key)`, `setUserPreference(name)`, `setGlobalPreference(key)`, `revokeUserSpecificPreferences(name)` |
|
|
354
|
-
| `es6.service.ts` | `Es6Service` | Service registry locator |
|
|
355
|
-
| `es6.jobs.service.ts` | `Es6JobsService` | Job registry locator |
|
|
356
|
-
|
|
357
|
-
### Controllers (`src/system/controllers/`)
|
|
358
|
-
|
|
359
|
-
| File | Class | Routes |
|
|
360
|
-
|---|---|---|
|
|
361
|
-
| `base.controller.ts` | `BaseController` (`api/record/:hash`) | `GET /` (list), `GET /create` (form metadata), `GET /:id` (show), `POST /` (create), `GET /:id/edit` (edit form), `GET /:id/audit-log`, `PUT /:id` (update), `DELETE /:id` |
|
|
362
|
-
| `data.controller.ts` | `DataController` (`api/data/:hash`) | `GET /` (data list), `GET /:id` |
|
|
363
|
-
| `form.controller.ts` | `FormController` (`api/admin/form`) | `GET /:id` |
|
|
364
|
-
| `menu.controller.ts` | `MenuController` (`api/admin/menu`) | `GET /`, `GET /:id`, `POST /` |
|
|
365
|
-
| `preference.controller.ts` | `PreferenceController` (`api/admin/`) | `GET preferences`, `POST list-preference`, `POST menu-list-preference/:id`, `POST model-form-preference/:id`, `POST form-preference`, `DELETE list-preference/:id`, `DELETE form-preference/:id` |
|
|
366
|
-
| `report.controller.ts` | `ReportController` (`api/admin`) | `POST report/:id/sync`, `GET report/:id`, `POST get-chart-data/:id`, `POST get-report-data/:id` |
|
|
367
|
-
| `upload.controller.ts` | `UploadController` (no prefix) | `POST uploads`, `POST api/admin/uploads` |
|
|
368
|
-
| `user.preference.controller.ts` | `UserPreferenceController` (`api/admin/user-preference`) | `GET /`, `POST /` |
|
|
369
|
-
|
|
370
|
-
### Entities (`src/system/entities/`)
|
|
371
|
-
|
|
372
|
-
All extend `CommonEntity`. Tables:
|
|
373
|
-
|
|
374
|
-
| Domain | Entity → Table |
|
|
375
|
-
|---|---|
|
|
376
|
-
| Models | `model` → `sys_model_details`, `model.column` → `sys_model_columns`, `model.relationship` → `sys_model_relationships`, `model.role` → `sys_model_roles`, `column` → `sys_column_details`, `column.definition` → `sys_column_definitions`, `relationship` → `sys_relationship_details` |
|
|
377
|
-
| Menus | `menu` → `sys_menu_details`, `menu.role` → `sys_menu_roles`, `module` → `sys_module_details`, `module.menu` → `sys_module_menus`, `parent.menu` → `sys_parent_menus` |
|
|
378
|
-
| Forms | `form` → `sys_form_details`, `form.column` → `sys_form_columns`, `form.preference` → `sys_form_preferences`, `list.preference` → `sys_list_preferences` |
|
|
379
|
-
| Reports | `report` → `sys_report_details`, `report.column` → `sys_report_columns`, `report.filter` → `sys_report_filters`, `report.param` → `sys_report_params`, `report.relationship` → `sys_report_relationships`, `report.role` → `sys_report_roles`, `report.sheet` → `sys_report_sheets` |
|
|
380
|
-
| Charts | `chart` → `sys_chart_details`, `primary.axis` → `sys_chart_primary_axis`, `secondary.axis` → `sys_chart_secondary_axis` |
|
|
381
|
-
| Properties | `property` → `sys_properties`, `open.property` → `sys_open_properties`, `lookup.type` → `sys_lookup_types`, `lookup.value` → `sys_lookup_values` |
|
|
382
|
-
| Mail | `mail.event` → `sys_mail_events`, `mail.recipient` → `sys_mail_recipients`, `mail.log` → `sys_mail_logs`, `mail.validation` → `sys_mail_validations`, `email.template` → `sys_email_templates` |
|
|
383
|
-
| SMS | `sms.message` → `sys_sms_messages`, `sms.template` → `sys_sms_templates`, `mobile.validation` → `sys_mobile_validations`, `whatsapp.template` → `sys_whatsapp_templates` |
|
|
384
|
-
| Scripts | `system.script` → `sys_system_scripts`, `executable.script` → `sys_executable_scripts`, `client.script` → `sys_client_scripts`, `code.fix.script` → `sys_codefix_scripts`, `code.fix.log` → `sys_codefix_logs` |
|
|
385
|
-
| Events | `event.detail` → `sys_event_details`, `event.log` → `sys_event_logs`, `event.queue` → `sys_event_queues`, `scheduled.event` → `sys_scheduled_events`, `recurring.query` → `sys_recurring_queries` |
|
|
386
|
-
| Clients | `client` → `sys_client_details`, `client.credential` → `sys_client_credentials`, `credential.ip` → `sys_credential_ips`, `service` → `sys_service_details` |
|
|
387
|
-
| Users/Groups | `user.group` → `sys_user_groups`, `user.group.member` → `sys_user_group_members`, `user.group.permission` → `sys_user_group_permissions`, `user.group.role` → `sys_user_group_roles`, `user.preference` → `sys_user_preferences` |
|
|
388
|
-
| Misc | `business.rule` → `sys_business_rules`, `business.rule.role` → `sys_business_rule_roles`, `security.rule` → `sys_security_rules`, `ui.action` → `sys_ui_actions`, `ui.action.permission` → `sys_ui_action_permissions`, `ui.action.role` → `sys_ui_action_roles`, `comment` → `sys_comments`, `document` → `sys_documents`, `data.log` → `sys_data_logs`, `system.log` → `sys_system_logs`, `dynamo.table` → `sys_dynamo_tables`, `material.view` → `sys_material_views`, `page.definition` → `sys_page_definitions` |
|
|
389
|
-
|
|
390
|
-
### Mongo entities (`src/system/mentities/`)
|
|
391
|
-
|
|
392
|
-
- `test.mentity.ts` — `TestMentity` (mongo collection, used by `TestMongoJob`).
|
|
393
|
-
|
|
394
|
-
### DTOs (`src/system/dtos/`)
|
|
395
|
-
|
|
396
|
-
`add.comment.dto.ts`, `add.direct.menu.dto.ts`, `client.attributes.dto.ts`, `client.credential.attributes.dto.ts`, `client.credential.dto.ts`, `code.fix.log.attributes.dto.ts`, `code.fix.script.attributes.dto.ts`, `comment.attributes.dto.ts`, `credential.ip.attributes.dto.ts`, `data.log.attributes.dto.ts`, `document.attributes.dto.ts`, `event.log.attributes.dto.ts`, `executable.script.attributes.dto.ts`, `executable.script.payload.dto.ts`, `file.upload.dto.ts`, `file.upload.spec.dto.ts`, `job.record.param.dto.ts`, `local.file.s3.upload.dto.ts`, `mail.event.attributes.dto.ts`, `mail.recipient.attributes.dto.ts`, `mail.validation.dto.ts`, `material.view.attributes.dto.ts`, `menu.list.preference.creation.dto.ts`, `mobile.validation.dto.ts`, `model.allowed.column.dto.ts`, `model.form.preference.creation.dto.ts`, `otp.generation.dto.ts`, `recurring.query.attributes.dto.ts`, `report.sheet.attributes.dto.ts`, `s3.object.info.dto.ts`, `s3.upload.options.dto.ts`, `sms.message.attributes.dto.ts`, `system.log.attributes.dto.ts`, `user.preference.creation.dto.ts`, `validation.options.dto.ts`.
|
|
397
|
-
|
|
398
|
-
### Jobs (`src/system/jobs/`)
|
|
399
|
-
|
|
400
|
-
39 BullMQ jobs. All extend `CommonJob`. Naming convention `<entity>.job.ts` for entity-event jobs, `set.<thing>.job.ts` for event-queue scheduling jobs, `execute.<thing>.job.ts` / `refresh.<thing>.job.ts` for direct execution jobs.
|
|
401
|
-
|
|
402
|
-
| File | Class | What it does |
|
|
403
|
-
|---|---|---|
|
|
404
|
-
| `client.credential.job.ts` | `ClientCredentialJob` | ClientCredential entity insert/update side effects |
|
|
405
|
-
| `client.job.ts` | `ClientJob` | Client entity changes |
|
|
406
|
-
| `code.fix.log.job.ts` | `CodeFixLogJob` | CodeFixLog persist |
|
|
407
|
-
| `code.fix.script.job.ts` | `CodeFixScriptJob` | CodeFixScript changes |
|
|
408
|
-
| `column.mapper.job.ts` | `ColumnMapperJob` | Map column metadata to ModelColumn rows |
|
|
409
|
-
| `comment.job.ts` | `CommentJob` | Comment persist + notifications |
|
|
410
|
-
| `credential.ip.job.ts` | `CredentialIpJob` | CredentialIp changes |
|
|
411
|
-
| `data.log.job.ts` | `DataLogJob` | DataLog persist |
|
|
412
|
-
| `document.job.ts` | `DocumentJob` | Document persist + S3 hash |
|
|
413
|
-
| `event.log.job.ts` | `EventLogJob` | EventLog persist |
|
|
414
|
-
| `executable.script.job.ts` | `ExecutableScriptJob` | ExecutableScript changes |
|
|
415
|
-
| `execute.code.fix.job.ts` | `ExecuteCodeFixJob` | Run a code fix script via `ExecuteCodeFix` library |
|
|
416
|
-
| `execute.material.view.job.ts` | `ExecuteMaterialViewJob` | Refresh material view query |
|
|
417
|
-
| `execute.recurring.query.job.ts` | `ExecuteRecurringQueryJob` | Run recurring query |
|
|
418
|
-
| `mail.event.job.ts` | `MailEventJob` | Mail event creation → recipients |
|
|
419
|
-
| `mail.recipient.job.ts` | `MailRecipientJob` | Per-recipient mail send |
|
|
420
|
-
| `mail.validation.job.ts` | `MailValidationJob` | Email OTP validation event |
|
|
421
|
-
| `material.view.job.ts` | `MaterialViewJob` | MaterialView changes |
|
|
422
|
-
| `mobile.validation.job.ts` | `MobileValidationJob` | Mobile OTP validation event |
|
|
423
|
-
| `model.scanner.job.ts` | `ModelScannerJob` | Sync TypeORM entity metadata to Model rows |
|
|
424
|
-
| `property.job.ts` | `PropertyJob` | Property entity → cache refresh |
|
|
425
|
-
| `recurring.query.job.ts` | `RecurringQueryJob` | RecurringQuery changes |
|
|
426
|
-
| `refresh.material.view.job.ts` | `RefreshMaterialViewJob` | Trigger material view refresh schedule |
|
|
427
|
-
| `refresh.property.cache.job.ts` | `RefreshPropertyCacheJob` | Reload property cache |
|
|
428
|
-
| `relationship.mapper.job.ts` | `RelationshipMapperJob` | Map ModelRelationships from typeorm metadata |
|
|
429
|
-
| `report.column.sync.job.ts` | `ReportColumnSyncJob` | Sync ReportColumn rows |
|
|
430
|
-
| `report.sheet.job.ts` | `ReportSheetJob` | ReportSheet changes |
|
|
431
|
-
| `scheduled.event.job.ts` | `ScheduledEventJob` | ScheduledEvent persist + queue scheduling |
|
|
432
|
-
| `set.codefix.script.event.job.ts` | `SetCodefixScriptEventJob` | Schedule code fix execution event |
|
|
433
|
-
| `set.event.queue.job.ts` | `SetEventQueueJob` | Insert into EventQueue |
|
|
434
|
-
| `set.recurring.query.event.job.ts` | `SetRecurringQueryEventJob` | Schedule recurring query event |
|
|
435
|
-
| `set.scheduled.event.job.ts` | `SetScheduledEventJob` | Persist scheduled event metadata |
|
|
436
|
-
| `sms.message.job.ts` | `SmsMessageJob` | SmsMessage persist + send |
|
|
437
|
-
| `sqs.polling.job.ts` | `SqsPollingJob` | Drives `CommonSqsPolling` polling loop |
|
|
438
|
-
| `sync.all.code.job.ts` | `SyncAllCodeJob` | Full code sync (models, columns, relationships, menus...) |
|
|
439
|
-
| `system.log.job.ts` | `SystemLogJob` | Persist SystemLog |
|
|
440
|
-
| `test.mongo.job.ts` | `TestMongoJob` | Mongo connectivity test |
|
|
441
|
-
| `user.group.member.job.ts` | `UserGroupMemberJob` | Group membership change |
|
|
442
|
-
| `user.group.permission.job.ts` | `UserGroupPermissionJob` | Group permission change |
|
|
443
|
-
| `user.group.role.job.ts` | `UserGroupRoleJob` | Group role change |
|
|
444
|
-
|
|
445
|
-
### Subscribers (`src/system/subscribers/`)
|
|
446
|
-
|
|
447
|
-
All 27 subscribers follow the same pattern:
|
|
448
|
-
|
|
449
|
-
```ts
|
|
450
|
-
@EventSubscriber()
|
|
451
|
-
export class XSubscriber extends CommonSubscriber<XEntity> {
|
|
452
|
-
constructor(private readonly dataSource: DataSource, protected readonly entityJob: XJob) {
|
|
453
|
-
super();
|
|
454
|
-
dataSource.subscribers.push(this);
|
|
455
|
-
}
|
|
456
|
-
listenTo() { return XEntity; }
|
|
457
|
-
}
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
Mappings (subscriber file → entity → triggered job): `client.credential` → `ClientCredentialEntity` → `ClientCredentialJob`; `client` → `ClientEntity` → `ClientJob`; `code.fix.log` → `CodeFixLogEntity` → `CodeFixLogJob`; `code.fix.script` → `CodeFixScriptEntity` → `CodeFixScriptJob`; `column` → `ColumnEntity` → `ColumnMapperJob`; `comment` → `CommentEntity` → `CommentJob`; `credential.ip` → `CredentialIpEntity` → `CredentialIpJob`; `data.log` → `DataLogEntity` → `DataLogJob`; `document` → `DocumentEntity` → `DocumentJob`; `event.log` → `EventLogEntity` → `EventLogJob`; `executable.script` → `ExecutableScriptEntity` → `ExecutableScriptJob`; `mail.event` → `MailEventEntity` → `MailEventJob`; `mail.recipient` → `MailRecipientEntity` → `MailRecipientJob`; `mail.validation` → `MailValidationEntity` → `MailValidationJob`; `material.view` → `MaterialViewEntity` → `MaterialViewJob`; `mobile.validation` → `MobileValidationEntity` → `MobileValidationJob`; `property` → `PropertyEntity` → `PropertyJob`; `recurring.query` → `RecurringQueryEntity` → `RecurringQueryJob`; `relationship` → `RelationshipEntity` → `RelationshipMapperJob`; `report.sheet` → `ReportSheetEntity` → `ReportSheetJob`; `scheduled.event` → `ScheduledEventEntity` → `ScheduledEventJob`; `sms.message` → `SmsMessageEntity` → `SmsMessageJob`; `system.log` → `SystemLogEntity` → `SystemLogJob`; `user.group.member` → `UserGroupMemberEntity` → `UserGroupMemberJob`; `user.group.permission` → `UserGroupPermissionEntity` → `UserGroupPermissionJob`; `user.group.role` → `UserGroupRoleEntity` → `UserGroupRoleJob`; `test.mongo.subscriber.ts` is the only mongo subscriber (listens to `TestMentity`).
|
|
461
|
-
|
|
462
|
-
### Libraries (`src/system/libraries/`)
|
|
463
|
-
|
|
464
|
-
| File | Class | Purpose |
|
|
465
|
-
|---|---|---|
|
|
466
|
-
| `business.rule.filter.validator.ts` | `BusinessRuleFilterValidator` | Validates business rule filter conditions in an isolated script context |
|
|
467
|
-
| `business.rule.query.evaluator.ts` | `BusinessRuleQueryEvaluator` | Evaluates business rule query scripts in isolated execution |
|
|
468
|
-
| `code.evaluator.ts` | `CodeEvaluator` | Executes arbitrary code-fix scripts within a controlled context |
|
|
469
|
-
| `column.manager.ts` | `ColumnManager` | Column dictionary with security rule filtering |
|
|
470
|
-
| `common.storage.service.ts` | `CommonStorageService` | S3 upload param interface |
|
|
471
|
-
| `execute.code.fix.ts` | `ExecuteCodeFix` | Executes stored code fix scripts and records execution logs |
|
|
472
|
-
| `generate.downloadable.report.file.ts` | `GenerateDownloadableReportFile` | Builds report file (xlsx via `exceljs`) |
|
|
473
|
-
| `get.report.query.ts` | `GetReportQuery` | Builds report SQL query with parameter substitutions and filter restrictions |
|
|
474
|
-
| `model.sync.ts` | `ModelSync` | Syncs TypeORM entity metadata with model+column definitions |
|
|
475
|
-
| `process.menu.creation.ts` | `ProcessMenuCreation` | Creates menu structures (list/detail) and links to modules |
|
|
476
|
-
| `process.script.execution.ts` | `ProcessScriptExecution` | Processes/executes scripts dynamically |
|
|
477
|
-
| `security.rule.evaluator.ts` | `SecurityRuleEvaluator` | Evaluates security rule scripts for access validation |
|
|
478
|
-
| `sync.dynamo.tables.ts` | `SyncDynamoTables` | Syncs DynamoDB metadata between remote tables and local definitions |
|
|
479
|
-
|
|
480
|
-
### Modifiers (`src/system/modifiers/`)
|
|
481
|
-
|
|
482
|
-
- `menu.list.modifier.ts` — `MenuListModifier`. `class-transformer` shape applied via `plainToClass` in `MenuService.getMenuDetails`.
|
|
483
|
-
- `module.list.modifier.ts` — `ModuleListModifier`. Shape for module list responses.
|
|
484
|
-
|
|
485
|
-
### Interceptors
|
|
486
|
-
|
|
487
|
-
- `src/system/interceptors/sentry.interceptor.ts` — `SentryInterceptor`. Captures unhandled exceptions to Sentry. Applied globally in `main.ts` when `SENTRY_DSN` is set.
|
|
488
|
-
|
|
489
|
-
---
|
|
490
|
-
|
|
491
|
-
## `src/migrations/`
|
|
492
|
-
|
|
493
|
-
136 TypeORM migrations + a `seeders/` subdirectory. Filename convention: `<unix-millis-timestamp>-<PascalCaseDescription>.ts`. Migrations from sibling `@servicelabsco/*` packages also run against this DB (via the glob in `typeorm.config.ts`). Migrations table: `sys_migrations`.
|
|
494
|
-
|
|
495
|
-
Migration files use `MigrationUtility` / `BaseMigrationUtility` / `ReverseMigrationUtility` / `SeederUtility` from `common/libraries/`. The `up`/`down` semantics flip when the `reverseMigration` flag is set so a single class can run forward or backward depending on context.
|
|
496
|
-
|
|
497
|
-
The `seeders/` directory contains data-only migrations (e.g. `sys_user_roles.json` is gitignored and seeded from there).
|
|
498
|
-
|
|
499
|
-
---
|
|
500
|
-
|
|
501
|
-
## `src/views/`
|
|
502
|
-
|
|
503
|
-
Handlebars (`hbs`) templates for emails. Used by `MailService.getBody()` via `handlebars` package.
|
|
504
|
-
|
|
505
|
-
---
|
|
506
|
-
|
|
507
|
-
## Patterns / how-to recipes
|
|
508
|
-
|
|
509
|
-
**Add a new postgres entity:**
|
|
510
|
-
1. Create `src/<module>/entities/<name>.entity.ts`, extend `CommonEntity`, decorate with `@Entity('<table>')`. Use snake_case is auto-applied — write camelCase fields.
|
|
511
|
-
2. Add the import + array entry to `src/<module>/es6.classes.ts` under `entities`.
|
|
512
|
-
3. Generate migration: `yarn m:g <Name>`. Inside, instantiate `MigrationUtility` so `reverseMigration` works.
|
|
513
|
-
4. If you want change events, add a subscriber + job (next recipe).
|
|
514
|
-
|
|
515
|
-
**Add a subscriber + job for an entity:**
|
|
516
|
-
1. Create `src/<module>/jobs/<name>.job.ts` extending `CommonJob` with a `handle(data)` method.
|
|
517
|
-
2. Create `src/<module>/subscribers/<name>.subscriber.ts` matching the template above.
|
|
518
|
-
3. Register both in `es6.classes.ts` (`jobs`, `subscribers`).
|
|
519
|
-
|
|
520
|
-
**Add a new service:**
|
|
521
|
-
1. Create `src/<module>/services/<name>.service.ts`, `@Injectable()`, extend `CommonService`.
|
|
522
|
-
2. Register in `es6.classes.ts` under `services`.
|
|
523
|
-
|
|
524
|
-
**Read a system property:**
|
|
525
|
-
- `await propertyService.get('property.key', defaultValue)` — handles caching + decryption.
|
|
526
|
-
|
|
527
|
-
**Throw a domain error:** use one of the six exception classes in `common/exceptions/` (see table above) — never bare `HttpException`.
|
|
528
|
-
|
|
529
|
-
**Get current user:** `Auth.user()` (or `Auth.id()`, `Auth.check()`) from `common/libraries/auth.ts`. Never read `req.user` directly.
|
|
530
|
-
|
|
531
|
-
**Add a queue job at runtime:** `queueService.addJob(jobName, payload, options?)`. The `JobConsumer` (worker only) processes it.
|
|
532
|
-
|
|
533
|
-
**Internal-server-to-internal-server call:** `internalServerConnectService.post(type, payload)` / `.get(...)` — handles credential lookup/expiry.
|
|
534
|
-
|
|
535
|
-
**Generate `es6.classes.ts` files automatically:** `slnu syncClassess` (the `commit.sh` integration). Otherwise update by hand.
|
|
536
|
-
|
|
537
|
-
---
|
|
538
|
-
|
|
539
|
-
## Top-level files
|
|
540
|
-
|
|
541
|
-
- `package.json` — `main: dist/index.js`, scripts (build/start/test/lint/m:*/console/runtime-check/save). Jest config rootDir=src. Dependencies pinned to NestJS 11.
|
|
542
|
-
- `tsconfig.json` — target ES2021, commonjs, decorators on, strict off (no `strict: true`; types: `["node","jest"]`).
|
|
543
|
-
- `tsconfig.build.json` — build excludes (extends base).
|
|
544
|
-
- `nest-cli.json` — `sourceRoot: src`, `deleteOutDir: true`.
|
|
545
|
-
- `.eslintrc.js` — `@typescript-eslint/recommended` + `plugin:prettier/recommended`. Disables `interface-name-prefix`, `explicit-function-return-type`, `no-explicit-any`, `camelcase`.
|
|
546
|
-
- `.prettierrc` — `singleQuote`, `trailingComma: es5`, `tabWidth: 4`, `printWidth: 150`.
|
|
547
|
-
- `commit.sh` — `yarn save` flow: pull, optional build, optional `slnu syncClassess`, prettier, git add, JIRA-prefixed commit, push.
|
|
548
|
-
- `Procfile` — `web: npm run start:prod` (Heroku).
|
|
549
|
-
- `.circleci/config.yml` — entirely commented out (CI not active).
|
|
550
|
-
- `tslint.json` — legacy, ignored (eslint is the linter).
|
|
551
|
-
|
|
552
|
-
---
|
|
553
|
-
|
|
554
|
-
## Tests (`*.spec.ts` under `src/`)
|
|
555
|
-
|
|
556
|
-
Jest config inline in `package.json` (`rootDir: src`, `testRegex: .*\.spec\.ts$`, `ts-jest`). Run a single: `yarn test -- path/to/file.spec.ts` or `yarn test -- -t "name"`.
|
|
557
|
-
|
|
558
|
-
Test files present:
|
|
559
|
-
- `src/config/source.hash.spec.ts`
|
|
560
|
-
- `src/auth/middlewares/jwt.middleware.spec.ts`, `basic.auth.middleware.spec.ts`
|
|
561
|
-
- `src/auth/services/auth.service.spec.ts`
|
|
562
|
-
- `src/system/services/scheduled.event.service.spec.ts`
|
|
563
|
-
- `src/common/libraries/{auth,class.mapper,custom.crypt,custom.logger,database.event.evaluator,date.util,entity.evaluator,generic.index.parser,generic.show.parser,hash,json.evaluator,platform.utility,report.body.parser}.spec.ts`
|
|
564
|
-
- `src/common/exceptions/*.spec.ts` (every exception)
|
|
565
|
-
- `src/platformUtility/middlewares/{maintenance.middleware,trim.pipe}.spec.ts`
|
|
566
|
-
- `src/platformUtility/services/{cache.service,zip.service}.spec.ts`
|
|
567
|
-
|
|
568
|
-
E2E config in `test/jest-e2e.json` (no `*.e2e-spec.ts` files present yet).
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Contributing
|
|
2
|
-
|
|
3
|
-
1. [Fork it](https://help.github.com/articles/fork-a-repo/)
|
|
4
|
-
2. Install dependencies (`npm install`)
|
|
5
|
-
3. Create your feature branch (`git checkout -b my-new-feature`)
|
|
6
|
-
4. Commit your changes (`git commit -am 'Added some feature'`)
|
|
7
|
-
5. Test your changes (`npm test`)
|
|
8
|
-
6. Push to the branch (`git push origin my-new-feature`)
|
|
9
|
-
7. [Create new Pull Request](https://help.github.com/articles/creating-a-pull-request/)
|
|
10
|
-
|
|
11
|
-
## Testing
|
|
12
|
-
|
|
13
|
-
We use [Jest](https://github.com/facebook/jest) to write tests. Run our test suite with this command:
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
npm test
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Code Style
|
|
20
|
-
|
|
21
|
-
We use [Prettier](https://prettier.io/) and tslint to maintain code style and best practices.
|
|
22
|
-
Please make sure your PR adheres to the guides by running:
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
npm run format
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
and
|
|
29
|
-
```
|
|
30
|
-
npm run lint
|
|
31
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AccessService } from './access.service';
|
|
2
|
-
import { AuthService } from './auth.service';
|
|
3
|
-
import { UserService } from './user.service';
|
|
4
|
-
export declare class Es6Service {
|
|
5
|
-
private readonly accessService;
|
|
6
|
-
private readonly authService;
|
|
7
|
-
private readonly userService;
|
|
8
|
-
private services;
|
|
9
|
-
constructor(accessService: AccessService, authService: AuthService, userService: UserService);
|
|
10
|
-
alignServices(): void;
|
|
11
|
-
setServices(): void;
|
|
12
|
-
}
|