@nest-omni/core 4.1.3-12 → 4.1.3-13
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/LICENSE +17 -0
- package/README.md +444 -0
- package/build.sh +45 -0
- package/dist/cache/dependencies/db.dependency.d.ts +109 -0
- package/{cache → dist/cache}/dependencies/db.dependency.js +64 -13
- package/{common → dist/common}/boilerplate.polyfill.js +1 -1
- package/dist/file-upload/decorators/column.decorator.d.ts +151 -0
- package/dist/file-upload/decorators/column.decorator.js +273 -0
- package/dist/file-upload/decorators/csv-data.decorator.d.ts +30 -0
- package/dist/file-upload/decorators/csv-data.decorator.js +85 -0
- package/dist/file-upload/decorators/csv-import.decorator.d.ts +34 -0
- package/dist/file-upload/decorators/csv-import.decorator.js +24 -0
- package/dist/file-upload/decorators/examples/column-mapping.example.d.ts +76 -0
- package/dist/file-upload/decorators/examples/column-mapping.example.js +122 -0
- package/dist/file-upload/decorators/excel-data.decorator.d.ts +30 -0
- package/dist/file-upload/decorators/excel-data.decorator.js +85 -0
- package/dist/file-upload/decorators/index.d.ts +5 -0
- package/dist/file-upload/decorators/index.js +38 -0
- package/dist/file-upload/decorators/validate-data.decorator.d.ts +91 -0
- package/dist/file-upload/decorators/validate-data.decorator.js +39 -0
- package/{file-upload → dist/file-upload}/dto/update-file.dto.d.ts +0 -1
- package/{file-upload → dist/file-upload}/dto/update-file.dto.js +0 -4
- package/{file-upload → dist/file-upload}/entities/file-metadata.entity.d.ts +6 -3
- package/{file-upload → dist/file-upload}/entities/file-metadata.entity.js +2 -10
- package/{file-upload → dist/file-upload}/entities/file.entity.d.ts +3 -18
- package/{file-upload → dist/file-upload}/entities/file.entity.js +0 -34
- package/{file-upload → dist/file-upload}/file-upload.module.d.ts +1 -1
- package/{file-upload → dist/file-upload}/file-upload.module.js +44 -16
- package/{file-upload → dist/file-upload}/index.d.ts +13 -2
- package/{file-upload → dist/file-upload}/index.js +21 -3
- package/dist/file-upload/interceptors/file-upload.interceptor.d.ts +101 -0
- package/dist/file-upload/interceptors/file-upload.interceptor.js +594 -0
- package/dist/file-upload/interfaces/file-processor.interface.d.ts +93 -0
- package/{file-upload → dist/file-upload}/interfaces/file-upload-options.interface.d.ts +3 -46
- package/dist/file-upload/interfaces/file-upload-options.interface.js +5 -0
- package/dist/file-upload/interfaces/processor-options.interface.d.ts +102 -0
- package/dist/file-upload/processors/csv.processor.d.ts +98 -0
- package/dist/file-upload/processors/csv.processor.js +391 -0
- package/dist/file-upload/processors/excel.processor.d.ts +130 -0
- package/dist/file-upload/processors/excel.processor.js +547 -0
- package/dist/file-upload/processors/image.processor.d.ts +199 -0
- package/dist/file-upload/processors/image.processor.js +377 -0
- package/{file-upload → dist/file-upload}/services/file.service.d.ts +3 -0
- package/{file-upload → dist/file-upload}/services/file.service.js +39 -10
- package/{file-upload → dist/file-upload}/services/malicious-file-detector.service.d.ts +29 -3
- package/{file-upload → dist/file-upload}/services/malicious-file-detector.service.js +256 -57
- package/{file-upload → dist/file-upload}/utils/dynamic-import.util.d.ts +6 -2
- package/{file-upload → dist/file-upload}/utils/dynamic-import.util.js +17 -5
- package/{http-client → dist/http-client}/decorators/http-client.decorators.d.ts +4 -2
- package/{http-client → dist/http-client}/decorators/http-client.decorators.js +2 -1
- package/{http-client → dist/http-client}/entities/http-log.entity.js +1 -9
- package/dist/http-client/examples/proxy-from-environment.example.d.ts +133 -0
- package/dist/http-client/examples/proxy-from-environment.example.js +410 -0
- package/{http-client → dist/http-client}/http-client.module.js +65 -6
- package/{http-client → dist/http-client}/interfaces/http-client-config.interface.d.ts +6 -0
- package/{http-client → dist/http-client}/services/http-client.service.d.ts +8 -0
- package/{http-client → dist/http-client}/services/http-client.service.js +61 -17
- package/{http-client → dist/http-client}/services/logging.service.d.ts +1 -1
- package/{http-client → dist/http-client}/services/logging.service.js +74 -58
- package/{http-client → dist/http-client}/utils/index.d.ts +1 -0
- package/{http-client → dist/http-client}/utils/index.js +1 -0
- package/dist/http-client/utils/proxy-environment.util.d.ts +42 -0
- package/dist/http-client/utils/proxy-environment.util.js +148 -0
- package/dist/package.json +105 -0
- package/{shared → dist/shared}/service-registry.module.js +18 -0
- package/dist/transaction/data-source.util.d.ts +142 -0
- package/dist/transaction/data-source.util.js +330 -0
- package/{transaction → dist/transaction}/index.d.ts +1 -0
- package/{transaction → dist/transaction}/index.js +12 -1
- package/{validators → dist/validators}/is-exists.validator.d.ts +19 -2
- package/{validators → dist/validators}/is-exists.validator.js +27 -2
- package/{validators → dist/validators}/is-unique.validator.d.ts +12 -1
- package/{validators → dist/validators}/is-unique.validator.js +26 -1
- package/dist/vault/interfaces/vault-options.interface.js +2 -0
- package/package.json +9 -5
- package/tsconfig.build.json +16 -0
- package/cache/dependencies/db.dependency.d.ts +0 -60
- package/file-upload/decorators/csv-data.decorator.d.ts +0 -44
- package/file-upload/decorators/csv-data.decorator.js +0 -131
- package/file-upload/decorators/excel-data.decorator.d.ts +0 -44
- package/file-upload/decorators/excel-data.decorator.js +0 -125
- package/file-upload/decorators/index.d.ts +0 -4
- package/file-upload/decorators/index.js +0 -20
- package/file-upload/interceptors/file-upload.interceptor.d.ts +0 -48
- package/file-upload/interceptors/file-upload.interceptor.js +0 -434
- /package/{.hygen → dist/.hygen}/new/crud/controller.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/create.dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/entity.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/get.dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/index-dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/index-response.dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/module.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/prompt.js +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/service.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/crud/update.dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/controller.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/create-command.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/create.dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/entity.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/get-query.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/module.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/not-found.exception.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/page-options.dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/prompt.js +0 -0
- /package/{.hygen → dist/.hygen}/new/module/repository.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/service.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/translation-dto.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/translation-entity.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/translation-repository.ejs.t +0 -0
- /package/{.hygen → dist/.hygen}/new/module/update.dto.ejs.t +0 -0
- /package/{.hygen.js → dist/.hygen.js} +0 -0
- /package/{audit → dist/audit}/audit.module.d.ts +0 -0
- /package/{audit → dist/audit}/audit.module.js +0 -0
- /package/{audit → dist/audit}/controllers/audit.controller.d.ts +0 -0
- /package/{audit → dist/audit}/controllers/audit.controller.js +0 -0
- /package/{audit → dist/audit}/controllers/index.d.ts +0 -0
- /package/{audit → dist/audit}/controllers/index.js +0 -0
- /package/{audit → dist/audit}/decorators/audit-action.decorator.d.ts +0 -0
- /package/{audit → dist/audit}/decorators/audit-action.decorator.js +0 -0
- /package/{audit → dist/audit}/decorators/audit-controller.decorator.d.ts +0 -0
- /package/{audit → dist/audit}/decorators/audit-controller.decorator.js +0 -0
- /package/{audit → dist/audit}/decorators/audit-operation.decorator.d.ts +0 -0
- /package/{audit → dist/audit}/decorators/audit-operation.decorator.js +0 -0
- /package/{audit → dist/audit}/decorators/entity-audit.decorator.d.ts +0 -0
- /package/{audit → dist/audit}/decorators/entity-audit.decorator.js +0 -0
- /package/{audit → dist/audit}/decorators/index.d.ts +0 -0
- /package/{audit → dist/audit}/decorators/index.js +0 -0
- /package/{audit → dist/audit}/dto/audit-log-query.dto.d.ts +0 -0
- /package/{audit → dist/audit}/dto/audit-log-query.dto.js +0 -0
- /package/{audit → dist/audit}/dto/begin-transaction.dto.d.ts +0 -0
- /package/{audit → dist/audit}/dto/begin-transaction.dto.js +0 -0
- /package/{audit → dist/audit}/dto/compare-entities.dto.d.ts +0 -0
- /package/{audit → dist/audit}/dto/compare-entities.dto.js +0 -0
- /package/{audit → dist/audit}/dto/index.d.ts +0 -0
- /package/{audit → dist/audit}/dto/index.js +0 -0
- /package/{audit → dist/audit}/dto/pre-check-restore.dto.d.ts +0 -0
- /package/{audit → dist/audit}/dto/pre-check-restore.dto.js +0 -0
- /package/{audit → dist/audit}/dto/restore-entity.dto.d.ts +0 -0
- /package/{audit → dist/audit}/dto/restore-entity.dto.js +0 -0
- /package/{audit → dist/audit}/entities/audit-action-summary.entity.d.ts +0 -0
- /package/{audit → dist/audit}/entities/audit-action-summary.entity.js +0 -0
- /package/{audit → dist/audit}/entities/entity-audit-log.entity.d.ts +0 -0
- /package/{audit → dist/audit}/entities/entity-audit-log.entity.js +0 -0
- /package/{audit → dist/audit}/entities/entity-transaction.entity.d.ts +0 -0
- /package/{audit → dist/audit}/entities/entity-transaction.entity.js +0 -0
- /package/{audit → dist/audit}/entities/index.d.ts +0 -0
- /package/{audit → dist/audit}/entities/index.js +0 -0
- /package/{audit → dist/audit}/entities/manual-operation-log.entity.d.ts +0 -0
- /package/{audit → dist/audit}/entities/manual-operation-log.entity.js +0 -0
- /package/{audit → dist/audit}/entities/operation-template.entity.d.ts +0 -0
- /package/{audit → dist/audit}/entities/operation-template.entity.js +0 -0
- /package/{audit → dist/audit}/enums/audit.enums.d.ts +0 -0
- /package/{audit → dist/audit}/enums/audit.enums.js +0 -0
- /package/{audit → dist/audit}/enums/index.d.ts +0 -0
- /package/{audit → dist/audit}/enums/index.js +0 -0
- /package/{audit → dist/audit}/index.d.ts +0 -0
- /package/{audit → dist/audit}/index.js +0 -0
- /package/{audit → dist/audit}/interceptors/audit-action.interceptor.d.ts +0 -0
- /package/{audit → dist/audit}/interceptors/audit-action.interceptor.js +0 -0
- /package/{audit → dist/audit}/interceptors/audit.interceptor.d.ts +0 -0
- /package/{audit → dist/audit}/interceptors/audit.interceptor.js +0 -0
- /package/{audit → dist/audit}/interceptors/index.d.ts +0 -0
- /package/{audit → dist/audit}/interceptors/index.js +0 -0
- /package/{audit → dist/audit}/interfaces/audit.interfaces.d.ts +0 -0
- /package/{audit → dist/audit}/interfaces/audit.interfaces.js +0 -0
- /package/{audit → dist/audit}/interfaces/index.d.ts +0 -0
- /package/{audit → dist/audit}/interfaces/index.js +0 -0
- /package/{audit → dist/audit}/services/audit-action.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/audit-action.service.js +0 -0
- /package/{audit → dist/audit}/services/audit-context.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/audit-context.service.js +0 -0
- /package/{audit → dist/audit}/services/audit-strategy.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/audit-strategy.service.js +0 -0
- /package/{audit → dist/audit}/services/entity-audit.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/entity-audit.service.js +0 -0
- /package/{audit → dist/audit}/services/index.d.ts +0 -0
- /package/{audit → dist/audit}/services/index.js +0 -0
- /package/{audit → dist/audit}/services/manual-audit-log.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/manual-audit-log.service.js +0 -0
- /package/{audit → dist/audit}/services/multi-database.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/multi-database.service.js +0 -0
- /package/{audit → dist/audit}/services/operation-description.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/operation-description.service.js +0 -0
- /package/{audit → dist/audit}/services/transaction-audit.service.d.ts +0 -0
- /package/{audit → dist/audit}/services/transaction-audit.service.js +0 -0
- /package/{audit → dist/audit}/subscribers/entity-audit.subscriber.d.ts +0 -0
- /package/{audit → dist/audit}/subscribers/entity-audit.subscriber.js +0 -0
- /package/{audit → dist/audit}/subscribers/index.d.ts +0 -0
- /package/{audit → dist/audit}/subscribers/index.js +0 -0
- /package/{cache → dist/cache}/cache-metrics.service.d.ts +0 -0
- /package/{cache → dist/cache}/cache-metrics.service.js +0 -0
- /package/{cache → dist/cache}/cache-serialization.service.d.ts +0 -0
- /package/{cache → dist/cache}/cache-serialization.service.js +0 -0
- /package/{cache → dist/cache}/cache.constants.d.ts +0 -0
- /package/{cache → dist/cache}/cache.constants.js +0 -0
- /package/{cache → dist/cache}/cache.health.d.ts +0 -0
- /package/{cache → dist/cache}/cache.health.js +0 -0
- /package/{cache → dist/cache}/cache.module.d.ts +0 -0
- /package/{cache → dist/cache}/cache.module.js +0 -0
- /package/{cache → dist/cache}/cache.service.d.ts +0 -0
- /package/{cache → dist/cache}/cache.service.js +0 -0
- /package/{cache → dist/cache}/cache.warmup.service.d.ts +0 -0
- /package/{cache → dist/cache}/cache.warmup.service.js +0 -0
- /package/{cache → dist/cache}/decorators/cache-evict.decorator.d.ts +0 -0
- /package/{cache → dist/cache}/decorators/cache-evict.decorator.js +0 -0
- /package/{cache → dist/cache}/decorators/cache-put.decorator.d.ts +0 -0
- /package/{cache → dist/cache}/decorators/cache-put.decorator.js +0 -0
- /package/{cache → dist/cache}/decorators/cacheable.decorator.d.ts +0 -0
- /package/{cache → dist/cache}/decorators/cacheable.decorator.js +0 -0
- /package/{cache → dist/cache}/decorators/index.d.ts +0 -0
- /package/{cache → dist/cache}/decorators/index.js +0 -0
- /package/{cache → dist/cache}/dependencies/callback.dependency.d.ts +0 -0
- /package/{cache → dist/cache}/dependencies/callback.dependency.js +0 -0
- /package/{cache → dist/cache}/dependencies/chain.dependency.d.ts +0 -0
- /package/{cache → dist/cache}/dependencies/chain.dependency.js +0 -0
- /package/{cache → dist/cache}/dependencies/file.dependency.d.ts +0 -0
- /package/{cache → dist/cache}/dependencies/file.dependency.js +0 -0
- /package/{cache → dist/cache}/dependencies/index.d.ts +0 -0
- /package/{cache → dist/cache}/dependencies/index.js +0 -0
- /package/{cache → dist/cache}/dependencies/tag.dependency.d.ts +0 -0
- /package/{cache → dist/cache}/dependencies/tag.dependency.js +0 -0
- /package/{cache → dist/cache}/dependencies/time.dependency.d.ts +0 -0
- /package/{cache → dist/cache}/dependencies/time.dependency.js +0 -0
- /package/{cache → dist/cache}/examples/basic-usage.d.ts +0 -0
- /package/{cache → dist/cache}/examples/basic-usage.js +0 -0
- /package/{cache → dist/cache}/index.d.ts +0 -0
- /package/{cache → dist/cache}/index.js +0 -0
- /package/{cache → dist/cache}/interfaces/cache-dependency.interface.d.ts +0 -0
- /package/{cache → dist/cache}/interfaces/cache-dependency.interface.js +0 -0
- /package/{cache → dist/cache}/interfaces/cache-options.interface.d.ts +0 -0
- /package/{cache → dist/cache}/interfaces/cache-options.interface.js +0 -0
- /package/{cache → dist/cache}/interfaces/cache-provider.interface.d.ts +0 -0
- /package/{cache → dist/cache}/interfaces/cache-provider.interface.js +0 -0
- /package/{cache → dist/cache}/interfaces/index.d.ts +0 -0
- /package/{cache → dist/cache}/interfaces/index.js +0 -0
- /package/{cache → dist/cache}/providers/base-cache.provider.d.ts +0 -0
- /package/{cache → dist/cache}/providers/base-cache.provider.js +0 -0
- /package/{cache → dist/cache}/providers/cls-cache.provider.d.ts +0 -0
- /package/{cache → dist/cache}/providers/cls-cache.provider.js +0 -0
- /package/{cache → dist/cache}/providers/index.d.ts +0 -0
- /package/{cache → dist/cache}/providers/index.js +0 -0
- /package/{cache → dist/cache}/providers/memory-cache.provider.d.ts +0 -0
- /package/{cache → dist/cache}/providers/memory-cache.provider.js +0 -0
- /package/{cache → dist/cache}/providers/redis-cache.provider.d.ts +0 -0
- /package/{cache → dist/cache}/providers/redis-cache.provider.js +0 -0
- /package/{cache → dist/cache}/utils/dependency-manager.util.d.ts +0 -0
- /package/{cache → dist/cache}/utils/dependency-manager.util.js +0 -0
- /package/{cache → dist/cache}/utils/index.d.ts +0 -0
- /package/{cache → dist/cache}/utils/index.js +0 -0
- /package/{cache → dist/cache}/utils/key-generator.util.d.ts +0 -0
- /package/{cache → dist/cache}/utils/key-generator.util.js +0 -0
- /package/{common → dist/common}/abstract.entity.d.ts +0 -0
- /package/{common → dist/common}/abstract.entity.js +0 -0
- /package/{common → dist/common}/boilerplate.polyfill.d.ts +0 -0
- /package/{common → dist/common}/dto/abstract.dto.d.ts +0 -0
- /package/{common → dist/common}/dto/abstract.dto.js +0 -0
- /package/{common → dist/common}/dto/bulk-id.dto.d.ts +0 -0
- /package/{common → dist/common}/dto/bulk-id.dto.js +0 -0
- /package/{common → dist/common}/dto/create-translation.dto.d.ts +0 -0
- /package/{common → dist/common}/dto/create-translation.dto.js +0 -0
- /package/{common → dist/common}/dto/dto-container.d.ts +0 -0
- /package/{common → dist/common}/dto/dto-container.js +0 -0
- /package/{common → dist/common}/dto/dto-decorators.d.ts +0 -0
- /package/{common → dist/common}/dto/dto-decorators.js +0 -0
- /package/{common → dist/common}/dto/dto-extensions.d.ts +0 -0
- /package/{common → dist/common}/dto/dto-extensions.js +0 -0
- /package/{common → dist/common}/dto/dto-service-accessor.d.ts +0 -0
- /package/{common → dist/common}/dto/dto-service-accessor.js +0 -0
- /package/{common → dist/common}/dto/dto-transformer.d.ts +0 -0
- /package/{common → dist/common}/dto/dto-transformer.js +0 -0
- /package/{common → dist/common}/dto/index.d.ts +0 -0
- /package/{common → dist/common}/dto/index.js +0 -0
- /package/{common → dist/common}/dto/page-meta.dto.d.ts +0 -0
- /package/{common → dist/common}/dto/page-meta.dto.js +0 -0
- /package/{common → dist/common}/dto/page-options.dto.d.ts +0 -0
- /package/{common → dist/common}/dto/page-options.dto.js +0 -0
- /package/{common → dist/common}/dto/page.dto.d.ts +0 -0
- /package/{common → dist/common}/dto/page.dto.js +0 -0
- /package/{common → dist/common}/examples/paginate-and-map.example.d.ts +0 -0
- /package/{common → dist/common}/examples/paginate-and-map.example.js +0 -0
- /package/{common → dist/common}/index.d.ts +0 -0
- /package/{common → dist/common}/index.js +0 -0
- /package/{common → dist/common}/snake-naming.strategy.d.ts +0 -0
- /package/{common → dist/common}/snake-naming.strategy.js +0 -0
- /package/{common → dist/common}/types.d.ts +0 -0
- /package/{common → dist/common}/types.js +0 -0
- /package/{common → dist/common}/utils.d.ts +0 -0
- /package/{common → dist/common}/utils.js +0 -0
- /package/{constants → dist/constants}/index.d.ts +0 -0
- /package/{constants → dist/constants}/index.js +0 -0
- /package/{constants → dist/constants}/language-code.d.ts +0 -0
- /package/{constants → dist/constants}/language-code.js +0 -0
- /package/{constants → dist/constants}/order.d.ts +0 -0
- /package/{constants → dist/constants}/order.js +0 -0
- /package/{decorators → dist/decorators}/api-page-ok-response.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/api-page-ok-response.decorator.js +0 -0
- /package/{decorators → dist/decorators}/api-paginated-response.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/api-paginated-response.decorator.js +0 -0
- /package/{decorators → dist/decorators}/auth-user.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/auth-user.decorator.js +0 -0
- /package/{decorators → dist/decorators}/controller.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/controller.decorator.js +0 -0
- /package/{decorators → dist/decorators}/field.decorators.d.ts +0 -0
- /package/{decorators → dist/decorators}/field.decorators.js +0 -0
- /package/{decorators → dist/decorators}/http.decorators.d.ts +0 -0
- /package/{decorators → dist/decorators}/http.decorators.js +0 -0
- /package/{decorators → dist/decorators}/index.d.ts +0 -0
- /package/{decorators → dist/decorators}/index.js +0 -0
- /package/{decorators → dist/decorators}/operation.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/operation.decorator.js +0 -0
- /package/{decorators → dist/decorators}/paginated-response.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/paginated-response.decorator.js +0 -0
- /package/{decorators → dist/decorators}/property.decorators.d.ts +0 -0
- /package/{decorators → dist/decorators}/property.decorators.js +0 -0
- /package/{decorators → dist/decorators}/public-route.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/public-route.decorator.js +0 -0
- /package/{decorators → dist/decorators}/swagger.schema.d.ts +0 -0
- /package/{decorators → dist/decorators}/swagger.schema.js +0 -0
- /package/{decorators → dist/decorators}/timestamp-column.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/timestamp-column.decorator.js +0 -0
- /package/{decorators → dist/decorators}/transform.decorators.d.ts +0 -0
- /package/{decorators → dist/decorators}/transform.decorators.js +0 -0
- /package/{decorators → dist/decorators}/translate.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/translate.decorator.js +0 -0
- /package/{decorators → dist/decorators}/use-dto.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/use-dto.decorator.js +0 -0
- /package/{decorators → dist/decorators}/user-check.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/user-check.decorator.js +0 -0
- /package/{decorators → dist/decorators}/user.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/user.decorator.js +0 -0
- /package/{decorators → dist/decorators}/user_auth.decorator.d.ts +0 -0
- /package/{decorators → dist/decorators}/user_auth.decorator.js +0 -0
- /package/{decorators → dist/decorators}/validator.decorators.d.ts +0 -0
- /package/{decorators → dist/decorators}/validator.decorators.js +0 -0
- /package/{exceptions → dist/exceptions}/file-not-image.exception.d.ts +0 -0
- /package/{exceptions → dist/exceptions}/file-not-image.exception.js +0 -0
- /package/{exceptions → dist/exceptions}/index.d.ts +0 -0
- /package/{exceptions → dist/exceptions}/index.js +0 -0
- /package/{exceptions → dist/exceptions}/page-type.exception.d.ts +0 -0
- /package/{exceptions → dist/exceptions}/page-type.exception.js +0 -0
- /package/{exceptions → dist/exceptions}/user-not-found.exception.d.ts +0 -0
- /package/{exceptions → dist/exceptions}/user-not-found.exception.js +0 -0
- /package/{file-upload → dist/file-upload}/controllers/file-access.controller.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/controllers/file-access.controller.js +0 -0
- /package/{file-upload → dist/file-upload}/decorators/file-upload.decorator.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/decorators/file-upload.decorator.js +0 -0
- /package/{file-upload → dist/file-upload}/decorators/process.decorator.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/decorators/process.decorator.js +0 -0
- /package/{file-upload → dist/file-upload}/dto/create-file.dto.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/dto/create-file.dto.js +0 -0
- /package/{file-upload → dist/file-upload}/dto/find-files.dto.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/dto/find-files.dto.js +0 -0
- /package/{file-upload → dist/file-upload}/dto/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/dto/index.js +0 -0
- /package/{file-upload → dist/file-upload}/dto/pagination.dto.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/dto/pagination.dto.js +0 -0
- /package/{file-upload → dist/file-upload}/entities/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/entities/index.js +0 -0
- /package/{file-upload → dist/file-upload}/enums/file-type.enum.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/enums/file-type.enum.js +0 -0
- /package/{file-upload → dist/file-upload}/exceptions/file-upload.exception.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/exceptions/file-upload.exception.js +0 -0
- /package/{file-upload → dist/file-upload}/exceptions/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/exceptions/index.js +0 -0
- /package/{file-upload → dist/file-upload}/interceptors/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/interceptors/index.js +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/custom-file-type.interface.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/custom-file-type.interface.js +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/file-buffer.interface.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/file-buffer.interface.js +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/file-entity.interface.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/file-entity.interface.js +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/file-metadata.interface.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/file-metadata.interface.js +0 -0
- /package/{file-upload/interfaces/file-upload-options.interface.js → dist/file-upload/interfaces/file-processor.interface.js} +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/index.js +0 -0
- /package/{file-upload/interfaces/storage-provider.interface.js → dist/file-upload/interfaces/processor-options.interface.js} +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/storage-provider.interface.d.ts +0 -0
- /package/{file-upload/interfaces/upload-options.interface.js → dist/file-upload/interfaces/storage-provider.interface.js} +0 -0
- /package/{file-upload → dist/file-upload}/interfaces/upload-options.interface.d.ts +0 -0
- /package/{http-client/interfaces/http-client-config.interface.js → dist/file-upload/interfaces/upload-options.interface.js} +0 -0
- /package/{file-upload → dist/file-upload}/providers/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/providers/index.js +0 -0
- /package/{file-upload → dist/file-upload}/providers/local-storage.provider.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/providers/local-storage.provider.js +0 -0
- /package/{file-upload → dist/file-upload}/providers/s3-storage.provider.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/providers/s3-storage.provider.js +0 -0
- /package/{file-upload → dist/file-upload}/services/file-signature-validator.service.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/services/file-signature-validator.service.js +0 -0
- /package/{file-upload → dist/file-upload}/services/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/services/index.js +0 -0
- /package/{file-upload → dist/file-upload}/services/mime-registry.service.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/services/mime-registry.service.js +0 -0
- /package/{file-upload → dist/file-upload}/utils/checksum.util.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/utils/checksum.util.js +0 -0
- /package/{file-upload → dist/file-upload}/utils/filename.util.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/utils/filename.util.js +0 -0
- /package/{file-upload → dist/file-upload}/utils/filepath.util.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/utils/filepath.util.js +0 -0
- /package/{file-upload → dist/file-upload}/utils/index.d.ts +0 -0
- /package/{file-upload → dist/file-upload}/utils/index.js +0 -0
- /package/{filters → dist/filters}/bad-request.filter.d.ts +0 -0
- /package/{filters → dist/filters}/bad-request.filter.js +0 -0
- /package/{filters → dist/filters}/constraint-errors.d.ts +0 -0
- /package/{filters → dist/filters}/constraint-errors.js +0 -0
- /package/{filters → dist/filters}/index.d.ts +0 -0
- /package/{filters → dist/filters}/index.js +0 -0
- /package/{filters → dist/filters}/query-failed.filter.d.ts +0 -0
- /package/{filters → dist/filters}/query-failed.filter.js +0 -0
- /package/{health-checker → dist/health-checker}/health-checker.controller.d.ts +0 -0
- /package/{health-checker → dist/health-checker}/health-checker.controller.js +0 -0
- /package/{health-checker → dist/health-checker}/health-checker.module.d.ts +0 -0
- /package/{health-checker → dist/health-checker}/health-checker.module.js +0 -0
- /package/{health-checker → dist/health-checker}/index.d.ts +0 -0
- /package/{health-checker → dist/health-checker}/index.js +0 -0
- /package/{helpers → dist/helpers}/common.helper.d.ts +0 -0
- /package/{helpers → dist/helpers}/common.helper.js +0 -0
- /package/{helpers → dist/helpers}/date.helper.d.ts +0 -0
- /package/{helpers → dist/helpers}/date.helper.js +0 -0
- /package/{helpers → dist/helpers}/index.d.ts +0 -0
- /package/{helpers → dist/helpers}/index.js +0 -0
- /package/{http-client → dist/http-client}/config/http-client.config.d.ts +0 -0
- /package/{http-client → dist/http-client}/config/http-client.config.js +0 -0
- /package/{http-client → dist/http-client}/config/index.d.ts +0 -0
- /package/{http-client → dist/http-client}/config/index.js +0 -0
- /package/{http-client → dist/http-client}/decorators/index.d.ts +0 -0
- /package/{http-client → dist/http-client}/decorators/index.js +0 -0
- /package/{http-client → dist/http-client}/entities/http-log.entity.d.ts +0 -0
- /package/{http-client → dist/http-client}/entities/index.d.ts +0 -0
- /package/{http-client → dist/http-client}/entities/index.js +0 -0
- /package/{http-client → dist/http-client}/errors/http-client.errors.d.ts +0 -0
- /package/{http-client → dist/http-client}/errors/http-client.errors.js +0 -0
- /package/{http-client → dist/http-client}/errors/index.d.ts +0 -0
- /package/{http-client → dist/http-client}/errors/index.js +0 -0
- /package/{http-client → dist/http-client}/examples/advanced-usage.example.d.ts +0 -0
- /package/{http-client → dist/http-client}/examples/advanced-usage.example.js +0 -0
- /package/{http-client → dist/http-client}/examples/auth-with-waiting-lock.example.d.ts +0 -0
- /package/{http-client → dist/http-client}/examples/auth-with-waiting-lock.example.js +0 -0
- /package/{http-client → dist/http-client}/examples/basic-usage.example.d.ts +0 -0
- /package/{http-client → dist/http-client}/examples/basic-usage.example.js +0 -0
- /package/{http-client → dist/http-client}/examples/index.d.ts +0 -0
- /package/{http-client → dist/http-client}/examples/index.js +0 -0
- /package/{http-client → dist/http-client}/examples/multi-api-configuration.example.d.ts +0 -0
- /package/{http-client → dist/http-client}/examples/multi-api-configuration.example.js +0 -0
- /package/{http-client → dist/http-client}/http-client.module.d.ts +0 -0
- /package/{http-client → dist/http-client}/index.d.ts +0 -0
- /package/{http-client → dist/http-client}/index.js +0 -0
- /package/{http-client → dist/http-client}/interfaces/api-client-config.interface.d.ts +0 -0
- /package/{http-client → dist/http-client}/interfaces/api-client-config.interface.js +0 -0
- /package/{interfaces/IApiFile.js → dist/http-client/interfaces/http-client-config.interface.js} +0 -0
- /package/{http-client → dist/http-client}/services/api-client-registry.service.d.ts +0 -0
- /package/{http-client → dist/http-client}/services/api-client-registry.service.js +0 -0
- /package/{http-client → dist/http-client}/services/cache.service.d.ts +0 -0
- /package/{http-client → dist/http-client}/services/cache.service.js +0 -0
- /package/{http-client → dist/http-client}/services/circuit-breaker.service.d.ts +0 -0
- /package/{http-client → dist/http-client}/services/circuit-breaker.service.js +0 -0
- /package/{http-client → dist/http-client}/services/http-log-query.service.d.ts +0 -0
- /package/{http-client → dist/http-client}/services/http-log-query.service.js +0 -0
- /package/{http-client → dist/http-client}/services/http-replay.service.d.ts +0 -0
- /package/{http-client → dist/http-client}/services/http-replay.service.js +0 -0
- /package/{http-client → dist/http-client}/services/index.d.ts +0 -0
- /package/{http-client → dist/http-client}/services/index.js +0 -0
- /package/{http-client → dist/http-client}/services/log-cleanup.service.d.ts +0 -0
- /package/{http-client → dist/http-client}/services/log-cleanup.service.js +0 -0
- /package/{http-client → dist/http-client}/utils/call-stack-extractor.util.d.ts +0 -0
- /package/{http-client → dist/http-client}/utils/call-stack-extractor.util.js +0 -0
- /package/{http-client → dist/http-client}/utils/context-extractor.util.d.ts +0 -0
- /package/{http-client → dist/http-client}/utils/context-extractor.util.js +0 -0
- /package/{http-client → dist/http-client}/utils/curl-generator.util.d.ts +0 -0
- /package/{http-client → dist/http-client}/utils/curl-generator.util.js +0 -0
- /package/{http-client → dist/http-client}/utils/request-id.util.d.ts +0 -0
- /package/{http-client → dist/http-client}/utils/request-id.util.js +0 -0
- /package/{http-client → dist/http-client}/utils/retry-recorder.util.d.ts +0 -0
- /package/{http-client → dist/http-client}/utils/retry-recorder.util.js +0 -0
- /package/{i18n → dist/i18n}/en_US/validation.json +0 -0
- /package/{i18n → dist/i18n}/zh_CN/validation.json +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{interceptors → dist/interceptors}/index.d.ts +0 -0
- /package/{interceptors → dist/interceptors}/index.js +0 -0
- /package/{interceptors → dist/interceptors}/language-interceptor.service.d.ts +0 -0
- /package/{interceptors → dist/interceptors}/language-interceptor.service.js +0 -0
- /package/{interceptors → dist/interceptors}/translation-interceptor.service.d.ts +0 -0
- /package/{interceptors → dist/interceptors}/translation-interceptor.service.js +0 -0
- /package/{interfaces → dist/interfaces}/IApiFile.d.ts +0 -0
- /package/{interfaces/IFile.js → dist/interfaces/IApiFile.js} +0 -0
- /package/{interfaces → dist/interfaces}/IFile.d.ts +0 -0
- /package/{interfaces/ITranslationDecoratorInterface.js → dist/interfaces/IFile.js} +0 -0
- /package/{interfaces → dist/interfaces}/ITranslationDecoratorInterface.d.ts +0 -0
- /package/{interfaces/response.js → dist/interfaces/ITranslationDecoratorInterface.js} +0 -0
- /package/{interfaces → dist/interfaces}/index.d.ts +0 -0
- /package/{interfaces → dist/interfaces}/index.js +0 -0
- /package/{interfaces → dist/interfaces}/response.d.ts +0 -0
- /package/{vault/interfaces/vault-options.interface.js → dist/interfaces/response.js} +0 -0
- /package/{middlewares → dist/middlewares}/index.d.ts +0 -0
- /package/{middlewares → dist/middlewares}/index.js +0 -0
- /package/{middlewares → dist/middlewares}/omni-auth.middleware.d.ts +0 -0
- /package/{middlewares → dist/middlewares}/omni-auth.middleware.js +0 -0
- /package/{middlewares → dist/middlewares}/powerby.middleware.d.ts +0 -0
- /package/{middlewares → dist/middlewares}/powerby.middleware.js +0 -0
- /package/{middlewares → dist/middlewares}/request-id.middleware.d.ts +0 -0
- /package/{middlewares → dist/middlewares}/request-id.middleware.js +0 -0
- /package/{middlewares → dist/middlewares}/xml.middleware.d.ts +0 -0
- /package/{middlewares → dist/middlewares}/xml.middleware.js +0 -0
- /package/{providers → dist/providers}/context.provider.d.ts +0 -0
- /package/{providers → dist/providers}/context.provider.js +0 -0
- /package/{providers → dist/providers}/generator.provider.d.ts +0 -0
- /package/{providers → dist/providers}/generator.provider.js +0 -0
- /package/{providers → dist/providers}/index.d.ts +0 -0
- /package/{providers → dist/providers}/index.js +0 -0
- /package/{redis-lock → dist/redis-lock}/comprehensive-lock-cleanup.service.d.ts +0 -0
- /package/{redis-lock → dist/redis-lock}/comprehensive-lock-cleanup.service.js +0 -0
- /package/{redis-lock → dist/redis-lock}/examples/lock-strategy.examples.d.ts +0 -0
- /package/{redis-lock → dist/redis-lock}/examples/lock-strategy.examples.js +0 -0
- /package/{redis-lock → dist/redis-lock}/index.d.ts +0 -0
- /package/{redis-lock → dist/redis-lock}/index.js +0 -0
- /package/{redis-lock → dist/redis-lock}/lock-heartbeat.service.d.ts +0 -0
- /package/{redis-lock → dist/redis-lock}/lock-heartbeat.service.js +0 -0
- /package/{redis-lock → dist/redis-lock}/redis-lock.decorator.d.ts +0 -0
- /package/{redis-lock → dist/redis-lock}/redis-lock.decorator.js +0 -0
- /package/{redis-lock → dist/redis-lock}/redis-lock.module.d.ts +0 -0
- /package/{redis-lock → dist/redis-lock}/redis-lock.module.js +0 -0
- /package/{redis-lock → dist/redis-lock}/redis-lock.service.d.ts +0 -0
- /package/{redis-lock → dist/redis-lock}/redis-lock.service.js +0 -0
- /package/{setup → dist/setup}/bootstrap.setup.d.ts +0 -0
- /package/{setup → dist/setup}/bootstrap.setup.js +0 -0
- /package/{setup → dist/setup}/index.d.ts +0 -0
- /package/{setup → dist/setup}/index.js +0 -0
- /package/{setup → dist/setup}/mode.setup.d.ts +0 -0
- /package/{setup → dist/setup}/mode.setup.js +0 -0
- /package/{setup → dist/setup}/schedule.decorator.d.ts +0 -0
- /package/{setup → dist/setup}/schedule.decorator.js +0 -0
- /package/{setup → dist/setup}/worker.decorator.d.ts +0 -0
- /package/{setup → dist/setup}/worker.decorator.js +0 -0
- /package/{shared → dist/shared}/index.d.ts +0 -0
- /package/{shared → dist/shared}/index.js +0 -0
- /package/{shared → dist/shared}/service-registry.module.d.ts +0 -0
- /package/{shared → dist/shared}/services/api-config.service.d.ts +0 -0
- /package/{shared → dist/shared}/services/api-config.service.js +0 -0
- /package/{shared → dist/shared}/services/generator.service.d.ts +0 -0
- /package/{shared → dist/shared}/services/generator.service.js +0 -0
- /package/{shared → dist/shared}/services/index.d.ts +0 -0
- /package/{shared → dist/shared}/services/index.js +0 -0
- /package/{shared → dist/shared}/services/translation.service.d.ts +0 -0
- /package/{shared → dist/shared}/services/translation.service.js +0 -0
- /package/{transaction → dist/transaction}/__tests__/mocks.d.ts +0 -0
- /package/{transaction → dist/transaction}/__tests__/mocks.js +0 -0
- /package/{transaction → dist/transaction}/base-service-transaction.d.ts +0 -0
- /package/{transaction → dist/transaction}/base-service-transaction.js +0 -0
- /package/{transaction → dist/transaction}/cls-compatibility.service.d.ts +0 -0
- /package/{transaction → dist/transaction}/cls-compatibility.service.js +0 -0
- /package/{transaction → dist/transaction}/data-source-registry.d.ts +0 -0
- /package/{transaction → dist/transaction}/data-source-registry.js +0 -0
- /package/{transaction → dist/transaction}/database-adapter.d.ts +0 -0
- /package/{transaction → dist/transaction}/database-adapter.js +0 -0
- /package/{transaction → dist/transaction}/decorators/entity-datasource.decorator.d.ts +0 -0
- /package/{transaction → dist/transaction}/decorators/entity-datasource.decorator.js +0 -0
- /package/{transaction → dist/transaction}/logging-transactional.interceptor.d.ts +0 -0
- /package/{transaction → dist/transaction}/logging-transactional.interceptor.js +0 -0
- /package/{transaction → dist/transaction}/transaction-context.service.d.ts +0 -0
- /package/{transaction → dist/transaction}/transaction-context.service.js +0 -0
- /package/{transaction → dist/transaction}/transaction-manager.d.ts +0 -0
- /package/{transaction → dist/transaction}/transaction-manager.js +0 -0
- /package/{transaction → dist/transaction}/transaction-synchronization.d.ts +0 -0
- /package/{transaction → dist/transaction}/transaction-synchronization.js +0 -0
- /package/{transaction → dist/transaction}/transaction.errors.d.ts +0 -0
- /package/{transaction → dist/transaction}/transaction.errors.js +0 -0
- /package/{transaction → dist/transaction}/transaction.module.d.ts +0 -0
- /package/{transaction → dist/transaction}/transaction.module.js +0 -0
- /package/{transaction → dist/transaction}/transactional.decorator.d.ts +0 -0
- /package/{transaction → dist/transaction}/transactional.decorator.js +0 -0
- /package/{transaction → dist/transaction}/typeorm-module-wrapper.d.ts +0 -0
- /package/{transaction → dist/transaction}/typeorm-module-wrapper.js +0 -0
- /package/{validator-json → dist/validator-json}/decorators.d.ts +0 -0
- /package/{validator-json → dist/validator-json}/decorators.js +0 -0
- /package/{validator-json → dist/validator-json}/default.d.ts +0 -0
- /package/{validator-json → dist/validator-json}/default.js +0 -0
- /package/{validator-json → dist/validator-json}/defaultConverters.d.ts +0 -0
- /package/{validator-json → dist/validator-json}/defaultConverters.js +0 -0
- /package/{validator-json → dist/validator-json}/index.d.ts +0 -0
- /package/{validator-json → dist/validator-json}/index.js +0 -0
- /package/{validator-json → dist/validator-json}/options.d.ts +0 -0
- /package/{validator-json → dist/validator-json}/options.js +0 -0
- /package/{validators → dist/validators}/common-validators.d.ts +0 -0
- /package/{validators → dist/validators}/common-validators.js +0 -0
- /package/{validators → dist/validators}/custom-validate.examples.d.ts +0 -0
- /package/{validators → dist/validators}/custom-validate.examples.js +0 -0
- /package/{validators → dist/validators}/custom-validate.validator.d.ts +0 -0
- /package/{validators → dist/validators}/custom-validate.validator.js +0 -0
- /package/{validators → dist/validators}/file-mimetype.validator.d.ts +0 -0
- /package/{validators → dist/validators}/file-mimetype.validator.js +0 -0
- /package/{validators → dist/validators}/index.d.ts +0 -0
- /package/{validators → dist/validators}/index.js +0 -0
- /package/{validators → dist/validators}/phone-country-code.validator.d.ts +0 -0
- /package/{validators → dist/validators}/phone-country-code.validator.js +0 -0
- /package/{validators → dist/validators}/same-as.validator.d.ts +0 -0
- /package/{validators → dist/validators}/same-as.validator.js +0 -0
- /package/{validators → dist/validators}/skip-empty.validator.d.ts +0 -0
- /package/{validators → dist/validators}/skip-empty.validator.js +0 -0
- /package/{vault → dist/vault}/index.d.ts +0 -0
- /package/{vault → dist/vault}/index.js +0 -0
- /package/{vault → dist/vault}/interfaces/vault-options.interface.d.ts +0 -0
- /package/{vault → dist/vault}/vault-config.loader.d.ts +0 -0
- /package/{vault → dist/vault}/vault-config.loader.js +0 -0
- /package/{vault → dist/vault}/vault-config.service.d.ts +0 -0
- /package/{vault → dist/vault}/vault-config.service.js +0 -0
- /package/{vault → dist/vault}/vault.module.d.ts +0 -0
- /package/{vault → dist/vault}/vault.module.js +0 -0
|
@@ -223,36 +223,6 @@ let FileEntity = FileEntity_1 = class FileEntity {
|
|
|
223
223
|
}
|
|
224
224
|
this.validationData = Object.assign(Object.assign({}, this.validationData), data);
|
|
225
225
|
}
|
|
226
|
-
/**
|
|
227
|
-
* 添加处理步骤
|
|
228
|
-
*/
|
|
229
|
-
addProcessingStep(processor) {
|
|
230
|
-
if (!this.processingData) {
|
|
231
|
-
this.processingData = { processors: [] };
|
|
232
|
-
}
|
|
233
|
-
this.processingData.processors.push({
|
|
234
|
-
name: processor,
|
|
235
|
-
startTime: new Date(),
|
|
236
|
-
status: 'pending',
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* 更新处理步骤
|
|
241
|
-
*/
|
|
242
|
-
updateProcessingStep(processor, status, result, error) {
|
|
243
|
-
var _a;
|
|
244
|
-
if (!((_a = this.processingData) === null || _a === void 0 ? void 0 : _a.processors))
|
|
245
|
-
return;
|
|
246
|
-
const step = this.processingData.processors.find((p) => p.name === processor);
|
|
247
|
-
if (step) {
|
|
248
|
-
step.status = status;
|
|
249
|
-
step.endTime = new Date();
|
|
250
|
-
if (result !== undefined)
|
|
251
|
-
step.result = result;
|
|
252
|
-
if (error)
|
|
253
|
-
step.error = error;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
226
|
};
|
|
257
227
|
exports.FileEntity = FileEntity;
|
|
258
228
|
__decorate([
|
|
@@ -356,10 +326,6 @@ __decorate([
|
|
|
356
326
|
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
357
327
|
__metadata("design:type", Object)
|
|
358
328
|
], FileEntity.prototype, "validationData", void 0);
|
|
359
|
-
__decorate([
|
|
360
|
-
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
361
|
-
__metadata("design:type", Object)
|
|
362
|
-
], FileEntity.prototype, "processingData", void 0);
|
|
363
329
|
__decorate([
|
|
364
330
|
(0, typeorm_1.CreateDateColumn)(),
|
|
365
331
|
__metadata("design:type", Date)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicModule } from '@nestjs/common';
|
|
2
|
-
import { IFileProcessor } from './interfaces/file-
|
|
2
|
+
import { IFileProcessor } from './interfaces/file-processor.interface';
|
|
3
3
|
import { LocalStorageOptions, S3StorageOptions } from './interfaces/storage-provider.interface';
|
|
4
4
|
import { CustomFileTypes } from './interfaces/custom-file-type.interface';
|
|
5
5
|
import { MaliciousDetectorOptions } from './services/malicious-file-detector.service';
|
|
@@ -28,6 +28,9 @@ const file_service_1 = require("./services/file.service");
|
|
|
28
28
|
const file_entity_1 = require("./entities/file.entity");
|
|
29
29
|
const file_metadata_entity_1 = require("./entities/file-metadata.entity");
|
|
30
30
|
const file_access_controller_1 = require("./controllers/file-access.controller");
|
|
31
|
+
const csv_processor_1 = require("./processors/csv.processor");
|
|
32
|
+
const excel_processor_1 = require("./processors/excel.processor");
|
|
33
|
+
const image_processor_1 = require("./processors/image.processor");
|
|
31
34
|
/**
|
|
32
35
|
* 文件上传模块(增强版)
|
|
33
36
|
*/
|
|
@@ -71,18 +74,32 @@ let FileUploadModule = FileUploadModule_1 = class FileUploadModule {
|
|
|
71
74
|
inject: [mime_registry_service_1.MimeRegistryService],
|
|
72
75
|
});
|
|
73
76
|
}
|
|
74
|
-
//
|
|
77
|
+
// 注册处理器(内置处理器 + 自定义处理器)
|
|
78
|
+
const processorMap = new Map();
|
|
79
|
+
// 自动注册内置处理器
|
|
80
|
+
try {
|
|
81
|
+
const csvProcessor = new csv_processor_1.CsvProcessor();
|
|
82
|
+
const excelProcessor = new excel_processor_1.ExcelProcessor();
|
|
83
|
+
const imageProcessor = new image_processor_1.ImageProcessor();
|
|
84
|
+
processorMap.set(csvProcessor.name, csvProcessor);
|
|
85
|
+
processorMap.set(excelProcessor.name, excelProcessor);
|
|
86
|
+
processorMap.set(imageProcessor.name, imageProcessor);
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
// 内置处理器加载失败,忽略(可能是依赖未安装)
|
|
90
|
+
}
|
|
91
|
+
// 添加用户自定义处理器
|
|
75
92
|
if (options.processors && options.processors.length > 0) {
|
|
76
|
-
const processorMap = new Map();
|
|
77
93
|
for (const ProcessorClass of options.processors) {
|
|
78
94
|
const processor = new ProcessorClass();
|
|
79
95
|
processorMap.set(processor.name, processor);
|
|
80
96
|
}
|
|
81
|
-
providers.push({
|
|
82
|
-
provide: 'FILE_PROCESSORS',
|
|
83
|
-
useValue: processorMap,
|
|
84
|
-
});
|
|
85
97
|
}
|
|
98
|
+
// 始终提供 FILE_PROCESSORS(即使为空Map)
|
|
99
|
+
providers.push({
|
|
100
|
+
provide: 'FILE_PROCESSORS',
|
|
101
|
+
useValue: processorMap,
|
|
102
|
+
});
|
|
86
103
|
// 注册存储提供者
|
|
87
104
|
if (options.storage) {
|
|
88
105
|
const storageProviders = this.createStorageProviders(options.storage);
|
|
@@ -106,9 +123,8 @@ let FileUploadModule = FileUploadModule_1 = class FileUploadModule {
|
|
|
106
123
|
if (databaseEnabled) {
|
|
107
124
|
exports.push(file_service_1.FileService);
|
|
108
125
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
126
|
+
// 始终导出 FILE_PROCESSORS
|
|
127
|
+
exports.push('FILE_PROCESSORS');
|
|
112
128
|
if (((_b = options.storage) === null || _b === void 0 ? void 0 : _b.local) ||
|
|
113
129
|
!((_c = options.storage) === null || _c === void 0 ? void 0 : _c.default) ||
|
|
114
130
|
((_d = options.storage) === null || _d === void 0 ? void 0 : _d.default) === 'local') {
|
|
@@ -157,18 +173,30 @@ let FileUploadModule = FileUploadModule_1 = class FileUploadModule {
|
|
|
157
173
|
useFactory: asyncOptions.useFactory,
|
|
158
174
|
inject: asyncOptions.inject || [],
|
|
159
175
|
},
|
|
160
|
-
//
|
|
176
|
+
// 异步处理器注册(内置 + 自定义)
|
|
161
177
|
{
|
|
162
178
|
provide: 'FILE_PROCESSORS',
|
|
163
179
|
useFactory: (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
164
180
|
const options = yield asyncOptions.useFactory(...args);
|
|
165
|
-
if (!options.processors || options.processors.length === 0) {
|
|
166
|
-
return new Map();
|
|
167
|
-
}
|
|
168
181
|
const processorMap = new Map();
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
182
|
+
// 自动注册内置处理器
|
|
183
|
+
try {
|
|
184
|
+
const csvProcessor = new csv_processor_1.CsvProcessor();
|
|
185
|
+
const excelProcessor = new excel_processor_1.ExcelProcessor();
|
|
186
|
+
const imageProcessor = new image_processor_1.ImageProcessor();
|
|
187
|
+
processorMap.set(csvProcessor.name, csvProcessor);
|
|
188
|
+
processorMap.set(excelProcessor.name, excelProcessor);
|
|
189
|
+
processorMap.set(imageProcessor.name, imageProcessor);
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
// 内置处理器加载失败,忽略
|
|
193
|
+
}
|
|
194
|
+
// 添加用户自定义处理器
|
|
195
|
+
if (options.processors && options.processors.length > 0) {
|
|
196
|
+
for (const ProcessorClass of options.processors) {
|
|
197
|
+
const processor = new ProcessorClass();
|
|
198
|
+
processorMap.set(processor.name, processor);
|
|
199
|
+
}
|
|
172
200
|
}
|
|
173
201
|
return processorMap;
|
|
174
202
|
}),
|
|
@@ -6,9 +6,17 @@ export * from './interfaces/file-buffer.interface';
|
|
|
6
6
|
export * from './interfaces/file-metadata.interface';
|
|
7
7
|
export * from './interfaces/upload-options.interface';
|
|
8
8
|
export * from './interfaces/custom-file-type.interface';
|
|
9
|
+
export * from './interfaces/file-processor.interface';
|
|
10
|
+
import { ProcessResult as _ProcessResult } from './interfaces/processor-options.interface';
|
|
11
|
+
import { ValidationResult as _ValidationResult } from './decorators/validate-data.decorator';
|
|
12
|
+
export { _ProcessResult as ProcessResult };
|
|
9
13
|
export * from './decorators/file-upload.decorator';
|
|
10
|
-
export
|
|
11
|
-
export
|
|
14
|
+
export { ExcelColumn, getExcelColumnMapping, parseAndValidateExcelData } from './decorators/excel-data.decorator';
|
|
15
|
+
export { CsvColumn, getCsvColumnMapping, parseAndValidateCsvData } from './decorators/csv-data.decorator';
|
|
16
|
+
export * from './decorators/csv-import.decorator';
|
|
17
|
+
export { BaseRowData, ValidationResult as ValidationResultType } from './decorators/validate-data.decorator';
|
|
18
|
+
export { _ValidationResult as ValidationResult };
|
|
19
|
+
export * from './decorators/validate-data.decorator';
|
|
12
20
|
export * from './decorators/process.decorator';
|
|
13
21
|
export * from './interceptors/file-upload.interceptor';
|
|
14
22
|
export * from './controllers/file-access.controller';
|
|
@@ -17,6 +25,9 @@ export * from './services/mime-registry.service';
|
|
|
17
25
|
export * from './services/file-signature-validator.service';
|
|
18
26
|
export * from './services/malicious-file-detector.service';
|
|
19
27
|
export * from './services/file.service';
|
|
28
|
+
export * from './processors/excel.processor';
|
|
29
|
+
export * from './processors/csv.processor';
|
|
30
|
+
export * from './processors/image.processor';
|
|
20
31
|
export * from './entities/file.entity';
|
|
21
32
|
export * from './entities/file-metadata.entity';
|
|
22
33
|
export * from './dto/create-file.dto';
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BaseRowData = exports.parseAndValidateCsvData = exports.getCsvColumnMapping = exports.CsvColumn = exports.parseAndValidateExcelData = exports.getExcelColumnMapping = exports.ExcelColumn = void 0;
|
|
17
18
|
// Module
|
|
18
19
|
__exportStar(require("./file-upload.module"), exports);
|
|
19
20
|
// Enums
|
|
@@ -25,11 +26,24 @@ __exportStar(require("./interfaces/file-buffer.interface"), exports);
|
|
|
25
26
|
__exportStar(require("./interfaces/file-metadata.interface"), exports);
|
|
26
27
|
__exportStar(require("./interfaces/upload-options.interface"), exports);
|
|
27
28
|
__exportStar(require("./interfaces/custom-file-type.interface"), exports);
|
|
29
|
+
__exportStar(require("./interfaces/file-processor.interface"), exports);
|
|
28
30
|
// Note: FileEntity interface is not exported to avoid conflict with TypeORM entity
|
|
29
|
-
// Decorators
|
|
31
|
+
// Decorators - 避免冲突,选择性导出
|
|
30
32
|
__exportStar(require("./decorators/file-upload.decorator"), exports);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
// Excel/CSV 列映射装饰器(字段级别)
|
|
34
|
+
var excel_data_decorator_1 = require("./decorators/excel-data.decorator");
|
|
35
|
+
Object.defineProperty(exports, "ExcelColumn", { enumerable: true, get: function () { return excel_data_decorator_1.ExcelColumn; } });
|
|
36
|
+
Object.defineProperty(exports, "getExcelColumnMapping", { enumerable: true, get: function () { return excel_data_decorator_1.getExcelColumnMapping; } });
|
|
37
|
+
Object.defineProperty(exports, "parseAndValidateExcelData", { enumerable: true, get: function () { return excel_data_decorator_1.parseAndValidateExcelData; } });
|
|
38
|
+
var csv_data_decorator_1 = require("./decorators/csv-data.decorator");
|
|
39
|
+
Object.defineProperty(exports, "CsvColumn", { enumerable: true, get: function () { return csv_data_decorator_1.CsvColumn; } });
|
|
40
|
+
Object.defineProperty(exports, "getCsvColumnMapping", { enumerable: true, get: function () { return csv_data_decorator_1.getCsvColumnMapping; } });
|
|
41
|
+
Object.defineProperty(exports, "parseAndValidateCsvData", { enumerable: true, get: function () { return csv_data_decorator_1.parseAndValidateCsvData; } });
|
|
42
|
+
__exportStar(require("./decorators/csv-import.decorator"), exports);
|
|
43
|
+
// Validation decorators
|
|
44
|
+
var validate_data_decorator_1 = require("./decorators/validate-data.decorator");
|
|
45
|
+
Object.defineProperty(exports, "BaseRowData", { enumerable: true, get: function () { return validate_data_decorator_1.BaseRowData; } });
|
|
46
|
+
__exportStar(require("./decorators/validate-data.decorator"), exports);
|
|
33
47
|
__exportStar(require("./decorators/process.decorator"), exports);
|
|
34
48
|
// Interceptors
|
|
35
49
|
__exportStar(require("./interceptors/file-upload.interceptor"), exports);
|
|
@@ -44,6 +58,10 @@ __exportStar(require("./services/mime-registry.service"), exports);
|
|
|
44
58
|
__exportStar(require("./services/file-signature-validator.service"), exports);
|
|
45
59
|
__exportStar(require("./services/malicious-file-detector.service"), exports);
|
|
46
60
|
__exportStar(require("./services/file.service"), exports);
|
|
61
|
+
// Processors
|
|
62
|
+
__exportStar(require("./processors/excel.processor"), exports);
|
|
63
|
+
__exportStar(require("./processors/csv.processor"), exports);
|
|
64
|
+
__exportStar(require("./processors/image.processor"), exports);
|
|
47
65
|
// Entities
|
|
48
66
|
__exportStar(require("./entities/file.entity"), exports);
|
|
49
67
|
__exportStar(require("./entities/file-metadata.entity"), exports);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
|
|
2
|
+
import { Reflector } from '@nestjs/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { IFileProcessor } from '../interfaces/file-processor.interface';
|
|
5
|
+
import { FileService } from '../services/file.service';
|
|
6
|
+
import { FileSignatureValidator } from '../services/file-signature-validator.service';
|
|
7
|
+
import { MaliciousFileDetector } from '../services/malicious-file-detector.service';
|
|
8
|
+
import { MimeRegistryService } from '../services/mime-registry.service';
|
|
9
|
+
/**
|
|
10
|
+
* 文件上传拦截器(优化版)
|
|
11
|
+
* 负责创建文件记录、执行钩子、处理器等后置逻辑
|
|
12
|
+
*/
|
|
13
|
+
export declare class FileUploadInterceptor implements NestInterceptor {
|
|
14
|
+
private readonly reflector;
|
|
15
|
+
private readonly mimeRegistry;
|
|
16
|
+
private readonly processors?;
|
|
17
|
+
private readonly fileService?;
|
|
18
|
+
private readonly signatureValidator?;
|
|
19
|
+
private readonly maliciousDetector?;
|
|
20
|
+
private readonly moduleOptions?;
|
|
21
|
+
private readonly logger;
|
|
22
|
+
constructor(reflector: Reflector, mimeRegistry: MimeRegistryService, processors?: Map<string, IFileProcessor>, fileService?: FileService, signatureValidator?: FileSignatureValidator, maliciousDetector?: MaliciousFileDetector, moduleOptions?: any);
|
|
23
|
+
intercept(context: ExecutionContext, next: CallHandler): Promise<Observable<any>>;
|
|
24
|
+
/**
|
|
25
|
+
* 判断是否应该跳过验证
|
|
26
|
+
*/
|
|
27
|
+
private shouldSkipValidation;
|
|
28
|
+
/**
|
|
29
|
+
* 验证文件
|
|
30
|
+
*/
|
|
31
|
+
private validateFile;
|
|
32
|
+
/**
|
|
33
|
+
* 批量验证文件类型和扩展名
|
|
34
|
+
*/
|
|
35
|
+
private validateFileTypeAndExtension;
|
|
36
|
+
/**
|
|
37
|
+
* 判断是否需要执行文件签名验证
|
|
38
|
+
*/
|
|
39
|
+
private shouldPerformSignatureValidation;
|
|
40
|
+
/**
|
|
41
|
+
* 验证文件签名
|
|
42
|
+
*/
|
|
43
|
+
private validateFileSignature;
|
|
44
|
+
/**
|
|
45
|
+
* 判断是否需要执行恶意文件检测
|
|
46
|
+
*/
|
|
47
|
+
private shouldPerformMaliciousCheck;
|
|
48
|
+
/**
|
|
49
|
+
* 检测恶意文件
|
|
50
|
+
*/
|
|
51
|
+
private checkMaliciousFile;
|
|
52
|
+
/**
|
|
53
|
+
* 处理文件
|
|
54
|
+
*/
|
|
55
|
+
private processFile;
|
|
56
|
+
/**
|
|
57
|
+
* 创建文件实体
|
|
58
|
+
*/
|
|
59
|
+
private createFileEntity;
|
|
60
|
+
/**
|
|
61
|
+
* 执行处理器
|
|
62
|
+
*/
|
|
63
|
+
private executeProcessors;
|
|
64
|
+
/**
|
|
65
|
+
* 转换为 FileEntity
|
|
66
|
+
*/
|
|
67
|
+
private convertToFileEntity;
|
|
68
|
+
/**
|
|
69
|
+
* 更新成功状态
|
|
70
|
+
*/
|
|
71
|
+
private updateFileEntityOnSuccess;
|
|
72
|
+
/**
|
|
73
|
+
* 清理失败的文件
|
|
74
|
+
*/
|
|
75
|
+
private cleanupOnFailure;
|
|
76
|
+
/**
|
|
77
|
+
* 创建上传上下文
|
|
78
|
+
*/
|
|
79
|
+
private createUploadContext;
|
|
80
|
+
/**
|
|
81
|
+
* 获取处理器
|
|
82
|
+
*/
|
|
83
|
+
private getProcessor;
|
|
84
|
+
/**
|
|
85
|
+
* 生成uploadId
|
|
86
|
+
*/
|
|
87
|
+
private generateUploadId;
|
|
88
|
+
/**
|
|
89
|
+
* 判断是否应该在处理后删除原文件
|
|
90
|
+
*/
|
|
91
|
+
private shouldDeleteAfterProcess;
|
|
92
|
+
/**
|
|
93
|
+
* 将处理器结果保存到 file_metadata 表
|
|
94
|
+
* 处理器可以通过返回结果中的 metadata 字段来指定要保存的内容
|
|
95
|
+
*/
|
|
96
|
+
private saveProcessorResultToMetadata;
|
|
97
|
+
/**
|
|
98
|
+
* 删除原文件
|
|
99
|
+
*/
|
|
100
|
+
private deleteOriginalFile;
|
|
101
|
+
}
|